/* * 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 application-insights-2018-11-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.ApplicationInsights.Model; using Amazon.ApplicationInsights.Model.Internal.MarshallTransformations; using Amazon.ApplicationInsights.Internal; using Amazon.Runtime; using Amazon.Runtime.Internal; using Amazon.Runtime.Internal.Auth; using Amazon.Runtime.Internal.Transform; namespace Amazon.ApplicationInsights { /// /// Implementation for accessing ApplicationInsights /// /// Amazon CloudWatch Application Insights /// /// Amazon CloudWatch Application Insights is a service that helps you detect common /// problems with your applications. It enables you to pinpoint the source of issues in /// your applications (built with technologies such as Microsoft IIS, .NET, and Microsoft /// SQL Server), by providing key insights into detected problems. /// /// /// /// After you onboard your application, CloudWatch Application Insights identifies, recommends, /// and sets up metrics and logs. It continuously analyzes and correlates your metrics /// and logs for unusual behavior to surface actionable problems with your application. /// For example, if your application is slow and unresponsive and leading to HTTP 500 /// errors in your Application Load Balancer (ALB), Application Insights informs you that /// a memory pressure problem with your SQL Server database is occurring. It bases this /// analysis on impactful metrics and log errors. /// /// public partial class AmazonApplicationInsightsClient : AmazonServiceClient, IAmazonApplicationInsights { private static IServiceMetadata serviceMetadata = new AmazonApplicationInsightsMetadata(); private IApplicationInsightsPaginatorFactory _paginators; /// /// Paginators for the service /// public IApplicationInsightsPaginatorFactory Paginators { get { if (this._paginators == null) { this._paginators = new ApplicationInsightsPaginatorFactory(this); } return this._paginators; } } #region Constructors /// /// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient() : base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationInsightsConfig()) { } /// /// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(RegionEndpoint region) : base(FallbackCredentialsFactory.GetCredentials(), new AmazonApplicationInsightsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient Configuration Object public AmazonApplicationInsightsClient(AmazonApplicationInsightsConfig config) : base(FallbackCredentialsFactory.GetCredentials(config), config){} /// /// Constructs AmazonApplicationInsightsClient with AWS Credentials /// /// AWS Credentials public AmazonApplicationInsightsClient(AWSCredentials credentials) : this(credentials, new AmazonApplicationInsightsConfig()) { } /// /// Constructs AmazonApplicationInsightsClient with AWS Credentials /// /// AWS Credentials /// The region to connect. public AmazonApplicationInsightsClient(AWSCredentials credentials, RegionEndpoint region) : this(credentials, new AmazonApplicationInsightsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonApplicationInsightsClient with AWS Credentials and an /// AmazonApplicationInsightsClient Configuration object. /// /// AWS Credentials /// The AmazonApplicationInsightsClient Configuration Object public AmazonApplicationInsightsClient(AWSCredentials credentials, AmazonApplicationInsightsConfig clientConfig) : base(credentials, clientConfig) { } /// /// Constructs AmazonApplicationInsightsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationInsightsConfig()) { } /// /// Constructs AmazonApplicationInsightsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// The region to connect. public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, new AmazonApplicationInsightsConfig() {RegionEndpoint=region}) { } /// /// Constructs AmazonApplicationInsightsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonApplicationInsightsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// The AmazonApplicationInsightsClient Configuration Object public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, AmazonApplicationInsightsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, clientConfig) { } /// /// Constructs AmazonApplicationInsightsClient with AWS Access Key ID and AWS Secret Key /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationInsightsConfig()) { } /// /// Constructs AmazonApplicationInsightsClient 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 AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, RegionEndpoint region) : this(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, new AmazonApplicationInsightsConfig{RegionEndpoint = region}) { } /// /// Constructs AmazonApplicationInsightsClient with AWS Access Key ID, AWS Secret Key and an /// AmazonApplicationInsightsClient Configuration object. /// /// AWS Access Key ID /// AWS Secret Access Key /// AWS Session Token /// The AmazonApplicationInsightsClient Configuration Object public AmazonApplicationInsightsClient(string awsAccessKeyId, string awsSecretAccessKey, string awsSessionToken, AmazonApplicationInsightsConfig clientConfig) : base(awsAccessKeyId, awsSecretAccessKey, awsSessionToken, clientConfig) { } #endregion #region Overrides /// /// Creates the signer for the service. /// protected override AbstractAWSSigner CreateSigner() { return new AWS4Signer(); } /// /// Customize the pipeline /// /// protected override void CustomizeRuntimePipeline(RuntimePipeline pipeline) { pipeline.RemoveHandler(); pipeline.AddHandlerAfter(new AmazonApplicationInsightsEndpointResolver()); } /// /// 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 AddWorkload /// /// Adds a workload to a component. Each component can have at most five workloads. /// /// Container for the necessary parameters to execute the AddWorkload service method. /// /// The response from the AddWorkload service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for AddWorkload Operation public virtual AddWorkloadResponse AddWorkload(AddWorkloadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = AddWorkloadRequestMarshaller.Instance; options.ResponseUnmarshaller = AddWorkloadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds a workload to a component. Each component can have at most five workloads. /// /// Container for the necessary parameters to execute the AddWorkload service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the AddWorkload service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for AddWorkload Operation public virtual Task AddWorkloadAsync(AddWorkloadRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = AddWorkloadRequestMarshaller.Instance; options.ResponseUnmarshaller = AddWorkloadResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateApplication /// /// Adds an application that is created from a resource group. /// /// Container for the necessary parameters to execute the CreateApplication service method. /// /// The response from the CreateApplication service method, as returned by ApplicationInsights. /// /// User does not have permissions to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// Tags are already registered for the specified application ARN. /// /// /// The parameter is not valid. /// /// REST API Reference for CreateApplication Operation public virtual CreateApplicationResponse CreateApplication(CreateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds an application that is created from a resource group. /// /// Container for the necessary parameters to execute the CreateApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateApplication service method, as returned by ApplicationInsights. /// /// User does not have permissions to perform this action. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// Tags are already registered for the specified application ARN. /// /// /// The parameter is not valid. /// /// REST API Reference for CreateApplication Operation public virtual Task CreateApplicationAsync(CreateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateComponent /// /// Creates a custom component by grouping similar standalone instances to monitor. /// /// Container for the necessary parameters to execute the CreateComponent service method. /// /// The response from the CreateComponent service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for CreateComponent Operation public virtual CreateComponentResponse CreateComponent(CreateComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Creates a custom component by grouping similar standalone instances to monitor. /// /// Container for the necessary parameters to execute the CreateComponent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateComponent service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for CreateComponent Operation public virtual Task CreateComponentAsync(CreateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateComponentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region CreateLogPattern /// /// Adds an log pattern to a LogPatternSet. /// /// Container for the necessary parameters to execute the CreateLogPattern service method. /// /// The response from the CreateLogPattern service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for CreateLogPattern Operation public virtual CreateLogPatternResponse CreateLogPattern(CreateLogPatternRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLogPatternRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLogPatternResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds an log pattern to a LogPatternSet. /// /// Container for the necessary parameters to execute the CreateLogPattern service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the CreateLogPattern service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for CreateLogPattern Operation public virtual Task CreateLogPatternAsync(CreateLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = CreateLogPatternRequestMarshaller.Instance; options.ResponseUnmarshaller = CreateLogPatternResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteApplication /// /// Removes the specified application from monitoring. Does not delete the application. /// /// Container for the necessary parameters to execute the DeleteApplication service method. /// /// The response from the DeleteApplication service method, as returned by ApplicationInsights. /// /// The request is not understood by the server. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DeleteApplication Operation public virtual DeleteApplicationResponse DeleteApplication(DeleteApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes the specified application from monitoring. Does not delete the application. /// /// Container for the necessary parameters to execute the DeleteApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteApplication service method, as returned by ApplicationInsights. /// /// The request is not understood by the server. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DeleteApplication Operation public virtual Task DeleteApplicationAsync(DeleteApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteComponent /// /// Ungroups a custom component. When you ungroup custom components, all applicable monitors /// that are set up for the component are removed and the instances revert to their standalone /// status. /// /// Container for the necessary parameters to execute the DeleteComponent service method. /// /// The response from the DeleteComponent service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DeleteComponent Operation public virtual DeleteComponentResponse DeleteComponent(DeleteComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Ungroups a custom component. When you ungroup custom components, all applicable monitors /// that are set up for the component are removed and the instances revert to their standalone /// status. /// /// Container for the necessary parameters to execute the DeleteComponent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteComponent service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DeleteComponent Operation public virtual Task DeleteComponentAsync(DeleteComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteComponentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DeleteLogPattern /// /// Removes the specified log pattern from a LogPatternSet. /// /// Container for the necessary parameters to execute the DeleteLogPattern service method. /// /// The response from the DeleteLogPattern service method, as returned by ApplicationInsights. /// /// The request is not understood by the server. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DeleteLogPattern Operation public virtual DeleteLogPatternResponse DeleteLogPattern(DeleteLogPatternRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLogPatternRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLogPatternResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Removes the specified log pattern from a LogPatternSet. /// /// Container for the necessary parameters to execute the DeleteLogPattern service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DeleteLogPattern service method, as returned by ApplicationInsights. /// /// The request is not understood by the server. /// /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DeleteLogPattern Operation public virtual Task DeleteLogPatternAsync(DeleteLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DeleteLogPatternRequestMarshaller.Instance; options.ResponseUnmarshaller = DeleteLogPatternResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeApplication /// /// Describes the application. /// /// Container for the necessary parameters to execute the DescribeApplication service method. /// /// The response from the DescribeApplication service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeApplication Operation public virtual DescribeApplicationResponse DescribeApplication(DescribeApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the application. /// /// Container for the necessary parameters to execute the DescribeApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeApplication service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeApplication Operation public virtual Task DescribeApplicationAsync(DescribeApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeComponent /// /// Describes a component and lists the resources that are grouped together in a component. /// /// Container for the necessary parameters to execute the DescribeComponent service method. /// /// The response from the DescribeComponent service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeComponent Operation public virtual DescribeComponentResponse DescribeComponent(DescribeComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComponentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a component and lists the resources that are grouped together in a component. /// /// Container for the necessary parameters to execute the DescribeComponent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeComponent service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeComponent Operation public virtual Task DescribeComponentAsync(DescribeComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComponentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeComponentConfiguration /// /// Describes the monitoring configuration of the component. /// /// Container for the necessary parameters to execute the DescribeComponentConfiguration service method. /// /// The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeComponentConfiguration Operation public virtual DescribeComponentConfigurationResponse DescribeComponentConfiguration(DescribeComponentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the monitoring configuration of the component. /// /// Container for the necessary parameters to execute the DescribeComponentConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeComponentConfiguration service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeComponentConfiguration Operation public virtual Task DescribeComponentConfigurationAsync(DescribeComponentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComponentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComponentConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeComponentConfigurationRecommendation /// /// Describes the recommended monitoring configuration of the component. /// /// Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method. /// /// The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeComponentConfigurationRecommendation Operation public virtual DescribeComponentConfigurationRecommendationResponse DescribeComponentConfigurationRecommendation(DescribeComponentConfigurationRecommendationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComponentConfigurationRecommendationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComponentConfigurationRecommendationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the recommended monitoring configuration of the component. /// /// Container for the necessary parameters to execute the DescribeComponentConfigurationRecommendation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeComponentConfigurationRecommendation service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeComponentConfigurationRecommendation Operation public virtual Task DescribeComponentConfigurationRecommendationAsync(DescribeComponentConfigurationRecommendationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeComponentConfigurationRecommendationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeComponentConfigurationRecommendationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeLogPattern /// /// Describe a specific log pattern from a LogPatternSet. /// /// Container for the necessary parameters to execute the DescribeLogPattern service method. /// /// The response from the DescribeLogPattern service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeLogPattern Operation public virtual DescribeLogPatternResponse DescribeLogPattern(DescribeLogPatternRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLogPatternRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLogPatternResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describe a specific log pattern from a LogPatternSet. /// /// Container for the necessary parameters to execute the DescribeLogPattern service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeLogPattern service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeLogPattern Operation public virtual Task DescribeLogPatternAsync(DescribeLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeLogPatternRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeLogPatternResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeObservation /// /// Describes an anomaly or error with the application. /// /// Container for the necessary parameters to execute the DescribeObservation service method. /// /// The response from the DescribeObservation service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeObservation Operation public virtual DescribeObservationResponse DescribeObservation(DescribeObservationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeObservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeObservationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes an anomaly or error with the application. /// /// Container for the necessary parameters to execute the DescribeObservation service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeObservation service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeObservation Operation public virtual Task DescribeObservationAsync(DescribeObservationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeObservationRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeObservationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeProblem /// /// Describes an application problem. /// /// Container for the necessary parameters to execute the DescribeProblem service method. /// /// The response from the DescribeProblem service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeProblem Operation public virtual DescribeProblemResponse DescribeProblem(DescribeProblemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes an application problem. /// /// Container for the necessary parameters to execute the DescribeProblem service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeProblem service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeProblem Operation public virtual Task DescribeProblemAsync(DescribeProblemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProblemRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProblemResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeProblemObservations /// /// Describes the anomalies or errors associated with the problem. /// /// Container for the necessary parameters to execute the DescribeProblemObservations service method. /// /// The response from the DescribeProblemObservations service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeProblemObservations Operation public virtual DescribeProblemObservationsResponse DescribeProblemObservations(DescribeProblemObservationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProblemObservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProblemObservationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes the anomalies or errors associated with the problem. /// /// Container for the necessary parameters to execute the DescribeProblemObservations service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeProblemObservations service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeProblemObservations Operation public virtual Task DescribeProblemObservationsAsync(DescribeProblemObservationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeProblemObservationsRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeProblemObservationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region DescribeWorkload /// /// Describes a workload and its configuration. /// /// Container for the necessary parameters to execute the DescribeWorkload service method. /// /// The response from the DescribeWorkload service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeWorkload Operation public virtual DescribeWorkloadResponse DescribeWorkload(DescribeWorkloadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkloadRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkloadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Describes a workload and its configuration. /// /// Container for the necessary parameters to execute the DescribeWorkload service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeWorkload service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for DescribeWorkload Operation public virtual Task DescribeWorkloadAsync(DescribeWorkloadRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = DescribeWorkloadRequestMarshaller.Instance; options.ResponseUnmarshaller = DescribeWorkloadResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListApplications /// /// Lists the IDs of the applications that you are monitoring. /// /// Container for the necessary parameters to execute the ListApplications service method. /// /// The response from the ListApplications service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The parameter is not valid. /// /// REST API Reference for ListApplications Operation public virtual ListApplicationsResponse ListApplications(ListApplicationsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the IDs of the applications that you are monitoring. /// /// Container for the necessary parameters to execute the ListApplications service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListApplications service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The parameter is not valid. /// /// REST API Reference for ListApplications Operation public virtual Task ListApplicationsAsync(ListApplicationsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListApplicationsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListApplicationsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListComponents /// /// Lists the auto-grouped, standalone, and custom components of the application. /// /// Container for the necessary parameters to execute the ListComponents service method. /// /// The response from the ListComponents service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListComponents Operation public virtual ListComponentsResponse ListComponents(ListComponentsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListComponentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the auto-grouped, standalone, and custom components of the application. /// /// Container for the necessary parameters to execute the ListComponents service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListComponents service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListComponents Operation public virtual Task ListComponentsAsync(ListComponentsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListComponentsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListComponentsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListConfigurationHistory /// /// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed /// by Application Insights. Examples of events represented are: /// ///
  • /// /// INFO: creating a new alarm or updating an alarm threshold. /// ///
  • /// /// WARN: alarm not created due to insufficient data points used to predict thresholds. /// ///
  • /// /// ERROR: alarm not created due to permission errors or exceeding quotas. /// ///
///
/// Container for the necessary parameters to execute the ListConfigurationHistory service method. /// /// The response from the ListConfigurationHistory service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListConfigurationHistory Operation public virtual ListConfigurationHistoryResponse ListConfigurationHistory(ListConfigurationHistoryRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListConfigurationHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConfigurationHistoryResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the INFO, WARN, and ERROR events for periodic configuration updates performed /// by Application Insights. Examples of events represented are: /// ///
  • /// /// INFO: creating a new alarm or updating an alarm threshold. /// ///
  • /// /// WARN: alarm not created due to insufficient data points used to predict thresholds. /// ///
  • /// /// ERROR: alarm not created due to permission errors or exceeding quotas. /// ///
///
/// Container for the necessary parameters to execute the ListConfigurationHistory service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListConfigurationHistory service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListConfigurationHistory Operation public virtual Task ListConfigurationHistoryAsync(ListConfigurationHistoryRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListConfigurationHistoryRequestMarshaller.Instance; options.ResponseUnmarshaller = ListConfigurationHistoryResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListLogPatterns /// /// Lists the log patterns in the specific log LogPatternSet. /// /// Container for the necessary parameters to execute the ListLogPatterns service method. /// /// The response from the ListLogPatterns service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListLogPatterns Operation public virtual ListLogPatternsResponse ListLogPatterns(ListLogPatternsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLogPatternsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLogPatternsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the log patterns in the specific log LogPatternSet. /// /// Container for the necessary parameters to execute the ListLogPatterns service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListLogPatterns service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListLogPatterns Operation public virtual Task ListLogPatternsAsync(ListLogPatternsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListLogPatternsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLogPatternsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListLogPatternSets /// /// Lists the log pattern sets in the specific application. /// /// Container for the necessary parameters to execute the ListLogPatternSets service method. /// /// The response from the ListLogPatternSets service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListLogPatternSets Operation public virtual ListLogPatternSetsResponse ListLogPatternSets(ListLogPatternSetsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListLogPatternSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLogPatternSetsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the log pattern sets in the specific application. /// /// Container for the necessary parameters to execute the ListLogPatternSets service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListLogPatternSets service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListLogPatternSets Operation public virtual Task ListLogPatternSetsAsync(ListLogPatternSetsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListLogPatternSetsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListLogPatternSetsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListProblems /// /// Lists the problems with your application. /// /// Container for the necessary parameters to execute the ListProblems service method. /// /// The response from the ListProblems service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListProblems Operation public virtual ListProblemsResponse ListProblems(ListProblemsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListProblemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProblemsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the problems with your application. /// /// Container for the necessary parameters to execute the ListProblems service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListProblems service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListProblems Operation public virtual Task ListProblemsAsync(ListProblemsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListProblemsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListProblemsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region ListTagsForResource /// /// Retrieve a list of the tags (keys and values) that are associated with a specified /// application. A tag is a label that you optionally define and associate with /// an application. Each tag consists of a required tag key and an optional associated /// tag value. A tag key is a general label that acts as a category for more specific /// tag values. A tag value acts as a descriptor within a tag key. /// /// Container for the necessary parameters to execute the ListTagsForResource service method. /// /// The response from the ListTagsForResource service method, as returned by ApplicationInsights. /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListTagsForResource Operation public virtual ListTagsForResourceResponse ListTagsForResource(ListTagsForResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListTagsForResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = ListTagsForResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Retrieve a list of the tags (keys and values) that are associated with a specified /// application. A tag is a label that you optionally define and associate with /// an application. Each tag consists of a required tag key and an optional associated /// tag value. A tag key is a general label that acts as a category for more specific /// tag values. A tag value acts as a descriptor within a tag key. /// /// 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 ApplicationInsights. /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// 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 ListWorkloads /// /// Lists the workloads that are configured on a given component. /// /// Container for the necessary parameters to execute the ListWorkloads service method. /// /// The response from the ListWorkloads service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListWorkloads Operation public virtual ListWorkloadsResponse ListWorkloads(ListWorkloadsRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkloadsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkloadsResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Lists the workloads that are configured on a given component. /// /// Container for the necessary parameters to execute the ListWorkloads service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListWorkloads service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for ListWorkloads Operation public virtual Task ListWorkloadsAsync(ListWorkloadsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = ListWorkloadsRequestMarshaller.Instance; options.ResponseUnmarshaller = ListWorkloadsResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region RemoveWorkload /// /// Remove workload from a component. /// /// Container for the necessary parameters to execute the RemoveWorkload service method. /// /// The response from the RemoveWorkload service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for RemoveWorkload Operation public virtual RemoveWorkloadResponse RemoveWorkload(RemoveWorkloadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveWorkloadRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveWorkloadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Remove workload from a component. /// /// Container for the necessary parameters to execute the RemoveWorkload service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the RemoveWorkload service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for RemoveWorkload Operation public virtual Task RemoveWorkloadAsync(RemoveWorkloadRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = RemoveWorkloadRequestMarshaller.Instance; options.ResponseUnmarshaller = RemoveWorkloadResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region TagResource /// /// Add one or more tags (keys and values) to a specified application. A tag is /// a label that you optionally define and associate with an application. Tags can help /// you categorize and manage application in different ways, such as by purpose, owner, /// environment, or other criteria. /// /// /// /// Each tag consists of a required tag key and an associated tag value, /// both of which you define. A tag key is a general label that acts as a category for /// more specific tag values. A tag value acts as a descriptor within a tag key. /// /// /// Container for the necessary parameters to execute the TagResource service method. /// /// The response from the TagResource service method, as returned by ApplicationInsights. /// /// The resource does not exist in the customer account. /// /// /// The number of the provided tags is beyond the limit, or the number of total tags you /// are trying to attach to the specified resource exceeds the limit. /// /// /// The parameter is not valid. /// /// REST API Reference for TagResource Operation public virtual TagResourceResponse TagResource(TagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = TagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = TagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Add one or more tags (keys and values) to a specified application. A tag is /// a label that you optionally define and associate with an application. Tags can help /// you categorize and manage application in different ways, such as by purpose, owner, /// environment, or other criteria. /// /// /// /// Each tag consists of a required tag key and an associated tag value, /// both of which you define. A tag key is a general label that acts as a category for /// more specific tag values. A tag value acts as a descriptor within a tag key. /// /// /// 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 ApplicationInsights. /// /// The resource does not exist in the customer account. /// /// /// The number of the provided tags is beyond the limit, or the number of total tags you /// are trying to attach to the specified resource exceeds the limit. /// /// /// The parameter is not valid. /// /// 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 /// /// Remove one or more tags (keys and values) from a specified application. /// /// Container for the necessary parameters to execute the UntagResource service method. /// /// The response from the UntagResource service method, as returned by ApplicationInsights. /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UntagResource Operation public virtual UntagResourceResponse UntagResource(UntagResourceRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UntagResourceRequestMarshaller.Instance; options.ResponseUnmarshaller = UntagResourceResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Remove one or more tags (keys and values) from a specified application. /// /// 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 ApplicationInsights. /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// 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 UpdateApplication /// /// Updates the application. /// /// Container for the necessary parameters to execute the UpdateApplication service method. /// /// The response from the UpdateApplication service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateApplication Operation public virtual UpdateApplicationResponse UpdateApplication(UpdateApplicationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the application. /// /// Container for the necessary parameters to execute the UpdateApplication service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateApplication service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateApplication Operation public virtual Task UpdateApplicationAsync(UpdateApplicationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateApplicationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateApplicationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateComponent /// /// Updates the custom component name and/or the list of resources that make up the component. /// /// Container for the necessary parameters to execute the UpdateComponent service method. /// /// The response from the UpdateComponent service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateComponent Operation public virtual UpdateComponentResponse UpdateComponent(UpdateComponentRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the custom component name and/or the list of resources that make up the component. /// /// Container for the necessary parameters to execute the UpdateComponent service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateComponent service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateComponent Operation public virtual Task UpdateComponentAsync(UpdateComponentRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateComponentConfiguration /// /// Updates the monitoring configurations for the component. The configuration input parameter /// is an escaped JSON of the configuration and should match the schema of what is returned /// by DescribeComponentConfigurationRecommendation. /// /// Container for the necessary parameters to execute the UpdateComponentConfiguration service method. /// /// The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateComponentConfiguration Operation public virtual UpdateComponentConfigurationResponse UpdateComponentConfiguration(UpdateComponentConfigurationRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the monitoring configurations for the component. The configuration input parameter /// is an escaped JSON of the configuration and should match the schema of what is returned /// by DescribeComponentConfigurationRecommendation. /// /// Container for the necessary parameters to execute the UpdateComponentConfiguration service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateComponentConfiguration service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateComponentConfiguration Operation public virtual Task UpdateComponentConfigurationAsync(UpdateComponentConfigurationRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateComponentConfigurationRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateComponentConfigurationResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateLogPattern /// /// Adds a log pattern to a LogPatternSet. /// /// Container for the necessary parameters to execute the UpdateLogPattern service method. /// /// The response from the UpdateLogPattern service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateLogPattern Operation public virtual UpdateLogPatternResponse UpdateLogPattern(UpdateLogPatternRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds a log pattern to a LogPatternSet. /// /// Container for the necessary parameters to execute the UpdateLogPattern service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateLogPattern service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource is already created or in use. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateLogPattern Operation public virtual Task UpdateLogPatternAsync(UpdateLogPatternRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateLogPatternRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateLogPatternResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateProblem /// /// Updates the visibility of the problem or specifies the problem as RESOLVED. /// /// Container for the necessary parameters to execute the UpdateProblem service method. /// /// The response from the UpdateProblem service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateProblem Operation public virtual UpdateProblemResponse UpdateProblem(UpdateProblemRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProblemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProblemResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Updates the visibility of the problem or specifies the problem as RESOLVED. /// /// Container for the necessary parameters to execute the UpdateProblem service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateProblem service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateProblem Operation public virtual Task UpdateProblemAsync(UpdateProblemRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateProblemRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateProblemResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion #region UpdateWorkload /// /// Adds a workload to a component. Each component can have at most five workloads. /// /// Container for the necessary parameters to execute the UpdateWorkload service method. /// /// The response from the UpdateWorkload service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateWorkload Operation public virtual UpdateWorkloadResponse UpdateWorkload(UpdateWorkloadRequest request) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkloadRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkloadResponseUnmarshaller.Instance; return Invoke(request, options); } /// /// Adds a workload to a component. Each component can have at most five workloads. /// /// Container for the necessary parameters to execute the UpdateWorkload service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the UpdateWorkload service method, as returned by ApplicationInsights. /// /// The server encountered an internal error and is unable to complete the request. /// /// /// The resource does not exist in the customer account. /// /// /// The parameter is not valid. /// /// REST API Reference for UpdateWorkload Operation public virtual Task UpdateWorkloadAsync(UpdateWorkloadRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)) { var options = new InvokeOptions(); options.RequestMarshaller = UpdateWorkloadRequestMarshaller.Instance; options.ResponseUnmarshaller = UpdateWorkloadResponseUnmarshaller.Instance; return InvokeAsync(request, options, cancellationToken); } #endregion } }