1- // Copyright 2015 Google LLC
1+ // Copyright 2023 Google LLC
22//
33// Licensed under the Apache License, Version 2.0 (the "License");
44// you may not use this file except in compliance with the License.
@@ -27,9 +27,10 @@ option java_outer_classname = "MonitoredResourceProto";
2727option java_package = "com.google.api" ;
2828option objc_class_prefix = "GAPI" ;
2929
30- // An object that describes the schema of a [MonitoredResource][google.api.MonitoredResource] object using a
31- // type name and a set of labels. For example, the monitored resource
32- // descriptor for Google Compute Engine VM instances has a type of
30+ // An object that describes the schema of a
31+ // [MonitoredResource][google.api.MonitoredResource] object using a type name
32+ // and a set of labels. For example, the monitored resource descriptor for
33+ // Google Compute Engine VM instances has a type of
3334// `"gce_instance"` and specifies the use of the labels `"instance_id"` and
3435// `"zone"` to identify particular VM instances.
3536//
@@ -76,11 +77,13 @@ message MonitoredResourceDescriptor {
7677// An object representing a resource that can be used for monitoring, logging,
7778// billing, or other purposes. Examples include virtual machine instances,
7879// databases, and storage devices such as disks. The `type` field identifies a
79- // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object that describes the resource's
80- // schema. Information in the `labels` field identifies the actual resource and
81- // its attributes according to the schema. For example, a particular Compute
82- // Engine VM instance could be represented by the following object, because the
83- // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for `"gce_instance"` has labels
80+ // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object
81+ // that describes the resource's schema. Information in the `labels` field
82+ // identifies the actual resource and its attributes according to the schema.
83+ // For example, a particular Compute Engine VM instance could be represented by
84+ // the following object, because the
85+ // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] for
86+ // `"gce_instance"` has labels
8487// `"project_id"`, `"instance_id"` and `"zone"`:
8588//
8689// { "type": "gce_instance",
@@ -89,10 +92,12 @@ message MonitoredResourceDescriptor {
8992// "zone": "us-central1-a" }}
9093message MonitoredResource {
9194 // Required. The monitored resource type. This field must match
92- // the `type` field of a [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor] object. For
93- // example, the type of a Compute Engine VM instance is `gce_instance`.
94- // Some descriptors include the service name in the type; for example,
95- // the type of a Datastream stream is `datastream.googleapis.com/Stream`.
95+ // the `type` field of a
96+ // [MonitoredResourceDescriptor][google.api.MonitoredResourceDescriptor]
97+ // object. For example, the type of a Compute Engine VM instance is
98+ // `gce_instance`. Some descriptors include the service name in the type; for
99+ // example, the type of a Datastream stream is
100+ // `datastream.googleapis.com/Stream`.
96101 string type = 1 ;
97102
98103 // Required. Values for all of the labels listed in the associated monitored
@@ -101,12 +106,12 @@ message MonitoredResource {
101106 map <string , string > labels = 2 ;
102107}
103108
104- // Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource] object.
105- // [MonitoredResource][google.api.MonitoredResource] objects contain the minimum set of information to
106- // uniquely identify a monitored resource instance. There is some other useful
107- // auxiliary metadata. Monitoring and Logging use an ingestion
108- // pipeline to extract metadata for cloud resources of all types, and store
109- // the metadata in this message.
109+ // Auxiliary metadata for a [MonitoredResource][google.api.MonitoredResource]
110+ // object. [MonitoredResource][google.api.MonitoredResource] objects contain the
111+ // minimum set of information to uniquely identify a monitored resource
112+ // instance. There is some other useful auxiliary metadata. Monitoring and
113+ // Logging use an ingestion pipeline to extract metadata for cloud resources of
114+ // all types, and store the metadata in this message.
110115message MonitoredResourceMetadata {
111116 // Output only. Values for predefined system metadata labels.
112117 // System labels are a kind of metadata extracted by Google, including
0 commit comments