atoti.report module

Reports of data loaded into stores.

Each store has a global loading_report made of several individual loading reports.

When an error occurs while loading data, a warning is displayed. These warnings can be disabled like this:

import logging
logging.getLogger("atoti.loading").setLevel("ERROR")
class atoti.report.LoadingReport(name, source, loaded, errors, duration, error_messages)

Report about the loading of a single file or operation.

duration: int

Duration of the loading in milliseconds.

error_messages: List[str]

Messages of the errors.

errors: int

Number of errors.

loaded: int

Number of loaded lines.

name: str

Name of the loaded file or operation.

source: str

Source used to load the data.

class atoti.report.StoreReport(store_name, reports)

Report about the data loaded into a store.

It is made of several LoadingReport.

property error_messages

Error messages.

Return type

List[str]

reports: List[atoti.report.LoadingReport]

Reports of individual loading.

store_name: str
property total_errors

Total number of errors.

Return type

int

property total_loaded

Total number of loaded rows.

Return type

int