aws.pi.describe_dimension_keys
Example SQL Queries
SELECT * FROMaws.pi.describe_dimension_keysWHERE"service_type" = 'VALUE'AND "identifier" = 'VALUE'AND "start_time" = 'VALUE'AND "end_time" = 'VALUE'AND "metric" = 'VALUE'AND "group_by" = 'VALUE';Description
For a specific time period, retrieve the top N dimension keys for a metric.
Each response element returns a maximum of 500 bytes. For larger elements, such as SQL statements, only the first 500 bytes are returned.
Table Definition
| Column Name | Column Data Type |
|---|---|
| end_time Required Input Column 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. | TIMESTAMP_S |
| group_by Required Input Column 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. | STRUCT( |
Show child fields
| |
| identifier Required Input Column An immutable, Amazon Web Services 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. | VARCHAR |
| metric Required Input Column The name of a Performance Insights metric to be measured. Valid values for Metric are:
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. | VARCHAR |
| service_type Required Input Column The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows:
| VARCHAR |
| start_time Required Input Column 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. | TIMESTAMP_S |
| additional_metrics Input Column Additional metrics for the top N dimension keys. If the specified dimension group in the GroupBy parameter is db.sql_tokenized, you can specify per-SQL metrics to get the values for the top N SQL digests. The response syntax is as follows: "AdditionalMetrics" : { "string" : "string" }. | VARCHAR[] |
Show child fields
| |
| filter Input Column One or more filters to apply in the request. Restrictions:
The db.sql.db_id filter isn't available for RDS for SQL Server DB instances. | MAP(VARCHAR, VARCHAR) |
| max_results Input Column 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. | BIGINT |
| next_token Input Column A pagination token that indicates the response didn’t return all available records because MaxRecords was specified in the previous request. To get the remaining records, specify NextToken in a separate request with this value. | VARCHAR |
| partition_by Input Column For each dimension specified in GroupBy, specify a secondary dimension to further subdivide the partition keys in the response. | STRUCT( |
Show child fields
| |
| period_in_seconds Input Column 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:
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. | BIGINT |
| _aws_profile Input Column The AWS profile defines the AWS identity used. It can be defined via credentials or by assuming a IAM role. | STRUCT( |
Show child fields
| |
| _aws_region Input Column The AWS region to use. | VARCHAR |
| aligned_end_time 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. | TIMESTAMP_S |
| aligned_start_time 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. | TIMESTAMP_S |
| keys The dimension keys that were requested. | STRUCT( |
Show child fields
| |
| partition_keys If PartitionBy was present in the request, PartitionKeys contains the breakdown of dimension keys by the specified partitions. | STRUCT( |
Show child fields
| |