/// <summary> /// <para> 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. </para> <para><b>NOTE:</b> Amazon CloudWatch retains the history of an alarm for /// two weeks, whether or not you delete the alarm. </para> /// </summary> /// /// <param name="describeAlarmHistoryRequest">Container for the necessary parameters to execute the DescribeAlarmHistory service method on /// AmazonCloudWatch.</param> /// /// <returns>The response from the DescribeAlarmHistory service method, as returned by AmazonCloudWatch.</returns> /// /// <exception cref="T:Amazon.CloudWatch.Model.InvalidNextTokenException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <DescribeAlarmHistoryResponse> DescribeAlarmHistoryAsync(DescribeAlarmHistoryRequest describeAlarmHistoryRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new DescribeAlarmHistoryRequestMarshaller(); var unmarshaller = DescribeAlarmHistoryResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, DescribeAlarmHistoryRequest, DescribeAlarmHistoryResponse>(describeAlarmHistoryRequest, marshaller, unmarshaller, signer, cancellationToken)); }
IAsyncResult invokeDescribeAlarmHistory(DescribeAlarmHistoryRequest describeAlarmHistoryRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new DescribeAlarmHistoryRequestMarshaller().Marshall(describeAlarmHistoryRequest); var unmarshaller = DescribeAlarmHistoryResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
public override DescribeAlarmHistoryResponse GetResponse(UnmarshallerContext unmarshallerContext) { return(DescribeAlarmHistoryResponseUnmarshaller.Unmarshall(unmarshallerContext)); }
/// <summary> /// <para> 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. </para> /// <para><b>NOTE:</b> Amazon CloudWatch retains the history of an alarm /// for two weeks, whether or not you delete the alarm. </para> /// </summary> /// /// <param name="describeAlarmHistoryRequest">Container for the necessary /// parameters to execute the DescribeAlarmHistory service method on /// AmazonCloudWatch.</param> /// /// <returns>The response from the DescribeAlarmHistory service method, as /// returned by AmazonCloudWatch.</returns> /// /// <exception cref="InvalidNextTokenException"/> public DescribeAlarmHistoryResponse DescribeAlarmHistory(DescribeAlarmHistoryRequest describeAlarmHistoryRequest) { IRequest <DescribeAlarmHistoryRequest> request = new DescribeAlarmHistoryRequestMarshaller().Marshall(describeAlarmHistoryRequest); DescribeAlarmHistoryResponse response = Invoke <DescribeAlarmHistoryRequest, DescribeAlarmHistoryResponse> (request, this.signer, DescribeAlarmHistoryResponseUnmarshaller.GetInstance()); return(response); }