| OLD | NEW |
| 1 { | 1 { |
| 2 "auth": { | 2 "auth": { |
| 3 "oauth2": { | 3 "oauth2": { |
| 4 "scopes": { | 4 "scopes": { |
| 5 "https://www.googleapis.com/auth/cloud-platform": { | |
| 6 "description": "View and manage your data across Google Clou
d Platform services" | |
| 7 }, | |
| 8 "https://www.googleapis.com/auth/cloud-platform.read-only": { | 5 "https://www.googleapis.com/auth/cloud-platform.read-only": { |
| 9 "description": "View your data across Google Cloud Platform
services" | 6 "description": "View your data across Google Cloud Platform
services" |
| 10 }, | 7 }, |
| 8 "https://www.googleapis.com/auth/logging.admin": { |
| 9 "description": "Administrate log data for your projects" |
| 10 }, |
| 11 "https://www.googleapis.com/auth/logging.read": { | 11 "https://www.googleapis.com/auth/logging.read": { |
| 12 "description": "View log data for your projects" | 12 "description": "View log data for your projects" |
| 13 }, | 13 }, |
| 14 "https://www.googleapis.com/auth/logging.write": { | 14 "https://www.googleapis.com/auth/logging.write": { |
| 15 "description": "Submit log data for your projects" | 15 "description": "Submit log data for your projects" |
| 16 }, | 16 }, |
| 17 "https://www.googleapis.com/auth/logging.admin": { | 17 "https://www.googleapis.com/auth/cloud-platform": { |
| 18 "description": "Administrate log data for your projects" | 18 "description": "View and manage your data across Google Clou
d Platform services" |
| 19 } | 19 } |
| 20 } | 20 } |
| 21 } | 21 } |
| 22 }, | 22 }, |
| 23 "basePath": "", | 23 "basePath": "", |
| 24 "baseUrl": "https://logging.googleapis.com/", | 24 "baseUrl": "https://logging.googleapis.com/", |
| 25 "batchPath": "batch", | 25 "batchPath": "batch", |
| 26 "canonicalName": "Logging", | 26 "canonicalName": "Logging", |
| 27 "description": "Writes log entries and manages your Stackdriver Logging conf
iguration.", | 27 "description": "Writes log entries and manages your Stackdriver Logging conf
iguration.", |
| 28 "discoveryVersion": "v1", | 28 "discoveryVersion": "v1", |
| 29 "documentationLink": "https://cloud.google.com/logging/docs/", | 29 "documentationLink": "https://cloud.google.com/logging/docs/", |
| 30 "icons": { | 30 "icons": { |
| 31 "x16": "http://www.google.com/images/icons/product/search-16.gif", | 31 "x16": "http://www.google.com/images/icons/product/search-16.gif", |
| 32 "x32": "http://www.google.com/images/icons/product/search-32.gif" | 32 "x32": "http://www.google.com/images/icons/product/search-32.gif" |
| 33 }, | 33 }, |
| 34 "id": "logging:v2beta1", | 34 "id": "logging:v2beta1", |
| 35 "kind": "discovery#restDescription", | 35 "kind": "discovery#restDescription", |
| 36 "name": "logging", | 36 "name": "logging", |
| 37 "ownerDomain": "google.com", | 37 "ownerDomain": "google.com", |
| 38 "ownerName": "Google", | 38 "ownerName": "Google", |
| 39 "parameters": { | 39 "parameters": { |
| 40 "access_token": { | 40 "upload_protocol": { |
| 41 "description": "OAuth access token.", | 41 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", |
| 42 "location": "query", | 42 "location": "query", |
| 43 "type": "string" | 43 "type": "string" |
| 44 }, | 44 }, |
| 45 "prettyPrint": { | 45 "prettyPrint": { |
| 46 "default": "true", | 46 "default": "true", |
| 47 "description": "Returns response with indentations and line breaks."
, | 47 "description": "Returns response with indentations and line breaks."
, |
| 48 "location": "query", | 48 "location": "query", |
| 49 "type": "boolean" | 49 "type": "boolean" |
| 50 }, | 50 }, |
| 51 "key": { | 51 "uploadType": { |
| 52 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", | 52 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", |
| 53 "location": "query", | 53 "location": "query", |
| 54 "type": "string" | 54 "type": "string" |
| 55 }, | 55 }, |
| 56 "quotaUser": { | |
| 57 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", | |
| 58 "location": "query", | |
| 59 "type": "string" | |
| 60 }, | |
| 61 "pp": { | |
| 62 "default": "true", | |
| 63 "description": "Pretty-print response.", | |
| 64 "location": "query", | |
| 65 "type": "boolean" | |
| 66 }, | |
| 67 "fields": { | 56 "fields": { |
| 68 "description": "Selector specifying which fields to include in a par
tial response.", | 57 "description": "Selector specifying which fields to include in a par
tial response.", |
| 69 "location": "query", | 58 "location": "query", |
| 70 "type": "string" | 59 "type": "string" |
| 71 }, | 60 }, |
| 61 "callback": { |
| 62 "description": "JSONP", |
| 63 "location": "query", |
| 64 "type": "string" |
| 65 }, |
| 66 "$.xgafv": { |
| 67 "description": "V1 error format.", |
| 68 "enum": [ |
| 69 "1", |
| 70 "2" |
| 71 ], |
| 72 "enumDescriptions": [ |
| 73 "v1 error format", |
| 74 "v2 error format" |
| 75 ], |
| 76 "location": "query", |
| 77 "type": "string" |
| 78 }, |
| 72 "alt": { | 79 "alt": { |
| 73 "default": "json", | 80 "default": "json", |
| 74 "description": "Data format for response.", | 81 "description": "Data format for response.", |
| 75 "enum": [ | 82 "enum": [ |
| 76 "json", | 83 "json", |
| 77 "media", | 84 "media", |
| 78 "proto" | 85 "proto" |
| 79 ], | 86 ], |
| 80 "enumDescriptions": [ | 87 "enumDescriptions": [ |
| 81 "Responses with Content-Type of application/json", | 88 "Responses with Content-Type of application/json", |
| 82 "Media download with context-dependent Content-Type", | 89 "Media download with context-dependent Content-Type", |
| 83 "Responses with Content-Type of application/x-protobuf" | 90 "Responses with Content-Type of application/x-protobuf" |
| 84 ], | 91 ], |
| 85 "location": "query", | 92 "location": "query", |
| 86 "type": "string" | 93 "type": "string" |
| 87 }, | 94 }, |
| 88 "$.xgafv": { | 95 "access_token": { |
| 89 "description": "V1 error format.", | 96 "description": "OAuth access token.", |
| 90 "enum": [ | |
| 91 "1", | |
| 92 "2" | |
| 93 ], | |
| 94 "enumDescriptions": [ | |
| 95 "v1 error format", | |
| 96 "v2 error format" | |
| 97 ], | |
| 98 "location": "query", | 97 "location": "query", |
| 99 "type": "string" | 98 "type": "string" |
| 100 }, | 99 }, |
| 101 "callback": { | 100 "key": { |
| 102 "description": "JSONP", | 101 "description": "API key. Your API key identifies your project and pr
ovides you with API access, quota, and reports. Required unless you provide an O
Auth 2.0 token.", |
| 102 "location": "query", |
| 103 "type": "string" |
| 104 }, |
| 105 "quotaUser": { |
| 106 "description": "Available to use for quota purposes for server-side
applications. Can be any arbitrary string assigned to a user, but should not exc
eed 40 characters.", |
| 107 "location": "query", |
| 108 "type": "string" |
| 109 }, |
| 110 "pp": { |
| 111 "default": "true", |
| 112 "description": "Pretty-print response.", |
| 113 "location": "query", |
| 114 "type": "boolean" |
| 115 }, |
| 116 "bearer_token": { |
| 117 "description": "OAuth bearer token.", |
| 103 "location": "query", | 118 "location": "query", |
| 104 "type": "string" | 119 "type": "string" |
| 105 }, | 120 }, |
| 106 "oauth_token": { | 121 "oauth_token": { |
| 107 "description": "OAuth 2.0 token for the current user.", | 122 "description": "OAuth 2.0 token for the current user.", |
| 108 "location": "query", | 123 "location": "query", |
| 109 "type": "string" | 124 "type": "string" |
| 110 }, | |
| 111 "uploadType": { | |
| 112 "description": "Legacy upload protocol for media (e.g. \"media\", \"
multipart\").", | |
| 113 "location": "query", | |
| 114 "type": "string" | |
| 115 }, | |
| 116 "bearer_token": { | |
| 117 "description": "OAuth bearer token.", | |
| 118 "location": "query", | |
| 119 "type": "string" | |
| 120 }, | |
| 121 "upload_protocol": { | |
| 122 "description": "Upload protocol for media (e.g. \"raw\", \"multipart
\").", | |
| 123 "location": "query", | |
| 124 "type": "string" | |
| 125 } | 125 } |
| 126 }, | 126 }, |
| 127 "protocol": "rest", | 127 "protocol": "rest", |
| 128 "resources": { | 128 "resources": { |
| 129 "projects": { | 129 "monitoredResourceDescriptors": { |
| 130 "methods": { |
| 131 "list": { |
| 132 "description": "Lists the descriptors for monitored resource
types used by Stackdriver Logging.", |
| 133 "httpMethod": "GET", |
| 134 "id": "logging.monitoredResourceDescriptors.list", |
| 135 "parameterOrder": [], |
| 136 "parameters": { |
| 137 "pageToken": { |
| 138 "description": "Optional. If present, then retrieve
the next batch of results from the preceding call to this method. pageToken must
be the value of nextPageToken from the previous response. The values of other m
ethod parameters should be identical to those in the previous call.", |
| 139 "location": "query", |
| 140 "type": "string" |
| 141 }, |
| 142 "pageSize": { |
| 143 "description": "Optional. The maximum number of resu
lts to return from this request. Non-positive values are ignored. The presence o
f nextPageToken in the response indicates that more results might be available."
, |
| 144 "format": "int32", |
| 145 "location": "query", |
| 146 "type": "integer" |
| 147 } |
| 148 }, |
| 149 "path": "v2beta1/monitoredResourceDescriptors", |
| 150 "response": { |
| 151 "$ref": "ListMonitoredResourceDescriptorsResponse" |
| 152 }, |
| 153 "scopes": [ |
| 154 "https://www.googleapis.com/auth/cloud-platform", |
| 155 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", |
| 156 "https://www.googleapis.com/auth/logging.admin", |
| 157 "https://www.googleapis.com/auth/logging.read" |
| 158 ] |
| 159 } |
| 160 } |
| 161 }, |
| 162 "organizations": { |
| 130 "resources": { | 163 "resources": { |
| 131 "metrics": { | 164 "logs": { |
| 132 "methods": { | 165 "methods": { |
| 133 "update": { | 166 "delete": { |
| 134 "description": "Creates or updates a logs-based metr
ic.", | 167 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries.", |
| 135 "httpMethod": "PUT", | 168 "httpMethod": "DELETE", |
| 136 "id": "logging.projects.metrics.update", | 169 "id": "logging.organizations.logs.delete", |
| 137 "parameterOrder": [ | 170 "parameterOrder": [ |
| 138 "metricName" | 171 "logName" |
| 139 ], | 172 ], |
| 140 "parameters": { | 173 "parameters": { |
| 141 "metricName": { | 174 "logName": { |
| 142 "description": "The resource name of the met
ric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe updated metri
c must be provided in the request and it's name field must be the same as [METRI
C_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created
.", | 175 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"
projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresou
rcemanager.googleapis.com%2Factivity\". For more information about log names, se
e LogEntry.", |
| 143 "location": "path", | 176 "location": "path", |
| 144 "pattern": "^projects/[^/]+/metrics/[^/]+$", | 177 "pattern": "^organizations/[^/]+/logs/[^/]+$
", |
| 145 "required": true, | 178 "required": true, |
| 146 "type": "string" | 179 "type": "string" |
| 147 } | 180 } |
| 148 }, | 181 }, |
| 149 "path": "v2beta1/{+metricName}", | 182 "path": "v2beta1/{+logName}", |
| 150 "request": { | |
| 151 "$ref": "LogMetric" | |
| 152 }, | |
| 153 "response": { | 183 "response": { |
| 154 "$ref": "LogMetric" | 184 "$ref": "Empty" |
| 155 }, | 185 }, |
| 156 "scopes": [ | 186 "scopes": [ |
| 157 "https://www.googleapis.com/auth/cloud-platform"
, | 187 "https://www.googleapis.com/auth/cloud-platform"
, |
| 158 "https://www.googleapis.com/auth/logging.admin", | 188 "https://www.googleapis.com/auth/logging.admin" |
| 159 "https://www.googleapis.com/auth/logging.write" | |
| 160 ] | 189 ] |
| 161 }, | 190 }, |
| 162 "get": { | 191 "list": { |
| 163 "description": "Gets a logs-based metric.", | 192 "description": "Lists the logs in projects or organi
zations. Only logs that have entries are listed.", |
| 164 "httpMethod": "GET", | 193 "httpMethod": "GET", |
| 165 "id": "logging.projects.metrics.get", | 194 "id": "logging.organizations.logs.list", |
| 166 "parameterOrder": [ | 195 "parameterOrder": [ |
| 167 "metricName" | 196 "parent" |
| 168 ], | 197 ], |
| 169 "parameters": { | 198 "parameters": { |
| 170 "metricName": { | 199 "pageToken": { |
| 171 "description": "The resource name of the des
ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", | 200 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", |
| 201 "location": "query", |
| 202 "type": "string" |
| 203 }, |
| 204 "pageSize": { |
| 205 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
| 206 "format": "int32", |
| 207 "location": "query", |
| 208 "type": "integer" |
| 209 }, |
| 210 "parent": { |
| 211 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n", |
| 172 "location": "path", | 212 "location": "path", |
| 173 "pattern": "^projects/[^/]+/metrics/[^/]+$", | 213 "pattern": "^organizations/[^/]+$", |
| 174 "required": true, | 214 "required": true, |
| 175 "type": "string" | 215 "type": "string" |
| 176 } | 216 } |
| 177 }, | 217 }, |
| 178 "path": "v2beta1/{+metricName}", | 218 "path": "v2beta1/{+parent}/logs", |
| 179 "response": { | 219 "response": { |
| 180 "$ref": "LogMetric" | 220 "$ref": "ListLogsResponse" |
| 181 }, | 221 }, |
| 182 "scopes": [ | 222 "scopes": [ |
| 183 "https://www.googleapis.com/auth/cloud-platform"
, | 223 "https://www.googleapis.com/auth/cloud-platform"
, |
| 184 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 224 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 185 "https://www.googleapis.com/auth/logging.admin", | 225 "https://www.googleapis.com/auth/logging.admin", |
| 186 "https://www.googleapis.com/auth/logging.read" | 226 "https://www.googleapis.com/auth/logging.read" |
| 187 ] | 227 ] |
| 188 }, | 228 } |
| 189 "create": { | 229 } |
| 190 "description": "Creates a logs-based metric.", | 230 } |
| 191 "httpMethod": "POST", | 231 } |
| 192 "id": "logging.projects.metrics.create", | 232 }, |
| 193 "parameterOrder": [ | 233 "entries": { |
| 194 "parent" | 234 "methods": { |
| 195 ], | 235 "list": { |
| 196 "parameters": { | 236 "description": "Lists log entries. Use this method to retrie
ve log entries from Stackdriver Logging. For ways to export log entries, see Exp
orting Logs.", |
| 197 "parent": { | 237 "httpMethod": "POST", |
| 198 "description": "The resource name of the pro
ject in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric m
ust be provided in the request.", | 238 "id": "logging.entries.list", |
| 199 "location": "path", | 239 "parameterOrder": [], |
| 200 "pattern": "^projects/[^/]+$", | 240 "parameters": {}, |
| 201 "required": true, | 241 "path": "v2beta1/entries:list", |
| 202 "type": "string" | 242 "request": { |
| 203 } | 243 "$ref": "ListLogEntriesRequest" |
| 204 }, | 244 }, |
| 205 "path": "v2beta1/{+parent}/metrics", | 245 "response": { |
| 206 "request": { | 246 "$ref": "ListLogEntriesResponse" |
| 207 "$ref": "LogMetric" | 247 }, |
| 208 }, | 248 "scopes": [ |
| 209 "response": { | 249 "https://www.googleapis.com/auth/cloud-platform", |
| 210 "$ref": "LogMetric" | 250 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", |
| 211 }, | 251 "https://www.googleapis.com/auth/logging.admin", |
| 212 "scopes": [ | 252 "https://www.googleapis.com/auth/logging.read" |
| 213 "https://www.googleapis.com/auth/cloud-platform"
, | 253 ] |
| 214 "https://www.googleapis.com/auth/logging.admin", | 254 }, |
| 215 "https://www.googleapis.com/auth/logging.write" | 255 "write": { |
| 216 ] | 256 "description": "Writes log entries to Stackdriver Logging. A
ll log entries are written by this method.", |
| 217 }, | 257 "httpMethod": "POST", |
| 258 "id": "logging.entries.write", |
| 259 "parameterOrder": [], |
| 260 "parameters": {}, |
| 261 "path": "v2beta1/entries:write", |
| 262 "request": { |
| 263 "$ref": "WriteLogEntriesRequest" |
| 264 }, |
| 265 "response": { |
| 266 "$ref": "WriteLogEntriesResponse" |
| 267 }, |
| 268 "scopes": [ |
| 269 "https://www.googleapis.com/auth/cloud-platform", |
| 270 "https://www.googleapis.com/auth/logging.admin", |
| 271 "https://www.googleapis.com/auth/logging.write" |
| 272 ] |
| 273 } |
| 274 } |
| 275 }, |
| 276 "projects": { |
| 277 "resources": { |
| 278 "metrics": { |
| 279 "methods": { |
| 218 "list": { | 280 "list": { |
| 219 "description": "Lists logs-based metrics.", | 281 "description": "Lists logs-based metrics.", |
| 220 "httpMethod": "GET", | 282 "httpMethod": "GET", |
| 221 "id": "logging.projects.metrics.list", | 283 "id": "logging.projects.metrics.list", |
| 222 "parameterOrder": [ | 284 "parameterOrder": [ |
| 223 "parent" | 285 "parent" |
| 224 ], | 286 ], |
| 225 "parameters": { | 287 "parameters": { |
| 226 "pageSize": { | 288 "pageSize": { |
| 227 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | 289 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
| (...skipping 18 matching lines...) Expand all Loading... |
| 246 "response": { | 308 "response": { |
| 247 "$ref": "ListLogMetricsResponse" | 309 "$ref": "ListLogMetricsResponse" |
| 248 }, | 310 }, |
| 249 "scopes": [ | 311 "scopes": [ |
| 250 "https://www.googleapis.com/auth/cloud-platform"
, | 312 "https://www.googleapis.com/auth/cloud-platform"
, |
| 251 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 313 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 252 "https://www.googleapis.com/auth/logging.admin", | 314 "https://www.googleapis.com/auth/logging.admin", |
| 253 "https://www.googleapis.com/auth/logging.read" | 315 "https://www.googleapis.com/auth/logging.read" |
| 254 ] | 316 ] |
| 255 }, | 317 }, |
| 256 "delete": { | 318 "get": { |
| 257 "description": "Deletes a logs-based metric.", | 319 "description": "Gets a logs-based metric.", |
| 258 "httpMethod": "DELETE", | 320 "httpMethod": "GET", |
| 259 "id": "logging.projects.metrics.delete", | 321 "id": "logging.projects.metrics.get", |
| 260 "parameterOrder": [ | 322 "parameterOrder": [ |
| 261 "metricName" | 323 "metricName" |
| 262 ], | 324 ], |
| 263 "parameters": { | 325 "parameters": { |
| 264 "metricName": { | 326 "metricName": { |
| 265 "description": "The resource name of the met
ric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", | 327 "description": "The resource name of the des
ired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", |
| 266 "location": "path", | 328 "location": "path", |
| 267 "pattern": "^projects/[^/]+/metrics/[^/]+$", | 329 "pattern": "^projects/[^/]+/metrics/[^/]+$", |
| 268 "required": true, | 330 "required": true, |
| 269 "type": "string" | 331 "type": "string" |
| 270 } | 332 } |
| 271 }, | 333 }, |
| 272 "path": "v2beta1/{+metricName}", | 334 "path": "v2beta1/{+metricName}", |
| 273 "response": { | 335 "response": { |
| 336 "$ref": "LogMetric" |
| 337 }, |
| 338 "scopes": [ |
| 339 "https://www.googleapis.com/auth/cloud-platform"
, |
| 340 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 341 "https://www.googleapis.com/auth/logging.admin", |
| 342 "https://www.googleapis.com/auth/logging.read" |
| 343 ] |
| 344 }, |
| 345 "update": { |
| 346 "description": "Creates or updates a logs-based metr
ic.", |
| 347 "httpMethod": "PUT", |
| 348 "id": "logging.projects.metrics.update", |
| 349 "parameterOrder": [ |
| 350 "metricName" |
| 351 ], |
| 352 "parameters": { |
| 353 "metricName": { |
| 354 "description": "The resource name of the met
ric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe updated metri
c must be provided in the request and it's name field must be the same as [METRI
C_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created
.", |
| 355 "location": "path", |
| 356 "pattern": "^projects/[^/]+/metrics/[^/]+$", |
| 357 "required": true, |
| 358 "type": "string" |
| 359 } |
| 360 }, |
| 361 "path": "v2beta1/{+metricName}", |
| 362 "request": { |
| 363 "$ref": "LogMetric" |
| 364 }, |
| 365 "response": { |
| 366 "$ref": "LogMetric" |
| 367 }, |
| 368 "scopes": [ |
| 369 "https://www.googleapis.com/auth/cloud-platform"
, |
| 370 "https://www.googleapis.com/auth/logging.admin", |
| 371 "https://www.googleapis.com/auth/logging.write" |
| 372 ] |
| 373 }, |
| 374 "create": { |
| 375 "description": "Creates a logs-based metric.", |
| 376 "httpMethod": "POST", |
| 377 "id": "logging.projects.metrics.create", |
| 378 "parameterOrder": [ |
| 379 "parent" |
| 380 ], |
| 381 "parameters": { |
| 382 "parent": { |
| 383 "description": "The resource name of the pro
ject in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric m
ust be provided in the request.", |
| 384 "location": "path", |
| 385 "pattern": "^projects/[^/]+$", |
| 386 "required": true, |
| 387 "type": "string" |
| 388 } |
| 389 }, |
| 390 "path": "v2beta1/{+parent}/metrics", |
| 391 "request": { |
| 392 "$ref": "LogMetric" |
| 393 }, |
| 394 "response": { |
| 395 "$ref": "LogMetric" |
| 396 }, |
| 397 "scopes": [ |
| 398 "https://www.googleapis.com/auth/cloud-platform"
, |
| 399 "https://www.googleapis.com/auth/logging.admin", |
| 400 "https://www.googleapis.com/auth/logging.write" |
| 401 ] |
| 402 }, |
| 403 "delete": { |
| 404 "description": "Deletes a logs-based metric.", |
| 405 "httpMethod": "DELETE", |
| 406 "id": "logging.projects.metrics.delete", |
| 407 "parameterOrder": [ |
| 408 "metricName" |
| 409 ], |
| 410 "parameters": { |
| 411 "metricName": { |
| 412 "description": "The resource name of the met
ric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", |
| 413 "location": "path", |
| 414 "pattern": "^projects/[^/]+/metrics/[^/]+$", |
| 415 "required": true, |
| 416 "type": "string" |
| 417 } |
| 418 }, |
| 419 "path": "v2beta1/{+metricName}", |
| 420 "response": { |
| 274 "$ref": "Empty" | 421 "$ref": "Empty" |
| 275 }, | 422 }, |
| 276 "scopes": [ | 423 "scopes": [ |
| 277 "https://www.googleapis.com/auth/cloud-platform"
, | 424 "https://www.googleapis.com/auth/cloud-platform"
, |
| 278 "https://www.googleapis.com/auth/logging.admin", | 425 "https://www.googleapis.com/auth/logging.admin", |
| 279 "https://www.googleapis.com/auth/logging.write" | 426 "https://www.googleapis.com/auth/logging.write" |
| 280 ] | 427 ] |
| 281 } | 428 } |
| 282 } | 429 } |
| 283 }, | 430 }, |
| 284 "logs": { | 431 "logs": { |
| 285 "methods": { | 432 "methods": { |
| 286 "list": { | |
| 287 "description": "Lists the logs in projects or organi
zations. Only logs that have entries are listed.", | |
| 288 "httpMethod": "GET", | |
| 289 "id": "logging.projects.logs.list", | |
| 290 "parameterOrder": [ | |
| 291 "parent" | |
| 292 ], | |
| 293 "parameters": { | |
| 294 "pageSize": { | |
| 295 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | |
| 296 "format": "int32", | |
| 297 "location": "query", | |
| 298 "type": "integer" | |
| 299 }, | |
| 300 "parent": { | |
| 301 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n", | |
| 302 "location": "path", | |
| 303 "pattern": "^projects/[^/]+$", | |
| 304 "required": true, | |
| 305 "type": "string" | |
| 306 }, | |
| 307 "pageToken": { | |
| 308 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", | |
| 309 "location": "query", | |
| 310 "type": "string" | |
| 311 } | |
| 312 }, | |
| 313 "path": "v2beta1/{+parent}/logs", | |
| 314 "response": { | |
| 315 "$ref": "ListLogsResponse" | |
| 316 }, | |
| 317 "scopes": [ | |
| 318 "https://www.googleapis.com/auth/cloud-platform"
, | |
| 319 "https://www.googleapis.com/auth/cloud-platform.
read-only", | |
| 320 "https://www.googleapis.com/auth/logging.admin", | |
| 321 "https://www.googleapis.com/auth/logging.read" | |
| 322 ] | |
| 323 }, | |
| 324 "delete": { | 433 "delete": { |
| 325 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries.", | 434 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries.", |
| 326 "httpMethod": "DELETE", | 435 "httpMethod": "DELETE", |
| 327 "id": "logging.projects.logs.delete", | 436 "id": "logging.projects.logs.delete", |
| 328 "parameterOrder": [ | 437 "parameterOrder": [ |
| 329 "logName" | 438 "logName" |
| 330 ], | 439 ], |
| 331 "parameters": { | 440 "parameters": { |
| 332 "logName": { | 441 "logName": { |
| 333 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"
projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresou
rcemanager.googleapis.com%2Factivity\". For more information about log names, se
e LogEntry.", | 442 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"
projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresou
rcemanager.googleapis.com%2Factivity\". For more information about log names, se
e LogEntry.", |
| 334 "location": "path", | 443 "location": "path", |
| 335 "pattern": "^projects/[^/]+/logs/[^/]+$", | 444 "pattern": "^projects/[^/]+/logs/[^/]+$", |
| 336 "required": true, | 445 "required": true, |
| 337 "type": "string" | 446 "type": "string" |
| 338 } | 447 } |
| 339 }, | 448 }, |
| 340 "path": "v2beta1/{+logName}", | 449 "path": "v2beta1/{+logName}", |
| 341 "response": { | 450 "response": { |
| 342 "$ref": "Empty" | 451 "$ref": "Empty" |
| 343 }, | 452 }, |
| 344 "scopes": [ | 453 "scopes": [ |
| 345 "https://www.googleapis.com/auth/cloud-platform"
, | 454 "https://www.googleapis.com/auth/cloud-platform"
, |
| 346 "https://www.googleapis.com/auth/logging.admin" | 455 "https://www.googleapis.com/auth/logging.admin" |
| 347 ] | 456 ] |
| 457 }, |
| 458 "list": { |
| 459 "description": "Lists the logs in projects or organi
zations. Only logs that have entries are listed.", |
| 460 "httpMethod": "GET", |
| 461 "id": "logging.projects.logs.list", |
| 462 "parameterOrder": [ |
| 463 "parent" |
| 464 ], |
| 465 "parameters": { |
| 466 "parent": { |
| 467 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n", |
| 468 "location": "path", |
| 469 "pattern": "^projects/[^/]+$", |
| 470 "required": true, |
| 471 "type": "string" |
| 472 }, |
| 473 "pageToken": { |
| 474 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", |
| 475 "location": "query", |
| 476 "type": "string" |
| 477 }, |
| 478 "pageSize": { |
| 479 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
| 480 "format": "int32", |
| 481 "location": "query", |
| 482 "type": "integer" |
| 483 } |
| 484 }, |
| 485 "path": "v2beta1/{+parent}/logs", |
| 486 "response": { |
| 487 "$ref": "ListLogsResponse" |
| 488 }, |
| 489 "scopes": [ |
| 490 "https://www.googleapis.com/auth/cloud-platform"
, |
| 491 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 492 "https://www.googleapis.com/auth/logging.admin", |
| 493 "https://www.googleapis.com/auth/logging.read" |
| 494 ] |
| 348 } | 495 } |
| 349 } | 496 } |
| 350 }, | 497 }, |
| 351 "sinks": { | 498 "sinks": { |
| 352 "methods": { | 499 "methods": { |
| 353 "update": { | 500 "update": { |
| 354 "description": "Updates a sink. If the named sink do
esn't exist, then this method is identical to sinks.create. If the named sink do
es exist, then this method replaces the following fields in the existing sink wi
th values from the new sink: destination, filter, output_version_format, start_t
ime, and end_time. The updated filter might also have a new writer_identity; see
the unique_writer_identity field.", | 501 "description": "Updates a sink. If the named sink do
esn't exist, then this method is identical to sinks.create. If the named sink do
es exist, then this method replaces the following fields in the existing sink wi
th values from the new sink: destination, filter, output_version_format, start_t
ime, and end_time. The updated filter might also have a new writer_identity; see
the unique_writer_identity field.", |
| 355 "httpMethod": "PUT", | 502 "httpMethod": "PUT", |
| 356 "id": "logging.projects.sinks.update", | 503 "id": "logging.projects.sinks.update", |
| 357 "parameterOrder": [ | 504 "parameterOrder": [ |
| (...skipping 18 matching lines...) Expand all Loading... |
| 376 "$ref": "LogSink" | 523 "$ref": "LogSink" |
| 377 }, | 524 }, |
| 378 "response": { | 525 "response": { |
| 379 "$ref": "LogSink" | 526 "$ref": "LogSink" |
| 380 }, | 527 }, |
| 381 "scopes": [ | 528 "scopes": [ |
| 382 "https://www.googleapis.com/auth/cloud-platform"
, | 529 "https://www.googleapis.com/auth/cloud-platform"
, |
| 383 "https://www.googleapis.com/auth/logging.admin" | 530 "https://www.googleapis.com/auth/logging.admin" |
| 384 ] | 531 ] |
| 385 }, | 532 }, |
| 386 "get": { | |
| 387 "description": "Gets a sink.", | |
| 388 "httpMethod": "GET", | |
| 389 "id": "logging.projects.sinks.get", | |
| 390 "parameterOrder": [ | |
| 391 "sinkName" | |
| 392 ], | |
| 393 "parameters": { | |
| 394 "sinkName": { | |
| 395 "description": "Required. The parent resourc
e name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/
[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-
sink-id\".", | |
| 396 "location": "path", | |
| 397 "pattern": "^projects/[^/]+/sinks/[^/]+$", | |
| 398 "required": true, | |
| 399 "type": "string" | |
| 400 } | |
| 401 }, | |
| 402 "path": "v2beta1/{+sinkName}", | |
| 403 "response": { | |
| 404 "$ref": "LogSink" | |
| 405 }, | |
| 406 "scopes": [ | |
| 407 "https://www.googleapis.com/auth/cloud-platform"
, | |
| 408 "https://www.googleapis.com/auth/cloud-platform.
read-only", | |
| 409 "https://www.googleapis.com/auth/logging.admin", | |
| 410 "https://www.googleapis.com/auth/logging.read" | |
| 411 ] | |
| 412 }, | |
| 413 "create": { | 533 "create": { |
| 414 "description": "Creates a sink that exports specifie
d log entries to a destination. The export of newly-ingested log entries begins
immediately, unless the current time is outside the sink's start and end times o
r the sink's writer_identity is not permitted to write to the destination. A sin
k can export log entries only from the resource owning the sink.", | 534 "description": "Creates a sink that exports specifie
d log entries to a destination. The export of newly-ingested log entries begins
immediately, unless the current time is outside the sink's start and end times o
r the sink's writer_identity is not permitted to write to the destination. A sin
k can export log entries only from the resource owning the sink.", |
| 415 "httpMethod": "POST", | 535 "httpMethod": "POST", |
| 416 "id": "logging.projects.sinks.create", | 536 "id": "logging.projects.sinks.create", |
| 417 "parameterOrder": [ | 537 "parameterOrder": [ |
| 418 "parent" | 538 "parent" |
| 419 ], | 539 ], |
| 420 "parameters": { | 540 "parameters": { |
| 421 "uniqueWriterIdentity": { | 541 "uniqueWriterIdentity": { |
| 422 "description": "Optional. Determines the kin
d of IAM identity returned as writer_identity in the new sink. If this value is
omitted or set to false, and if the sink's parent is a project, then the value r
eturned as writer_identity is cloud-logs@google.com, the same identity used befo
re the addition of writer identities to this API. The sink's destination must be
in the same project as the sink itself.If this field is set to true, or if the
sink is owned by a non-project resource such as an organization, then the value
of writer_identity will be a unique service account used only for exports from t
he new sink. For more information, see writer_identity in LogSink.", | 542 "description": "Optional. Determines the kin
d of IAM identity returned as writer_identity in the new sink. If this value is
omitted or set to false, and if the sink's parent is a project, then the value r
eturned as writer_identity is cloud-logs@google.com, the same identity used befo
re the addition of writer identities to this API. The sink's destination must be
in the same project as the sink itself.If this field is set to true, or if the
sink is owned by a non-project resource such as an organization, then the value
of writer_identity will be a unique service account used only for exports from t
he new sink. For more information, see writer_identity in LogSink.", |
| (...skipping 13 matching lines...) Expand all Loading... |
| 436 "$ref": "LogSink" | 556 "$ref": "LogSink" |
| 437 }, | 557 }, |
| 438 "response": { | 558 "response": { |
| 439 "$ref": "LogSink" | 559 "$ref": "LogSink" |
| 440 }, | 560 }, |
| 441 "scopes": [ | 561 "scopes": [ |
| 442 "https://www.googleapis.com/auth/cloud-platform"
, | 562 "https://www.googleapis.com/auth/cloud-platform"
, |
| 443 "https://www.googleapis.com/auth/logging.admin" | 563 "https://www.googleapis.com/auth/logging.admin" |
| 444 ] | 564 ] |
| 445 }, | 565 }, |
| 566 "delete": { |
| 567 "description": "Deletes a sink. If the sink has a un
ique writer_identity, then that service account is also deleted.", |
| 568 "httpMethod": "DELETE", |
| 569 "id": "logging.projects.sinks.delete", |
| 570 "parameterOrder": [ |
| 571 "sinkName" |
| 572 ], |
| 573 "parameters": { |
| 574 "sinkName": { |
| 575 "description": "Required. The full resource
name of the sink to delete, including the parent resource and the sink identifie
r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]
/sinks/[SINK_ID]\"\nIt is an error if the sink does not exist. Example: \"projec
ts/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist."
, |
| 576 "location": "path", |
| 577 "pattern": "^projects/[^/]+/sinks/[^/]+$", |
| 578 "required": true, |
| 579 "type": "string" |
| 580 } |
| 581 }, |
| 582 "path": "v2beta1/{+sinkName}", |
| 583 "response": { |
| 584 "$ref": "Empty" |
| 585 }, |
| 586 "scopes": [ |
| 587 "https://www.googleapis.com/auth/cloud-platform"
, |
| 588 "https://www.googleapis.com/auth/logging.admin" |
| 589 ] |
| 590 }, |
| 446 "list": { | 591 "list": { |
| 447 "description": "Lists sinks.", | 592 "description": "Lists sinks.", |
| 448 "httpMethod": "GET", | 593 "httpMethod": "GET", |
| 449 "id": "logging.projects.sinks.list", | 594 "id": "logging.projects.sinks.list", |
| 450 "parameterOrder": [ | 595 "parameterOrder": [ |
| 451 "parent" | 596 "parent" |
| 452 ], | 597 ], |
| 453 "parameters": { | 598 "parameters": { |
| 454 "pageSize": { | |
| 455 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | |
| 456 "format": "int32", | |
| 457 "location": "query", | |
| 458 "type": "integer" | |
| 459 }, | |
| 460 "parent": { | 599 "parent": { |
| 461 "description": "Required. The parent resourc
e whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"org
anizations/123456789\".", | 600 "description": "Required. The parent resourc
e whose sinks are to be listed. Examples: \"projects/my-logging-project\", \"org
anizations/123456789\".", |
| 462 "location": "path", | 601 "location": "path", |
| 463 "pattern": "^projects/[^/]+$", | 602 "pattern": "^projects/[^/]+$", |
| 464 "required": true, | 603 "required": true, |
| 465 "type": "string" | 604 "type": "string" |
| 466 }, | 605 }, |
| 467 "pageToken": { | 606 "pageToken": { |
| 468 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", | 607 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", |
| 469 "location": "query", | 608 "location": "query", |
| 470 "type": "string" | 609 "type": "string" |
| 610 }, |
| 611 "pageSize": { |
| 612 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
| 613 "format": "int32", |
| 614 "location": "query", |
| 615 "type": "integer" |
| 471 } | 616 } |
| 472 }, | 617 }, |
| 473 "path": "v2beta1/{+parent}/sinks", | 618 "path": "v2beta1/{+parent}/sinks", |
| 474 "response": { | 619 "response": { |
| 475 "$ref": "ListSinksResponse" | 620 "$ref": "ListSinksResponse" |
| 476 }, | 621 }, |
| 477 "scopes": [ | 622 "scopes": [ |
| 478 "https://www.googleapis.com/auth/cloud-platform"
, | 623 "https://www.googleapis.com/auth/cloud-platform"
, |
| 479 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 624 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 480 "https://www.googleapis.com/auth/logging.admin", | 625 "https://www.googleapis.com/auth/logging.admin", |
| 481 "https://www.googleapis.com/auth/logging.read" | 626 "https://www.googleapis.com/auth/logging.read" |
| 482 ] | 627 ] |
| 483 }, | 628 }, |
| 484 "delete": { | 629 "get": { |
| 485 "description": "Deletes a sink. If the sink has a un
ique writer_identity, then that service account is also deleted.", | 630 "description": "Gets a sink.", |
| 486 "httpMethod": "DELETE", | 631 "httpMethod": "GET", |
| 487 "id": "logging.projects.sinks.delete", | 632 "id": "logging.projects.sinks.get", |
| 488 "parameterOrder": [ | 633 "parameterOrder": [ |
| 489 "sinkName" | 634 "sinkName" |
| 490 ], | 635 ], |
| 491 "parameters": { | 636 "parameters": { |
| 492 "sinkName": { | 637 "sinkName": { |
| 493 "description": "Required. The full resource
name of the sink to delete, including the parent resource and the sink identifie
r:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]
/sinks/[SINK_ID]\"\nIt is an error if the sink does not exist. Example: \"projec
ts/my-project-id/sinks/my-sink-id\". It is an error if the sink does not exist."
, | 638 "description": "Required. The parent resourc
e name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/
[ORGANIZATION_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-
sink-id\".", |
| 494 "location": "path", | 639 "location": "path", |
| 495 "pattern": "^projects/[^/]+/sinks/[^/]+$", | 640 "pattern": "^projects/[^/]+/sinks/[^/]+$", |
| 496 "required": true, | 641 "required": true, |
| 497 "type": "string" | 642 "type": "string" |
| 498 } | 643 } |
| 499 }, | 644 }, |
| 500 "path": "v2beta1/{+sinkName}", | 645 "path": "v2beta1/{+sinkName}", |
| 501 "response": { | 646 "response": { |
| 647 "$ref": "LogSink" |
| 648 }, |
| 649 "scopes": [ |
| 650 "https://www.googleapis.com/auth/cloud-platform"
, |
| 651 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 652 "https://www.googleapis.com/auth/logging.admin", |
| 653 "https://www.googleapis.com/auth/logging.read" |
| 654 ] |
| 655 } |
| 656 } |
| 657 } |
| 658 } |
| 659 }, |
| 660 "billingAccounts": { |
| 661 "resources": { |
| 662 "logs": { |
| 663 "methods": { |
| 664 "delete": { |
| 665 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries.", |
| 666 "httpMethod": "DELETE", |
| 667 "id": "logging.billingAccounts.logs.delete", |
| 668 "parameterOrder": [ |
| 669 "logName" |
| 670 ], |
| 671 "parameters": { |
| 672 "logName": { |
| 673 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"
projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresou
rcemanager.googleapis.com%2Factivity\". For more information about log names, se
e LogEntry.", |
| 674 "location": "path", |
| 675 "pattern": "^billingAccounts/[^/]+/logs/[^/]
+$", |
| 676 "required": true, |
| 677 "type": "string" |
| 678 } |
| 679 }, |
| 680 "path": "v2beta1/{+logName}", |
| 681 "response": { |
| 502 "$ref": "Empty" | 682 "$ref": "Empty" |
| 503 }, | 683 }, |
| 504 "scopes": [ | 684 "scopes": [ |
| 505 "https://www.googleapis.com/auth/cloud-platform"
, | 685 "https://www.googleapis.com/auth/cloud-platform"
, |
| 506 "https://www.googleapis.com/auth/logging.admin" | 686 "https://www.googleapis.com/auth/logging.admin" |
| 507 ] | 687 ] |
| 508 } | 688 }, |
| 509 } | |
| 510 } | |
| 511 } | |
| 512 }, | |
| 513 "organizations": { | |
| 514 "resources": { | |
| 515 "logs": { | |
| 516 "methods": { | |
| 517 "list": { | 689 "list": { |
| 518 "description": "Lists the logs in projects or organi
zations. Only logs that have entries are listed.", | 690 "description": "Lists the logs in projects or organi
zations. Only logs that have entries are listed.", |
| 519 "httpMethod": "GET", | 691 "httpMethod": "GET", |
| 520 "id": "logging.organizations.logs.list", | 692 "id": "logging.billingAccounts.logs.list", |
| 521 "parameterOrder": [ | 693 "parameterOrder": [ |
| 522 "parent" | 694 "parent" |
| 523 ], | 695 ], |
| 524 "parameters": { | 696 "parameters": { |
| 697 "pageToken": { |
| 698 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", |
| 699 "location": "query", |
| 700 "type": "string" |
| 701 }, |
| 525 "pageSize": { | 702 "pageSize": { |
| 526 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | 703 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", |
| 527 "format": "int32", | 704 "format": "int32", |
| 528 "location": "query", | 705 "location": "query", |
| 529 "type": "integer" | 706 "type": "integer" |
| 530 }, | 707 }, |
| 531 "parent": { | 708 "parent": { |
| 532 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n", | 709 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n", |
| 533 "location": "path", | 710 "location": "path", |
| 534 "pattern": "^organizations/[^/]+$", | 711 "pattern": "^billingAccounts/[^/]+$", |
| 535 "required": true, | 712 "required": true, |
| 536 "type": "string" | 713 "type": "string" |
| 537 }, | |
| 538 "pageToken": { | |
| 539 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", | |
| 540 "location": "query", | |
| 541 "type": "string" | |
| 542 } | 714 } |
| 543 }, | 715 }, |
| 544 "path": "v2beta1/{+parent}/logs", | 716 "path": "v2beta1/{+parent}/logs", |
| 545 "response": { | 717 "response": { |
| 546 "$ref": "ListLogsResponse" | 718 "$ref": "ListLogsResponse" |
| 547 }, | 719 }, |
| 548 "scopes": [ | 720 "scopes": [ |
| 549 "https://www.googleapis.com/auth/cloud-platform"
, | 721 "https://www.googleapis.com/auth/cloud-platform"
, |
| 550 "https://www.googleapis.com/auth/cloud-platform.
read-only", | 722 "https://www.googleapis.com/auth/cloud-platform.
read-only", |
| 551 "https://www.googleapis.com/auth/logging.admin", | 723 "https://www.googleapis.com/auth/logging.admin", |
| 552 "https://www.googleapis.com/auth/logging.read" | 724 "https://www.googleapis.com/auth/logging.read" |
| 553 ] | 725 ] |
| 554 }, | |
| 555 "delete": { | |
| 556 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries.", | |
| 557 "httpMethod": "DELETE", | |
| 558 "id": "logging.organizations.logs.delete", | |
| 559 "parameterOrder": [ | |
| 560 "logName" | |
| 561 ], | |
| 562 "parameters": { | |
| 563 "logName": { | |
| 564 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"
projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresou
rcemanager.googleapis.com%2Factivity\". For more information about log names, se
e LogEntry.", | |
| 565 "location": "path", | |
| 566 "pattern": "^organizations/[^/]+/logs/[^/]+$
", | |
| 567 "required": true, | |
| 568 "type": "string" | |
| 569 } | |
| 570 }, | |
| 571 "path": "v2beta1/{+logName}", | |
| 572 "response": { | |
| 573 "$ref": "Empty" | |
| 574 }, | |
| 575 "scopes": [ | |
| 576 "https://www.googleapis.com/auth/cloud-platform"
, | |
| 577 "https://www.googleapis.com/auth/logging.admin" | |
| 578 ] | |
| 579 } | |
| 580 } | |
| 581 } | |
| 582 } | |
| 583 }, | |
| 584 "entries": { | |
| 585 "methods": { | |
| 586 "write": { | |
| 587 "description": "Writes log entries to Stackdriver Logging. A
ll log entries are written by this method.", | |
| 588 "httpMethod": "POST", | |
| 589 "id": "logging.entries.write", | |
| 590 "parameterOrder": [], | |
| 591 "parameters": {}, | |
| 592 "path": "v2beta1/entries:write", | |
| 593 "request": { | |
| 594 "$ref": "WriteLogEntriesRequest" | |
| 595 }, | |
| 596 "response": { | |
| 597 "$ref": "WriteLogEntriesResponse" | |
| 598 }, | |
| 599 "scopes": [ | |
| 600 "https://www.googleapis.com/auth/cloud-platform", | |
| 601 "https://www.googleapis.com/auth/logging.admin", | |
| 602 "https://www.googleapis.com/auth/logging.write" | |
| 603 ] | |
| 604 }, | |
| 605 "list": { | |
| 606 "description": "Lists log entries. Use this method to retrie
ve log entries from Stackdriver Logging. For ways to export log entries, see Exp
orting Logs.", | |
| 607 "httpMethod": "POST", | |
| 608 "id": "logging.entries.list", | |
| 609 "parameterOrder": [], | |
| 610 "parameters": {}, | |
| 611 "path": "v2beta1/entries:list", | |
| 612 "request": { | |
| 613 "$ref": "ListLogEntriesRequest" | |
| 614 }, | |
| 615 "response": { | |
| 616 "$ref": "ListLogEntriesResponse" | |
| 617 }, | |
| 618 "scopes": [ | |
| 619 "https://www.googleapis.com/auth/cloud-platform", | |
| 620 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", | |
| 621 "https://www.googleapis.com/auth/logging.admin", | |
| 622 "https://www.googleapis.com/auth/logging.read" | |
| 623 ] | |
| 624 } | |
| 625 } | |
| 626 }, | |
| 627 "monitoredResourceDescriptors": { | |
| 628 "methods": { | |
| 629 "list": { | |
| 630 "description": "Lists the descriptors for monitored resource
types used by Stackdriver Logging.", | |
| 631 "httpMethod": "GET", | |
| 632 "id": "logging.monitoredResourceDescriptors.list", | |
| 633 "parameterOrder": [], | |
| 634 "parameters": { | |
| 635 "pageSize": { | |
| 636 "description": "Optional. The maximum number of resu
lts to return from this request. Non-positive values are ignored. The presence o
f nextPageToken in the response indicates that more results might be available."
, | |
| 637 "format": "int32", | |
| 638 "location": "query", | |
| 639 "type": "integer" | |
| 640 }, | |
| 641 "pageToken": { | |
| 642 "description": "Optional. If present, then retrieve
the next batch of results from the preceding call to this method. pageToken must
be the value of nextPageToken from the previous response. The values of other m
ethod parameters should be identical to those in the previous call.", | |
| 643 "location": "query", | |
| 644 "type": "string" | |
| 645 } | |
| 646 }, | |
| 647 "path": "v2beta1/monitoredResourceDescriptors", | |
| 648 "response": { | |
| 649 "$ref": "ListMonitoredResourceDescriptorsResponse" | |
| 650 }, | |
| 651 "scopes": [ | |
| 652 "https://www.googleapis.com/auth/cloud-platform", | |
| 653 "https://www.googleapis.com/auth/cloud-platform.read-onl
y", | |
| 654 "https://www.googleapis.com/auth/logging.admin", | |
| 655 "https://www.googleapis.com/auth/logging.read" | |
| 656 ] | |
| 657 } | |
| 658 } | |
| 659 }, | |
| 660 "billingAccounts": { | |
| 661 "resources": { | |
| 662 "logs": { | |
| 663 "methods": { | |
| 664 "list": { | |
| 665 "description": "Lists the logs in projects or organi
zations. Only logs that have entries are listed.", | |
| 666 "httpMethod": "GET", | |
| 667 "id": "logging.billingAccounts.logs.list", | |
| 668 "parameterOrder": [ | |
| 669 "parent" | |
| 670 ], | |
| 671 "parameters": { | |
| 672 "pageSize": { | |
| 673 "description": "Optional. The maximum number
of results to return from this request. Non-positive values are ignored. The pr
esence of nextPageToken in the response indicates that more results might be ava
ilable.", | |
| 674 "format": "int32", | |
| 675 "location": "query", | |
| 676 "type": "integer" | |
| 677 }, | |
| 678 "parent": { | |
| 679 "description": "Required. The resource name
that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID
]\"\n", | |
| 680 "location": "path", | |
| 681 "pattern": "^billingAccounts/[^/]+$", | |
| 682 "required": true, | |
| 683 "type": "string" | |
| 684 }, | |
| 685 "pageToken": { | |
| 686 "description": "Optional. If present, then r
etrieve the next batch of results from the preceding call to this method. pageTo
ken must be the value of nextPageToken from the previous response. The values of
other method parameters should be identical to those in the previous call.", | |
| 687 "location": "query", | |
| 688 "type": "string" | |
| 689 } | |
| 690 }, | |
| 691 "path": "v2beta1/{+parent}/logs", | |
| 692 "response": { | |
| 693 "$ref": "ListLogsResponse" | |
| 694 }, | |
| 695 "scopes": [ | |
| 696 "https://www.googleapis.com/auth/cloud-platform"
, | |
| 697 "https://www.googleapis.com/auth/cloud-platform.
read-only", | |
| 698 "https://www.googleapis.com/auth/logging.admin", | |
| 699 "https://www.googleapis.com/auth/logging.read" | |
| 700 ] | |
| 701 }, | |
| 702 "delete": { | |
| 703 "description": "Deletes all the log entries in a log
. The log reappears if it receives new entries.", | |
| 704 "httpMethod": "DELETE", | |
| 705 "id": "logging.billingAccounts.logs.delete", | |
| 706 "parameterOrder": [ | |
| 707 "logName" | |
| 708 ], | |
| 709 "parameters": { | |
| 710 "logName": { | |
| 711 "description": "Required. The resource name
of the log to delete:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/
[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"
projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresou
rcemanager.googleapis.com%2Factivity\". For more information about log names, se
e LogEntry.", | |
| 712 "location": "path", | |
| 713 "pattern": "^billingAccounts/[^/]+/logs/[^/]
+$", | |
| 714 "required": true, | |
| 715 "type": "string" | |
| 716 } | |
| 717 }, | |
| 718 "path": "v2beta1/{+logName}", | |
| 719 "response": { | |
| 720 "$ref": "Empty" | |
| 721 }, | |
| 722 "scopes": [ | |
| 723 "https://www.googleapis.com/auth/cloud-platform"
, | |
| 724 "https://www.googleapis.com/auth/logging.admin" | |
| 725 ] | |
| 726 } | 726 } |
| 727 } | 727 } |
| 728 } | 728 } |
| 729 } | 729 } |
| 730 } | 730 } |
| 731 }, | 731 }, |
| 732 "revision": "20161206", | 732 "revision": "20170114", |
| 733 "rootUrl": "https://logging.googleapis.com/", | 733 "rootUrl": "https://logging.googleapis.com/", |
| 734 "schemas": { | 734 "schemas": { |
| 735 "ListLogEntriesResponse": { | 735 "ListLogEntriesResponse": { |
| 736 "description": "Result returned from ListLogEntries.", | 736 "description": "Result returned from ListLogEntries.", |
| 737 "id": "ListLogEntriesResponse", | 737 "id": "ListLogEntriesResponse", |
| 738 "properties": { | 738 "properties": { |
| 739 "nextPageToken": { |
| 740 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken.I
f a value for next_page_token appears and the entries field is empty, it means t
hat the search found no log entries so far but it did not have time to search al
l the possible log entries. Retry the method with this value for page_token to c
ontinue the search. Alternatively, consider speeding up the search by changing y
our filter to specify a single log name or resource type, or to narrow the time
range of the search.", |
| 741 "type": "string" |
| 742 }, |
| 739 "entries": { | 743 "entries": { |
| 740 "description": "A list of log entries.", | 744 "description": "A list of log entries.", |
| 741 "items": { | 745 "items": { |
| 742 "$ref": "LogEntry" | 746 "$ref": "LogEntry" |
| 743 }, | 747 }, |
| 744 "type": "array" | 748 "type": "array" |
| 749 } |
| 750 }, |
| 751 "type": "object" |
| 752 }, |
| 753 "LogLine": { |
| 754 "description": "Application log line emitted while processing a requ
est.", |
| 755 "id": "LogLine", |
| 756 "properties": { |
| 757 "severity": { |
| 758 "description": "Severity of this log entry.", |
| 759 "enum": [ |
| 760 "DEFAULT", |
| 761 "DEBUG", |
| 762 "INFO", |
| 763 "NOTICE", |
| 764 "WARNING", |
| 765 "ERROR", |
| 766 "CRITICAL", |
| 767 "ALERT", |
| 768 "EMERGENCY" |
| 769 ], |
| 770 "enumDescriptions": [ |
| 771 "(0) The log entry has no assigned severity level.", |
| 772 "(100) Debug or trace information.", |
| 773 "(200) Routine information, such as ongoing status or pe
rformance.", |
| 774 "(300) Normal but significant events, such as start up,
shut down, or a configuration change.", |
| 775 "(400) Warning events might cause problems.", |
| 776 "(500) Error events are likely to cause problems.", |
| 777 "(600) Critical events cause more severe problems or out
ages.", |
| 778 "(700) A person must take an action immediately.", |
| 779 "(800) One or more systems are unusable." |
| 780 ], |
| 781 "type": "string" |
| 745 }, | 782 }, |
| 746 "nextPageToken": { | 783 "logMessage": { |
| 747 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken.I
f a value for next_page_token appears and the entries field is empty, it means t
hat the search found no log entries so far but it did not have time to search al
l the possible log entries. Retry the method with this value for page_token to c
ontinue the search. Alternatively, consider speeding up the search by changing y
our filter to specify a single log name or resource type, or to narrow the time
range of the search.", | 784 "description": "App-provided log message.", |
| 785 "type": "string" |
| 786 }, |
| 787 "sourceLocation": { |
| 788 "$ref": "SourceLocation", |
| 789 "description": "Where in the source code this log message wa
s written." |
| 790 }, |
| 791 "time": { |
| 792 "description": "Approximate time when this log entry was mad
e.", |
| 793 "format": "google-datetime", |
| 748 "type": "string" | 794 "type": "string" |
| 749 } | 795 } |
| 750 }, | 796 }, |
| 751 "type": "object" | 797 "type": "object" |
| 752 }, | 798 }, |
| 753 "ListSinksResponse": { | 799 "ListLogMetricsResponse": { |
| 754 "description": "Result returned from ListSinks.", | 800 "description": "Result returned from ListLogMetrics.", |
| 755 "id": "ListSinksResponse", | 801 "id": "ListLogMetricsResponse", |
| 756 "properties": { | 802 "properties": { |
| 757 "nextPageToken": { | 803 "metrics": { |
| 758 "description": "If there might be more results than appear i
n this response, then nextPageToken is included. To get the next set of results,
call the same method again using the value of nextPageToken as pageToken.", | 804 "description": "A list of logs-based metrics.", |
| 759 "type": "string" | |
| 760 }, | |
| 761 "sinks": { | |
| 762 "description": "A list of sinks.", | |
| 763 "items": { | 805 "items": { |
| 764 "$ref": "LogSink" | 806 "$ref": "LogMetric" |
| 765 }, | 807 }, |
| 766 "type": "array" | 808 "type": "array" |
| 767 } | |
| 768 }, | |
| 769 "type": "object" | |
| 770 }, | |
| 771 "SourceLocation": { | |
| 772 "description": "Specifies a location in a source code file.", | |
| 773 "id": "SourceLocation", | |
| 774 "properties": { | |
| 775 "file": { | |
| 776 "description": "Source file name. Depending on the runtime e
nvironment, this might be a simple name or a fully-qualified name.", | |
| 777 "type": "string" | |
| 778 }, | 809 }, |
| 779 "functionName": { | 810 "nextPageToken": { |
| 780 "description": "Human-readable name of the function or metho
d being invoked, with optional context such as the class or package name. This i
nformation is used in contexts such as the logs viewer, where a file and line nu
mber are less meaningful. The format can vary by language. For example: qual.if.
ied.Class.method (Java), dir/package.func (Go), function (Python).", | 811 "description": "If there might be more results than appear i
n this response, then nextPageToken is included. To get the next set of results,
call this method again using the value of nextPageToken as pageToken.", |
| 781 "type": "string" | |
| 782 }, | |
| 783 "line": { | |
| 784 "description": "Line within the source file.", | |
| 785 "format": "int64", | |
| 786 "type": "string" | 812 "type": "string" |
| 787 } | 813 } |
| 788 }, | 814 }, |
| 789 "type": "object" | 815 "type": "object" |
| 790 }, | 816 }, |
| 791 "LogSink": { | 817 "Empty": { |
| 792 "description": "Describes a sink used to export log entries to one o
f the following destinations in any project: a Cloud Storage bucket, a BigQuery
dataset, or a Cloud Pub/Sub topic. A logs filter controls which log entries are
exported. The sink must be created within a project or organization.", | 818 "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 Fo
o {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe J
SON representation for Empty is empty JSON object {}.", |
| 793 "id": "LogSink", | 819 "id": "Empty", |
| 794 "properties": { | 820 "properties": {}, |
| 795 "destination": { | |
| 796 "description": "Required. The export destination:\n\"storage
.googleapis.com/[GCS_BUCKET]\"\n\"bigquery.googleapis.com/projects/[PROJECT_ID]/
datasets/[DATASET]\"\n\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPI
C_ID]\"\nThe sink's writer_identity, set when the sink is created, must have per
mission to write to the destination or else the log entries are not exported. Fo
r more information, see Exporting Logs With Sinks.", | |
| 797 "type": "string" | |
| 798 }, | |
| 799 "filter": { | |
| 800 "description": "Optional. An advanced logs filter. The only
exported log entries are those that are in the resource owning the sink and that
match the filter. The filter must use the log entry format specified by the out
put_version_format parameter. For example, in the v2 format:\nlogName=\"projects
/[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR\n", | |
| 801 "type": "string" | |
| 802 }, | |
| 803 "endTime": { | |
| 804 "description": "Optional. The time at which this sink will s
top exporting log entries. Log entries are exported only if their timestamp is e
arlier than the end time. If this field is not supplied, there is no end time. I
f both a start time and an end time are provided, then the end time must be late
r than the start time.", | |
| 805 "format": "google-datetime", | |
| 806 "type": "string" | |
| 807 }, | |
| 808 "name": { | |
| 809 "description": "Required. The client-assigned sink identifie
r, unique within the project. Example: \"my-syslog-errors-to-pubsub\". Sink iden
tifiers are limited to 100 characters and can include only the following charact
ers: upper and lower-case alphanumeric characters, underscores, hyphens, and per
iods.", | |
| 810 "type": "string" | |
| 811 }, | |
| 812 "startTime": { | |
| 813 "description": "Optional. The time at which this sink will b
egin exporting log entries. Log entries are exported only if their timestamp is
not earlier than the start time. The default value of this field is the time the
sink is created or updated.", | |
| 814 "format": "google-datetime", | |
| 815 "type": "string" | |
| 816 }, | |
| 817 "outputVersionFormat": { | |
| 818 "description": "Optional. The log entry format to use for th
is sink's exported log entries. The v2 format is used by default. The v1 format
is deprecated and should be used only as part of a migration effort to v2. See M
igration to the v2 API.", | |
| 819 "enum": [ | |
| 820 "VERSION_FORMAT_UNSPECIFIED", | |
| 821 "V2", | |
| 822 "V1" | |
| 823 ], | |
| 824 "enumDescriptions": [ | |
| 825 "An unspecified format version that will default to V2."
, | |
| 826 "LogEntry version 2 format.", | |
| 827 "LogEntry version 1 format." | |
| 828 ], | |
| 829 "type": "string" | |
| 830 }, | |
| 831 "writerIdentity": { | |
| 832 "description": "Output only. An IAM identity—a service
account or group—under which Stackdriver Logging writes the exported log
entries to the sink's destination. This field is set by sinks.create and sinks.u
pdate, based on the setting of unique_writer_identity in those methods.Until you
grant this identity write-access to the destination, log entry exports from thi
s sink will fail. For more information, see Granting access for a resource. Cons
ult the destination service's documentation to determine the appropriate IAM rol
es to assign to the identity.", | |
| 833 "type": "string" | |
| 834 } | |
| 835 }, | |
| 836 "type": "object" | |
| 837 }, | |
| 838 "ListLogsResponse": { | |
| 839 "description": "Result returned from ListLogs.", | |
| 840 "id": "ListLogsResponse", | |
| 841 "properties": { | |
| 842 "logNames": { | |
| 843 "description": "A list of log names. For example, \"projects
/my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com%
2Factivity\".", | |
| 844 "items": { | |
| 845 "type": "string" | |
| 846 }, | |
| 847 "type": "array" | |
| 848 }, | |
| 849 "nextPageToken": { | |
| 850 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken."
, | |
| 851 "type": "string" | |
| 852 } | |
| 853 }, | |
| 854 "type": "object" | |
| 855 }, | |
| 856 "LogMetric": { | |
| 857 "description": "Describes a logs-based metric. The value of the metr
ic is the number of log entries that match a logs filter in a given time interva
l.", | |
| 858 "id": "LogMetric", | |
| 859 "properties": { | |
| 860 "description": { | |
| 861 "description": "Optional. A description of this metric, whic
h is used in documentation.", | |
| 862 "type": "string" | |
| 863 }, | |
| 864 "filter": { | |
| 865 "description": "Required. An advanced logs filter which is u
sed to match log entries. Example:\n\"resource.type=gae_app AND severity>=ERROR\
"\nThe maximum length of the filter is 20000 characters.", | |
| 866 "type": "string" | |
| 867 }, | |
| 868 "name": { | |
| 869 "description": "Required. The client-assigned metric identif
ier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limite
d to 100 characters and can include only the following characters: A-Z, a-z, 0-9
, and the special characters _-.,+!*',()%/. The forward-slash character (/) deno
tes a hierarchy of name pieces, and it cannot be the first character of the name
.The metric identifier in this field must not be URL-encoded (https://en.wikiped
ia.org/wiki/Percent-encoding). However, when the metric identifier appears as th
e [METRIC_ID] part of a metric_name API parameter, then the metric identifier mu
st be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".", | |
| 870 "type": "string" | |
| 871 }, | |
| 872 "version": { | |
| 873 "description": "Output only. The API version that created or
updated this metric. The version also dictates the syntax of the filter express
ion. When a value for this field is missing, the default value of V2 should be a
ssumed.", | |
| 874 "enum": [ | |
| 875 "V2", | |
| 876 "V1" | |
| 877 ], | |
| 878 "enumDescriptions": [ | |
| 879 "Stackdriver Logging API v2.", | |
| 880 "Stackdriver Logging API v1." | |
| 881 ], | |
| 882 "type": "string" | |
| 883 } | |
| 884 }, | |
| 885 "type": "object" | 821 "type": "object" |
| 886 }, | 822 }, |
| 887 "LogEntry": { | 823 "LogEntry": { |
| 888 "description": "An individual entry in a log.", | 824 "description": "An individual entry in a log.", |
| 889 "id": "LogEntry", | 825 "id": "LogEntry", |
| 890 "properties": { | 826 "properties": { |
| 891 "textPayload": { | 827 "resource": { |
| 892 "description": "The log entry payload, represented as a Unic
ode string (UTF-8).", | 828 "$ref": "MonitoredResource", |
| 893 "type": "string" | 829 "description": "Required. The monitored resource associated
with this log entry. Example: a log entry that reports a database error would be
associated with the monitored resource designating the particular database that
reported the error." |
| 894 }, | 830 }, |
| 895 "httpRequest": { | 831 "httpRequest": { |
| 896 "$ref": "HttpRequest", | 832 "$ref": "HttpRequest", |
| 897 "description": "Optional. Information about the HTTP request
associated with this log entry, if applicable." | 833 "description": "Optional. Information about the HTTP request
associated with this log entry, if applicable." |
| 898 }, | 834 }, |
| 899 "sourceLocation": { | |
| 900 "$ref": "LogEntrySourceLocation", | |
| 901 "description": "Optional. Source code location information a
ssociated with the log entry, if any." | |
| 902 }, | |
| 903 "jsonPayload": { | 835 "jsonPayload": { |
| 904 "additionalProperties": { | 836 "additionalProperties": { |
| 905 "description": "Properties of the object.", | 837 "description": "Properties of the object.", |
| 906 "type": "any" | 838 "type": "any" |
| 907 }, | 839 }, |
| 908 "description": "The log entry payload, represented as a stru
cture that is expressed as a JSON object.", | 840 "description": "The log entry payload, represented as a stru
cture that is expressed as a JSON object.", |
| 909 "type": "object" | 841 "type": "object" |
| 910 }, | 842 }, |
| 911 "labels": { | 843 "insertId": { |
| 912 "additionalProperties": { | 844 "description": "Optional. A unique ID for the log entry. If
you provide this field, the logging service considers other log entries in the s
ame project with the same ID as duplicates which can be removed. If omitted, Sta
ckdriver Logging will generate a unique ID for this log entry.", |
| 913 "type": "string" | |
| 914 }, | |
| 915 "description": "Optional. A set of user-defined (key, value)
data that provides additional information about the log entry.", | |
| 916 "type": "object" | |
| 917 }, | |
| 918 "trace": { | |
| 919 "description": "Optional. Resource name of the trace associa
ted with the log entry, if any. If it contains a relative resource name, the nam
e is assumed to be relative to //tracing.googleapis.com. Example: projects/my-pr
ojectid/traces/06796866738c859f2f19b7cfb3214824", | |
| 920 "type": "string" | 845 "type": "string" |
| 921 }, | 846 }, |
| 922 "logName": { | 847 "operation": { |
| 923 "description": "Required. The resource name of the log to wh
ich this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organiza
tions/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded within log
_name. Example: \"organizations/1234567890/logs/cloudresourcemanager.googleapis.
com%2Factivity\". [LOG_ID] must be less than 512 characters long and can only in
clude the following characters: upper and lower case alphanumeric characters, fo
rward-slash, underscore, hyphen, and period.For backward compatibility, if log_n
ame begins with a forward-slash, such as /projects/..., then the log entry is in
gested as usual but the forward-slash is removed. Listing the log entry will not
show the leading slash and filtering for a log name with a leading slash will n
ever return any results.", | 848 "$ref": "LogEntryOperation", |
| 849 "description": "Optional. Information about an operation ass
ociated with the log entry, if applicable." |
| 850 }, |
| 851 "textPayload": { |
| 852 "description": "The log entry payload, represented as a Unic
ode string (UTF-8).", |
| 924 "type": "string" | 853 "type": "string" |
| 925 }, | 854 }, |
| 926 "severity": { | |
| 927 "description": "Optional. The severity of the log entry. The
default value is LogSeverity.DEFAULT.", | |
| 928 "enum": [ | |
| 929 "DEFAULT", | |
| 930 "DEBUG", | |
| 931 "INFO", | |
| 932 "NOTICE", | |
| 933 "WARNING", | |
| 934 "ERROR", | |
| 935 "CRITICAL", | |
| 936 "ALERT", | |
| 937 "EMERGENCY" | |
| 938 ], | |
| 939 "enumDescriptions": [ | |
| 940 "(0) The log entry has no assigned severity level.", | |
| 941 "(100) Debug or trace information.", | |
| 942 "(200) Routine information, such as ongoing status or pe
rformance.", | |
| 943 "(300) Normal but significant events, such as start up,
shut down, or a configuration change.", | |
| 944 "(400) Warning events might cause problems.", | |
| 945 "(500) Error events are likely to cause problems.", | |
| 946 "(600) Critical events cause more severe problems or out
ages.", | |
| 947 "(700) A person must take an action immediately.", | |
| 948 "(800) One or more systems are unusable." | |
| 949 ], | |
| 950 "type": "string" | |
| 951 }, | |
| 952 "resource": { | |
| 953 "$ref": "MonitoredResource", | |
| 954 "description": "Required. The monitored resource associated
with this log entry. Example: a log entry that reports a database error would be
associated with the monitored resource designating the particular database that
reported the error." | |
| 955 }, | |
| 956 "protoPayload": { | 855 "protoPayload": { |
| 957 "additionalProperties": { | 856 "additionalProperties": { |
| 958 "description": "Properties of the object. Contains field
@type with type URL.", | 857 "description": "Properties of the object. Contains field
@type with type URL.", |
| 959 "type": "any" | 858 "type": "any" |
| 960 }, | 859 }, |
| 961 "description": "The log entry payload, represented as a prot
ocol buffer. Some Google Cloud Platform services use this field for their log en
try payloads.", | 860 "description": "The log entry payload, represented as a prot
ocol buffer. Some Google Cloud Platform services use this field for their log en
try payloads.", |
| 962 "type": "object" | 861 "type": "object" |
| 963 }, | 862 }, |
| 964 "timestamp": { | 863 "labels": { |
| 965 "description": "Optional. The time the event described by th
e log entry occurred. If omitted, Stackdriver Logging will use the time the log
entry is received.", | 864 "additionalProperties": { |
| 966 "format": "google-datetime", | 865 "type": "string" |
| 967 "type": "string" | 866 }, |
| 867 "description": "Optional. A set of user-defined (key, value)
data that provides additional information about the log entry.", |
| 868 "type": "object" |
| 968 }, | 869 }, |
| 969 "insertId": { | 870 "trace": { |
| 970 "description": "Optional. A unique ID for the log entry. If
you provide this field, the logging service considers other log entries in the s
ame project with the same ID as duplicates which can be removed. If omitted, Sta
ckdriver Logging will generate a unique ID for this log entry.", | 871 "description": "Optional. Resource name of the trace associa
ted with the log entry, if any. If it contains a relative resource name, the nam
e is assumed to be relative to //tracing.googleapis.com. Example: projects/my-pr
ojectid/traces/06796866738c859f2f19b7cfb3214824", |
| 971 "type": "string" | |
| 972 }, | |
| 973 "operation": { | |
| 974 "$ref": "LogEntryOperation", | |
| 975 "description": "Optional. Information about an operation ass
ociated with the log entry, if applicable." | |
| 976 } | |
| 977 }, | |
| 978 "type": "object" | |
| 979 }, | |
| 980 "LogLine": { | |
| 981 "description": "Application log line emitted while processing a requ
est.", | |
| 982 "id": "LogLine", | |
| 983 "properties": { | |
| 984 "time": { | |
| 985 "description": "Approximate time when this log entry was mad
e.", | |
| 986 "format": "google-datetime", | |
| 987 "type": "string" | 872 "type": "string" |
| 988 }, | 873 }, |
| 989 "severity": { | 874 "severity": { |
| 990 "description": "Severity of this log entry.", | 875 "description": "Optional. The severity of the log entry. The
default value is LogSeverity.DEFAULT.", |
| 991 "enum": [ | 876 "enum": [ |
| 992 "DEFAULT", | 877 "DEFAULT", |
| 993 "DEBUG", | 878 "DEBUG", |
| 994 "INFO", | 879 "INFO", |
| 995 "NOTICE", | 880 "NOTICE", |
| 996 "WARNING", | 881 "WARNING", |
| 997 "ERROR", | 882 "ERROR", |
| 998 "CRITICAL", | 883 "CRITICAL", |
| 999 "ALERT", | 884 "ALERT", |
| 1000 "EMERGENCY" | 885 "EMERGENCY" |
| 1001 ], | 886 ], |
| 1002 "enumDescriptions": [ | 887 "enumDescriptions": [ |
| 1003 "(0) The log entry has no assigned severity level.", | 888 "(0) The log entry has no assigned severity level.", |
| 1004 "(100) Debug or trace information.", | 889 "(100) Debug or trace information.", |
| 1005 "(200) Routine information, such as ongoing status or pe
rformance.", | 890 "(200) Routine information, such as ongoing status or pe
rformance.", |
| 1006 "(300) Normal but significant events, such as start up,
shut down, or a configuration change.", | 891 "(300) Normal but significant events, such as start up,
shut down, or a configuration change.", |
| 1007 "(400) Warning events might cause problems.", | 892 "(400) Warning events might cause problems.", |
| 1008 "(500) Error events are likely to cause problems.", | 893 "(500) Error events are likely to cause problems.", |
| 1009 "(600) Critical events cause more severe problems or out
ages.", | 894 "(600) Critical events cause more severe problems or out
ages.", |
| 1010 "(700) A person must take an action immediately.", | 895 "(700) A person must take an action immediately.", |
| 1011 "(800) One or more systems are unusable." | 896 "(800) One or more systems are unusable." |
| 1012 ], | 897 ], |
| 1013 "type": "string" | 898 "type": "string" |
| 1014 }, | 899 }, |
| 1015 "sourceLocation": { | 900 "sourceLocation": { |
| 1016 "$ref": "SourceLocation", | 901 "$ref": "LogEntrySourceLocation", |
| 1017 "description": "Where in the source code this log message wa
s written." | 902 "description": "Optional. Source code location information a
ssociated with the log entry, if any." |
| 1018 }, | 903 }, |
| 1019 "logMessage": { | 904 "timestamp": { |
| 1020 "description": "App-provided log message.", | 905 "description": "Optional. The time the event described by th
e log entry occurred. If omitted, Stackdriver Logging will use the time the log
entry is received.", |
| 906 "format": "google-datetime", |
| 907 "type": "string" |
| 908 }, |
| 909 "logName": { |
| 910 "description": "Required. The resource name of the log to wh
ich this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organiza
tions/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded within log
_name. Example: \"organizations/1234567890/logs/cloudresourcemanager.googleapis.
com%2Factivity\". [LOG_ID] must be less than 512 characters long and can only in
clude the following characters: upper and lower case alphanumeric characters, fo
rward-slash, underscore, hyphen, and period.For backward compatibility, if log_n
ame begins with a forward-slash, such as /projects/..., then the log entry is in
gested as usual but the forward-slash is removed. Listing the log entry will not
show the leading slash and filtering for a log name with a leading slash will n
ever return any results.", |
| 1021 "type": "string" | 911 "type": "string" |
| 1022 } | 912 } |
| 1023 }, | 913 }, |
| 1024 "type": "object" | 914 "type": "object" |
| 1025 }, | 915 }, |
| 1026 "SourceReference": { | 916 "SourceLocation": { |
| 1027 "description": "A reference to a particular snapshot of the source t
ree used to build and deploy an application.", | 917 "description": "Specifies a location in a source code file.", |
| 1028 "id": "SourceReference", | 918 "id": "SourceLocation", |
| 1029 "properties": { | 919 "properties": { |
| 1030 "repository": { | 920 "file": { |
| 1031 "description": "Optional. A URI string identifying the repos
itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", | 921 "description": "Source file name. Depending on the runtime e
nvironment, this might be a simple name or a fully-qualified name.", |
| 1032 "type": "string" | 922 "type": "string" |
| 1033 }, | 923 }, |
| 1034 "revisionId": { | 924 "functionName": { |
| 1035 "description": "The canonical and persistent identifier of t
he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\
"", | 925 "description": "Human-readable name of the function or metho
d being invoked, with optional context such as the class or package name. This i
nformation is used in contexts such as the logs viewer, where a file and line nu
mber are less meaningful. The format can vary by language. For example: qual.if.
ied.Class.method (Java), dir/package.func (Go), function (Python).", |
| 926 "type": "string" |
| 927 }, |
| 928 "line": { |
| 929 "description": "Line within the source file.", |
| 930 "format": "int64", |
| 1036 "type": "string" | 931 "type": "string" |
| 1037 } | 932 } |
| 1038 }, | 933 }, |
| 1039 "type": "object" | 934 "type": "object" |
| 1040 }, | 935 }, |
| 1041 "MonitoredResource": { | 936 "ListLogEntriesRequest": { |
| 1042 "description": "An object representing a resource that can be used f
or monitoring, logging, billing, or other purposes. Examples include virtual mac
hine instances, databases, and storage devices such as disks. The type field ide
ntifies a MonitoredResourceDescriptor object that describes the resource's schem
a. Information in the labels field identifies the actual resource and its attrib
utes according to the schema. For example, a particular Compute Engine VM instan
ce could be represented by the following object, because the MonitoredResourceDe
scriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type
\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n
\"zone\": \"us-central1-a\" }}\n", | 937 "description": "The parameters to ListLogEntries.", |
| 1043 "id": "MonitoredResource", | 938 "id": "ListLogEntriesRequest", |
| 1044 "properties": { | 939 "properties": { |
| 1045 "labels": { | 940 "projectIds": { |
| 1046 "additionalProperties": { | 941 "description": "Deprecated. Use resource_names instead. One
or more project identifiers or project numbers from which to retrieve log entrie
s. Example: \"my-project-1A\". If present, these project identifiers are convert
ed to resource name format and added to the list of resources in resource_names.
", |
| 942 "items": { |
| 1047 "type": "string" | 943 "type": "string" |
| 1048 }, | 944 }, |
| 1049 "description": "Required. Values for all of the labels liste
d in the associated monitored resource descriptor. For example, Cloud SQL databa
ses use the labels \"database_id\" and \"zone\".", | 945 "type": "array" |
| 1050 "type": "object" | 946 }, |
| 1051 }, | 947 "filter": { |
| 1052 "type": { | 948 "description": "Optional. A filter that chooses which log en
tries to return. See Advanced Logs Filters. Only log entries that match the filt
er are returned. An empty filter matches all log entries in the resources listed
in resource_names. Referencing a parent resource that is not listed in resource
_names will cause the filter to return no results. The maximum length of the fil
ter is 20000 characters.", |
| 1053 "description": "Required. The monitored resource type. This
field must match the type field of a MonitoredResourceDescriptor object. For exa
mple, the type of a Cloud SQL database is \"cloudsql_database\".", | 949 "type": "string" |
| 1054 "type": "string" | 950 }, |
| 951 "pageToken": { |
| 952 "description": "Optional. If present, then retrieve the next
batch of results from the preceding call to this method. pageToken must be the
value of nextPageToken from the previous response. The values of other method pa
rameters should be identical to those in the previous call.", |
| 953 "type": "string" |
| 954 }, |
| 955 "pageSize": { |
| 956 "description": "Optional. The maximum number of results to r
eturn from this request. Non-positive values are ignored. The presence of nextPa
geToken in the response indicates that more results might be available.", |
| 957 "format": "int32", |
| 958 "type": "integer" |
| 959 }, |
| 960 "orderBy": { |
| 961 "description": "Optional. How the results should be sorted.
Presently, the only permitted values are \"timestamp asc\" (default) and \"times
tamp desc\". The first option returns entries in order of increasing values of L
ogEntry.timestamp (oldest first), and the second option returns entries in order
of decreasing timestamps (newest first). Entries with equal timestamps are retu
rned in order of LogEntry.insertId.", |
| 962 "type": "string" |
| 963 }, |
| 964 "resourceNames": { |
| 965 "description": "Required. Names of one or more resources fro
m which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizations/[OR
GANIZATION_ID]\"\nProjects listed in the project_ids field are added to this lis
t.", |
| 966 "items": { |
| 967 "type": "string" |
| 968 }, |
| 969 "type": "array" |
| 1055 } | 970 } |
| 1056 }, | 971 }, |
| 1057 "type": "object" | 972 "type": "object" |
| 1058 }, | 973 }, |
| 1059 "WriteLogEntriesRequest": { | 974 "RequestLog": { |
| 1060 "description": "The parameters to WriteLogEntries.", | 975 "description": "Complete log information about a single HTTP request
to an App Engine application.", |
| 1061 "id": "WriteLogEntriesRequest", | 976 "id": "RequestLog", |
| 1062 "properties": { | 977 "properties": { |
| 1063 "labels": { | 978 "megaCycles": { |
| 1064 "additionalProperties": { | 979 "description": "Number of CPU megacycles used to process req
uest.", |
| 1065 "type": "string" | 980 "format": "int64", |
| 1066 }, | 981 "type": "string" |
| 1067 "description": "Optional. Default labels that are added to t
he labels field of all log entries in entries. If a log entry already has a labe
l with the same key as a label in this parameter, then the log entry's label is
not changed. See LogEntry.", | 982 }, |
| 1068 "type": "object" | 983 "first": { |
| 1069 }, | 984 "description": "Whether this is the first RequestLog entry f
or this request. If an active request has several RequestLog entries written to
Stackdriver Logging, then this field will be set for one of them.", |
| 1070 "entries": { | |
| 1071 "description": "Required. The log entries to write. Values s
upplied for the fields log_name, resource, and labels in this entries.write requ
est are added to those log entries that do not provide their own values for the
fields.To improve throughput and to avoid exceeding the quota limit for calls to
entries.write, you should write multiple log entries at once rather than callin
g this method for each individual log entry.", | |
| 1072 "items": { | |
| 1073 "$ref": "LogEntry" | |
| 1074 }, | |
| 1075 "type": "array" | |
| 1076 }, | |
| 1077 "logName": { | |
| 1078 "description": "Optional. A default log resource name that i
s assigned to all log entries in entries that do not specify a value for log_nam
e:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/l
ogs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project
-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourcemanager.google
apis.com%2Factivity\". For more information about log names, see LogEntry.", | |
| 1079 "type": "string" | |
| 1080 }, | |
| 1081 "partialSuccess": { | |
| 1082 "description": "Optional. Whether valid entries should be wr
itten even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENI
ED errors. If any entry is not written, the response status will be the error as
sociated with one of the failed entries and include error details in the form of
WriteLogEntriesPartialErrors.", | |
| 1083 "type": "boolean" | 985 "type": "boolean" |
| 1084 }, | 986 }, |
| 987 "versionId": { |
| 988 "description": "Version of the application that handled this
request.", |
| 989 "type": "string" |
| 990 }, |
| 991 "moduleId": { |
| 992 "description": "Module of the application that handled this
request.", |
| 993 "type": "string" |
| 994 }, |
| 995 "endTime": { |
| 996 "description": "Time when the request finished.", |
| 997 "format": "google-datetime", |
| 998 "type": "string" |
| 999 }, |
| 1000 "userAgent": { |
| 1001 "description": "User agent that made the request.", |
| 1002 "type": "string" |
| 1003 }, |
| 1004 "wasLoadingRequest": { |
| 1005 "description": "Whether this was a loading request for the i
nstance.", |
| 1006 "type": "boolean" |
| 1007 }, |
| 1008 "sourceReference": { |
| 1009 "description": "Source code for the application that handled
this request. There can be more than one source reference per deployed applicat
ion if source code is distributed among multiple repositories.", |
| 1010 "items": { |
| 1011 "$ref": "SourceReference" |
| 1012 }, |
| 1013 "type": "array" |
| 1014 }, |
| 1015 "responseSize": { |
| 1016 "description": "Size in bytes sent back to client by request
.", |
| 1017 "format": "int64", |
| 1018 "type": "string" |
| 1019 }, |
| 1020 "traceId": { |
| 1021 "description": "Stackdriver Trace identifier for this reques
t.", |
| 1022 "type": "string" |
| 1023 }, |
| 1024 "line": { |
| 1025 "description": "A list of log lines emitted by the applicati
on while serving this request.", |
| 1026 "items": { |
| 1027 "$ref": "LogLine" |
| 1028 }, |
| 1029 "type": "array" |
| 1030 }, |
| 1031 "referrer": { |
| 1032 "description": "Referrer URL of request.", |
| 1033 "type": "string" |
| 1034 }, |
| 1035 "taskQueueName": { |
| 1036 "description": "Queue name of the request, in the case of an
offline request.", |
| 1037 "type": "string" |
| 1038 }, |
| 1039 "requestId": { |
| 1040 "description": "Globally unique identifier for a request, wh
ich is based on the request start time. Request IDs for requests which started l
ater will compare greater as strings than those for requests which started earli
er.", |
| 1041 "type": "string" |
| 1042 }, |
| 1043 "nickname": { |
| 1044 "description": "The logged-in user who made the request.Most
likely, this is the part of the user's email before the @ sign. The field value
is the same for different requests from the same user, but different users can
have similar names. This information is also available to the application via th
e App Engine Users API.This field will be populated starting with App Engine 1.9
.21.", |
| 1045 "type": "string" |
| 1046 }, |
| 1047 "pendingTime": { |
| 1048 "description": "Time this request spent in the pending reque
st queue.", |
| 1049 "format": "google-duration", |
| 1050 "type": "string" |
| 1051 }, |
| 1085 "resource": { | 1052 "resource": { |
| 1086 "$ref": "MonitoredResource", | 1053 "description": "Contains the path and query portion of the U
RL that was requested. For example, if the URL was \"http://example.com/app?name
=val\", the resource would be \"/app?name=val\". The fragment identifier, which
is identified by the # character, is not included.", |
| 1087 "description": "Optional. A default monitored resource objec
t that is assigned to all log entries in entries that do not specify a value for
resource. Example:\n{ \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\
": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\nSee LogEntry
." | 1054 "type": "string" |
| 1088 } | 1055 }, |
| 1089 }, | 1056 "status": { |
| 1090 "type": "object" | 1057 "description": "HTTP response status code. Example: 200, 404
.", |
| 1091 }, | 1058 "format": "int32", |
| 1092 "LabelDescriptor": { | 1059 "type": "integer" |
| 1093 "description": "A description of a label.", | 1060 }, |
| 1094 "id": "LabelDescriptor", | 1061 "taskName": { |
| 1095 "properties": { | 1062 "description": "Task name of the request, in the case of an
offline request.", |
| 1096 "description": { | 1063 "type": "string" |
| 1097 "description": "A human-readable description for the label."
, | 1064 }, |
| 1098 "type": "string" | 1065 "urlMapEntry": { |
| 1099 }, | 1066 "description": "File or class that handled the request.", |
| 1100 "valueType": { | 1067 "type": "string" |
| 1101 "description": "The type of data that can be assigned to the
label.", | 1068 }, |
| 1102 "enum": [ | 1069 "instanceIndex": { |
| 1103 "STRING", | 1070 "description": "If the instance processing this request belo
ngs to a manually scaled module, then this is the 0-based index of the instance.
Otherwise, this value is -1.", |
| 1104 "BOOL", | 1071 "format": "int32", |
| 1105 "INT64" | 1072 "type": "integer" |
| 1106 ], | 1073 }, |
| 1107 "enumDescriptions": [ | 1074 "finished": { |
| 1108 "A variable-length string. This is the default.", | 1075 "description": "Whether this request is finished or active."
, |
| 1109 "Boolean; true or false.", | 1076 "type": "boolean" |
| 1110 "A 64-bit signed integer." | 1077 }, |
| 1111 ], | 1078 "host": { |
| 1112 "type": "string" | 1079 "description": "Internet host and port number of the resourc
e being requested.", |
| 1113 }, | 1080 "type": "string" |
| 1114 "key": { | 1081 }, |
| 1115 "description": "The label key.", | 1082 "httpVersion": { |
| 1116 "type": "string" | 1083 "description": "HTTP version of request. Example: \"HTTP/1.1
\".", |
| 1117 } | 1084 "type": "string" |
| 1118 }, | 1085 }, |
| 1119 "type": "object" | 1086 "startTime": { |
| 1120 }, | 1087 "description": "Time when the request started.", |
| 1121 "ListLogMetricsResponse": { | 1088 "format": "google-datetime", |
| 1122 "description": "Result returned from ListLogMetrics.", | 1089 "type": "string" |
| 1123 "id": "ListLogMetricsResponse", | 1090 }, |
| 1124 "properties": { | 1091 "latency": { |
| 1125 "metrics": { | 1092 "description": "Latency of the request.", |
| 1126 "description": "A list of logs-based metrics.", | 1093 "format": "google-duration", |
| 1127 "items": { | 1094 "type": "string" |
| 1128 "$ref": "LogMetric" | 1095 }, |
| 1129 }, | 1096 "ip": { |
| 1130 "type": "array" | 1097 "description": "Origin IP address.", |
| 1131 }, | 1098 "type": "string" |
| 1132 "nextPageToken": { | 1099 }, |
| 1133 "description": "If there might be more results than appear i
n this response, then nextPageToken is included. To get the next set of results,
call this method again using the value of nextPageToken as pageToken.", | 1100 "appId": { |
| 1134 "type": "string" | 1101 "description": "Application that handled this request.", |
| 1135 } | 1102 "type": "string" |
| 1136 }, | 1103 }, |
| 1137 "type": "object" | 1104 "appEngineRelease": { |
| 1138 }, | 1105 "description": "App Engine release version.", |
| 1139 "MonitoredResourceDescriptor": { | 1106 "type": "string" |
| 1140 "description": "An object that describes the schema of a MonitoredRe
source 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_i
nstance\" and specifies the use of the labels \"instance_id\" and \"zone\" to id
entify particular VM instances.Different APIs can support different monitored re
source types. APIs generally provide a list method that returns the monitored re
source descriptors used by the API.", | 1107 }, |
| 1141 "id": "MonitoredResourceDescriptor", | 1108 "method": { |
| 1142 "properties": { | 1109 "description": "Request method. Example: \"GET\", \"HEAD\",
\"PUT\", \"POST\", \"DELETE\".", |
| 1143 "displayName": { | 1110 "type": "string" |
| 1144 "description": "Optional. A concise name for the monitored r
esource type that might be displayed in user interfaces. It should be a Title Ca
sed Noun Phrase, without any article or other determiners. For example, \"Google
Cloud SQL Database\".", | 1111 }, |
| 1145 "type": "string" | 1112 "cost": { |
| 1146 }, | 1113 "description": "An indication of the relative cost of servin
g this request.", |
| 1147 "description": { | 1114 "format": "double", |
| 1148 "description": "Optional. A detailed description of the moni
tored resource type that might be used in documentation.", | 1115 "type": "number" |
| 1149 "type": "string" | 1116 }, |
| 1150 }, | 1117 "instanceId": { |
| 1151 "labels": { | 1118 "description": "An identifier for the instance that handled
the request.", |
| 1152 "description": "Required. A set of labels used to describe i
nstances of this monitored resource type. For example, an individual Google Clou
d SQL database is identified by values for the labels \"database_id\" and \"zone
\".", | 1119 "type": "string" |
| 1153 "items": { | 1120 } |
| 1154 "$ref": "LabelDescriptor" | 1121 }, |
| 1155 }, | |
| 1156 "type": "array" | |
| 1157 }, | |
| 1158 "type": { | |
| 1159 "description": "Required. The monitored resource type. For e
xample, the type \"cloudsql_database\" represents databases in Google Cloud SQL.
The maximum length of this value is 256 characters.", | |
| 1160 "type": "string" | |
| 1161 }, | |
| 1162 "name": { | |
| 1163 "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 \"monitored
ResourceDescriptors/{type}\".", | |
| 1164 "type": "string" | |
| 1165 } | |
| 1166 }, | |
| 1167 "type": "object" | 1122 "type": "object" |
| 1168 }, | 1123 }, |
| 1169 "ListMonitoredResourceDescriptorsResponse": { | 1124 "ListMonitoredResourceDescriptorsResponse": { |
| 1170 "description": "Result returned from ListMonitoredResourceDescriptor
s.", | 1125 "description": "Result returned from ListMonitoredResourceDescriptor
s.", |
| 1171 "id": "ListMonitoredResourceDescriptorsResponse", | 1126 "id": "ListMonitoredResourceDescriptorsResponse", |
| 1172 "properties": { | 1127 "properties": { |
| 1173 "nextPageToken": { | |
| 1174 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken."
, | |
| 1175 "type": "string" | |
| 1176 }, | |
| 1177 "resourceDescriptors": { | 1128 "resourceDescriptors": { |
| 1178 "description": "A list of resource descriptors.", | 1129 "description": "A list of resource descriptors.", |
| 1179 "items": { | 1130 "items": { |
| 1180 "$ref": "MonitoredResourceDescriptor" | 1131 "$ref": "MonitoredResourceDescriptor" |
| 1181 }, | 1132 }, |
| 1182 "type": "array" | 1133 "type": "array" |
| 1134 }, |
| 1135 "nextPageToken": { |
| 1136 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken."
, |
| 1137 "type": "string" |
| 1183 } | 1138 } |
| 1184 }, | 1139 }, |
| 1185 "type": "object" | 1140 "type": "object" |
| 1141 }, |
| 1142 "SourceReference": { |
| 1143 "description": "A reference to a particular snapshot of the source t
ree used to build and deploy an application.", |
| 1144 "id": "SourceReference", |
| 1145 "properties": { |
| 1146 "repository": { |
| 1147 "description": "Optional. A URI string identifying the repos
itory. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", |
| 1148 "type": "string" |
| 1149 }, |
| 1150 "revisionId": { |
| 1151 "description": "The canonical and persistent identifier of t
he deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\
"", |
| 1152 "type": "string" |
| 1153 } |
| 1154 }, |
| 1155 "type": "object" |
| 1186 }, | 1156 }, |
| 1187 "LogEntryOperation": { | 1157 "LogEntryOperation": { |
| 1188 "description": "Additional information about a potentially long-runn
ing operation with which a log entry is associated.", | 1158 "description": "Additional information about a potentially long-runn
ing operation with which a log entry is associated.", |
| 1189 "id": "LogEntryOperation", | 1159 "id": "LogEntryOperation", |
| 1190 "properties": { | 1160 "properties": { |
| 1161 "last": { |
| 1162 "description": "Optional. Set this to True if this is the la
st log entry in the operation.", |
| 1163 "type": "boolean" |
| 1164 }, |
| 1165 "id": { |
| 1166 "description": "Optional. An arbitrary operation identifier.
Log entries with the same identifier are assumed to be part of the same operati
on.", |
| 1167 "type": "string" |
| 1168 }, |
| 1191 "producer": { | 1169 "producer": { |
| 1192 "description": "Optional. An arbitrary producer identifier.
The combination of id and producer must be globally unique. Examples for produce
r: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".", | 1170 "description": "Optional. An arbitrary producer identifier.
The combination of id and producer must be globally unique. Examples for produce
r: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".", |
| 1193 "type": "string" | 1171 "type": "string" |
| 1194 }, | 1172 }, |
| 1195 "last": { | |
| 1196 "description": "Optional. Set this to True if this is the la
st log entry in the operation.", | |
| 1197 "type": "boolean" | |
| 1198 }, | |
| 1199 "first": { | 1173 "first": { |
| 1200 "description": "Optional. Set this to True if this is the fi
rst log entry in the operation.", | 1174 "description": "Optional. Set this to True if this is the fi
rst log entry in the operation.", |
| 1201 "type": "boolean" | 1175 "type": "boolean" |
| 1202 }, | 1176 } |
| 1203 "id": { | 1177 }, |
| 1204 "description": "Optional. An arbitrary operation identifier.
Log entries with the same identifier are assumed to be part of the same operati
on.", | 1178 "type": "object" |
| 1205 "type": "string" | 1179 }, |
| 1206 } | 1180 "LogMetric": { |
| 1207 }, | 1181 "description": "Describes a logs-based metric. The value of the metr
ic is the number of log entries that match a logs filter in a given time interva
l.", |
| 1208 "type": "object" | 1182 "id": "LogMetric", |
| 1209 }, | 1183 "properties": { |
| 1210 "Empty": { | 1184 "version": { |
| 1211 "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 Fo
o {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe J
SON representation for Empty is empty JSON object {}.", | 1185 "description": "Output only. The API version that created or
updated this metric. The version also dictates the syntax of the filter express
ion. When a value for this field is missing, the default value of V2 should be a
ssumed.", |
| 1212 "id": "Empty", | 1186 "enum": [ |
| 1187 "V2", |
| 1188 "V1" |
| 1189 ], |
| 1190 "enumDescriptions": [ |
| 1191 "Stackdriver Logging API v2.", |
| 1192 "Stackdriver Logging API v1." |
| 1193 ], |
| 1194 "type": "string" |
| 1195 }, |
| 1196 "filter": { |
| 1197 "description": "Required. An advanced logs filter which is u
sed to match log entries. Example:\n\"resource.type=gae_app AND severity>=ERROR\
"\nThe maximum length of the filter is 20000 characters.", |
| 1198 "type": "string" |
| 1199 }, |
| 1200 "name": { |
| 1201 "description": "Required. The client-assigned metric identif
ier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limite
d to 100 characters and can include only the following characters: A-Z, a-z, 0-9
, and the special characters _-.,+!*',()%/. The forward-slash character (/) deno
tes a hierarchy of name pieces, and it cannot be the first character of the name
.The metric identifier in this field must not be URL-encoded (https://en.wikiped
ia.org/wiki/Percent-encoding). However, when the metric identifier appears as th
e [METRIC_ID] part of a metric_name API parameter, then the metric identifier mu
st be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".", |
| 1202 "type": "string" |
| 1203 }, |
| 1204 "description": { |
| 1205 "description": "Optional. A description of this metric, whic
h is used in documentation.", |
| 1206 "type": "string" |
| 1207 } |
| 1208 }, |
| 1209 "type": "object" |
| 1210 }, |
| 1211 "WriteLogEntriesResponse": { |
| 1212 "description": "Result returned from WriteLogEntries. empty", |
| 1213 "id": "WriteLogEntriesResponse", |
| 1213 "properties": {}, | 1214 "properties": {}, |
| 1214 "type": "object" | 1215 "type": "object" |
| 1215 }, | 1216 }, |
| 1217 "MonitoredResource": { |
| 1218 "description": "An object representing a resource that can be used f
or monitoring, logging, billing, or other purposes. Examples include virtual mac
hine instances, databases, and storage devices such as disks. The type field ide
ntifies a MonitoredResourceDescriptor object that describes the resource's schem
a. Information in the labels field identifies the actual resource and its attrib
utes according to the schema. For example, a particular Compute Engine VM instan
ce could be represented by the following object, because the MonitoredResourceDe
scriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type
\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n
\"zone\": \"us-central1-a\" }}\n", |
| 1219 "id": "MonitoredResource", |
| 1220 "properties": { |
| 1221 "labels": { |
| 1222 "additionalProperties": { |
| 1223 "type": "string" |
| 1224 }, |
| 1225 "description": "Required. Values for all of the labels liste
d in the associated monitored resource descriptor. For example, Cloud SQL databa
ses use the labels \"database_id\" and \"zone\".", |
| 1226 "type": "object" |
| 1227 }, |
| 1228 "type": { |
| 1229 "description": "Required. The monitored resource type. This
field must match the type field of a MonitoredResourceDescriptor object. For exa
mple, the type of a Cloud SQL database is \"cloudsql_database\".", |
| 1230 "type": "string" |
| 1231 } |
| 1232 }, |
| 1233 "type": "object" |
| 1234 }, |
| 1235 "LogSink": { |
| 1236 "description": "Describes a sink used to export log entries to one o
f the following destinations in any project: a Cloud Storage bucket, a BigQuery
dataset, or a Cloud Pub/Sub topic. A logs filter controls which log entries are
exported. The sink must be created within a project or organization.", |
| 1237 "id": "LogSink", |
| 1238 "properties": { |
| 1239 "name": { |
| 1240 "description": "Required. The client-assigned sink identifie
r, unique within the project. Example: \"my-syslog-errors-to-pubsub\". Sink iden
tifiers are limited to 100 characters and can include only the following charact
ers: upper and lower-case alphanumeric characters, underscores, hyphens, and per
iods.", |
| 1241 "type": "string" |
| 1242 }, |
| 1243 "destination": { |
| 1244 "description": "Required. The export destination:\n\"storage
.googleapis.com/[GCS_BUCKET]\"\n\"bigquery.googleapis.com/projects/[PROJECT_ID]/
datasets/[DATASET]\"\n\"pubsub.googleapis.com/projects/[PROJECT_ID]/topics/[TOPI
C_ID]\"\nThe sink's writer_identity, set when the sink is created, must have per
mission to write to the destination or else the log entries are not exported. Fo
r more information, see Exporting Logs With Sinks.", |
| 1245 "type": "string" |
| 1246 }, |
| 1247 "filter": { |
| 1248 "description": "Optional. An advanced logs filter. The only
exported log entries are those that are in the resource owning the sink and that
match the filter. The filter must use the log entry format specified by the out
put_version_format parameter. For example, in the v2 format:\nlogName=\"projects
/[PROJECT_ID]/logs/[LOG_ID]\" AND severity>=ERROR\n", |
| 1249 "type": "string" |
| 1250 }, |
| 1251 "endTime": { |
| 1252 "description": "Optional. The time at which this sink will s
top exporting log entries. Log entries are exported only if their timestamp is e
arlier than the end time. If this field is not supplied, there is no end time. I
f both a start time and an end time are provided, then the end time must be late
r than the start time.", |
| 1253 "format": "google-datetime", |
| 1254 "type": "string" |
| 1255 }, |
| 1256 "writerIdentity": { |
| 1257 "description": "Output only. An IAM identity—a service
account or group—under which Stackdriver Logging writes the exported log
entries to the sink's destination. This field is set by sinks.create and sinks.u
pdate, based on the setting of unique_writer_identity in those methods.Until you
grant this identity write-access to the destination, log entry exports from thi
s sink will fail. For more information, see Granting access for a resource. Cons
ult the destination service's documentation to determine the appropriate IAM rol
es to assign to the identity.", |
| 1258 "type": "string" |
| 1259 }, |
| 1260 "startTime": { |
| 1261 "description": "Optional. The time at which this sink will b
egin exporting log entries. Log entries are exported only if their timestamp is
not earlier than the start time. The default value of this field is the time the
sink is created or updated.", |
| 1262 "format": "google-datetime", |
| 1263 "type": "string" |
| 1264 }, |
| 1265 "outputVersionFormat": { |
| 1266 "description": "Optional. The log entry format to use for th
is sink's exported log entries. The v2 format is used by default. The v1 format
is deprecated and should be used only as part of a migration effort to v2. See M
igration to the v2 API.", |
| 1267 "enum": [ |
| 1268 "VERSION_FORMAT_UNSPECIFIED", |
| 1269 "V2", |
| 1270 "V1" |
| 1271 ], |
| 1272 "enumDescriptions": [ |
| 1273 "An unspecified format version that will default to V2."
, |
| 1274 "LogEntry version 2 format.", |
| 1275 "LogEntry version 1 format." |
| 1276 ], |
| 1277 "type": "string" |
| 1278 } |
| 1279 }, |
| 1280 "type": "object" |
| 1281 }, |
| 1282 "WriteLogEntriesRequest": { |
| 1283 "description": "The parameters to WriteLogEntries.", |
| 1284 "id": "WriteLogEntriesRequest", |
| 1285 "properties": { |
| 1286 "labels": { |
| 1287 "additionalProperties": { |
| 1288 "type": "string" |
| 1289 }, |
| 1290 "description": "Optional. Default labels that are added to t
he labels field of all log entries in entries. If a log entry already has a labe
l with the same key as a label in this parameter, then the log entry's label is
not changed. See LogEntry.", |
| 1291 "type": "object" |
| 1292 }, |
| 1293 "resource": { |
| 1294 "$ref": "MonitoredResource", |
| 1295 "description": "Optional. A default monitored resource objec
t that is assigned to all log entries in entries that do not specify a value for
resource. Example:\n{ \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\
": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\nSee LogEntry
." |
| 1296 }, |
| 1297 "logName": { |
| 1298 "description": "Optional. A default log resource name that i
s assigned to all log entries in entries that do not specify a value for log_nam
e:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/l
ogs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project
-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourcemanager.google
apis.com%2Factivity\". For more information about log names, see LogEntry.", |
| 1299 "type": "string" |
| 1300 }, |
| 1301 "entries": { |
| 1302 "description": "Required. The log entries to write. Values s
upplied for the fields log_name, resource, and labels in this entries.write requ
est are added to those log entries that do not provide their own values for the
fields.To improve throughput and to avoid exceeding the quota limit for calls to
entries.write, you should write multiple log entries at once rather than callin
g this method for each individual log entry.", |
| 1303 "items": { |
| 1304 "$ref": "LogEntry" |
| 1305 }, |
| 1306 "type": "array" |
| 1307 }, |
| 1308 "partialSuccess": { |
| 1309 "description": "Optional. Whether valid entries should be wr
itten even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENI
ED errors. If any entry is not written, the response status will be the error as
sociated with one of the failed entries and include error details in the form of
WriteLogEntriesPartialErrors.", |
| 1310 "type": "boolean" |
| 1311 } |
| 1312 }, |
| 1313 "type": "object" |
| 1314 }, |
| 1315 "ListLogsResponse": { |
| 1316 "description": "Result returned from ListLogs.", |
| 1317 "id": "ListLogsResponse", |
| 1318 "properties": { |
| 1319 "nextPageToken": { |
| 1320 "description": "If there might be more results than those ap
pearing in this response, then nextPageToken is included. To get the next set of
results, call this method again using the value of nextPageToken as pageToken."
, |
| 1321 "type": "string" |
| 1322 }, |
| 1323 "logNames": { |
| 1324 "description": "A list of log names. For example, \"projects
/my-project/syslog\" or \"organizations/123/cloudresourcemanager.googleapis.com%
2Factivity\".", |
| 1325 "items": { |
| 1326 "type": "string" |
| 1327 }, |
| 1328 "type": "array" |
| 1329 } |
| 1330 }, |
| 1331 "type": "object" |
| 1332 }, |
| 1333 "ListSinksResponse": { |
| 1334 "description": "Result returned from ListSinks.", |
| 1335 "id": "ListSinksResponse", |
| 1336 "properties": { |
| 1337 "nextPageToken": { |
| 1338 "description": "If there might be more results than appear i
n this response, then nextPageToken is included. To get the next set of results,
call the same method again using the value of nextPageToken as pageToken.", |
| 1339 "type": "string" |
| 1340 }, |
| 1341 "sinks": { |
| 1342 "description": "A list of sinks.", |
| 1343 "items": { |
| 1344 "$ref": "LogSink" |
| 1345 }, |
| 1346 "type": "array" |
| 1347 } |
| 1348 }, |
| 1349 "type": "object" |
| 1350 }, |
| 1216 "HttpRequest": { | 1351 "HttpRequest": { |
| 1217 "description": "A common proto for logging HTTP requests. Only conta
ins semantics defined by the HTTP specification. Product-specific logging inform
ation MUST be defined in a separate message.", | 1352 "description": "A common proto for logging HTTP requests. Only conta
ins semantics defined by the HTTP specification. Product-specific logging inform
ation MUST be defined in a separate message.", |
| 1218 "id": "HttpRequest", | 1353 "id": "HttpRequest", |
| 1219 "properties": { | 1354 "properties": { |
| 1220 "cacheLookup": { | 1355 "cacheLookup": { |
| 1221 "description": "Whether or not a cache lookup was attempted.
", | 1356 "description": "Whether or not a cache lookup was attempted.
", |
| 1222 "type": "boolean" | 1357 "type": "boolean" |
| 1223 }, | 1358 }, |
| 1224 "responseSize": { | 1359 "cacheHit": { |
| 1225 "description": "The size of the HTTP response message sent b
ack to the client, in bytes, including the response headers and the response bod
y.", | 1360 "description": "Whether or not an entity was served from cac
he (with or without validation).", |
| 1226 "format": "int64", | 1361 "type": "boolean" |
| 1227 "type": "string" | 1362 }, |
| 1363 "cacheValidatedWithOriginServer": { |
| 1364 "description": "Whether or not the response was validated wi
th the origin server before being served from cache. This field is only meaningf
ul if cache_hit is True.", |
| 1365 "type": "boolean" |
| 1228 }, | 1366 }, |
| 1229 "status": { | 1367 "status": { |
| 1230 "description": "The response code indicating the status of r
esponse. Examples: 200, 404.", | 1368 "description": "The response code indicating the status of r
esponse. Examples: 200, 404.", |
| 1231 "format": "int32", | 1369 "format": "int32", |
| 1232 "type": "integer" | 1370 "type": "integer" |
| 1233 }, | 1371 }, |
| 1234 "cacheValidatedWithOriginServer": { | |
| 1235 "description": "Whether or not the response was validated wi
th the origin server before being served from cache. This field is only meaningf
ul if cache_hit is True.", | |
| 1236 "type": "boolean" | |
| 1237 }, | |
| 1238 "referer": { | 1372 "referer": { |
| 1239 "description": "The referer URL of the request, as defined i
n HTTP/1.1 Header Field Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616
-sec14.html).", | 1373 "description": "The referer URL of the request, as defined i
n HTTP/1.1 Header Field Definitions (http://www.w3.org/Protocols/rfc2616/rfc2616
-sec14.html).", |
| 1240 "type": "string" | 1374 "type": "string" |
| 1241 }, | 1375 }, |
| 1242 "cacheHit": { | |
| 1243 "description": "Whether or not an entity was served from cac
he (with or without validation).", | |
| 1244 "type": "boolean" | |
| 1245 }, | |
| 1246 "requestUrl": { | |
| 1247 "description": "The scheme (http, https), the host name, the
path and the query portion of the URL that was requested. Example: \"http://exa
mple.com/some/info?color=red\".", | |
| 1248 "type": "string" | |
| 1249 }, | |
| 1250 "latency": { | 1376 "latency": { |
| 1251 "description": "The request processing latency on the server
, from the time the request was received until the response was sent.", | 1377 "description": "The request processing latency on the server
, from the time the request was received until the response was sent.", |
| 1252 "format": "google-duration", | 1378 "format": "google-duration", |
| 1253 "type": "string" | 1379 "type": "string" |
| 1254 }, | 1380 }, |
| 1381 "userAgent": { |
| 1382 "description": "The user agent sent by the client. Example:
\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"."
, |
| 1383 "type": "string" |
| 1384 }, |
| 1255 "cacheFillBytes": { | 1385 "cacheFillBytes": { |
| 1256 "description": "The number of HTTP response bytes inserted i
nto cache. Set only when a cache fill was attempted.", | 1386 "description": "The number of HTTP response bytes inserted i
nto cache. Set only when a cache fill was attempted.", |
| 1257 "format": "int64", | 1387 "format": "int64", |
| 1258 "type": "string" | 1388 "type": "string" |
| 1259 }, | 1389 }, |
| 1260 "requestMethod": { | 1390 "requestMethod": { |
| 1261 "description": "The request method. Examples: \"GET\", \"HEA
D\", \"PUT\", \"POST\".", | 1391 "description": "The request method. Examples: \"GET\", \"HEA
D\", \"PUT\", \"POST\".", |
| 1262 "type": "string" | 1392 "type": "string" |
| 1263 }, | 1393 }, |
| 1264 "remoteIp": { | 1394 "responseSize": { |
| 1265 "description": "The IP address (IPv4 or IPv6) of the client
that issued the HTTP request. Examples: \"192.168.1.1\", \"FE80::0202:B3FF:FE1E:
8329\".", | 1395 "description": "The size of the HTTP response message sent b
ack to the client, in bytes, including the response headers and the response bod
y.", |
| 1266 "type": "string" | 1396 "format": "int64", |
| 1267 }, | |
| 1268 "serverIp": { | |
| 1269 "description": "The IP address (IPv4 or IPv6) of the origin
server that the request was sent to.", | |
| 1270 "type": "string" | |
| 1271 }, | |
| 1272 "userAgent": { | |
| 1273 "description": "The user agent sent by the client. Example:
\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"."
, | |
| 1274 "type": "string" | 1397 "type": "string" |
| 1275 }, | 1398 }, |
| 1276 "requestSize": { | 1399 "requestSize": { |
| 1277 "description": "The size of the HTTP request message in byte
s, including the request headers and the request body.", | 1400 "description": "The size of the HTTP request message in byte
s, including the request headers and the request body.", |
| 1278 "format": "int64", | 1401 "format": "int64", |
| 1279 "type": "string" | 1402 "type": "string" |
| 1403 }, |
| 1404 "requestUrl": { |
| 1405 "description": "The scheme (http, https), the host name, the
path and the query portion of the URL that was requested. Example: \"http://exa
mple.com/some/info?color=red\".", |
| 1406 "type": "string" |
| 1407 }, |
| 1408 "serverIp": { |
| 1409 "description": "The IP address (IPv4 or IPv6) of the origin
server that the request was sent to.", |
| 1410 "type": "string" |
| 1411 }, |
| 1412 "remoteIp": { |
| 1413 "description": "The IP address (IPv4 or IPv6) of the client
that issued the HTTP request. Examples: \"192.168.1.1\", \"FE80::0202:B3FF:FE1E:
8329\".", |
| 1414 "type": "string" |
| 1415 } |
| 1416 }, |
| 1417 "type": "object" |
| 1418 }, |
| 1419 "LabelDescriptor": { |
| 1420 "description": "A description of a label.", |
| 1421 "id": "LabelDescriptor", |
| 1422 "properties": { |
| 1423 "key": { |
| 1424 "description": "The label key.", |
| 1425 "type": "string" |
| 1426 }, |
| 1427 "description": { |
| 1428 "description": "A human-readable description for the label."
, |
| 1429 "type": "string" |
| 1430 }, |
| 1431 "valueType": { |
| 1432 "description": "The type of data that can be assigned to the
label.", |
| 1433 "enum": [ |
| 1434 "STRING", |
| 1435 "BOOL", |
| 1436 "INT64" |
| 1437 ], |
| 1438 "enumDescriptions": [ |
| 1439 "A variable-length string. This is the default.", |
| 1440 "Boolean; true or false.", |
| 1441 "A 64-bit signed integer." |
| 1442 ], |
| 1443 "type": "string" |
| 1444 } |
| 1445 }, |
| 1446 "type": "object" |
| 1447 }, |
| 1448 "MonitoredResourceDescriptor": { |
| 1449 "description": "An object that describes the schema of a MonitoredRe
source 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_i
nstance\" and specifies the use of the labels \"instance_id\" and \"zone\" to id
entify particular VM instances.Different APIs can support different monitored re
source types. APIs generally provide a list method that returns the monitored re
source descriptors used by the API.", |
| 1450 "id": "MonitoredResourceDescriptor", |
| 1451 "properties": { |
| 1452 "labels": { |
| 1453 "description": "Required. A set of labels used to describe i
nstances of this monitored resource type. For example, an individual Google Clou
d SQL database is identified by values for the labels \"database_id\" and \"zone
\".", |
| 1454 "items": { |
| 1455 "$ref": "LabelDescriptor" |
| 1456 }, |
| 1457 "type": "array" |
| 1458 }, |
| 1459 "name": { |
| 1460 "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 \"monitored
ResourceDescriptors/{type}\".", |
| 1461 "type": "string" |
| 1462 }, |
| 1463 "displayName": { |
| 1464 "description": "Optional. A concise name for the monitored r
esource type that might be displayed in user interfaces. It should be a Title Ca
sed Noun Phrase, without any article or other determiners. For example, \"Google
Cloud SQL Database\".", |
| 1465 "type": "string" |
| 1466 }, |
| 1467 "description": { |
| 1468 "description": "Optional. A detailed description of the moni
tored resource type that might be used in documentation.", |
| 1469 "type": "string" |
| 1470 }, |
| 1471 "type": { |
| 1472 "description": "Required. The monitored resource type. For e
xample, the type \"cloudsql_database\" represents databases in Google Cloud SQL.
The maximum length of this value is 256 characters.", |
| 1473 "type": "string" |
| 1280 } | 1474 } |
| 1281 }, | 1475 }, |
| 1282 "type": "object" | 1476 "type": "object" |
| 1283 }, | 1477 }, |
| 1284 "LogEntrySourceLocation": { | 1478 "LogEntrySourceLocation": { |
| 1285 "description": "Additional information about the source code locatio
n that produced the log entry.", | 1479 "description": "Additional information about the source code locatio
n that produced the log entry.", |
| 1286 "id": "LogEntrySourceLocation", | 1480 "id": "LogEntrySourceLocation", |
| 1287 "properties": { | 1481 "properties": { |
| 1482 "file": { |
| 1483 "description": "Optional. Source file name. Depending on the
runtime environment, this might be a simple name or a fully-qualified name.", |
| 1484 "type": "string" |
| 1485 }, |
| 1288 "function": { | 1486 "function": { |
| 1289 "description": "Optional. Human-readable name of the functio
n or method being invoked, with optional context such as the class or package na
me. This information may be used in contexts such as the logs viewer, where a fi
le and line number are less meaningful. The format can vary by language. For exa
mple: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python).
", | 1487 "description": "Optional. Human-readable name of the functio
n or method being invoked, with optional context such as the class or package na
me. This information may be used in contexts such as the logs viewer, where a fi
le and line number are less meaningful. The format can vary by language. For exa
mple: qual.if.ied.Class.method (Java), dir/package.func (Go), function (Python).
", |
| 1290 "type": "string" | 1488 "type": "string" |
| 1291 }, | 1489 }, |
| 1292 "file": { | |
| 1293 "description": "Optional. Source file name. Depending on the
runtime environment, this might be a simple name or a fully-qualified name.", | |
| 1294 "type": "string" | |
| 1295 }, | |
| 1296 "line": { | 1490 "line": { |
| 1297 "description": "Optional. Line within the source file. 1-bas
ed; 0 indicates no line number available.", | 1491 "description": "Optional. Line within the source file. 1-bas
ed; 0 indicates no line number available.", |
| 1298 "format": "int64", | 1492 "format": "int64", |
| 1299 "type": "string" | 1493 "type": "string" |
| 1300 } | 1494 } |
| 1301 }, | 1495 }, |
| 1302 "type": "object" | |
| 1303 }, | |
| 1304 "RequestLog": { | |
| 1305 "description": "Complete log information about a single HTTP request
to an App Engine application.", | |
| 1306 "id": "RequestLog", | |
| 1307 "properties": { | |
| 1308 "responseSize": { | |
| 1309 "description": "Size in bytes sent back to client by request
.", | |
| 1310 "format": "int64", | |
| 1311 "type": "string" | |
| 1312 }, | |
| 1313 "requestId": { | |
| 1314 "description": "Globally unique identifier for a request, wh
ich is based on the request start time. Request IDs for requests which started l
ater will compare greater as strings than those for requests which started earli
er.", | |
| 1315 "type": "string" | |
| 1316 }, | |
| 1317 "first": { | |
| 1318 "description": "Whether this is the first RequestLog entry f
or this request. If an active request has several RequestLog entries written to
Stackdriver Logging, then this field will be set for one of them.", | |
| 1319 "type": "boolean" | |
| 1320 }, | |
| 1321 "method": { | |
| 1322 "description": "Request method. Example: \"GET\", \"HEAD\",
\"PUT\", \"POST\", \"DELETE\".", | |
| 1323 "type": "string" | |
| 1324 }, | |
| 1325 "versionId": { | |
| 1326 "description": "Version of the application that handled this
request.", | |
| 1327 "type": "string" | |
| 1328 }, | |
| 1329 "status": { | |
| 1330 "description": "HTTP response status code. Example: 200, 404
.", | |
| 1331 "format": "int32", | |
| 1332 "type": "integer" | |
| 1333 }, | |
| 1334 "wasLoadingRequest": { | |
| 1335 "description": "Whether this was a loading request for the i
nstance.", | |
| 1336 "type": "boolean" | |
| 1337 }, | |
| 1338 "ip": { | |
| 1339 "description": "Origin IP address.", | |
| 1340 "type": "string" | |
| 1341 }, | |
| 1342 "nickname": { | |
| 1343 "description": "The logged-in user who made the request.Most
likely, this is the part of the user's email before the @ sign. The field value
is the same for different requests from the same user, but different users can
have similar names. This information is also available to the application via th
e App Engine Users API.This field will be populated starting with App Engine 1.9
.21.", | |
| 1344 "type": "string" | |
| 1345 }, | |
| 1346 "taskQueueName": { | |
| 1347 "description": "Queue name of the request, in the case of an
offline request.", | |
| 1348 "type": "string" | |
| 1349 }, | |
| 1350 "pendingTime": { | |
| 1351 "description": "Time this request spent in the pending reque
st queue.", | |
| 1352 "format": "google-duration", | |
| 1353 "type": "string" | |
| 1354 }, | |
| 1355 "instanceIndex": { | |
| 1356 "description": "If the instance processing this request belo
ngs to a manually scaled module, then this is the 0-based index of the instance.
Otherwise, this value is -1.", | |
| 1357 "format": "int32", | |
| 1358 "type": "integer" | |
| 1359 }, | |
| 1360 "sourceReference": { | |
| 1361 "description": "Source code for the application that handled
this request. There can be more than one source reference per deployed applicat
ion if source code is distributed among multiple repositories.", | |
| 1362 "items": { | |
| 1363 "$ref": "SourceReference" | |
| 1364 }, | |
| 1365 "type": "array" | |
| 1366 }, | |
| 1367 "moduleId": { | |
| 1368 "description": "Module of the application that handled this
request.", | |
| 1369 "type": "string" | |
| 1370 }, | |
| 1371 "host": { | |
| 1372 "description": "Internet host and port number of the resourc
e being requested.", | |
| 1373 "type": "string" | |
| 1374 }, | |
| 1375 "latency": { | |
| 1376 "description": "Latency of the request.", | |
| 1377 "format": "google-duration", | |
| 1378 "type": "string" | |
| 1379 }, | |
| 1380 "urlMapEntry": { | |
| 1381 "description": "File or class that handled the request.", | |
| 1382 "type": "string" | |
| 1383 }, | |
| 1384 "endTime": { | |
| 1385 "description": "Time when the request finished.", | |
| 1386 "format": "google-datetime", | |
| 1387 "type": "string" | |
| 1388 }, | |
| 1389 "line": { | |
| 1390 "description": "A list of log lines emitted by the applicati
on while serving this request.", | |
| 1391 "items": { | |
| 1392 "$ref": "LogLine" | |
| 1393 }, | |
| 1394 "type": "array" | |
| 1395 }, | |
| 1396 "megaCycles": { | |
| 1397 "description": "Number of CPU megacycles used to process req
uest.", | |
| 1398 "format": "int64", | |
| 1399 "type": "string" | |
| 1400 }, | |
| 1401 "appId": { | |
| 1402 "description": "Application that handled this request.", | |
| 1403 "type": "string" | |
| 1404 }, | |
| 1405 "traceId": { | |
| 1406 "description": "Stackdriver Trace identifier for this reques
t.", | |
| 1407 "type": "string" | |
| 1408 }, | |
| 1409 "taskName": { | |
| 1410 "description": "Task name of the request, in the case of an
offline request.", | |
| 1411 "type": "string" | |
| 1412 }, | |
| 1413 "cost": { | |
| 1414 "description": "An indication of the relative cost of servin
g this request.", | |
| 1415 "format": "double", | |
| 1416 "type": "number" | |
| 1417 }, | |
| 1418 "instanceId": { | |
| 1419 "description": "An identifier for the instance that handled
the request.", | |
| 1420 "type": "string" | |
| 1421 }, | |
| 1422 "startTime": { | |
| 1423 "description": "Time when the request started.", | |
| 1424 "format": "google-datetime", | |
| 1425 "type": "string" | |
| 1426 }, | |
| 1427 "appEngineRelease": { | |
| 1428 "description": "App Engine release version.", | |
| 1429 "type": "string" | |
| 1430 }, | |
| 1431 "resource": { | |
| 1432 "description": "Contains the path and query portion of the U
RL that was requested. For example, if the URL was \"http://example.com/app?name
=val\", the resource would be \"/app?name=val\". The fragment identifier, which
is identified by the # character, is not included.", | |
| 1433 "type": "string" | |
| 1434 }, | |
| 1435 "httpVersion": { | |
| 1436 "description": "HTTP version of request. Example: \"HTTP/1.1
\".", | |
| 1437 "type": "string" | |
| 1438 }, | |
| 1439 "referrer": { | |
| 1440 "description": "Referrer URL of request.", | |
| 1441 "type": "string" | |
| 1442 }, | |
| 1443 "userAgent": { | |
| 1444 "description": "User agent that made the request.", | |
| 1445 "type": "string" | |
| 1446 }, | |
| 1447 "finished": { | |
| 1448 "description": "Whether this request is finished or active."
, | |
| 1449 "type": "boolean" | |
| 1450 } | |
| 1451 }, | |
| 1452 "type": "object" | |
| 1453 }, | |
| 1454 "WriteLogEntriesResponse": { | |
| 1455 "description": "Result returned from WriteLogEntries. empty", | |
| 1456 "id": "WriteLogEntriesResponse", | |
| 1457 "properties": {}, | |
| 1458 "type": "object" | |
| 1459 }, | |
| 1460 "ListLogEntriesRequest": { | |
| 1461 "description": "The parameters to ListLogEntries.", | |
| 1462 "id": "ListLogEntriesRequest", | |
| 1463 "properties": { | |
| 1464 "filter": { | |
| 1465 "description": "Optional. A filter that chooses which log en
tries to return. See Advanced Logs Filters. Only log entries that match the filt
er are returned. An empty filter matches all log entries in the resources listed
in resource_names. Referencing a parent resource that is not listed in resource
_names will cause the filter to return no results. The maximum length of the fil
ter is 20000 characters.", | |
| 1466 "type": "string" | |
| 1467 }, | |
| 1468 "projectIds": { | |
| 1469 "description": "Deprecated. Use resource_names instead. One
or more project identifiers or project numbers from which to retrieve log entrie
s. Example: \"my-project-1A\". If present, these project identifiers are convert
ed to resource name format and added to the list of resources in resource_names.
", | |
| 1470 "items": { | |
| 1471 "type": "string" | |
| 1472 }, | |
| 1473 "type": "array" | |
| 1474 }, | |
| 1475 "resourceNames": { | |
| 1476 "description": "Required. Names of one or more resources fro
m which to retrieve log entries:\n\"projects/[PROJECT_ID]\"\n\"organizations/[OR
GANIZATION_ID]\"\nProjects listed in the project_ids field are added to this lis
t.", | |
| 1477 "items": { | |
| 1478 "type": "string" | |
| 1479 }, | |
| 1480 "type": "array" | |
| 1481 }, | |
| 1482 "pageSize": { | |
| 1483 "description": "Optional. The maximum number of results to r
eturn from this request. Non-positive values are ignored. The presence of nextPa
geToken in the response indicates that more results might be available.", | |
| 1484 "format": "int32", | |
| 1485 "type": "integer" | |
| 1486 }, | |
| 1487 "orderBy": { | |
| 1488 "description": "Optional. How the results should be sorted.
Presently, the only permitted values are \"timestamp asc\" (default) and \"times
tamp desc\". The first option returns entries in order of increasing values of L
ogEntry.timestamp (oldest first), and the second option returns entries in order
of decreasing timestamps (newest first). Entries with equal timestamps are retu
rned in order of LogEntry.insertId.", | |
| 1489 "type": "string" | |
| 1490 }, | |
| 1491 "pageToken": { | |
| 1492 "description": "Optional. If present, then retrieve the next
batch of results from the preceding call to this method. pageToken must be the
value of nextPageToken from the previous response. The values of other method pa
rameters should be identical to those in the previous call.", | |
| 1493 "type": "string" | |
| 1494 } | |
| 1495 }, | |
| 1496 "type": "object" | 1496 "type": "object" |
| 1497 } | 1497 } |
| 1498 }, | 1498 }, |
| 1499 "servicePath": "", | 1499 "servicePath": "", |
| 1500 "title": "Stackdriver Logging API", | 1500 "title": "Stackdriver Logging API", |
| 1501 "version": "v2beta1" | 1501 "version": "v2beta1" |
| 1502 } | 1502 } |
| OLD | NEW |