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