Bases: congress.datasources.datasource_driver.PollingDataSourceDriver, congress.datasources.datasource_driver.ExecutionDriver
-
DATA = 'statistics.data'
-
DIMENSIONS = 'dimensions'
-
METRICS = 'metrics'
-
STATISTICS = 'statistics'
-
TRANSLATORS = [{'table-name': 'metrics', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'id-col': 'id', 'val-col': 'value', 'translation-type': 'VDICT', 'translator': {'translation-type': 'VALUE'}, 'table-name': 'dimensions', 'key-col': 'key'}, 'fieldname': 'dimensions'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}, {'table-name': 'statistics', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'id-col': 'name', 'translator': {'translation-type': 'VALUE'}, 'table-name': 'statistics.data', 'val-col': 'value_col', 'translation-type': 'LIST'}, 'fieldname': 'statistics'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}]
-
execute(action, action_args)
Overwrite ExecutionDriver.execute().
-
static get_datasource_info()
-
initialize_update_methods()
-
metric_translator = {'table-name': 'metrics', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'id-col': 'id', 'val-col': 'value', 'translation-type': 'VDICT', 'translator': {'translation-type': 'VALUE'}, 'table-name': 'dimensions', 'key-col': 'key'}, 'fieldname': 'dimensions'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}
-
statistics_translator = {'table-name': 'statistics', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'id-col': 'name', 'translator': {'translation-type': 'VALUE'}, 'table-name': 'statistics.data', 'val-col': 'value_col', 'translation-type': 'LIST'}, 'fieldname': 'statistics'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT'}
-
update_statistics()
-
value_trans = {'translation-type': 'VALUE'}