Struct gapi_grpc::google::api::metric_descriptor::MetricDescriptorMetadata[][src]

pub struct MetricDescriptorMetadata {
    pub launch_stage: i32,
    pub sample_period: Option<Duration>,
    pub ingest_delay: Option<Duration>,
}

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.

Implementations

impl MetricDescriptorMetadata[src]

pub fn launch_stage(&self) -> LaunchStage[src]

Returns the enum value of launch_stage, or the default if the field is set to an invalid enum value.

pub fn set_launch_stage(&mut self, value: LaunchStage)[src]

Sets launch_stage to the provided enum value.

Trait Implementations

impl Clone for MetricDescriptorMetadata[src]

impl Debug for MetricDescriptorMetadata[src]

impl Default for MetricDescriptorMetadata[src]

impl Message for MetricDescriptorMetadata[src]

impl PartialEq<MetricDescriptorMetadata> for MetricDescriptorMetadata[src]

impl StructuralPartialEq for MetricDescriptorMetadata[src]

Auto Trait Implementations

impl RefUnwindSafe for MetricDescriptorMetadata

impl Send for MetricDescriptorMetadata

impl Sync for MetricDescriptorMetadata

impl Unpin for MetricDescriptorMetadata

impl UnwindSafe for MetricDescriptorMetadata

Blanket Implementations

impl<T> Any for T where
    T: 'static + ?Sized
[src]

impl<T> Borrow<T> for T where
    T: ?Sized
[src]

impl<T> BorrowMut<T> for T where
    T: ?Sized
[src]

impl<T> From<T> for T[src]

impl<T> Instrument for T[src]

impl<T> Instrument for T[src]

impl<T, U> Into<U> for T where
    U: From<T>, 
[src]

impl<T> IntoRequest<T> for T[src]

impl<T> ToOwned for T where
    T: Clone
[src]

type Owned = T

The resulting type after obtaining ownership.

impl<T, U> TryFrom<U> for T where
    U: Into<T>, 
[src]

type Error = Infallible

The type returned in the event of a conversion error.

impl<T, U> TryInto<U> for T where
    U: TryFrom<T>, 
[src]

type Error = <U as TryFrom<T>>::Error

The type returned in the event of a conversion error.

impl<V, T> VZip<V> for T where
    V: MultiLane<T>, 
[src]

impl<T> WithSubscriber for T[src]