Struct aws_sdk_sesv2::types::MetricsDataSource
source · #[non_exhaustive]pub struct MetricsDataSource {
pub dimensions: HashMap<MetricDimensionName, Vec<String>>,
pub namespace: MetricNamespace,
pub metrics: Vec<ExportMetric>,
pub start_date: DateTime,
pub end_date: DateTime,
}Expand description
An object that contains details about the data source for the metrics export.
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.dimensions: HashMap<MetricDimensionName, Vec<String>>An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.
namespace: MetricNamespaceThe metrics namespace - e.g., VDM.
metrics: Vec<ExportMetric>A list of ExportMetric objects to export.
start_date: DateTimeRepresents the start date for the export interval as a timestamp.
end_date: DateTimeRepresents the end date for the export interval as a timestamp.
Implementations§
source§impl MetricsDataSource
impl MetricsDataSource
sourcepub fn dimensions(&self) -> &HashMap<MetricDimensionName, Vec<String>>
pub fn dimensions(&self) -> &HashMap<MetricDimensionName, Vec<String>>
An object that contains a mapping between a MetricDimensionName and MetricDimensionValue to filter metrics by. Must contain a least 1 dimension but no more than 3 unique ones.
sourcepub fn namespace(&self) -> &MetricNamespace
pub fn namespace(&self) -> &MetricNamespace
The metrics namespace - e.g., VDM.
sourcepub fn metrics(&self) -> &[ExportMetric]
pub fn metrics(&self) -> &[ExportMetric]
A list of ExportMetric objects to export.
sourcepub fn start_date(&self) -> &DateTime
pub fn start_date(&self) -> &DateTime
Represents the start date for the export interval as a timestamp.
source§impl MetricsDataSource
impl MetricsDataSource
sourcepub fn builder() -> MetricsDataSourceBuilder
pub fn builder() -> MetricsDataSourceBuilder
Creates a new builder-style object to manufacture MetricsDataSource.
Trait Implementations§
source§impl Clone for MetricsDataSource
impl Clone for MetricsDataSource
source§fn clone(&self) -> MetricsDataSource
fn clone(&self) -> MetricsDataSource
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MetricsDataSource
impl Debug for MetricsDataSource
source§impl PartialEq for MetricsDataSource
impl PartialEq for MetricsDataSource
source§fn eq(&self, other: &MetricsDataSource) -> bool
fn eq(&self, other: &MetricsDataSource) -> bool
self and other values to be equal, and is used
by ==.