Struct aws_sdk_connect::types::MetricV2
source · #[non_exhaustive]pub struct MetricV2 {
pub name: Option<String>,
pub threshold: Option<Vec<ThresholdV2>>,
pub metric_filters: Option<Vec<MetricFilterV2>>,
}
Expand description
Contains information about the metric.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Non-exhaustive structs could have additional fields added in future. Therefore, non-exhaustive structs cannot be constructed in external crates using the traditional
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.name: Option<String>
The name of the metric.
This parameter is required. The following Required = No is incorrect.
threshold: Option<Vec<ThresholdV2>>
Contains information about the threshold for service level metrics.
metric_filters: Option<Vec<MetricFilterV2>>
Contains the filters to be used when returning data.
Implementations§
source§impl MetricV2
impl MetricV2
sourcepub fn name(&self) -> Option<&str>
pub fn name(&self) -> Option<&str>
The name of the metric.
This parameter is required. The following Required = No is incorrect.
sourcepub fn threshold(&self) -> &[ThresholdV2]
pub fn threshold(&self) -> &[ThresholdV2]
Contains information about the threshold for service level metrics.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .threshold.is_none()
.
sourcepub fn metric_filters(&self) -> &[MetricFilterV2]
pub fn metric_filters(&self) -> &[MetricFilterV2]
Contains the filters to be used when returning data.
If no value was sent for this field, a default will be set. If you want to determine if no value was sent, use .metric_filters.is_none()
.
Trait Implementations§
source§impl PartialEq for MetricV2
impl PartialEq for MetricV2
impl StructuralPartialEq for MetricV2
Auto Trait Implementations§
impl Freeze for MetricV2
impl RefUnwindSafe for MetricV2
impl Send for MetricV2
impl Sync for MetricV2
impl Unpin for MetricV2
impl UnwindSafe for MetricV2
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
Mutably borrows from an owned value. Read more
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>
Creates a shared type from an unshared type.