/*
* Copyright Amazon.com, Inc. or its affiliates. All Rights Reserved.
*
* Licensed under the Apache License, Version 2.0 (the "License").
* You may not use this file except in compliance with the License.
* A copy of the License is located at
*
* http://aws.amazon.com/apache2.0
*
* or in the "license" file accompanying this file. This file is distributed
* on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either
* express or implied. See the License for the specific language governing
* permissions and limitations under the License.
*/
/*
* Do not modify this file. This file is generated from the lookoutmetrics-2017-07-25.normal.json service model.
*/
using System;
using System.Runtime.ExceptionServices;
using System.Threading;
using System.Threading.Tasks;
using System.Collections.Generic;
using System.Net;
using Amazon.LookoutMetrics.Model;
using Amazon.LookoutMetrics.Model.Internal.MarshallTransformations;
using Amazon.LookoutMetrics.Internal;
using Amazon.Runtime;
using Amazon.Runtime.Internal;
using Amazon.Runtime.Internal.Auth;
using Amazon.Runtime.Internal.Transform;
namespace Amazon.LookoutMetrics
{
///
/// Implementation for accessing LookoutMetrics
///
/// This is the Amazon Lookout for Metrics API Reference. For an introduction to
/// the service with tutorials for getting started, visit Amazon
/// Lookout for Metrics Developer Guide.
///
public partial class AmazonLookoutMetricsClient : AmazonServiceClient, IAmazonLookoutMetrics
{
private static IServiceMetadata serviceMetadata = new AmazonLookoutMetricsMetadata();
#region Constructors
///
/// Constructs AmazonLookoutMetricsClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
public AmazonLookoutMetricsClient()
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonLookoutMetricsConfig()) { }
///
/// Constructs AmazonLookoutMetricsClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The region to connect.
public AmazonLookoutMetricsClient(RegionEndpoint region)
: base(FallbackCredentialsFactory.GetCredentials(), new AmazonLookoutMetricsConfig{RegionEndpoint = region}) { }
///
/// Constructs AmazonLookoutMetricsClient with the credentials loaded from the application's
/// default configuration, and if unsuccessful from the Instance Profile service on an EC2 instance.
///
/// Example App.config with credentials set.
///
/// <?xml version="1.0" encoding="utf-8" ?>
/// <configuration>
/// <appSettings>
/// <add key="AWSProfileName" value="AWS Default"/>
/// </appSettings>
/// </configuration>
///
///
///
/// The AmazonLookoutMetricsClient Configuration Object
public AmazonLookoutMetricsClient(AmazonLookoutMetricsConfig config)
: base(FallbackCredentialsFactory.GetCredentials(config), config){}
///
/// Constructs AmazonLookoutMetricsClient with AWS Credentials
///
/// AWS Credentials
public AmazonLookoutMetricsClient(AWSCredentials credentials)
: this(credentials, new AmazonLookoutMetricsConfig())
{
}
///
/// Constructs AmazonLookoutMetricsClient with AWS Credentials
///
/// AWS Credentials
/// The region to connect.
public AmazonLookoutMetricsClient(AWSCredentials credentials, RegionEndpoint region)
: this(credentials, new AmazonLookoutMetricsConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonLookoutMetricsClient with AWS Credentials and an
/// AmazonLookoutMetricsClient Configuration object.
///
/// AWS Credentials
/// The AmazonLookoutMetricsClient Configuration Object
public AmazonLookoutMetricsClient(AWSCredentials credentials, AmazonLookoutMetricsConfig clientConfig)
: base(credentials, clientConfig)
{
}
///
/// Constructs AmazonLookoutMetricsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
public AmazonLookoutMetricsClient(string awsAccessKeyId, string awsSecretAccessKey)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonLookoutMetricsConfig())
{
}
///
/// Constructs AmazonLookoutMetricsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The region to connect.
public AmazonLookoutMetricsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, new AmazonLookoutMetricsConfig() {RegionEndpoint=region})
{
}
///
/// Constructs AmazonLookoutMetricsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonLookoutMetricsClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// The AmazonLookoutMetricsClient Configuration Object
public AmazonLookoutMetricsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonLookoutMetricsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, clientConfig)
{
}
///
/// Constructs AmazonLookoutMetricsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
public AmazonLookoutMetricsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonLookoutMetricsConfig())
{
}
///
/// Constructs AmazonLookoutMetricsClient with AWS Access Key ID and AWS Secret Key
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The region to connect.
public AmazonLookoutMetricsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region)
: this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonLookoutMetricsConfig{RegionEndpoint = region})
{
}
///
/// Constructs AmazonLookoutMetricsClient with AWS Access Key ID, AWS Secret Key and an
/// AmazonLookoutMetricsClient Configuration object.
///
/// AWS Access Key ID
/// AWS Secret Access Key
/// AWS Session Token
/// The AmazonLookoutMetricsClient Configuration Object
public AmazonLookoutMetricsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonLookoutMetricsConfig clientConfig)
: base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig)
{
}
#endregion
#if AWS_ASYNC_ENUMERABLES_API
private ILookoutMetricsPaginatorFactory _paginators;
///
/// Paginators for the service
///
public ILookoutMetricsPaginatorFactory Paginators
{
get
{
if (this._paginators == null)
{
this._paginators = new LookoutMetricsPaginatorFactory(this);
}
return this._paginators;
}
}
#endif
#region Overrides
///
/// Creates the signer for the service.
///
protected override AbstractAWSSigner CreateSigner()
{
return new AWS4Signer();
}
///
/// Customizes the runtime pipeline.
///
/// Runtime pipeline for the current client.
protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline)
{
pipeline.RemoveHandler();
pipeline.AddHandlerAfter(new AmazonLookoutMetricsEndpointResolver());
}
///
/// Capture metadata for the service.
///
protected override IServiceMetadata ServiceMetadata
{
get
{
return serviceMetadata;
}
}
#endregion
#region Dispose
///
/// Disposes the service client.
///
protected override void Dispose(bool disposing)
{
base.Dispose(disposing);
}
#endregion
#region ActivateAnomalyDetector
internal virtual ActivateAnomalyDetectorResponse ActivateAnomalyDetector(ActivateAnomalyDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateAnomalyDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Activates an anomaly detector.
///
/// Container for the necessary parameters to execute the ActivateAnomalyDetector service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ActivateAnomalyDetector service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// There was a conflict processing the request. Try your request again.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for ActivateAnomalyDetector Operation
public virtual Task ActivateAnomalyDetectorAsync(ActivateAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ActivateAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = ActivateAnomalyDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region BackTestAnomalyDetector
internal virtual BackTestAnomalyDetectorResponse BackTestAnomalyDetector(BackTestAnomalyDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = BackTestAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = BackTestAnomalyDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Runs a backtest for anomaly detection for the specified resource.
///
/// Container for the necessary parameters to execute the BackTestAnomalyDetector service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the BackTestAnomalyDetector service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for BackTestAnomalyDetector Operation
public virtual Task BackTestAnomalyDetectorAsync(BackTestAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = BackTestAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = BackTestAnomalyDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateAlert
internal virtual CreateAlertResponse CreateAlert(CreateAlertRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAlertRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAlertResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an alert for an anomaly detector.
///
/// Container for the necessary parameters to execute the CreateAlert service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateAlert service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// There was a conflict processing the request. Try your request again.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request exceeded the service's quotas. Check the service quotas and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for CreateAlert Operation
public virtual Task CreateAlertAsync(CreateAlertRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAlertRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAlertResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateAnomalyDetector
internal virtual CreateAnomalyDetectorResponse CreateAnomalyDetector(CreateAnomalyDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAnomalyDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates an anomaly detector.
///
/// Container for the necessary parameters to execute the CreateAnomalyDetector service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateAnomalyDetector service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// There was a conflict processing the request. Try your request again.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The request exceeded the service's quotas. Check the service quotas and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for CreateAnomalyDetector Operation
public virtual Task CreateAnomalyDetectorAsync(CreateAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateAnomalyDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region CreateMetricSet
internal virtual CreateMetricSetResponse CreateMetricSet(CreateMetricSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMetricSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMetricSetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Creates a dataset.
///
/// Container for the necessary parameters to execute the CreateMetricSet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the CreateMetricSet service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// There was a conflict processing the request. Try your request again.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request exceeded the service's quotas. Check the service quotas and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for CreateMetricSet Operation
public virtual Task CreateMetricSetAsync(CreateMetricSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = CreateMetricSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = CreateMetricSetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeactivateAnomalyDetector
internal virtual DeactivateAnomalyDetectorResponse DeactivateAnomalyDetector(DeactivateAnomalyDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeactivateAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeactivateAnomalyDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deactivates an anomaly detector.
///
/// Container for the necessary parameters to execute the DeactivateAnomalyDetector service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeactivateAnomalyDetector service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// There was a conflict processing the request. Try your request again.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for DeactivateAnomalyDetector Operation
public virtual Task DeactivateAnomalyDetectorAsync(DeactivateAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeactivateAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeactivateAnomalyDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAlert
internal virtual DeleteAlertResponse DeleteAlert(DeleteAlertRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlertRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlertResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes an alert.
///
/// Container for the necessary parameters to execute the DeleteAlert service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAlert service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for DeleteAlert Operation
public virtual Task DeleteAlertAsync(DeleteAlertRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAlertRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAlertResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DeleteAnomalyDetector
internal virtual DeleteAnomalyDetectorResponse DeleteAnomalyDetector(DeleteAnomalyDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Deletes a detector. Deleting an anomaly detector will delete all of its corresponding
/// resources including any configured datasets and alerts.
///
/// Container for the necessary parameters to execute the DeleteAnomalyDetector service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DeleteAnomalyDetector service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// There was a conflict processing the request. Try your request again.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for DeleteAnomalyDetector Operation
public virtual Task DeleteAnomalyDetectorAsync(DeleteAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DeleteAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DeleteAnomalyDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAlert
internal virtual DescribeAlertResponse DescribeAlert(DescribeAlertRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAlertRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAlertResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes an alert.
///
///
///
/// Amazon Lookout for Metrics API actions are eventually consistent. If you do a read
/// operation on a resource immediately after creating or modifying it, use retries to
/// allow time for the write operation to complete.
///
///
/// Container for the necessary parameters to execute the DescribeAlert service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeAlert service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for DescribeAlert Operation
public virtual Task DescribeAlertAsync(DescribeAlertRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAlertRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAlertResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAnomalyDetectionExecutions
internal virtual DescribeAnomalyDetectionExecutionsResponse DescribeAnomalyDetectionExecutions(DescribeAnomalyDetectionExecutionsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAnomalyDetectionExecutionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAnomalyDetectionExecutionsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns information about the status of the specified anomaly detection jobs.
///
/// Container for the necessary parameters to execute the DescribeAnomalyDetectionExecutions service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeAnomalyDetectionExecutions service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for DescribeAnomalyDetectionExecutions Operation
public virtual Task DescribeAnomalyDetectionExecutionsAsync(DescribeAnomalyDetectionExecutionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAnomalyDetectionExecutionsRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAnomalyDetectionExecutionsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeAnomalyDetector
internal virtual DescribeAnomalyDetectorResponse DescribeAnomalyDetector(DescribeAnomalyDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAnomalyDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes a detector.
///
///
///
/// Amazon Lookout for Metrics API actions are eventually consistent. If you do a read
/// operation on a resource immediately after creating or modifying it, use retries to
/// allow time for the write operation to complete.
///
///
/// Container for the necessary parameters to execute the DescribeAnomalyDetector service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeAnomalyDetector service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for DescribeAnomalyDetector Operation
public virtual Task DescribeAnomalyDetectorAsync(DescribeAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeAnomalyDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DescribeMetricSet
internal virtual DescribeMetricSetResponse DescribeMetricSet(DescribeMetricSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeMetricSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeMetricSetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Describes a dataset.
///
///
///
/// Amazon Lookout for Metrics API actions are eventually consistent. If you do a read
/// operation on a resource immediately after creating or modifying it, use retries to
/// allow time for the write operation to complete.
///
///
/// Container for the necessary parameters to execute the DescribeMetricSet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DescribeMetricSet service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for DescribeMetricSet Operation
public virtual Task DescribeMetricSetAsync(DescribeMetricSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DescribeMetricSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = DescribeMetricSetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region DetectMetricSetConfig
internal virtual DetectMetricSetConfigResponse DetectMetricSetConfig(DetectMetricSetConfigRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = DetectMetricSetConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetectMetricSetConfigResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Detects an Amazon S3 dataset's file format, interval, and offset.
///
/// Container for the necessary parameters to execute the DetectMetricSetConfig service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the DetectMetricSetConfig service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for DetectMetricSetConfig Operation
public virtual Task DetectMetricSetConfigAsync(DetectMetricSetConfigRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = DetectMetricSetConfigRequestMarshaller.Instance;
options.ResponseUnmarshaller = DetectMetricSetConfigResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetAnomalyGroup
internal virtual GetAnomalyGroupResponse GetAnomalyGroup(GetAnomalyGroupRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAnomalyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAnomalyGroupResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns details about a group of anomalous metrics.
///
/// Container for the necessary parameters to execute the GetAnomalyGroup service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetAnomalyGroup service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for GetAnomalyGroup Operation
public virtual Task GetAnomalyGroupAsync(GetAnomalyGroupRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetAnomalyGroupRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetAnomalyGroupResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetDataQualityMetrics
internal virtual GetDataQualityMetricsResponse GetDataQualityMetrics(GetDataQualityMetricsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDataQualityMetricsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDataQualityMetricsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns details about the requested data quality metrics.
///
/// Container for the necessary parameters to execute the GetDataQualityMetrics service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetDataQualityMetrics service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for GetDataQualityMetrics Operation
public virtual Task GetDataQualityMetricsAsync(GetDataQualityMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetDataQualityMetricsRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetDataQualityMetricsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetFeedback
internal virtual GetFeedbackResponse GetFeedback(GetFeedbackRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFeedbackRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFeedbackResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Get feedback for an anomaly group.
///
/// Container for the necessary parameters to execute the GetFeedback service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetFeedback service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for GetFeedback Operation
public virtual Task GetFeedbackAsync(GetFeedbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetFeedbackRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetFeedbackResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region GetSampleData
internal virtual GetSampleDataResponse GetSampleData(GetSampleDataRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSampleDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSampleDataResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a selection of sample records from an Amazon S3 datasource.
///
/// Container for the necessary parameters to execute the GetSampleData service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the GetSampleData service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for GetSampleData Operation
public virtual Task GetSampleDataAsync(GetSampleDataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = GetSampleDataRequestMarshaller.Instance;
options.ResponseUnmarshaller = GetSampleDataResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAlerts
internal virtual ListAlertsResponse ListAlerts(ListAlertsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAlertsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAlertsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the alerts attached to a detector.
///
///
///
/// Amazon Lookout for Metrics API actions are eventually consistent. If you do a read
/// operation on a resource immediately after creating or modifying it, use retries to
/// allow time for the write operation to complete.
///
///
/// Container for the necessary parameters to execute the ListAlerts service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAlerts service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for ListAlerts Operation
public virtual Task ListAlertsAsync(ListAlertsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAlertsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAlertsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAnomalyDetectors
internal virtual ListAnomalyDetectorsResponse ListAnomalyDetectors(ListAnomalyDetectorsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnomalyDetectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnomalyDetectorsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the detectors in the current AWS Region.
///
///
///
/// Amazon Lookout for Metrics API actions are eventually consistent. If you do a read
/// operation on a resource immediately after creating or modifying it, use retries to
/// allow time for the write operation to complete.
///
///
/// Container for the necessary parameters to execute the ListAnomalyDetectors service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAnomalyDetectors service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for ListAnomalyDetectors Operation
public virtual Task ListAnomalyDetectorsAsync(ListAnomalyDetectorsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnomalyDetectorsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnomalyDetectorsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAnomalyGroupRelatedMetrics
internal virtual ListAnomalyGroupRelatedMetricsResponse ListAnomalyGroupRelatedMetrics(ListAnomalyGroupRelatedMetricsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnomalyGroupRelatedMetricsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnomalyGroupRelatedMetricsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of measures that are potential causes or effects of an anomaly group.
///
/// Container for the necessary parameters to execute the ListAnomalyGroupRelatedMetrics service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAnomalyGroupRelatedMetrics service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for ListAnomalyGroupRelatedMetrics Operation
public virtual Task ListAnomalyGroupRelatedMetricsAsync(ListAnomalyGroupRelatedMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnomalyGroupRelatedMetricsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnomalyGroupRelatedMetricsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAnomalyGroupSummaries
internal virtual ListAnomalyGroupSummariesResponse ListAnomalyGroupSummaries(ListAnomalyGroupSummariesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnomalyGroupSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnomalyGroupSummariesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Returns a list of anomaly groups.
///
/// Container for the necessary parameters to execute the ListAnomalyGroupSummaries service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAnomalyGroupSummaries service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for ListAnomalyGroupSummaries Operation
public virtual Task ListAnomalyGroupSummariesAsync(ListAnomalyGroupSummariesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnomalyGroupSummariesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnomalyGroupSummariesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListAnomalyGroupTimeSeries
internal virtual ListAnomalyGroupTimeSeriesResponse ListAnomalyGroupTimeSeries(ListAnomalyGroupTimeSeriesRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnomalyGroupTimeSeriesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnomalyGroupTimeSeriesResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets a list of anomalous metrics for a measure in an anomaly group.
///
/// Container for the necessary parameters to execute the ListAnomalyGroupTimeSeries service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListAnomalyGroupTimeSeries service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for ListAnomalyGroupTimeSeries Operation
public virtual Task ListAnomalyGroupTimeSeriesAsync(ListAnomalyGroupTimeSeriesRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListAnomalyGroupTimeSeriesRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListAnomalyGroupTimeSeriesResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListMetricSets
internal virtual ListMetricSetsResponse ListMetricSets(ListMetricSetsRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMetricSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMetricSetsResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Lists the datasets in the current AWS Region.
///
///
///
/// Amazon Lookout for Metrics API actions are eventually consistent. If you do a read
/// operation on a resource immediately after creating or modifying it, use retries to
/// allow time for the write operation to complete.
///
///
/// Container for the necessary parameters to execute the ListMetricSets service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListMetricSets service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for ListMetricSets Operation
public virtual Task ListMetricSetsAsync(ListMetricSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListMetricSetsRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListMetricSetsResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region ListTagsForResource
internal virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Gets a list of tags
/// for a detector, dataset, or alert.
///
/// Container for the necessary parameters to execute the ListTagsForResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the ListTagsForResource service method, as returned by LookoutMetrics.
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for ListTagsForResource Operation
public virtual Task ListTagsForResourceAsync(ListTagsForResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region PutFeedback
internal virtual PutFeedbackResponse PutFeedback(PutFeedbackRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = PutFeedbackRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutFeedbackResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Add feedback for an anomalous metric.
///
/// Container for the necessary parameters to execute the PutFeedback service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the PutFeedback service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for PutFeedback Operation
public virtual Task PutFeedbackAsync(PutFeedbackRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = PutFeedbackRequestMarshaller.Instance;
options.ResponseUnmarshaller = PutFeedbackResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region TagResource
internal virtual TagResourceResponse TagResource(TagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Adds tags
/// to a detector, dataset, or alert.
///
/// Container for the necessary parameters to execute the TagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the TagResource service method, as returned by LookoutMetrics.
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for TagResource Operation
public virtual Task TagResourceAsync(TagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = TagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UntagResource
internal virtual UntagResourceResponse UntagResource(UntagResourceRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Removes tags
/// from a detector, dataset, or alert.
///
/// Container for the necessary parameters to execute the UntagResource service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UntagResource service method, as returned by LookoutMetrics.
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for UntagResource Operation
public virtual Task UntagResourceAsync(UntagResourceRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UntagResourceRequestMarshaller.Instance;
options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateAlert
internal virtual UpdateAlertResponse UpdateAlert(UpdateAlertRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAlertRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAlertResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Make changes to an existing alert.
///
/// Container for the necessary parameters to execute the UpdateAlert service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateAlert service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for UpdateAlert Operation
public virtual Task UpdateAlertAsync(UpdateAlertRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAlertRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAlertResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateAnomalyDetector
internal virtual UpdateAnomalyDetectorResponse UpdateAnomalyDetector(UpdateAnomalyDetectorRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAnomalyDetectorResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a detector. After activation, you can only change a detector's ingestion delay
/// and description.
///
/// Container for the necessary parameters to execute the UpdateAnomalyDetector service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateAnomalyDetector service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for UpdateAnomalyDetector Operation
public virtual Task UpdateAnomalyDetectorAsync(UpdateAnomalyDetectorRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateAnomalyDetectorRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateAnomalyDetectorResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
#region UpdateMetricSet
internal virtual UpdateMetricSetResponse UpdateMetricSet(UpdateMetricSetRequest request)
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateMetricSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateMetricSetResponseUnmarshaller.Instance;
return Invoke(request, options);
}
///
/// Updates a dataset.
///
/// Container for the necessary parameters to execute the UpdateMetricSet service method.
///
/// A cancellation token that can be used by other objects or threads to receive notice of cancellation.
///
///
/// The response from the UpdateMetricSet service method, as returned by LookoutMetrics.
///
/// You do not have sufficient permissions to perform this action.
///
///
/// The request processing has failed because of an unknown error, exception, or failure.
///
///
/// The specified resource cannot be found. Check the ARN of the resource and try again.
///
///
/// The request exceeded the service's quotas. Check the service quotas and try again.
///
///
/// The request was denied due to too many requests being submitted at the same time.
///
///
/// The input fails to satisfy the constraints specified by the AWS service. Check your
/// input values and try again.
///
/// REST API Reference for UpdateMetricSet Operation
public virtual Task UpdateMetricSetAsync(UpdateMetricSetRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken))
{
var options = new InvokeOptions();
options.RequestMarshaller = UpdateMetricSetRequestMarshaller.Instance;
options.ResponseUnmarshaller = UpdateMetricSetResponseUnmarshaller.Instance;
return InvokeAsync(request, options, cancellationToken);
}
#endregion
}
}