/// <summary> /// Retrieve Performance Insights metrics for a set of data sources, over a time period. /// You can provide specific dimension groups and dimensions, and provide aggregation /// and filtering criteria for each group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceMetrics service method.</param> /// /// <returns>The response from the GetResourceMetrics service method, as returned by PI.</returns> /// <exception cref="Amazon.PI.Model.InternalServiceErrorException"> /// The request failed due to an unknown error. /// </exception> /// <exception cref="Amazon.PI.Model.InvalidArgumentException"> /// One of the arguments provided is invalid for this request. /// </exception> /// <exception cref="Amazon.PI.Model.NotAuthorizedException"> /// The user is not authorized to perform this request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetrics">REST API Reference for GetResourceMetrics Operation</seealso> public virtual GetResourceMetricsResponse GetResourceMetrics(GetResourceMetricsRequest request) { var marshaller = GetResourceMetricsRequestMarshaller.Instance; var unmarshaller = GetResourceMetricsResponseUnmarshaller.Instance; return(Invoke <GetResourceMetricsRequest, GetResourceMetricsResponse>(request, marshaller, unmarshaller)); }
/// <summary> /// Initiates the asynchronous execution of the GetResourceMetrics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResourceMetrics operation on AmazonPIClient.</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 EndGetResourceMetrics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetrics">REST API Reference for GetResourceMetrics Operation</seealso> public virtual IAsyncResult BeginGetResourceMetrics(GetResourceMetricsRequest request, AsyncCallback callback, object state) { var marshaller = GetResourceMetricsRequestMarshaller.Instance; var unmarshaller = GetResourceMetricsResponseUnmarshaller.Instance; return(BeginInvoke <GetResourceMetricsRequest>(request, marshaller, unmarshaller, callback, state)); }
/// <summary> /// Initiates the asynchronous execution of the GetResourceMetrics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResourceMetrics 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> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetrics">REST API Reference for GetResourceMetrics Operation</seealso> public virtual Task <GetResourceMetricsResponse> GetResourceMetricsAsync(GetResourceMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var marshaller = GetResourceMetricsRequestMarshaller.Instance; var unmarshaller = GetResourceMetricsResponseUnmarshaller.Instance; return(InvokeAsync <GetResourceMetricsRequest, GetResourceMetricsResponse>(request, marshaller, unmarshaller, cancellationToken)); }
/// <summary> /// Retrieve Performance Insights metrics for a set of data sources, over a time period. /// You can provide specific dimension groups and dimensions, and provide aggregation /// and filtering criteria for each group. /// </summary> /// <param name="request">Container for the necessary parameters to execute the GetResourceMetrics 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 GetResourceMetrics service method, as returned by PI.</returns> /// <exception cref="Amazon.PI.Model.InternalServiceErrorException"> /// The request failed due to an unknown error. /// </exception> /// <exception cref="Amazon.PI.Model.InvalidArgumentException"> /// One of the arguments provided is invalid for this request. /// </exception> /// <exception cref="Amazon.PI.Model.NotAuthorizedException"> /// The user is not authorized to perform this request. /// </exception> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetrics">REST API Reference for GetResourceMetrics Operation</seealso> public virtual Task <GetResourceMetricsResponse> GetResourceMetricsAsync(GetResourceMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceMetricsResponseUnmarshaller.Instance; return(InvokeAsync <GetResourceMetricsResponse>(request, options, cancellationToken)); }
internal virtual GetResourceMetricsResponse GetResourceMetrics(GetResourceMetricsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceMetricsResponseUnmarshaller.Instance; return(Invoke <GetResourceMetricsResponse>(request, options)); }
/// <summary> /// Initiates the asynchronous execution of the GetResourceMetrics operation. /// </summary> /// /// <param name="request">Container for the necessary parameters to execute the GetResourceMetrics operation on AmazonPIClient.</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 EndGetResourceMetrics /// operation.</returns> /// <seealso href="http://docs.aws.amazon.com/goto/WebAPI/pi-2018-02-27/GetResourceMetrics">REST API Reference for GetResourceMetrics Operation</seealso> public virtual IAsyncResult BeginGetResourceMetrics(GetResourceMetricsRequest request, AsyncCallback callback, object state) { var options = new InvokeOptions(); options.RequestMarshaller = GetResourceMetricsRequestMarshaller.Instance; options.ResponseUnmarshaller = GetResourceMetricsResponseUnmarshaller.Instance; return(BeginInvoke(request, options, callback, state)); }