#[non_exhaustive]pub struct MetricDescriptorMetadata {
pub launch_stage: LaunchStage,
pub sample_period: Option<Duration>,
pub ingest_delay: Option<Duration>,
pub time_series_resource_hierarchy_level: Vec<TimeSeriesResourceHierarchyLevel>,
}Expand description
Additional annotations that can be used to guide the usage of a 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.launch_stage: LaunchStageDeprecated. Must use the MetricDescriptor.launch_stage instead.
sample_period: Option<Duration>The sampling period of metric data points. For metrics which are written periodically, consecutive data points are stored at this time interval, excluding data loss due to errors. Metrics with a higher granularity have a smaller sampling period.
ingest_delay: Option<Duration>The delay of data points caused by ingestion. Data points older than this age are guaranteed to be ingested and available to be read, excluding data loss due to errors.
time_series_resource_hierarchy_level: Vec<TimeSeriesResourceHierarchyLevel>The scope of the timeseries data of the metric.
Implementations§
Source§impl MetricDescriptorMetadata
impl MetricDescriptorMetadata
Sourcepub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
pub fn set_launch_stage<T: Into<LaunchStage>>(self, v: T) -> Self
Sets the value of launch_stage.
Sourcepub fn set_sample_period<T: Into<Option<Duration>>>(self, v: T) -> Self
pub fn set_sample_period<T: Into<Option<Duration>>>(self, v: T) -> Self
Sets the value of sample_period.
Sourcepub fn set_ingest_delay<T: Into<Option<Duration>>>(self, v: T) -> Self
pub fn set_ingest_delay<T: Into<Option<Duration>>>(self, v: T) -> Self
Sets the value of ingest_delay.
Sourcepub fn set_time_series_resource_hierarchy_level<T, V>(self, v: T) -> Self
pub fn set_time_series_resource_hierarchy_level<T, V>(self, v: T) -> Self
Sets the value of time_series_resource_hierarchy_level.
Trait Implementations§
Source§impl Clone for MetricDescriptorMetadata
impl Clone for MetricDescriptorMetadata
Source§fn clone(&self) -> MetricDescriptorMetadata
fn clone(&self) -> MetricDescriptorMetadata
Returns a copy of the value. Read more
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MetricDescriptorMetadata
impl Debug for MetricDescriptorMetadata
Source§impl Default for MetricDescriptorMetadata
impl Default for MetricDescriptorMetadata
Source§fn default() -> MetricDescriptorMetadata
fn default() -> MetricDescriptorMetadata
Returns the “default value” for a type. Read more
Source§impl<'de> Deserialize<'de> for MetricDescriptorMetadatawhere
MetricDescriptorMetadata: Default,
impl<'de> Deserialize<'de> for MetricDescriptorMetadatawhere
MetricDescriptorMetadata: Default,
Source§fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error>where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
Source§impl Message for MetricDescriptorMetadata
impl Message for MetricDescriptorMetadata
Source§impl PartialEq for MetricDescriptorMetadata
impl PartialEq for MetricDescriptorMetadata
Source§impl Serialize for MetricDescriptorMetadata
impl Serialize for MetricDescriptorMetadata
impl StructuralPartialEq for MetricDescriptorMetadata
Auto Trait Implementations§
impl Freeze for MetricDescriptorMetadata
impl RefUnwindSafe for MetricDescriptorMetadata
impl Send for MetricDescriptorMetadata
impl Sync for MetricDescriptorMetadata
impl Unpin for MetricDescriptorMetadata
impl UnwindSafe for MetricDescriptorMetadata
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