Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(115)

Unified Diff: discovery/googleapis/monitoring__v3.json

Issue 2987103002: Api-Roll 52: 2017-07-31 (Closed)
Patch Set: Created 3 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View side-by-side diff with in-line comments
Download patch
« no previous file with comments | « discovery/googleapis/ml__v1.json ('k') | discovery/googleapis/partners__v2.json » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: discovery/googleapis/monitoring__v3.json
diff --git a/discovery/googleapis/monitoring__v3.json b/discovery/googleapis/monitoring__v3.json
index 28eb5140b961a334472bc0208c6d614f25338ab2..a1e9784f705ca3361747b171bbd1eaab6d9bcd78 100644
--- a/discovery/googleapis/monitoring__v3.json
+++ b/discovery/googleapis/monitoring__v3.json
@@ -34,47 +34,8 @@
"ownerDomain": "google.com",
"ownerName": "Google",
"parameters": {
- "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"
- },
- "$.xgafv": {
- "description": "V1 error format.",
- "enum": [
- "1",
- "2"
- ],
- "enumDescriptions": [
- "v1 error format",
- "v2 error format"
- ],
- "location": "query",
- "type": "string"
- },
- "callback": {
- "description": "JSONP",
- "location": "query",
- "type": "string"
- },
- "alt": {
- "default": "json",
- "description": "Data format for response.",
- "enum": [
- "json",
- "media",
- "proto"
- ],
- "enumDescriptions": [
- "Responses with Content-Type of application/json",
- "Media download with context-dependent Content-Type",
- "Responses with Content-Type of application/x-protobuf"
- ],
+ "access_token": {
+ "description": "OAuth access token.",
"location": "query",
"type": "string"
},
@@ -83,11 +44,6 @@
"location": "query",
"type": "string"
},
- "access_token": {
- "description": "OAuth access token.",
- "location": "query",
- "type": "string"
- },
"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",
@@ -119,80 +75,260 @@
"description": "Returns response with indentations and line breaks.",
"location": "query",
"type": "boolean"
+ },
+ "uploadType": {
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").",
+ "location": "query",
+ "type": "string"
+ },
+ "fields": {
+ "description": "Selector specifying which fields to include in a partial response.",
+ "location": "query",
+ "type": "string"
+ },
+ "callback": {
+ "description": "JSONP",
+ "location": "query",
+ "type": "string"
+ },
+ "$.xgafv": {
+ "description": "V1 error format.",
+ "enum": [
+ "1",
+ "2"
+ ],
+ "enumDescriptions": [
+ "v1 error format",
+ "v2 error format"
+ ],
+ "location": "query",
+ "type": "string"
+ },
+ "alt": {
+ "default": "json",
+ "description": "Data format for response.",
+ "enum": [
+ "json",
+ "media",
+ "proto"
+ ],
+ "enumDescriptions": [
+ "Responses with Content-Type of application/json",
+ "Media download with context-dependent Content-Type",
+ "Responses with Content-Type of application/x-protobuf"
+ ],
+ "location": "query",
+ "type": "string"
}
},
"protocol": "rest",
"resources": {
"projects": {
"resources": {
- "groups": {
+ "metricDescriptors": {
"methods": {
- "update": {
- "description": "Updates an existing group. You can change any group attributes except name.",
- "httpMethod": "PUT",
- "id": "monitoring.projects.groups.update",
+ "create": {
+ "description": "Creates a new metric descriptor. User-created metric descriptors define custom metrics.",
+ "httpMethod": "POST",
+ "id": "monitoring.projects.metricDescriptors.create",
"parameterOrder": [
"name"
],
"parameters": {
- "validateOnly": {
- "description": "If true, validate this request but do not update the existing group.",
- "location": "query",
- "type": "boolean"
- },
"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.",
+ "description": "The project on which to execute the request. The format is \"projects/{project_id_or_number}\".",
"location": "path",
- "pattern": "^projects/[^/]+/groups/[^/]+$",
+ "pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
}
},
- "path": "v3/{+name}",
+ "path": "v3/{+name}/metricDescriptors",
"request": {
- "$ref": "Group"
+ "$ref": "MetricDescriptor"
},
"response": {
- "$ref": "Group"
+ "$ref": "MetricDescriptor"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/monitoring",
+ "https://www.googleapis.com/auth/monitoring.write"
+ ]
+ },
+ "delete": {
+ "description": "Deletes a metric descriptor. Only user-created custom metrics can be deleted.",
+ "httpMethod": "DELETE",
+ "id": "monitoring.projects.metricDescriptors.delete",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The metric descriptor on which to execute the request. The format is \"projects/{project_id_or_number}/metricDescriptors/{metric_id}\". An example of {metric_id} is: \"custom.googleapis.com/my_test_metric\".",
+ "location": "path",
+ "pattern": "^projects/[^/]+/metricDescriptors/.+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v3/{+name}",
+ "response": {
+ "$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring"
]
},
- "create": {
- "description": "Creates a new group.",
- "httpMethod": "POST",
- "id": "monitoring.projects.groups.create",
+ "get": {
+ "description": "Gets a single metric descriptor. This method does not require a Stackdriver account.",
+ "httpMethod": "GET",
+ "id": "monitoring.projects.metricDescriptors.get",
"parameterOrder": [
"name"
],
"parameters": {
- "validateOnly": {
- "description": "If true, validate this request but do not create the group.",
+ "name": {
+ "description": "The metric descriptor on which to execute the request. The format is \"projects/{project_id_or_number}/metricDescriptors/{metric_id}\". An example value of {metric_id} is \"compute.googleapis.com/instance/disk/read_bytes_count\".",
+ "location": "path",
+ "pattern": "^projects/[^/]+/metricDescriptors/.+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v3/{+name}",
+ "response": {
+ "$ref": "MetricDescriptor"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/monitoring",
+ "https://www.googleapis.com/auth/monitoring.read",
+ "https://www.googleapis.com/auth/monitoring.write"
+ ]
+ },
+ "list": {
+ "description": "Lists metric descriptors that match a filter. This method does not require a Stackdriver account.",
+ "httpMethod": "GET",
+ "id": "monitoring.projects.metricDescriptors.list",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "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",
- "type": "boolean"
+ "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"
},
"name": {
- "description": "The project in which to create the group. The format is \"projects/{project_id_or_number}\".",
+ "description": "The project on which to execute the request. The format is \"projects/{project_id_or_number}\".",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"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}/groups",
- "request": {
- "$ref": "Group"
+ "path": "v3/{+name}/metricDescriptors",
+ "response": {
+ "$ref": "ListMetricDescriptorsResponse"
},
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/monitoring",
+ "https://www.googleapis.com/auth/monitoring.read",
+ "https://www.googleapis.com/auth/monitoring.write"
+ ]
+ }
+ }
+ },
+ "monitoredResourceDescriptors": {
+ "methods": {
+ "get": {
+ "description": "Gets a single monitored resource descriptor. This method does not require a Stackdriver account.",
+ "httpMethod": "GET",
+ "id": "monitoring.projects.monitoredResourceDescriptors.get",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "name": {
+ "description": "The monitored resource descriptor to get. The format is \"projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}\". The {resource_type} is a predefined type, such as cloudsql_database.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/monitoredResourceDescriptors/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v3/{+name}",
"response": {
- "$ref": "Group"
+ "$ref": "MonitoredResourceDescriptor"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
- "https://www.googleapis.com/auth/monitoring"
+ "https://www.googleapis.com/auth/monitoring",
+ "https://www.googleapis.com/auth/monitoring.read",
+ "https://www.googleapis.com/auth/monitoring.write"
]
},
+ "list": {
+ "description": "Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.",
+ "httpMethod": "GET",
+ "id": "monitoring.projects.monitoredResourceDescriptors.list",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "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"
+ },
+ "name": {
+ "description": "The project on which to execute the request. The format is \"projects/{project_id_or_number}\".",
+ "location": "path",
+ "pattern": "^projects/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "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",
+ "type": "string"
+ }
+ },
+ "path": "v3/{+name}/monitoredResourceDescriptors",
+ "response": {
+ "$ref": "ListMonitoredResourceDescriptorsResponse"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/monitoring",
+ "https://www.googleapis.com/auth/monitoring.read",
+ "https://www.googleapis.com/auth/monitoring.write"
+ ]
+ }
+ }
+ },
+ "groups": {
+ "methods": {
"delete": {
"description": "Deletes an existing group.",
"httpMethod": "DELETE",
@@ -252,18 +388,6 @@
"name"
],
"parameters": {
- "name": {
- "description": "The project whose groups are to be listed. The format is \"projects/{project_id_or_number}\".",
- "location": "path",
- "pattern": "^projects/[^/]+$",
- "required": true,
- "type": "string"
- },
- "childrenOfGroup": {
- "description": "A group name: \"projects/{project_id_or_number}/groups/{group_id}\". Returns groups whose parentName field contains the group name. If no groups have this parent, the results are empty.",
- "location": "query",
- "type": "string"
- },
"descendantsOfGroup": {
"description": "A group name: \"projects/{project_id_or_number}/groups/{group_id}\". Returns the descendants of the specified group. This is a superset of the results returned by the childrenOfGroup filter, and includes children-of-children, and so forth.",
"location": "query",
@@ -284,6 +408,18 @@
"description": "A group name: \"projects/{project_id_or_number}/groups/{group_id}\". Returns groups that are ancestors of the specified group. The groups are returned in order, starting with the immediate parent and ending with the most distant ancestor. If the specified group has no immediate parent, the results are empty.",
"location": "query",
"type": "string"
+ },
+ "name": {
+ "description": "The project whose groups are to be listed. The format is \"projects/{project_id_or_number}\".",
+ "location": "path",
+ "pattern": "^projects/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
+ "childrenOfGroup": {
+ "description": "A group name: \"projects/{project_id_or_number}/groups/{group_id}\". Returns groups whose parentName field contains the group name. If no groups have this parent, the results are empty.",
+ "location": "query",
+ "type": "string"
}
},
"path": "v3/{+name}/groups",
@@ -295,6 +431,72 @@
"https://www.googleapis.com/auth/monitoring",
"https://www.googleapis.com/auth/monitoring.read"
]
+ },
+ "update": {
+ "description": "Updates an existing group. You can change any group attributes except name.",
+ "httpMethod": "PUT",
+ "id": "monitoring.projects.groups.update",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "validateOnly": {
+ "description": "If true, validate this request but do not update the existing group.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "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.",
+ "location": "path",
+ "pattern": "^projects/[^/]+/groups/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v3/{+name}",
+ "request": {
+ "$ref": "Group"
+ },
+ "response": {
+ "$ref": "Group"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/monitoring"
+ ]
+ },
+ "create": {
+ "description": "Creates a new group.",
+ "httpMethod": "POST",
+ "id": "monitoring.projects.groups.create",
+ "parameterOrder": [
+ "name"
+ ],
+ "parameters": {
+ "validateOnly": {
+ "description": "If true, validate this request but do not create the group.",
+ "location": "query",
+ "type": "boolean"
+ },
+ "name": {
+ "description": "The project in which to create the group. The format is \"projects/{project_id_or_number}\".",
+ "location": "path",
+ "pattern": "^projects/[^/]+$",
+ "required": true,
+ "type": "string"
+ }
+ },
+ "path": "v3/{+name}/groups",
+ "request": {
+ "$ref": "Group"
+ },
+ "response": {
+ "$ref": "Group"
+ },
+ "scopes": [
+ "https://www.googleapis.com/auth/cloud-platform",
+ "https://www.googleapis.com/auth/monitoring"
+ ]
}
},
"resources": {
@@ -308,6 +510,13 @@
"name"
],
"parameters": {
+ "name": {
+ "description": "The group whose members are listed. The format is \"projects/{project_id_or_number}/groups/{group_id}\".",
+ "location": "path",
+ "pattern": "^projects/[^/]+/groups/[^/]+$",
+ "required": true,
+ "type": "string"
+ },
"interval.endTime": {
"description": "Required. The end of the time interval.",
"format": "google-datetime",
@@ -318,17 +527,11 @@
"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"
- },
- "pageSize": {
- "description": "A positive number that is the maximum number of results to return.",
- "format": "int32",
+ },
+ "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": "integer"
+ "type": "string"
},
"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.",
@@ -336,12 +539,11 @@
"location": "query",
"type": "string"
},
- "name": {
- "description": "The group whose members are listed. The format is \"projects/{project_id_or_number}/groups/{group_id}\".",
- "location": "path",
- "pattern": "^projects/[^/]+/groups/[^/]+$",
- "required": true,
- "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}/members",
@@ -401,37 +603,6 @@
"name"
],
"parameters": {
- "name": {
- "description": "The project on which to execute the request. The format is \"projects/{project_id_or_number}\".",
- "location": "path",
- "pattern": "^projects/[^/]+$",
- "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",
- "location": "query",
- "type": "string"
- },
- "aggregation.alignmentPeriod": {
- "description": "The alignment period for per-time series alignment. If present, alignmentPeriod must be at least 60 seconds. After per-time series alignment, each time series will contain data points only on the period boundaries. If perSeriesAligner is not specified or equals ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then this field must be defined; otherwise an error is returned.",
- "format": "google-duration",
- "location": "query",
- "type": "string"
- },
- "pageSize": {
- "description": "A positive number that is the maximum number of results to return. When view field sets to FULL, it limits the number of Points server will return; if view field is HEADERS, it limits the number of TimeSeries server will return.",
- "format": "int32",
- "location": "query",
- "type": "integer"
- },
"orderBy": {
"description": "Specifies the order in which the points of the time series should be returned. By default, results are not ordered. Currently, this field must be left blank.",
"location": "query",
@@ -452,7 +623,8 @@
"REDUCE_PERCENTILE_99",
"REDUCE_PERCENTILE_95",
"REDUCE_PERCENTILE_50",
- "REDUCE_PERCENTILE_05"
+ "REDUCE_PERCENTILE_05",
+ "REDUCE_FRACTION_LESS_THAN"
],
"location": "query",
"type": "string"
@@ -486,7 +658,8 @@
"ALIGN_PERCENTILE_99",
"ALIGN_PERCENTILE_95",
"ALIGN_PERCENTILE_50",
- "ALIGN_PERCENTILE_05"
+ "ALIGN_PERCENTILE_05",
+ "ALIGN_MAKE_DISTRIBUTION"
],
"location": "query",
"type": "string"
@@ -505,246 +678,87 @@
],
"location": "query",
"type": "string"
- }
- },
- "path": "v3/{+name}/timeSeries",
- "response": {
- "$ref": "ListTimeSeriesResponse"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform",
- "https://www.googleapis.com/auth/monitoring",
- "https://www.googleapis.com/auth/monitoring.read"
- ]
- },
- "create": {
- "description": "Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.",
- "httpMethod": "POST",
- "id": "monitoring.projects.timeSeries.create",
- "parameterOrder": [
- "name"
- ],
- "parameters": {
+ },
+ "aggregation.reduceFractionLessThanParams.threshold": {
+ "description": "The threshold used by the REDUCE_FRACTION_LESS_THAN cross-series reducer.",
+ "format": "double",
+ "location": "query",
+ "type": "number"
+ },
"name": {
"description": "The project on which to execute the request. The format is \"projects/{project_id_or_number}\".",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"type": "string"
- }
- },
- "path": "v3/{+name}/timeSeries",
- "request": {
- "$ref": "CreateTimeSeriesRequest"
- },
- "response": {
- "$ref": "Empty"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform",
- "https://www.googleapis.com/auth/monitoring",
- "https://www.googleapis.com/auth/monitoring.write"
- ]
- }
- }
- },
- "metricDescriptors": {
- "methods": {
- "delete": {
- "description": "Deletes a metric descriptor. Only user-created custom metrics can be deleted.",
- "httpMethod": "DELETE",
- "id": "monitoring.projects.metricDescriptors.delete",
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "name": {
- "description": "The metric descriptor on which to execute the request. The format is \"projects/{project_id_or_number}/metricDescriptors/{metric_id}\". An example of {metric_id} is: \"custom.googleapis.com/my_test_metric\".",
- "location": "path",
- "pattern": "^projects/[^/]+/metricDescriptors/.+$",
- "required": true,
- "type": "string"
- }
- },
- "path": "v3/{+name}",
- "response": {
- "$ref": "Empty"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform",
- "https://www.googleapis.com/auth/monitoring"
- ]
- },
- "get": {
- "description": "Gets a single metric descriptor. This method does not require a Stackdriver account.",
- "httpMethod": "GET",
- "id": "monitoring.projects.metricDescriptors.get",
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "name": {
- "description": "The metric descriptor on which to execute the request. The format is \"projects/{project_id_or_number}/metricDescriptors/{metric_id}\". An example value of {metric_id} is \"compute.googleapis.com/instance/disk/read_bytes_count\".",
- "location": "path",
- "pattern": "^projects/[^/]+/metricDescriptors/.+$",
- "required": true,
+ },
+ "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"
- }
- },
- "path": "v3/{+name}",
- "response": {
- "$ref": "MetricDescriptor"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform",
- "https://www.googleapis.com/auth/monitoring",
- "https://www.googleapis.com/auth/monitoring.read",
- "https://www.googleapis.com/auth/monitoring.write"
- ]
- },
- "list": {
- "description": "Lists metric descriptors that match a filter. This method does not require a Stackdriver account.",
- "httpMethod": "GET",
- "id": "monitoring.projects.metricDescriptors.list",
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "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.",
+ },
+ "interval.endTime": {
+ "description": "Required. The end of the time interval.",
+ "format": "google-datetime",
"location": "query",
"type": "string"
},
- "name": {
- "description": "The project on which to execute the request. The format is \"projects/{project_id_or_number}\".",
- "location": "path",
- "pattern": "^projects/[^/]+$",
- "required": true,
+ "aggregation.alignmentPeriod": {
+ "description": "The alignment period for per-time series alignment. If present, alignmentPeriod must be at least 60 seconds. After per-time series alignment, each time series will contain data points only on the period boundaries. If perSeriesAligner is not specified or equals ALIGN_NONE, then this field is ignored. If perSeriesAligner is specified and does not equal ALIGN_NONE, then this field must be defined; otherwise an error is returned.",
+ "format": "google-duration",
+ "location": "query",
"type": "string"
},
"pageSize": {
- "description": "A positive number that is the maximum number of results to return.",
+ "description": "A positive number that is the maximum number of results to return. When view field sets to FULL, it limits the number of Points server will return; if view field is HEADERS, it limits the number of TimeSeries server will 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",
+ "outputPeriod": {
+ "description": "If outputPeriod is specified, the data in the response will have the given period. Must be equal to or longer than alignmentPeriod. Must not be used when view is HEADERS. Only used when interval describes an interval longer than a single point.",
+ "format": "google-duration",
"location": "query",
"type": "string"
}
},
- "path": "v3/{+name}/metricDescriptors",
+ "path": "v3/{+name}/timeSeries",
"response": {
- "$ref": "ListMetricDescriptorsResponse"
+ "$ref": "ListTimeSeriesResponse"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
- "https://www.googleapis.com/auth/monitoring.read",
- "https://www.googleapis.com/auth/monitoring.write"
+ "https://www.googleapis.com/auth/monitoring.read"
]
},
"create": {
- "description": "Creates a new metric descriptor. User-created metric descriptors define custom metrics.",
+ "description": "Creates or adds data to one or more time series. The response is empty if all time series in the request were written. If any time series could not be written, a corresponding failure message is included in the error response.",
"httpMethod": "POST",
- "id": "monitoring.projects.metricDescriptors.create",
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "name": {
- "description": "The project on which to execute the request. The format is \"projects/{project_id_or_number}\".",
- "location": "path",
- "pattern": "^projects/[^/]+$",
- "required": true,
- "type": "string"
- }
- },
- "path": "v3/{+name}/metricDescriptors",
- "request": {
- "$ref": "MetricDescriptor"
- },
- "response": {
- "$ref": "MetricDescriptor"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform",
- "https://www.googleapis.com/auth/monitoring",
- "https://www.googleapis.com/auth/monitoring.write"
- ]
- }
- }
- },
- "monitoredResourceDescriptors": {
- "methods": {
- "get": {
- "description": "Gets a single monitored resource descriptor. This method does not require a Stackdriver account.",
- "httpMethod": "GET",
- "id": "monitoring.projects.monitoredResourceDescriptors.get",
- "parameterOrder": [
- "name"
- ],
- "parameters": {
- "name": {
- "description": "The monitored resource descriptor to get. The format is \"projects/{project_id_or_number}/monitoredResourceDescriptors/{resource_type}\". The {resource_type} is a predefined type, such as cloudsql_database.",
- "location": "path",
- "pattern": "^projects/[^/]+/monitoredResourceDescriptors/[^/]+$",
- "required": true,
- "type": "string"
- }
- },
- "path": "v3/{+name}",
- "response": {
- "$ref": "MonitoredResourceDescriptor"
- },
- "scopes": [
- "https://www.googleapis.com/auth/cloud-platform",
- "https://www.googleapis.com/auth/monitoring",
- "https://www.googleapis.com/auth/monitoring.read",
- "https://www.googleapis.com/auth/monitoring.write"
- ]
- },
- "list": {
- "description": "Lists monitored resource descriptors that match a filter. This method does not require a Stackdriver account.",
- "httpMethod": "GET",
- "id": "monitoring.projects.monitoredResourceDescriptors.list",
+ "id": "monitoring.projects.timeSeries.create",
"parameterOrder": [
"name"
- ],
- "parameters": {
- "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",
- "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"
- },
+ ],
+ "parameters": {
"name": {
"description": "The project on which to execute the request. The format is \"projects/{project_id_or_number}\".",
"location": "path",
"pattern": "^projects/[^/]+$",
"required": true,
"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",
+ "path": "v3/{+name}/timeSeries",
+ "request": {
+ "$ref": "CreateTimeSeriesRequest"
+ },
"response": {
- "$ref": "ListMonitoredResourceDescriptorsResponse"
+ "$ref": "Empty"
},
"scopes": [
"https://www.googleapis.com/auth/cloud-platform",
"https://www.googleapis.com/auth/monitoring",
- "https://www.googleapis.com/auth/monitoring.read",
"https://www.googleapis.com/auth/monitoring.write"
]
}
@@ -753,9 +767,69 @@
}
}
},
- "revision": "20170701",
+ "revision": "20170724",
"rootUrl": "https://monitoring.googleapis.com/",
"schemas": {
+ "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": {
+ "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": [
+ "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"
+ ],
+ "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"
+ },
+ "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"
+ },
+ "metric": {
+ "$ref": "Metric",
+ "description": "The associated metric. A fully-specified metric used to identify the time series."
+ }
+ },
+ "type": "object"
+ },
"CreateTimeSeriesRequest": {
"description": "The CreateTimeSeries request.",
"id": "CreateTimeSeriesRequest",
@@ -774,6 +848,10 @@
"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": {
+ "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",
@@ -800,10 +878,6 @@
"type": "string"
},
"type": "array"
- },
- "bucketOptions": {
- "$ref": "BucketOptions",
- "description": "Required in the Stackdriver Monitoring API v3. Defines the histogram bucket boundaries."
}
},
"type": "object"
@@ -812,16 +886,16 @@
"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": "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": "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": {
+ "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"
@@ -878,6 +952,15 @@
"description": "A single strongly-typed value.",
"id": "TypedValue",
"properties": {
+ "int64Value": {
+ "description": "A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.",
+ "format": "int64",
+ "type": "string"
+ },
+ "distributionValue": {
+ "$ref": "Distribution",
+ "description": "A distribution value."
+ },
"stringValue": {
"description": "A variable-length string value.",
"type": "string"
@@ -890,15 +973,6 @@
"description": "A 64-bit double-precision floating-point number. Its magnitude is approximately &plusmn;10<sup>&plusmn;300</sup> and it has 16 significant digits of precision.",
"format": "double",
"type": "number"
- },
- "int64Value": {
- "description": "A 64-bit integer. Its range is approximately &plusmn;9.2x10<sup>18</sup>.",
- "format": "int64",
- "type": "string"
- },
- "distributionValue": {
- "$ref": "Distribution",
- "description": "A distribution value."
}
},
"type": "object"
@@ -954,6 +1028,11 @@
"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"
+ },
"offset": {
"description": "Lower bound of the first bucket.",
"format": "double",
@@ -963,11 +1042,6 @@
"description": "Must be greater than 0.",
"format": "int32",
"type": "integer"
- },
- "width": {
- "description": "Must be greater than 0.",
- "format": "double",
- "type": "number"
}
},
"type": "object"
@@ -997,23 +1071,6 @@
"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": {
- "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"
- },
"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",
@@ -1029,10 +1086,32 @@
},
"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": {
+ "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"
+ },
+ "endTime": {
+ "description": "Required. The end of the time interval.",
+ "format": "google-datetime",
+ "type": "string"
+ }
+ },
+ "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": {
+ "growthFactor": {
+ "description": "Must be greater than 1.",
+ "format": "double",
+ "type": "number"
+ },
"scale": {
"description": "Must be greater than 0.",
"format": "double",
@@ -1042,11 +1121,6 @@
"description": "Must be greater than 0.",
"format": "int32",
"type": "integer"
- },
- "growthFactor": {
- "description": "Must be greater than 1.",
- "format": "double",
- "type": "number"
}
},
"type": "object"
@@ -1055,31 +1129,13 @@
"description": "A single data point in a time series.",
"id": "Point",
"properties": {
- "value": {
- "$ref": "TypedValue",
- "description": "The value of the data point."
- },
"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"
- },
- "Metric": {
- "description": "A specific metric, identified by specifying values for all of the labels of a MetricDescriptor.",
- "id": "Metric",
- "properties": {
- "type": {
- "description": "An existing metric type, see google.api.MetricDescriptor. For example, custom.googleapis.com/invoice/paid/amount.",
- "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.",
- "type": "object"
+ "value": {
+ "$ref": "TypedValue",
+ "description": "The value of the data point."
}
},
"type": "object"
@@ -1088,6 +1144,10 @@
"description": "A single field of a message type.",
"id": "Field",
"properties": {
+ "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"
@@ -1182,9 +1242,41 @@
"defaultValue": {
"description": "The string value of the default value of this field. Proto2 syntax only.",
"type": "string"
+ }
+ },
+ "type": "object"
+ },
+ "Metric": {
+ "description": "A specific metric, identified by specifying values for all of the labels of a MetricDescriptor.",
+ "id": "Metric",
+ "properties": {
+ "type": {
+ "description": "An existing metric type, see google.api.MetricDescriptor. For example, custom.googleapis.com/invoice/paid/amount.",
+ "type": "string"
},
- "name": {
- "description": "The field name.",
+ "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.",
+ "type": "object"
+ }
+ },
+ "type": "object"
+ },
+ "ListTimeSeriesResponse": {
+ "description": "The ListTimeSeries response.",
+ "id": "ListTimeSeriesResponse",
+ "properties": {
+ "timeSeries": {
+ "description": "One or more time series that match the filter included in the request.",
+ "items": {
+ "$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"
}
},
@@ -1194,14 +1286,6 @@
"description": "A description of a label.",
"id": "LabelDescriptor",
"properties": {
- "key": {
- "description": "The label key.",
- "type": "string"
- },
- "description": {
- "description": "A human-readable description for the label.",
- "type": "string"
- },
"valueType": {
"description": "The type of data that can be assigned to the label.",
"enum": [
@@ -1215,24 +1299,41 @@
"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",
+ "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": {
- "timeSeries": {
- "description": "One or more time series that match the filter included in the request.",
- "items": {
- "$ref": "TimeSeries"
- },
- "type": "array"
+ "filter": {
+ "description": "The filter used to determine which monitored resources belong to this group.",
+ "type": "string"
},
- "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.",
+ "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"
+ },
+ "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"
+ },
+ "displayName": {
+ "description": "A user-assigned name for this group, used only for display purposes.",
"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"
@@ -1241,13 +1342,6 @@
"description": "A protocol buffer message type.",
"id": "Type",
"properties": {
- "options": {
- "description": "The protocol buffer options.",
- "items": {
- "$ref": "Option"
- },
- "type": "array"
- },
"fields": {
"description": "The list of fields.",
"items": {
@@ -1266,10 +1360,6 @@
},
"type": "array"
},
- "sourceContext": {
- "$ref": "SourceContext",
- "description": "The source context."
- },
"syntax": {
"description": "The source syntax.",
"enum": [
@@ -1281,33 +1371,17 @@
"Syntax proto3."
],
"type": "string"
- }
- },
- "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": {
- "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"
- },
- "filter": {
- "description": "The filter used to determine which monitored resources belong to this group.",
- "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, \"\".",
- "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.",
- "type": "string"
+ "sourceContext": {
+ "$ref": "SourceContext",
+ "description": "The source context."
},
- "displayName": {
- "description": "A user-assigned name for this group, used only for display purposes.",
- "type": "string"
+ "options": {
+ "description": "The protocol buffer options.",
+ "items": {
+ "$ref": "Option"
+ },
+ "type": "array"
}
},
"type": "object"
@@ -1316,6 +1390,10 @@
"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": {
+ "exponentialBuckets": {
+ "$ref": "Exponential",
+ "description": "The exponential buckets."
+ },
"explicitBuckets": {
"$ref": "Explicit",
"description": "The explicit buckets."
@@ -1323,10 +1401,6 @@
"linearBuckets": {
"$ref": "Linear",
"description": "The linear bucket."
- },
- "exponentialBuckets": {
- "$ref": "Exponential",
- "description": "The exponential buckets."
}
},
"type": "object"
@@ -1335,6 +1409,10 @@
"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\".",
+ "type": "string"
+ },
"value": {
"$ref": "TypedValue",
"description": "The measurement value."
@@ -1356,9 +1434,16 @@
"An amount of change since the last measurement interval. This corresponds to google.api.MetricDescriptor.MetricKind.DELTA."
],
"type": "string"
- },
- "dataSourceName": {
- "description": "The data source for the collectd value. For example there are two data sources for network measurements: \"rx\" and \"tx\".",
+ }
+ },
+ "type": "object"
+ },
+ "SourceContext": {
+ "description": "SourceContext represents information about the source of a protobuf element, like the file in which it is defined.",
+ "id": "SourceContext",
+ "properties": {
+ "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"
}
},
@@ -1368,36 +1453,6 @@
"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": {
- "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",
- "type": "string"
- },
- "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"
- },
- "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": [
@@ -1432,16 +1487,35 @@
"$ref": "LabelDescriptor"
},
"type": "array"
- }
- },
- "type": "object"
- },
- "SourceContext": {
- "description": "SourceContext represents information about the source of a protobuf element, like the file in which it is defined.",
- "id": "SourceContext",
- "properties": {
- "fileName": {
- "description": "The path-qualified name of the .proto file that contained the associated protobuf element. For example: \"google/protobuf/source_context.proto\".",
+ },
+ "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",
+ "type": "string"
+ },
+ "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"
+ },
+ "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"
}
},
@@ -1451,13 +1525,13 @@
"description": "The range of the population values.",
"id": "Range",
"properties": {
- "min": {
- "description": "The minimum of the population values.",
+ "max": {
+ "description": "The maximum of the population values.",
"format": "double",
"type": "number"
},
- "max": {
- "description": "The maximum of the population values.",
+ "min": {
+ "description": "The minimum of the population values.",
"format": "double",
"type": "number"
}
@@ -1468,16 +1542,16 @@
"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": {
"$ref": "Group"
},
"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"
@@ -1486,6 +1560,13 @@
"description": "The ListGroupMembers response.",
"id": "ListGroupMembersResponse",
"properties": {
+ "members": {
+ "description": "A set of monitored resources in the group.",
+ "items": {
+ "$ref": "MonitoredResource"
+ },
+ "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"
@@ -1494,13 +1575,6 @@
"description": "The total number of elements matching this request.",
"format": "int32",
"type": "integer"
- },
- "members": {
- "description": "A set of monitored resources in the group.",
- "items": {
- "$ref": "MonitoredResource"
- },
- "type": "array"
}
},
"type": "object"
@@ -1509,10 +1583,6 @@
"description": "The CreateCollectdTimeSeries request.",
"id": "CreateCollectdTimeSeriesRequest",
"properties": {
- "collectdVersion": {
- "description": "The version of collectd that collected the data. Example: \"5.3.0-192.el6\".",
- "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": {
@@ -1523,6 +1593,10 @@
"resource": {
"$ref": "MonitoredResource",
"description": "The monitored resource associated with the time series."
+ },
+ "collectdVersion": {
+ "description": "The version of collectd that collected the data. Example: \"5.3.0-192.el6\".",
+ "type": "string"
}
},
"type": "object"
@@ -1544,66 +1618,6 @@
}
},
"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": {
- "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": [
- "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"
- ],
- "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"
- },
- "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"
- },
- "metric": {
- "$ref": "Metric",
- "description": "The associated metric. A fully-specified metric used to identify the time series."
- }
- },
- "type": "object"
}
},
"servicePath": "",
« no previous file with comments | « discovery/googleapis/ml__v1.json ('k') | discovery/googleapis/partners__v2.json » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698