Index: discovery/googleapis_beta/logging__v2beta1.json |
diff --git a/discovery/googleapis_beta/logging__v2beta1.json b/discovery/googleapis_beta/logging__v2beta1.json |
index 5a5ec3605146da3155d2637c19fe17be923ce346..cb86cb17618b5aa56103215d2d04bde15d0246df 100644 |
--- a/discovery/googleapis_beta/logging__v2beta1.json |
+++ b/discovery/googleapis_beta/logging__v2beta1.json |
@@ -8,14 +8,14 @@ |
"https://www.googleapis.com/auth/cloud-platform.read-only": { |
"description": "View your data across Google Cloud Platform services" |
}, |
- "https://www.googleapis.com/auth/logging.admin": { |
- "description": "Administrate log data for your projects" |
- }, |
"https://www.googleapis.com/auth/logging.read": { |
"description": "View log data for your projects" |
}, |
"https://www.googleapis.com/auth/logging.write": { |
"description": "Submit log data for your projects" |
+ }, |
+ "https://www.googleapis.com/auth/logging.admin": { |
+ "description": "Administrate log data for your projects" |
} |
} |
} |
@@ -23,10 +23,10 @@ |
"basePath": "", |
"baseUrl": "https://logging.googleapis.com/", |
"batchPath": "batch", |
- "description": "Writes log entries and manages your logs, log sinks, and logs-based metrics.", |
+ "canonicalName": "Logging", |
+ "description": "Writes log entries and manages your Stackdriver Logging configuration.", |
"discoveryVersion": "v1", |
"documentationLink": "https://cloud.google.com/logging/docs/", |
- "etag": "\"C5oy1hgQsABtYOYIOXWcR3BgYqU/AGY2FGWaHRZwgyAazem2sSX20dM\"", |
"icons": { |
"x16": "http://www.google.com/images/icons/product/search-16.gif", |
"x32": "http://www.google.com/images/icons/product/search-32.gif" |
@@ -42,9 +42,41 @@ |
"location": "query", |
"type": "string" |
}, |
+ "prettyPrint": { |
+ "default": "true", |
+ "description": "Returns response with indentations and line breaks.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "key": { |
+ "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "fields": { |
+ "description": "Selector specifying which fields to include in a partial response.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"alt": { |
"default": "json", |
"description": "Data format for response.", |
+ "enum": [ |
+ "json", |
+ "media", |
+ "proto" |
+ ], |
"enumDescriptions": [ |
"Responses with Content-Type of application/json", |
"Media download with context-dependent Content-Type", |
@@ -53,8 +85,16 @@ |
"location": "query", |
"type": "string" |
}, |
- "bearer_token": { |
- "description": "OAuth bearer token.", |
+ "$.xgafv": { |
+ "description": "V1 error format.", |
+ "enum": [ |
+ "1", |
+ "2" |
+ ], |
+ "enumDescriptions": [ |
+ "v1 error format", |
+ "v2 error format" |
+ ], |
"location": "query", |
"type": "string" |
}, |
@@ -63,35 +103,18 @@ |
"location": "query", |
"type": "string" |
}, |
- "fields": { |
- "description": "Selector specifying which fields to include in a partial response.", |
- "location": "query", |
- "type": "string" |
- }, |
- "key": { |
- "description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
- "location": "query", |
- "type": "string" |
- }, |
"oauth_token": { |
"description": "OAuth 2.0 token for the current user.", |
"location": "query", |
"type": "string" |
}, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
- "prettyPrint": { |
- "default": "true", |
- "description": "Returns response with indentations and line breaks.", |
+ "uploadType": { |
+ "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
"location": "query", |
- "type": "boolean" |
+ "type": "string" |
}, |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
+ "bearer_token": { |
+ "description": "OAuth bearer token.", |
"location": "query", |
"type": "string" |
}, |
@@ -99,87 +122,62 @@ |
"description": "Upload protocol for media (e.g. \"raw\", \"multipart\").", |
"location": "query", |
"type": "string" |
- }, |
- "uploadType": { |
- "description": "Legacy upload protocol for media (e.g. \"media\", \"multipart\").", |
- "location": "query", |
- "type": "string" |
- }, |
- "$.xgafv": { |
- "description": "V1 error format.", |
- "enumDescriptions": [ |
- "v1 error format", |
- "v2 error format" |
- ], |
- "location": "query", |
- "type": "string" |
} |
}, |
"protocol": "rest", |
"resources": { |
"projects": { |
"resources": { |
- "logs": { |
+ "metrics": { |
"methods": { |
- "delete": { |
- "description": "Deletes a log and all its log entries. The log will reappear if it receives new entries.", |
- "httpMethod": "DELETE", |
- "id": "logging.projects.logs.delete", |
+ "update": { |
+ "description": "Creates or updates a logs-based metric.", |
+ "httpMethod": "PUT", |
+ "id": "logging.projects.metrics.update", |
"parameterOrder": [ |
- "logName" |
+ "metricName" |
], |
"parameters": { |
- "logName": { |
- "description": "Required. The resource name of the log to delete. Example: `\"projects/my-project/logs/syslog\"`.", |
+ "metricName": { |
+ "description": "The resource name of the metric to update.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.\n\nThe updated metric must be provided in the request and have the\nsame identifier that is specified in `metricName`.\nIf the metric does not exist, it is created.", |
"location": "path", |
- "pattern": "^projects/[^/]*/logs/[^/]*$", |
+ "pattern": "^projects/[^/]+/metrics/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2beta1/{+logName}", |
+ "path": "v2beta1/{+metricName}", |
+ "request": { |
+ "$ref": "LogMetric" |
+ }, |
"response": { |
- "$ref": "Empty" |
+ "$ref": "LogMetric" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/logging.admin" |
+ "https://www.googleapis.com/auth/logging.admin", |
+ "https://www.googleapis.com/auth/logging.write" |
] |
- } |
- } |
- }, |
- "sinks": { |
- "methods": { |
- "list": { |
- "description": "Lists sinks.", |
+ }, |
+ "get": { |
+ "description": "Gets a logs-based metric.", |
"httpMethod": "GET", |
- "id": "logging.projects.sinks.list", |
+ "id": "logging.projects.metrics.get", |
"parameterOrder": [ |
- "projectName" |
+ "metricName" |
], |
"parameters": { |
- "projectName": { |
- "description": "Required. The resource name of the project containing the sinks. Example: `\"projects/my-logging-project\"`.", |
+ "metricName": { |
+ "description": "The resource name of the desired metric.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.", |
"location": "path", |
- "pattern": "^projects/[^/]*$", |
+ "pattern": "^projects/[^/]+/metrics/[^/]+$", |
"required": true, |
"type": "string" |
- }, |
- "pageToken": { |
- "description": "Optional. If the `pageToken` parameter is supplied, then the next page of results is retrieved. The `pageToken` parameter must be set to the value of the `nextPageToken` from the previous response. The value of `projectName` must be the same as in the previous request.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pageSize": { |
- "description": "Optional. The maximum number of results to return from this request. You must check for presence of `nextPageToken` to determine if additional results are available, which you can retrieve by passing the `nextPageToken` value as the `pageToken` parameter in the next request.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
} |
}, |
- "path": "v2beta1/{+projectName}/sinks", |
+ "path": "v2beta1/{+metricName}", |
"response": { |
- "$ref": "ListSinksResponse" |
+ "$ref": "LogMetric" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
@@ -188,106 +186,120 @@ |
"https://www.googleapis.com/auth/logging.read" |
] |
}, |
- "get": { |
- "description": "Gets a sink.", |
- "httpMethod": "GET", |
- "id": "logging.projects.sinks.get", |
+ "create": { |
+ "description": "Creates a logs-based metric.", |
+ "httpMethod": "POST", |
+ "id": "logging.projects.metrics.create", |
"parameterOrder": [ |
- "sinkName" |
+ "parent" |
], |
"parameters": { |
- "sinkName": { |
- "description": "The resource name of the sink to return. Example: `\"projects/my-project-id/sinks/my-sink-id\"`.", |
+ "parent": { |
+ "description": "The resource name of the project in which to create the metric.\nExample: `\"projects/my-project-id\"`.\n\nThe new metric must be provided in the request.", |
"location": "path", |
- "pattern": "^projects/[^/]*/sinks/[^/]*$", |
+ "pattern": "^projects/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2beta1/{+sinkName}", |
+ "path": "v2beta1/{+parent}/metrics", |
+ "request": { |
+ "$ref": "LogMetric" |
+ }, |
"response": { |
- "$ref": "LogSink" |
+ "$ref": "LogMetric" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only", |
"https://www.googleapis.com/auth/logging.admin", |
- "https://www.googleapis.com/auth/logging.read" |
+ "https://www.googleapis.com/auth/logging.write" |
] |
}, |
- "create": { |
- "description": "Creates a sink.", |
- "httpMethod": "POST", |
- "id": "logging.projects.sinks.create", |
+ "list": { |
+ "description": "Lists logs-based metrics.", |
+ "httpMethod": "GET", |
+ "id": "logging.projects.metrics.list", |
"parameterOrder": [ |
- "projectName" |
+ "parent" |
], |
"parameters": { |
- "projectName": { |
- "description": "The resource name of the project in which to create the sink. Example: `\"projects/my-project-id\"`. The new sink must be provided in the request.", |
+ "pageSize": { |
+ "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
+ }, |
+ "parent": { |
+ "description": "Required. The resource name containing the metrics.\nExample: `\"projects/my-project-id\"`.", |
"location": "path", |
- "pattern": "^projects/[^/]*$", |
+ "pattern": "^projects/[^/]+$", |
"required": true, |
"type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
- "path": "v2beta1/{+projectName}/sinks", |
- "request": { |
- "$ref": "LogSink" |
- }, |
+ "path": "v2beta1/{+parent}/metrics", |
"response": { |
- "$ref": "LogSink" |
+ "$ref": "ListLogMetricsResponse" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/logging.admin" |
+ "https://www.googleapis.com/auth/cloud-platform.read-only", |
+ "https://www.googleapis.com/auth/logging.admin", |
+ "https://www.googleapis.com/auth/logging.read" |
] |
}, |
- "update": { |
- "description": "Creates or updates a sink.", |
- "httpMethod": "PUT", |
- "id": "logging.projects.sinks.update", |
+ "delete": { |
+ "description": "Deletes a logs-based metric.", |
+ "httpMethod": "DELETE", |
+ "id": "logging.projects.metrics.delete", |
"parameterOrder": [ |
- "sinkName" |
+ "metricName" |
], |
"parameters": { |
- "sinkName": { |
- "description": "The resource name of the sink to update. Example: `\"projects/my-project-id/sinks/my-sink-id\"`. The updated sink must be provided in the request and have the same name that is specified in `sinkName`. If the sink does not exist, it is created.", |
+ "metricName": { |
+ "description": "The resource name of the metric to delete.\nExample: `\"projects/my-project-id/metrics/my-metric-id\"`.", |
"location": "path", |
- "pattern": "^projects/[^/]*/sinks/[^/]*$", |
+ "pattern": "^projects/[^/]+/metrics/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2beta1/{+sinkName}", |
- "request": { |
- "$ref": "LogSink" |
- }, |
+ "path": "v2beta1/{+metricName}", |
"response": { |
- "$ref": "LogSink" |
+ "$ref": "Empty" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/logging.admin" |
+ "https://www.googleapis.com/auth/logging.admin", |
+ "https://www.googleapis.com/auth/logging.write" |
] |
- }, |
+ } |
+ } |
+ }, |
+ "logs": { |
+ "methods": { |
"delete": { |
- "description": "Deletes a sink.", |
+ "description": "Deletes a log and all its log entries.\nThe log will reappear if it receives new entries.", |
"httpMethod": "DELETE", |
- "id": "logging.projects.sinks.delete", |
+ "id": "logging.projects.logs.delete", |
"parameterOrder": [ |
- "sinkName" |
+ "logName" |
], |
"parameters": { |
- "sinkName": { |
- "description": "The resource name of the sink to delete. Example: `\"projects/my-project-id/sinks/my-sink-id\"`.", |
+ "logName": { |
+ "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.", |
"location": "path", |
- "pattern": "^projects/[^/]*/sinks/[^/]*$", |
+ "pattern": "^projects/[^/]+/logs/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2beta1/{+sinkName}", |
+ "path": "v2beta1/{+logName}", |
"response": { |
"$ref": "Empty" |
}, |
@@ -298,65 +310,60 @@ |
} |
} |
}, |
- "metrics": { |
+ "sinks": { |
"methods": { |
- "list": { |
- "description": "Lists logs-based metrics.", |
- "httpMethod": "GET", |
- "id": "logging.projects.metrics.list", |
+ "update": { |
+ "description": "Updates or creates a sink.", |
+ "httpMethod": "PUT", |
+ "id": "logging.projects.sinks.update", |
"parameterOrder": [ |
- "projectName" |
+ "sinkName" |
], |
"parameters": { |
- "projectName": { |
- "description": "Required. The resource name of the project containing the metrics. Example: `\"projects/my-project-id\"`.", |
+ "sinkName": { |
+ "description": "Required. The resource name of the sink to update, including the parent\nresource and the sink identifier. If the sink does not exist, this method\ncreates the sink. Example: `\"projects/my-project-id/sinks/my-sink-id\"`.", |
"location": "path", |
- "pattern": "^projects/[^/]*$", |
+ "pattern": "^projects/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
}, |
- "pageToken": { |
- "description": "Optional. If the `pageToken` parameter is supplied, then the next page of results is retrieved. The `pageToken` parameter must be set to the value of the `nextPageToken` from the previous response. The value of `projectName` must be the same as in the previous request.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pageSize": { |
- "description": "Optional. The maximum number of results to return from this request. You must check for presence of `nextPageToken` to determine if additional results are available, which you can retrieve by passing the `nextPageToken` value as the `pageToken` parameter in the next request.", |
- "format": "int32", |
+ "uniqueWriterIdentity": { |
+ "description": "Optional. Whether the sink will have a dedicated service account returned\nin the sink's writer_identity. Set this field to be true to export\nlogs from one project to a different project. This field is ignored for\nnon-project sinks (e.g. organization sinks) because those sinks are\nrequired to have dedicated service accounts.", |
"location": "query", |
- "type": "integer" |
+ "type": "boolean" |
} |
}, |
- "path": "v2beta1/{+projectName}/metrics", |
+ "path": "v2beta1/{+sinkName}", |
+ "request": { |
+ "$ref": "LogSink" |
+ }, |
"response": { |
- "$ref": "ListLogMetricsResponse" |
+ "$ref": "LogSink" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/cloud-platform.read-only", |
- "https://www.googleapis.com/auth/logging.admin", |
- "https://www.googleapis.com/auth/logging.read" |
+ "https://www.googleapis.com/auth/logging.admin" |
] |
}, |
"get": { |
- "description": "Gets a logs-based metric.", |
+ "description": "Gets a sink.", |
"httpMethod": "GET", |
- "id": "logging.projects.metrics.get", |
+ "id": "logging.projects.sinks.get", |
"parameterOrder": [ |
- "metricName" |
+ "sinkName" |
], |
"parameters": { |
- "metricName": { |
- "description": "The resource name of the desired metric. Example: `\"projects/my-project-id/metrics/my-metric-id\"`.", |
+ "sinkName": { |
+ "description": "Required. The resource name of the sink to return.\nExample: `\"projects/my-project-id/sinks/my-sink-id\"`.", |
"location": "path", |
- "pattern": "^projects/[^/]*/metrics/[^/]*$", |
+ "pattern": "^projects/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2beta1/{+metricName}", |
+ "path": "v2beta1/{+sinkName}", |
"response": { |
- "$ref": "LogMetric" |
+ "$ref": "LogSink" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
@@ -366,87 +373,132 @@ |
] |
}, |
"create": { |
- "description": "Creates a logs-based metric.", |
+ "description": "Creates a sink.", |
"httpMethod": "POST", |
- "id": "logging.projects.metrics.create", |
+ "id": "logging.projects.sinks.create", |
"parameterOrder": [ |
- "projectName" |
+ "parent" |
], |
"parameters": { |
- "projectName": { |
- "description": "The resource name of the project in which to create the metric. Example: `\"projects/my-project-id\"`. The new metric must be provided in the request.", |
+ "uniqueWriterIdentity": { |
+ "description": "Optional. Whether the sink will have a dedicated service account returned\nin the sink's writer_identity. Set this field to be true to export\nlogs from one project to a different project. This field is ignored for\nnon-project sinks (e.g. organization sinks) because those sinks are\nrequired to have dedicated service accounts.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "parent": { |
+ "description": "Required. The resource in which to create the sink.\nExample: `\"projects/my-project-id\"`.\nThe new sink must be provided in the request.", |
"location": "path", |
- "pattern": "^projects/[^/]*$", |
+ "pattern": "^projects/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2beta1/{+projectName}/metrics", |
+ "path": "v2beta1/{+parent}/sinks", |
"request": { |
- "$ref": "LogMetric" |
+ "$ref": "LogSink" |
}, |
"response": { |
- "$ref": "LogMetric" |
+ "$ref": "LogSink" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/logging.admin", |
- "https://www.googleapis.com/auth/logging.write" |
+ "https://www.googleapis.com/auth/logging.admin" |
] |
}, |
- "update": { |
- "description": "Creates or updates a logs-based metric.", |
- "httpMethod": "PUT", |
- "id": "logging.projects.metrics.update", |
+ "list": { |
+ "description": "Lists sinks.", |
+ "httpMethod": "GET", |
+ "id": "logging.projects.sinks.list", |
"parameterOrder": [ |
- "metricName" |
+ "parent" |
], |
"parameters": { |
- "metricName": { |
- "description": "The resource name of the metric to update. Example: `\"projects/my-project-id/metrics/my-metric-id\"`. The updated metric must be provided in the request and have the same identifier that is specified in `metricName`. If the metric does not exist, it is created.", |
+ "pageSize": { |
+ "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
+ }, |
+ "parent": { |
+ "description": "Required. The resource name where this sink was created.\nExample: `\"projects/my-logging-project\"`.", |
"location": "path", |
- "pattern": "^projects/[^/]*/metrics/[^/]*$", |
+ "pattern": "^projects/[^/]+$", |
"required": true, |
"type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
- "path": "v2beta1/{+metricName}", |
- "request": { |
- "$ref": "LogMetric" |
- }, |
+ "path": "v2beta1/{+parent}/sinks", |
"response": { |
- "$ref": "LogMetric" |
+ "$ref": "ListSinksResponse" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/cloud-platform.read-only", |
"https://www.googleapis.com/auth/logging.admin", |
- "https://www.googleapis.com/auth/logging.write" |
+ "https://www.googleapis.com/auth/logging.read" |
] |
}, |
"delete": { |
- "description": "Deletes a logs-based metric.", |
+ "description": "Deletes a sink.", |
"httpMethod": "DELETE", |
- "id": "logging.projects.metrics.delete", |
+ "id": "logging.projects.sinks.delete", |
"parameterOrder": [ |
- "metricName" |
+ "sinkName" |
], |
"parameters": { |
- "metricName": { |
- "description": "The resource name of the metric to delete. Example: `\"projects/my-project-id/metrics/my-metric-id\"`.", |
+ "sinkName": { |
+ "description": "Required. The resource name of the sink to delete, including the parent\nresource and the sink identifier. Example:\n`\"projects/my-project-id/sinks/my-sink-id\"`. It is an error if the sink\ndoes not exist.", |
"location": "path", |
- "pattern": "^projects/[^/]*/metrics/[^/]*$", |
+ "pattern": "^projects/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2beta1/{+metricName}", |
+ "path": "v2beta1/{+sinkName}", |
"response": { |
"$ref": "Empty" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/logging.admin", |
- "https://www.googleapis.com/auth/logging.write" |
+ "https://www.googleapis.com/auth/logging.admin" |
+ ] |
+ } |
+ } |
+ } |
+ } |
+ }, |
+ "organizations": { |
+ "resources": { |
+ "logs": { |
+ "methods": { |
+ "delete": { |
+ "description": "Deletes a log and all its log entries.\nThe log will reappear if it receives new entries.", |
+ "httpMethod": "DELETE", |
+ "id": "logging.organizations.logs.delete", |
+ "parameterOrder": [ |
+ "logName" |
+ ], |
+ "parameters": { |
+ "logName": { |
+ "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.", |
+ "location": "path", |
+ "pattern": "^organizations/[^/]+/logs/[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v2beta1/{+logName}", |
+ "response": { |
+ "$ref": "Empty" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/logging.admin" |
] |
} |
} |
@@ -456,9 +508,11 @@ |
"entries": { |
"methods": { |
"write": { |
- "description": "Writes log entries to Cloud Logging. All log entries in Cloud Logging are written by this method.", |
+ "description": "Writes log entries to Stackdriver Logging. All log entries are\nwritten by this method.", |
"httpMethod": "POST", |
"id": "logging.entries.write", |
+ "parameterOrder": [], |
+ "parameters": {}, |
"path": "v2beta1/entries:write", |
"request": { |
"$ref": "WriteLogEntriesRequest" |
@@ -473,9 +527,11 @@ |
] |
}, |
"list": { |
- "description": "Lists log entries. Use this method to retrieve log entries from Cloud Logging. For ways to export log entries, see [Exporting Logs](/logging/docs/export).", |
+ "description": "Lists log entries. Use this method to retrieve log entries from Cloud\nLogging. For ways to export log entries, see\n[Exporting Logs](/logging/docs/export).", |
"httpMethod": "POST", |
"id": "logging.entries.list", |
+ "parameterOrder": [], |
+ "parameters": {}, |
"path": "v2beta1/entries:list", |
"request": { |
"$ref": "ListLogEntriesRequest" |
@@ -495,18 +551,19 @@ |
"monitoredResourceDescriptors": { |
"methods": { |
"list": { |
- "description": "Lists monitored resource descriptors that are used by Cloud Logging.", |
+ "description": "Lists the monitored resource descriptors used by Stackdriver Logging.", |
"httpMethod": "GET", |
"id": "logging.monitoredResourceDescriptors.list", |
+ "parameterOrder": [], |
"parameters": { |
"pageSize": { |
- "description": "Optional. The maximum number of results to return from this request. You must check for presence of `nextPageToken` to determine if additional results are available, which you can retrieve by passing the `nextPageToken` value as the `pageToken` parameter in the next request.", |
+ "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.", |
"format": "int32", |
"location": "query", |
"type": "integer" |
}, |
"pageToken": { |
- "description": "Optional. If the `pageToken` parameter is supplied, then the next page of results is retrieved. The `pageToken` parameter must be set to the value of the `nextPageToken` from the previous response.", |
+ "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.", |
"location": "query", |
"type": "string" |
} |
@@ -523,105 +580,211 @@ |
] |
} |
} |
+ }, |
+ "billingAccounts": { |
+ "resources": { |
+ "logs": { |
+ "methods": { |
+ "delete": { |
+ "description": "Deletes a log and all its log entries.\nThe log will reappear if it receives new entries.", |
+ "httpMethod": "DELETE", |
+ "id": "logging.billingAccounts.logs.delete", |
+ "parameterOrder": [ |
+ "logName" |
+ ], |
+ "parameters": { |
+ "logName": { |
+ "description": "Required. The resource name of the log to delete. Example:\n`\"projects/my-project/logs/syslog\"`.", |
+ "location": "path", |
+ "pattern": "^billingAccounts/[^/]+/logs/[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v2beta1/{+logName}", |
+ "response": { |
+ "$ref": "Empty" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/logging.admin" |
+ ] |
+ } |
+ } |
+ } |
+ } |
} |
}, |
- "revision": "20160322", |
+ "revision": "20161028", |
"rootUrl": "https://logging.googleapis.com/", |
"schemas": { |
- "Empty": { |
- "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance: service Foo { rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty); } The JSON representation for `Empty` is empty JSON object `{}`.", |
- "id": "Empty", |
+ "ListLogEntriesResponse": { |
+ "description": "Result returned from `ListLogEntries`.", |
+ "id": "ListLogEntriesResponse", |
+ "properties": { |
+ "entries": { |
+ "description": "A list of log entries.", |
+ "items": { |
+ "$ref": "LogEntry" |
+ }, |
+ "type": "array" |
+ }, |
+ "nextPageToken": { |
+ "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.", |
+ "type": "string" |
+ } |
+ }, |
"type": "object" |
}, |
- "WriteLogEntriesRequest": { |
- "description": "The parameters to WriteLogEntries.", |
- "id": "WriteLogEntriesRequest", |
+ "ListSinksResponse": { |
+ "description": "Result returned from `ListSinks`.", |
+ "id": "ListSinksResponse", |
"properties": { |
- "logName": { |
- "description": "Optional. A default log resource name for those log entries in `entries` that do not specify their own `logName`. Example: `\"projects/my-project/logs/syslog\"`. See LogEntry.", |
+ "nextPageToken": { |
+ "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call the same\nmethod again using the value of `nextPageToken` as `pageToken`.", |
"type": "string" |
}, |
- "resource": { |
- "$ref": "MonitoredResource", |
- "description": "Optional. A default monitored resource for those log entries in `entries` that do not specify their own `resource`." |
- }, |
- "labels": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "Optional. User-defined `key:value` items that are added to the `labels` field of each log entry in `entries`, except when a log entry specifies its own `key:value` item with the same key. Example: `{ \"size\": \"large\", \"color\":\"red\" }`", |
- "type": "object" |
- }, |
- "entries": { |
- "description": "Required. The log entries to write. The log entries must have values for all required fields.", |
+ "sinks": { |
+ "description": "A list of sinks.", |
"items": { |
- "$ref": "LogEntry" |
+ "$ref": "LogSink" |
}, |
"type": "array" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "SourceLocation": { |
+ "description": "Specifies a location in a source code file.", |
+ "id": "SourceLocation", |
+ "properties": { |
+ "file": { |
+ "description": "Source file name. Depending on the runtime environment, this might be a\nsimple name or a fully-qualified name.", |
+ "type": "string" |
}, |
- "partialSuccess": { |
- "description": "Optional. Whether valid entries should be written even if some other entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any entry is not written, the response status will be the error associated with one of the failed entries and include error details in the form of WriteLogEntriesPartialErrors.", |
- "type": "boolean" |
+ "functionName": { |
+ "description": "Human-readable name of the function or method being invoked, with optional\ncontext such as the class or package name. This information is used in\ncontexts such as the logs viewer, where a file and line number are less\nmeaningful. The format can vary by language. For example:\n`qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function`\n(Python).", |
+ "type": "string" |
+ }, |
+ "line": { |
+ "description": "Line within the source file.", |
+ "format": "int64", |
+ "type": "string" |
} |
}, |
"type": "object" |
}, |
- "MonitoredResource": { |
- "description": "An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The `type` field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the `labels` field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for `\"gce_instance\"` has labels `\"instance_id\"` and `\"zone\"`: { \"type\": \"gce_instance\", \"labels\": { \"instance_id\": \"my-instance\", \"zone\": \"us-central1-a\" }}", |
- "id": "MonitoredResource", |
+ "LogSink": { |
+ "description": "Describes a sink used to export log entries outside of Stackdriver Logging.\nA logs filter controls which log entries are exported. Sinks can have a\nstart time and an end time; these can be used to place log entries from an\nexact time range into a particular destination. If both `start_time` and\n`end_time` are present, then `start_time` must be less than `end_time`.", |
+ "id": "LogSink", |
"properties": { |
- "type": { |
- "description": "Required. The monitored resource type. This field must match the `type` field of a MonitoredResourceDescriptor object. For example, the type of a Cloud SQL database is `\"cloudsql_database\"`.", |
+ "destination": { |
+ "description": "Required. The export destination. See\n[Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs).\nExamples:\n\n \"storage.googleapis.com/my-gcs-bucket\"\n \"bigquery.googleapis.com/projects/my-project-id/datasets/my-dataset\"\n \"pubsub.googleapis.com/projects/my-project/topics/my-topic\"", |
"type": "string" |
}, |
- "labels": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Cloud SQL databases use the labels `\"database_id\"` and `\"zone\"`.", |
- "type": "object" |
+ "filter": { |
+ "description": "Optional. An [advanced logs filter](/logging/docs/view/advanced_filters).\nOnly log entries matching the filter are exported. The filter\nmust be consistent with the log entry format specified by the\n`outputVersionFormat` parameter, regardless of the format of the\nlog entry that was originally written to Stackdriver Logging.\nExample filter (V2 format):\n\n logName=projects/my-projectid/logs/syslog AND severity>=ERROR", |
+ "type": "string" |
+ }, |
+ "endTime": { |
+ "description": "Optional. Time at which this sink will stop exporting log entries. If this\nvalue is present, then log entries are exported only if `entry.timestamp` <\n`end_time`.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "name": { |
+ "description": "Required. The client-assigned sink identifier, unique within the\nproject. Example: `\"my-syslog-errors-to-pubsub\"`. Sink identifiers are\nlimited to 1000 characters and can include only the following characters:\n`A-Z`, `a-z`, `0-9`, and the special characters `_-.`. The maximum length\nof the name is 100 characters.", |
+ "type": "string" |
+ }, |
+ "startTime": { |
+ "description": "Optional. The time at which this sink will begin exporting log entries. If\nthis value is present, then log entries are exported only if `start_time`\n<=`entry.timestamp`.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "outputVersionFormat": { |
+ "description": "Optional. The log entry version to use for this sink's exported log\nentries. This version does not have to correspond to the version of the\nlog entry that was written to Stackdriver Logging. If omitted, the\nv2 format is used.", |
+ "enum": [ |
+ "VERSION_FORMAT_UNSPECIFIED", |
+ "V2", |
+ "V1" |
+ ], |
+ "enumDescriptions": [ |
+ "An unspecified version format will default to V2.", |
+ "`LogEntry` version 2 format.", |
+ "`LogEntry` version 1 format." |
+ ], |
+ "type": "string" |
+ }, |
+ "writerIdentity": { |
+ "description": "Output only. An IAM identity—a service account or group—that\nwill write exported log entries to the destination on behalf of Stackdriver\nLogging. You must grant this identity write-access to the destination.\nConsult the destination service's documentation to determine the exact role\nthat must be granted.", |
+ "type": "string" |
} |
}, |
"type": "object" |
}, |
- "LogEntry": { |
- "description": "An individual entry in a log.", |
- "id": "LogEntry", |
+ "LogMetric": { |
+ "description": "Describes a logs-based metric. The value of the metric is the\nnumber of log entries that match a logs filter.", |
+ "id": "LogMetric", |
"properties": { |
- "logName": { |
- "description": "Required. The resource name of the log to which this log entry belongs. The format of the name is `\"projects/\n/logs/\"`. Examples: `\"projects/my-projectid/logs/syslog\"`, `\"projects/1234567890/logs/library.googleapis.com%2Fbook_log\"`. The log ID part of resource name must be less than 512 characters long and can only include the following characters: upper and lower case alphanumeric characters: [A-Za-z0-9]; and punctuation characters: forward-slash, underscore, hyphen, and period. Forward-slash (`/`) characters in the log ID must be URL-encoded.", |
+ "description": { |
+ "description": "Optional. A description of this metric, which is used in documentation.", |
"type": "string" |
}, |
- "resource": { |
- "$ref": "MonitoredResource", |
- "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." |
+ "filter": { |
+ "description": "Required. An [advanced logs filter](/logging/docs/view/advanced_filters).\nExample: `\"resource.type=gae_app AND severity>=ERROR\"`.", |
+ "type": "string" |
}, |
- "protoPayload": { |
- "additionalProperties": { |
- "description": "Properties of the object. Contains field @ype with type URL.", |
- "type": "any" |
- }, |
- "description": "The log entry payload, represented as a protocol buffer. You can only use `protoPayload` values that belong to a set of approved types.", |
- "type": "object" |
+ "name": { |
+ "description": "Required. The client-assigned metric identifier. Example:\n`\"severe_errors\"`. Metric identifiers are limited to 100\ncharacters and can include only the following characters: `A-Z`,\n`a-z`, `0-9`, and the special characters `_-.,+!*',()%/`. The\nforward-slash character (`/`) denotes a hierarchy of name pieces,\nand it cannot be the first character of the name. The '%' character\nis used to URL encode unsafe and reserved characters and must be\nfollowed by two hexadecimal digits according to RFC 1738.", |
+ "type": "string" |
}, |
+ "version": { |
+ "description": "Output only. The API version that created or updated this metric.\nThe version also dictates the syntax of the filter expression. When a value\nfor this field is missing, the default value of V2 should be assumed.", |
+ "enum": [ |
+ "V2", |
+ "V1" |
+ ], |
+ "enumDescriptions": [ |
+ "Stackdriver Logging API v2.", |
+ "Stackdriver Logging API v1." |
+ ], |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "LogEntry": { |
+ "description": "An individual entry in a log.", |
+ "id": "LogEntry", |
+ "properties": { |
"textPayload": { |
"description": "The log entry payload, represented as a Unicode string (UTF-8).", |
"type": "string" |
}, |
+ "httpRequest": { |
+ "$ref": "HttpRequest", |
+ "description": "Optional. Information about the HTTP request associated with this\nlog entry, if applicable." |
+ }, |
"jsonPayload": { |
"additionalProperties": { |
"description": "Properties of the object.", |
"type": "any" |
}, |
- "description": "The log entry payload, represented as a structure that is expressed as a JSON object.", |
+ "description": "The log entry payload, represented as a structure that\nis expressed as a JSON object.", |
"type": "object" |
}, |
- "timestamp": { |
- "description": "Optional. The time the event described by the log entry occurred. If omitted, Cloud Logging will use the time the log entry is written.", |
+ "labels": { |
+ "additionalProperties": { |
+ "type": "string" |
+ }, |
+ "description": "Optional. A set of user-defined (key, value) data that provides additional\ninformation about the log entry.", |
+ "type": "object" |
+ }, |
+ "logName": { |
+ "description": "Required. The resource name of the log to which this log entry\nbelongs. The format of the name is\n`\"projects/<project-id>/logs/<log-id>\"`. Examples:\n`\"projects/my-projectid/logs/syslog\"`,\n`\"projects/my-projectid/logs/library.googleapis.com%2Fbook_log\"`.\n\nThe log ID part of resource name must be less than 512 characters\nlong and can only include the following characters: upper and\nlower case alphanumeric characters: [A-Za-z0-9]; and punctuation\ncharacters: forward-slash, underscore, hyphen, and period.\nForward-slash (`/`) characters in the log ID must be URL-encoded.", |
"type": "string" |
}, |
"severity": { |
- "description": "Optional. The severity of the log entry. The default value is `LogSeverity.DEFAULT`.", |
+ "description": "Optional. The severity of the log entry. The default value is\n`LogSeverity.DEFAULT`.", |
"enum": [ |
"DEFAULT", |
"DEBUG", |
@@ -633,410 +796,374 @@ |
"ALERT", |
"EMERGENCY" |
], |
+ "enumDescriptions": [ |
+ "(0) The log entry has no assigned severity level.", |
+ "(100) Debug or trace information.", |
+ "(200) Routine information, such as ongoing status or performance.", |
+ "(300) Normal but significant events, such as start up, shut down, or\na configuration change.", |
+ "(400) Warning events might cause problems.", |
+ "(500) Error events are likely to cause problems.", |
+ "(600) Critical events cause more severe problems or outages.", |
+ "(700) A person must take an action immediately.", |
+ "(800) One or more systems are unusable." |
+ ], |
"type": "string" |
}, |
- "insertId": { |
- "description": "Optional. A unique ID for the log entry. If you provide this field, the logging service considers other log entries in the same log with the same ID as duplicates which can be removed. If omitted, Cloud Logging will generate a unique ID for this log entry.", |
- "type": "string" |
- }, |
- "httpRequest": { |
- "$ref": "HttpRequest", |
- "description": "Optional. Information about the HTTP request associated with this log entry, if applicable." |
+ "resource": { |
+ "$ref": "MonitoredResource", |
+ "description": "Required. The monitored resource associated with this log entry.\nExample: a log entry that reports a database error would be\nassociated with the monitored resource designating the particular\ndatabase that reported the error." |
}, |
- "labels": { |
+ "protoPayload": { |
"additionalProperties": { |
- "type": "string" |
+ "description": "Properties of the object. Contains field @type with type URL.", |
+ "type": "any" |
}, |
- "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.", |
+ "description": "The log entry payload, represented as a protocol buffer. Some\nGoogle Cloud Platform services use this field for their log\nentry payloads.", |
"type": "object" |
}, |
- "operation": { |
- "$ref": "LogEntryOperation", |
- "description": "Optional. Information about an operation associated with the log entry, if applicable." |
+ "timestamp": { |
+ "description": "Optional. The time the event described by the log entry occurred. If\nomitted, Stackdriver Logging will use the time the log entry is received.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "insertId": { |
+ "description": "Optional. A unique ID for the log entry. If you provide this\nfield, the logging service considers other log entries in the\nsame project with the same ID as duplicates which can be removed. If\nomitted, Stackdriver Logging will generate a unique ID for this\nlog entry.", |
+ "type": "string" |
+ }, |
+ "operation": { |
+ "$ref": "LogEntryOperation", |
+ "description": "Optional. Information about an operation associated with the log entry, if\napplicable." |
} |
}, |
"type": "object" |
}, |
- "HttpRequest": { |
- "description": "A common proto for logging HTTP requests.", |
- "id": "HttpRequest", |
+ "LogLine": { |
+ "description": "Application log line emitted while processing a request.", |
+ "id": "LogLine", |
"properties": { |
- "requestMethod": { |
- "description": "The request method. Examples: `\"GET\"`, `\"HEAD\"`, `\"PUT\"`, `\"POST\"`.", |
- "type": "string" |
- }, |
- "requestUrl": { |
- "description": "The scheme (http, https), the host name, the path and the query portion of the URL that was requested. Example: `\"http://example.com/some/info?color=red\"`.", |
- "type": "string" |
- }, |
- "requestSize": { |
- "description": "The size of the HTTP request message in bytes, including the request headers and the request body.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "status": { |
- "description": "The response code indicating the status of response. Examples: 200, 404.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "responseSize": { |
- "description": "The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "userAgent": { |
- "description": "The user agent sent by the client. Example: `\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"`.", |
- "type": "string" |
- }, |
- "remoteIp": { |
- "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\"`.", |
+ "time": { |
+ "description": "Approximate time when this log entry was made.", |
+ "format": "google-datetime", |
"type": "string" |
}, |
- "referer": { |
- "description": "The referer URL of the request, as defined in [HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).", |
+ "severity": { |
+ "description": "Severity of this log entry.", |
+ "enum": [ |
+ "DEFAULT", |
+ "DEBUG", |
+ "INFO", |
+ "NOTICE", |
+ "WARNING", |
+ "ERROR", |
+ "CRITICAL", |
+ "ALERT", |
+ "EMERGENCY" |
+ ], |
+ "enumDescriptions": [ |
+ "(0) The log entry has no assigned severity level.", |
+ "(100) Debug or trace information.", |
+ "(200) Routine information, such as ongoing status or performance.", |
+ "(300) Normal but significant events, such as start up, shut down, or\na configuration change.", |
+ "(400) Warning events might cause problems.", |
+ "(500) Error events are likely to cause problems.", |
+ "(600) Critical events cause more severe problems or outages.", |
+ "(700) A person must take an action immediately.", |
+ "(800) One or more systems are unusable." |
+ ], |
"type": "string" |
}, |
- "cacheLookup": { |
- "description": "Whether or not a cache lookup was attempted.", |
- "type": "boolean" |
- }, |
- "cacheHit": { |
- "description": "Whether or not an entity was served from cache (with or without validation).", |
- "type": "boolean" |
- }, |
- "cacheValidatedWithOriginServer": { |
- "description": "Whether or not the response was validated with the origin server before being served from cache. This field is only meaningful if `cache_hit` is True.", |
- "type": "boolean" |
+ "sourceLocation": { |
+ "$ref": "SourceLocation", |
+ "description": "Where in the source code this log message was written." |
}, |
- "cacheFillBytes": { |
- "description": "The number of HTTP response bytes inserted into cache. Set only when a cache fill was attempted.", |
- "format": "int64", |
+ "logMessage": { |
+ "description": "App-provided log message.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "LogEntryOperation": { |
- "description": "Additional information about a potentially long-running operation with which a log entry is associated.", |
- "id": "LogEntryOperation", |
+ "SourceReference": { |
+ "description": "A reference to a particular snapshot of the source tree used to build and\ndeploy an application.", |
+ "id": "SourceReference", |
"properties": { |
- "id": { |
- "description": "Required. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.", |
+ "repository": { |
+ "description": "Optional. A URI string identifying the repository.\nExample: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", |
"type": "string" |
}, |
- "producer": { |
- "description": "Required. An arbitrary producer identifier. The combination of `id` and `producer` must be globally unique. Examples for `producer`: `\"MyDivision.MyBigCompany.com\"`, \"github.com/MyProject/MyApplication\"`.", |
+ "revisionId": { |
+ "description": "The canonical and persistent identifier of the deployed revision.\nExample (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"", |
"type": "string" |
- }, |
- "first": { |
- "description": "Optional. Set this to True if this is the first log entry in the operation.", |
- "type": "boolean" |
- }, |
- "last": { |
- "description": "Optional. Set this to True if this is the last log entry in the operation.", |
- "type": "boolean" |
} |
}, |
"type": "object" |
}, |
- "WriteLogEntriesResponse": { |
- "description": "Result returned from WriteLogEntries. empty", |
- "id": "WriteLogEntriesResponse", |
- "type": "object" |
- }, |
- "ListLogEntriesRequest": { |
- "description": "The parameters to `ListLogEntries`.", |
- "id": "ListLogEntriesRequest", |
+ "MonitoredResource": { |
+ "description": "An object representing a resource that can be used for monitoring, logging,\nbilling, or other purposes. Examples include virtual machine instances,\ndatabases, and storage devices such as disks. The `type` field identifies a\nMonitoredResourceDescriptor object that describes the resource's\nschema. Information in the `labels` field identifies the actual resource and\nits attributes according to the schema. For example, a particular Compute\nEngine VM instance could be represented by the following object, because the\nMonitoredResourceDescriptor for `\"gce_instance\"` has labels\n`\"instance_id\"` and `\"zone\"`:\n\n { \"type\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}", |
+ "id": "MonitoredResource", |
"properties": { |
- "projectIds": { |
- "description": "Required. One or more project IDs or project numbers from which to retrieve log entries. Examples of a project ID: `\"my-project-1A\"`, `\"1234567890\"`.", |
- "items": { |
+ "labels": { |
+ "additionalProperties": { |
"type": "string" |
}, |
- "type": "array" |
- }, |
- "filter": { |
- "description": "Optional. An [advanced logs filter](/logging/docs/view/advanced_filters). The filter is compared against all log entries in the projects specified by `projectIds`. Only entries that match the filter are retrieved. An empty filter matches all log entries.", |
- "type": "string" |
- }, |
- "orderBy": { |
- "description": "Optional. How the results should be sorted. Presently, the only permitted values are `\"timestamp asc\"` (default) and `\"timestamp desc\"`. The first option returns entries in order of increasing values of `LogEntry.timestamp` (oldest first), and the second option returns entries in order of decreasing timestamps (newest first). Entries with equal timestamps are returned in order of `LogEntry.insertId`.", |
- "type": "string" |
- }, |
- "pageSize": { |
- "description": "Optional. The maximum number of results to return from this request. You must check for presence of `nextPageToken` to determine if additional results are available, which you can retrieve by passing the `nextPageToken` value as the `pageToken` parameter in the next request.", |
- "format": "int32", |
- "type": "integer" |
+ "description": "Required. Values for all of the labels listed in the associated monitored\nresource descriptor. For example, Cloud SQL databases use the labels\n`\"database_id\"` and `\"zone\"`.", |
+ "type": "object" |
}, |
- "pageToken": { |
- "description": "Optional. If the `pageToken` parameter is supplied, then the next page of results is retrieved. The `pageToken` parameter must be set to the value of the `nextPageToken` from the previous response. The values of `projectIds`, `filter`, and `orderBy` must be the same as in the previous request.", |
+ "type": { |
+ "description": "Required. The monitored resource type. This field must match\nthe `type` field of a MonitoredResourceDescriptor object. For\nexample, the type of a Cloud SQL database is `\"cloudsql_database\"`.", |
"type": "string" |
- }, |
- "partialSuccess": { |
- "description": "Optional. If true, read access to all projects is not required and results will be returned for the subset of projects for which read access is permitted (empty subset is permitted).", |
- "type": "boolean" |
} |
}, |
"type": "object" |
}, |
- "ListLogEntriesResponse": { |
- "description": "Result returned from `ListLogEntries`.", |
- "id": "ListLogEntriesResponse", |
+ "WriteLogEntriesRequest": { |
+ "description": "The parameters to WriteLogEntries.", |
+ "id": "WriteLogEntriesRequest", |
"properties": { |
+ "labels": { |
+ "additionalProperties": { |
+ "type": "string" |
+ }, |
+ "description": "Optional. Default labels that are added to the `labels` field of all log\nentries in `entries`. If a log entry already has a label with the same key\nas a label in this parameter, then the log entry's label is not changed.\nSee LogEntry.", |
+ "type": "object" |
+ }, |
"entries": { |
- "description": "A list of log entries.", |
+ "description": "Required. The log entries to write. Values supplied for the fields\n`log_name`, `resource`, and `labels` in this `entries.write` request are\nadded to those log entries that do not provide their own values for the\nfields.\n\nTo improve throughput and to avoid exceeding the\n[quota limit](/logging/quota-policy) for calls to `entries.write`,\nyou should write multiple log entries at once rather than\ncalling this method for each individual log entry.", |
"items": { |
"$ref": "LogEntry" |
}, |
"type": "array" |
}, |
- "nextPageToken": { |
- "description": "If there are more results than were returned, then `nextPageToken` is included in the response. To get the next set of results, call this method again using the value of `nextPageToken` as `pageToken`.", |
+ "logName": { |
+ "description": "Optional. A default log resource name that is assigned to all log entries\nin `entries` that do not specify a value for `log_name`. Example:\n`\"projects/my-project/logs/syslog\"`. See\nLogEntry.", |
"type": "string" |
}, |
- "projectIdErrors": { |
- "additionalProperties": { |
- "$ref": "Status" |
- }, |
- "description": "If partial_success is true, contains the project ids that had errors and the associated errors.", |
- "type": "object" |
+ "partialSuccess": { |
+ "description": "Optional. Whether valid entries should be written even if some other\nentries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any\nentry is not written, the response status will be the error associated\nwith one of the failed entries and include error details in the form of\nWriteLogEntriesPartialErrors.", |
+ "type": "boolean" |
+ }, |
+ "resource": { |
+ "$ref": "MonitoredResource", |
+ "description": "Optional. A default monitored resource object that is assigned to all log\nentries in `entries` that do not specify a value for `resource`. Example:\n\n { \"type\": \"gce_instance\",\n \"labels\": {\n \"zone\": \"us-central1-a\", \"instance_id\": \"00000000000000000000\" }}\n\nSee LogEntry." |
} |
}, |
"type": "object" |
}, |
- "Status": { |
- "description": "The `Status` type defines a logical error model that is suitable for different programming environments, including REST APIs and RPC APIs. It is used by [gRPC](https://github.com/grpc). The error model is designed to be: - Simple to use and understand for most users - Flexible enough to meet unexpected needs # Overview The `Status` message contains three pieces of data: error code, error message, and error details. The error code should be an enum value of google.rpc.Code, but it may accept additional error codes if needed. The error message should be a developer-facing English message that helps developers *understand* and *resolve* the error. If a localized user-facing error message is needed, put the localized message in the error details or localize it in the client. The optional error details may contain arbitrary information about the error. There is a predefined set of error detail types in the package `google.rpc` which can be used for common error conditions. # Language mapping The `Status` message is the logical representation of the error model, but it is not necessarily the actual wire format. When the `Status` message is exposed in different client libraries and different wire protocols, it can be mapped differently. For example, it will likely be mapped to some exceptions in Java, but more likely mapped to some error codes in C. # Other uses The error model and the `Status` message can be used in a variety of environments, either with or without APIs, to provide a consistent developer experience across different environments. Example uses of this error model include: - Partial errors. If a service needs to return partial errors to the client, it may embed the `Status` in the normal response to indicate the partial errors. - Workflow errors. A typical workflow has multiple steps. Each step may have a `Status` message for error reporting purpose. - Batch operations. If a client uses batch request and batch response, the `Status` message should be used directly inside batch response, one for each error sub-response. - Asynchronous operations. If an API call embeds asynchronous operation results in its response, the status of those operations should be represented directly using the `Status` message. - Logging. If some API errors are stored in logs, the message `Status` could be used directly after any stripping needed for security/privacy reasons.", |
- "id": "Status", |
+ "LabelDescriptor": { |
+ "description": "A description of a label.", |
+ "id": "LabelDescriptor", |
"properties": { |
- "code": { |
- "description": "The status code, which should be an enum value of google.rpc.Code.", |
- "format": "int32", |
- "type": "integer" |
+ "description": { |
+ "description": "A human-readable description for the label.", |
+ "type": "string" |
}, |
- "message": { |
- "description": "A developer-facing error message, which should be in English. Any user-facing error message should be localized and sent in the google.rpc.Status.details field, or localized by the client.", |
+ "valueType": { |
+ "description": "The type of data that can be assigned to the label.", |
+ "enum": [ |
+ "STRING", |
+ "BOOL", |
+ "INT64" |
+ ], |
+ "enumDescriptions": [ |
+ "A variable-length string. This is the default.", |
+ "Boolean; true or false.", |
+ "A 64-bit signed integer." |
+ ], |
"type": "string" |
}, |
- "details": { |
- "description": "A list of messages that carry the error details. There will be a common set of message types for APIs to use.", |
- "items": { |
- "additionalProperties": { |
- "description": "Properties of the object. Contains field @ype with type URL.", |
- "type": "any" |
- }, |
- "type": "object" |
- }, |
- "type": "array" |
+ "key": { |
+ "description": "The label key.", |
+ "type": "string" |
} |
}, |
"type": "object" |
}, |
- "ListMonitoredResourceDescriptorsResponse": { |
- "description": "Result returned from ListMonitoredResourceDescriptors.", |
- "id": "ListMonitoredResourceDescriptorsResponse", |
+ "ListLogMetricsResponse": { |
+ "description": "Result returned from ListLogMetrics.", |
+ "id": "ListLogMetricsResponse", |
"properties": { |
- "resourceDescriptors": { |
- "description": "A list of resource descriptors.", |
+ "metrics": { |
+ "description": "A list of logs-based metrics.", |
"items": { |
- "$ref": "MonitoredResourceDescriptor" |
+ "$ref": "LogMetric" |
}, |
"type": "array" |
}, |
"nextPageToken": { |
- "description": "If there are more results than were returned, then `nextPageToken` is included in the response. To get the next set of results, call this method again using the value of `nextPageToken` as `pageToken`.", |
+ "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
"MonitoredResourceDescriptor": { |
- "description": "An object that describes the schema of a MonitoredResource object using a type name and a set of labels. For example, the monitored resource descriptor for Google Compute Engine VM instances has a type of `\"gce_instance\"` and specifies the use of the labels `\"instance_id\"` and `\"zone\"` to identify particular VM instances. Different APIs can support different monitored resource types. APIs generally provide a `list` method that returns the monitored resource descriptors used by the API.", |
+ "description": "An object that describes the schema of a MonitoredResource object using a\ntype name and a set of labels. For example, the monitored resource\ndescriptor for Google Compute Engine VM instances has a type of\n`\"gce_instance\"` and specifies the use of the labels `\"instance_id\"` and\n`\"zone\"` to identify particular VM instances.\n\nDifferent APIs can support different monitored resource types. APIs generally\nprovide a `list` method that returns the monitored resource descriptors used\nby the API.", |
"id": "MonitoredResourceDescriptor", |
"properties": { |
- "name": { |
- "description": "Optional. The resource name of the monitored resource descriptor: `\"projects/{project_id}/monitoredResourceDescriptors/{type}\"` where {type} is the value of the `type` field in this object and {project_id} is a project ID that provides API-specific context for accessing the type. APIs that do not use project information can use the resource name format `\"monitoredResourceDescriptors/{type}\"`.", |
- "type": "string" |
- }, |
- "type": { |
- "description": "Required. The monitored resource type. For example, the type `\"cloudsql_database\"` represents databases in Google Cloud SQL.", |
- "type": "string" |
- }, |
"displayName": { |
- "description": "Optional. A concise name for the monitored resource type that might be displayed in user interfaces. For example, `\"Google Cloud SQL Database\"`.", |
+ "description": "Optional. A concise name for the monitored resource type that might be\ndisplayed in user interfaces. It should be a Title Cased Noun Phrase,\nwithout any article or other determiners. For example,\n`\"Google Cloud SQL Database\"`.", |
"type": "string" |
}, |
"description": { |
- "description": "Optional. A detailed description of the monitored resource type that might be used in documentation.", |
+ "description": "Optional. A detailed description of the monitored resource type that might\nbe used in documentation.", |
"type": "string" |
}, |
"labels": { |
- "description": "Required. A set of labels used to describe instances of this monitored resource type. For example, an individual Google Cloud SQL database is identified by values for the labels `\"database_id\"` and `\"zone\"`.", |
+ "description": "Required. A set of labels used to describe instances of this monitored\nresource type. For example, an individual Google Cloud SQL database is\nidentified by values for the labels `\"database_id\"` and `\"zone\"`.", |
"items": { |
"$ref": "LabelDescriptor" |
}, |
"type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "LabelDescriptor": { |
- "description": "A description of a label.", |
- "id": "LabelDescriptor", |
- "properties": { |
- "key": { |
- "description": "The label key.", |
- "type": "string" |
}, |
- "valueType": { |
- "description": "The type of data that can be assigned to the label.", |
- "enum": [ |
- "STRING", |
- "BOOL", |
- "INT64" |
- ], |
+ "type": { |
+ "description": "Required. The monitored resource type. For example, the type\n`\"cloudsql_database\"` represents databases in Google Cloud SQL.\nThe maximum length of this value is 256 characters.", |
"type": "string" |
}, |
- "description": { |
- "description": "A human-readable description for the label.", |
+ "name": { |
+ "description": "Optional. The resource name of the monitored resource descriptor:\n`\"projects/{project_id}/monitoredResourceDescriptors/{type}\"` where\n{type} is the value of the `type` field in this object and\n{project_id} is a project ID that provides API-specific context for\naccessing the type. APIs that do not use project information can use the\nresource name format `\"monitoredResourceDescriptors/{type}\"`.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "ListSinksResponse": { |
- "description": "Result returned from `ListSinks`.", |
- "id": "ListSinksResponse", |
+ "ListMonitoredResourceDescriptorsResponse": { |
+ "description": "Result returned from ListMonitoredResourceDescriptors.", |
+ "id": "ListMonitoredResourceDescriptorsResponse", |
"properties": { |
- "sinks": { |
- "description": "A list of sinks.", |
+ "nextPageToken": { |
+ "description": "If there might be more results than appear in this response, then\n`nextPageToken` is included. To get the next set of results, call this\nmethod again using the value of `nextPageToken` as `pageToken`.", |
+ "type": "string" |
+ }, |
+ "resourceDescriptors": { |
+ "description": "A list of resource descriptors.", |
"items": { |
- "$ref": "LogSink" |
+ "$ref": "MonitoredResourceDescriptor" |
}, |
"type": "array" |
- }, |
- "nextPageToken": { |
- "description": "If there are more results than were returned, then `nextPageToken` is included in the response. To get the next set of results, call this method again using the value of `nextPageToken` as `pageToken`.", |
- "type": "string" |
} |
}, |
"type": "object" |
}, |
- "LogSink": { |
- "description": "Describes a sink used to export log entries outside Cloud Logging.", |
- "id": "LogSink", |
+ "LogEntryOperation": { |
+ "description": "Additional information about a potentially long-running operation with which\na log entry is associated.", |
+ "id": "LogEntryOperation", |
"properties": { |
- "name": { |
- "description": "Required. The client-assigned sink identifier. Example: `\"my-severe-errors-to-pubsub\"`. Sink identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.`.", |
+ "producer": { |
+ "description": "Optional. An arbitrary producer identifier. The combination of\n`id` and `producer` must be globally unique. Examples for `producer`:\n`\"MyDivision.MyBigCompany.com\"`, `\"github.com/MyProject/MyApplication\"`.", |
"type": "string" |
}, |
- "destination": { |
- "description": "The export destination. See [Exporting Logs With Sinks](/logging/docs/api/tasks/exporting-logs). Examples: `\"storage.googleapis.com/a-bucket\"`, `\"bigquery.googleapis.com/projects/a-project-id/datasets/a-dataset\"`.", |
- "type": "string" |
+ "last": { |
+ "description": "Optional. Set this to True if this is the last log entry in the operation.", |
+ "type": "boolean" |
}, |
- "filter": { |
- "description": "An [advanced logs filter](/logging/docs/view/advanced_filters). Only log entries matching that filter are exported. The filter must be consistent with the log entry format specified by the `outputVersionFormat` parameter, regardless of the format of the log entry that was originally written to Cloud Logging. Example (V2 format): `\"logName=projects/my-projectid/logs/syslog AND severity>=ERROR\"`.", |
- "type": "string" |
+ "first": { |
+ "description": "Optional. Set this to True if this is the first log entry in the operation.", |
+ "type": "boolean" |
}, |
- "outputVersionFormat": { |
- "description": "The log entry version to use for this sink's exported log entries. This version does not have to correspond to the version of the log entry when it was written to Cloud Logging.", |
- "enum": [ |
- "VERSION_FORMAT_UNSPECIFIED", |
- "V2", |
- "V1" |
- ], |
+ "id": { |
+ "description": "Optional. An arbitrary operation identifier. Log entries with the\nsame identifier are assumed to be part of the same operation.", |
"type": "string" |
} |
}, |
"type": "object" |
}, |
- "ListLogMetricsResponse": { |
- "description": "Result returned from ListLogMetrics.", |
- "id": "ListLogMetricsResponse", |
+ "Empty": { |
+ "description": "A generic empty message that you can re-use to avoid defining duplicated\nempty messages in your APIs. A typical example is to use it as the request\nor the response type of an API method. For instance:\n\n service Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n }\n\nThe JSON representation for `Empty` is empty JSON object `{}`.", |
+ "id": "Empty", |
+ "properties": {}, |
+ "type": "object" |
+ }, |
+ "HttpRequest": { |
+ "description": "A common proto for logging HTTP requests. Only contains semantics\ndefined by the HTTP specification. Product-specific logging\ninformation MUST be defined in a separate message.", |
+ "id": "HttpRequest", |
"properties": { |
- "metrics": { |
- "description": "A list of logs-based metrics.", |
- "items": { |
- "$ref": "LogMetric" |
- }, |
- "type": "array" |
+ "cacheLookup": { |
+ "description": "Whether or not a cache lookup was attempted.", |
+ "type": "boolean" |
}, |
- "nextPageToken": { |
- "description": "If there are more results than were returned, then `nextPageToken` is included in the response. To get the next set of results, call this method again using the value of `nextPageToken` as `pageToken`.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "LogMetric": { |
- "description": "Describes a logs-based metric. The value of the metric is the number of log entries that match a logs filter.", |
- "id": "LogMetric", |
- "properties": { |
- "name": { |
- "description": "Required. The client-assigned metric identifier. Example: `\"severe_errors\"`. Metric identifiers are limited to 1000 characters and can include only the following characters: `A-Z`, `a-z`, `0-9`, and the special characters `_-.,+!*',()%/\\`. The forward-slash character (`/`) denotes a hierarchy of name pieces, and it cannot be the first character of the name.", |
+ "responseSize": { |
+ "description": "The size of the HTTP response message sent back to the client, in bytes,\nincluding the response headers and the response body.", |
+ "format": "int64", |
"type": "string" |
}, |
- "description": { |
- "description": "A description of this metric, which is used in documentation.", |
- "type": "string" |
+ "status": { |
+ "description": "The response code indicating the status of response.\nExamples: 200, 404.", |
+ "format": "int32", |
+ "type": "integer" |
}, |
- "filter": { |
- "description": "An [advanced logs filter](/logging/docs/view/advanced_filters). Example: `\"logName:syslog AND severity>=ERROR\"`.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "RequestLog": { |
- "description": "Complete log information about a single HTTP request to an App Engine application.", |
- "id": "RequestLog", |
- "properties": { |
- "appId": { |
- "description": "Application that handled this request.", |
+ "cacheValidatedWithOriginServer": { |
+ "description": "Whether or not the response was validated with the origin server before\nbeing served from cache. This field is only meaningful if `cache_hit` is\nTrue.", |
+ "type": "boolean" |
+ }, |
+ "referer": { |
+ "description": "The referer URL of the request, as defined in\n[HTTP/1.1 Header Field Definitions](http://www.w3.org/Protocols/rfc2616/rfc2616-sec14.html).", |
"type": "string" |
}, |
- "moduleId": { |
- "description": "Module of the application that handled this request.", |
+ "cacheHit": { |
+ "description": "Whether or not an entity was served from cache\n(with or without validation).", |
+ "type": "boolean" |
+ }, |
+ "requestUrl": { |
+ "description": "The scheme (http, https), the host name, the path and the query\nportion of the URL that was requested.\nExample: `\"http://example.com/some/info?color=red\"`.", |
"type": "string" |
}, |
- "versionId": { |
- "description": "Version of the application that handled this request.", |
+ "latency": { |
+ "description": "The request processing latency on the server, from the time the request was\nreceived until the response was sent.", |
+ "format": "google-duration", |
"type": "string" |
}, |
- "requestId": { |
- "description": "Globally unique identifier for a request, which is based on the request start time. Request IDs for requests which started later will compare greater as strings than those for requests which started earlier.", |
+ "cacheFillBytes": { |
+ "description": "The number of HTTP response bytes inserted into cache. Set only when a\ncache fill was attempted.", |
+ "format": "int64", |
"type": "string" |
}, |
- "ip": { |
- "description": "Origin IP address.", |
+ "requestMethod": { |
+ "description": "The request method. Examples: `\"GET\"`, `\"HEAD\"`, `\"PUT\"`, `\"POST\"`.", |
"type": "string" |
}, |
- "startTime": { |
- "description": "Time when the request started.", |
+ "remoteIp": { |
+ "description": "The IP address (IPv4 or IPv6) of the client that issued the HTTP\nrequest. Examples: `\"192.168.1.1\"`, `\"FE80::0202:B3FF:FE1E:8329\"`.", |
"type": "string" |
}, |
- "endTime": { |
- "description": "Time when the request finished.", |
+ "serverIp": { |
+ "description": "The IP address (IPv4 or IPv6) of the origin server that the request was\nsent to.", |
"type": "string" |
}, |
- "latency": { |
- "description": "Latency of the request.", |
+ "userAgent": { |
+ "description": "The user agent sent by the client. Example:\n`\"Mozilla/4.0 (compatible; MSIE 6.0; Windows 98; Q312461; .NET CLR 1.0.3705)\"`.", |
"type": "string" |
}, |
- "megaCycles": { |
- "description": "Number of CPU megacycles used to process request.", |
+ "requestSize": { |
+ "description": "The size of the HTTP request message in bytes, including the request\nheaders and the request body.", |
+ "format": "int64", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "RequestLog": { |
+ "description": "Complete log information about a single HTTP request to an App Engine\napplication.", |
+ "id": "RequestLog", |
+ "properties": { |
+ "responseSize": { |
+ "description": "Size in bytes sent back to client by request.", |
"format": "int64", |
"type": "string" |
}, |
- "method": { |
- "description": "Request method. Example: `\"GET\"`, `\"HEAD\"`, `\"PUT\"`, `\"POST\"`, `\"DELETE\"`.", |
+ "requestId": { |
+ "description": "Globally unique identifier for a request, which is based on the request\nstart time. Request IDs for requests which started later will compare\ngreater as strings than those for requests which started earlier.", |
"type": "string" |
}, |
- "resource": { |
- "description": "Contains the path and query portion of the URL 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.", |
+ "first": { |
+ "description": "Whether this is the first RequestLog entry for this request. If an active\nrequest has several RequestLog entries written to Cloud Logging, this field\nwill be set for one of them.", |
+ "type": "boolean" |
+ }, |
+ "method": { |
+ "description": "Request method. Example: `\"GET\"`, `\"HEAD\"`, `\"PUT\"`, `\"POST\"`, `\"DELETE\"`.", |
"type": "string" |
}, |
- "httpVersion": { |
- "description": "HTTP version of request. Example: `\"HTTP/1.1\"`.", |
+ "versionId": { |
+ "description": "Version of the application that handled this request.", |
"type": "string" |
}, |
"status": { |
@@ -1044,67 +1171,59 @@ |
"format": "int32", |
"type": "integer" |
}, |
- "responseSize": { |
- "description": "Size in bytes sent back to client by request.", |
- "format": "int64", |
- "type": "string" |
- }, |
- "referrer": { |
- "description": "Referrer URL of request.", |
- "type": "string" |
+ "wasLoadingRequest": { |
+ "description": "Whether this was a loading request for the instance.", |
+ "type": "boolean" |
}, |
- "userAgent": { |
- "description": "User agent that made the request.", |
+ "ip": { |
+ "description": "Origin IP address.", |
"type": "string" |
}, |
"nickname": { |
- "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 the App Engine Users API. This field will be populated starting with App Engine 1.9.21.", |
+ "description": "The logged-in user who made the request.\n\nMost likely, this is the part of the user's email before the `@` sign. The\nfield value is the same for different requests from the same user, but\ndifferent users can have similar names. This information is also\navailable to the application via the App Engine Users API.\n\nThis field will be populated starting with App Engine 1.9.21.", |
"type": "string" |
}, |
- "urlMapEntry": { |
- "description": "File or class that handled the request.", |
- "type": "string" |
- }, |
- "host": { |
- "description": "Internet host and port number of the resource being requested.", |
- "type": "string" |
- }, |
- "cost": { |
- "description": "An indication of the relative cost of serving this request.", |
- "format": "double", |
- "type": "number" |
- }, |
"taskQueueName": { |
"description": "Queue name of the request, in the case of an offline request.", |
"type": "string" |
}, |
- "taskName": { |
- "description": "Task name of the request, in the case of an offline request.", |
- "type": "string" |
- }, |
- "wasLoadingRequest": { |
- "description": "Whether this was a loading request for the instance.", |
- "type": "boolean" |
- }, |
"pendingTime": { |
"description": "Time this request spent in the pending request queue.", |
+ "format": "google-duration", |
"type": "string" |
}, |
"instanceIndex": { |
- "description": "If the instance processing this request belongs to a manually scaled module, then this is the 0-based index of the instance. Otherwise, this value is -1.", |
+ "description": "If the instance processing this request belongs to a manually scaled\nmodule, then this is the 0-based index of the instance. Otherwise, this\nvalue is -1.", |
"format": "int32", |
"type": "integer" |
}, |
- "finished": { |
- "description": "Whether this request is finished or active.", |
- "type": "boolean" |
+ "sourceReference": { |
+ "description": "Source code for the application that handled this request. There can be\nmore than one source reference per deployed application if source code is\ndistributed among multiple repositories.", |
+ "items": { |
+ "$ref": "SourceReference" |
+ }, |
+ "type": "array" |
}, |
- "first": { |
- "description": "Whether this is the first RequestLog entry for this request. If an active request has several RequestLog entries written to Cloud Logging, this field will be set for one of them.", |
- "type": "boolean" |
+ "moduleId": { |
+ "description": "Module of the application that handled this request.", |
+ "type": "string" |
}, |
- "instanceId": { |
- "description": "An identifier for the instance that handled the request.", |
+ "host": { |
+ "description": "Internet host and port number of the resource being requested.", |
+ "type": "string" |
+ }, |
+ "latency": { |
+ "description": "Latency of the request.", |
+ "format": "google-duration", |
+ "type": "string" |
+ }, |
+ "urlMapEntry": { |
+ "description": "File or class that handled the request.", |
+ "type": "string" |
+ }, |
+ "endTime": { |
+ "description": "Time when the request finished.", |
+ "format": "google-datetime", |
"type": "string" |
}, |
"line": { |
@@ -1114,88 +1233,103 @@ |
}, |
"type": "array" |
}, |
- "appEngineRelease": { |
- "description": "App Engine release version.", |
+ "megaCycles": { |
+ "description": "Number of CPU megacycles used to process request.", |
+ "format": "int64", |
+ "type": "string" |
+ }, |
+ "appId": { |
+ "description": "Application that handled this request.", |
"type": "string" |
}, |
"traceId": { |
"description": "Cloud Trace identifier for this request.", |
"type": "string" |
}, |
- "sourceReference": { |
- "description": "Source code for the application that handled this request. There can be more than one source reference per deployed application if source code is distributed among multiple repositories.", |
- "items": { |
- "$ref": "SourceReference" |
- }, |
- "type": "array" |
- } |
- }, |
- "type": "object" |
- }, |
- "LogLine": { |
- "description": "Application log line emitted while processing a request.", |
- "id": "LogLine", |
- "properties": { |
- "time": { |
- "description": "Approximate time when this log entry was made.", |
+ "taskName": { |
+ "description": "Task name of the request, in the case of an offline request.", |
"type": "string" |
}, |
- "severity": { |
- "description": "Severity of this log entry.", |
- "enum": [ |
- "DEFAULT", |
- "DEBUG", |
- "INFO", |
- "NOTICE", |
- "WARNING", |
- "ERROR", |
- "CRITICAL", |
- "ALERT", |
- "EMERGENCY" |
- ], |
+ "cost": { |
+ "description": "An indication of the relative cost of serving this request.", |
+ "format": "double", |
+ "type": "number" |
+ }, |
+ "instanceId": { |
+ "description": "An identifier for the instance that handled the request.", |
"type": "string" |
}, |
- "logMessage": { |
- "description": "App-provided log message.", |
+ "startTime": { |
+ "description": "Time when the request started.", |
+ "format": "google-datetime", |
"type": "string" |
}, |
- "sourceLocation": { |
- "$ref": "SourceLocation", |
- "description": "Where in the source code this log message was written." |
- } |
- }, |
- "type": "object" |
- }, |
- "SourceLocation": { |
- "description": "Specifies a location in a source code file.", |
- "id": "SourceLocation", |
- "properties": { |
- "file": { |
- "description": "Source file name. Depending on the runtime environment, this might be a simple name or a fully-qualified name.", |
+ "appEngineRelease": { |
+ "description": "App Engine release version.", |
"type": "string" |
}, |
- "line": { |
- "description": "Line within the source file.", |
- "format": "int64", |
+ "resource": { |
+ "description": "Contains the path and query portion of the URL that was requested. For\nexample, if the URL was \"http://example.com/app?name=val\", the resource\nwould be \"/app?name=val\". The fragment identifier, which is identified by\nthe `#` character, is not included.", |
"type": "string" |
}, |
- "functionName": { |
- "description": "Human-readable name of the function or method being invoked, with optional context such as the class or package name. This information is used in contexts such as the logs viewer, where a file and line number are less meaningful. The format can vary by language. For example: `qual.if.ied.Class.method` (Java), `dir/package.func` (Go), `function` (Python).", |
+ "httpVersion": { |
+ "description": "HTTP version of request. Example: `\"HTTP/1.1\"`.", |
+ "type": "string" |
+ }, |
+ "referrer": { |
+ "description": "Referrer URL of request.", |
+ "type": "string" |
+ }, |
+ "userAgent": { |
+ "description": "User agent that made the request.", |
"type": "string" |
+ }, |
+ "finished": { |
+ "description": "Whether this request is finished or active.", |
+ "type": "boolean" |
} |
}, |
"type": "object" |
}, |
- "SourceReference": { |
- "description": "A reference to a particular snapshot of the source tree used to build and deploy an application.", |
- "id": "SourceReference", |
+ "WriteLogEntriesResponse": { |
+ "description": "Result returned from WriteLogEntries.\nempty", |
+ "id": "WriteLogEntriesResponse", |
+ "properties": {}, |
+ "type": "object" |
+ }, |
+ "ListLogEntriesRequest": { |
+ "description": "The parameters to `ListLogEntries`.", |
+ "id": "ListLogEntriesRequest", |
"properties": { |
- "repository": { |
- "description": "Optional. A URI string identifying the repository. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", |
+ "filter": { |
+ "description": "Optional. A filter that chooses which log entries to return. See [Advanced\nLogs Filters](/logging/docs/view/advanced_filters). Only log entries that\nmatch the filter are returned. An empty filter matches all log entries.", |
"type": "string" |
}, |
- "revisionId": { |
- "description": "The canonical and persistent identifier of the deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"", |
+ "projectIds": { |
+ "description": "Deprecated. One or more project identifiers or project numbers from which\nto retrieve log entries. Examples: `\"my-project-1A\"`, `\"1234567890\"`. If\npresent, these project identifiers are converted to resource format and\nadded to the list of resources in `resourceNames`. Callers should use\n`resourceNames` rather than this parameter.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "resourceNames": { |
+ "description": "Required. One or more cloud resources from which to retrieve log entries.\nExample: `\"projects/my-project-1A\"`, `\"projects/1234567890\"`. Projects\nlisted in `projectIds` are added to this list.", |
+ "items": { |
+ "type": "string" |
+ }, |
+ "type": "array" |
+ }, |
+ "pageSize": { |
+ "description": "Optional. The maximum number of results to return from this request.\nNon-positive values are ignored. The presence of `nextPageToken` in the\nresponse indicates that more results might be available.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "orderBy": { |
+ "description": "Optional. How the results should be sorted. Presently, the only permitted\nvalues are `\"timestamp asc\"` (default) and `\"timestamp desc\"`. The first\noption returns entries in order of increasing values of\n`LogEntry.timestamp` (oldest first), and the second option returns entries\nin order of decreasing timestamps (newest first). Entries with equal\ntimestamps are returned in order of `LogEntry.insertId`.", |
+ "type": "string" |
+ }, |
+ "pageToken": { |
+ "description": "Optional. If present, then retrieve the next batch of results from the\npreceding call to this method. `pageToken` must be the value of\n`nextPageToken` from the previous response. The values of other method\nparameters should be identical to those in the previous call.", |
"type": "string" |
} |
}, |
@@ -1203,6 +1337,6 @@ |
} |
}, |
"servicePath": "", |
- "title": "Google Cloud Logging API", |
+ "title": "Stackdriver Logging API", |
"version": "v2beta1" |
} |