C# Class Amazon.CloudWatch.AmazonCloudWatchClient

Implemenation for accessing AmazonCloudWatch. Amazon CloudWatch

Amazon CloudWatch is a web service that enables you to monitor and manage various metrics, as well as configure alarm actions based on data from metrics.

Amazon CloudWatch monitoring enables you to collect, analyze, and view system and application metrics so that you can make operational and business decisions more quickly and with greater confidence. You can use Amazon CloudWatch to collect metrics about your AWS resources, such as the performance of your Amazon EC2 instances. You can also publish your own metrics directly to Amazon CloudWatch.

Amazon CloudWatch allows you to manage the metrics in several ways. If you are publishing your own metrics, you can define custom metrics for your own use. If you are registered for an AWS product that supports Amazon CloudWatch, the service automatically pushes basic metrics to CloudWatch for you. Once Amazon CloudWatch contains metrics from either source, you can calculate statistics based on that data and graphically visualize those statistics in the Amazon CloudWatch Console.

Amazon CloudWatch alarms help you implement decisions more easily by enabling you to do things like send notifications or automatically make changes to the resources you are monitoring, based on rules that you define. For example, you can create alarms that initiate Auto Scaling and Simple Notification Service actions on your behalf.

Inheritance: AmazonWebServiceClient, AmazonCloudWatch
ファイルを表示 Open project: aws/aws-sdk-net Class Usage Examples

Public Methods

Method Description
AmazonCloudWatchClient ( ) : System

Constructs AmazonCloudWatchClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>

AmazonCloudWatchClient ( AWSCredentials credentials ) : System

Constructs AmazonCloudWatchClient with AWS Credentials

AmazonCloudWatchClient ( AWSCredentials credentials, AmazonCloudWatchConfig clientConfig ) : System

Constructs AmazonCloudWatchClient with AWS Credentials and an AmazonCloudWatchClient Configuration object.

AmazonCloudWatchClient ( AWSCredentials credentials, RegionEndpoint region ) : System

Constructs AmazonCloudWatchClient with AWS Credentials

AmazonCloudWatchClient ( AmazonCloudWatchConfig config ) : System

Constructs AmazonCloudWatchClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>

AmazonCloudWatchClient ( RegionEndpoint region ) : System

Constructs AmazonCloudWatchClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>

AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey ) : System

Constructs AmazonCloudWatchClient with AWS Access Key ID and AWS Secret Key

AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudWatchConfig clientConfig ) : System

Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an AmazonCloudWatchClient Configuration object.

AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region ) : System

Constructs AmazonCloudWatchClient with AWS Access Key ID and AWS Secret Key

AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken ) : System

Constructs AmazonCloudWatchClient with AWS Access Key ID and AWS Secret Key

AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudWatchConfig clientConfig ) : System

Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an AmazonCloudWatchClient Configuration object.

AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region ) : System

Constructs AmazonCloudWatchClient with AWS Access Key ID and AWS Secret Key

BeginDeleteAlarms ( DeleteAlarmsRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the DeleteAlarms operation.

BeginDescribeAlarmHistory ( DescribeAlarmHistoryRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the DescribeAlarmHistory operation.

BeginDescribeAlarms ( DescribeAlarmsRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the DescribeAlarms operation.

BeginDescribeAlarmsForMetric ( DescribeAlarmsForMetricRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the DescribeAlarmsForMetric operation.

BeginDisableAlarmActions ( DisableAlarmActionsRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the DisableAlarmActions operation.

BeginEnableAlarmActions ( EnableAlarmActionsRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the EnableAlarmActions operation.

BeginGetMetricStatistics ( GetMetricStatisticsRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the GetMetricStatistics operation.

BeginListMetrics ( ListMetricsRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the ListMetrics operation.

BeginPutMetricAlarm ( PutMetricAlarmRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the PutMetricAlarm operation.

BeginPutMetricData ( PutMetricDataRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the PutMetricData operation.

BeginSetAlarmState ( SetAlarmStateRequest request, AsyncCallback callback, object state ) : IAsyncResult

Initiates the asynchronous execution of the SetAlarmState operation.

DeleteAlarms ( DeleteAlarmsRequest request ) : Amazon.CloudWatch.Model.DeleteAlarmsResponse

Deletes the specified alarms. In the event of an error, no alarms are deleted.

DeleteAlarmsAsync ( DeleteAlarmsRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the DeleteAlarms operation.

DescribeAlarmHistory ( ) : DescribeAlarmHistoryResponse

Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for all alarms are returned.

Note that Amazon CloudWatch retains the history of an alarm even if you delete the alarm.

DescribeAlarmHistory ( DescribeAlarmHistoryRequest request ) : DescribeAlarmHistoryResponse

Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for all alarms are returned.

Note that Amazon CloudWatch retains the history of an alarm even if you delete the alarm.

DescribeAlarmHistoryAsync ( DescribeAlarmHistoryRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the DescribeAlarmHistory operation.

DescribeAlarmHistoryAsync ( System cancellationToken = default(CancellationToken) ) : Task

Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for all alarms are returned.

Note that Amazon CloudWatch retains the history of an alarm even if you delete the alarm.

DescribeAlarms ( ) : DescribeAlarmsResponse

Retrieves the specified alarms. If no alarms are specified, all alarms are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.

DescribeAlarms ( DescribeAlarmsRequest request ) : DescribeAlarmsResponse

Retrieves the specified alarms. If no alarms are specified, all alarms are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.

DescribeAlarmsAsync ( DescribeAlarmsRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the DescribeAlarms operation.

DescribeAlarmsAsync ( System cancellationToken = default(CancellationToken) ) : Task

Retrieves the specified alarms. If no alarms are specified, all alarms are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.

DescribeAlarmsForMetric ( DescribeAlarmsForMetricRequest request ) : DescribeAlarmsForMetricResponse

Retrieves the alarms for the specified metric. Specify a statistic, period, or unit to filter the results.

DescribeAlarmsForMetricAsync ( DescribeAlarmsForMetricRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the DescribeAlarmsForMetric operation.

DisableAlarmActions ( DisableAlarmActionsRequest request ) : Amazon.CloudWatch.Model.DisableAlarmActionsResponse

Disables the actions for the specified alarms. When an alarm's actions are disabled, the alarm actions do not execute when the alarm state changes.

DisableAlarmActionsAsync ( DisableAlarmActionsRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the DisableAlarmActions operation.

EnableAlarmActions ( EnableAlarmActionsRequest request ) : Amazon.CloudWatch.Model.EnableAlarmActionsResponse

Enables the actions for the specified alarms.

EnableAlarmActionsAsync ( EnableAlarmActionsRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the EnableAlarmActions operation.

EndDeleteAlarms ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.DeleteAlarmsResponse

Finishes the asynchronous execution of the DeleteAlarms operation.

EndDescribeAlarmHistory ( IAsyncResult asyncResult ) : DescribeAlarmHistoryResponse

Finishes the asynchronous execution of the DescribeAlarmHistory operation.

EndDescribeAlarms ( IAsyncResult asyncResult ) : DescribeAlarmsResponse

Finishes the asynchronous execution of the DescribeAlarms operation.

EndDescribeAlarmsForMetric ( IAsyncResult asyncResult ) : DescribeAlarmsForMetricResponse

Finishes the asynchronous execution of the DescribeAlarmsForMetric operation.

EndDisableAlarmActions ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.DisableAlarmActionsResponse

Finishes the asynchronous execution of the DisableAlarmActions operation.

EndEnableAlarmActions ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.EnableAlarmActionsResponse

Finishes the asynchronous execution of the EnableAlarmActions operation.

EndGetMetricStatistics ( IAsyncResult asyncResult ) : GetMetricStatisticsResponse

Finishes the asynchronous execution of the GetMetricStatistics operation.

EndListMetrics ( IAsyncResult asyncResult ) : ListMetricsResponse

Finishes the asynchronous execution of the ListMetrics operation.

EndPutMetricAlarm ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.PutMetricAlarmResponse

Finishes the asynchronous execution of the PutMetricAlarm operation.

EndPutMetricData ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.PutMetricDataResponse

Finishes the asynchronous execution of the PutMetricData operation.

EndSetAlarmState ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.SetAlarmStateResponse

Finishes the asynchronous execution of the SetAlarmState operation.

GetMetricStatistics ( GetMetricStatisticsRequest request ) : GetMetricStatisticsResponse

Gets statistics for the specified metric.

Amazon CloudWatch retains metric data as follows:

  • Data points with a period of 60 seconds (1 minute) are available for 15 days

  • Data points with a period of 300 seconds (5 minute) are available for 63 days

  • Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months)

Note that CloudWatch started retaining 5-minute and 1-hour metric data as of 9 July 2016.

The maximum number of data points returned from a single call is 1,440. If you request more than 1,440 data points, Amazon CloudWatch returns an error. To reduce the number of data points, you can narrow the specified time range and make multiple requests across adjacent time ranges, or you can increase the specified period. A period can be as short as one minute (60 seconds). Note that data points are not returned in chronological order.

Amazon CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-hour period, Amazon CloudWatch aggregates all data points with time stamps that fall within each one-hour period. Therefore, the number of values aggregated by CloudWatch is larger than the number of data points returned.

For a list of metrics and dimensions supported by AWS services, see the Amazon CloudWatch Metrics and Dimensions Reference in the Amazon CloudWatch User Guide.

GetMetricStatisticsAsync ( GetMetricStatisticsRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the GetMetricStatistics operation.

ListMetrics ( ) : ListMetricsResponse

List the specified metrics. You can use the returned metrics with GetMetricStatistics to obtain statistical data.

Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.

After you create a metric, allow up to fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using GetMetricStatistics.

ListMetrics ( ListMetricsRequest request ) : ListMetricsResponse

List the specified metrics. You can use the returned metrics with GetMetricStatistics to obtain statistical data.

Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.

After you create a metric, allow up to fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using GetMetricStatistics.

ListMetricsAsync ( ListMetricsRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the ListMetrics operation.

ListMetricsAsync ( System cancellationToken = default(CancellationToken) ) : Task

List the specified metrics. You can use the returned metrics with GetMetricStatistics to obtain statistical data.

Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.

After you create a metric, allow up to fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using GetMetricStatistics.

PutMetricAlarm ( PutMetricAlarmRequest request ) : Amazon.CloudWatch.Model.PutMetricAlarmResponse

Creates or updates an alarm and associates it with the specified metric. Optionally, this operation can associate one or more Amazon SNS 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 state is set appropriately. Any actions associated with the state are then executed.

When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.

If you are an AWS Identity and Access Management (IAM) user, you must have Amazon EC2 permissions for some operations:

  • ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms on EC2 instance status metrics

  • ec2:StopInstances for alarms with stop actions

  • ec2:TerminateInstances for alarms with terminate actions

  • ec2:DescribeInstanceRecoveryAttribute and ec2:RecoverInstances for alarms with recover actions

If you have read/write permissions for Amazon CloudWatch but not for Amazon EC2, you can still create an alarm, but the stop or terminate actions won't be performed. However, if you are later granted the required permissions, the alarm actions that you created earlier will be performed.

If you are using an IAM role (for example, an Amazon EC2 instance profile), you cannot stop or terminate the instance using alarm actions. However, you can still see the alarm state and perform any other actions such as Amazon SNS notifications or Auto Scaling policies.

If you are using temporary security credentials granted using the AWS Security Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance using alarm actions.

Note that you must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role. After this IAM role is created, you can create stop, terminate, or reboot alarms using a command-line interface or an API.

PutMetricAlarmAsync ( PutMetricAlarmRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the PutMetricAlarm operation.

PutMetricData ( PutMetricDataRequest request ) : Amazon.CloudWatch.Model.PutMetricDataResponse

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. When Amazon CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to ListMetrics.

Each PutMetricData request is limited to 8 KB in size for HTTP GET requests and is limited to 40 KB in size for HTTP POST requests.

Although the Value parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are not supported.

Data points with time stamps from 24 hours ago or longer can take at least 48 hours to become available for GetMetricStatistics from the time they are submitted.

PutMetricDataAsync ( PutMetricDataRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the PutMetricData operation.

SetAlarmState ( SetAlarmStateRequest request ) : Amazon.CloudWatch.Model.SetAlarmStateResponse

Temporarily sets the state of an alarm for testing purposes. When the updated state differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm state to ALARM sends an Amazon SNS message. The alarm returns to its actual state (often within seconds). Because the alarm state change happens very quickly, it is typically only visible in the alarm's History tab in the Amazon CloudWatch console or through DescribeAlarmHistory.

SetAlarmStateAsync ( SetAlarmStateRequest request, System cancellationToken = default(CancellationToken) ) : Task

Initiates the asynchronous execution of the SetAlarmState operation.

Protected Methods

Method Description
CreateSigner ( ) : AbstractAWSSigner

Creates the signer for the service.

Dispose ( bool disposing ) : void

Disposes the service client.

Method Details

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>
public AmazonCloudWatchClient ( ) : System
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with AWS Credentials
public AmazonCloudWatchClient ( AWSCredentials credentials ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with AWS Credentials and an AmazonCloudWatchClient Configuration object.
public AmazonCloudWatchClient ( AWSCredentials credentials, AmazonCloudWatchConfig clientConfig ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
clientConfig AmazonCloudWatchConfig The AmazonCloudWatchClient Configuration Object
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with AWS Credentials
public AmazonCloudWatchClient ( AWSCredentials credentials, RegionEndpoint region ) : System
credentials Amazon.Runtime.AWSCredentials AWS Credentials
region RegionEndpoint The region to connect.
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>
public AmazonCloudWatchClient ( AmazonCloudWatchConfig config ) : System
config AmazonCloudWatchConfig The AmazonCloudWatchClient Configuration Object
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with the credentials loaded from the application's default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance. Example App.config with credentials set. <?xml version="1.0" encoding="utf-8" ?> <configuration> <appSettings> <add key="AWSProfileName" value="AWS Default"/> </appSettings> </configuration>
public AmazonCloudWatchClient ( RegionEndpoint region ) : System
region RegionEndpoint The region to connect.
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with AWS Access Key ID and AWS Secret Key
public AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an AmazonCloudWatchClient Configuration object.
public AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, AmazonCloudWatchConfig clientConfig ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
clientConfig AmazonCloudWatchConfig The AmazonCloudWatchClient Configuration Object
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with AWS Access Key ID and AWS Secret Key
public AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
region RegionEndpoint The region to connect.
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with AWS Access Key ID and AWS Secret Key
public AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
awsSessionToken string AWS Session Token
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with AWS Access Key ID, AWS Secret Key and an AmazonCloudWatchClient Configuration object.
public AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonCloudWatchConfig clientConfig ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
awsSessionToken string AWS Session Token
clientConfig AmazonCloudWatchConfig The AmazonCloudWatchClient Configuration Object
return System

AmazonCloudWatchClient() public method

Constructs AmazonCloudWatchClient with AWS Access Key ID and AWS Secret Key
public AmazonCloudWatchClient ( string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region ) : System
awsAccessKeyId string AWS Access Key ID
awsSecretAccessKey string AWS Secret Access Key
awsSessionToken string AWS Session Token
region RegionEndpoint The region to connect.
return System

BeginDeleteAlarms() public method

Initiates the asynchronous execution of the DeleteAlarms operation.
public BeginDeleteAlarms ( DeleteAlarmsRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.DeleteAlarmsRequest Container for the necessary parameters to execute the DeleteAlarms operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginDescribeAlarmHistory() public method

Initiates the asynchronous execution of the DescribeAlarmHistory operation.
public BeginDescribeAlarmHistory ( DescribeAlarmHistoryRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.DescribeAlarmHistoryRequest Container for the necessary parameters to execute the DescribeAlarmHistory operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginDescribeAlarms() public method

Initiates the asynchronous execution of the DescribeAlarms operation.
public BeginDescribeAlarms ( DescribeAlarmsRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.DescribeAlarmsRequest Container for the necessary parameters to execute the DescribeAlarms operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginDescribeAlarmsForMetric() public method

Initiates the asynchronous execution of the DescribeAlarmsForMetric operation.
public BeginDescribeAlarmsForMetric ( DescribeAlarmsForMetricRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.DescribeAlarmsForMetricRequest Container for the necessary parameters to execute the DescribeAlarmsForMetric operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginDisableAlarmActions() public method

Initiates the asynchronous execution of the DisableAlarmActions operation.
public BeginDisableAlarmActions ( DisableAlarmActionsRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.DisableAlarmActionsRequest Container for the necessary parameters to execute the DisableAlarmActions operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginEnableAlarmActions() public method

Initiates the asynchronous execution of the EnableAlarmActions operation.
public BeginEnableAlarmActions ( EnableAlarmActionsRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.EnableAlarmActionsRequest Container for the necessary parameters to execute the EnableAlarmActions operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginGetMetricStatistics() public method

Initiates the asynchronous execution of the GetMetricStatistics operation.
public BeginGetMetricStatistics ( GetMetricStatisticsRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.GetMetricStatisticsRequest Container for the necessary parameters to execute the GetMetricStatistics operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginListMetrics() public method

Initiates the asynchronous execution of the ListMetrics operation.
public BeginListMetrics ( ListMetricsRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.ListMetricsRequest Container for the necessary parameters to execute the ListMetrics operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginPutMetricAlarm() public method

Initiates the asynchronous execution of the PutMetricAlarm operation.
public BeginPutMetricAlarm ( PutMetricAlarmRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.PutMetricAlarmRequest Container for the necessary parameters to execute the PutMetricAlarm operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginPutMetricData() public method

Initiates the asynchronous execution of the PutMetricData operation.
public BeginPutMetricData ( PutMetricDataRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.PutMetricDataRequest Container for the necessary parameters to execute the PutMetricData operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

BeginSetAlarmState() public method

Initiates the asynchronous execution of the SetAlarmState operation.
public BeginSetAlarmState ( SetAlarmStateRequest request, AsyncCallback callback, object state ) : IAsyncResult
request Amazon.CloudWatch.Model.SetAlarmStateRequest Container for the necessary parameters to execute the SetAlarmState operation on AmazonCloudWatchClient.
callback AsyncCallback An AsyncCallback delegate that is invoked when the operation completes.
state object A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.
return IAsyncResult

CreateSigner() protected method

Creates the signer for the service.
protected CreateSigner ( ) : AbstractAWSSigner
return Amazon.Runtime.Internal.Auth.AbstractAWSSigner

DeleteAlarms() public method

Deletes the specified alarms. In the event of an error, no alarms are deleted.
/// The named resource does not exist. ///
public DeleteAlarms ( DeleteAlarmsRequest request ) : Amazon.CloudWatch.Model.DeleteAlarmsResponse
request Amazon.CloudWatch.Model.DeleteAlarmsRequest Container for the necessary parameters to execute the DeleteAlarms service method.
return Amazon.CloudWatch.Model.DeleteAlarmsResponse

DeleteAlarmsAsync() public method

Initiates the asynchronous execution of the DeleteAlarms operation.
public DeleteAlarmsAsync ( DeleteAlarmsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.DeleteAlarmsRequest Container for the necessary parameters to execute the DeleteAlarms operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

DescribeAlarmHistory() public method

Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for all alarms are returned.

Note that Amazon CloudWatch retains the history of an alarm even if you delete the alarm.

/// The next token specified is invalid. ///
public DescribeAlarmHistory ( ) : DescribeAlarmHistoryResponse
return Amazon.CloudWatch.Model.DescribeAlarmHistoryResponse

DescribeAlarmHistory() public method

Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for all alarms are returned.

Note that Amazon CloudWatch retains the history of an alarm even if you delete the alarm.

/// The next token specified is invalid. ///
public DescribeAlarmHistory ( DescribeAlarmHistoryRequest request ) : DescribeAlarmHistoryResponse
request Amazon.CloudWatch.Model.DescribeAlarmHistoryRequest Container for the necessary parameters to execute the DescribeAlarmHistory service method.
return Amazon.CloudWatch.Model.DescribeAlarmHistoryResponse

DescribeAlarmHistoryAsync() public method

Initiates the asynchronous execution of the DescribeAlarmHistory operation.
public DescribeAlarmHistoryAsync ( DescribeAlarmHistoryRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.DescribeAlarmHistoryRequest Container for the necessary parameters to execute the DescribeAlarmHistory operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

DescribeAlarmHistoryAsync() public method

Retrieves the history for the specified alarm. You can filter the results by date range or item type. If an alarm name is not specified, the histories for all alarms are returned.

Note that Amazon CloudWatch retains the history of an alarm even if you delete the alarm.

/// The next token specified is invalid. ///
public DescribeAlarmHistoryAsync ( System cancellationToken = default(CancellationToken) ) : Task
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

DescribeAlarms() public method

Retrieves the specified alarms. If no alarms are specified, all alarms are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.
/// The next token specified is invalid. ///
public DescribeAlarms ( ) : DescribeAlarmsResponse
return Amazon.CloudWatch.Model.DescribeAlarmsResponse

DescribeAlarms() public method

Retrieves the specified alarms. If no alarms are specified, all alarms are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.
/// The next token specified is invalid. ///
public DescribeAlarms ( DescribeAlarmsRequest request ) : DescribeAlarmsResponse
request Amazon.CloudWatch.Model.DescribeAlarmsRequest Container for the necessary parameters to execute the DescribeAlarms service method.
return Amazon.CloudWatch.Model.DescribeAlarmsResponse

DescribeAlarmsAsync() public method

Initiates the asynchronous execution of the DescribeAlarms operation.
public DescribeAlarmsAsync ( DescribeAlarmsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.DescribeAlarmsRequest Container for the necessary parameters to execute the DescribeAlarms operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

DescribeAlarmsAsync() public method

Retrieves the specified alarms. If no alarms are specified, all alarms are returned. Alarms can be retrieved by using only a prefix for the alarm name, the alarm state, or a prefix for any action.
/// The next token specified is invalid. ///
public DescribeAlarmsAsync ( System cancellationToken = default(CancellationToken) ) : Task
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

DescribeAlarmsForMetric() public method

Retrieves the alarms for the specified metric. Specify a statistic, period, or unit to filter the results.
public DescribeAlarmsForMetric ( DescribeAlarmsForMetricRequest request ) : DescribeAlarmsForMetricResponse
request Amazon.CloudWatch.Model.DescribeAlarmsForMetricRequest Container for the necessary parameters to execute the DescribeAlarmsForMetric service method.
return Amazon.CloudWatch.Model.DescribeAlarmsForMetricResponse

DescribeAlarmsForMetricAsync() public method

Initiates the asynchronous execution of the DescribeAlarmsForMetric operation.
public DescribeAlarmsForMetricAsync ( DescribeAlarmsForMetricRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.DescribeAlarmsForMetricRequest Container for the necessary parameters to execute the DescribeAlarmsForMetric operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

DisableAlarmActions() public method

Disables the actions for the specified alarms. When an alarm's actions are disabled, the alarm actions do not execute when the alarm state changes.
public DisableAlarmActions ( DisableAlarmActionsRequest request ) : Amazon.CloudWatch.Model.DisableAlarmActionsResponse
request Amazon.CloudWatch.Model.DisableAlarmActionsRequest Container for the necessary parameters to execute the DisableAlarmActions service method.
return Amazon.CloudWatch.Model.DisableAlarmActionsResponse

DisableAlarmActionsAsync() public method

Initiates the asynchronous execution of the DisableAlarmActions operation.
public DisableAlarmActionsAsync ( DisableAlarmActionsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.DisableAlarmActionsRequest Container for the necessary parameters to execute the DisableAlarmActions operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

Dispose() protected method

Disposes the service client.
protected Dispose ( bool disposing ) : void
disposing bool
return void

EnableAlarmActions() public method

Enables the actions for the specified alarms.
public EnableAlarmActions ( EnableAlarmActionsRequest request ) : Amazon.CloudWatch.Model.EnableAlarmActionsResponse
request Amazon.CloudWatch.Model.EnableAlarmActionsRequest Container for the necessary parameters to execute the EnableAlarmActions service method.
return Amazon.CloudWatch.Model.EnableAlarmActionsResponse

EnableAlarmActionsAsync() public method

Initiates the asynchronous execution of the EnableAlarmActions operation.
public EnableAlarmActionsAsync ( EnableAlarmActionsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.EnableAlarmActionsRequest Container for the necessary parameters to execute the EnableAlarmActions operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

EndDeleteAlarms() public method

Finishes the asynchronous execution of the DeleteAlarms operation.
public EndDeleteAlarms ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.DeleteAlarmsResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginDeleteAlarms.
return Amazon.CloudWatch.Model.DeleteAlarmsResponse

EndDescribeAlarmHistory() public method

Finishes the asynchronous execution of the DescribeAlarmHistory operation.
public EndDescribeAlarmHistory ( IAsyncResult asyncResult ) : DescribeAlarmHistoryResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginDescribeAlarmHistory.
return Amazon.CloudWatch.Model.DescribeAlarmHistoryResponse

EndDescribeAlarms() public method

Finishes the asynchronous execution of the DescribeAlarms operation.
public EndDescribeAlarms ( IAsyncResult asyncResult ) : DescribeAlarmsResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginDescribeAlarms.
return Amazon.CloudWatch.Model.DescribeAlarmsResponse

EndDescribeAlarmsForMetric() public method

Finishes the asynchronous execution of the DescribeAlarmsForMetric operation.
public EndDescribeAlarmsForMetric ( IAsyncResult asyncResult ) : DescribeAlarmsForMetricResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginDescribeAlarmsForMetric.
return Amazon.CloudWatch.Model.DescribeAlarmsForMetricResponse

EndDisableAlarmActions() public method

Finishes the asynchronous execution of the DisableAlarmActions operation.
public EndDisableAlarmActions ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.DisableAlarmActionsResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginDisableAlarmActions.
return Amazon.CloudWatch.Model.DisableAlarmActionsResponse

EndEnableAlarmActions() public method

Finishes the asynchronous execution of the EnableAlarmActions operation.
public EndEnableAlarmActions ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.EnableAlarmActionsResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginEnableAlarmActions.
return Amazon.CloudWatch.Model.EnableAlarmActionsResponse

EndGetMetricStatistics() public method

Finishes the asynchronous execution of the GetMetricStatistics operation.
public EndGetMetricStatistics ( IAsyncResult asyncResult ) : GetMetricStatisticsResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginGetMetricStatistics.
return Amazon.CloudWatch.Model.GetMetricStatisticsResponse

EndListMetrics() public method

Finishes the asynchronous execution of the ListMetrics operation.
public EndListMetrics ( IAsyncResult asyncResult ) : ListMetricsResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginListMetrics.
return Amazon.CloudWatch.Model.ListMetricsResponse

EndPutMetricAlarm() public method

Finishes the asynchronous execution of the PutMetricAlarm operation.
public EndPutMetricAlarm ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.PutMetricAlarmResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginPutMetricAlarm.
return Amazon.CloudWatch.Model.PutMetricAlarmResponse

EndPutMetricData() public method

Finishes the asynchronous execution of the PutMetricData operation.
public EndPutMetricData ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.PutMetricDataResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginPutMetricData.
return Amazon.CloudWatch.Model.PutMetricDataResponse

EndSetAlarmState() public method

Finishes the asynchronous execution of the SetAlarmState operation.
public EndSetAlarmState ( IAsyncResult asyncResult ) : Amazon.CloudWatch.Model.SetAlarmStateResponse
asyncResult IAsyncResult The IAsyncResult returned by the call to BeginSetAlarmState.
return Amazon.CloudWatch.Model.SetAlarmStateResponse

GetMetricStatistics() public method

Gets statistics for the specified metric.

Amazon CloudWatch retains metric data as follows:

  • Data points with a period of 60 seconds (1 minute) are available for 15 days

  • Data points with a period of 300 seconds (5 minute) are available for 63 days

  • Data points with a period of 3600 seconds (1 hour) are available for 455 days (15 months)

Note that CloudWatch started retaining 5-minute and 1-hour metric data as of 9 July 2016.

The maximum number of data points returned from a single call is 1,440. If you request more than 1,440 data points, Amazon CloudWatch returns an error. To reduce the number of data points, you can narrow the specified time range and make multiple requests across adjacent time ranges, or you can increase the specified period. A period can be as short as one minute (60 seconds). Note that data points are not returned in chronological order.

Amazon CloudWatch aggregates data points based on the length of the period that you specify. For example, if you request statistics with a one-hour period, Amazon CloudWatch aggregates all data points with time stamps that fall within each one-hour period. Therefore, the number of values aggregated by CloudWatch is larger than the number of data points returned.

For a list of metrics and dimensions supported by AWS services, see the Amazon CloudWatch Metrics and Dimensions Reference in the Amazon CloudWatch User Guide.

/// Request processing has failed due to some unknown error, exception, or failure. /// /// Parameters that cannot be used together were used together. /// /// The value of an input parameter is bad or out-of-range. /// /// An input parameter that is required is missing. ///
public GetMetricStatistics ( GetMetricStatisticsRequest request ) : GetMetricStatisticsResponse
request Amazon.CloudWatch.Model.GetMetricStatisticsRequest Container for the necessary parameters to execute the GetMetricStatistics service method.
return Amazon.CloudWatch.Model.GetMetricStatisticsResponse

GetMetricStatisticsAsync() public method

Initiates the asynchronous execution of the GetMetricStatistics operation.
public GetMetricStatisticsAsync ( GetMetricStatisticsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.GetMetricStatisticsRequest Container for the necessary parameters to execute the GetMetricStatistics operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

ListMetrics() public method

List the specified metrics. You can use the returned metrics with GetMetricStatistics to obtain statistical data.

Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.

After you create a metric, allow up to fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using GetMetricStatistics.

/// Request processing has failed due to some unknown error, exception, or failure. /// /// The value of an input parameter is bad or out-of-range. ///
public ListMetrics ( ) : ListMetricsResponse
return Amazon.CloudWatch.Model.ListMetricsResponse

ListMetrics() public method

List the specified metrics. You can use the returned metrics with GetMetricStatistics to obtain statistical data.

Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.

After you create a metric, allow up to fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using GetMetricStatistics.

/// Request processing has failed due to some unknown error, exception, or failure. /// /// The value of an input parameter is bad or out-of-range. ///
public ListMetrics ( ListMetricsRequest request ) : ListMetricsResponse
request Amazon.CloudWatch.Model.ListMetricsRequest Container for the necessary parameters to execute the ListMetrics service method.
return Amazon.CloudWatch.Model.ListMetricsResponse

ListMetricsAsync() public method

Initiates the asynchronous execution of the ListMetrics operation.
public ListMetricsAsync ( ListMetricsRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.ListMetricsRequest Container for the necessary parameters to execute the ListMetrics operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

ListMetricsAsync() public method

List the specified metrics. You can use the returned metrics with GetMetricStatistics to obtain statistical data.

Up to 500 results are returned for any one call. To retrieve additional results, use the returned token with subsequent calls.

After you create a metric, allow up to fifteen minutes before the metric appears. Statistics about the metric, however, are available sooner using GetMetricStatistics.

/// Request processing has failed due to some unknown error, exception, or failure. /// /// The value of an input parameter is bad or out-of-range. ///
public ListMetricsAsync ( System cancellationToken = default(CancellationToken) ) : Task
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

PutMetricAlarm() public method

Creates or updates an alarm and associates it with the specified metric. Optionally, this operation can associate one or more Amazon SNS 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 state is set appropriately. Any actions associated with the state are then executed.

When you update an existing alarm, its state is left unchanged, but the update completely overwrites the previous configuration of the alarm.

If you are an AWS Identity and Access Management (IAM) user, you must have Amazon EC2 permissions for some operations:

  • ec2:DescribeInstanceStatus and ec2:DescribeInstances for all alarms on EC2 instance status metrics

  • ec2:StopInstances for alarms with stop actions

  • ec2:TerminateInstances for alarms with terminate actions

  • ec2:DescribeInstanceRecoveryAttribute and ec2:RecoverInstances for alarms with recover actions

If you have read/write permissions for Amazon CloudWatch but not for Amazon EC2, you can still create an alarm, but the stop or terminate actions won't be performed. However, if you are later granted the required permissions, the alarm actions that you created earlier will be performed.

If you are using an IAM role (for example, an Amazon EC2 instance profile), you cannot stop or terminate the instance using alarm actions. However, you can still see the alarm state and perform any other actions such as Amazon SNS notifications or Auto Scaling policies.

If you are using temporary security credentials granted using the AWS Security Token Service (AWS STS), you cannot stop or terminate an Amazon EC2 instance using alarm actions.

Note that you must create at least one stop, terminate, or reboot alarm using the Amazon EC2 or CloudWatch console to create the EC2ActionsAccess IAM role. After this IAM role is created, you can create stop, terminate, or reboot alarms using a command-line interface or an API.

/// The quota for alarms for this customer has already been reached. ///
public PutMetricAlarm ( PutMetricAlarmRequest request ) : Amazon.CloudWatch.Model.PutMetricAlarmResponse
request Amazon.CloudWatch.Model.PutMetricAlarmRequest Container for the necessary parameters to execute the PutMetricAlarm service method.
return Amazon.CloudWatch.Model.PutMetricAlarmResponse

PutMetricAlarmAsync() public method

Initiates the asynchronous execution of the PutMetricAlarm operation.
public PutMetricAlarmAsync ( PutMetricAlarmRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.PutMetricAlarmRequest Container for the necessary parameters to execute the PutMetricAlarm operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

PutMetricData() public method

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. When Amazon CloudWatch creates a metric, it can take up to fifteen minutes for the metric to appear in calls to ListMetrics.

Each PutMetricData request is limited to 8 KB in size for HTTP GET requests and is limited to 40 KB in size for HTTP POST requests.

Although the Value parameter accepts numbers of type Double, Amazon CloudWatch rejects values that are either too small or too large. Values must be in the range of 8.515920e-109 to 1.174271e+108 (Base 10) or 2e-360 to 2e360 (Base 2). In addition, special values (e.g., NaN, +Infinity, -Infinity) are not supported.

Data points with time stamps from 24 hours ago or longer can take at least 48 hours to become available for GetMetricStatistics from the time they are submitted.

/// Request processing has failed due to some unknown error, exception, or failure. /// /// Parameters that cannot be used together were used together. /// /// The value of an input parameter is bad or out-of-range. /// /// An input parameter that is required is missing. ///
public PutMetricData ( PutMetricDataRequest request ) : Amazon.CloudWatch.Model.PutMetricDataResponse
request Amazon.CloudWatch.Model.PutMetricDataRequest Container for the necessary parameters to execute the PutMetricData service method.
return Amazon.CloudWatch.Model.PutMetricDataResponse

PutMetricDataAsync() public method

Initiates the asynchronous execution of the PutMetricData operation.
public PutMetricDataAsync ( PutMetricDataRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.PutMetricDataRequest Container for the necessary parameters to execute the PutMetricData operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task

SetAlarmState() public method

Temporarily sets the state of an alarm for testing purposes. When the updated state differs from the previous value, the action configured for the appropriate state is invoked. For example, if your alarm is configured to send an Amazon SNS message when an alarm is triggered, temporarily changing the alarm state to ALARM sends an Amazon SNS message. The alarm returns to its actual state (often within seconds). Because the alarm state change happens very quickly, it is typically only visible in the alarm's History tab in the Amazon CloudWatch console or through DescribeAlarmHistory.
/// Data was not syntactically valid JSON. /// /// The named resource does not exist. ///
public SetAlarmState ( SetAlarmStateRequest request ) : Amazon.CloudWatch.Model.SetAlarmStateResponse
request Amazon.CloudWatch.Model.SetAlarmStateRequest Container for the necessary parameters to execute the SetAlarmState service method.
return Amazon.CloudWatch.Model.SetAlarmStateResponse

SetAlarmStateAsync() public method

Initiates the asynchronous execution of the SetAlarmState operation.
public SetAlarmStateAsync ( SetAlarmStateRequest request, System cancellationToken = default(CancellationToken) ) : Task
request Amazon.CloudWatch.Model.SetAlarmStateRequest Container for the necessary parameters to execute the SetAlarmState operation.
cancellationToken System /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. ///
return Task