huaweicloudsdkaom 3.1.174__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- huaweicloudsdkaom/__init__.py +0 -0
- huaweicloudsdkaom/v1/__init__.py +55 -0
- huaweicloudsdkaom/v1/aom_async_client.py +946 -0
- huaweicloudsdkaom/v1/aom_client.py +943 -0
- huaweicloudsdkaom/v1/model/__init__.py +52 -0
- huaweicloudsdkaom/v1/model/approve_info.py +166 -0
- huaweicloudsdkaom/v1/model/create_workflow_request.py +104 -0
- huaweicloudsdkaom/v1/model/create_workflow_response.py +1239 -0
- huaweicloudsdkaom/v1/model/execute_workflow_request.py +107 -0
- huaweicloudsdkaom/v1/model/execute_workflow_response.py +112 -0
- huaweicloudsdkaom/v1/model/execution_result_list.py +253 -0
- huaweicloudsdkaom/v1/model/job.py +499 -0
- huaweicloudsdkaom/v1/model/list_all_job_by_name_request.py +104 -0
- huaweicloudsdkaom/v1/model/list_all_job_by_name_response.py +141 -0
- huaweicloudsdkaom/v1/model/list_all_script_by_name_request.py +104 -0
- huaweicloudsdkaom/v1/model/list_all_script_by_name_response.py +141 -0
- huaweicloudsdkaom/v1/model/list_all_version_by_version_id_request.py +104 -0
- huaweicloudsdkaom/v1/model/list_all_version_by_version_id_response.py +141 -0
- huaweicloudsdkaom/v1/model/list_template_by_job_id_request.py +132 -0
- huaweicloudsdkaom/v1/model/list_template_by_job_id_request_body.py +223 -0
- huaweicloudsdkaom/v1/model/list_template_by_job_id_response.py +141 -0
- huaweicloudsdkaom/v1/model/list_workflow_executions_request.py +136 -0
- huaweicloudsdkaom/v1/model/list_workflow_executions_response.py +108 -0
- huaweicloudsdkaom/v1/model/list_workflow_request.py +104 -0
- huaweicloudsdkaom/v1/model/list_workflow_response.py +141 -0
- huaweicloudsdkaom/v1/model/metadata.py +137 -0
- huaweicloudsdkaom/v1/model/node.py +307 -0
- huaweicloudsdkaom/v1/model/parameter.py +365 -0
- huaweicloudsdkaom/v1/model/rate_control.py +166 -0
- huaweicloudsdkaom/v1/model/reference_info.py +135 -0
- huaweicloudsdkaom/v1/model/script.py +475 -0
- huaweicloudsdkaom/v1/model/script_version.py +513 -0
- huaweicloudsdkaom/v1/model/search_jobs_request_body.py +251 -0
- huaweicloudsdkaom/v1/model/search_scripts_request_body.py +366 -0
- huaweicloudsdkaom/v1/model/search_template_by_id_request.py +135 -0
- huaweicloudsdkaom/v1/model/search_template_by_id_response.py +684 -0
- huaweicloudsdkaom/v1/model/search_workflow_execution_detail_request.py +135 -0
- huaweicloudsdkaom/v1/model/search_workflow_execution_detail_response.py +402 -0
- huaweicloudsdkaom/v1/model/start_pausing_workflow_executions_request.py +191 -0
- huaweicloudsdkaom/v1/model/start_pausing_workflow_executions_response.py +112 -0
- huaweicloudsdkaom/v1/model/step.py +252 -0
- huaweicloudsdkaom/v1/model/stop_execution_request.py +135 -0
- huaweicloudsdkaom/v1/model/stop_execution_response.py +108 -0
- huaweicloudsdkaom/v1/model/task_param.py +194 -0
- huaweicloudsdkaom/v1/model/template.py +680 -0
- huaweicloudsdkaom/v1/model/update_workflow_trigger_status_request.py +135 -0
- huaweicloudsdkaom/v1/model/update_workflow_trigger_status_response.py +108 -0
- huaweicloudsdkaom/v1/model/work_flow_model.py +137 -0
- huaweicloudsdkaom/v1/model/workflow.py +1234 -0
- huaweicloudsdkaom/v1/model/workflow_execution_brief.py +427 -0
- huaweicloudsdkaom/v1/model/workflow_query_param.py +425 -0
- huaweicloudsdkaom/v1/model/workflow_request_body.py +451 -0
- huaweicloudsdkaom/v1/region/__init__.py +0 -0
- huaweicloudsdkaom/v1/region/aom_region.py +121 -0
- huaweicloudsdkaom/v2/__init__.py +240 -0
- huaweicloudsdkaom/v2/aom_async_client.py +4350 -0
- huaweicloudsdkaom/v2/aom_client.py +4347 -0
- huaweicloudsdkaom/v2/model/__init__.py +237 -0
- huaweicloudsdkaom/v2/model/access_code_model.py +195 -0
- huaweicloudsdkaom/v2/model/action_rule.py +363 -0
- huaweicloudsdkaom/v2/model/add_action_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/add_action_rule_response.py +81 -0
- huaweicloudsdkaom/v2/model/add_alarm_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/add_alarm_rule_response.py +112 -0
- huaweicloudsdkaom/v2/model/add_event2alarm_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/add_event2alarm_rule_response.py +108 -0
- huaweicloudsdkaom/v2/model/add_metric_data_request.py +104 -0
- huaweicloudsdkaom/v2/model/add_metric_data_response.py +141 -0
- huaweicloudsdkaom/v2/model/add_mute_rules_request.py +104 -0
- huaweicloudsdkaom/v2/model/add_mute_rules_response.py +81 -0
- huaweicloudsdkaom/v2/model/add_notification_template.py +221 -0
- huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_item_result.py +135 -0
- huaweicloudsdkaom/v2/model/add_or_update_alarm_rule_v4_request_body.py +326 -0
- huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_request.py +161 -0
- huaweicloudsdkaom/v2/model/add_or_update_metric_or_event_alarm_rule_response.py +170 -0
- huaweicloudsdkaom/v2/model/add_or_update_service_discovery_rules_request.py +104 -0
- huaweicloudsdkaom/v2/model/add_or_update_service_discovery_rules_response.py +228 -0
- huaweicloudsdkaom/v2/model/aggr_prometheus_info.py +191 -0
- huaweicloudsdkaom/v2/model/alarm_notification.py +308 -0
- huaweicloudsdkaom/v2/model/alarm_param_for_v4_db.py +463 -0
- huaweicloudsdkaom/v2/model/alarm_rule_param.py +590 -0
- huaweicloudsdkaom/v2/model/alarm_rule_template_body.py +473 -0
- huaweicloudsdkaom/v2/model/alarm_rule_template_spec_with_cloud_service.py +220 -0
- huaweicloudsdkaom/v2/model/alarm_tags.py +166 -0
- huaweicloudsdkaom/v2/model/alarm_template_spec_item.py +272 -0
- huaweicloudsdkaom/v2/model/app_name_rule.py +164 -0
- huaweicloudsdkaom/v2/model/app_rules.py +330 -0
- huaweicloudsdkaom/v2/model/app_rules_body.py +108 -0
- huaweicloudsdkaom/v2/model/app_rules_spec.py +444 -0
- huaweicloudsdkaom/v2/model/application_model.py +166 -0
- huaweicloudsdkaom/v2/model/application_name_rule.py +164 -0
- huaweicloudsdkaom/v2/model/batch_alarm_rules_body.py +219 -0
- huaweicloudsdkaom/v2/model/batch_update_action_rules.py +392 -0
- huaweicloudsdkaom/v2/model/batch_update_alarm_rule_request.py +161 -0
- huaweicloudsdkaom/v2/model/batch_update_alarm_rule_response.py +170 -0
- huaweicloudsdkaom/v2/model/batch_update_item_result.py +166 -0
- huaweicloudsdkaom/v2/model/batch_update_request.py +166 -0
- huaweicloudsdkaom/v2/model/cmdb_info.py +137 -0
- huaweicloudsdkaom/v2/model/count_events_request.py +133 -0
- huaweicloudsdkaom/v2/model/count_events_response.py +199 -0
- huaweicloudsdkaom/v2/model/create_notification_template_request.py +133 -0
- huaweicloudsdkaom/v2/model/create_notification_template_response.py +81 -0
- huaweicloudsdkaom/v2/model/create_prom_instance_request.py +132 -0
- huaweicloudsdkaom/v2/model/create_prom_instance_response.py +112 -0
- huaweicloudsdkaom/v2/model/create_recording_rule_request.py +132 -0
- huaweicloudsdkaom/v2/model/create_recording_rule_response.py +108 -0
- huaweicloudsdkaom/v2/model/dash_boards_folder.py +360 -0
- huaweicloudsdkaom/v2/model/dashboard.py +717 -0
- huaweicloudsdkaom/v2/model/delete_action_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/delete_action_rule_response.py +81 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rule_request.py +107 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rule_response.py +108 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rule_template_item_result.py +107 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rule_template_request.py +133 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rule_template_request_body.py +107 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rule_template_response.py +112 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rule_v4_request_body.py +107 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rules_body.py +107 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rules_request.py +104 -0
- huaweicloudsdkaom/v2/model/delete_alarm_rules_response.py +108 -0
- huaweicloudsdkaom/v2/model/delete_dashboard_request.py +136 -0
- huaweicloudsdkaom/v2/model/delete_dashboard_response.py +81 -0
- huaweicloudsdkaom/v2/model/delete_dashboards_folder_request.py +164 -0
- huaweicloudsdkaom/v2/model/delete_dashboards_folder_response.py +81 -0
- huaweicloudsdkaom/v2/model/delete_event2alarm_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/delete_event2alarm_rule_response.py +81 -0
- huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/delete_metric_or_event_alarm_rule_response.py +170 -0
- huaweicloudsdkaom/v2/model/delete_mute_rule_name.py +107 -0
- huaweicloudsdkaom/v2/model/delete_mute_rules_request.py +104 -0
- huaweicloudsdkaom/v2/model/delete_mute_rules_response.py +81 -0
- huaweicloudsdkaom/v2/model/delete_notification_request_body.py +107 -0
- huaweicloudsdkaom/v2/model/delete_notification_template_request.py +133 -0
- huaweicloudsdkaom/v2/model/delete_notification_template_response.py +81 -0
- huaweicloudsdkaom/v2/model/delete_prom_instance_request.py +135 -0
- huaweicloudsdkaom/v2/model/delete_prom_instance_response.py +108 -0
- huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_request.py +107 -0
- huaweicloudsdkaom/v2/model/deleteservice_discovery_rules_response.py +199 -0
- huaweicloudsdkaom/v2/model/dimension.py +135 -0
- huaweicloudsdkaom/v2/model/dimension2.py +135 -0
- huaweicloudsdkaom/v2/model/dimension_series.py +137 -0
- huaweicloudsdkaom/v2/model/discovery_rule.py +163 -0
- huaweicloudsdkaom/v2/model/event2alarm_rule_body.py +531 -0
- huaweicloudsdkaom/v2/model/event2alarm_rule_body_metadata.py +108 -0
- huaweicloudsdkaom/v2/model/event2alarm_rule_body_trigger_policies.py +282 -0
- huaweicloudsdkaom/v2/model/event_alarm_spec.py +252 -0
- huaweicloudsdkaom/v2/model/event_alarm_template_spec.py +253 -0
- huaweicloudsdkaom/v2/model/event_list.py +107 -0
- huaweicloudsdkaom/v2/model/event_model.py +281 -0
- huaweicloudsdkaom/v2/model/event_query_param.py +219 -0
- huaweicloudsdkaom/v2/model/event_query_param2.py +219 -0
- huaweicloudsdkaom/v2/model/event_query_param2_sort.py +136 -0
- huaweicloudsdkaom/v2/model/event_query_param_sort.py +137 -0
- huaweicloudsdkaom/v2/model/event_series.py +137 -0
- huaweicloudsdkaom/v2/model/event_trigger_condition.py +253 -0
- huaweicloudsdkaom/v2/model/item_result.py +107 -0
- huaweicloudsdkaom/v2/model/list_access_code_request.py +77 -0
- huaweicloudsdkaom/v2/model/list_access_code_response.py +112 -0
- huaweicloudsdkaom/v2/model/list_action_rule_request.py +77 -0
- huaweicloudsdkaom/v2/model/list_action_rule_response.py +112 -0
- huaweicloudsdkaom/v2/model/list_agents_request.py +135 -0
- huaweicloudsdkaom/v2/model/list_agents_response.py +108 -0
- huaweicloudsdkaom/v2/model/list_alarm_rule_request.py +137 -0
- huaweicloudsdkaom/v2/model/list_alarm_rule_response.py +133 -0
- huaweicloudsdkaom/v2/model/list_alarm_rule_template_request.py +165 -0
- huaweicloudsdkaom/v2/model/list_alarm_rule_template_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_dash_boards_request.py +137 -0
- huaweicloudsdkaom/v2/model/list_dash_boards_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_dashboards_folder_request.py +108 -0
- huaweicloudsdkaom/v2/model/list_dashboards_folder_response.py +108 -0
- huaweicloudsdkaom/v2/model/list_event2alarm_rule_request.py +77 -0
- huaweicloudsdkaom/v2/model/list_event2alarm_rule_response.py +108 -0
- huaweicloudsdkaom/v2/model/list_event_model.py +398 -0
- huaweicloudsdkaom/v2/model/list_events_request.py +220 -0
- huaweicloudsdkaom/v2/model/list_events_response.py +137 -0
- huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_get_request.py +136 -0
- huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_get_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_post_request.py +136 -0
- huaweicloudsdkaom/v2/model/list_instant_query_aom_prom_post_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_label_values_aom_prom_get_request.py +107 -0
- huaweicloudsdkaom/v2/model/list_label_values_aom_prom_get_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_labels_aom_prom_get_request.py +77 -0
- huaweicloudsdkaom/v2/model/list_labels_aom_prom_get_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_labels_aom_prom_post_request.py +77 -0
- huaweicloudsdkaom/v2/model/list_labels_aom_prom_post_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_log_items_request.py +132 -0
- huaweicloudsdkaom/v2/model/list_log_items_response.py +170 -0
- huaweicloudsdkaom/v2/model/list_metadata_aom_prom_get_request.py +77 -0
- huaweicloudsdkaom/v2/model/list_metadata_aom_prom_get_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_metric_items_request.py +191 -0
- huaweicloudsdkaom/v2/model/list_metric_items_response.py +137 -0
- huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_request.py +427 -0
- huaweicloudsdkaom/v2/model/list_metric_or_event_alarm_rule_response.py +170 -0
- huaweicloudsdkaom/v2/model/list_mute_rule_request.py +77 -0
- huaweicloudsdkaom/v2/model/list_mute_rule_response.py +108 -0
- huaweicloudsdkaom/v2/model/list_notification_template_by_name_request.py +136 -0
- huaweicloudsdkaom/v2/model/list_notification_template_by_name_response.py +373 -0
- huaweicloudsdkaom/v2/model/list_notification_templates_request.py +108 -0
- huaweicloudsdkaom/v2/model/list_notification_templates_response.py +108 -0
- huaweicloudsdkaom/v2/model/list_notified_histories_request.py +108 -0
- huaweicloudsdkaom/v2/model/list_notified_histories_response.py +112 -0
- huaweicloudsdkaom/v2/model/list_permissions_request.py +77 -0
- huaweicloudsdkaom/v2/model/list_permissions_response.py +108 -0
- huaweicloudsdkaom/v2/model/list_prom_instance_request.py +223 -0
- huaweicloudsdkaom/v2/model/list_prom_instance_response.py +112 -0
- huaweicloudsdkaom/v2/model/list_range_query_aom_prom_get_request.py +191 -0
- huaweicloudsdkaom/v2/model/list_range_query_aom_prom_get_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_range_query_aom_prom_post_request.py +191 -0
- huaweicloudsdkaom/v2/model/list_range_query_aom_prom_post_response.py +141 -0
- huaweicloudsdkaom/v2/model/list_sample_request.py +133 -0
- huaweicloudsdkaom/v2/model/list_sample_response.py +112 -0
- huaweicloudsdkaom/v2/model/list_series_request.py +162 -0
- huaweicloudsdkaom/v2/model/list_series_response.py +137 -0
- huaweicloudsdkaom/v2/model/list_service_discovery_rules_request.py +108 -0
- huaweicloudsdkaom/v2/model/list_service_discovery_rules_response.py +199 -0
- huaweicloudsdkaom/v2/model/log_path_rule.py +163 -0
- huaweicloudsdkaom/v2/model/match.py +164 -0
- huaweicloudsdkaom/v2/model/meta_data.py +166 -0
- huaweicloudsdkaom/v2/model/meta_data_series.py +195 -0
- huaweicloudsdkaom/v2/model/metric_alarm_spec.py +303 -0
- huaweicloudsdkaom/v2/model/metric_alarm_template_spec.py +278 -0
- huaweicloudsdkaom/v2/model/metric_api_query_item_param.py +137 -0
- huaweicloudsdkaom/v2/model/metric_data_item.py +159 -0
- huaweicloudsdkaom/v2/model/metric_data_points.py +166 -0
- huaweicloudsdkaom/v2/model/metric_data_value.py +133 -0
- huaweicloudsdkaom/v2/model/metric_item_info.py +135 -0
- huaweicloudsdkaom/v2/model/metric_item_result_api.py +224 -0
- huaweicloudsdkaom/v2/model/metric_query_metric_param.py +163 -0
- huaweicloudsdkaom/v2/model/mute_config.py +193 -0
- huaweicloudsdkaom/v2/model/mute_rule.py +304 -0
- huaweicloudsdkaom/v2/model/name_rule.py +135 -0
- huaweicloudsdkaom/v2/model/no_data_condition.py +166 -0
- huaweicloudsdkaom/v2/model/node_info.py +137 -0
- huaweicloudsdkaom/v2/model/notification_template.py +360 -0
- huaweicloudsdkaom/v2/model/notifications.py +162 -0
- huaweicloudsdkaom/v2/model/notified_histories_result.py +137 -0
- huaweicloudsdkaom/v2/model/page_info.py +163 -0
- huaweicloudsdkaom/v2/model/prom_config_model.py +224 -0
- huaweicloudsdkaom/v2/model/prom_instance_eps_create_model.py +421 -0
- huaweicloudsdkaom/v2/model/prom_instance_eps_model.py +529 -0
- huaweicloudsdkaom/v2/model/prom_instance_request_model.py +251 -0
- huaweicloudsdkaom/v2/model/prom_limits.py +107 -0
- huaweicloudsdkaom/v2/model/push_events_request.py +162 -0
- huaweicloudsdkaom/v2/model/push_events_response.py +81 -0
- huaweicloudsdkaom/v2/model/query_alarm_result.py +804 -0
- huaweicloudsdkaom/v2/model/query_body_param.py +361 -0
- huaweicloudsdkaom/v2/model/query_metric_data_param.py +191 -0
- huaweicloudsdkaom/v2/model/query_metric_item_option_param.py +165 -0
- huaweicloudsdkaom/v2/model/query_sample.py +163 -0
- huaweicloudsdkaom/v2/model/query_sample_param.py +191 -0
- huaweicloudsdkaom/v2/model/query_series_option_param.py +165 -0
- huaweicloudsdkaom/v2/model/recording_rule_request.py +107 -0
- huaweicloudsdkaom/v2/model/recovery_condition.py +108 -0
- huaweicloudsdkaom/v2/model/relation_model.py +165 -0
- huaweicloudsdkaom/v2/model/sample_data_value.py +133 -0
- huaweicloudsdkaom/v2/model/search_key.py +252 -0
- huaweicloudsdkaom/v2/model/series_api_query_item_param.py +107 -0
- huaweicloudsdkaom/v2/model/series_query_item_result.py +224 -0
- huaweicloudsdkaom/v2/model/show_action_rule_request.py +107 -0
- huaweicloudsdkaom/v2/model/show_action_rule_response.py +373 -0
- huaweicloudsdkaom/v2/model/show_alarm_rule_request.py +107 -0
- huaweicloudsdkaom/v2/model/show_alarm_rule_response.py +137 -0
- huaweicloudsdkaom/v2/model/show_dash_board_request.py +164 -0
- huaweicloudsdkaom/v2/model/show_dash_board_response.py +721 -0
- huaweicloudsdkaom/v2/model/show_metrics_data_request.py +133 -0
- huaweicloudsdkaom/v2/model/show_metrics_data_response.py +170 -0
- huaweicloudsdkaom/v2/model/smn_info.py +166 -0
- huaweicloudsdkaom/v2/model/smn_response.py +253 -0
- huaweicloudsdkaom/v2/model/smn_topics.py +221 -0
- huaweicloudsdkaom/v2/model/statistic_value.py +137 -0
- huaweicloudsdkaom/v2/model/template_info.py +195 -0
- huaweicloudsdkaom/v2/model/template_trigger_condition.py +800 -0
- huaweicloudsdkaom/v2/model/templating.py +108 -0
- huaweicloudsdkaom/v2/model/trigger_condition.py +735 -0
- huaweicloudsdkaom/v2/model/update_action_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/update_action_rule_response.py +81 -0
- huaweicloudsdkaom/v2/model/update_alarm_rule_param.py +590 -0
- huaweicloudsdkaom/v2/model/update_alarm_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/update_alarm_rule_response.py +112 -0
- huaweicloudsdkaom/v2/model/update_event_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/update_event_rule_response.py +108 -0
- huaweicloudsdkaom/v2/model/update_mute_rule_request.py +104 -0
- huaweicloudsdkaom/v2/model/update_mute_rule_response.py +81 -0
- huaweicloudsdkaom/v2/model/update_notification_template.py +192 -0
- huaweicloudsdkaom/v2/model/update_notification_template_request.py +133 -0
- huaweicloudsdkaom/v2/model/update_notification_template_response.py +81 -0
- huaweicloudsdkaom/v2/model/update_prom_instance_request.py +132 -0
- huaweicloudsdkaom/v2/model/update_prom_instance_request_modle.py +190 -0
- huaweicloudsdkaom/v2/model/update_prom_instance_response.py +141 -0
- huaweicloudsdkaom/v2/model/value_data.py +193 -0
- huaweicloudsdkaom/v2/region/__init__.py +0 -0
- huaweicloudsdkaom/v2/region/aom_region.py +121 -0
- huaweicloudsdkaom/v3/__init__.py +55 -0
- huaweicloudsdkaom/v3/aom_async_client.py +1338 -0
- huaweicloudsdkaom/v3/aom_client.py +1335 -0
- huaweicloudsdkaom/v3/model/__init__.py +52 -0
- huaweicloudsdkaom/v3/model/biz_app_param.py +223 -0
- huaweicloudsdkaom/v3/model/component_param.py +192 -0
- huaweicloudsdkaom/v3/model/component_update_param.py +136 -0
- huaweicloudsdkaom/v3/model/create_app_request.py +104 -0
- huaweicloudsdkaom/v3/model/create_app_response.py +108 -0
- huaweicloudsdkaom/v3/model/create_component_request.py +104 -0
- huaweicloudsdkaom/v3/model/create_component_response.py +112 -0
- huaweicloudsdkaom/v3/model/create_env_request.py +104 -0
- huaweicloudsdkaom/v3/model/create_env_response.py +112 -0
- huaweicloudsdkaom/v3/model/create_sub_app_request.py +104 -0
- huaweicloudsdkaom/v3/model/create_sub_app_response.py +108 -0
- huaweicloudsdkaom/v3/model/delete_app_request.py +107 -0
- huaweicloudsdkaom/v3/model/delete_app_response.py +108 -0
- huaweicloudsdkaom/v3/model/delete_component_request.py +107 -0
- huaweicloudsdkaom/v3/model/delete_component_response.py +108 -0
- huaweicloudsdkaom/v3/model/delete_env_request.py +107 -0
- huaweicloudsdkaom/v3/model/delete_env_response.py +81 -0
- huaweicloudsdkaom/v3/model/delete_sub_app_request.py +107 -0
- huaweicloudsdkaom/v3/model/delete_sub_app_response.py +108 -0
- huaweicloudsdkaom/v3/model/env_param.py +278 -0
- huaweicloudsdkaom/v3/model/list_resource_under_node_request.py +160 -0
- huaweicloudsdkaom/v3/model/list_resource_under_node_response.py +141 -0
- huaweicloudsdkaom/v3/model/page_resource_list_param.py +310 -0
- huaweicloudsdkaom/v3/model/show_app_by_name_request.py +137 -0
- huaweicloudsdkaom/v3/model/show_app_by_name_response.py +402 -0
- huaweicloudsdkaom/v3/model/show_app_request.py +107 -0
- huaweicloudsdkaom/v3/model/show_app_response.py +402 -0
- huaweicloudsdkaom/v3/model/show_component_by_name_request.py +135 -0
- huaweicloudsdkaom/v3/model/show_component_by_name_response.py +199 -0
- huaweicloudsdkaom/v3/model/show_component_request.py +107 -0
- huaweicloudsdkaom/v3/model/show_component_response.py +402 -0
- huaweicloudsdkaom/v3/model/show_env_by_name_request.py +163 -0
- huaweicloudsdkaom/v3/model/show_env_by_name_response.py +518 -0
- huaweicloudsdkaom/v3/model/show_env_request.py +107 -0
- huaweicloudsdkaom/v3/model/show_env_response.py +518 -0
- huaweicloudsdkaom/v3/model/sub_app_create_param.py +221 -0
- huaweicloudsdkaom/v3/model/sub_app_update_param.py +165 -0
- huaweicloudsdkaom/v3/model/tag_name_and_id_vo.py +137 -0
- huaweicloudsdkaom/v3/model/update_app_request.py +132 -0
- huaweicloudsdkaom/v3/model/update_app_response.py +81 -0
- huaweicloudsdkaom/v3/model/update_component_request.py +132 -0
- huaweicloudsdkaom/v3/model/update_component_response.py +81 -0
- huaweicloudsdkaom/v3/model/update_env_request.py +132 -0
- huaweicloudsdkaom/v3/model/update_env_response.py +81 -0
- huaweicloudsdkaom/v3/model/update_sub_app_request.py +132 -0
- huaweicloudsdkaom/v3/model/update_sub_app_response.py +81 -0
- huaweicloudsdkaom/v3/model/waterfall_page_list_param.py +137 -0
- huaweicloudsdkaom/v3/region/__init__.py +0 -0
- huaweicloudsdkaom/v3/region/aom_region.py +121 -0
- huaweicloudsdkaom/v4/__init__.py +21 -0
- huaweicloudsdkaom/v4/aom_async_client.py +280 -0
- huaweicloudsdkaom/v4/aom_client.py +277 -0
- huaweicloudsdkaom/v4/model/__init__.py +18 -0
- huaweicloudsdkaom/v4/model/agent_batch_import_param_new.py +273 -0
- huaweicloudsdkaom/v4/model/agent_import_param_new.py +306 -0
- huaweicloudsdkaom/v4/model/agent_info_param.py +224 -0
- huaweicloudsdkaom/v4/model/agent_info_result.py +456 -0
- huaweicloudsdkaom/v4/model/agent_upgrade_param.py +135 -0
- huaweicloudsdkaom/v4/model/batch_import_agent_request.py +132 -0
- huaweicloudsdkaom/v4/model/batch_import_agent_response.py +112 -0
- huaweicloudsdkaom/v4/model/batch_update_agent_request.py +104 -0
- huaweicloudsdkaom/v4/model/batch_update_agent_response.py +112 -0
- huaweicloudsdkaom/v4/model/plugin_install_basic_param.py +166 -0
- huaweicloudsdkaom/v4/model/show_agent_infos_request.py +104 -0
- huaweicloudsdkaom/v4/model/show_agent_infos_response.py +199 -0
- huaweicloudsdkaom/v4/model/single_agent_param.py +135 -0
- huaweicloudsdkaom/v4/region/__init__.py +0 -0
- huaweicloudsdkaom/v4/region/aom_region.py +121 -0
- huaweicloudsdkaom-3.1.174.dist-info/METADATA +25 -0
- huaweicloudsdkaom-3.1.174.dist-info/RECORD +368 -0
- huaweicloudsdkaom-3.1.174.dist-info/WHEEL +4 -0
- huaweicloudsdkaom-3.1.174.dist-info/licenses/LICENSE +13 -0
|
@@ -0,0 +1,800 @@
|
|
|
1
|
+
# coding: utf-8
|
|
2
|
+
|
|
3
|
+
from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
class TemplateTriggerCondition:
|
|
7
|
+
|
|
8
|
+
"""
|
|
9
|
+
Attributes:
|
|
10
|
+
openapi_types (dict): The key is attribute name
|
|
11
|
+
and the value is attribute type.
|
|
12
|
+
attribute_map (dict): The key is attribute name
|
|
13
|
+
and the value is json key in definition.
|
|
14
|
+
"""
|
|
15
|
+
sensitive_list = []
|
|
16
|
+
|
|
17
|
+
openapi_types = {
|
|
18
|
+
'metric_query_mode': 'str',
|
|
19
|
+
'metric_namespace': 'str',
|
|
20
|
+
'metric_name': 'str',
|
|
21
|
+
'metric_unit': 'str',
|
|
22
|
+
'metric_labels': 'list[str]',
|
|
23
|
+
'promql': 'str',
|
|
24
|
+
'promql_expr': 'str',
|
|
25
|
+
'trigger_times': 'int',
|
|
26
|
+
'trigger_interval': 'str',
|
|
27
|
+
'trigger_type': 'str',
|
|
28
|
+
'promql_for': 'str',
|
|
29
|
+
'aggregation_type': 'str',
|
|
30
|
+
'operator': 'str',
|
|
31
|
+
'thresholds': 'dict(str, str)',
|
|
32
|
+
'aggregation_window': 'str',
|
|
33
|
+
'cmdb': 'CmdbInfo',
|
|
34
|
+
'query_match': 'str',
|
|
35
|
+
'aom_monitor_level': 'str',
|
|
36
|
+
'aggregate_type': 'str',
|
|
37
|
+
'metric_statistic_method': 'str',
|
|
38
|
+
'expression': 'str',
|
|
39
|
+
'mix_promql': 'str',
|
|
40
|
+
'alarm_message_template': 'str',
|
|
41
|
+
'promql_monitor_templates': 'list[str]',
|
|
42
|
+
'query_param': 'object'
|
|
43
|
+
}
|
|
44
|
+
|
|
45
|
+
attribute_map = {
|
|
46
|
+
'metric_query_mode': 'metric_query_mode',
|
|
47
|
+
'metric_namespace': 'metric_namespace',
|
|
48
|
+
'metric_name': 'metric_name',
|
|
49
|
+
'metric_unit': 'metric_unit',
|
|
50
|
+
'metric_labels': 'metric_labels',
|
|
51
|
+
'promql': 'promql',
|
|
52
|
+
'promql_expr': 'promql_expr',
|
|
53
|
+
'trigger_times': 'trigger_times',
|
|
54
|
+
'trigger_interval': 'trigger_interval',
|
|
55
|
+
'trigger_type': 'trigger_type',
|
|
56
|
+
'promql_for': 'promql_for',
|
|
57
|
+
'aggregation_type': 'aggregation_type',
|
|
58
|
+
'operator': 'operator',
|
|
59
|
+
'thresholds': 'thresholds',
|
|
60
|
+
'aggregation_window': 'aggregation_window',
|
|
61
|
+
'cmdb': 'cmdb',
|
|
62
|
+
'query_match': 'query_match',
|
|
63
|
+
'aom_monitor_level': 'aom_monitor_level',
|
|
64
|
+
'aggregate_type': 'aggregate_type',
|
|
65
|
+
'metric_statistic_method': 'metric_statistic_method',
|
|
66
|
+
'expression': 'expression',
|
|
67
|
+
'mix_promql': 'mix_promql',
|
|
68
|
+
'alarm_message_template': 'alarm_message_template',
|
|
69
|
+
'promql_monitor_templates': 'promql_monitor_templates',
|
|
70
|
+
'query_param': 'query_param'
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
def __init__(self, metric_query_mode=None, metric_namespace=None, metric_name=None, metric_unit=None, metric_labels=None, promql=None, promql_expr=None, trigger_times=None, trigger_interval=None, trigger_type=None, promql_for=None, aggregation_type=None, operator=None, thresholds=None, aggregation_window=None, cmdb=None, query_match=None, aom_monitor_level=None, aggregate_type=None, metric_statistic_method=None, expression=None, mix_promql=None, alarm_message_template=None, promql_monitor_templates=None, query_param=None):
|
|
74
|
+
r"""TemplateTriggerCondition
|
|
75
|
+
|
|
76
|
+
The model defined in huaweicloud sdk
|
|
77
|
+
|
|
78
|
+
:param metric_query_mode: 指标查询模式。 - “AOM”:AOM原生 - “PROM”:AOM Prometheus - “NATIVE_PROM”:原生Prometheus
|
|
79
|
+
:type metric_query_mode: str
|
|
80
|
+
:param metric_namespace: 指标命名空间。
|
|
81
|
+
:type metric_namespace: str
|
|
82
|
+
:param metric_name: 指标名称。
|
|
83
|
+
:type metric_name: str
|
|
84
|
+
:param metric_unit: 指标单位。
|
|
85
|
+
:type metric_unit: str
|
|
86
|
+
:param metric_labels: 指标维度。
|
|
87
|
+
:type metric_labels: list[str]
|
|
88
|
+
:param promql: Prometheus语句。
|
|
89
|
+
:type promql: str
|
|
90
|
+
:param promql_expr: Prometheus语句模板。
|
|
91
|
+
:type promql_expr: str
|
|
92
|
+
:param trigger_times: 连续周期个数。
|
|
93
|
+
:type trigger_times: int
|
|
94
|
+
:param trigger_interval: 检查频率周期。 - 当trigger_type 为“HOURLY”时,填“” - 当trigger_type为“DAILY”时,格式为:“小时” 。例如每天凌晨三点\"03:00\"。 - 当trigger_type为“WEEKLY”时,格式为:“星期 小时”。例如每周一凌晨三点 “1 03:00”。 - 当trigger_type为“CRON”时,格式为标准CRON表达式。 - 当trigger_type为“FIXED_RATE”时,秒的取值为15s,30s,分钟为 1~59,小时为 1~24。例如“15s”,“30s”,“1min”,“1h”。
|
|
95
|
+
:type trigger_interval: str
|
|
96
|
+
:param trigger_type: 触发频率的类型: - “FIXED_RATE”:固定间隔 - “HOURLY”:每小时 - “DAILY”:每天 - “WEEKLY”:每周 - “CRON”:Cron表达式
|
|
97
|
+
:type trigger_type: str
|
|
98
|
+
:param promql_for: 持续时间。 持续时间范围: - “0”:立即 - “15s”:15秒 - “30s”:30秒 - “1m”:1分钟
|
|
99
|
+
:type promql_for: str
|
|
100
|
+
:param aggregation_type: 检测规则: - average:平均值 - minimum:最小值 - maximum:最大值 - sum:总计 - sampleCount:样本
|
|
101
|
+
:type aggregation_type: str
|
|
102
|
+
:param operator: 判断条件:“>”,“<”,“=”,“>=”,“<=”
|
|
103
|
+
:type operator: str
|
|
104
|
+
:param thresholds: 键值对形式,键为告警级别,值为告警阈值
|
|
105
|
+
:type thresholds: dict(str, str)
|
|
106
|
+
:param aggregation_window: 统计周期。 - “15s”:15秒 - “30s”:30秒 - “1m”:1分钟 - “5m”:5分钟 - “15m”:15分钟 - “1h”:1小时
|
|
107
|
+
:type aggregation_window: str
|
|
108
|
+
:param cmdb:
|
|
109
|
+
:type cmdb: :class:`huaweicloudsdkaom.v2.CmdbInfo`
|
|
110
|
+
:param query_match: 查询筛选条件。
|
|
111
|
+
:type query_match: str
|
|
112
|
+
:param aom_monitor_level: 监控层级。
|
|
113
|
+
:type aom_monitor_level: str
|
|
114
|
+
:param aggregate_type: 聚合方式。 - “by”:不分组 - “avg” - “max” - “min” - “sum”
|
|
115
|
+
:type aggregate_type: str
|
|
116
|
+
:param metric_statistic_method: 当配置方式为全量指标时可选择的指标运算方式。 - “single”:单个指标进行运算 - “mix”:多个指标进行混合运算
|
|
117
|
+
:type metric_statistic_method: str
|
|
118
|
+
:param expression: 混合运算的表达式。
|
|
119
|
+
:type expression: str
|
|
120
|
+
:param mix_promql: 混合运算的promQL。
|
|
121
|
+
:type mix_promql: str
|
|
122
|
+
:param alarm_message_template: 通知内容。
|
|
123
|
+
:type alarm_message_template: str
|
|
124
|
+
:param promql_monitor_templates: Prometheus监控模板。默认为cluster。
|
|
125
|
+
:type promql_monitor_templates: list[str]
|
|
126
|
+
:param query_param: - PromQL告警规则,该参数为\"{\\\"defaultRule\\\":{\\\"label\\\":\\\"自定义\\\",\\\"id\\\":\\\"custom\\\"},\\\"templateSelectd\\\":null,\\\"dimensionsList\\\":[]}\" - 阈值告警规则,该参数为空。
|
|
127
|
+
:type query_param: object
|
|
128
|
+
"""
|
|
129
|
+
|
|
130
|
+
|
|
131
|
+
|
|
132
|
+
self._metric_query_mode = None
|
|
133
|
+
self._metric_namespace = None
|
|
134
|
+
self._metric_name = None
|
|
135
|
+
self._metric_unit = None
|
|
136
|
+
self._metric_labels = None
|
|
137
|
+
self._promql = None
|
|
138
|
+
self._promql_expr = None
|
|
139
|
+
self._trigger_times = None
|
|
140
|
+
self._trigger_interval = None
|
|
141
|
+
self._trigger_type = None
|
|
142
|
+
self._promql_for = None
|
|
143
|
+
self._aggregation_type = None
|
|
144
|
+
self._operator = None
|
|
145
|
+
self._thresholds = None
|
|
146
|
+
self._aggregation_window = None
|
|
147
|
+
self._cmdb = None
|
|
148
|
+
self._query_match = None
|
|
149
|
+
self._aom_monitor_level = None
|
|
150
|
+
self._aggregate_type = None
|
|
151
|
+
self._metric_statistic_method = None
|
|
152
|
+
self._expression = None
|
|
153
|
+
self._mix_promql = None
|
|
154
|
+
self._alarm_message_template = None
|
|
155
|
+
self._promql_monitor_templates = None
|
|
156
|
+
self._query_param = None
|
|
157
|
+
self.discriminator = None
|
|
158
|
+
|
|
159
|
+
if metric_query_mode is not None:
|
|
160
|
+
self.metric_query_mode = metric_query_mode
|
|
161
|
+
if metric_namespace is not None:
|
|
162
|
+
self.metric_namespace = metric_namespace
|
|
163
|
+
if metric_name is not None:
|
|
164
|
+
self.metric_name = metric_name
|
|
165
|
+
if metric_unit is not None:
|
|
166
|
+
self.metric_unit = metric_unit
|
|
167
|
+
if metric_labels is not None:
|
|
168
|
+
self.metric_labels = metric_labels
|
|
169
|
+
if promql is not None:
|
|
170
|
+
self.promql = promql
|
|
171
|
+
if promql_expr is not None:
|
|
172
|
+
self.promql_expr = promql_expr
|
|
173
|
+
if trigger_times is not None:
|
|
174
|
+
self.trigger_times = trigger_times
|
|
175
|
+
if trigger_interval is not None:
|
|
176
|
+
self.trigger_interval = trigger_interval
|
|
177
|
+
if trigger_type is not None:
|
|
178
|
+
self.trigger_type = trigger_type
|
|
179
|
+
if promql_for is not None:
|
|
180
|
+
self.promql_for = promql_for
|
|
181
|
+
if aggregation_type is not None:
|
|
182
|
+
self.aggregation_type = aggregation_type
|
|
183
|
+
if operator is not None:
|
|
184
|
+
self.operator = operator
|
|
185
|
+
if thresholds is not None:
|
|
186
|
+
self.thresholds = thresholds
|
|
187
|
+
if aggregation_window is not None:
|
|
188
|
+
self.aggregation_window = aggregation_window
|
|
189
|
+
if cmdb is not None:
|
|
190
|
+
self.cmdb = cmdb
|
|
191
|
+
if query_match is not None:
|
|
192
|
+
self.query_match = query_match
|
|
193
|
+
if aom_monitor_level is not None:
|
|
194
|
+
self.aom_monitor_level = aom_monitor_level
|
|
195
|
+
if aggregate_type is not None:
|
|
196
|
+
self.aggregate_type = aggregate_type
|
|
197
|
+
if metric_statistic_method is not None:
|
|
198
|
+
self.metric_statistic_method = metric_statistic_method
|
|
199
|
+
if expression is not None:
|
|
200
|
+
self.expression = expression
|
|
201
|
+
if mix_promql is not None:
|
|
202
|
+
self.mix_promql = mix_promql
|
|
203
|
+
if alarm_message_template is not None:
|
|
204
|
+
self.alarm_message_template = alarm_message_template
|
|
205
|
+
if promql_monitor_templates is not None:
|
|
206
|
+
self.promql_monitor_templates = promql_monitor_templates
|
|
207
|
+
if query_param is not None:
|
|
208
|
+
self.query_param = query_param
|
|
209
|
+
|
|
210
|
+
@property
|
|
211
|
+
def metric_query_mode(self):
|
|
212
|
+
r"""Gets the metric_query_mode of this TemplateTriggerCondition.
|
|
213
|
+
|
|
214
|
+
指标查询模式。 - “AOM”:AOM原生 - “PROM”:AOM Prometheus - “NATIVE_PROM”:原生Prometheus
|
|
215
|
+
|
|
216
|
+
:return: The metric_query_mode of this TemplateTriggerCondition.
|
|
217
|
+
:rtype: str
|
|
218
|
+
"""
|
|
219
|
+
return self._metric_query_mode
|
|
220
|
+
|
|
221
|
+
@metric_query_mode.setter
|
|
222
|
+
def metric_query_mode(self, metric_query_mode):
|
|
223
|
+
r"""Sets the metric_query_mode of this TemplateTriggerCondition.
|
|
224
|
+
|
|
225
|
+
指标查询模式。 - “AOM”:AOM原生 - “PROM”:AOM Prometheus - “NATIVE_PROM”:原生Prometheus
|
|
226
|
+
|
|
227
|
+
:param metric_query_mode: The metric_query_mode of this TemplateTriggerCondition.
|
|
228
|
+
:type metric_query_mode: str
|
|
229
|
+
"""
|
|
230
|
+
self._metric_query_mode = metric_query_mode
|
|
231
|
+
|
|
232
|
+
@property
|
|
233
|
+
def metric_namespace(self):
|
|
234
|
+
r"""Gets the metric_namespace of this TemplateTriggerCondition.
|
|
235
|
+
|
|
236
|
+
指标命名空间。
|
|
237
|
+
|
|
238
|
+
:return: The metric_namespace of this TemplateTriggerCondition.
|
|
239
|
+
:rtype: str
|
|
240
|
+
"""
|
|
241
|
+
return self._metric_namespace
|
|
242
|
+
|
|
243
|
+
@metric_namespace.setter
|
|
244
|
+
def metric_namespace(self, metric_namespace):
|
|
245
|
+
r"""Sets the metric_namespace of this TemplateTriggerCondition.
|
|
246
|
+
|
|
247
|
+
指标命名空间。
|
|
248
|
+
|
|
249
|
+
:param metric_namespace: The metric_namespace of this TemplateTriggerCondition.
|
|
250
|
+
:type metric_namespace: str
|
|
251
|
+
"""
|
|
252
|
+
self._metric_namespace = metric_namespace
|
|
253
|
+
|
|
254
|
+
@property
|
|
255
|
+
def metric_name(self):
|
|
256
|
+
r"""Gets the metric_name of this TemplateTriggerCondition.
|
|
257
|
+
|
|
258
|
+
指标名称。
|
|
259
|
+
|
|
260
|
+
:return: The metric_name of this TemplateTriggerCondition.
|
|
261
|
+
:rtype: str
|
|
262
|
+
"""
|
|
263
|
+
return self._metric_name
|
|
264
|
+
|
|
265
|
+
@metric_name.setter
|
|
266
|
+
def metric_name(self, metric_name):
|
|
267
|
+
r"""Sets the metric_name of this TemplateTriggerCondition.
|
|
268
|
+
|
|
269
|
+
指标名称。
|
|
270
|
+
|
|
271
|
+
:param metric_name: The metric_name of this TemplateTriggerCondition.
|
|
272
|
+
:type metric_name: str
|
|
273
|
+
"""
|
|
274
|
+
self._metric_name = metric_name
|
|
275
|
+
|
|
276
|
+
@property
|
|
277
|
+
def metric_unit(self):
|
|
278
|
+
r"""Gets the metric_unit of this TemplateTriggerCondition.
|
|
279
|
+
|
|
280
|
+
指标单位。
|
|
281
|
+
|
|
282
|
+
:return: The metric_unit of this TemplateTriggerCondition.
|
|
283
|
+
:rtype: str
|
|
284
|
+
"""
|
|
285
|
+
return self._metric_unit
|
|
286
|
+
|
|
287
|
+
@metric_unit.setter
|
|
288
|
+
def metric_unit(self, metric_unit):
|
|
289
|
+
r"""Sets the metric_unit of this TemplateTriggerCondition.
|
|
290
|
+
|
|
291
|
+
指标单位。
|
|
292
|
+
|
|
293
|
+
:param metric_unit: The metric_unit of this TemplateTriggerCondition.
|
|
294
|
+
:type metric_unit: str
|
|
295
|
+
"""
|
|
296
|
+
self._metric_unit = metric_unit
|
|
297
|
+
|
|
298
|
+
@property
|
|
299
|
+
def metric_labels(self):
|
|
300
|
+
r"""Gets the metric_labels of this TemplateTriggerCondition.
|
|
301
|
+
|
|
302
|
+
指标维度。
|
|
303
|
+
|
|
304
|
+
:return: The metric_labels of this TemplateTriggerCondition.
|
|
305
|
+
:rtype: list[str]
|
|
306
|
+
"""
|
|
307
|
+
return self._metric_labels
|
|
308
|
+
|
|
309
|
+
@metric_labels.setter
|
|
310
|
+
def metric_labels(self, metric_labels):
|
|
311
|
+
r"""Sets the metric_labels of this TemplateTriggerCondition.
|
|
312
|
+
|
|
313
|
+
指标维度。
|
|
314
|
+
|
|
315
|
+
:param metric_labels: The metric_labels of this TemplateTriggerCondition.
|
|
316
|
+
:type metric_labels: list[str]
|
|
317
|
+
"""
|
|
318
|
+
self._metric_labels = metric_labels
|
|
319
|
+
|
|
320
|
+
@property
|
|
321
|
+
def promql(self):
|
|
322
|
+
r"""Gets the promql of this TemplateTriggerCondition.
|
|
323
|
+
|
|
324
|
+
Prometheus语句。
|
|
325
|
+
|
|
326
|
+
:return: The promql of this TemplateTriggerCondition.
|
|
327
|
+
:rtype: str
|
|
328
|
+
"""
|
|
329
|
+
return self._promql
|
|
330
|
+
|
|
331
|
+
@promql.setter
|
|
332
|
+
def promql(self, promql):
|
|
333
|
+
r"""Sets the promql of this TemplateTriggerCondition.
|
|
334
|
+
|
|
335
|
+
Prometheus语句。
|
|
336
|
+
|
|
337
|
+
:param promql: The promql of this TemplateTriggerCondition.
|
|
338
|
+
:type promql: str
|
|
339
|
+
"""
|
|
340
|
+
self._promql = promql
|
|
341
|
+
|
|
342
|
+
@property
|
|
343
|
+
def promql_expr(self):
|
|
344
|
+
r"""Gets the promql_expr of this TemplateTriggerCondition.
|
|
345
|
+
|
|
346
|
+
Prometheus语句模板。
|
|
347
|
+
|
|
348
|
+
:return: The promql_expr of this TemplateTriggerCondition.
|
|
349
|
+
:rtype: str
|
|
350
|
+
"""
|
|
351
|
+
return self._promql_expr
|
|
352
|
+
|
|
353
|
+
@promql_expr.setter
|
|
354
|
+
def promql_expr(self, promql_expr):
|
|
355
|
+
r"""Sets the promql_expr of this TemplateTriggerCondition.
|
|
356
|
+
|
|
357
|
+
Prometheus语句模板。
|
|
358
|
+
|
|
359
|
+
:param promql_expr: The promql_expr of this TemplateTriggerCondition.
|
|
360
|
+
:type promql_expr: str
|
|
361
|
+
"""
|
|
362
|
+
self._promql_expr = promql_expr
|
|
363
|
+
|
|
364
|
+
@property
|
|
365
|
+
def trigger_times(self):
|
|
366
|
+
r"""Gets the trigger_times of this TemplateTriggerCondition.
|
|
367
|
+
|
|
368
|
+
连续周期个数。
|
|
369
|
+
|
|
370
|
+
:return: The trigger_times of this TemplateTriggerCondition.
|
|
371
|
+
:rtype: int
|
|
372
|
+
"""
|
|
373
|
+
return self._trigger_times
|
|
374
|
+
|
|
375
|
+
@trigger_times.setter
|
|
376
|
+
def trigger_times(self, trigger_times):
|
|
377
|
+
r"""Sets the trigger_times of this TemplateTriggerCondition.
|
|
378
|
+
|
|
379
|
+
连续周期个数。
|
|
380
|
+
|
|
381
|
+
:param trigger_times: The trigger_times of this TemplateTriggerCondition.
|
|
382
|
+
:type trigger_times: int
|
|
383
|
+
"""
|
|
384
|
+
self._trigger_times = trigger_times
|
|
385
|
+
|
|
386
|
+
@property
|
|
387
|
+
def trigger_interval(self):
|
|
388
|
+
r"""Gets the trigger_interval of this TemplateTriggerCondition.
|
|
389
|
+
|
|
390
|
+
检查频率周期。 - 当trigger_type 为“HOURLY”时,填“” - 当trigger_type为“DAILY”时,格式为:“小时” 。例如每天凌晨三点\"03:00\"。 - 当trigger_type为“WEEKLY”时,格式为:“星期 小时”。例如每周一凌晨三点 “1 03:00”。 - 当trigger_type为“CRON”时,格式为标准CRON表达式。 - 当trigger_type为“FIXED_RATE”时,秒的取值为15s,30s,分钟为 1~59,小时为 1~24。例如“15s”,“30s”,“1min”,“1h”。
|
|
391
|
+
|
|
392
|
+
:return: The trigger_interval of this TemplateTriggerCondition.
|
|
393
|
+
:rtype: str
|
|
394
|
+
"""
|
|
395
|
+
return self._trigger_interval
|
|
396
|
+
|
|
397
|
+
@trigger_interval.setter
|
|
398
|
+
def trigger_interval(self, trigger_interval):
|
|
399
|
+
r"""Sets the trigger_interval of this TemplateTriggerCondition.
|
|
400
|
+
|
|
401
|
+
检查频率周期。 - 当trigger_type 为“HOURLY”时,填“” - 当trigger_type为“DAILY”时,格式为:“小时” 。例如每天凌晨三点\"03:00\"。 - 当trigger_type为“WEEKLY”时,格式为:“星期 小时”。例如每周一凌晨三点 “1 03:00”。 - 当trigger_type为“CRON”时,格式为标准CRON表达式。 - 当trigger_type为“FIXED_RATE”时,秒的取值为15s,30s,分钟为 1~59,小时为 1~24。例如“15s”,“30s”,“1min”,“1h”。
|
|
402
|
+
|
|
403
|
+
:param trigger_interval: The trigger_interval of this TemplateTriggerCondition.
|
|
404
|
+
:type trigger_interval: str
|
|
405
|
+
"""
|
|
406
|
+
self._trigger_interval = trigger_interval
|
|
407
|
+
|
|
408
|
+
@property
|
|
409
|
+
def trigger_type(self):
|
|
410
|
+
r"""Gets the trigger_type of this TemplateTriggerCondition.
|
|
411
|
+
|
|
412
|
+
触发频率的类型: - “FIXED_RATE”:固定间隔 - “HOURLY”:每小时 - “DAILY”:每天 - “WEEKLY”:每周 - “CRON”:Cron表达式
|
|
413
|
+
|
|
414
|
+
:return: The trigger_type of this TemplateTriggerCondition.
|
|
415
|
+
:rtype: str
|
|
416
|
+
"""
|
|
417
|
+
return self._trigger_type
|
|
418
|
+
|
|
419
|
+
@trigger_type.setter
|
|
420
|
+
def trigger_type(self, trigger_type):
|
|
421
|
+
r"""Sets the trigger_type of this TemplateTriggerCondition.
|
|
422
|
+
|
|
423
|
+
触发频率的类型: - “FIXED_RATE”:固定间隔 - “HOURLY”:每小时 - “DAILY”:每天 - “WEEKLY”:每周 - “CRON”:Cron表达式
|
|
424
|
+
|
|
425
|
+
:param trigger_type: The trigger_type of this TemplateTriggerCondition.
|
|
426
|
+
:type trigger_type: str
|
|
427
|
+
"""
|
|
428
|
+
self._trigger_type = trigger_type
|
|
429
|
+
|
|
430
|
+
@property
|
|
431
|
+
def promql_for(self):
|
|
432
|
+
r"""Gets the promql_for of this TemplateTriggerCondition.
|
|
433
|
+
|
|
434
|
+
持续时间。 持续时间范围: - “0”:立即 - “15s”:15秒 - “30s”:30秒 - “1m”:1分钟
|
|
435
|
+
|
|
436
|
+
:return: The promql_for of this TemplateTriggerCondition.
|
|
437
|
+
:rtype: str
|
|
438
|
+
"""
|
|
439
|
+
return self._promql_for
|
|
440
|
+
|
|
441
|
+
@promql_for.setter
|
|
442
|
+
def promql_for(self, promql_for):
|
|
443
|
+
r"""Sets the promql_for of this TemplateTriggerCondition.
|
|
444
|
+
|
|
445
|
+
持续时间。 持续时间范围: - “0”:立即 - “15s”:15秒 - “30s”:30秒 - “1m”:1分钟
|
|
446
|
+
|
|
447
|
+
:param promql_for: The promql_for of this TemplateTriggerCondition.
|
|
448
|
+
:type promql_for: str
|
|
449
|
+
"""
|
|
450
|
+
self._promql_for = promql_for
|
|
451
|
+
|
|
452
|
+
@property
|
|
453
|
+
def aggregation_type(self):
|
|
454
|
+
r"""Gets the aggregation_type of this TemplateTriggerCondition.
|
|
455
|
+
|
|
456
|
+
检测规则: - average:平均值 - minimum:最小值 - maximum:最大值 - sum:总计 - sampleCount:样本
|
|
457
|
+
|
|
458
|
+
:return: The aggregation_type of this TemplateTriggerCondition.
|
|
459
|
+
:rtype: str
|
|
460
|
+
"""
|
|
461
|
+
return self._aggregation_type
|
|
462
|
+
|
|
463
|
+
@aggregation_type.setter
|
|
464
|
+
def aggregation_type(self, aggregation_type):
|
|
465
|
+
r"""Sets the aggregation_type of this TemplateTriggerCondition.
|
|
466
|
+
|
|
467
|
+
检测规则: - average:平均值 - minimum:最小值 - maximum:最大值 - sum:总计 - sampleCount:样本
|
|
468
|
+
|
|
469
|
+
:param aggregation_type: The aggregation_type of this TemplateTriggerCondition.
|
|
470
|
+
:type aggregation_type: str
|
|
471
|
+
"""
|
|
472
|
+
self._aggregation_type = aggregation_type
|
|
473
|
+
|
|
474
|
+
@property
|
|
475
|
+
def operator(self):
|
|
476
|
+
r"""Gets the operator of this TemplateTriggerCondition.
|
|
477
|
+
|
|
478
|
+
判断条件:“>”,“<”,“=”,“>=”,“<=”
|
|
479
|
+
|
|
480
|
+
:return: The operator of this TemplateTriggerCondition.
|
|
481
|
+
:rtype: str
|
|
482
|
+
"""
|
|
483
|
+
return self._operator
|
|
484
|
+
|
|
485
|
+
@operator.setter
|
|
486
|
+
def operator(self, operator):
|
|
487
|
+
r"""Sets the operator of this TemplateTriggerCondition.
|
|
488
|
+
|
|
489
|
+
判断条件:“>”,“<”,“=”,“>=”,“<=”
|
|
490
|
+
|
|
491
|
+
:param operator: The operator of this TemplateTriggerCondition.
|
|
492
|
+
:type operator: str
|
|
493
|
+
"""
|
|
494
|
+
self._operator = operator
|
|
495
|
+
|
|
496
|
+
@property
|
|
497
|
+
def thresholds(self):
|
|
498
|
+
r"""Gets the thresholds of this TemplateTriggerCondition.
|
|
499
|
+
|
|
500
|
+
键值对形式,键为告警级别,值为告警阈值
|
|
501
|
+
|
|
502
|
+
:return: The thresholds of this TemplateTriggerCondition.
|
|
503
|
+
:rtype: dict(str, str)
|
|
504
|
+
"""
|
|
505
|
+
return self._thresholds
|
|
506
|
+
|
|
507
|
+
@thresholds.setter
|
|
508
|
+
def thresholds(self, thresholds):
|
|
509
|
+
r"""Sets the thresholds of this TemplateTriggerCondition.
|
|
510
|
+
|
|
511
|
+
键值对形式,键为告警级别,值为告警阈值
|
|
512
|
+
|
|
513
|
+
:param thresholds: The thresholds of this TemplateTriggerCondition.
|
|
514
|
+
:type thresholds: dict(str, str)
|
|
515
|
+
"""
|
|
516
|
+
self._thresholds = thresholds
|
|
517
|
+
|
|
518
|
+
@property
|
|
519
|
+
def aggregation_window(self):
|
|
520
|
+
r"""Gets the aggregation_window of this TemplateTriggerCondition.
|
|
521
|
+
|
|
522
|
+
统计周期。 - “15s”:15秒 - “30s”:30秒 - “1m”:1分钟 - “5m”:5分钟 - “15m”:15分钟 - “1h”:1小时
|
|
523
|
+
|
|
524
|
+
:return: The aggregation_window of this TemplateTriggerCondition.
|
|
525
|
+
:rtype: str
|
|
526
|
+
"""
|
|
527
|
+
return self._aggregation_window
|
|
528
|
+
|
|
529
|
+
@aggregation_window.setter
|
|
530
|
+
def aggregation_window(self, aggregation_window):
|
|
531
|
+
r"""Sets the aggregation_window of this TemplateTriggerCondition.
|
|
532
|
+
|
|
533
|
+
统计周期。 - “15s”:15秒 - “30s”:30秒 - “1m”:1分钟 - “5m”:5分钟 - “15m”:15分钟 - “1h”:1小时
|
|
534
|
+
|
|
535
|
+
:param aggregation_window: The aggregation_window of this TemplateTriggerCondition.
|
|
536
|
+
:type aggregation_window: str
|
|
537
|
+
"""
|
|
538
|
+
self._aggregation_window = aggregation_window
|
|
539
|
+
|
|
540
|
+
@property
|
|
541
|
+
def cmdb(self):
|
|
542
|
+
r"""Gets the cmdb of this TemplateTriggerCondition.
|
|
543
|
+
|
|
544
|
+
:return: The cmdb of this TemplateTriggerCondition.
|
|
545
|
+
:rtype: :class:`huaweicloudsdkaom.v2.CmdbInfo`
|
|
546
|
+
"""
|
|
547
|
+
return self._cmdb
|
|
548
|
+
|
|
549
|
+
@cmdb.setter
|
|
550
|
+
def cmdb(self, cmdb):
|
|
551
|
+
r"""Sets the cmdb of this TemplateTriggerCondition.
|
|
552
|
+
|
|
553
|
+
:param cmdb: The cmdb of this TemplateTriggerCondition.
|
|
554
|
+
:type cmdb: :class:`huaweicloudsdkaom.v2.CmdbInfo`
|
|
555
|
+
"""
|
|
556
|
+
self._cmdb = cmdb
|
|
557
|
+
|
|
558
|
+
@property
|
|
559
|
+
def query_match(self):
|
|
560
|
+
r"""Gets the query_match of this TemplateTriggerCondition.
|
|
561
|
+
|
|
562
|
+
查询筛选条件。
|
|
563
|
+
|
|
564
|
+
:return: The query_match of this TemplateTriggerCondition.
|
|
565
|
+
:rtype: str
|
|
566
|
+
"""
|
|
567
|
+
return self._query_match
|
|
568
|
+
|
|
569
|
+
@query_match.setter
|
|
570
|
+
def query_match(self, query_match):
|
|
571
|
+
r"""Sets the query_match of this TemplateTriggerCondition.
|
|
572
|
+
|
|
573
|
+
查询筛选条件。
|
|
574
|
+
|
|
575
|
+
:param query_match: The query_match of this TemplateTriggerCondition.
|
|
576
|
+
:type query_match: str
|
|
577
|
+
"""
|
|
578
|
+
self._query_match = query_match
|
|
579
|
+
|
|
580
|
+
@property
|
|
581
|
+
def aom_monitor_level(self):
|
|
582
|
+
r"""Gets the aom_monitor_level of this TemplateTriggerCondition.
|
|
583
|
+
|
|
584
|
+
监控层级。
|
|
585
|
+
|
|
586
|
+
:return: The aom_monitor_level of this TemplateTriggerCondition.
|
|
587
|
+
:rtype: str
|
|
588
|
+
"""
|
|
589
|
+
return self._aom_monitor_level
|
|
590
|
+
|
|
591
|
+
@aom_monitor_level.setter
|
|
592
|
+
def aom_monitor_level(self, aom_monitor_level):
|
|
593
|
+
r"""Sets the aom_monitor_level of this TemplateTriggerCondition.
|
|
594
|
+
|
|
595
|
+
监控层级。
|
|
596
|
+
|
|
597
|
+
:param aom_monitor_level: The aom_monitor_level of this TemplateTriggerCondition.
|
|
598
|
+
:type aom_monitor_level: str
|
|
599
|
+
"""
|
|
600
|
+
self._aom_monitor_level = aom_monitor_level
|
|
601
|
+
|
|
602
|
+
@property
|
|
603
|
+
def aggregate_type(self):
|
|
604
|
+
r"""Gets the aggregate_type of this TemplateTriggerCondition.
|
|
605
|
+
|
|
606
|
+
聚合方式。 - “by”:不分组 - “avg” - “max” - “min” - “sum”
|
|
607
|
+
|
|
608
|
+
:return: The aggregate_type of this TemplateTriggerCondition.
|
|
609
|
+
:rtype: str
|
|
610
|
+
"""
|
|
611
|
+
return self._aggregate_type
|
|
612
|
+
|
|
613
|
+
@aggregate_type.setter
|
|
614
|
+
def aggregate_type(self, aggregate_type):
|
|
615
|
+
r"""Sets the aggregate_type of this TemplateTriggerCondition.
|
|
616
|
+
|
|
617
|
+
聚合方式。 - “by”:不分组 - “avg” - “max” - “min” - “sum”
|
|
618
|
+
|
|
619
|
+
:param aggregate_type: The aggregate_type of this TemplateTriggerCondition.
|
|
620
|
+
:type aggregate_type: str
|
|
621
|
+
"""
|
|
622
|
+
self._aggregate_type = aggregate_type
|
|
623
|
+
|
|
624
|
+
@property
|
|
625
|
+
def metric_statistic_method(self):
|
|
626
|
+
r"""Gets the metric_statistic_method of this TemplateTriggerCondition.
|
|
627
|
+
|
|
628
|
+
当配置方式为全量指标时可选择的指标运算方式。 - “single”:单个指标进行运算 - “mix”:多个指标进行混合运算
|
|
629
|
+
|
|
630
|
+
:return: The metric_statistic_method of this TemplateTriggerCondition.
|
|
631
|
+
:rtype: str
|
|
632
|
+
"""
|
|
633
|
+
return self._metric_statistic_method
|
|
634
|
+
|
|
635
|
+
@metric_statistic_method.setter
|
|
636
|
+
def metric_statistic_method(self, metric_statistic_method):
|
|
637
|
+
r"""Sets the metric_statistic_method of this TemplateTriggerCondition.
|
|
638
|
+
|
|
639
|
+
当配置方式为全量指标时可选择的指标运算方式。 - “single”:单个指标进行运算 - “mix”:多个指标进行混合运算
|
|
640
|
+
|
|
641
|
+
:param metric_statistic_method: The metric_statistic_method of this TemplateTriggerCondition.
|
|
642
|
+
:type metric_statistic_method: str
|
|
643
|
+
"""
|
|
644
|
+
self._metric_statistic_method = metric_statistic_method
|
|
645
|
+
|
|
646
|
+
@property
|
|
647
|
+
def expression(self):
|
|
648
|
+
r"""Gets the expression of this TemplateTriggerCondition.
|
|
649
|
+
|
|
650
|
+
混合运算的表达式。
|
|
651
|
+
|
|
652
|
+
:return: The expression of this TemplateTriggerCondition.
|
|
653
|
+
:rtype: str
|
|
654
|
+
"""
|
|
655
|
+
return self._expression
|
|
656
|
+
|
|
657
|
+
@expression.setter
|
|
658
|
+
def expression(self, expression):
|
|
659
|
+
r"""Sets the expression of this TemplateTriggerCondition.
|
|
660
|
+
|
|
661
|
+
混合运算的表达式。
|
|
662
|
+
|
|
663
|
+
:param expression: The expression of this TemplateTriggerCondition.
|
|
664
|
+
:type expression: str
|
|
665
|
+
"""
|
|
666
|
+
self._expression = expression
|
|
667
|
+
|
|
668
|
+
@property
|
|
669
|
+
def mix_promql(self):
|
|
670
|
+
r"""Gets the mix_promql of this TemplateTriggerCondition.
|
|
671
|
+
|
|
672
|
+
混合运算的promQL。
|
|
673
|
+
|
|
674
|
+
:return: The mix_promql of this TemplateTriggerCondition.
|
|
675
|
+
:rtype: str
|
|
676
|
+
"""
|
|
677
|
+
return self._mix_promql
|
|
678
|
+
|
|
679
|
+
@mix_promql.setter
|
|
680
|
+
def mix_promql(self, mix_promql):
|
|
681
|
+
r"""Sets the mix_promql of this TemplateTriggerCondition.
|
|
682
|
+
|
|
683
|
+
混合运算的promQL。
|
|
684
|
+
|
|
685
|
+
:param mix_promql: The mix_promql of this TemplateTriggerCondition.
|
|
686
|
+
:type mix_promql: str
|
|
687
|
+
"""
|
|
688
|
+
self._mix_promql = mix_promql
|
|
689
|
+
|
|
690
|
+
@property
|
|
691
|
+
def alarm_message_template(self):
|
|
692
|
+
r"""Gets the alarm_message_template of this TemplateTriggerCondition.
|
|
693
|
+
|
|
694
|
+
通知内容。
|
|
695
|
+
|
|
696
|
+
:return: The alarm_message_template of this TemplateTriggerCondition.
|
|
697
|
+
:rtype: str
|
|
698
|
+
"""
|
|
699
|
+
return self._alarm_message_template
|
|
700
|
+
|
|
701
|
+
@alarm_message_template.setter
|
|
702
|
+
def alarm_message_template(self, alarm_message_template):
|
|
703
|
+
r"""Sets the alarm_message_template of this TemplateTriggerCondition.
|
|
704
|
+
|
|
705
|
+
通知内容。
|
|
706
|
+
|
|
707
|
+
:param alarm_message_template: The alarm_message_template of this TemplateTriggerCondition.
|
|
708
|
+
:type alarm_message_template: str
|
|
709
|
+
"""
|
|
710
|
+
self._alarm_message_template = alarm_message_template
|
|
711
|
+
|
|
712
|
+
@property
|
|
713
|
+
def promql_monitor_templates(self):
|
|
714
|
+
r"""Gets the promql_monitor_templates of this TemplateTriggerCondition.
|
|
715
|
+
|
|
716
|
+
Prometheus监控模板。默认为cluster。
|
|
717
|
+
|
|
718
|
+
:return: The promql_monitor_templates of this TemplateTriggerCondition.
|
|
719
|
+
:rtype: list[str]
|
|
720
|
+
"""
|
|
721
|
+
return self._promql_monitor_templates
|
|
722
|
+
|
|
723
|
+
@promql_monitor_templates.setter
|
|
724
|
+
def promql_monitor_templates(self, promql_monitor_templates):
|
|
725
|
+
r"""Sets the promql_monitor_templates of this TemplateTriggerCondition.
|
|
726
|
+
|
|
727
|
+
Prometheus监控模板。默认为cluster。
|
|
728
|
+
|
|
729
|
+
:param promql_monitor_templates: The promql_monitor_templates of this TemplateTriggerCondition.
|
|
730
|
+
:type promql_monitor_templates: list[str]
|
|
731
|
+
"""
|
|
732
|
+
self._promql_monitor_templates = promql_monitor_templates
|
|
733
|
+
|
|
734
|
+
@property
|
|
735
|
+
def query_param(self):
|
|
736
|
+
r"""Gets the query_param of this TemplateTriggerCondition.
|
|
737
|
+
|
|
738
|
+
- PromQL告警规则,该参数为\"{\\\"defaultRule\\\":{\\\"label\\\":\\\"自定义\\\",\\\"id\\\":\\\"custom\\\"},\\\"templateSelectd\\\":null,\\\"dimensionsList\\\":[]}\" - 阈值告警规则,该参数为空。
|
|
739
|
+
|
|
740
|
+
:return: The query_param of this TemplateTriggerCondition.
|
|
741
|
+
:rtype: object
|
|
742
|
+
"""
|
|
743
|
+
return self._query_param
|
|
744
|
+
|
|
745
|
+
@query_param.setter
|
|
746
|
+
def query_param(self, query_param):
|
|
747
|
+
r"""Sets the query_param of this TemplateTriggerCondition.
|
|
748
|
+
|
|
749
|
+
- PromQL告警规则,该参数为\"{\\\"defaultRule\\\":{\\\"label\\\":\\\"自定义\\\",\\\"id\\\":\\\"custom\\\"},\\\"templateSelectd\\\":null,\\\"dimensionsList\\\":[]}\" - 阈值告警规则,该参数为空。
|
|
750
|
+
|
|
751
|
+
:param query_param: The query_param of this TemplateTriggerCondition.
|
|
752
|
+
:type query_param: object
|
|
753
|
+
"""
|
|
754
|
+
self._query_param = query_param
|
|
755
|
+
|
|
756
|
+
def to_dict(self):
|
|
757
|
+
result = {}
|
|
758
|
+
|
|
759
|
+
for attr, _ in self.openapi_types.items():
|
|
760
|
+
value = getattr(self, attr)
|
|
761
|
+
if isinstance(value, list):
|
|
762
|
+
result[attr] = list(map(
|
|
763
|
+
lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
|
|
764
|
+
value
|
|
765
|
+
))
|
|
766
|
+
elif hasattr(value, "to_dict"):
|
|
767
|
+
result[attr] = value.to_dict()
|
|
768
|
+
elif isinstance(value, dict):
|
|
769
|
+
result[attr] = dict(map(
|
|
770
|
+
lambda item: (item[0], item[1].to_dict())
|
|
771
|
+
if hasattr(item[1], "to_dict") else item,
|
|
772
|
+
value.items()
|
|
773
|
+
))
|
|
774
|
+
else:
|
|
775
|
+
if attr in self.sensitive_list:
|
|
776
|
+
result[attr] = "****"
|
|
777
|
+
else:
|
|
778
|
+
result[attr] = value
|
|
779
|
+
|
|
780
|
+
return result
|
|
781
|
+
|
|
782
|
+
def to_str(self):
|
|
783
|
+
"""Returns the string representation of the model"""
|
|
784
|
+
import simplejson as json
|
|
785
|
+
return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
|
|
786
|
+
|
|
787
|
+
def __repr__(self):
|
|
788
|
+
"""For `print`"""
|
|
789
|
+
return self.to_str()
|
|
790
|
+
|
|
791
|
+
def __eq__(self, other):
|
|
792
|
+
"""Returns true if both objects are equal"""
|
|
793
|
+
if not isinstance(other, TemplateTriggerCondition):
|
|
794
|
+
return False
|
|
795
|
+
|
|
796
|
+
return self.__dict__ == other.__dict__
|
|
797
|
+
|
|
798
|
+
def __ne__(self, other):
|
|
799
|
+
"""Returns true if both objects are not equal"""
|
|
800
|
+
return not self == other
|