congress.datasources.vitrage_driver.
VitrageDriver
(name='', args=None)¶Bases: congress.datasources.datasource_driver.PushedDataSourceDriver
Datasource driver that accepts Vitrage webhook alarm notification.
TRANSLATORS
= [{'table-name': 'alarms', 'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'state'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vitrage_type', 'col': 'type'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vitrage_operational_severity', 'col': 'operational_severity'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vitrage_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'update_timestamp'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'receive_timestamp'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_vitrage_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_project_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_vitrage_operational_state', 'col': 'resource_operational_state'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_vitrage_type', 'col': 'resource_type'}), 'selector-type': 'DICT_SELECTOR', 'translation-type': 'HDICT', 'objects-extract-fn': <function flatten_and_timestamp_alarm_webhook>}]¶flatten_and_timestamp_alarm_webhook
()¶get_datasource_info
()¶set_up_periodic_tasks
()¶value_trans
= {'translation-type': 'VALUE'}¶webhook_alarm_translator
= {'field-translators': ({'translator': {'translation-type': 'VALUE'}, 'fieldname': 'name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'state'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vitrage_type', 'col': 'type'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vitrage_operational_severity', 'col': 'operational_severity'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'vitrage_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'update_timestamp'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'receive_timestamp'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_name'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_vitrage_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_project_id'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_vitrage_operational_state', 'col': 'resource_operational_state'}, {'translator': {'translation-type': 'VALUE'}, 'fieldname': 'resource_vitrage_type', 'col': 'resource_type'}), 'objects-extract-fn': <function flatten_and_timestamp_alarm_webhook at 0x7faa46184de8>, 'selector-type': 'DICT_SELECTOR', 'table-name': 'alarms', 'translation-type': 'HDICT'}¶Except where otherwise noted, this document is licensed under Creative Commons Attribution 3.0 License. See all OpenStack Legal Documents.