#[non_exhaustive]pub struct MonitoredResourceMetadata {
pub system_labels: Option<Struct>,
pub user_labels: HashMap<String, String>,
/* private fields */
}
Expand description
Auxiliary metadata for a MonitoredResource object. MonitoredResource objects contain the minimum set of information to uniquely identify a monitored resource instance. There is some other useful auxiliary metadata. Monitoring and Logging use an ingestion pipeline to extract metadata for cloud resources of all types, and store the metadata in this message.
Fields (Non-exhaustive)§
This struct is marked as non-exhaustive
Struct { .. }
syntax; cannot be matched against without a wildcard ..
; and struct update syntax will not work.system_labels: Option<Struct>
Output only. Values for predefined system metadata labels. System labels are a kind of metadata extracted by Google, including “machine_image”, “vpc”, “subnet_id”, “security_group”, “name”, etc. System label values can be only strings, Boolean values, or a list of strings. For example:
{ "name": "my-test-instance",
"security_group": ["a", "b", "c"],
"spot_instance": false }
user_labels: HashMap<String, String>
Output only. A map of user-defined metadata labels.
Implementations§
Source§impl MonitoredResourceMetadata
impl MonitoredResourceMetadata
pub fn new() -> Self
Sourcepub fn set_system_labels<T>(self, v: T) -> Self
pub fn set_system_labels<T>(self, v: T) -> Self
Sets the value of system_labels.
Sourcepub fn set_or_clear_system_labels<T>(self, v: Option<T>) -> Self
pub fn set_or_clear_system_labels<T>(self, v: Option<T>) -> Self
Sets or clears the value of system_labels.
Sourcepub fn set_user_labels<T, K, V>(self, v: T) -> Self
pub fn set_user_labels<T, K, V>(self, v: T) -> Self
Sets the value of user_labels.
Trait Implementations§
Source§impl Clone for MonitoredResourceMetadata
impl Clone for MonitoredResourceMetadata
Source§fn clone(&self) -> MonitoredResourceMetadata
fn clone(&self) -> MonitoredResourceMetadata
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source
. Read more