pub struct MetricDescriptor {
pub description: Option<String>,
pub labels: Option<Vec<MetricDescriptorLabelDescriptor>>,
pub name: Option<String>,
pub project: Option<String>,
pub type_descriptor: Option<MetricDescriptorTypeDescriptor>,
}
Expand description
A metricDescriptor defines the name, label keys, and data type of a particular metric.
§Activities
This type is used in activities, which are methods you may call on this type or where this type is involved in. The list links the activity name, along with information about where it is used (one of request and response).
- create metric descriptors (request|response)
- delete metric descriptors (none)
- list metric descriptors (none)
Fields§
§description: Option<String>
Description of this metric.
labels: Option<Vec<MetricDescriptorLabelDescriptor>>
Labels defined for this metric.
name: Option<String>
The name of this metric.
project: Option<String>
The project ID to which the metric belongs.
type_descriptor: Option<MetricDescriptorTypeDescriptor>
Type description for this metric.
Trait Implementations§
source§impl Clone for MetricDescriptor
impl Clone for MetricDescriptor
source§fn clone(&self) -> MetricDescriptor
fn clone(&self) -> MetricDescriptor
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 MetricDescriptor
impl Debug for MetricDescriptor
source§impl Default for MetricDescriptor
impl Default for MetricDescriptor
source§fn default() -> MetricDescriptor
fn default() -> MetricDescriptor
Returns the “default value” for a type. Read more
source§impl<'de> Deserialize<'de> for MetricDescriptor
impl<'de> Deserialize<'de> for MetricDescriptor
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 Serialize for MetricDescriptor
impl Serialize for MetricDescriptor
impl RequestValue for MetricDescriptor
impl Resource for MetricDescriptor
impl ResponseResult for MetricDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for MetricDescriptor
impl Send for MetricDescriptor
impl Sync for MetricDescriptor
impl Unpin for MetricDescriptor
impl UnwindSafe for MetricDescriptor
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