Amazon.CloudWatch.AmazonCloudWatchClient.DescribeAlarmsForMetricAsync C# (CSharp) Метод

DescribeAlarmsForMetricAsync() публичный Метод

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. ///
Результат Task
        public Task<DescribeAlarmsForMetricResponse> DescribeAlarmsForMetricAsync(DescribeAlarmsForMetricRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
        {
            var marshaller = new DescribeAlarmsForMetricRequestMarshaller();
            var unmarshaller = DescribeAlarmsForMetricResponseUnmarshaller.Instance;

            return InvokeAsync<DescribeAlarmsForMetricRequest,DescribeAlarmsForMetricResponse>(request, marshaller, 
                unmarshaller, cancellationToken);
        }