Index: discovery/googleapis/monitoring__v3.json |
diff --git a/discovery/googleapis/monitoring__v3.json b/discovery/googleapis/monitoring__v3.json |
index edc50bf9a04ea4fbe00bc1ca94c50822f4fd7e61..f1fd4c049aecfbf6956131dc17a0296c8914eee0 100644 |
--- a/discovery/googleapis/monitoring__v3.json |
+++ b/discovery/googleapis/monitoring__v3.json |
@@ -2,6 +2,9 @@ |
"auth": { |
"oauth2": { |
"scopes": { |
+ "https://www.googleapis.com/auth/monitoring.write": { |
+ "description": "Publish metric data to your Google Cloud projects" |
+ }, |
"https://www.googleapis.com/auth/cloud-platform": { |
"description": "View and manage your data across Google Cloud Platform services" |
}, |
@@ -10,9 +13,6 @@ |
}, |
"https://www.googleapis.com/auth/monitoring": { |
"description": "View and write monitoring data for all of your Google and third-party Cloud and API projects" |
- }, |
- "https://www.googleapis.com/auth/monitoring.write": { |
- "description": "Publish metric data to your Google Cloud projects" |
} |
} |
} |
@@ -34,27 +34,6 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
- "location": "query", |
- "type": "string" |
- }, |
- "oauth_token": { |
- "description": "OAuth 2.0 token for the current user.", |
- "location": "query", |
- "type": "string" |
- }, |
"upload_protocol": { |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
@@ -66,18 +45,13 @@ |
"location": "query", |
"type": "boolean" |
}, |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
- "location": "query", |
- "type": "string" |
- }, |
"uploadType": { |
"description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
"location": "query", |
"type": "string" |
}, |
- "callback": { |
- "description": "JSONP", |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
"location": "query", |
"type": "string" |
}, |
@@ -94,6 +68,11 @@ |
"location": "query", |
"type": "string" |
}, |
+ "callback": { |
+ "description": "JSONP", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"alt": { |
"default": "json", |
"description": "Data format for response.", |
@@ -110,13 +89,34 @@ |
"location": "query", |
"type": "string" |
}, |
+ "access_token": { |
+ "description": "OAuth access token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"key": { |
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
"location": "query", |
"type": "string" |
}, |
- "access_token": { |
- "description": "OAuth access token.", |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "oauth_token": { |
+ "description": "OAuth 2.0 token for the current user.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
"location": "query", |
"type": "string" |
} |
@@ -248,12 +248,6 @@ |
"location": "query", |
"type": "string" |
}, |
- "aggregation.groupByFields": { |
- "description": "The set of fields to preserve when crossSeriesReducer is specified. The groupByFields determine how the time series are partitioned into subsets prior to applying the aggregation function. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The crossSeriesReducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in groupByFields are aggregated away. If groupByFields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If crossSeriesReducer is not defined, this field is ignored.", |
- "location": "query", |
- "repeated": true, |
- "type": "string" |
- }, |
"name": { |
"description": "The project on which to execute the request. The format is \"projects/{project_id_or_number}\".", |
"location": "path", |
@@ -261,6 +255,12 @@ |
"required": true, |
"type": "string" |
}, |
+ "aggregation.groupByFields": { |
+ "description": "The set of fields to preserve when crossSeriesReducer is specified. The groupByFields determine how the time series are partitioned into subsets prior to applying the aggregation function. Each subset contains time series that have the same value for each of the grouping fields. Each individual time series is a member of exactly one subset. The crossSeriesReducer is applied to each subset of time series. It is not possible to reduce across different resource types, so this field implicitly contains resource.type. Fields not specified in groupByFields are aggregated away. If groupByFields is not specified and all the time series have the same resource type, then the time series are aggregated into a single output time series. If crossSeriesReducer is not defined, this field is ignored.", |
+ "location": "query", |
+ "repeated": true, |
+ "type": "string" |
+ }, |
"interval.endTime": { |
"description": "Required. The end of the time interval.", |
"format": "google-datetime", |
@@ -350,12 +350,6 @@ |
"name" |
], |
"parameters": { |
- "pageSize": { |
- "description": "A positive number that is the maximum number of results to return.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
- }, |
"filter": { |
"description": "If this field is empty, all custom and system-defined metric descriptors are returned. Otherwise, the filter specifies which metric descriptors are to be returned. For example, the following filter matches all custom metrics:\nmetric.type = starts_with(\"custom.googleapis.com/\")\n", |
"location": "query", |
@@ -372,6 +366,12 @@ |
"description": "If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.", |
"location": "query", |
"type": "string" |
+ }, |
+ "pageSize": { |
+ "description": "A positive number that is the maximum number of results to return.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
} |
}, |
"path": "v3/{+name}/metricDescriptors", |
@@ -453,12 +453,6 @@ |
"name" |
], |
"parameters": { |
- "pageSize": { |
- "description": "A positive number that is the maximum number of results to return.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
- }, |
"filter": { |
"description": "An optional filter describing the descriptors to be returned. The filter can reference the descriptor's type and labels. For example, the following filter returns only Google Compute Engine descriptors that have an id label:\nresource.type = starts_with(\"gce_\") AND resource.label:id\n", |
"location": "query", |
@@ -475,6 +469,12 @@ |
"description": "If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.", |
"location": "query", |
"type": "string" |
+ }, |
+ "pageSize": { |
+ "description": "A positive number that is the maximum number of results to return.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
} |
}, |
"path": "v3/{+name}/monitoredResourceDescriptors", |
@@ -700,15 +700,11 @@ |
"name" |
], |
"parameters": { |
- "filter": { |
- "description": "An optional list filter describing the members to be returned. The filter may reference the type, labels, and metadata of monitored resources that comprise the group. For example, to return only resources representing Compute Engine VM instances, use this filter:\nresource.type = \"gce_instance\"\n", |
- "location": "query", |
- "type": "string" |
- }, |
- "pageToken": { |
- "description": "If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.", |
+ "pageSize": { |
+ "description": "A positive number that is the maximum number of results to return.", |
+ "format": "int32", |
"location": "query", |
- "type": "string" |
+ "type": "integer" |
}, |
"interval.startTime": { |
"description": "Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.", |
@@ -716,12 +712,6 @@ |
"location": "query", |
"type": "string" |
}, |
- "pageSize": { |
- "description": "A positive number that is the maximum number of results to return.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
- }, |
"name": { |
"description": "The group whose members are listed. The format is \"projects/{project_id_or_number}/groups/{group_id}\".", |
"location": "path", |
@@ -734,6 +724,16 @@ |
"format": "google-datetime", |
"location": "query", |
"type": "string" |
+ }, |
+ "filter": { |
+ "description": "An optional list filter describing the members to be returned. The filter may reference the type, labels, and metadata of monitored resources that comprise the group. For example, to return only resources representing Compute Engine VM instances, use this filter:\nresource.type = \"gce_instance\"\n", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "If this field is not empty then it must contain the nextPageToken value returned by a previous call to this method. Using this field causes the method to return additional results from the previous method call.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v3/{+name}/members", |
@@ -753,333 +753,361 @@ |
} |
} |
}, |
- "revision": "20170519", |
+ "revision": "20170606", |
"rootUrl": "https://monitoring.googleapis.com/", |
"schemas": { |
- "CollectdPayload": { |
- "description": "A collection of data points sent from a collectd-based plugin. See the collectd documentation for more information.", |
- "id": "CollectdPayload", |
+ "CollectdValue": { |
+ "description": "A single data point from a collectd-based plugin.", |
+ "id": "CollectdValue", |
"properties": { |
- "typeInstance": { |
- "description": "The measurement type instance. Example: \"used\".", |
- "type": "string" |
- }, |
- "type": { |
- "description": "The measurement type. Example: \"memory\".", |
- "type": "string" |
- }, |
- "metadata": { |
- "additionalProperties": { |
- "$ref": "TypedValue" |
- }, |
- "description": "The measurement metadata. Example: \"process_id\" -> 12345", |
- "type": "object" |
- }, |
- "plugin": { |
- "description": "The name of the plugin. Example: \"disk\".", |
- "type": "string" |
- }, |
- "pluginInstance": { |
- "description": "The instance name of the plugin Example: \"hdcl\".", |
- "type": "string" |
+ "value": { |
+ "$ref": "TypedValue", |
+ "description": "The measurement value." |
}, |
- "endTime": { |
- "description": "The end time of the interval.", |
- "format": "google-datetime", |
+ "dataSourceType": { |
+ "description": "The type of measurement.", |
+ "enum": [ |
+ "UNSPECIFIED_DATA_SOURCE_TYPE", |
+ "GAUGE", |
+ "COUNTER", |
+ "DERIVE", |
+ "ABSOLUTE" |
+ ], |
+ "enumDescriptions": [ |
+ "An unspecified data source type. This corresponds to google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.", |
+ "An instantaneous measurement of a varying quantity. This corresponds to google.api.MetricDescriptor.MetricKind.GAUGE.", |
+ "A cumulative value over time. This corresponds to google.api.MetricDescriptor.MetricKind.CUMULATIVE.", |
+ "A rate of change of the measurement.", |
+ "An amount of change since the last measurement interval. This corresponds to google.api.MetricDescriptor.MetricKind.DELTA." |
+ ], |
"type": "string" |
}, |
- "startTime": { |
- "description": "The start time of the interval.", |
- "format": "google-datetime", |
+ "dataSourceName": { |
+ "description": "The data source for the collectd value. For example there are two data sources for network measurements: \"rx\" and \"tx\".", |
"type": "string" |
- }, |
- "values": { |
- "description": "The measured values during this time interval. Each value must have a different dataSourceName.", |
- "items": { |
- "$ref": "CollectdValue" |
- }, |
- "type": "array" |
} |
}, |
"type": "object" |
}, |
- "Linear": { |
- "description": "Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).", |
- "id": "Linear", |
+ "SourceContext": { |
+ "description": "SourceContext represents information about the source of a protobuf element, like the file in which it is defined.", |
+ "id": "SourceContext", |
"properties": { |
- "offset": { |
- "description": "Lower bound of the first bucket.", |
- "format": "double", |
- "type": "number" |
- }, |
- "numFiniteBuckets": { |
- "description": "Must be greater than 0.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "width": { |
- "description": "Must be greater than 0.", |
- "format": "double", |
- "type": "number" |
+ "fileName": { |
+ "description": "The path-qualified name of the .proto file that contained the associated protobuf element. For example: \"google/protobuf/source_context.proto\".", |
+ "type": "string" |
} |
}, |
"type": "object" |
}, |
- "Empty": { |
- "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:\nservice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe JSON representation for Empty is empty JSON object {}.", |
- "id": "Empty", |
- "properties": {}, |
- "type": "object" |
- }, |
- "Option": { |
- "description": "A protocol buffer option, which can be attached to a message, field, enumeration, etc.", |
- "id": "Option", |
+ "MetricDescriptor": { |
+ "description": "Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes the metric type's existing data unusable.", |
+ "id": "MetricDescriptor", |
"properties": { |
+ "labels": { |
+ "description": "The set of labels that can be used to describe a specific instance of this metric type. For example, the appengine.googleapis.com/http/server/response_latencies metric type has a label for the HTTP response code, response_code, so you can look at latencies for successful responses or just for responses that failed.", |
+ "items": { |
+ "$ref": "LabelDescriptor" |
+ }, |
+ "type": "array" |
+ }, |
"name": { |
- "description": "The option's name. For protobuf built-in options (options defined in descriptor.proto), this is the short name. For example, \"map_entry\". For custom options, it should be the fully-qualified name. For example, \"google.api.http\".", |
+ "description": "The resource name of the metric descriptor. Depending on the implementation, the name typically includes: (1) the parent resource name that defines the scope of the metric type or of its data; and (2) the metric's URL-encoded type, which also appears in the type field of this descriptor. For example, following is the resource name of a custom metric within the GCP project my-project-id:\n\"projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount\"\n", |
"type": "string" |
}, |
- "value": { |
- "additionalProperties": { |
- "description": "Properties of the object. Contains field @type with type URL.", |
- "type": "any" |
- }, |
- "description": "The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type.", |
- "type": "object" |
- } |
- }, |
- "type": "object" |
- }, |
- "TimeInterval": { |
- "description": "A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.", |
- "id": "TimeInterval", |
- "properties": { |
- "endTime": { |
- "description": "Required. The end of the time interval.", |
- "format": "google-datetime", |
+ "type": { |
+ "description": "The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined custom metric types have the DNS name custom.googleapis.com. Metric types should use a natural hierarchical grouping. For example:\n\"custom.googleapis.com/invoice/paid/amount\"\n\"appengine.googleapis.com/http/server/response_latencies\"\n", |
"type": "string" |
}, |
- "startTime": { |
- "description": "Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.", |
- "format": "google-datetime", |
+ "valueType": { |
+ "description": "Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.", |
+ "enum": [ |
+ "VALUE_TYPE_UNSPECIFIED", |
+ "BOOL", |
+ "INT64", |
+ "DOUBLE", |
+ "STRING", |
+ "DISTRIBUTION", |
+ "MONEY" |
+ ], |
+ "enumDescriptions": [ |
+ "Do not use this default value.", |
+ "The value is a boolean. This value type can be used only if the metric kind is GAUGE.", |
+ "The value is a signed 64-bit integer.", |
+ "The value is a double precision floating point number.", |
+ "The value is a text string. This value type can be used only if the metric kind is GAUGE.", |
+ "The value is a Distribution.", |
+ "The value is money." |
+ ], |
+ "type": "string" |
+ }, |
+ "metricKind": { |
+ "description": "Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metric_kind and value_type might not be supported.", |
+ "enum": [ |
+ "METRIC_KIND_UNSPECIFIED", |
+ "GAUGE", |
+ "DELTA", |
+ "CUMULATIVE" |
+ ], |
+ "enumDescriptions": [ |
+ "Do not use this default value.", |
+ "An instantaneous measurement of a value.", |
+ "The change in a value during a time interval.", |
+ "A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points." |
+ ], |
+ "type": "string" |
+ }, |
+ "description": { |
+ "description": "A detailed description of the metric, which can be used in documentation.", |
+ "type": "string" |
+ }, |
+ "displayName": { |
+ "description": "A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example \"Request count\".", |
+ "type": "string" |
+ }, |
+ "unit": { |
+ "description": "The unit in which the metric value is reported. It is only applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT)\nbit bit\nBy byte\ns second\nmin minute\nh hour\nd dayPrefixes (PREFIX)\nk kilo (10**3)\nM mega (10**6)\nG giga (10**9)\nT tera (10**12)\nP peta (10**15)\nE exa (10**18)\nZ zetta (10**21)\nY yotta (10**24)\nm milli (10**-3)\nu micro (10**-6)\nn nano (10**-9)\np pico (10**-12)\nf femto (10**-15)\na atto (10**-18)\nz zepto (10**-21)\ny yocto (10**-24)\nKi kibi (2**10)\nMi mebi (2**20)\nGi gibi (2**30)\nTi tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/s.The grammar also includes these connectors:\n/ division (as an infix operator, e.g. 1/s).\n. multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is as follows:\nExpression = Component { \".\" Component } { \"/\" Component } ;\n\nComponent = [ PREFIX ] UNIT [ Annotation ]\n | Annotation\n | \"1\"\n ;\n\nAnnotation = \"{\" NAME \"}\" ;\nNotes:\nAnnotation is just a comment if it follows a UNIT and is equivalent to 1 if it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s == By/s.\nNAME is a sequence of non-blank printable ASCII characters not containing '{' or '}'.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "Explicit": { |
- "description": "Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at least one element. If bounds has only one element, then there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.", |
- "id": "Explicit", |
+ "Range": { |
+ "description": "The range of the population values.", |
+ "id": "Range", |
"properties": { |
- "bounds": { |
- "description": "The values must be monotonically increasing.", |
+ "min": { |
+ "description": "The minimum of the population values.", |
+ "format": "double", |
+ "type": "number" |
+ }, |
+ "max": { |
+ "description": "The maximum of the population values.", |
+ "format": "double", |
+ "type": "number" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ListGroupsResponse": { |
+ "description": "The ListGroups response.", |
+ "id": "ListGroupsResponse", |
+ "properties": { |
+ "nextPageToken": { |
+ "description": "If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.", |
+ "type": "string" |
+ }, |
+ "group": { |
+ "description": "The groups that match the specified filters.", |
"items": { |
- "format": "double", |
- "type": "number" |
+ "$ref": "Group" |
}, |
"type": "array" |
} |
}, |
"type": "object" |
}, |
- "Exponential": { |
- "description": "Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).", |
- "id": "Exponential", |
+ "CreateCollectdTimeSeriesRequest": { |
+ "description": "The CreateCollectdTimeSeries request.", |
+ "id": "CreateCollectdTimeSeriesRequest", |
"properties": { |
- "numFiniteBuckets": { |
- "description": "Must be greater than 0.", |
- "format": "int32", |
- "type": "integer" |
+ "resource": { |
+ "$ref": "MonitoredResource", |
+ "description": "The monitored resource associated with the time series." |
}, |
- "growthFactor": { |
- "description": "Must be greater than 1.", |
- "format": "double", |
- "type": "number" |
+ "collectdPayloads": { |
+ "description": "The collectd payloads representing the time series data. You must not include more than a single point for each time series, so no two payloads can have the same values for all of the fields plugin, plugin_instance, type, and type_instance.", |
+ "items": { |
+ "$ref": "CollectdPayload" |
+ }, |
+ "type": "array" |
}, |
- "scale": { |
- "description": "Must be greater than 0.", |
- "format": "double", |
- "type": "number" |
+ "collectdVersion": { |
+ "description": "The version of collectd that collected the data. Example: \"5.3.0-192.el6\".", |
+ "type": "string" |
} |
}, |
"type": "object" |
}, |
- "Point": { |
- "description": "A single data point in a time series.", |
- "id": "Point", |
+ "ListGroupMembersResponse": { |
+ "description": "The ListGroupMembers response.", |
+ "id": "ListGroupMembersResponse", |
"properties": { |
- "value": { |
- "$ref": "TypedValue", |
- "description": "The value of the data point." |
+ "members": { |
+ "description": "A set of monitored resources in the group.", |
+ "items": { |
+ "$ref": "MonitoredResource" |
+ }, |
+ "type": "array" |
}, |
- "interval": { |
- "$ref": "TimeInterval", |
- "description": "The time interval to which the data point applies. For GAUGE metrics, only the end time of the interval is used. For DELTA metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start and end time should specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points." |
+ "nextPageToken": { |
+ "description": "If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.", |
+ "type": "string" |
+ }, |
+ "totalSize": { |
+ "description": "The total number of elements matching this request.", |
+ "format": "int32", |
+ "type": "integer" |
} |
}, |
"type": "object" |
}, |
- "Field": { |
- "description": "A single field of a message type.", |
- "id": "Field", |
+ "ListMonitoredResourceDescriptorsResponse": { |
+ "description": "The ListMonitoredResourceDescriptors response.", |
+ "id": "ListMonitoredResourceDescriptorsResponse", |
"properties": { |
- "oneofIndex": { |
- "description": "The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.", |
- "format": "int32", |
- "type": "integer" |
+ "nextPageToken": { |
+ "description": "If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.", |
+ "type": "string" |
}, |
- "cardinality": { |
- "description": "The field cardinality.", |
+ "resourceDescriptors": { |
+ "description": "The monitored resource descriptors that are available to this project and that match filter, if present.", |
+ "items": { |
+ "$ref": "MonitoredResourceDescriptor" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "TimeSeries": { |
+ "description": "A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series.", |
+ "id": "TimeSeries", |
+ "properties": { |
+ "resource": { |
+ "$ref": "MonitoredResource", |
+ "description": "The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data." |
+ }, |
+ "metricKind": { |
+ "description": "The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either GAUGE (the default) or CUMULATIVE.", |
"enum": [ |
- "CARDINALITY_UNKNOWN", |
- "CARDINALITY_OPTIONAL", |
- "CARDINALITY_REQUIRED", |
- "CARDINALITY_REPEATED" |
+ "METRIC_KIND_UNSPECIFIED", |
+ "GAUGE", |
+ "DELTA", |
+ "CUMULATIVE" |
], |
"enumDescriptions": [ |
- "For fields with unknown cardinality.", |
- "For optional fields.", |
- "For required fields. Proto2 syntax only.", |
- "For repeated fields." |
+ "Do not use this default value.", |
+ "An instantaneous measurement of a value.", |
+ "The change in a value during a time interval.", |
+ "A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points." |
], |
"type": "string" |
}, |
- "packed": { |
- "description": "Whether to use alternative packed wire representation.", |
- "type": "boolean" |
- }, |
- "defaultValue": { |
- "description": "The string value of the default value of this field. Proto2 syntax only.", |
- "type": "string" |
- }, |
- "name": { |
- "description": "The field name.", |
- "type": "string" |
- }, |
- "typeUrl": { |
- "description": "The field type URL, without the scheme, for message or enumeration types. Example: \"type.googleapis.com/google.protobuf.Timestamp\".", |
- "type": "string" |
+ "metric": { |
+ "$ref": "Metric", |
+ "description": "The associated metric. A fully-specified metric used to identify the time series." |
}, |
- "number": { |
- "description": "The field number.", |
- "format": "int32", |
- "type": "integer" |
+ "points": { |
+ "description": "The data points of this time series. When listing time series, the order of the points is specified by the list method.When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.", |
+ "items": { |
+ "$ref": "Point" |
+ }, |
+ "type": "array" |
}, |
- "kind": { |
- "description": "The field type.", |
+ "valueType": { |
+ "description": "The value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. If present, it must be the same as the type of the data in the points field.", |
"enum": [ |
- "TYPE_UNKNOWN", |
- "TYPE_DOUBLE", |
- "TYPE_FLOAT", |
- "TYPE_INT64", |
- "TYPE_UINT64", |
- "TYPE_INT32", |
- "TYPE_FIXED64", |
- "TYPE_FIXED32", |
- "TYPE_BOOL", |
- "TYPE_STRING", |
- "TYPE_GROUP", |
- "TYPE_MESSAGE", |
- "TYPE_BYTES", |
- "TYPE_UINT32", |
- "TYPE_ENUM", |
- "TYPE_SFIXED32", |
- "TYPE_SFIXED64", |
- "TYPE_SINT32", |
- "TYPE_SINT64" |
+ "VALUE_TYPE_UNSPECIFIED", |
+ "BOOL", |
+ "INT64", |
+ "DOUBLE", |
+ "STRING", |
+ "DISTRIBUTION", |
+ "MONEY" |
], |
"enumDescriptions": [ |
- "Field type unknown.", |
- "Field type double.", |
- "Field type float.", |
- "Field type int64.", |
- "Field type uint64.", |
- "Field type int32.", |
- "Field type fixed64.", |
- "Field type fixed32.", |
- "Field type bool.", |
- "Field type string.", |
- "Field type group. Proto2 syntax only, and deprecated.", |
- "Field type message.", |
- "Field type bytes.", |
- "Field type uint32.", |
- "Field type enum.", |
- "Field type sfixed32.", |
- "Field type sfixed64.", |
- "Field type sint32.", |
- "Field type sint64." |
+ "Do not use this default value.", |
+ "The value is a boolean. This value type can be used only if the metric kind is GAUGE.", |
+ "The value is a signed 64-bit integer.", |
+ "The value is a double precision floating point number.", |
+ "The value is a text string. This value type can be used only if the metric kind is GAUGE.", |
+ "The value is a Distribution.", |
+ "The value is money." |
], |
"type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "CreateTimeSeriesRequest": { |
+ "description": "The CreateTimeSeries request.", |
+ "id": "CreateTimeSeriesRequest", |
+ "properties": { |
+ "timeSeries": { |
+ "description": "The new data to be added to a list of time series. Adds at most one data point to each of several time series. The new data point must be more recent than any other point in its time series. Each TimeSeries value must fully specify a unique time series by supplying all label values for the metric and the monitored resource.", |
+ "items": { |
+ "$ref": "TimeSeries" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Distribution": { |
+ "description": "Distribution contains summary statistics for a population of values. It optionally contains a histogram representing the distribution of those values across a set of buckets.The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values. The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by formulas for buckets of fixed or exponentially increasing widths.Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the mean and sum_of_squared_deviation fields meaningless.", |
+ "id": "Distribution", |
+ "properties": { |
+ "sumOfSquaredDeviation": { |
+ "description": "The sum of squared deviations from the mean of the values in the population. For values x_i this is:\nSum[i=1..n]((x_i - mean)^2)\nKnuth, \"The Art of Computer Programming\", Vol. 2, page 323, 3rd edition describes Welford's method for accumulating this sum in one pass.If count is zero then this field must be zero.", |
+ "format": "double", |
+ "type": "number" |
+ }, |
+ "range": { |
+ "$ref": "Range", |
+ "description": "If specified, contains the range of the population values. The field must not be present if the count is zero. This field is presently ignored by the Stackdriver Monitoring API v3." |
+ }, |
+ "mean": { |
+ "description": "The arithmetic mean of the values in the population. If count is zero then this field must be zero.", |
+ "format": "double", |
+ "type": "number" |
}, |
- "jsonName": { |
- "description": "The field JSON name.", |
+ "count": { |
+ "description": "The number of values in the population. Must be non-negative. This value must equal the sum of the values in bucket_counts if a histogram is provided.", |
+ "format": "int64", |
"type": "string" |
}, |
- "options": { |
- "description": "The protocol buffer options.", |
+ "bucketCounts": { |
+ "description": "Required in the Stackdriver Monitoring API v3. The values for each bucket specified in bucket_options. The sum of the values in bucketCounts must equal the value in the count field of the Distribution object. The order of the bucket counts follows the numbering schemes described for the three bucket types. The underflow bucket has number 0; the finite buckets, if any, have numbers 1 through N-2; and the overflow bucket has number N-1. The size of bucket_counts must not be greater than N. If the size is less than N, then the remaining buckets are assigned values of zero.", |
"items": { |
- "$ref": "Option" |
+ "format": "int64", |
+ "type": "string" |
}, |
"type": "array" |
+ }, |
+ "bucketOptions": { |
+ "$ref": "BucketOptions", |
+ "description": "Required in the Stackdriver Monitoring API v3. Defines the histogram bucket boundaries." |
} |
}, |
"type": "object" |
}, |
- "Metric": { |
- "description": "A specific metric, identified by specifying values for all of the labels of a MetricDescriptor.", |
- "id": "Metric", |
+ "MonitoredResource": { |
+ "description": "An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n", |
+ "id": "MonitoredResource", |
"properties": { |
"type": { |
- "description": "An existing metric type, see google.api.MetricDescriptor. For example, custom.googleapis.com/invoice/paid/amount.", |
+ "description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance.", |
"type": "string" |
}, |
"labels": { |
"additionalProperties": { |
"type": "string" |
}, |
- "description": "The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.", |
+ "description": "Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels \"project_id\", \"instance_id\", and \"zone\".", |
"type": "object" |
} |
}, |
"type": "object" |
}, |
- "LabelDescriptor": { |
- "description": "A description of a label.", |
- "id": "LabelDescriptor", |
- "properties": { |
- "valueType": { |
- "description": "The type of data that can be assigned to the label.", |
- "enum": [ |
- "STRING", |
- "BOOL", |
- "INT64" |
- ], |
- "enumDescriptions": [ |
- "A variable-length string. This is the default.", |
- "Boolean; true or false.", |
- "A 64-bit signed integer." |
- ], |
- "type": "string" |
- }, |
- "key": { |
- "description": "The label key.", |
- "type": "string" |
- }, |
- "description": { |
- "description": "A human-readable description for the label.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListTimeSeriesResponse": { |
- "description": "The ListTimeSeries response.", |
- "id": "ListTimeSeriesResponse", |
+ "ListMetricDescriptorsResponse": { |
+ "description": "The ListMetricDescriptors response.", |
+ "id": "ListMetricDescriptorsResponse", |
"properties": { |
- "timeSeries": { |
- "description": "One or more time series that match the filter included in the request.", |
+ "metricDescriptors": { |
+ "description": "The metric descriptors that are available to the project and that match the value of filter, if present.", |
"items": { |
- "$ref": "TimeSeries" |
+ "$ref": "MetricDescriptor" |
}, |
"type": "array" |
}, |
@@ -1090,517 +1118,489 @@ |
}, |
"type": "object" |
}, |
- "Type": { |
- "description": "A protocol buffer message type.", |
- "id": "Type", |
+ "MonitoredResourceDescriptor": { |
+ "description": "An object that describes the schema of a 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.", |
+ "id": "MonitoredResourceDescriptor", |
"properties": { |
- "syntax": { |
- "description": "The source syntax.", |
- "enum": [ |
- "SYNTAX_PROTO2", |
- "SYNTAX_PROTO3" |
- ], |
- "enumDescriptions": [ |
- "Syntax proto2.", |
- "Syntax proto3." |
- ], |
- "type": "string" |
- }, |
- "sourceContext": { |
- "$ref": "SourceContext", |
- "description": "The source context." |
- }, |
- "options": { |
- "description": "The protocol buffer options.", |
- "items": { |
- "$ref": "Option" |
- }, |
- "type": "array" |
- }, |
- "fields": { |
- "description": "The list of fields.", |
+ "labels": { |
+ "description": "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\".", |
"items": { |
- "$ref": "Field" |
+ "$ref": "LabelDescriptor" |
}, |
"type": "array" |
}, |
"name": { |
- "description": "The fully qualified message name.", |
- "type": "string" |
- }, |
- "oneofs": { |
- "description": "The list of types appearing in oneof definitions in this type.", |
- "items": { |
- "type": "string" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "Group": { |
- "description": "The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. Groups can contain any number of monitored resources, and each monitored resource can be a member of any number of groups.Groups can be nested in parent-child hierarchies. The parentName field identifies an optional parent for each group. If a group has a parent, then the only monitored resources available to be matched by the group's filter are the resources contained in the parent group. In other words, a group contains the monitored resources that match its filter and the filters of all the group's ancestors. A group without a parent can contain any monitored resource.For example, consider an infrastructure running a set of instances with two user-defined tags: \"environment\" and \"role\". A parent group has a filter, environment=\"production\". A child of that parent group has a filter, role=\"transcoder\". The parent group contains all instances in the production environment, regardless of their roles. The child group contains instances that have the transcoder role and are in the production environment.The monitored resources contained in a group can change at any moment, depending on what resources exist and what filters are associated with the group and its ancestors.", |
- "id": "Group", |
- "properties": { |
- "filter": { |
- "description": "The filter used to determine which monitored resources belong to this group.", |
+ "description": "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" |
}, |
- "name": { |
- "description": "Output only. The name of this group. The format is \"projects/{project_id_or_number}/groups/{group_id}\". When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to CreateGroup and a unique {group_id} that is generated automatically.", |
+ "displayName": { |
+ "description": "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\".", |
"type": "string" |
}, |
- "parentName": { |
- "description": "The name of the group's parent, if it has one. The format is \"projects/{project_id_or_number}/groups/{group_id}\". For groups with no parent, parentName is the empty string, \"\".", |
+ "description": { |
+ "description": "Optional. A detailed description of the monitored resource type that might be used in documentation.", |
"type": "string" |
}, |
- "displayName": { |
- "description": "A user-assigned name for this group, used only for display purposes.", |
+ "type": { |
+ "description": "Required. The monitored resource type. For example, the type \"cloudsql_database\" represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.", |
"type": "string" |
- }, |
- "isCluster": { |
- "description": "If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters.", |
- "type": "boolean" |
} |
}, |
"type": "object" |
}, |
- "BucketOptions": { |
- "description": "BucketOptions describes the bucket boundaries used to create a histogram for the distribution. The buckets can be in a linear sequence, an exponential sequence, or each bucket can be specified explicitly. BucketOptions does not include the number of values in each bucket.A bucket has an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.", |
- "id": "BucketOptions", |
+ "TypedValue": { |
+ "description": "A single strongly-typed value.", |
+ "id": "TypedValue", |
"properties": { |
- "linearBuckets": { |
- "$ref": "Linear", |
- "description": "The linear bucket." |
- }, |
- "explicitBuckets": { |
- "$ref": "Explicit", |
- "description": "The explicit buckets." |
+ "doubleValue": { |
+ "description": "A 64-bit double-precision floating-point number. Its magnitude is approximately ±10<sup>±300</sup> and it has 16 significant digits of precision.", |
+ "format": "double", |
+ "type": "number" |
}, |
- "exponentialBuckets": { |
- "$ref": "Exponential", |
- "description": "The exponential buckets." |
- } |
- }, |
- "type": "object" |
- }, |
- "CollectdValue": { |
- "description": "A single data point from a collectd-based plugin.", |
- "id": "CollectdValue", |
- "properties": { |
- "dataSourceName": { |
- "description": "The data source for the collectd value. For example there are two data sources for network measurements: \"rx\" and \"tx\".", |
+ "int64Value": { |
+ "description": "A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.", |
+ "format": "int64", |
"type": "string" |
}, |
- "value": { |
- "$ref": "TypedValue", |
- "description": "The measurement value." |
+ "distributionValue": { |
+ "$ref": "Distribution", |
+ "description": "A distribution value." |
}, |
- "dataSourceType": { |
- "description": "The type of measurement.", |
- "enum": [ |
- "UNSPECIFIED_DATA_SOURCE_TYPE", |
- "GAUGE", |
- "COUNTER", |
- "DERIVE", |
- "ABSOLUTE" |
- ], |
- "enumDescriptions": [ |
- "An unspecified data source type. This corresponds to google.api.MetricDescriptor.MetricKind.METRIC_KIND_UNSPECIFIED.", |
- "An instantaneous measurement of a varying quantity. This corresponds to google.api.MetricDescriptor.MetricKind.GAUGE.", |
- "A cumulative value over time. This corresponds to google.api.MetricDescriptor.MetricKind.CUMULATIVE.", |
- "A rate of change of the measurement.", |
- "An amount of change since the last measurement interval. This corresponds to google.api.MetricDescriptor.MetricKind.DELTA." |
- ], |
+ "boolValue": { |
+ "description": "A Boolean value: true or false.", |
+ "type": "boolean" |
+ }, |
+ "stringValue": { |
+ "description": "A variable-length string value.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "MetricDescriptor": { |
- "description": "Defines a metric type and its schema. Once a metric descriptor is created, deleting or altering it stops data collection and makes the metric type's existing data unusable.", |
- "id": "MetricDescriptor", |
+ "CollectdPayload": { |
+ "description": "A collection of data points sent from a collectd-based plugin. See the collectd documentation for more information.", |
+ "id": "CollectdPayload", |
"properties": { |
- "type": { |
- "description": "The metric type, including its DNS name prefix. The type is not URL-encoded. All user-defined custom metric types have the DNS name custom.googleapis.com. Metric types should use a natural hierarchical grouping. For example:\n\"custom.googleapis.com/invoice/paid/amount\"\n\"appengine.googleapis.com/http/server/response_latencies\"\n", |
+ "plugin": { |
+ "description": "The name of the plugin. Example: \"disk\".", |
"type": "string" |
}, |
- "valueType": { |
- "description": "Whether the measurement is an integer, a floating-point number, etc. Some combinations of metric_kind and value_type might not be supported.", |
- "enum": [ |
- "VALUE_TYPE_UNSPECIFIED", |
- "BOOL", |
- "INT64", |
- "DOUBLE", |
- "STRING", |
- "DISTRIBUTION", |
- "MONEY" |
- ], |
- "enumDescriptions": [ |
- "Do not use this default value.", |
- "The value is a boolean. This value type can be used only if the metric kind is GAUGE.", |
- "The value is a signed 64-bit integer.", |
- "The value is a double precision floating point number.", |
- "The value is a text string. This value type can be used only if the metric kind is GAUGE.", |
- "The value is a Distribution.", |
- "The value is money." |
- ], |
+ "pluginInstance": { |
+ "description": "The instance name of the plugin Example: \"hdcl\".", |
"type": "string" |
}, |
- "metricKind": { |
- "description": "Whether the metric records instantaneous values, changes to a value, etc. Some combinations of metric_kind and value_type might not be supported.", |
- "enum": [ |
- "METRIC_KIND_UNSPECIFIED", |
- "GAUGE", |
- "DELTA", |
- "CUMULATIVE" |
- ], |
- "enumDescriptions": [ |
- "Do not use this default value.", |
- "An instantaneous measurement of a value.", |
- "The change in a value during a time interval.", |
- "A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points." |
- ], |
+ "endTime": { |
+ "description": "The end time of the interval.", |
+ "format": "google-datetime", |
"type": "string" |
}, |
- "description": { |
- "description": "A detailed description of the metric, which can be used in documentation.", |
+ "startTime": { |
+ "description": "The start time of the interval.", |
+ "format": "google-datetime", |
"type": "string" |
}, |
- "displayName": { |
- "description": "A concise name for the metric, which can be displayed in user interfaces. Use sentence case without an ending period, for example \"Request count\".", |
+ "values": { |
+ "description": "The measured values during this time interval. Each value must have a different dataSourceName.", |
+ "items": { |
+ "$ref": "CollectdValue" |
+ }, |
+ "type": "array" |
+ }, |
+ "typeInstance": { |
+ "description": "The measurement type instance. Example: \"used\".", |
"type": "string" |
}, |
- "unit": { |
- "description": "The unit in which the metric value is reported. It is only applicable if the value_type is INT64, DOUBLE, or DISTRIBUTION. The supported units are a subset of The Unified Code for Units of Measure (http://unitsofmeasure.org/ucum.html) standard:Basic units (UNIT)\nbit bit\nBy byte\ns second\nmin minute\nh hour\nd dayPrefixes (PREFIX)\nk kilo (10**3)\nM mega (10**6)\nG giga (10**9)\nT tera (10**12)\nP peta (10**15)\nE exa (10**18)\nZ zetta (10**21)\nY yotta (10**24)\nm milli (10**-3)\nu micro (10**-6)\nn nano (10**-9)\np pico (10**-12)\nf femto (10**-15)\na atto (10**-18)\nz zepto (10**-21)\ny yocto (10**-24)\nKi kibi (2**10)\nMi mebi (2**20)\nGi gibi (2**30)\nTi tebi (2**40)GrammarThe grammar includes the dimensionless unit 1, such as 1/s.The grammar also includes these connectors:\n/ division (as an infix operator, e.g. 1/s).\n. multiplication (as an infix operator, e.g. GBy.d)The grammar for a unit is as follows:\nExpression = Component { \".\" Component } { \"/\" Component } ;\n\nComponent = [ PREFIX ] UNIT [ Annotation ]\n | Annotation\n | \"1\"\n ;\n\nAnnotation = \"{\" NAME \"}\" ;\nNotes:\nAnnotation is just a comment if it follows a UNIT and is equivalent to 1 if it is used alone. For examples, {requests}/s == 1/s, By{transmitted}/s == By/s.\nNAME is a sequence of non-blank printable ASCII characters not containing '{' or '}'.", |
+ "metadata": { |
+ "additionalProperties": { |
+ "$ref": "TypedValue" |
+ }, |
+ "description": "The measurement metadata. Example: \"process_id\" -> 12345", |
+ "type": "object" |
+ }, |
+ "type": { |
+ "description": "The measurement type. Example: \"memory\".", |
"type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Linear": { |
+ "description": "Specifies a linear sequence of buckets that all have the same width (except overflow and underflow). Each bucket represents a constant absolute uncertainty on the specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): offset + (width * i). Lower bound (1 <= i < N): offset + (width * (i - 1)).", |
+ "id": "Linear", |
+ "properties": { |
+ "width": { |
+ "description": "Must be greater than 0.", |
+ "format": "double", |
+ "type": "number" |
}, |
- "labels": { |
- "description": "The set of labels that can be used to describe a specific instance of this metric type. For example, the appengine.googleapis.com/http/server/response_latencies metric type has a label for the HTTP response code, response_code, so you can look at latencies for successful responses or just for responses that failed.", |
- "items": { |
- "$ref": "LabelDescriptor" |
+ "offset": { |
+ "description": "Lower bound of the first bucket.", |
+ "format": "double", |
+ "type": "number" |
+ }, |
+ "numFiniteBuckets": { |
+ "description": "Must be greater than 0.", |
+ "format": "int32", |
+ "type": "integer" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Option": { |
+ "description": "A protocol buffer option, which can be attached to a message, field, enumeration, etc.", |
+ "id": "Option", |
+ "properties": { |
+ "value": { |
+ "additionalProperties": { |
+ "description": "Properties of the object. Contains field @type with type URL.", |
+ "type": "any" |
}, |
- "type": "array" |
+ "description": "The option's value packed in an Any message. If the value is a primitive, the corresponding wrapper type defined in google/protobuf/wrappers.proto should be used. If the value is an enum, it should be stored as an int32 value using the google.protobuf.Int32Value type.", |
+ "type": "object" |
}, |
"name": { |
- "description": "The resource name of the metric descriptor. Depending on the implementation, the name typically includes: (1) the parent resource name that defines the scope of the metric type or of its data; and (2) the metric's URL-encoded type, which also appears in the type field of this descriptor. For example, following is the resource name of a custom metric within the GCP project my-project-id:\n\"projects/my-project-id/metricDescriptors/custom.googleapis.com%2Finvoice%2Fpaid%2Famount\"\n", |
+ "description": "The option's name. For protobuf built-in options (options defined in descriptor.proto), this is the short name. For example, \"map_entry\". For custom options, it should be the fully-qualified name. For example, \"google.api.http\".", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "SourceContext": { |
- "description": "SourceContext represents information about the source of a protobuf element, like the file in which it is defined.", |
- "id": "SourceContext", |
+ "Empty": { |
+ "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:\nservice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe JSON representation for Empty is empty JSON object {}.", |
+ "id": "Empty", |
+ "properties": {}, |
+ "type": "object" |
+ }, |
+ "TimeInterval": { |
+ "description": "A time interval extending just after a start time through an end time. If the start time is the same as the end time, then the interval represents a single point in time.", |
+ "id": "TimeInterval", |
"properties": { |
- "fileName": { |
- "description": "The path-qualified name of the .proto file that contained the associated protobuf element. For example: \"google/protobuf/source_context.proto\".", |
+ "endTime": { |
+ "description": "Required. The end of the time interval.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "startTime": { |
+ "description": "Optional. The beginning of the time interval. The default value for the start time is the end time. The start time must not be later than the end time.", |
+ "format": "google-datetime", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "Range": { |
- "description": "The range of the population values.", |
- "id": "Range", |
+ "Explicit": { |
+ "description": "Specifies a set of buckets with arbitrary widths.There are size(bounds) + 1 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): boundsi Lower bound (1 <= i < N); boundsi - 1The bounds field must contain at least one element. If bounds has only one element, then there are no finite buckets, and that single element is the common boundary of the overflow and underflow buckets.", |
+ "id": "Explicit", |
"properties": { |
- "min": { |
- "description": "The minimum of the population values.", |
+ "bounds": { |
+ "description": "The values must be monotonically increasing.", |
+ "items": { |
+ "format": "double", |
+ "type": "number" |
+ }, |
+ "type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "Exponential": { |
+ "description": "Specifies an exponential sequence of buckets that have a width that is proportional to the value of the lower bound. Each bucket represents a constant relative uncertainty on a specific value in the bucket.There are num_finite_buckets + 2 (= N) buckets. Bucket i has the following boundaries:Upper bound (0 <= i < N-1): scale * (growth_factor ^ i). Lower bound (1 <= i < N): scale * (growth_factor ^ (i - 1)).", |
+ "id": "Exponential", |
+ "properties": { |
+ "scale": { |
+ "description": "Must be greater than 0.", |
"format": "double", |
"type": "number" |
}, |
- "max": { |
- "description": "The maximum of the population values.", |
+ "numFiniteBuckets": { |
+ "description": "Must be greater than 0.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "growthFactor": { |
+ "description": "Must be greater than 1.", |
"format": "double", |
"type": "number" |
} |
}, |
"type": "object" |
}, |
- "ListGroupsResponse": { |
- "description": "The ListGroups response.", |
- "id": "ListGroupsResponse", |
+ "Point": { |
+ "description": "A single data point in a time series.", |
+ "id": "Point", |
"properties": { |
- "nextPageToken": { |
- "description": "If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.", |
- "type": "string" |
+ "value": { |
+ "$ref": "TypedValue", |
+ "description": "The value of the data point." |
}, |
- "group": { |
- "description": "The groups that match the specified filters.", |
- "items": { |
- "$ref": "Group" |
- }, |
- "type": "array" |
+ "interval": { |
+ "$ref": "TimeInterval", |
+ "description": "The time interval to which the data point applies. For GAUGE metrics, only the end time of the interval is used. For DELTA metrics, the start and end time should specify a non-zero interval, with subsequent points specifying contiguous and non-overlapping intervals. For CUMULATIVE metrics, the start and end time should specify a non-zero interval, with subsequent points specifying the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points." |
} |
}, |
"type": "object" |
}, |
- "CreateCollectdTimeSeriesRequest": { |
- "description": "The CreateCollectdTimeSeries request.", |
- "id": "CreateCollectdTimeSeriesRequest", |
+ "Metric": { |
+ "description": "A specific metric, identified by specifying values for all of the labels of a MetricDescriptor.", |
+ "id": "Metric", |
"properties": { |
- "resource": { |
- "$ref": "MonitoredResource", |
- "description": "The monitored resource associated with the time series." |
+ "type": { |
+ "description": "An existing metric type, see google.api.MetricDescriptor. For example, custom.googleapis.com/invoice/paid/amount.", |
+ "type": "string" |
}, |
- "collectdPayloads": { |
- "description": "The collectd payloads representing the time series data. You must not include more than a single point for each time series, so no two payloads can have the same values for all of the fields plugin, plugin_instance, type, and type_instance.", |
- "items": { |
- "$ref": "CollectdPayload" |
+ "labels": { |
+ "additionalProperties": { |
+ "type": "string" |
}, |
- "type": "array" |
- }, |
- "collectdVersion": { |
- "description": "The version of collectd that collected the data. Example: \"5.3.0-192.el6\".", |
- "type": "string" |
+ "description": "The set of label values that uniquely identify this metric. All labels listed in the MetricDescriptor must be assigned values.", |
+ "type": "object" |
} |
}, |
"type": "object" |
}, |
- "ListGroupMembersResponse": { |
- "description": "The ListGroupMembers response.", |
- "id": "ListGroupMembersResponse", |
+ "Field": { |
+ "description": "A single field of a message type.", |
+ "id": "Field", |
"properties": { |
- "members": { |
- "description": "A set of monitored resources in the group.", |
+ "jsonName": { |
+ "description": "The field JSON name.", |
+ "type": "string" |
+ }, |
+ "kind": { |
+ "description": "The field type.", |
+ "enum": [ |
+ "TYPE_UNKNOWN", |
+ "TYPE_DOUBLE", |
+ "TYPE_FLOAT", |
+ "TYPE_INT64", |
+ "TYPE_UINT64", |
+ "TYPE_INT32", |
+ "TYPE_FIXED64", |
+ "TYPE_FIXED32", |
+ "TYPE_BOOL", |
+ "TYPE_STRING", |
+ "TYPE_GROUP", |
+ "TYPE_MESSAGE", |
+ "TYPE_BYTES", |
+ "TYPE_UINT32", |
+ "TYPE_ENUM", |
+ "TYPE_SFIXED32", |
+ "TYPE_SFIXED64", |
+ "TYPE_SINT32", |
+ "TYPE_SINT64" |
+ ], |
+ "enumDescriptions": [ |
+ "Field type unknown.", |
+ "Field type double.", |
+ "Field type float.", |
+ "Field type int64.", |
+ "Field type uint64.", |
+ "Field type int32.", |
+ "Field type fixed64.", |
+ "Field type fixed32.", |
+ "Field type bool.", |
+ "Field type string.", |
+ "Field type group. Proto2 syntax only, and deprecated.", |
+ "Field type message.", |
+ "Field type bytes.", |
+ "Field type uint32.", |
+ "Field type enum.", |
+ "Field type sfixed32.", |
+ "Field type sfixed64.", |
+ "Field type sint32.", |
+ "Field type sint64." |
+ ], |
+ "type": "string" |
+ }, |
+ "options": { |
+ "description": "The protocol buffer options.", |
"items": { |
- "$ref": "MonitoredResource" |
+ "$ref": "Option" |
}, |
"type": "array" |
}, |
- "nextPageToken": { |
- "description": "If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.", |
+ "oneofIndex": { |
+ "description": "The index of the field type in Type.oneofs, for message or enumeration types. The first type has index 1; zero means the type is not in the list.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "cardinality": { |
+ "description": "The field cardinality.", |
+ "enum": [ |
+ "CARDINALITY_UNKNOWN", |
+ "CARDINALITY_OPTIONAL", |
+ "CARDINALITY_REQUIRED", |
+ "CARDINALITY_REPEATED" |
+ ], |
+ "enumDescriptions": [ |
+ "For fields with unknown cardinality.", |
+ "For optional fields.", |
+ "For required fields. Proto2 syntax only.", |
+ "For repeated fields." |
+ ], |
+ "type": "string" |
+ }, |
+ "packed": { |
+ "description": "Whether to use alternative packed wire representation.", |
+ "type": "boolean" |
+ }, |
+ "defaultValue": { |
+ "description": "The string value of the default value of this field. Proto2 syntax only.", |
+ "type": "string" |
+ }, |
+ "name": { |
+ "description": "The field name.", |
"type": "string" |
}, |
- "totalSize": { |
- "description": "The total number of elements matching this request.", |
+ "typeUrl": { |
+ "description": "The field type URL, without the scheme, for message or enumeration types. Example: \"type.googleapis.com/google.protobuf.Timestamp\".", |
+ "type": "string" |
+ }, |
+ "number": { |
+ "description": "The field number.", |
"format": "int32", |
"type": "integer" |
} |
}, |
"type": "object" |
}, |
- "ListMonitoredResourceDescriptorsResponse": { |
- "description": "The ListMonitoredResourceDescriptors response.", |
- "id": "ListMonitoredResourceDescriptorsResponse", |
+ "ListTimeSeriesResponse": { |
+ "description": "The ListTimeSeries response.", |
+ "id": "ListTimeSeriesResponse", |
"properties": { |
- "nextPageToken": { |
- "description": "If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.", |
- "type": "string" |
- }, |
- "resourceDescriptors": { |
- "description": "The monitored resource descriptors that are available to this project and that match filter, if present.", |
+ "timeSeries": { |
+ "description": "One or more time series that match the filter included in the request.", |
"items": { |
- "$ref": "MonitoredResourceDescriptor" |
+ "$ref": "TimeSeries" |
}, |
"type": "array" |
+ }, |
+ "nextPageToken": { |
+ "description": "If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.", |
+ "type": "string" |
} |
}, |
"type": "object" |
}, |
- "TimeSeries": { |
- "description": "A collection of data points that describes the time-varying values of a metric. A time series is identified by a combination of a fully-specified monitored resource and a fully-specified metric. This type is used for both listing and creating time series.", |
- "id": "TimeSeries", |
+ "LabelDescriptor": { |
+ "description": "A description of a label.", |
+ "id": "LabelDescriptor", |
"properties": { |
- "metric": { |
- "$ref": "Metric", |
- "description": "The associated metric. A fully-specified metric used to identify the time series." |
+ "key": { |
+ "description": "The label key.", |
+ "type": "string" |
}, |
- "points": { |
- "description": "The data points of this time series. When listing time series, the order of the points is specified by the list method.When creating a time series, this field must contain exactly one point and the point's type must be the same as the value type of the associated metric. If the associated metric's descriptor must be auto-created, then the value type of the descriptor is determined by the point's type, which must be BOOL, INT64, DOUBLE, or DISTRIBUTION.", |
- "items": { |
- "$ref": "Point" |
- }, |
- "type": "array" |
+ "description": { |
+ "description": "A human-readable description for the label.", |
+ "type": "string" |
}, |
"valueType": { |
- "description": "The value type of the time series. When listing time series, this value type might be different from the value type of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. If present, it must be the same as the type of the data in the points field.", |
+ "description": "The type of data that can be assigned to the label.", |
"enum": [ |
- "VALUE_TYPE_UNSPECIFIED", |
- "BOOL", |
- "INT64", |
- "DOUBLE", |
"STRING", |
- "DISTRIBUTION", |
- "MONEY" |
- ], |
- "enumDescriptions": [ |
- "Do not use this default value.", |
- "The value is a boolean. This value type can be used only if the metric kind is GAUGE.", |
- "The value is a signed 64-bit integer.", |
- "The value is a double precision floating point number.", |
- "The value is a text string. This value type can be used only if the metric kind is GAUGE.", |
- "The value is a Distribution.", |
- "The value is money." |
- ], |
- "type": "string" |
- }, |
- "resource": { |
- "$ref": "MonitoredResource", |
- "description": "The associated monitored resource. Custom metrics can use only certain monitored resource types in their time series data." |
- }, |
- "metricKind": { |
- "description": "The metric kind of the time series. When listing time series, this metric kind might be different from the metric kind of the associated metric if this time series is an alignment or reduction of other time series.When creating a time series, this field is optional. If present, it must be the same as the metric kind of the associated metric. If the associated metric's descriptor must be auto-created, then this field specifies the metric kind of the new descriptor and must be either GAUGE (the default) or CUMULATIVE.", |
- "enum": [ |
- "METRIC_KIND_UNSPECIFIED", |
- "GAUGE", |
- "DELTA", |
- "CUMULATIVE" |
+ "BOOL", |
+ "INT64" |
], |
"enumDescriptions": [ |
- "Do not use this default value.", |
- "An instantaneous measurement of a value.", |
- "The change in a value during a time interval.", |
- "A value accumulated over a time interval. Cumulative measurements in a time series should have the same start time and increasing end times, until an event resets the cumulative value to zero and sets a new start time for the following points." |
+ "A variable-length string. This is the default.", |
+ "Boolean; true or false.", |
+ "A 64-bit signed integer." |
], |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "CreateTimeSeriesRequest": { |
- "description": "The CreateTimeSeries request.", |
- "id": "CreateTimeSeriesRequest", |
- "properties": { |
- "timeSeries": { |
- "description": "The new data to be added to a list of time series. Adds at most one data point to each of several time series. The new data point must be more recent than any other point in its time series. Each TimeSeries value must fully specify a unique time series by supplying all label values for the metric and the monitored resource.", |
- "items": { |
- "$ref": "TimeSeries" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "Distribution": { |
- "description": "Distribution contains summary statistics for a population of values. It optionally contains a histogram representing the distribution of those values across a set of buckets.The summary statistics are the count, mean, sum of the squared deviation from the mean, the minimum, and the maximum of the set of population of values. The histogram is based on a sequence of buckets and gives a count of values that fall into each bucket. The boundaries of the buckets are given either explicitly or by formulas for buckets of fixed or exponentially increasing widths.Although it is not forbidden, it is generally a bad idea to include non-finite values (infinities or NaNs) in the population of values, as this will render the mean and sum_of_squared_deviation fields meaningless.", |
- "id": "Distribution", |
+ "Type": { |
+ "description": "A protocol buffer message type.", |
+ "id": "Type", |
"properties": { |
- "bucketCounts": { |
- "description": "Required in the Stackdriver Monitoring API v3. The values for each bucket specified in bucket_options. The sum of the values in bucketCounts must equal the value in the count field of the Distribution object. The order of the bucket counts follows the numbering schemes described for the three bucket types. The underflow bucket has number 0; the finite buckets, if any, have numbers 1 through N-2; and the overflow bucket has number N-1. The size of bucket_counts must not be greater than N. If the size is less than N, then the remaining buckets are assigned values of zero.", |
+ "oneofs": { |
+ "description": "The list of types appearing in oneof definitions in this type.", |
"items": { |
- "format": "int64", |
"type": "string" |
}, |
"type": "array" |
}, |
- "bucketOptions": { |
- "$ref": "BucketOptions", |
- "description": "Required in the Stackdriver Monitoring API v3. Defines the histogram bucket boundaries." |
- }, |
- "sumOfSquaredDeviation": { |
- "description": "The sum of squared deviations from the mean of the values in the population. For values x_i this is:\nSum[i=1..n]((x_i - mean)^2)\nKnuth, \"The Art of Computer Programming\", Vol. 2, page 323, 3rd edition describes Welford's method for accumulating this sum in one pass.If count is zero then this field must be zero.", |
- "format": "double", |
- "type": "number" |
- }, |
- "range": { |
- "$ref": "Range", |
- "description": "If specified, contains the range of the population values. The field must not be present if the count is zero. This field is presently ignored by the Stackdriver Monitoring API v3." |
+ "sourceContext": { |
+ "$ref": "SourceContext", |
+ "description": "The source context." |
}, |
- "count": { |
- "description": "The number of values in the population. Must be non-negative. This value must equal the sum of the values in bucket_counts if a histogram is provided.", |
- "format": "int64", |
+ "syntax": { |
+ "description": "The source syntax.", |
+ "enum": [ |
+ "SYNTAX_PROTO2", |
+ "SYNTAX_PROTO3" |
+ ], |
+ "enumDescriptions": [ |
+ "Syntax proto2.", |
+ "Syntax proto3." |
+ ], |
"type": "string" |
}, |
- "mean": { |
- "description": "The arithmetic mean of the values in the population. If count is zero then this field must be zero.", |
- "format": "double", |
- "type": "number" |
- } |
- }, |
- "type": "object" |
- }, |
- "MonitoredResource": { |
- "description": "An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n", |
- "id": "MonitoredResource", |
- "properties": { |
- "labels": { |
- "additionalProperties": { |
- "type": "string" |
+ "options": { |
+ "description": "The protocol buffer options.", |
+ "items": { |
+ "$ref": "Option" |
}, |
- "description": "Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels \"project_id\", \"instance_id\", and \"zone\".", |
- "type": "object" |
+ "type": "array" |
}, |
- "type": { |
- "description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListMetricDescriptorsResponse": { |
- "description": "The ListMetricDescriptors response.", |
- "id": "ListMetricDescriptorsResponse", |
- "properties": { |
- "metricDescriptors": { |
- "description": "The metric descriptors that are available to the project and that match the value of filter, if present.", |
+ "fields": { |
+ "description": "The list of fields.", |
"items": { |
- "$ref": "MetricDescriptor" |
+ "$ref": "Field" |
}, |
"type": "array" |
}, |
- "nextPageToken": { |
- "description": "If there are more results than have been returned, then this field is set to a non-empty value. To see the additional results, use that value as pageToken in the next call to this method.", |
+ "name": { |
+ "description": "The fully qualified message name.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "MonitoredResourceDescriptor": { |
- "description": "An object that describes the schema of a 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.", |
- "id": "MonitoredResourceDescriptor", |
+ "Group": { |
+ "description": "The description of a dynamic collection of monitored resources. Each group has a filter that is matched against monitored resources and their associated metadata. If a group's filter matches an available monitored resource, then that resource is a member of that group. Groups can contain any number of monitored resources, and each monitored resource can be a member of any number of groups.Groups can be nested in parent-child hierarchies. The parentName field identifies an optional parent for each group. If a group has a parent, then the only monitored resources available to be matched by the group's filter are the resources contained in the parent group. In other words, a group contains the monitored resources that match its filter and the filters of all the group's ancestors. A group without a parent can contain any monitored resource.For example, consider an infrastructure running a set of instances with two user-defined tags: \"environment\" and \"role\". A parent group has a filter, environment=\"production\". A child of that parent group has a filter, role=\"transcoder\". The parent group contains all instances in the production environment, regardless of their roles. The child group contains instances that have the transcoder role and are in the production environment.The monitored resources contained in a group can change at any moment, depending on what resources exist and what filters are associated with the group and its ancestors.", |
+ "id": "Group", |
"properties": { |
- "name": { |
- "description": "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}\".", |
+ "filter": { |
+ "description": "The filter used to determine which monitored resources belong to this group.", |
"type": "string" |
}, |
- "displayName": { |
- "description": "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\".", |
+ "name": { |
+ "description": "Output only. The name of this group. The format is \"projects/{project_id_or_number}/groups/{group_id}\". When creating a group, this field is ignored and a new name is created consisting of the project specified in the call to CreateGroup and a unique {group_id} that is generated automatically.", |
"type": "string" |
}, |
- "description": { |
- "description": "Optional. A detailed description of the monitored resource type that might be used in documentation.", |
+ "parentName": { |
+ "description": "The name of the group's parent, if it has one. The format is \"projects/{project_id_or_number}/groups/{group_id}\". For groups with no parent, parentName is the empty string, \"\".", |
"type": "string" |
}, |
- "type": { |
- "description": "Required. The monitored resource type. For example, the type \"cloudsql_database\" represents databases in Google Cloud SQL. The maximum length of this value is 256 characters.", |
+ "displayName": { |
+ "description": "A user-assigned name for this group, used only for display purposes.", |
"type": "string" |
}, |
- "labels": { |
- "description": "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\".", |
- "items": { |
- "$ref": "LabelDescriptor" |
- }, |
- "type": "array" |
+ "isCluster": { |
+ "description": "If true, the members of this group are considered to be a cluster. The system can perform additional analysis on groups that are clusters.", |
+ "type": "boolean" |
} |
}, |
"type": "object" |
}, |
- "TypedValue": { |
- "description": "A single strongly-typed value.", |
- "id": "TypedValue", |
+ "BucketOptions": { |
+ "description": "BucketOptions describes the bucket boundaries used to create a histogram for the distribution. The buckets can be in a linear sequence, an exponential sequence, or each bucket can be specified explicitly. BucketOptions does not include the number of values in each bucket.A bucket has an inclusive lower bound and exclusive upper bound for the values that are counted for that bucket. The upper bound of a bucket must be strictly greater than the lower bound. The sequence of N buckets for a distribution consists of an underflow bucket (number 0), zero or more finite buckets (number 1 through N - 2) and an overflow bucket (number N - 1). The buckets are contiguous: the lower bound of bucket i (i > 0) is the same as the upper bound of bucket i - 1. The buckets span the whole range of finite values: lower bound of the underflow bucket is -infinity and the upper bound of the overflow bucket is +infinity. The finite buckets are so-called because both bounds are finite.", |
+ "id": "BucketOptions", |
"properties": { |
- "boolValue": { |
- "description": "A Boolean value: true or false.", |
- "type": "boolean" |
- }, |
- "stringValue": { |
- "description": "A variable-length string value.", |
- "type": "string" |
- }, |
- "doubleValue": { |
- "description": "A 64-bit double-precision floating-point number. Its magnitude is approximately ±10<sup>±300</sup> and it has 16 significant digits of precision.", |
- "format": "double", |
- "type": "number" |
+ "exponentialBuckets": { |
+ "$ref": "Exponential", |
+ "description": "The exponential buckets." |
}, |
- "int64Value": { |
- "description": "A 64-bit integer. Its range is approximately ±9.2x10<sup>18</sup>.", |
- "format": "int64", |
- "type": "string" |
+ "linearBuckets": { |
+ "$ref": "Linear", |
+ "description": "The linear bucket." |
}, |
- "distributionValue": { |
- "$ref": "Distribution", |
- "description": "A distribution value." |
+ "explicitBuckets": { |
+ "$ref": "Explicit", |
+ "description": "The explicit buckets." |
} |
}, |
"type": "object" |