#[non_exhaustive]pub struct GetMetricStreamOutput {
pub arn: Option<String>,
pub name: Option<String>,
pub include_filters: Option<Vec<MetricStreamFilter>>,
pub exclude_filters: Option<Vec<MetricStreamFilter>>,
pub firehose_arn: Option<String>,
pub role_arn: Option<String>,
pub state: Option<String>,
pub creation_date: Option<DateTime>,
pub last_update_date: Option<DateTime>,
pub output_format: Option<MetricStreamOutputFormat>,
pub statistics_configurations: Option<Vec<MetricStreamStatisticsConfiguration>>,
pub include_linked_accounts_metrics: Option<bool>,
/* private fields */
}Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. } syntax; cannot be matched against without a wildcard ..; and struct update syntax will not work.arn: Option<String>The ARN of the metric stream.
name: Option<String>The name of the metric stream.
include_filters: Option<Vec<MetricStreamFilter>>If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.
exclude_filters: Option<Vec<MetricStreamFilter>>If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in the account are streamed by this metric stream.
firehose_arn: Option<String>The ARN of the Amazon Kinesis Data Firehose delivery stream that is used by this metric stream.
role_arn: Option<String>The ARN of the IAM role that is used by this metric stream.
state: Option<String>The state of the metric stream. The possible values are running and stopped.
creation_date: Option<DateTime>The date that the metric stream was created.
last_update_date: Option<DateTime>The date of the most recent update to the metric stream's configuration.
output_format: Option<MetricStreamOutputFormat>The output format for the stream. Valid values are json, opentelemetry1.0, and opentelemetry0.7. For more information about metric stream output formats, see Metric streams output formats.
statistics_configurations: Option<Vec<MetricStreamStatisticsConfiguration>>Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream. For more information about the additional statistics, see CloudWatch statistics definitions.
include_linked_accounts_metrics: Option<bool>If this is true and this metric stream is in a monitoring account, then the stream includes metrics from source accounts that the monitoring account is linked to.
Implementations§
Source§impl GetMetricStreamOutput
impl GetMetricStreamOutput
Sourcepub fn include_filters(&self) -> &[MetricStreamFilter]
pub fn include_filters(&self) -> &[MetricStreamFilter]
If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are streamed by this metric stream.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .include_filters.is_none().
Sourcepub fn exclude_filters(&self) -> &[MetricStreamFilter]
pub fn exclude_filters(&self) -> &[MetricStreamFilter]
If this array of metric namespaces is present, then these namespaces are the only metric namespaces that are not streamed by this metric stream. In this case, all other metric namespaces in the account are streamed by this metric stream.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .exclude_filters.is_none().
Sourcepub fn firehose_arn(&self) -> Option<&str>
pub fn firehose_arn(&self) -> Option<&str>
The ARN of the Amazon Kinesis Data Firehose delivery stream that is used by this metric stream.
Sourcepub fn role_arn(&self) -> Option<&str>
pub fn role_arn(&self) -> Option<&str>
The ARN of the IAM role that is used by this metric stream.
Sourcepub fn state(&self) -> Option<&str>
pub fn state(&self) -> Option<&str>
The state of the metric stream. The possible values are running and stopped.
Sourcepub fn creation_date(&self) -> Option<&DateTime>
pub fn creation_date(&self) -> Option<&DateTime>
The date that the metric stream was created.
Sourcepub fn last_update_date(&self) -> Option<&DateTime>
pub fn last_update_date(&self) -> Option<&DateTime>
The date of the most recent update to the metric stream's configuration.
Sourcepub fn output_format(&self) -> Option<&MetricStreamOutputFormat>
pub fn output_format(&self) -> Option<&MetricStreamOutputFormat>
The output format for the stream. Valid values are json, opentelemetry1.0, and opentelemetry0.7. For more information about metric stream output formats, see Metric streams output formats.
Sourcepub fn statistics_configurations(
&self,
) -> &[MetricStreamStatisticsConfiguration]
pub fn statistics_configurations( &self, ) -> &[MetricStreamStatisticsConfiguration]
Each entry in this array displays information about one or more metrics that include additional statistics in the metric stream. For more information about the additional statistics, see CloudWatch statistics definitions.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .statistics_configurations.is_none().
Sourcepub fn include_linked_accounts_metrics(&self) -> Option<bool>
pub fn include_linked_accounts_metrics(&self) -> Option<bool>
If this is true and this metric stream is in a monitoring account, then the stream includes metrics from source accounts that the monitoring account is linked to.
Source§impl GetMetricStreamOutput
impl GetMetricStreamOutput
Sourcepub fn builder() -> GetMetricStreamOutputBuilder
pub fn builder() -> GetMetricStreamOutputBuilder
Creates a new builder-style object to manufacture GetMetricStreamOutput.
Trait Implementations§
Source§impl Clone for GetMetricStreamOutput
impl Clone for GetMetricStreamOutput
Source§fn clone(&self) -> GetMetricStreamOutput
fn clone(&self) -> GetMetricStreamOutput
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GetMetricStreamOutput
impl Debug for GetMetricStreamOutput
Source§impl PartialEq for GetMetricStreamOutput
impl PartialEq for GetMetricStreamOutput
Source§impl RequestId for GetMetricStreamOutput
impl RequestId for GetMetricStreamOutput
Source§fn request_id(&self) -> Option<&str>
fn request_id(&self) -> Option<&str>
None if the service could not be reached.impl StructuralPartialEq for GetMetricStreamOutput
Auto Trait Implementations§
impl Freeze for GetMetricStreamOutput
impl RefUnwindSafe for GetMetricStreamOutput
impl Send for GetMetricStreamOutput
impl Sync for GetMetricStreamOutput
impl Unpin for GetMetricStreamOutput
impl UnwindSafe for GetMetricStreamOutput
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);