pub struct MonitoredResourceDescriptor {
pub name: String,
pub type: String,
pub display_name: String,
pub description: String,
pub labels: Vec<LabelDescriptor>,
pub launch_stage: i32,
}Expand description
An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a
type name and a set of labels. For example, the monitored resource
descriptor for Google Compute Engine VM instances has a type of
"gce_instance" and specifies the use of the labels "instance_id" and
"zone" to identify particular VM instances.
Different APIs can support different monitored resource types. APIs generally
provide a list method that returns the monitored resource descriptors used
by the API.
Fields§
§name: StringOptional. The resource name of the monitored resource descriptor:
"projects/{project_id}/monitoredResourceDescriptors/{type}" where
{type} is the value of the type field in this object and
{project_id} is a project ID that provides API-specific context for
accessing the type. APIs that do not use project information can use the
resource name format "monitoredResourceDescriptors/{type}".
type: StringRequired. The monitored resource type. For example, the type
"cloudsql_database" represents databases in Google Cloud SQL.
For a list of types, see Monitoring resource
types
and Logging resource
types.
display_name: StringOptional. A concise name for the monitored resource type that might be
displayed in user interfaces. It should be a Title Cased Noun Phrase,
without any article or other determiners. For example,
"Google Cloud SQL Database".
description: StringOptional. A detailed description of the monitored resource type that might be used in documentation.
labels: Vec<LabelDescriptor>Required. A set of labels used to describe instances of this monitored
resource type. For example, an individual Google Cloud SQL database is
identified by values for the labels "database_id" and "zone".
launch_stage: i32Optional. The launch stage of the monitored resource definition.
Implementations§
source§impl MonitoredResourceDescriptor
impl MonitoredResourceDescriptor
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.
Trait Implementations§
source§impl Clone for MonitoredResourceDescriptor
impl Clone for MonitoredResourceDescriptor
source§fn clone(&self) -> MonitoredResourceDescriptor
fn clone(&self) -> MonitoredResourceDescriptor
1.0.0 · source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moresource§impl Debug for MonitoredResourceDescriptor
impl Debug for MonitoredResourceDescriptor
source§impl Message for MonitoredResourceDescriptor
impl Message for MonitoredResourceDescriptor
source§fn encoded_len(&self) -> usize
fn encoded_len(&self) -> usize
source§fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where
B: BufMut,
Self: Sized,
fn encode_length_delimited<B>(&self, buf: &mut B) -> Result<(), EncodeError>where B: BufMut, Self: Sized,
source§fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where
Self: Sized,
fn encode_length_delimited_to_vec(&self) -> Vec<u8, Global>where Self: Sized,
source§fn decode<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where
B: Buf,
Self: Default,
fn decode_length_delimited<B>(buf: B) -> Result<Self, DecodeError>where B: Buf, Self: Default,
source§fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self. Read moresource§fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where
B: Buf,
Self: Sized,
fn merge_length_delimited<B>(&mut self, buf: B) -> Result<(), DecodeError>where B: Buf, Self: Sized,
self.source§impl PartialEq<MonitoredResourceDescriptor> for MonitoredResourceDescriptor
impl PartialEq<MonitoredResourceDescriptor> for MonitoredResourceDescriptor
source§fn eq(&self, other: &MonitoredResourceDescriptor) -> bool
fn eq(&self, other: &MonitoredResourceDescriptor) -> bool
self and other values to be equal, and is used
by ==.impl StructuralPartialEq for MonitoredResourceDescriptor
Auto Trait Implementations§
impl RefUnwindSafe for MonitoredResourceDescriptor
impl Send for MonitoredResourceDescriptor
impl Sync for MonitoredResourceDescriptor
impl Unpin for MonitoredResourceDescriptor
impl UnwindSafe for MonitoredResourceDescriptor
Blanket Implementations§
§impl<T> FutureExt for T
impl<T> FutureExt for T
§fn with_context(self, otel_cx: Context) -> WithContext<Self>
fn with_context(self, otel_cx: Context) -> WithContext<Self>
§fn with_current_context(self) -> WithContext<Self>
fn with_current_context(self) -> WithContext<Self>
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