internal virtual PublishMetricsResponse PublishMetrics(PublishMetricsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = PublishMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishMetricsResponseUnmarshaller.Instance; return(Invoke <PublishMetricsResponse>(request, options)); }
/// <summary> /// An operation for publishing metrics from the customers to the Ops plane. /// </summary> /// <param name="request">Container for the necessary parameters to execute the PublishMetrics service method.</param> /// <param name="cancellationToken"> /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// </param> /// /// <returns>The response from the PublishMetrics service method, as returned by MWAA.</returns> /// <exception cref="Amazon.MWAA.Model.InternalServerException"> /// InternalServerException: An internal error has occurred. /// </exception> /// <exception cref="Amazon.MWAA.Model.ValidationException"> /// ValidationException: The provided input is not valid. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/PublishMetrics">REST API Reference for PublishMetrics Operation</seealso> public virtual Task <PublishMetricsResponse> PublishMetricsAsync(PublishMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = PublishMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishMetricsResponseUnmarshaller.Instance; return(InvokeAsync <PublishMetricsResponse>(request, options, cancellationToken)); }
/// <summary> /// Initiates the asynchronous execution of the PublishMetrics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the PublishMetrics operation on AmazonMWAAClient.</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 EndPublishMetrics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/mwaa-2020-07-01/PublishMetrics">REST API Reference for PublishMetrics Operation</seealso> public virtual IAsyncResult BeginPublishMetrics(PublishMetricsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = PublishMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = PublishMetricsResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }