/* * 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 pi-2018-02-27.normal.json service model. */ using System; using System.Threading; using System.Threading.Tasks; using System.Collections.Generic; using Amazon.Runtime; using Amazon.PI.Model; namespace Amazon.PI { /// /// Interface for accessing PI /// /// Amazon RDS Performance Insights /// /// Amazon RDS Performance Insights enables you to monitor and explore different dimensions /// of database load based on data captured from a running DB instance. The guide provides /// detailed information about Performance Insights data types, parameters and errors. /// /// /// /// When Performance Insights is enabled, the Amazon RDS Performance Insights API provides /// visibility into the performance of your DB instance. Amazon CloudWatch provides the /// authoritative source for Amazon Web Services service-vended monitoring metrics. Performance /// Insights offers a domain-specific view of DB load. /// /// /// /// DB load is measured as average active sessions. Performance Insights provides the /// data to API consumers as a two-dimensional time-series dataset. The time dimension /// provides DB load data for each time point in the queried time range. Each time point /// decomposes overall load in relation to the requested dimensions, measured at that /// time point. Examples include SQL, Wait event, User, and Host. /// /// /// public partial interface IAmazonPI : IAmazonService, IDisposable { #if AWS_ASYNC_ENUMERABLES_API /// /// Paginators for the service /// IPIPaginatorFactory Paginators { get; } #endif #region DescribeDimensionKeys /// /// For a specific time period, retrieve the top N dimension keys for a metric. /// /// /// /// /// Each response element returns a maximum of 500 bytes. For larger elements, such as /// SQL statements, only the first 500 bytes are returned. /// /// /// /// Container for the necessary parameters to execute the DescribeDimensionKeys service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the DescribeDimensionKeys service method, as returned by PI. /// /// The request failed due to an unknown error. /// /// /// One of the arguments provided is invalid for this request. /// /// /// The user is not authorized to perform this request. /// /// REST API Reference for DescribeDimensionKeys Operation Task DescribeDimensionKeysAsync(DescribeDimensionKeysRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetDimensionKeyDetails /// /// Get the attributes of the specified dimension group for a DB instance or data source. /// For example, if you specify a SQL ID, GetDimensionKeyDetails retrieves /// the full text of the dimension db.sql.statement associated with this /// ID. This operation is useful because GetResourceMetrics and DescribeDimensionKeys /// don't support retrieval of large SQL statement text. /// /// Container for the necessary parameters to execute the GetDimensionKeyDetails service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetDimensionKeyDetails service method, as returned by PI. /// /// The request failed due to an unknown error. /// /// /// One of the arguments provided is invalid for this request. /// /// /// The user is not authorized to perform this request. /// /// REST API Reference for GetDimensionKeyDetails Operation Task GetDimensionKeyDetailsAsync(GetDimensionKeyDetailsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResourceMetadata /// /// Retrieve the metadata for different features. For example, the metadata might indicate /// that a feature is turned on or off on a specific DB instance. /// /// Container for the necessary parameters to execute the GetResourceMetadata service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResourceMetadata service method, as returned by PI. /// /// The request failed due to an unknown error. /// /// /// One of the arguments provided is invalid for this request. /// /// /// The user is not authorized to perform this request. /// /// REST API Reference for GetResourceMetadata Operation Task GetResourceMetadataAsync(GetResourceMetadataRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region GetResourceMetrics /// /// Retrieve Performance Insights metrics for a set of data sources over a time period. /// You can provide specific dimension groups and dimensions, and provide aggregation /// and filtering criteria for each group. /// /// /// /// Each response element returns a maximum of 500 bytes. For larger elements, such as /// SQL statements, only the first 500 bytes are returned. /// /// /// /// Container for the necessary parameters to execute the GetResourceMetrics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the GetResourceMetrics service method, as returned by PI. /// /// The request failed due to an unknown error. /// /// /// One of the arguments provided is invalid for this request. /// /// /// The user is not authorized to perform this request. /// /// REST API Reference for GetResourceMetrics Operation Task GetResourceMetricsAsync(GetResourceMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListAvailableResourceDimensions /// /// Retrieve the dimensions that can be queried for each specified metric type on a specified /// DB instance. /// /// Container for the necessary parameters to execute the ListAvailableResourceDimensions service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAvailableResourceDimensions service method, as returned by PI. /// /// The request failed due to an unknown error. /// /// /// One of the arguments provided is invalid for this request. /// /// /// The user is not authorized to perform this request. /// /// REST API Reference for ListAvailableResourceDimensions Operation Task ListAvailableResourceDimensionsAsync(ListAvailableResourceDimensionsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion #region ListAvailableResourceMetrics /// /// Retrieve metrics of the specified types that can be queried for a specified DB instance. /// /// Container for the necessary parameters to execute the ListAvailableResourceMetrics service method. /// /// A cancellation token that can be used by other objects or threads to receive notice of cancellation. /// /// /// The response from the ListAvailableResourceMetrics service method, as returned by PI. /// /// The request failed due to an unknown error. /// /// /// One of the arguments provided is invalid for this request. /// /// /// The user is not authorized to perform this request. /// /// REST API Reference for ListAvailableResourceMetrics Operation Task ListAvailableResourceMetricsAsync(ListAvailableResourceMetricsRequest request, System.Threading.CancellationToken cancellationToken = default(CancellationToken)); #endregion } }