libZSservicesZSamazonka-piZSamazonka-pi
Copyright(c) 2013-2021 Brendan Hay
LicenseMozilla Public License, v. 2.0.
MaintainerBrendan Hay <brendan.g.hay+amazonka@gmail.com>
Stabilityauto-generated
Portabilitynon-portable (GHC extensions)
Safe HaskellNone

Amazonka.Pi

Description

Derived from API version 2018-02-27 of the AWS service descriptions, licensed under Apache 2.0.

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 AWS 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.

Synopsis

Service Configuration

defaultService :: Service Source #

API version 2018-02-27 of the Amazon Performance Insights SDK configuration.

Errors

Error matchers are designed for use with the functions provided by Control.Exception.Lens. This allows catching (and rethrowing) service specific errors returned by Pi.

InvalidArgumentException

_InvalidArgumentException :: AsError a => Getting (First ServiceError) a ServiceError Source #

One of the arguments provided is invalid for this request.

NotAuthorizedException

_NotAuthorizedException :: AsError a => Getting (First ServiceError) a ServiceError Source #

The user is not authorized to perform this request.

InternalServiceError

_InternalServiceError :: AsError a => Getting (First ServiceError) a ServiceError Source #

The request failed due to an unknown error.

Waiters

Waiters poll by repeatedly sending a request until some remote success condition configured by the Wait specification is fulfilled. The Wait specification determines how many attempts should be made, in addition to delay and retry strategies.

Operations

Some AWS operations return results that are incomplete and require subsequent requests in order to obtain the entire result set. The process of sending subsequent requests to continue where a previous request left off is called pagination. For example, the ListObjects operation of Amazon S3 returns up to 1000 objects at a time, and you must send subsequent requests with the appropriate Marker in order to retrieve the next page of results.

Operations that have an AWSPager instance can transparently perform subsequent requests, correctly setting Markers and other request facets to iterate through the entire result set of a truncated API operation. Operations which support this have an additional note in the documentation.

Many operations have the ability to filter results on the server side. See the individual operation parameters for details.

GetDimensionKeyDetails

data GetDimensionKeyDetails Source #

See: newGetDimensionKeyDetails smart constructor.

Instances

Instances details
Eq GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Read GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Show GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Generic GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Associated Types

type Rep GetDimensionKeyDetails :: Type -> Type #

NFData GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Methods

rnf :: GetDimensionKeyDetails -> () #

Hashable GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

ToJSON GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

AWSRequest GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Associated Types

type AWSResponse GetDimensionKeyDetails #

ToHeaders GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

ToPath GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

ToQuery GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

type Rep GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

type Rep GetDimensionKeyDetails = D1 ('MetaData "GetDimensionKeyDetails" "Amazonka.Pi.GetDimensionKeyDetails" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "GetDimensionKeyDetails'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "requestedDimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "serviceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 ServiceType)) :*: (S1 ('MetaSel ('Just "identifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: (S1 ('MetaSel ('Just "group'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text) :*: S1 ('MetaSel ('Just "groupIdentifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))))
type AWSResponse GetDimensionKeyDetails Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

newGetDimensionKeyDetails Source #

Create a value of GetDimensionKeyDetails with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:requestedDimensions:GetDimensionKeyDetails', getDimensionKeyDetails_requestedDimensions - A list of dimensions to retrieve the detail data for within the given dimension group. For the dimension group db.sql, specify either the full dimension name db.sql.statement or the short dimension name statement. If you don't specify this parameter, Performance Insights returns all dimension data within the specified dimension group.

$sel:serviceType:GetDimensionKeyDetails', getDimensionKeyDetails_serviceType - The AWS service for which Performance Insights returns data. The only valid value is RDS.

$sel:identifier:GetDimensionKeyDetails', getDimensionKeyDetails_identifier - The ID for a data source from which to gather dimension data. This ID must be immutable and unique within an AWS Region. When a DB instance is the data source, specify its DbiResourceId value. For example, specify db-ABCDEFGHIJKLMNOPQRSTU1VW2X.

$sel:group':GetDimensionKeyDetails', getDimensionKeyDetails_group - The name of the dimension group. The only valid value is db.sql. Performance Insights searches the specified group for the dimension group ID.

$sel:groupIdentifier:GetDimensionKeyDetails', getDimensionKeyDetails_groupIdentifier - The ID of the dimension group from which to retrieve dimension details. For dimension group db.sql, the group ID is db.sql.id.

data GetDimensionKeyDetailsResponse Source #

See: newGetDimensionKeyDetailsResponse smart constructor.

Instances

Instances details
Eq GetDimensionKeyDetailsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Read GetDimensionKeyDetailsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Show GetDimensionKeyDetailsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Generic GetDimensionKeyDetailsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

Associated Types

type Rep GetDimensionKeyDetailsResponse :: Type -> Type #

NFData GetDimensionKeyDetailsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

type Rep GetDimensionKeyDetailsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetDimensionKeyDetails

type Rep GetDimensionKeyDetailsResponse = D1 ('MetaData "GetDimensionKeyDetailsResponse" "Amazonka.Pi.GetDimensionKeyDetails" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "GetDimensionKeyDetailsResponse'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DimensionKeyDetail])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))

newGetDimensionKeyDetailsResponse Source #

Create a value of GetDimensionKeyDetailsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dimensions:GetDimensionKeyDetailsResponse', getDimensionKeyDetailsResponse_dimensions - The details for the requested dimensions.

$sel:httpStatus:GetDimensionKeyDetailsResponse', getDimensionKeyDetailsResponse_httpStatus - The response's http status code.

GetResourceMetrics

data GetResourceMetrics Source #

See: newGetResourceMetrics smart constructor.

Instances

Instances details
Eq GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Read GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Show GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Generic GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Associated Types

type Rep GetResourceMetrics :: Type -> Type #

NFData GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Methods

rnf :: GetResourceMetrics -> () #

Hashable GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

ToJSON GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

AWSRequest GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Associated Types

type AWSResponse GetResourceMetrics #

ToHeaders GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

ToPath GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

ToQuery GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

type Rep GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

type AWSResponse GetResourceMetrics Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

newGetResourceMetrics Source #

Create a value of GetResourceMetrics with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:periodInSeconds:GetResourceMetrics', getResourceMetrics_periodInSeconds - The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:

  • 1 (one second)
  • 60 (one minute)
  • 300 (five minutes)
  • 3600 (one hour)
  • 86400 (twenty-four hours)

If you don't specify PeriodInSeconds, then Performance Insights will choose a value for you, with a goal of returning roughly 100-200 data points in the response.

$sel:nextToken:GetResourceMetrics', getResourceMetrics_nextToken - An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

$sel:maxResults:GetResourceMetrics', getResourceMetrics_maxResults - The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved.

$sel:serviceType:GetResourceMetrics', getResourceMetrics_serviceType - The AWS service for which Performance Insights returns metrics. The only valid value for ServiceType is RDS.

$sel:identifier:GetResourceMetrics', getResourceMetrics_identifier - An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use a DB instance as a data source, specify its DbiResourceId value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A.

$sel:metricQueries:GetResourceMetrics', getResourceMetrics_metricQueries - An array of one or more queries to perform. Each query must specify a Performance Insights metric, and can optionally specify aggregation and filtering criteria.

$sel:startTime:GetResourceMetrics', getResourceMetrics_startTime - The date and time specifying the beginning of the requested time series data. You can't specify a StartTime that's earlier than 7 days ago. The value specified is inclusive - data points equal to or greater than StartTime will be returned.

The value for StartTime must be earlier than the value for EndTime.

$sel:endTime:GetResourceMetrics', getResourceMetrics_endTime - The date and time specifying the end of the requested time series data. The value specified is exclusive - data points less than (but not equal to) EndTime will be returned.

The value for EndTime must be later than the value for StartTime.

data GetResourceMetricsResponse Source #

See: newGetResourceMetricsResponse smart constructor.

Instances

Instances details
Eq GetResourceMetricsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Read GetResourceMetricsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Show GetResourceMetricsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Generic GetResourceMetricsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

Associated Types

type Rep GetResourceMetricsResponse :: Type -> Type #

NFData GetResourceMetricsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

type Rep GetResourceMetricsResponse Source # 
Instance details

Defined in Amazonka.Pi.GetResourceMetrics

type Rep GetResourceMetricsResponse = D1 ('MetaData "GetResourceMetricsResponse" "Amazonka.Pi.GetResourceMetrics" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "GetResourceMetricsResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "identifier") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "metricList") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [MetricKeyDataPoints])) :*: S1 ('MetaSel ('Just "alignedEndTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)))) :*: (S1 ('MetaSel ('Just "alignedStartTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newGetResourceMetricsResponse Source #

Create a value of GetResourceMetricsResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:identifier:GetResourceMetrics', getResourceMetricsResponse_identifier - An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use a DB instance as a data source, you specify its DbiResourceId value - for example: db-FAIHNTYBKTGAUSUZQYPDS2GW4A

$sel:metricList:GetResourceMetricsResponse', getResourceMetricsResponse_metricList - An array of metric results,, where each array element contains all of the data points for a particular dimension.

$sel:alignedEndTime:GetResourceMetricsResponse', getResourceMetricsResponse_alignedEndTime - The end time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.

$sel:alignedStartTime:GetResourceMetricsResponse', getResourceMetricsResponse_alignedStartTime - The start time for the returned metrics, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.

$sel:nextToken:GetResourceMetrics', getResourceMetricsResponse_nextToken - An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

$sel:httpStatus:GetResourceMetricsResponse', getResourceMetricsResponse_httpStatus - The response's http status code.

DescribeDimensionKeys

data DescribeDimensionKeys Source #

See: newDescribeDimensionKeys smart constructor.

Instances

Instances details
Eq DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Read DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Show DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Generic DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Associated Types

type Rep DescribeDimensionKeys :: Type -> Type #

NFData DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Methods

rnf :: DescribeDimensionKeys -> () #

Hashable DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

ToJSON DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

AWSRequest DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Associated Types

type AWSResponse DescribeDimensionKeys #

ToHeaders DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

ToPath DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

ToQuery DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

type Rep DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

type AWSResponse DescribeDimensionKeys Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

newDescribeDimensionKeys Source #

Create a value of DescribeDimensionKeys with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:periodInSeconds:DescribeDimensionKeys', describeDimensionKeys_periodInSeconds - The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as one second, or as long as one day (86400 seconds). Valid values are:

  • 1 (one second)
  • 60 (one minute)
  • 300 (five minutes)
  • 3600 (one hour)
  • 86400 (twenty-four hours)

If you don't specify PeriodInSeconds, then Performance Insights chooses a value for you, with a goal of returning roughly 100-200 data points in the response.

$sel:nextToken:DescribeDimensionKeys', describeDimensionKeys_nextToken - An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

$sel:filter':DescribeDimensionKeys', describeDimensionKeys_filter - One or more filters to apply in the request. Restrictions:

  • Any number of filters by the same dimension, as specified in the GroupBy or Partition parameters.
  • A single filter for any other dimension in this dimension group.

$sel:maxResults:DescribeDimensionKeys', describeDimensionKeys_maxResults - The maximum number of items to return in the response. If more items exist than the specified MaxRecords value, a pagination token is included in the response so that the remaining results can be retrieved.

$sel:partitionBy:DescribeDimensionKeys', describeDimensionKeys_partitionBy - For each dimension specified in GroupBy, specify a secondary dimension to further subdivide the partition keys in the response.

$sel:serviceType:DescribeDimensionKeys', describeDimensionKeys_serviceType - The AWS service for which Performance Insights will return metrics. The only valid value for ServiceType is RDS.

$sel:identifier:DescribeDimensionKeys', describeDimensionKeys_identifier - An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from this data source.

To use an Amazon RDS instance as a data source, you specify its DbiResourceId value. For example, specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A

$sel:startTime:DescribeDimensionKeys', describeDimensionKeys_startTime - The date and time specifying the beginning of the requested time series data. You must specify a StartTime within the past 7 days. The value specified is inclusive, which means that data points equal to or greater than StartTime are returned.

The value for StartTime must be earlier than the value for EndTime.

$sel:endTime:DescribeDimensionKeys', describeDimensionKeys_endTime - The date and time specifying the end of the requested time series data. The value specified is exclusive, which means that data points less than (but not equal to) EndTime are returned.

The value for EndTime must be later than the value for StartTime.

$sel:metric:DescribeDimensionKeys', describeDimensionKeys_metric - The name of a Performance Insights metric to be measured.

Valid values for Metric are:

  • db.load.avg - a scaled representation of the number of active sessions for the database engine.
  • db.sampledload.avg - the raw number of active sessions for the database engine.

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only.

$sel:groupBy:DescribeDimensionKeys', describeDimensionKeys_groupBy - A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights returns all dimensions within this group, unless you provide the names of specific dimensions within this group. You can also request that Performance Insights return a limited number of values for a dimension.

data DescribeDimensionKeysResponse Source #

See: newDescribeDimensionKeysResponse smart constructor.

Instances

Instances details
Eq DescribeDimensionKeysResponse Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Read DescribeDimensionKeysResponse Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Show DescribeDimensionKeysResponse Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Generic DescribeDimensionKeysResponse Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

Associated Types

type Rep DescribeDimensionKeysResponse :: Type -> Type #

NFData DescribeDimensionKeysResponse Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

type Rep DescribeDimensionKeysResponse Source # 
Instance details

Defined in Amazonka.Pi.DescribeDimensionKeys

type Rep DescribeDimensionKeysResponse = D1 ('MetaData "DescribeDimensionKeysResponse" "Amazonka.Pi.DescribeDimensionKeys" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "DescribeDimensionKeysResponse'" 'PrefixI 'True) ((S1 ('MetaSel ('Just "alignedEndTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: (S1 ('MetaSel ('Just "alignedStartTime") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe POSIX)) :*: S1 ('MetaSel ('Just "keys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DimensionKeyDescription])))) :*: (S1 ('MetaSel ('Just "nextToken") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: (S1 ('MetaSel ('Just "partitionKeys") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [ResponsePartitionKey])) :*: S1 ('MetaSel ('Just "httpStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Int)))))

newDescribeDimensionKeysResponse Source #

Create a value of DescribeDimensionKeysResponse with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:alignedEndTime:DescribeDimensionKeysResponse', describeDimensionKeysResponse_alignedEndTime - The end time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedEndTime will be greater than or equal to the value of the user-specified Endtime.

$sel:alignedStartTime:DescribeDimensionKeysResponse', describeDimensionKeysResponse_alignedStartTime - The start time for the returned dimension keys, after alignment to a granular boundary (as specified by PeriodInSeconds). AlignedStartTime will be less than or equal to the value of the user-specified StartTime.

$sel:keys:DescribeDimensionKeysResponse', describeDimensionKeysResponse_keys - The dimension keys that were requested.

$sel:nextToken:DescribeDimensionKeys', describeDimensionKeysResponse_nextToken - An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords.

$sel:partitionKeys:DescribeDimensionKeysResponse', describeDimensionKeysResponse_partitionKeys - If PartitionBy was present in the request, PartitionKeys contains the breakdown of dimension keys by the specified partitions.

$sel:httpStatus:DescribeDimensionKeysResponse', describeDimensionKeysResponse_httpStatus - The response's http status code.

Types

DetailStatus

newtype DetailStatus Source #

Constructors

DetailStatus' 

Instances

Instances details
Eq DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

Ord DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

Read DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

Show DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

Generic DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

Associated Types

type Rep DetailStatus :: Type -> Type #

NFData DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

Methods

rnf :: DetailStatus -> () #

Hashable DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

ToJSON DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

ToJSONKey DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

FromJSON DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

FromJSONKey DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

ToLog DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

ToHeader DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

ToQuery DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

FromXML DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

ToXML DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

Methods

toXML :: DetailStatus -> XML #

ToByteString DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

FromText DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

ToText DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

Methods

toText :: DetailStatus -> Text #

type Rep DetailStatus Source # 
Instance details

Defined in Amazonka.Pi.Types.DetailStatus

type Rep DetailStatus = D1 ('MetaData "DetailStatus" "Amazonka.Pi.Types.DetailStatus" "libZSservicesZSamazonka-piZSamazonka-pi" 'True) (C1 ('MetaCons "DetailStatus'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromDetailStatus") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

ServiceType

newtype ServiceType Source #

Constructors

ServiceType' 

Bundled Patterns

pattern ServiceType_RDS :: ServiceType 

Instances

Instances details
Eq ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

Ord ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

Read ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

Show ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

Generic ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

Associated Types

type Rep ServiceType :: Type -> Type #

NFData ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

Methods

rnf :: ServiceType -> () #

Hashable ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

ToJSON ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

ToJSONKey ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

FromJSON ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

FromJSONKey ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

ToLog ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

ToHeader ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

ToQuery ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

FromXML ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

ToXML ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

Methods

toXML :: ServiceType -> XML #

ToByteString ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

FromText ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

ToText ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

Methods

toText :: ServiceType -> Text #

type Rep ServiceType Source # 
Instance details

Defined in Amazonka.Pi.Types.ServiceType

type Rep ServiceType = D1 ('MetaData "ServiceType" "Amazonka.Pi.Types.ServiceType" "libZSservicesZSamazonka-piZSamazonka-pi" 'True) (C1 ('MetaCons "ServiceType'" 'PrefixI 'True) (S1 ('MetaSel ('Just "fromServiceType") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedLazy) (Rec0 Text)))

DataPoint

data DataPoint Source #

A timestamp, and a single numerical value, which together represent a measurement at a particular point in time.

See: newDataPoint smart constructor.

Constructors

DataPoint' POSIX Double 

Instances

Instances details
Eq DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Read DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Show DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Generic DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Associated Types

type Rep DataPoint :: Type -> Type #

NFData DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

Methods

rnf :: DataPoint -> () #

Hashable DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

FromJSON DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

type Rep DataPoint Source # 
Instance details

Defined in Amazonka.Pi.Types.DataPoint

type Rep DataPoint = D1 ('MetaData "DataPoint" "Amazonka.Pi.Types.DataPoint" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "DataPoint'" 'PrefixI 'True) (S1 ('MetaSel ('Just "timestamp") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 POSIX) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Double)))

newDataPoint Source #

Create a value of DataPoint with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:timestamp:DataPoint', dataPoint_timestamp - The time, in epoch format, associated with a particular Value.

$sel:value:DataPoint', dataPoint_value - The actual value associated with a particular Timestamp.

DimensionGroup

data DimensionGroup Source #

A logical grouping of Performance Insights metrics for a related subject area. For example, the db.sql dimension group consists of the following dimensions: db.sql.id, db.sql.db_id, db.sql.statement, and db.sql.tokenized_id.

Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.

See: newDimensionGroup smart constructor.

Instances

Instances details
Eq DimensionGroup Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionGroup

Read DimensionGroup Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionGroup

Show DimensionGroup Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionGroup

Generic DimensionGroup Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionGroup

Associated Types

type Rep DimensionGroup :: Type -> Type #

NFData DimensionGroup Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionGroup

Methods

rnf :: DimensionGroup -> () #

Hashable DimensionGroup Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionGroup

ToJSON DimensionGroup Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionGroup

type Rep DimensionGroup Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionGroup

type Rep DimensionGroup = D1 ('MetaData "DimensionGroup" "Amazonka.Pi.Types.DimensionGroup" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "DimensionGroup'" 'PrefixI 'True) (S1 ('MetaSel ('Just "limit") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Natural)) :*: (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (NonEmpty Text))) :*: S1 ('MetaSel ('Just "group'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newDimensionGroup Source #

Create a value of DimensionGroup with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:limit:DimensionGroup', dimensionGroup_limit - The maximum number of items to fetch for this dimension group.

$sel:dimensions:DimensionGroup', dimensionGroup_dimensions - A list of specific dimensions from a dimension group. If this parameter is not present, then it signifies that all of the dimensions in the group were requested, or are present in the response.

Valid values for elements in the Dimensions array are:

  • db.application.name - The name of the application that is connected to the database (only Aurora PostgreSQL and RDS PostgreSQL)
  • db.host.id - The host ID of the connected client (all engines)
  • db.host.name - The host name of the connected client (all engines)
  • db.name - The name of the database to which the client is connected (only Aurora PostgreSQL, RDS PostgreSQL, Aurora MySQL, RDS MySQL, and MariaDB)
  • db.session_type.name - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL)
  • db.sql.id - The SQL ID generated by Performance Insights (all engines)
  • db.sql.db_id - The SQL ID generated by the database (all engines)
  • db.sql.statement - The SQL text that is being executed (all engines)
  • db.sql.tokenized_id
  • db.sql_tokenized.id - The SQL digest ID generated by Performance Insights (all engines)
  • db.sql_tokenized.db_id - SQL digest ID generated by the database (all engines)
  • db.sql_tokenized.statement - The SQL digest text (all engines)
  • db.user.id - The ID of the user logged in to the database (all engines)
  • db.user.name - The name of the user logged in to the database (all engines)
  • db.wait_event.name - The event for which the backend is waiting (all engines)
  • db.wait_event.type - The type of event for which the backend is waiting (all engines)
  • db.wait_event_type.name - The name of the event type for which the backend is waiting (all engines)

$sel:group':DimensionGroup', dimensionGroup_group - The name of the dimension group. Valid values are:

  • db - The name of the database to which the client is connected (only Aurora PostgreSQL, RDS PostgreSQL, Aurora MySQL, RDS MySQL, and MariaDB)
  • db.application - The name of the application that is connected to the database (only Aurora PostgreSQL and RDS PostgreSQL)
  • db.host - The host name of the connected client (all engines)
  • db.session_type - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL)
  • db.sql - The SQL that is currently executing (all engines)
  • db.sql_tokenized - The SQL digest (all engines)
  • db.wait_event - The event for which the database backend is waiting (all engines)
  • db.wait_event_type - The type of event for which the database backend is waiting (all engines)
  • db.user - The user logged in to the database (all engines)

DimensionKeyDescription

data DimensionKeyDescription Source #

An array of descriptions and aggregated values for each dimension within a dimension group.

See: newDimensionKeyDescription smart constructor.

Instances

Instances details
Eq DimensionKeyDescription Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDescription

Read DimensionKeyDescription Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDescription

Show DimensionKeyDescription Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDescription

Generic DimensionKeyDescription Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDescription

Associated Types

type Rep DimensionKeyDescription :: Type -> Type #

NFData DimensionKeyDescription Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDescription

Methods

rnf :: DimensionKeyDescription -> () #

Hashable DimensionKeyDescription Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDescription

FromJSON DimensionKeyDescription Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDescription

type Rep DimensionKeyDescription Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDescription

type Rep DimensionKeyDescription = D1 ('MetaData "DimensionKeyDescription" "Amazonka.Pi.Types.DimensionKeyDescription" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "DimensionKeyDescription'" 'PrefixI 'True) (S1 ('MetaSel ('Just "partitions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [Double])) :*: (S1 ('MetaSel ('Just "total") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Double)) :*: S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))))))

newDimensionKeyDescription :: DimensionKeyDescription Source #

Create a value of DimensionKeyDescription with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:partitions:DimensionKeyDescription', dimensionKeyDescription_partitions - If PartitionBy was specified, PartitionKeys contains the dimensions that were.

$sel:total:DimensionKeyDescription', dimensionKeyDescription_total - The aggregated metric value for the dimension(s), over the requested time range.

$sel:dimensions:DimensionKeyDescription', dimensionKeyDescription_dimensions - A map of name-value pairs for the dimensions in the group.

DimensionKeyDetail

data DimensionKeyDetail Source #

An object that describes the details for a specified dimension.

See: newDimensionKeyDetail smart constructor.

Instances

Instances details
Eq DimensionKeyDetail Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDetail

Read DimensionKeyDetail Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDetail

Show DimensionKeyDetail Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDetail

Generic DimensionKeyDetail Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDetail

Associated Types

type Rep DimensionKeyDetail :: Type -> Type #

NFData DimensionKeyDetail Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDetail

Methods

rnf :: DimensionKeyDetail -> () #

Hashable DimensionKeyDetail Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDetail

FromJSON DimensionKeyDetail Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDetail

type Rep DimensionKeyDetail Source # 
Instance details

Defined in Amazonka.Pi.Types.DimensionKeyDetail

type Rep DimensionKeyDetail = D1 ('MetaData "DimensionKeyDetail" "Amazonka.Pi.Types.DimensionKeyDetail" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "DimensionKeyDetail'" 'PrefixI 'True) (S1 ('MetaSel ('Just "status") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DetailStatus)) :*: (S1 ('MetaSel ('Just "dimension") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)) :*: S1 ('MetaSel ('Just "value") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe Text)))))

newDimensionKeyDetail :: DimensionKeyDetail Source #

Create a value of DimensionKeyDetail with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:status:DimensionKeyDetail', dimensionKeyDetail_status - The status of the dimension detail data. Possible values include the following:

  • AVAILABLE - The dimension detail data is ready to be retrieved.
  • PROCESSING - The dimension detail data isn't ready to be retrieved because more processing time is required. If the requested detail data for db.sql.statement has the status PROCESSING, Performance Insights returns the truncated query.
  • UNAVAILABLE - The dimension detail data could not be collected successfully.

$sel:dimension:DimensionKeyDetail', dimensionKeyDetail_dimension - The full name of the dimension. The full name includes the group name and key name. The only valid value is db.sql.statement.

$sel:value:DimensionKeyDetail', dimensionKeyDetail_value - The value of the dimension detail data. For the db.sql.statement dimension, this value is either the full or truncated SQL query, depending on the return status.

MetricKeyDataPoints

data MetricKeyDataPoints Source #

A time-ordered series of data points, corresponding to a dimension of a Performance Insights metric.

See: newMetricKeyDataPoints smart constructor.

Instances

Instances details
Eq MetricKeyDataPoints Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricKeyDataPoints

Read MetricKeyDataPoints Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricKeyDataPoints

Show MetricKeyDataPoints Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricKeyDataPoints

Generic MetricKeyDataPoints Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricKeyDataPoints

Associated Types

type Rep MetricKeyDataPoints :: Type -> Type #

NFData MetricKeyDataPoints Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricKeyDataPoints

Methods

rnf :: MetricKeyDataPoints -> () #

Hashable MetricKeyDataPoints Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricKeyDataPoints

FromJSON MetricKeyDataPoints Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricKeyDataPoints

type Rep MetricKeyDataPoints Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricKeyDataPoints

type Rep MetricKeyDataPoints = D1 ('MetaData "MetricKeyDataPoints" "Amazonka.Pi.Types.MetricKeyDataPoints" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "MetricKeyDataPoints'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dataPoints") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe [DataPoint])) :*: S1 ('MetaSel ('Just "key") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe ResponseResourceMetricKey))))

newMetricKeyDataPoints :: MetricKeyDataPoints Source #

Create a value of MetricKeyDataPoints with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dataPoints:MetricKeyDataPoints', metricKeyDataPoints_dataPoints - An array of timestamp-value pairs, representing measurements over a period of time.

$sel:key:MetricKeyDataPoints', metricKeyDataPoints_key - The dimension(s) to which the data points apply.

MetricQuery

data MetricQuery Source #

A single query to be processed. You must provide the metric to query. If no other parameters are specified, Performance Insights returns all of the data points for that metric. You can optionally request that the data points be aggregated by dimension group ( GroupBy), and return only those data points that match your criteria (Filter).

See: newMetricQuery smart constructor.

Instances

Instances details
Eq MetricQuery Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricQuery

Read MetricQuery Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricQuery

Show MetricQuery Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricQuery

Generic MetricQuery Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricQuery

Associated Types

type Rep MetricQuery :: Type -> Type #

NFData MetricQuery Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricQuery

Methods

rnf :: MetricQuery -> () #

Hashable MetricQuery Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricQuery

ToJSON MetricQuery Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricQuery

type Rep MetricQuery Source # 
Instance details

Defined in Amazonka.Pi.Types.MetricQuery

type Rep MetricQuery = D1 ('MetaData "MetricQuery" "Amazonka.Pi.Types.MetricQuery" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "MetricQuery'" 'PrefixI 'True) (S1 ('MetaSel ('Just "groupBy") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe DimensionGroup)) :*: (S1 ('MetaSel ('Just "filter'") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "metric") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text))))

newMetricQuery Source #

Create a value of MetricQuery with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:groupBy:MetricQuery', metricQuery_groupBy - A specification for how to aggregate the data points from a query result. You must specify a valid dimension group. Performance Insights will return all of the dimensions within that group, unless you provide the names of specific dimensions within that group. You can also request that Performance Insights return a limited number of values for a dimension.

$sel:filter':MetricQuery', metricQuery_filter - One or more filters to apply in the request. Restrictions:

  • Any number of filters by the same dimension, as specified in the GroupBy parameter.
  • A single filter for any other dimension in this dimension group.

$sel:metric:MetricQuery', metricQuery_metric - The name of a Performance Insights metric to be measured.

Valid values for Metric are:

  • db.load.avg - a scaled representation of the number of active sessions for the database engine.
  • db.sampledload.avg - the raw number of active sessions for the database engine.

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only.

ResponsePartitionKey

data ResponsePartitionKey Source #

If PartitionBy was specified in a DescribeDimensionKeys request, the dimensions are returned in an array. Each element in the array specifies one dimension.

See: newResponsePartitionKey smart constructor.

Instances

Instances details
Eq ResponsePartitionKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponsePartitionKey

Read ResponsePartitionKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponsePartitionKey

Show ResponsePartitionKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponsePartitionKey

Generic ResponsePartitionKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponsePartitionKey

Associated Types

type Rep ResponsePartitionKey :: Type -> Type #

NFData ResponsePartitionKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponsePartitionKey

Methods

rnf :: ResponsePartitionKey -> () #

Hashable ResponsePartitionKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponsePartitionKey

FromJSON ResponsePartitionKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponsePartitionKey

type Rep ResponsePartitionKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponsePartitionKey

type Rep ResponsePartitionKey = D1 ('MetaData "ResponsePartitionKey" "Amazonka.Pi.Types.ResponsePartitionKey" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "ResponsePartitionKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (HashMap Text Text))))

newResponsePartitionKey :: ResponsePartitionKey Source #

Create a value of ResponsePartitionKey with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dimensions:ResponsePartitionKey', responsePartitionKey_dimensions - A dimension map that contains the dimension(s) for this partition.

ResponseResourceMetricKey

data ResponseResourceMetricKey Source #

An object describing a Performance Insights metric and one or more dimensions for that metric.

See: newResponseResourceMetricKey smart constructor.

Instances

Instances details
Eq ResponseResourceMetricKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponseResourceMetricKey

Read ResponseResourceMetricKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponseResourceMetricKey

Show ResponseResourceMetricKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponseResourceMetricKey

Generic ResponseResourceMetricKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponseResourceMetricKey

Associated Types

type Rep ResponseResourceMetricKey :: Type -> Type #

NFData ResponseResourceMetricKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponseResourceMetricKey

Hashable ResponseResourceMetricKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponseResourceMetricKey

FromJSON ResponseResourceMetricKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponseResourceMetricKey

type Rep ResponseResourceMetricKey Source # 
Instance details

Defined in Amazonka.Pi.Types.ResponseResourceMetricKey

type Rep ResponseResourceMetricKey = D1 ('MetaData "ResponseResourceMetricKey" "Amazonka.Pi.Types.ResponseResourceMetricKey" "libZSservicesZSamazonka-piZSamazonka-pi" 'False) (C1 ('MetaCons "ResponseResourceMetricKey'" 'PrefixI 'True) (S1 ('MetaSel ('Just "dimensions") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 (Maybe (HashMap Text Text))) :*: S1 ('MetaSel ('Just "metric") 'NoSourceUnpackedness 'NoSourceStrictness 'DecidedStrict) (Rec0 Text)))

newResponseResourceMetricKey Source #

Create a value of ResponseResourceMetricKey with all optional fields omitted.

Use generic-lens or optics to modify other optional fields.

The following record fields are available, with the corresponding lenses provided for backwards compatibility:

$sel:dimensions:ResponseResourceMetricKey', responseResourceMetricKey_dimensions - The valid dimensions for the metric.

$sel:metric:ResponseResourceMetricKey', responseResourceMetricKey_metric - The name of a Performance Insights metric to be measured.

Valid values for Metric are:

  • db.load.avg - a scaled representation of the number of active sessions for the database engine.
  • db.sampledload.avg - the raw number of active sessions for the database engine.

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg are the same value. If the number of active sessions is greater than the internal threshold, Performance Insights samples the active sessions, with db.load.avg showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. For most use cases, you can query db.load.avg only.