The synaps.api.cloudwatch.monitor Module

class MonitorController

Bases: object

MonitorController provides the critical dispatch between inbound API calls through the endpoint and messages sent to the other nodes.

check_action_prefix(action_prefix)
check_alarm_description(alarm_description)
check_alarm_name(alarm_name)
check_alarm_name_prefix(alarm_name_prefix)
check_alarm_names(alarm_names)
check_comparison_operator(comparison_operator)
check_dimensions(dimensions)
check_history_item_type(history_item_type)
check_metric_name(metric_name)
check_namespace(namespace)
check_next_token(next_token)
check_state_reason(state_reason)
check_state_reason_data(state_reason_data)
check_state_value(state_value)
check_statistic(statistic)
check_statistics(statistics)
check_unit(unit)
delete_alarms(context, alarm_names, project_id=None)
describe_alarm_history(context, alarm_name=None, end_date=None, history_item_type=None, max_records=100, next_token=None, start_date=None, project_id=None)
describe_alarms(context, action_prefix=None, alarm_name_prefix=None, alarm_names=None, max_records=None, next_token=None, state_value=None, project_id=None)
describe_alarms_for_metric(context, namespace, metric_name, dimensions=None, period=None, statistic=None, unit=None, project_id=None)
disable_alarm_actions(context, alarm_names=None, project_id=None)
enable_alarm_actions(context, alarm_names=None, project_id=None)
get_metric_statistics(context, end_time, metric_name, namespace, period, start_time, statistics, unit=None, dimensions=None, project_id=None)

Gets statistics for the specified metric.

list_metrics(context, next_token=None, dimensions=None, metric_name=None, namespace=None, project_id=None)

Returns a list of valid metrics stored for the Synaps account owner. Returned metrics can be used with get_metric_statics to obtain statistical data for a given metric.

put_metric_alarm(context, alarm_name, comparison_operator, evaluation_periods, metric_name, namespace, period, statistic, threshold, alarm_actions=[], insufficient_data_actions=[], ok_actions=[], actions_enabled=True, alarm_description='', dimensions={}, unit='', project_id=None)

Create or updates an alarm and associates it with the specified SPCS Synaps metric.

When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its StateVale is set appropriately.

put_metric_data(context, namespace, metric_data, project_id=None)

Publishes metric data points to Synaps. If specified metric does not exist, Synaps creates the metric.

set_alarm_state(context, alarm_name, state_reason, state_value, state_reason_data=None, project_id=None)

Temporarily sets the state of an alarm. When the updated StateValue differs from the previous value, the action configured for the appropriate state is invoked. This is not a permanent change. The next periodic alarm check (in about a minute) will set the alarm to its actual state.

validate_get_metric_statistics(start_time, end_time, period)
validate_put_metric_alarm(period, evaluation_periods)
to_alarm(v)

Previous topic

The synaps.api.cloudwatch.faults Module

Next topic

The synaps.auth.fakeldap Module

This Page