{ "smithy": "1.0", "metadata": { "suppressions": [ { "id": "HttpMethodSemantics", "namespace": "*" }, { "id": "HttpResponseCodeSemantics", "namespace": "*" }, { "id": "PaginatedTrait", "namespace": "*" }, { "id": "HttpHeaderTrait", "namespace": "*" }, { "id": "HttpUriConflict", "namespace": "*" }, { "id": "Service", "namespace": "*" } ] }, "shapes": { "com.amazonaws.pi#DataPoint": { "type": "structure", "members": { "Timestamp": { "target": "com.amazonaws.pi#ISOTimestamp", "traits": { "smithy.api#documentation": "

The time, in epoch format, associated with a particular Value.

", "smithy.api#required": {} } }, "Value": { "target": "com.amazonaws.pi#Double", "traits": { "smithy.api#documentation": "

The actual value associated with a particular Timestamp.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.pi#DataPointsList": { "type": "list", "member": { "target": "com.amazonaws.pi#DataPoint" } }, "com.amazonaws.pi#DescribeDimensionKeys": { "type": "operation", "input": { "target": "com.amazonaws.pi#DescribeDimensionKeysRequest" }, "output": { "target": "com.amazonaws.pi#DescribeDimensionKeysResponse" }, "errors": [ { "target": "com.amazonaws.pi#InternalServiceError" }, { "target": "com.amazonaws.pi#InvalidArgumentException" }, { "target": "com.amazonaws.pi#NotAuthorizedException" } ], "traits": { "smithy.api#documentation": "

For a specific time period, retrieve the top N dimension keys for a\n metric.

\n \n

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

\n
" } }, "com.amazonaws.pi#DescribeDimensionKeysRequest": { "type": "structure", "members": { "ServiceType": { "target": "com.amazonaws.pi#ServiceType", "traits": { "smithy.api#documentation": "

The AWS service for which Performance Insights will return metrics. The only valid value for ServiceType is\n RDS.

", "smithy.api#required": {} } }, "Identifier": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from\n this data source.

\n

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

", "smithy.api#required": {} } }, "StartTime": { "target": "com.amazonaws.pi#ISOTimestamp", "traits": { "smithy.api#documentation": "

The date and time specifying the beginning of the requested time series data. You must specify a\n StartTime within the past 7 days. The value specified is inclusive, which means\n that data points equal to or greater than StartTime are returned.

\n

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

", "smithy.api#required": {} } }, "EndTime": { "target": "com.amazonaws.pi#ISOTimestamp", "traits": { "smithy.api#documentation": "

The date and time specifying the end of the requested time series data. The value specified is\n exclusive, which means that data points less than (but not equal to) EndTime are\n returned.

\n

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

", "smithy.api#required": {} } }, "Metric": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

The name of a Performance Insights metric to be measured.

\n

Valid values for Metric are:

\n \n \n

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg \n 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 \n showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. \n For most use cases, you can query db.load.avg only.

", "smithy.api#required": {} } }, "PeriodInSeconds": { "target": "com.amazonaws.pi#Integer", "traits": { "smithy.api#documentation": "

The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as\n one second, or as long as one day (86400 seconds). Valid values are:

\n \n \n \n

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

" } }, "GroupBy": { "target": "com.amazonaws.pi#DimensionGroup", "traits": { "smithy.api#documentation": "

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

", "smithy.api#required": {} } }, "PartitionBy": { "target": "com.amazonaws.pi#DimensionGroup", "traits": { "smithy.api#documentation": "

For each dimension specified in \n GroupBy, specify a secondary dimension to further subdivide the partition keys in the response.

" } }, "Filter": { "target": "com.amazonaws.pi#MetricQueryFilterMap", "traits": { "smithy.api#documentation": "

One or more filters to apply in the request. Restrictions:

\n " } }, "MaxResults": { "target": "com.amazonaws.pi#MaxResults", "traits": { "smithy.api#documentation": "

The maximum number of items to return in the response. \n If more items exist than the specified MaxRecords value, a pagination \n token is included in the response so that the remaining \n results can be retrieved.\n

" } }, "NextToken": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

An optional pagination token provided by a previous request. If\n this parameter is specified, the response includes only records beyond the token, up to the\n value specified by MaxRecords.

" } } } }, "com.amazonaws.pi#DescribeDimensionKeysResponse": { "type": "structure", "members": { "AlignedStartTime": { "target": "com.amazonaws.pi#ISOTimestamp", "traits": { "smithy.api#documentation": "

The start time for the returned dimension keys, after alignment to a granular boundary (as\n specified by PeriodInSeconds). AlignedStartTime will be less than or\n equal to the value of the user-specified StartTime.

" } }, "AlignedEndTime": { "target": "com.amazonaws.pi#ISOTimestamp", "traits": { "smithy.api#documentation": "

The end time for the returned dimension keys, after alignment to a granular boundary (as\n specified by PeriodInSeconds). AlignedEndTime will be greater than\n or equal to the value of the user-specified Endtime.

" } }, "PartitionKeys": { "target": "com.amazonaws.pi#ResponsePartitionKeyList", "traits": { "smithy.api#documentation": "

If PartitionBy was present in the request, PartitionKeys contains the breakdown of dimension keys by the specified partitions.

" } }, "Keys": { "target": "com.amazonaws.pi#DimensionKeyDescriptionList", "traits": { "smithy.api#documentation": "

The dimension keys that were requested.

" } }, "NextToken": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

An optional pagination token provided by a previous request. If\n this parameter is specified, the response includes only records beyond the token, up to the\n value specified by MaxRecords.

" } } } }, "com.amazonaws.pi#DimensionGroup": { "type": "structure", "members": { "Group": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

The name of the dimension group. Valid values are:

\n \n ", "smithy.api#required": {} } }, "Dimensions": { "target": "com.amazonaws.pi#StringList", "traits": { "smithy.api#documentation": "

A list of specific dimensions from a dimension group. If this parameter is not present,\n then it signifies that all of the dimensions in the group were requested, or are present in\n the response.

\n

Valid values for elements in the Dimensions array are:

\n \n " } }, "Limit": { "target": "com.amazonaws.pi#Limit", "traits": { "smithy.api#documentation": "

The maximum number of items to fetch for this dimension group.

" } } }, "traits": { "smithy.api#documentation": "

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

\n \n

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

\n
" } }, "com.amazonaws.pi#DimensionKeyDescription": { "type": "structure", "members": { "Dimensions": { "target": "com.amazonaws.pi#DimensionMap", "traits": { "smithy.api#documentation": "

A map of name-value pairs for the dimensions in the group.

" } }, "Total": { "target": "com.amazonaws.pi#Double", "traits": { "smithy.api#documentation": "

The aggregated metric value for the dimension(s), over the requested time range.

" } }, "Partitions": { "target": "com.amazonaws.pi#MetricValuesList", "traits": { "smithy.api#documentation": "

If PartitionBy was specified, PartitionKeys contains the dimensions that were.

" } } }, "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.pi#DimensionKeyDescriptionList": { "type": "list", "member": { "target": "com.amazonaws.pi#DimensionKeyDescription" } }, "com.amazonaws.pi#DimensionMap": { "type": "map", "key": { "target": "com.amazonaws.pi#String" }, "value": { "target": "com.amazonaws.pi#String" } }, "com.amazonaws.pi#Double": { "type": "double", "traits": { "smithy.api#box": {} } }, "com.amazonaws.pi#GetResourceMetrics": { "type": "operation", "input": { "target": "com.amazonaws.pi#GetResourceMetricsRequest" }, "output": { "target": "com.amazonaws.pi#GetResourceMetricsResponse" }, "errors": [ { "target": "com.amazonaws.pi#InternalServiceError" }, { "target": "com.amazonaws.pi#InvalidArgumentException" }, { "target": "com.amazonaws.pi#NotAuthorizedException" } ], "traits": { "smithy.api#documentation": "

Retrieve Performance Insights metrics for a set of data sources, over a time period. You can provide\n specific dimension groups and dimensions, and provide aggregation and filtering criteria for\n each group.

\n \n

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

\n
" } }, "com.amazonaws.pi#GetResourceMetricsRequest": { "type": "structure", "members": { "ServiceType": { "target": "com.amazonaws.pi#ServiceType", "traits": { "smithy.api#documentation": "

The AWS service for which Performance Insights returns metrics. The only valid value for ServiceType is\n RDS.

", "smithy.api#required": {} } }, "Identifier": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from\n this data source.

\n

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

", "smithy.api#required": {} } }, "MetricQueries": { "target": "com.amazonaws.pi#MetricQueryList", "traits": { "smithy.api#documentation": "

An array of one or more queries to perform. Each query must specify a Performance Insights metric, and\n can optionally specify aggregation and filtering criteria.

", "smithy.api#required": {} } }, "StartTime": { "target": "com.amazonaws.pi#ISOTimestamp", "traits": { "smithy.api#documentation": "

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

\n

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

", "smithy.api#required": {} } }, "EndTime": { "target": "com.amazonaws.pi#ISOTimestamp", "traits": { "smithy.api#documentation": "

The date and time specifying the end of the requested time series data. The value specified is \n exclusive - data points less than (but not equal to) EndTime will be returned.

\n

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

", "smithy.api#required": {} } }, "PeriodInSeconds": { "target": "com.amazonaws.pi#Integer", "traits": { "smithy.api#documentation": "

The granularity, in seconds, of the data points returned from Performance Insights. A period can be as short as\n one second, or as long as one day (86400 seconds). Valid values are:

\n \n \n \n

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

" } }, "MaxResults": { "target": "com.amazonaws.pi#MaxResults", "traits": { "smithy.api#documentation": "

The maximum number of items to return in the response. \n If more items exist than the specified MaxRecords value, a pagination \n token is included in the response so that the remaining \n results can be retrieved.\n

" } }, "NextToken": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

An optional pagination token provided by a previous request. If\n this parameter is specified, the response includes only records beyond the token, up to the\n value specified by MaxRecords.

" } } } }, "com.amazonaws.pi#GetResourceMetricsResponse": { "type": "structure", "members": { "AlignedStartTime": { "target": "com.amazonaws.pi#ISOTimestamp", "traits": { "smithy.api#documentation": "

The start time for the returned metrics, after alignment to a granular boundary (as\n specified by PeriodInSeconds). AlignedStartTime will be less than or\n equal to the value of the user-specified StartTime.

" } }, "AlignedEndTime": { "target": "com.amazonaws.pi#ISOTimestamp", "traits": { "smithy.api#documentation": "

The end time for the returned metrics, after alignment to a granular boundary (as\n specified by PeriodInSeconds). AlignedEndTime will be greater than\n or equal to the value of the user-specified Endtime.

" } }, "Identifier": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from\n this data source.

\n

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

" } }, "MetricList": { "target": "com.amazonaws.pi#MetricKeyDataPointsList", "traits": { "smithy.api#documentation": "

An array of metric results,, where each array element contains all of the data points for a particular dimension.

" } }, "NextToken": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

An optional pagination token provided by a previous request. If\n this parameter is specified, the response includes only records beyond the token, up to the\n value specified by MaxRecords.

" } } } }, "com.amazonaws.pi#ISOTimestamp": { "type": "timestamp" }, "com.amazonaws.pi#Integer": { "type": "integer", "traits": { "smithy.api#box": {} } }, "com.amazonaws.pi#InternalServiceError": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.pi#String" } }, "traits": { "smithy.api#documentation": "

The request failed due to an unknown error.

", "smithy.api#error": "server" } }, "com.amazonaws.pi#InvalidArgumentException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.pi#String" } }, "traits": { "smithy.api#documentation": "

One of the arguments provided is invalid for this request.

", "smithy.api#error": "client" } }, "com.amazonaws.pi#Limit": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 1, "max": 10 } } }, "com.amazonaws.pi#MaxResults": { "type": "integer", "traits": { "smithy.api#box": {}, "smithy.api#range": { "min": 0, "max": 20 } } }, "com.amazonaws.pi#MetricKeyDataPoints": { "type": "structure", "members": { "Key": { "target": "com.amazonaws.pi#ResponseResourceMetricKey", "traits": { "smithy.api#documentation": "

The dimension(s) to which the data points apply.

" } }, "DataPoints": { "target": "com.amazonaws.pi#DataPointsList", "traits": { "smithy.api#documentation": "

An array of timestamp-value pairs, representing measurements over a period of time.

" } } }, "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.pi#MetricKeyDataPointsList": { "type": "list", "member": { "target": "com.amazonaws.pi#MetricKeyDataPoints" } }, "com.amazonaws.pi#MetricQuery": { "type": "structure", "members": { "Metric": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

The name of a Performance Insights metric to be measured.

\n

Valid values for Metric are:

\n \n \n

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg \n 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 \n showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. \n For most use cases, you can query db.load.avg only.

", "smithy.api#required": {} } }, "GroupBy": { "target": "com.amazonaws.pi#DimensionGroup", "traits": { "smithy.api#documentation": "

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

" } }, "Filter": { "target": "com.amazonaws.pi#MetricQueryFilterMap", "traits": { "smithy.api#documentation": "

One or more filters to apply in the request. Restrictions:

\n " } } }, "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.pi#MetricQueryFilterMap": { "type": "map", "key": { "target": "com.amazonaws.pi#String" }, "value": { "target": "com.amazonaws.pi#String" } }, "com.amazonaws.pi#MetricQueryList": { "type": "list", "member": { "target": "com.amazonaws.pi#MetricQuery" }, "traits": { "smithy.api#length": { "min": 1, "max": 15 } } }, "com.amazonaws.pi#MetricValuesList": { "type": "list", "member": { "target": "com.amazonaws.pi#Double" } }, "com.amazonaws.pi#NotAuthorizedException": { "type": "structure", "members": { "Message": { "target": "com.amazonaws.pi#String" } }, "traits": { "smithy.api#documentation": "

The user is not authorized to perform this request.

", "smithy.api#error": "client" } }, "com.amazonaws.pi#PerformanceInsightsv20180227": { "type": "service", "version": "2018-02-27", "operations": [ { "target": "com.amazonaws.pi#DescribeDimensionKeys" }, { "target": "com.amazonaws.pi#GetResourceMetrics" } ], "traits": { "aws.api#service": { "sdkId": "PI", "arnNamespace": "pi", "cloudFormationName": "PI", "cloudTrailEventSource": "pi.amazonaws.com", "endpointPrefix": "pi" }, "aws.auth#sigv4": { "name": "pi" }, "aws.protocols#awsJson1_1": {}, "smithy.api#documentation": "Amazon RDS Performance Insights\n \n

Amazon RDS Performance Insights enables you to monitor and explore different dimensions of\n database load based on data captured from a running DB instance. The guide provides detailed\n information about Performance Insights data types, parameters and errors.

\n \n

When Performance Insights is enabled, the Amazon RDS Performance Insights API provides visibility into the performance of your DB instance. Amazon\n CloudWatch provides the authoritative source for AWS service-vended monitoring metrics. Performance Insights offers a domain-specific\n view of DB load.

\n

DB load is measured as Average Active Sessions. Performance Insights provides the data to API consumers as a two-dimensional\n time-series dataset. The time dimension provides DB load data for each time point in the queried time range. Each time\n point decomposes overall load in relation to the requested dimensions, measured at that time point. Examples include\n SQL, Wait event, User, and Host.

\n\n ", "smithy.api#title": "AWS Performance Insights", "smithy.api#xmlNamespace": { "uri": "http://pi.amazonaws.com/doc/2018-02-27/" } } }, "com.amazonaws.pi#ResponsePartitionKey": { "type": "structure", "members": { "Dimensions": { "target": "com.amazonaws.pi#DimensionMap", "traits": { "smithy.api#documentation": "

A dimension map that contains the dimension(s) for this partition.

", "smithy.api#required": {} } } }, "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.pi#ResponsePartitionKeyList": { "type": "list", "member": { "target": "com.amazonaws.pi#ResponsePartitionKey" } }, "com.amazonaws.pi#ResponseResourceMetricKey": { "type": "structure", "members": { "Metric": { "target": "com.amazonaws.pi#String", "traits": { "smithy.api#documentation": "

The name of a Performance Insights metric to be measured.

\n

Valid values for Metric are:

\n \n \n

If the number of active sessions is less than an internal Performance Insights threshold, db.load.avg and db.sampledload.avg \n 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 \n showing the scaled values, db.sampledload.avg showing the raw values, and db.sampledload.avg less than db.load.avg. \n For most use cases, you can query db.load.avg only.

", "smithy.api#required": {} } }, "Dimensions": { "target": "com.amazonaws.pi#DimensionMap", "traits": { "smithy.api#documentation": "

The valid dimensions for the metric.

" } } }, "traits": { "smithy.api#documentation": "

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

" } }, "com.amazonaws.pi#ServiceType": { "type": "string", "traits": { "smithy.api#enum": [ { "value": "RDS", "name": "RDS" } ] } }, "com.amazonaws.pi#String": { "type": "string" }, "com.amazonaws.pi#StringList": { "type": "list", "member": { "target": "com.amazonaws.pi#String" }, "traits": { "smithy.api#length": { "min": 1, "max": 10 } } } } }