pub struct DescribeDimensionKeysFluentBuilder { /* private fields */ }
Expand description
Fluent builder constructing a request to DescribeDimensionKeys
.
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.
Implementations§
Source§impl DescribeDimensionKeysFluentBuilder
impl DescribeDimensionKeysFluentBuilder
Sourcepub fn as_input(&self) -> &DescribeDimensionKeysInputBuilder
pub fn as_input(&self) -> &DescribeDimensionKeysInputBuilder
Access the DescribeDimensionKeys as a reference.
Sourcepub async fn send(
self,
) -> Result<DescribeDimensionKeysOutput, SdkError<DescribeDimensionKeysError, HttpResponse>>
pub async fn send( self, ) -> Result<DescribeDimensionKeysOutput, SdkError<DescribeDimensionKeysError, HttpResponse>>
Sends the request and returns the response.
If an error occurs, an SdkError
will be returned with additional details that
can be matched against.
By default, any retryable failures will be retried twice. Retry behavior is configurable with the RetryConfig, which can be set when configuring the client.
Sourcepub fn customize(
self,
) -> CustomizableOperation<DescribeDimensionKeysOutput, DescribeDimensionKeysError, Self>
pub fn customize( self, ) -> CustomizableOperation<DescribeDimensionKeysOutput, DescribeDimensionKeysError, Self>
Consumes this builder, creating a customizable operation that can be modified before being sent.
Sourcepub fn into_paginator(self) -> DescribeDimensionKeysPaginator
pub fn into_paginator(self) -> DescribeDimensionKeysPaginator
Create a paginator for this request
Paginators are used by calling send().await
which returns a PaginationStream
.
Sourcepub fn service_type(self, input: ServiceType) -> Self
pub fn service_type(self, input: ServiceType) -> Self
The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows:
-
RDS
-
DOCDB
Sourcepub fn set_service_type(self, input: Option<ServiceType>) -> Self
pub fn set_service_type(self, input: Option<ServiceType>) -> Self
The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows:
-
RDS
-
DOCDB
Sourcepub fn get_service_type(&self) -> &Option<ServiceType>
pub fn get_service_type(&self) -> &Option<ServiceType>
The Amazon Web Services service for which Performance Insights will return metrics. Valid values are as follows:
-
RDS
-
DOCDB
Sourcepub fn identifier(self, input: impl Into<String>) -> Self
pub fn identifier(self, input: impl Into<String>) -> Self
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
.
Sourcepub fn set_identifier(self, input: Option<String>) -> Self
pub fn set_identifier(self, input: Option<String>) -> Self
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
.
Sourcepub fn get_identifier(&self) -> &Option<String>
pub fn get_identifier(&self) -> &Option<String>
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
.
Sourcepub fn start_time(self, input: DateTime) -> Self
pub fn start_time(self, input: DateTime) -> Self
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
.
Sourcepub fn set_start_time(self, input: Option<DateTime>) -> Self
pub fn set_start_time(self, input: Option<DateTime>) -> Self
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
.
Sourcepub fn get_start_time(&self) -> &Option<DateTime>
pub fn get_start_time(&self) -> &Option<DateTime>
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
.
Sourcepub fn end_time(self, input: DateTime) -> Self
pub fn end_time(self, input: DateTime) -> Self
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
.
Sourcepub fn set_end_time(self, input: Option<DateTime>) -> Self
pub fn set_end_time(self, input: Option<DateTime>) -> Self
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
.
Sourcepub fn get_end_time(&self) -> &Option<DateTime>
pub fn get_end_time(&self) -> &Option<DateTime>
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
.
Sourcepub fn metric(self, input: impl Into<String>) -> Self
pub fn metric(self, input: impl Into<String>) -> Self
The name of a Performance Insights metric to be measured.
Valid values for Metric
are:
-
db.load.avg
- A scaled representation of the number of active sessions for the database engine. -
db.sampledload.avg
- The raw number of active sessions for the database engine.
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.
Sourcepub fn set_metric(self, input: Option<String>) -> Self
pub fn set_metric(self, input: Option<String>) -> Self
The name of a Performance Insights metric to be measured.
Valid values for Metric
are:
-
db.load.avg
- A scaled representation of the number of active sessions for the database engine. -
db.sampledload.avg
- The raw number of active sessions for the database engine.
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.
Sourcepub fn get_metric(&self) -> &Option<String>
pub fn get_metric(&self) -> &Option<String>
The name of a Performance Insights metric to be measured.
Valid values for Metric
are:
-
db.load.avg
- A scaled representation of the number of active sessions for the database engine. -
db.sampledload.avg
- The raw number of active sessions for the database engine.
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.
Sourcepub fn period_in_seconds(self, input: i32) -> Self
pub fn period_in_seconds(self, input: i32) -> Self
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:
-
1
(one second) -
60
(one minute) -
300
(five minutes) -
3600
(one hour) -
86400
(twenty-four hours)
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.
Sourcepub fn set_period_in_seconds(self, input: Option<i32>) -> Self
pub fn set_period_in_seconds(self, input: Option<i32>) -> Self
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:
-
1
(one second) -
60
(one minute) -
300
(five minutes) -
3600
(one hour) -
86400
(twenty-four hours)
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.
Sourcepub fn get_period_in_seconds(&self) -> &Option<i32>
pub fn get_period_in_seconds(&self) -> &Option<i32>
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:
-
1
(one second) -
60
(one minute) -
300
(five minutes) -
3600
(one hour) -
86400
(twenty-four hours)
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.
Sourcepub fn group_by(self, input: DimensionGroup) -> Self
pub fn group_by(self, input: DimensionGroup) -> Self
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.
Sourcepub fn set_group_by(self, input: Option<DimensionGroup>) -> Self
pub fn set_group_by(self, input: Option<DimensionGroup>) -> Self
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.
Sourcepub fn get_group_by(&self) -> &Option<DimensionGroup>
pub fn get_group_by(&self) -> &Option<DimensionGroup>
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.
Sourcepub fn additional_metrics(self, input: impl Into<String>) -> Self
pub fn additional_metrics(self, input: impl Into<String>) -> Self
Appends an item to AdditionalMetrics
.
To override the contents of this collection use set_additional_metrics
.
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" }
.
The only supported statistic function is .avg
.
Sourcepub fn set_additional_metrics(self, input: Option<Vec<String>>) -> Self
pub fn set_additional_metrics(self, input: Option<Vec<String>>) -> Self
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" }
.
The only supported statistic function is .avg
.
Sourcepub fn get_additional_metrics(&self) -> &Option<Vec<String>>
pub fn get_additional_metrics(&self) -> &Option<Vec<String>>
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" }
.
The only supported statistic function is .avg
.
Sourcepub fn partition_by(self, input: DimensionGroup) -> Self
pub fn partition_by(self, input: DimensionGroup) -> Self
For each dimension specified in GroupBy
, specify a secondary dimension to further subdivide the partition keys in the response.
Sourcepub fn set_partition_by(self, input: Option<DimensionGroup>) -> Self
pub fn set_partition_by(self, input: Option<DimensionGroup>) -> Self
For each dimension specified in GroupBy
, specify a secondary dimension to further subdivide the partition keys in the response.
Sourcepub fn get_partition_by(&self) -> &Option<DimensionGroup>
pub fn get_partition_by(&self) -> &Option<DimensionGroup>
For each dimension specified in GroupBy
, specify a secondary dimension to further subdivide the partition keys in the response.
Sourcepub fn filter(self, k: impl Into<String>, v: impl Into<String>) -> Self
pub fn filter(self, k: impl Into<String>, v: impl Into<String>) -> Self
Adds a key-value pair to Filter
.
To override the contents of this collection use set_filter
.
One or more filters to apply in the request. Restrictions:
-
Any number of filters by the same dimension, as specified in the
GroupBy
orPartition
parameters. -
A single filter for any other dimension in this dimension group.
The db.sql.db_id
filter isn't available for RDS for SQL Server DB instances.
Sourcepub fn set_filter(self, input: Option<HashMap<String, String>>) -> Self
pub fn set_filter(self, input: Option<HashMap<String, String>>) -> Self
One or more filters to apply in the request. Restrictions:
-
Any number of filters by the same dimension, as specified in the
GroupBy
orPartition
parameters. -
A single filter for any other dimension in this dimension group.
The db.sql.db_id
filter isn't available for RDS for SQL Server DB instances.
Sourcepub fn get_filter(&self) -> &Option<HashMap<String, String>>
pub fn get_filter(&self) -> &Option<HashMap<String, String>>
One or more filters to apply in the request. Restrictions:
-
Any number of filters by the same dimension, as specified in the
GroupBy
orPartition
parameters. -
A single filter for any other dimension in this dimension group.
The db.sql.db_id
filter isn't available for RDS for SQL Server DB instances.
Sourcepub fn max_results(self, input: i32) -> Self
pub fn max_results(self, input: i32) -> Self
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.
Sourcepub fn set_max_results(self, input: Option<i32>) -> Self
pub fn set_max_results(self, input: Option<i32>) -> Self
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.
Sourcepub fn get_max_results(&self) -> &Option<i32>
pub fn get_max_results(&self) -> &Option<i32>
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.
Sourcepub fn next_token(self, input: impl Into<String>) -> Self
pub fn next_token(self, input: impl Into<String>) -> Self
An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords
.
Sourcepub fn set_next_token(self, input: Option<String>) -> Self
pub fn set_next_token(self, input: Option<String>) -> Self
An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords
.
Sourcepub fn get_next_token(&self) -> &Option<String>
pub fn get_next_token(&self) -> &Option<String>
An optional pagination token provided by a previous request. If this parameter is specified, the response includes only records beyond the token, up to the value specified by MaxRecords
.
Trait Implementations§
Source§impl Clone for DescribeDimensionKeysFluentBuilder
impl Clone for DescribeDimensionKeysFluentBuilder
Source§fn clone(&self) -> DescribeDimensionKeysFluentBuilder
fn clone(&self) -> DescribeDimensionKeysFluentBuilder
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read moreAuto Trait Implementations§
impl Freeze for DescribeDimensionKeysFluentBuilder
impl !RefUnwindSafe for DescribeDimensionKeysFluentBuilder
impl Send for DescribeDimensionKeysFluentBuilder
impl Sync for DescribeDimensionKeysFluentBuilder
impl Unpin for DescribeDimensionKeysFluentBuilder
impl !UnwindSafe for DescribeDimensionKeysFluentBuilder
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left
is true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self
into a Left
variant of Either<Self, Self>
if into_left(&self)
returns true
.
Converts self
into a Right
variant of Either<Self, Self>
otherwise. Read moreSource§impl<T> Paint for Twhere
T: ?Sized,
impl<T> Paint for Twhere
T: ?Sized,
Source§fn fg(&self, value: Color) -> Painted<&T>
fn fg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the foreground set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like red()
and
green()
, which have the same functionality but are
pithier.
§Example
Set foreground color to white using fg()
:
use yansi::{Paint, Color};
painted.fg(Color::White);
Set foreground color to white using white()
.
use yansi::Paint;
painted.white();
Source§fn bright_black(&self) -> Painted<&T>
fn bright_black(&self) -> Painted<&T>
Source§fn bright_red(&self) -> Painted<&T>
fn bright_red(&self) -> Painted<&T>
Source§fn bright_green(&self) -> Painted<&T>
fn bright_green(&self) -> Painted<&T>
Source§fn bright_yellow(&self) -> Painted<&T>
fn bright_yellow(&self) -> Painted<&T>
Source§fn bright_blue(&self) -> Painted<&T>
fn bright_blue(&self) -> Painted<&T>
Source§fn bright_magenta(&self) -> Painted<&T>
fn bright_magenta(&self) -> Painted<&T>
Source§fn bright_cyan(&self) -> Painted<&T>
fn bright_cyan(&self) -> Painted<&T>
Source§fn bright_white(&self) -> Painted<&T>
fn bright_white(&self) -> Painted<&T>
Source§fn bg(&self, value: Color) -> Painted<&T>
fn bg(&self, value: Color) -> Painted<&T>
Returns a styled value derived from self
with the background set to
value
.
This method should be used rarely. Instead, prefer to use color-specific
builder methods like on_red()
and
on_green()
, which have the same functionality but
are pithier.
§Example
Set background color to red using fg()
:
use yansi::{Paint, Color};
painted.bg(Color::Red);
Set background color to red using on_red()
.
use yansi::Paint;
painted.on_red();
Source§fn on_primary(&self) -> Painted<&T>
fn on_primary(&self) -> Painted<&T>
Source§fn on_magenta(&self) -> Painted<&T>
fn on_magenta(&self) -> Painted<&T>
Source§fn on_bright_black(&self) -> Painted<&T>
fn on_bright_black(&self) -> Painted<&T>
Source§fn on_bright_red(&self) -> Painted<&T>
fn on_bright_red(&self) -> Painted<&T>
Source§fn on_bright_green(&self) -> Painted<&T>
fn on_bright_green(&self) -> Painted<&T>
Source§fn on_bright_yellow(&self) -> Painted<&T>
fn on_bright_yellow(&self) -> Painted<&T>
Source§fn on_bright_blue(&self) -> Painted<&T>
fn on_bright_blue(&self) -> Painted<&T>
Source§fn on_bright_magenta(&self) -> Painted<&T>
fn on_bright_magenta(&self) -> Painted<&T>
Source§fn on_bright_cyan(&self) -> Painted<&T>
fn on_bright_cyan(&self) -> Painted<&T>
Source§fn on_bright_white(&self) -> Painted<&T>
fn on_bright_white(&self) -> Painted<&T>
Source§fn attr(&self, value: Attribute) -> Painted<&T>
fn attr(&self, value: Attribute) -> Painted<&T>
Enables the styling Attribute
value
.
This method should be used rarely. Instead, prefer to use
attribute-specific builder methods like bold()
and
underline()
, which have the same functionality
but are pithier.
§Example
Make text bold using attr()
:
use yansi::{Paint, Attribute};
painted.attr(Attribute::Bold);
Make text bold using using bold()
.
use yansi::Paint;
painted.bold();
Source§fn rapid_blink(&self) -> Painted<&T>
fn rapid_blink(&self) -> Painted<&T>
Source§fn quirk(&self, value: Quirk) -> Painted<&T>
fn quirk(&self, value: Quirk) -> Painted<&T>
Enables the yansi
Quirk
value
.
This method should be used rarely. Instead, prefer to use quirk-specific
builder methods like mask()
and
wrap()
, which have the same functionality but are
pithier.
§Example
Enable wrapping using .quirk()
:
use yansi::{Paint, Quirk};
painted.quirk(Quirk::Wrap);
Enable wrapping using wrap()
.
use yansi::Paint;
painted.wrap();
Source§fn clear(&self) -> Painted<&T>
👎Deprecated since 1.0.1: renamed to resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.
fn clear(&self) -> Painted<&T>
resetting()
due to conflicts with Vec::clear()
.
The clear()
method will be removed in a future release.Source§fn whenever(&self, value: Condition) -> Painted<&T>
fn whenever(&self, value: Condition) -> Painted<&T>
Conditionally enable styling based on whether the Condition
value
applies. Replaces any previous condition.
See the crate level docs for more details.
§Example
Enable styling painted
only when both stdout
and stderr
are TTYs:
use yansi::{Paint, Condition};
painted.red().on_yellow().whenever(Condition::STDOUTERR_ARE_TTY);