This module provides an interface to the Elastic Compute Cloud (EC2) CloudWatch service from AWS.
Init method to create a new connection to EC2 Monitoring Service.
B{Note:} The host argument is overridden by the host specified in the boto configuration file.
Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm.
When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. Any actions associated with the StateValue is then executed.
When updating an existing alarm, its StateValue is left unchanged.
Parameters: | alarm (boto.ec2.cloudwatch.alarm.MetricAlarm) – MetricAlarm object. |
---|
Deletes all specified alarms. In the event of an error, no alarms are deleted.
Parameters: | alarms (list) – List of alarm names. |
---|
Retrieves history for the specified alarm. Filter alarms by date range or item type. If an alarm name is not specified, Amazon CloudWatch returns histories for all of the owner’s alarms.
Amazon CloudWatch retains the history of deleted alarms for a period of six weeks. If an alarm has been deleted, its history can still be queried.
Parameters: |
|
---|
:rtype list
Retrieves alarms with the specified names. If no name is specified, all alarms for the user are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.
Parameters: |
|
---|
:rtype list
Retrieves all alarms for a single metric. Specify a statistic, period, or unit to filter the set of alarms further.
Parameters: |
|
---|
:rtype list
Disables actions for the specified alarms.
Parameters: | alarms (list) – List of alarm names. |
---|
Enables actions for the specified alarms.
Parameters: | alarms (list) – List of alarm names. |
---|
Get time-series data for one or more statistics of a given metric.
Parameters: |
|
---|---|
Return type: | list |
Returns a list of the valid metrics for which there is recorded data available.
Parameters: |
|
---|
Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm.
When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. Any actions associated with the StateValue is then executed.
When updating an existing alarm, its StateValue is left unchanged.
Parameters: | alarm (boto.ec2.cloudwatch.alarm.MetricAlarm) – MetricAlarm object. |
---|
Publishes metric data points to Amazon CloudWatch. Amazon Cloudwatch associates the data points with the specified metric. If the specified metric does not exist, Amazon CloudWatch creates the metric. If a list is specified for some, but not all, of the arguments, the remaining arguments are repeated a corresponding number of times.
Parameters: |
|
---|
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.
Parameters: |
---|
Creates or updates an alarm and associates it with the specified Amazon CloudWatch metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm.
When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. Any actions associated with the StateValue is then executed.
When updating an existing alarm, its StateValue is left unchanged.
Parameters: | alarm (boto.ec2.cloudwatch.alarm.MetricAlarm) – MetricAlarm object. |
---|
Given a valid region name, return a boto.ec2.cloudwatch.CloudWatchConnection.
Parameters: | region_name (str) – The name of the region to connect to. |
---|---|
Return type: | boto.ec2.CloudWatchConnection or None |
Returns: | A connection to the given region, or None if an invalid region name is given |
Get all available regions for the CloudWatch service.
Return type: | list |
---|---|
Returns: | A list of boto.RegionInfo instances |
Creates or updates an alarm and associates it with this metric. Optionally, this operation can associate one or more Amazon Simple Notification Service resources with the alarm.
When this operation creates an alarm, the alarm state is immediately set to INSUFFICIENT_DATA. The alarm is evaluated and its StateValue is set appropriately. Any actions associated with the StateValue is then executed.
When updating an existing alarm, its StateValue is left unchanged.
Parameters: | alarm (boto.ec2.cloudwatch.alarm.MetricAlarm) – MetricAlarm object. |
---|
Retrieves all alarms for this metric. Specify a statistic, period, or unit to filter the set of alarms further.
Parameters: |
|
---|
:rtype list
Parameters: |
|
---|
Creates a new Alarm.
Parameters: |
|
---|
Adds an alarm action, represented as an SNS topic, to this alarm. What do do when alarm is triggered.
Parameters: | action_arn (str) – SNS topics to which notification should be sent if the alarm goes to state ALARM. |
---|
Adds an insufficient_data action, represented as an SNS topic, to this alarm. What to do when the insufficient_data state is reached.
Parameters: | action_arn (str) – SNS topics to which notification should be sent if the alarm goes to state INSUFFICIENT_DATA. |
---|
Adds an ok action, represented as an SNS topic, to this alarm. What to do when the ok state is reached.
Parameters: | action_arn (str) – SNS topics to which notification should be sent if the alarm goes to state INSUFFICIENT_DATA. |
---|
Temporarily sets the state of an alarm.
Parameters: |
---|