congress.datasources.monasca_driver.
MonascaDriver
(name='', args=None)¶Bases: congress.datasources.datasource_driver.PollingDataSourceDriver
, congress.datasources.datasource_driver.ExecutionDriver
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().
get_datasource_info
()¶initialize_update_methods
()¶metric_translator
= {'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', 'table-name': 'metrics', 'translation-type': 'HDICT'}¶statistics_translator
= {'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', 'table-name': 'statistics', 'translation-type': 'HDICT'}¶update_statistics
()¶congress.datasources.monasca_driver.
MonascaWebhookDriver
(name='', args=None)¶Bases: congress.datasources.datasource_driver.PushedDataSourceDriver
TRANSLATORS
= [{'table-name': 'alarm_notification', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_definition_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_description'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_timestamp'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'state'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'old_state'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'message'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'tenant_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'metrics_id', 'col': 'first_metric_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'metrics_name', 'col': 'first_metric_name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'metrics_dimensions_hostname', 'col': 'first_metric_hostname'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'metrics_dimensions_service', 'col': 'first_metric_service'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT', 'objects-extract-fn': <function flatten_alarm_webhook>}]¶alarm_notification_translator
= {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_definition_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_description'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'alarm_timestamp'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'state'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'old_state'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'message'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'tenant_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'metrics_id', 'col': 'first_metric_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'metrics_name', 'col': 'first_metric_name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'metrics_dimensions_hostname', 'col': 'first_metric_hostname'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'metrics_dimensions_service', 'col': 'first_metric_service'}), 'objects-extract-fn': <function flatten_alarm_webhook at 0x7faa465795f0>, 'selector-type': 'DICT_SELECTOR', 'table-name': 'alarm_notification', 'translation-type': 'HDICT'}¶flatten_alarm_webhook
()¶get_datasource_info
()¶set_up_periodic_tasks
()¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.