Struct google_api_proto::google::api::MonitoredResourceDescriptor
source · 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: String
Optional. 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: String
Required. The monitored resource type. For example, the type
"cloudsql_database"
represents databases in Google Cloud SQL.
For a list of types, see Monitored resource
types
and Logging resource
types.
display_name: String
Optional. 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: String
Optional. 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: i32
Optional. 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(&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 MonitoredResourceDescriptor
impl PartialEq 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 Freeze for MonitoredResourceDescriptor
impl RefUnwindSafe for MonitoredResourceDescriptor
impl Send for MonitoredResourceDescriptor
impl Sync for MonitoredResourceDescriptor
impl Unpin for MonitoredResourceDescriptor
impl UnwindSafe for MonitoredResourceDescriptor
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
§impl<T> Instrument for T
impl<T> Instrument for T
§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
§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