pub struct MetricDescriptorMetadata {
pub launch_stage: i32,
pub sample_period: Option<Duration>,
pub ingest_delay: Option<Duration>,
pub time_series_resource_hierarchy_level: Vec<i32>,
}
Expand description
Additional annotations that can be used to guide the usage of a metric.
Fields§
§launch_stage: i32
Deprecated. Must use the [MetricDescriptor.launch_stage][google.api.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<i32>
The scope of the timeseries data of the metric.
Implementations§
Source§impl MetricDescriptorMetadata
impl MetricDescriptorMetadata
Sourcepub fn launch_stage(&self) -> LaunchStage
pub fn launch_stage(&self) -> LaunchStage
Returns the enum value of launch_stage
, or the default if the field is set to an invalid enum value.
Sourcepub fn set_launch_stage(&mut self, value: LaunchStage)
pub fn set_launch_stage(&mut self, value: LaunchStage)
Sets launch_stage
to the provided enum value.
Sourcepub fn time_series_resource_hierarchy_level(
&self,
) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<TimeSeriesResourceHierarchyLevel>>
pub fn time_series_resource_hierarchy_level( &self, ) -> FilterMap<Cloned<Iter<'_, i32>>, fn(_: i32) -> Option<TimeSeriesResourceHierarchyLevel>>
Returns an iterator which yields the valid enum values contained in time_series_resource_hierarchy_level
.
Sourcepub fn push_time_series_resource_hierarchy_level(
&mut self,
value: TimeSeriesResourceHierarchyLevel,
)
pub fn push_time_series_resource_hierarchy_level( &mut self, value: TimeSeriesResourceHierarchyLevel, )
Appends the provided enum value to 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
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
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
Source§impl Message for MetricDescriptorMetadata
impl Message for MetricDescriptorMetadata
Source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
Source§fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
fn encode(&self, buf: &mut impl BufMut) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
fn encode_length_delimited(
&self,
buf: &mut impl BufMut,
) -> Result<(), EncodeError>where
Self: Sized,
Source§fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8>where
Self: Sized,
Source§fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
fn decode_length_delimited(buf: impl Buf) -> Result<Self, DecodeError>where
Self: Default,
Source§fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
. Read moreSource§fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
fn merge_length_delimited(&mut self, buf: impl Buf) -> Result<(), DecodeError>where
Self: Sized,
self
.Source§impl PartialEq for MetricDescriptorMetadata
impl PartialEq 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
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> IntoRequest<T> for T
impl<T> IntoRequest<T> for T
Source§fn into_request(self) -> Request<T>
fn into_request(self) -> Request<T>
T
in a tonic::Request