/// <summary> /// <para> 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. It can take up to fifteen minutes for a new metric to appear in calls /// to the ListMetrics action.</para> <para> The size of a PutMetricData request is limited to 8 KB for HTTP GET requests and 40 KB for HTTP /// POST requests. </para> <para><b>IMPORTANT:</b> Although the Value parameter accepts numbers of type Double, Amazon CloudWatch truncates /// values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 /// exponents less than -130 (1 x 10^-130) are also truncated. </para> <para>Data that is timestamped 24 hours or more in the past may take in /// excess of 48 hours to become available from submission time using <c>GetMetricStatistics</c> .</para> /// </summary> /// /// <param name="putMetricDataRequest">Container for the necessary parameters to execute the PutMetricData service method on /// AmazonCloudWatch.</param> /// /// <exception cref="T:Amazon.CloudWatch.Model.InvalidParameterValueException" /> /// <exception cref="T:Amazon.CloudWatch.Model.InternalServiceException" /> /// <exception cref="T:Amazon.CloudWatch.Model.InvalidParameterCombinationException" /> /// <exception cref="T:Amazon.CloudWatch.Model.MissingRequiredParameterException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task <PutMetricDataResponse> PutMetricDataAsync(PutMetricDataRequest putMetricDataRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutMetricDataRequestMarshaller(); var unmarshaller = PutMetricDataResponseUnmarshaller.GetInstance(); return(Invoke <IRequest, PutMetricDataRequest, PutMetricDataResponse>(putMetricDataRequest, marshaller, unmarshaller, signer, cancellationToken)); }
/// <summary> /// 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. It can take up to fifteen minutes for a new metric /// to appear in calls to the <a>ListMetrics</a> action. /// /// /// <para> /// The size of a PutMetricData request is limited to 8 KB for HTTP GET requests and /// 40 KB for HTTP POST requests. /// </para> /// <important> Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// Amazon CloudWatch truncates values with very large exponents. Values with base-10 /// exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 /// exponents less than -130 (1 x 10^-130) are also truncated. </important> /// <para> /// Data that is timestamped 24 hours or more in the past may take in excess of 48 hours /// to become available from submission time using <code>GetMetricStatistics</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Indicates that the request processing has failed due to some unknown error, exception, /// or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters that must not be used together were used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// Bad or out-of-range value was supplied for the input parameter. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is mandatory for processing the request is not supplied. /// </exception> public PutMetricDataResponse PutMetricData(PutMetricDataRequest request) { var marshaller = new PutMetricDataRequestMarshaller(); var unmarshaller = PutMetricDataResponseUnmarshaller.Instance; return(Invoke <PutMetricDataRequest, PutMetricDataResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// <para> 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. </para> <para><b>NOTE:</b> If you create a metric with the /// PutMetricData action, allow up to fifteen minutes for the metric to /// appear in calls to the ListMetrics action. </para> <para> The size of /// a PutMetricData request is limited to 8 KB for HTTP GET requests and /// 40 KB for HTTP POST requests. </para> <para><b>IMPORTANT:</b> Although /// the Value parameter accepts numbers of type Double, Amazon CloudWatch /// truncates values with very large exponents. Values with base-10 /// exponents greater than 126 (1 x 10^126) are truncated. Likewise, /// values with base-10 exponents less than -130 (1 x 10^-130) are also /// truncated. </para> /// </summary> /// /// <param name="putMetricDataRequest">Container for the necessary /// parameters to execute the PutMetricData service method on /// AmazonCloudWatch.</param> /// /// <exception cref="InvalidParameterValueException"/> /// <exception cref="InternalServiceException"/> /// <exception cref="InvalidParameterCombinationException"/> /// <exception cref="MissingRequiredParameterException"/> public PutMetricDataResponse PutMetricData(PutMetricDataRequest putMetricDataRequest) { IRequest <PutMetricDataRequest> request = new PutMetricDataRequestMarshaller().Marshall(putMetricDataRequest); PutMetricDataResponse response = Invoke <PutMetricDataRequest, PutMetricDataResponse> (request, this.signer, PutMetricDataResponseUnmarshaller.GetInstance()); return(response); }
/// <summary> /// Initiates the asynchronous execution of the PutMetricData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMetricData operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task <PutMetricDataResponse> PutMetricDataAsync(PutMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutMetricDataRequestMarshaller(); var unmarshaller = PutMetricDataResponseUnmarshaller.Instance; return(InvokeAsync <PutMetricDataRequest, PutMetricDataResponse>(request, marshaller, unmarshaller, cancellationToken)); }
IAsyncResult invokePutMetricData(PutMetricDataRequest putMetricDataRequest, AsyncCallback callback, object state, bool synchronized) { IRequest irequest = new PutMetricDataRequestMarshaller().Marshall(putMetricDataRequest); var unmarshaller = PutMetricDataResponseUnmarshaller.GetInstance(); AsyncResult result = new AsyncResult(irequest, callback, state, synchronized, signer, unmarshaller); Invoke(result); return result; }
public void PutMetricDataMarshallTest() { var operation = service_model.FindOperation("PutMetricData"); var request = InstantiateClassGenerator.Execute <PutMetricDataRequest>(); var marshaller = new PutMetricDataRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <summary> /// <para> 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. </para> <para><b>NOTE:</b> If you create a metric with the /// PutMetricData action, allow up to fifteen minutes for the metric to /// appear in calls to the ListMetrics action. </para> <para> The size of /// a PutMetricData request is limited to 8 KB for HTTP GET requests and /// 40 KB for HTTP POST requests. </para> <para><b>IMPORTANT:</b> Although /// the Value parameter accepts numbers of type Double, Amazon CloudWatch /// truncates values with very large exponents. Values with base-10 /// exponents greater than 126 (1 x 10^126) are truncated. Likewise, /// values with base-10 exponents less than -130 (1 x 10^-130) are also /// truncated. </para> /// </summary> /// /// <param name="putMetricDataRequest">Container for the necessary /// parameters to execute the PutMetricData service method on /// AmazonCloudWatch.</param> /// /// <exception cref="InvalidParameterValueException"/> /// <exception cref="InternalServiceException"/> /// <exception cref="InvalidParameterCombinationException"/> /// <exception cref="MissingRequiredParameterException"/> public PutMetricDataResponse PutMetricData(PutMetricDataRequest putMetricDataRequest) { IRequest<PutMetricDataRequest> request = new PutMetricDataRequestMarshaller().Marshall(putMetricDataRequest); PutMetricDataResponse response = Invoke<PutMetricDataRequest, PutMetricDataResponse> (request, this.signer, PutMetricDataResponseUnmarshaller.GetInstance()); return response; }
/// <summary> /// Initiates the asynchronous execution of the PutMetricData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMetricData operation on AmazonCloudWatchClient.</param> /// <param name="callback">An AsyncCallback delegate that is invoked when the operation completes.</param> /// <param name="state">A user-defined state object that is passed to the callback procedure. Retrieve this object from within the callback /// procedure using the AsyncState property.</param> /// /// <returns>An IAsyncResult that can be used to poll or wait for results, or both; this value is also needed when invoking EndPutMetricData /// operation.</returns> public IAsyncResult BeginPutMetricData(PutMetricDataRequest request, AsyncCallback callback, object state) { var marshaller = new PutMetricDataRequestMarshaller(); var unmarshaller = PutMetricDataResponseUnmarshaller.Instance; return BeginInvoke<PutMetricDataRequest>(request, marshaller, unmarshaller, callback, state); }
/// <summary> /// 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. It can take up to fifteen minutes for a new metric /// to appear in calls to the <a>ListMetrics</a> action. /// /// /// <para> /// The size of a PutMetricData request is limited to 8 KB for HTTP GET requests and /// 40 KB for HTTP POST requests. /// </para> /// <important> Although the <code>Value</code> parameter accepts numbers of type <code>Double</code>, /// Amazon CloudWatch truncates values with very large exponents. Values with base-10 /// exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 /// exponents less than -130 (1 x 10^-130) are also truncated. </important> /// <para> /// Data that is timestamped 24 hours or more in the past may take in excess of 48 hours /// to become available from submission time using <code>GetMetricStatistics</code>. /// </para> /// </summary> /// <param name="request">Container for the necessary parameters to execute the PutMetricData service method.</param> /// /// <returns>The response from the PutMetricData service method, as returned by CloudWatch.</returns> /// <exception cref="Amazon.CloudWatch.Model.InternalServiceException"> /// Indicates that the request processing has failed due to some unknown error, exception, /// or failure. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterCombinationException"> /// Parameters that must not be used together were used together. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.InvalidParameterValueException"> /// Bad or out-of-range value was supplied for the input parameter. /// </exception> /// <exception cref="Amazon.CloudWatch.Model.MissingRequiredParameterException"> /// An input parameter that is mandatory for processing the request is not supplied. /// </exception> public PutMetricDataResponse PutMetricData(PutMetricDataRequest request) { var marshaller = new PutMetricDataRequestMarshaller(); var unmarshaller = PutMetricDataResponseUnmarshaller.Instance; return Invoke<PutMetricDataRequest,PutMetricDataResponse>(request, marshaller, unmarshaller); }
/// <summary> /// <para> 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. It can take up to fifteen minutes for a new metric to appear in calls /// to the ListMetrics action.</para> <para> The size of a PutMetricData request is limited to 8 KB for HTTP GET requests and 40 KB for HTTP /// POST requests. </para> <para><b>IMPORTANT:</b> Although the Value parameter accepts numbers of type Double, Amazon CloudWatch truncates /// values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 /// exponents less than -130 (1 x 10^-130) are also truncated. </para> <para>Data that is timestamped 24 hours or more in the past may take in /// excess of 48 hours to become available from submission time using <c>GetMetricStatistics</c> .</para> /// </summary> /// /// <param name="putMetricDataRequest">Container for the necessary parameters to execute the PutMetricData service method on /// AmazonCloudWatch.</param> /// /// <exception cref="T:Amazon.CloudWatch.Model.InvalidParameterValueException" /> /// <exception cref="T:Amazon.CloudWatch.Model.InternalServiceException" /> /// <exception cref="T:Amazon.CloudWatch.Model.InvalidParameterCombinationException" /> /// <exception cref="T:Amazon.CloudWatch.Model.MissingRequiredParameterException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public Task<PutMetricDataResponse> PutMetricDataAsync(PutMetricDataRequest putMetricDataRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutMetricDataRequestMarshaller(); var unmarshaller = PutMetricDataResponseUnmarshaller.GetInstance(); return Invoke<IRequest, PutMetricDataRequest, PutMetricDataResponse>(putMetricDataRequest, marshaller, unmarshaller, signer, cancellationToken); }
/// <summary> /// <para> 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. It can take up to fifteen minutes for a new metric to appear in calls /// to the ListMetrics action.</para> <para> The size of a PutMetricData request is limited to 8 KB for HTTP GET requests and 40 KB for HTTP /// POST requests. </para> <para><b>IMPORTANT:</b> Although the Value parameter accepts numbers of type Double, Amazon CloudWatch truncates /// values with very large exponents. Values with base-10 exponents greater than 126 (1 x 10^126) are truncated. Likewise, values with base-10 /// exponents less than -130 (1 x 10^-130) are also truncated. </para> <para>Data that is timestamped 24 hours or more in the past may take in /// excess of 48 hours to become available from submission time using <c>GetMetricStatistics</c> .</para> /// </summary> /// /// <param name="putMetricDataRequest">Container for the necessary parameters to execute the PutMetricData service method on /// AmazonCloudWatch.</param> /// /// <exception cref="T:Amazon.CloudWatch.Model.InvalidParameterValueException" /> /// <exception cref="T:Amazon.CloudWatch.Model.InternalServiceException" /> /// <exception cref="T:Amazon.CloudWatch.Model.InvalidParameterCombinationException" /> /// <exception cref="T:Amazon.CloudWatch.Model.MissingRequiredParameterException" /> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> public async Task<PutMetricDataResponse> PutMetricDataAsync(PutMetricDataRequest putMetricDataRequest, CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutMetricDataRequestMarshaller(); var unmarshaller = PutMetricDataResponseUnmarshaller.GetInstance(); var response = await Invoke<IRequest, PutMetricDataRequest, PutMetricDataResponse>(putMetricDataRequest, marshaller, unmarshaller, signer, cancellationToken) .ConfigureAwait(continueOnCapturedContext: false); return response; }
public void PutMetricDataMarshallTest() { var operation = service_model.FindOperation("PutMetricData"); var request = InstantiateClassGenerator.Execute<PutMetricDataRequest>(); var marshaller = new PutMetricDataRequestMarshaller(); var internalRequest = marshaller.Marshall(request); var validator = new AWSQueryValidator(internalRequest.Parameters, request, service_model, operation); validator.Validate(); }
/// <para> Deletes all specified alarms. In the event of an error, no alarms are deleted. </para> /// </summary> /// /// <param name="deleteAlarmsRequest">Container for the necessary parameters to execute the DeleteAlarms service method on /// AmazonCloudWatch.</param> /// /// <exception cref="ResourceNotFoundException"/> public DeleteAlarmsResponse DeleteAlarms(DeleteAlarmsRequest deleteAlarmsRequest)
/// <summary> /// Initiates the asynchronous execution of the PutMetricData operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PutMetricData operation.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// <returns>The task object representing the asynchronous operation.</returns> public Task<PutMetricDataResponse> PutMetricDataAsync(PutMetricDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = new PutMetricDataRequestMarshaller(); var unmarshaller = PutMetricDataResponseUnmarshaller.Instance; return InvokeAsync<PutMetricDataRequest,PutMetricDataResponse>(request, marshaller, unmarshaller, cancellationToken); }