The congress.datasources.heatv1_driver Module

class congress.datasources.heatv1_driver.HeatV1Driver(name=”, args=None)

Bases: congress.datasources.datasource_driver.PollingDataSourceDriver, congress.datasources.datasource_driver.ExecutionDriver

DEPLOYMENTS = ‘deployments’
DEPLOYMENT_OUTPUT_VALUES = ‘deployment_output_values’
EVENTS = ‘events’
RESOURCES = ‘resources’
STACKS = ‘stacks’
TRANSLATORS = [{‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘description’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘creation_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘updated_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_status’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_status_reason’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_owner’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘parent’}, {‘translator’: {‘selector-type’: ‘DICT_SELECTOR’, ‘in-list’: True, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘href’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘rel’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘stacks_links’}, ‘fieldname’: ‘links’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DOT_SELECTOR’, ‘table-name’: ‘stacks’}, {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘status’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘server_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘config_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘action’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘status_reason’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘deploy_stdout’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘deploy_stderr’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘deploy_status_code’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘result’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘deployment_output_values’}, ‘fieldname’: ‘output_values’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DOT_SELECTOR’, ‘table-name’: ‘deployments’}, {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘physical_resource_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘logical_resource_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_type’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘creation_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘updated_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_status’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_status_reason’}, {‘translator’: {‘selector-type’: ‘DICT_SELECTOR’, ‘in-list’: True, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘href’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘rel’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘physical_resource_id’, ‘table-name’: ‘resources_links’}, ‘fieldname’: ‘links’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘resources’}, {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘physical_resource_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘logical_resource_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘event_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_status’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_status_reason’}, {‘translator’: {‘selector-type’: ‘DICT_SELECTOR’, ‘in-list’: True, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘href’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘rel’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘events_links’}, ‘fieldname’: ‘links’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘events’}]
deployments_output_values_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘deploy_stdout’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘deploy_stderr’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘deploy_status_code’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘result’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘deployment_output_values’}
events_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘physical_resource_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘logical_resource_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘event_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_status’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_status_reason’}, {‘translator’: {‘selector-type’: ‘DICT_SELECTOR’, ‘in-list’: True, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘href’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘rel’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘events_links’}, ‘fieldname’: ‘links’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘events’}
execute(action, action_args)

Overwrite ExecutionDriver.execute().

static get_datasource_info()
initialize_update_methods()
resources_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘physical_resource_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘logical_resource_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_type’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘creation_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘updated_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_status’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘resource_status_reason’}, {‘translator’: {‘selector-type’: ‘DICT_SELECTOR’, ‘in-list’: True, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘href’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘rel’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘physical_resource_id’, ‘table-name’: ‘resources_links’}, ‘fieldname’: ‘links’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘resources’}
software_deployment_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘status’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘server_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘config_id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘action’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘status_reason’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘deploy_stdout’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘deploy_stderr’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘deploy_status_code’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘result’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘selector-type’: ‘DICT_SELECTOR’, ‘table-name’: ‘deployment_output_values’}, ‘fieldname’: ‘output_values’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DOT_SELECTOR’, ‘table-name’: ‘deployments’}
stacks_translator = {‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘id’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_name’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘description’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘creation_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘updated_time’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_status’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_status_reason’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘stack_owner’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘parent’}, {‘translator’: {‘selector-type’: ‘DICT_SELECTOR’, ‘in-list’: True, ‘field-translators’: ({‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘href’}, {‘translator’: {‘translation-type’: ‘VALUE’}, ‘fieldname’: ‘rel’}), ‘translation-type’: ‘HDICT’, ‘parent-key’: ‘id’, ‘table-name’: ‘stacks_links’}, ‘fieldname’: ‘links’}), ‘translation-type’: ‘HDICT’, ‘selector-type’: ‘DOT_SELECTOR’, ‘table-name’: ‘stacks’}
value_trans = {‘translation-type’: ‘VALUE’}