logo
pub struct DimensionGroup {
    pub dimensions: Option<Vec<String>>,
    pub group: String,
    pub limit: Option<i64>,
}
Expand description

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.dbid, db.sql.statement, and db.sql.tokenizedid.

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

Fields

dimensions: Option<Vec<String>>

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.sessiontype.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.dbid - The SQL ID generated by the database (all engines)

  • db.sql.statement - The SQL text that is being executed (all engines)

  • db.sql.tokenizedid

  • db.sqltokenized.id - The SQL digest ID generated by Performance Insights (all engines)

  • db.sqltokenized.dbid - SQL digest ID generated by the database (all engines)

  • db.sqltokenized.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.waitevent.name - The event for which the backend is waiting (all engines)

  • db.waitevent.type - The type of event for which the backend is waiting (all engines)

  • db.waitevent_type.name - The name of the event type for which the backend is waiting (all engines)

group: String

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.sessiontype - The type of the current session (only Aurora PostgreSQL and RDS PostgreSQL)

  • db.sql - The SQL that is currently executing (all engines)

  • db.sqltokenized - The SQL digest (all engines)

  • db.waitevent - The event for which the database backend is waiting (all engines)

  • db.waitevent_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)

limit: Option<i64>

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

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

This method tests for self and other values to be equal, and is used by ==. Read more

This method tests for !=.

Serialize this value into the given Serde serializer. Read more

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Returns the argument unchanged.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Calls U::from(self).

That is, this conversion is whatever the implementation of From<T> for U chooses to do.

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.

Attaches the provided Subscriber to this type, returning a WithDispatch wrapper. Read more

Attaches the current default Subscriber to this type, returning a WithDispatch wrapper. Read more