AWS Performance Insights

2021/06/04 - AWS Performance Insights - 1 new api methods

Changes  The new GetDimensionKeyDetails action retrieves the attributes of the specified dimension group for a DB instance or data source.

GetDimensionKeyDetails (new) Link ΒΆ

Get the attributes of the specified dimension group for a DB instance or data source. For example, if you specify a SQL ID, GetDimensionKeyDetails retrieves the full text of the dimension db.sql.statement associated with this ID. This operation is useful because GetResourceMetrics and DescribeDimensionKeys don't support retrieval of large SQL statement text.

See also: AWS API Documentation

Request Syntax

client.get_dimension_key_details(
    ServiceType='RDS',
    Identifier='string',
    Group='string',
    GroupIdentifier='string',
    RequestedDimensions=[
        'string',
    ]
)
type ServiceType

string

param ServiceType

[REQUIRED]

The AWS service for which Performance Insights returns data. The only valid value is RDS .

type Identifier

string

param Identifier

[REQUIRED]

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 .

type Group

string

param Group

[REQUIRED]

The name of the dimension group. The only valid value is db.sql . Performance Insights searches the specified group for the dimension group ID.

type GroupIdentifier

string

param GroupIdentifier

[REQUIRED]

The ID of the dimension group from which to retrieve dimension details. For dimension group db.sql , the group ID is db.sql.id .

type RequestedDimensions

list

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

  • (string) --

rtype

dict

returns

Response Syntax

{
    'Dimensions': [
        {
            'Value': 'string',
            'Dimension': 'string',
            'Status': 'AVAILABLE'|'PROCESSING'|'UNAVAILABLE'
        },
    ]
}

Response Structure

  • (dict) --

    • Dimensions (list) --

      The details for the requested dimensions.

      • (dict) --

        An object that describes the details for a specified dimension.

        • Value (string) --

          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.

        • Dimension (string) --

          The full name of the dimension. The full name includes the group name and key name. The only valid value is db.sql.statement .

        • Status (string) --

          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.