{ "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
.
The actual value associated with a particular Timestamp
.
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.
Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, \n only the first 500 bytes are returned.
\nThe AWS service for which Performance Insights will return metrics. The only valid value for ServiceType is\n RDS
.
An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from\n this data source.
\nTo use an Amazon RDS instance as a data source, you specify its DbiResourceId
value. For example,\n specify db-FAIHNTYBKTGAUSUZQYPDS2GW4A
\n
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.
The value for StartTime
must be earlier than the value for\n EndTime
.
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.
The value for EndTime
must be later than the value for\n StartTime
.
The name of a Performance Insights metric to be measured.
\nValid values for Metric
are:
\n db.load.avg
- a scaled representation of the number of active sessions\n for the database engine.
\n db.sampledload.avg
- the raw number of active sessions for the\n database engine.
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.
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 1
(one second)
\n 60
(one minute)
\n 300
(five minutes)
\n 3600
(one hour)
\n 86400
(twenty-four hours)
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.
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.
One or more filters to apply in the request. Restrictions:
\nAny number of filters by the same dimension, as specified in the GroupBy
or\n Partition
parameters.
A single filter for any other dimension in this dimension group.
\nThe 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
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
.
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
.
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
.
If PartitionBy
was present in the request, PartitionKeys
contains the breakdown of dimension keys by the specified partitions.
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
.
The name of the dimension group. Valid values are:
\n \n\n db
- The name of the database to which the client is connected (only Aurora PostgreSQL, RDS\n PostgreSQL, Aurora MySQL, RDS MySQL, and MariaDB)
\n db.application
- The name of the application that is connected to the database (only Aurora\n PostgreSQL and RDS PostgreSQL)
\n db.host
- The host name of the connected client (all engines)
\n db.session_type
- The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL)
\n db.sql
- The SQL that is currently executing (all engines)
\n db.sql_tokenized
- The SQL digest (all engines)
\n db.wait_event
- The event for which the database backend is waiting (all engines)
\n db.wait_event_type
- The type of event for which the database backend is waiting (all engines)
\n db.user
- The user logged in to the database (all engines)
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.
\nValid values for elements in the Dimensions
array are:
\n db.application.name
- The name of the application that is connected to the database (only\n Aurora PostgreSQL and RDS PostgreSQL)
\n db.host.id
- The host ID of the connected client (all engines)
\n db.host.name
- The host name of the connected client (all engines)
\n db.name
- The name of the database to which the client is connected (only Aurora\n PostgreSQL, RDS PostgreSQL, Aurora MySQL, RDS MySQL, and MariaDB)
\n db.session_type.name
- The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL)
\n db.sql.id
- The SQL ID generated by Performance Insights (all engines)
\n db.sql.db_id
- The SQL ID generated by the database (all engines)
\n db.sql.statement
- The SQL text that is being executed (all engines)
\n db.sql.tokenized_id
\n
\n db.sql_tokenized.id
- The SQL digest ID generated by Performance Insights (all engines)
\n db.sql_tokenized.db_id
- SQL digest ID generated by the database (all engines)
\n db.sql_tokenized.statement
- The SQL digest text (all engines)
\n db.user.id
- The ID of the user logged in to the database (all engines)
\n db.user.name
- The name of the user logged in to the database (all engines)
\n db.wait_event.name
- The event for which the backend is waiting (all engines)
\n db.wait_event.type
- The type of event for which the backend is waiting (all engines)
\n db.wait_event_type.name
- The name of the event type for which the backend is waiting (all\n engines)
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
.
Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, \n only the first 500 bytes are returned.
\nA 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.
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.
\nEach response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, \n only the first 500 bytes are returned.
\nThe AWS service for which Performance Insights returns metrics. The only valid value for ServiceType is\n RDS
.
An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from\n this data source.
\nTo use a DB instance as a data source, specify its DbiResourceId
value. For example, specify\n db-FAIHNTYBKTGAUSUZQYPDS2GW4A
.
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.
The value for StartTime
must be earlier than the value for EndTime
.
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.
The value for EndTime
must be later than the value for StartTime
.
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 1
(one second)
\n 60
(one minute)
\n 300
(five minutes)
\n 3600
(one hour)
\n 86400
(twenty-four hours)
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.
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
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
.
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
.
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
.
An immutable, AWS Region-unique identifier for a data source. Performance Insights gathers metrics from\n this data source.
\nTo use a DB instance as a data source, you specify its \n DbiResourceId
value - for example: \n db-FAIHNTYBKTGAUSUZQYPDS2GW4A
\n
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
.
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.
\nValid values for Metric
are:
\n db.load.avg
- a scaled representation of the number of active sessions\n for the database engine.
\n db.sampledload.avg
- the raw number of active sessions for the\n database engine.
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.
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:
\nAny number of filters by the same dimension, as specified in the GroupBy
parameter.
A single filter for any other dimension in this dimension group.
\nA 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
).
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 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 \nWhen 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.
\nDB 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\nTo learn more about Performance Insights and Amazon Aurora DB instances, go to the Amazon Aurora User Guide.
\nTo learn more about Performance Insights and Amazon RDS DB instances, go to the Amazon RDS User Guide.
\nA 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.
The name of a Performance Insights metric to be measured.
\nValid values for Metric
are:
\n db.load.avg
- a scaled representation of the number of active sessions\n for the database engine.
\n db.sampledload.avg
- the raw number of active sessions for the\n database engine.
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.
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 } } } } }