Index: discovery/googleapis/logging__v2.json |
diff --git a/discovery/googleapis/logging__v2.json b/discovery/googleapis/logging__v2.json |
index d2e7bf4940c3e9db28ebfc5ee12c3fbea5afffae..3e3ea1ba1f8234fde23bd11cf194a6de973f7c77 100644 |
--- a/discovery/googleapis/logging__v2.json |
+++ b/discovery/googleapis/logging__v2.json |
@@ -37,17 +37,6 @@ |
"ownerDomain": "google.com", |
"ownerName": "Google", |
"parameters": { |
- "quotaUser": { |
- "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pp": { |
- "default": "true", |
- "description": "Pretty-print response.", |
- "location": "query", |
- "type": "boolean" |
- }, |
"oauth_token": { |
"description": "OAuth 2.0 token for the current user.", |
"location": "query", |
@@ -113,27 +102,38 @@ |
"location": "query", |
"type": "string" |
}, |
+ "access_token": { |
+ "description": "OAuth access token.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
"key": { |
"description": "API key. Your API key identifies your project and provides you with API access, quota, and reports. Required unless you provide an OAuth 2.0 token.", |
"location": "query", |
"type": "string" |
}, |
- "access_token": { |
- "description": "OAuth access token.", |
+ "quotaUser": { |
+ "description": "Available to use for quota purposes for server-side applications. Can be any arbitrary string assigned to a user, but should not exceed 40 characters.", |
"location": "query", |
"type": "string" |
+ }, |
+ "pp": { |
+ "default": "true", |
+ "description": "Pretty-print response.", |
+ "location": "query", |
+ "type": "boolean" |
} |
}, |
"protocol": "rest", |
"resources": { |
- "billingAccounts": { |
+ "organizations": { |
"resources": { |
"sinks": { |
"methods": { |
"get": { |
"description": "Gets a sink.", |
"httpMethod": "GET", |
- "id": "logging.billingAccounts.sinks.get", |
+ "id": "logging.organizations.sinks.get", |
"parameterOrder": [ |
"sinkName" |
], |
@@ -141,7 +141,7 @@ |
"sinkName": { |
"description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", |
+ "pattern": "^organizations/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -160,7 +160,7 @@ |
"list": { |
"description": "Lists sinks.", |
"httpMethod": "GET", |
- "id": "logging.billingAccounts.sinks.list", |
+ "id": "logging.organizations.sinks.list", |
"parameterOrder": [ |
"parent" |
], |
@@ -179,7 +179,7 @@ |
"parent": { |
"description": "Required. The parent resource whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
"location": "path", |
- "pattern": "^billingAccounts/[^/]+$", |
+ "pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -198,7 +198,7 @@ |
"update": { |
"description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.", |
"httpMethod": "PUT", |
- "id": "logging.billingAccounts.sinks.update", |
+ "id": "logging.organizations.sinks.update", |
"parameterOrder": [ |
"sinkName" |
], |
@@ -211,7 +211,7 @@ |
"sinkName": { |
"description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", |
+ "pattern": "^organizations/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -231,22 +231,22 @@ |
"create": { |
"description": "Creates a sink that exports specified 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 or the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", |
"httpMethod": "POST", |
- "id": "logging.billingAccounts.sinks.create", |
+ "id": "logging.organizations.sinks.create", |
"parameterOrder": [ |
"parent" |
], |
"parameters": { |
+ "uniqueWriterIdentity": { |
+ "description": "Optional. Determines the kind 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 returned as writer_identity is the same group or service account used by Stackdriver Logging before 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 the new sink. For more information, see writer_identity in LogSink.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
"parent": { |
"description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".", |
"location": "path", |
- "pattern": "^billingAccounts/[^/]+$", |
+ "pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
- }, |
- "uniqueWriterIdentity": { |
- "description": "Optional. Determines the kind 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 returned as writer_identity is the same group or service account used by Stackdriver Logging before 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 the new sink. For more information, see writer_identity in LogSink.", |
- "location": "query", |
- "type": "boolean" |
} |
}, |
"path": "v2/{+parent}/sinks", |
@@ -264,7 +264,7 @@ |
"delete": { |
"description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", |
"httpMethod": "DELETE", |
- "id": "logging.billingAccounts.sinks.delete", |
+ "id": "logging.organizations.sinks.delete", |
"parameterOrder": [ |
"sinkName" |
], |
@@ -272,7 +272,7 @@ |
"sinkName": { |
"description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", |
+ "pattern": "^organizations/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -293,7 +293,7 @@ |
"delete": { |
"description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.", |
"httpMethod": "DELETE", |
- "id": "logging.billingAccounts.logs.delete", |
+ "id": "logging.organizations.logs.delete", |
"parameterOrder": [ |
"logName" |
], |
@@ -301,7 +301,7 @@ |
"logName": { |
"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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", |
"location": "path", |
- "pattern": "^billingAccounts/[^/]+/logs/[^/]+$", |
+ "pattern": "^organizations/[^/]+/logs/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -318,7 +318,7 @@ |
"list": { |
"description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", |
"httpMethod": "GET", |
- "id": "logging.billingAccounts.logs.list", |
+ "id": "logging.organizations.logs.list", |
"parameterOrder": [ |
"parent" |
], |
@@ -337,7 +337,7 @@ |
"parent": { |
"description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
"location": "path", |
- "pattern": "^billingAccounts/[^/]+$", |
+ "pattern": "^organizations/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -357,14 +357,57 @@ |
} |
} |
}, |
- "folders": { |
+ "entries": { |
+ "methods": { |
+ "list": { |
+ "description": "Lists log entries. Use this method to retrieve log entries from Stackdriver Logging. For ways to export log entries, see Exporting Logs.", |
+ "httpMethod": "POST", |
+ "id": "logging.entries.list", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v2/entries:list", |
+ "request": { |
+ "$ref": "ListLogEntriesRequest" |
+ }, |
+ "response": { |
+ "$ref": "ListLogEntriesResponse" |
+ }, |
+ "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" |
+ ] |
+ }, |
+ "write": { |
+ "description": "Writes log entries to Stackdriver Logging.", |
+ "httpMethod": "POST", |
+ "id": "logging.entries.write", |
+ "parameterOrder": [], |
+ "parameters": {}, |
+ "path": "v2/entries:write", |
+ "request": { |
+ "$ref": "WriteLogEntriesRequest" |
+ }, |
+ "response": { |
+ "$ref": "WriteLogEntriesResponse" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/logging.admin", |
+ "https://www.googleapis.com/auth/logging.write" |
+ ] |
+ } |
+ } |
+ }, |
+ "projects": { |
"resources": { |
"sinks": { |
"methods": { |
"delete": { |
"description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", |
"httpMethod": "DELETE", |
- "id": "logging.folders.sinks.delete", |
+ "id": "logging.projects.sinks.delete", |
"parameterOrder": [ |
"sinkName" |
], |
@@ -372,7 +415,7 @@ |
"sinkName": { |
"description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^folders/[^/]+/sinks/[^/]+$", |
+ "pattern": "^projects/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -389,7 +432,7 @@ |
"get": { |
"description": "Gets a sink.", |
"httpMethod": "GET", |
- "id": "logging.folders.sinks.get", |
+ "id": "logging.projects.sinks.get", |
"parameterOrder": [ |
"sinkName" |
], |
@@ -397,7 +440,7 @@ |
"sinkName": { |
"description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^folders/[^/]+/sinks/[^/]+$", |
+ "pattern": "^projects/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -416,18 +459,11 @@ |
"list": { |
"description": "Lists sinks.", |
"httpMethod": "GET", |
- "id": "logging.folders.sinks.list", |
+ "id": "logging.projects.sinks.list", |
"parameterOrder": [ |
"parent" |
], |
"parameters": { |
- "parent": { |
- "description": "Required. The parent resource whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
- "location": "path", |
- "pattern": "^folders/[^/]+$", |
- "required": true, |
- "type": "string" |
- }, |
"pageToken": { |
"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 parameters should be identical to those in the previous call.", |
"location": "query", |
@@ -438,6 +474,13 @@ |
"format": "int32", |
"location": "query", |
"type": "integer" |
+ }, |
+ "parent": { |
+ "description": "Required. The parent resource whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
+ "location": "path", |
+ "pattern": "^projects/[^/]+$", |
+ "required": true, |
+ "type": "string" |
} |
}, |
"path": "v2/{+parent}/sinks", |
@@ -454,7 +497,7 @@ |
"update": { |
"description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.", |
"httpMethod": "PUT", |
- "id": "logging.folders.sinks.update", |
+ "id": "logging.projects.sinks.update", |
"parameterOrder": [ |
"sinkName" |
], |
@@ -467,7 +510,7 @@ |
"sinkName": { |
"description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^folders/[^/]+/sinks/[^/]+$", |
+ "pattern": "^projects/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -487,22 +530,22 @@ |
"create": { |
"description": "Creates a sink that exports specified 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 or the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", |
"httpMethod": "POST", |
- "id": "logging.folders.sinks.create", |
+ "id": "logging.projects.sinks.create", |
"parameterOrder": [ |
"parent" |
], |
"parameters": { |
+ "uniqueWriterIdentity": { |
+ "description": "Optional. Determines the kind 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 returned as writer_identity is the same group or service account used by Stackdriver Logging before 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 the new sink. For more information, see writer_identity in LogSink.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
"parent": { |
"description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".", |
"location": "path", |
- "pattern": "^folders/[^/]+$", |
+ "pattern": "^projects/[^/]+$", |
"required": true, |
"type": "string" |
- }, |
- "uniqueWriterIdentity": { |
- "description": "Optional. Determines the kind 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 returned as writer_identity is the same group or service account used by Stackdriver Logging before 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 the new sink. For more information, see writer_identity in LogSink.", |
- "location": "query", |
- "type": "boolean" |
} |
}, |
"path": "v2/{+parent}/sinks", |
@@ -524,7 +567,7 @@ |
"delete": { |
"description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.", |
"httpMethod": "DELETE", |
- "id": "logging.folders.logs.delete", |
+ "id": "logging.projects.logs.delete", |
"parameterOrder": [ |
"logName" |
], |
@@ -532,7 +575,7 @@ |
"logName": { |
"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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", |
"location": "path", |
- "pattern": "^folders/[^/]+/logs/[^/]+$", |
+ "pattern": "^projects/[^/]+/logs/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -549,7 +592,7 @@ |
"list": { |
"description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", |
"httpMethod": "GET", |
- "id": "logging.folders.logs.list", |
+ "id": "logging.projects.logs.list", |
"parameterOrder": [ |
"parent" |
], |
@@ -568,7 +611,7 @@ |
"parent": { |
"description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
"location": "path", |
- "pattern": "^folders/[^/]+$", |
+ "pattern": "^projects/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -585,103 +628,54 @@ |
] |
} |
} |
- } |
- } |
- }, |
- "monitoredResourceDescriptors": { |
- "methods": { |
- "list": { |
- "description": "Lists the descriptors for monitored resource types used by Stackdriver Logging.", |
- "httpMethod": "GET", |
- "id": "logging.monitoredResourceDescriptors.list", |
- "parameterOrder": [], |
- "parameters": { |
- "pageToken": { |
- "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 parameters should be identical to those in the previous call.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pageSize": { |
- "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
- } |
- }, |
- "path": "v2/monitoredResourceDescriptors", |
- "response": { |
- "$ref": "ListMonitoredResourceDescriptorsResponse" |
- }, |
- "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" |
- ] |
- } |
- } |
- }, |
- "organizations": { |
- "resources": { |
- "sinks": { |
+ }, |
+ "metrics": { |
"methods": { |
- "get": { |
- "description": "Gets a sink.", |
- "httpMethod": "GET", |
- "id": "logging.organizations.sinks.get", |
+ "delete": { |
+ "description": "Deletes a logs-based metric.", |
+ "httpMethod": "DELETE", |
+ "id": "logging.projects.metrics.delete", |
"parameterOrder": [ |
- "sinkName" |
+ "metricName" |
], |
"parameters": { |
- "sinkName": { |
- "description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
+ "metricName": { |
+ "description": "The resource name of the metric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", |
"location": "path", |
- "pattern": "^organizations/[^/]+/sinks/[^/]+$", |
+ "pattern": "^projects/[^/]+/metrics/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2/{+sinkName}", |
+ "path": "v2/{+metricName}", |
"response": { |
- "$ref": "LogSink" |
+ "$ref": "Empty" |
}, |
"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" |
] |
}, |
- "list": { |
- "description": "Lists sinks.", |
+ "get": { |
+ "description": "Gets a logs-based metric.", |
"httpMethod": "GET", |
- "id": "logging.organizations.sinks.list", |
+ "id": "logging.projects.metrics.get", |
"parameterOrder": [ |
- "parent" |
+ "metricName" |
], |
"parameters": { |
- "parent": { |
- "description": "Required. The parent resource whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
+ "metricName": { |
+ "description": "The resource name of the desired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
+ "pattern": "^projects/[^/]+/metrics/[^/]+$", |
"required": true, |
"type": "string" |
- }, |
- "pageToken": { |
- "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 parameters should be identical to those in the previous call.", |
- "location": "query", |
- "type": "string" |
- }, |
- "pageSize": { |
- "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
} |
}, |
- "path": "v2/{+parent}/sinks", |
+ "path": "v2/{+metricName}", |
"response": { |
- "$ref": "ListSinksResponse" |
+ "$ref": "LogMetric" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
@@ -690,244 +684,114 @@ |
"https://www.googleapis.com/auth/logging.read" |
] |
}, |
- "update": { |
- "description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.", |
- "httpMethod": "PUT", |
- "id": "logging.organizations.sinks.update", |
+ "list": { |
+ "description": "Lists logs-based metrics.", |
+ "httpMethod": "GET", |
+ "id": "logging.projects.metrics.list", |
"parameterOrder": [ |
- "sinkName" |
+ "parent" |
], |
"parameters": { |
- "uniqueWriterIdentity": { |
- "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field:\nIf the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity.\nIf the old value is false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value is true and the new value is set to false or defaulted to false.", |
+ "pageSize": { |
+ "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", |
+ "format": "int32", |
"location": "query", |
- "type": "boolean" |
+ "type": "integer" |
}, |
- "sinkName": { |
- "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
- "location": "path", |
- "pattern": "^organizations/[^/]+/sinks/[^/]+$", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v2/{+sinkName}", |
- "request": { |
- "$ref": "LogSink" |
- }, |
- "response": { |
- "$ref": "LogSink" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/logging.admin" |
- ] |
- }, |
- "create": { |
- "description": "Creates a sink that exports specified 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 or the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", |
- "httpMethod": "POST", |
- "id": "logging.organizations.sinks.create", |
- "parameterOrder": [ |
- "parent" |
- ], |
- "parameters": { |
"parent": { |
- "description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".", |
+ "description": "Required. The name of the project containing the metrics:\n\"projects/[PROJECT_ID]\"\n", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
+ "pattern": "^projects/[^/]+$", |
"required": true, |
"type": "string" |
}, |
- "uniqueWriterIdentity": { |
- "description": "Optional. Determines the kind 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 returned as writer_identity is the same group or service account used by Stackdriver Logging before 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 the new sink. For more information, see writer_identity in LogSink.", |
+ "pageToken": { |
+ "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 parameters should be identical to those in the previous call.", |
"location": "query", |
- "type": "boolean" |
+ "type": "string" |
} |
}, |
- "path": "v2/{+parent}/sinks", |
- "request": { |
- "$ref": "LogSink" |
- }, |
+ "path": "v2/{+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" |
] |
}, |
- "delete": { |
- "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", |
- "httpMethod": "DELETE", |
- "id": "logging.organizations.sinks.delete", |
+ "update": { |
+ "description": "Creates or updates a logs-based metric.", |
+ "httpMethod": "PUT", |
+ "id": "logging.projects.metrics.update", |
"parameterOrder": [ |
- "sinkName" |
+ "metricName" |
], |
"parameters": { |
- "sinkName": { |
- "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
+ "metricName": { |
+ "description": "The resource name of the metric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.", |
"location": "path", |
- "pattern": "^organizations/[^/]+/sinks/[^/]+$", |
+ "pattern": "^projects/[^/]+/metrics/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2/{+sinkName}", |
- "response": { |
- "$ref": "Empty" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/logging.admin" |
- ] |
- } |
- } |
- }, |
- "logs": { |
- "methods": { |
- "delete": { |
- "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.", |
- "httpMethod": "DELETE", |
- "id": "logging.organizations.logs.delete", |
- "parameterOrder": [ |
- "logName" |
- ], |
- "parameters": { |
- "logName": { |
- "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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", |
- "location": "path", |
- "pattern": "^organizations/[^/]+/logs/[^/]+$", |
- "required": true, |
- "type": "string" |
- } |
+ "path": "v2/{+metricName}", |
+ "request": { |
+ "$ref": "LogMetric" |
}, |
- "path": "v2/{+logName}", |
"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" |
] |
}, |
- "list": { |
- "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", |
- "httpMethod": "GET", |
- "id": "logging.organizations.logs.list", |
+ "create": { |
+ "description": "Creates a logs-based metric.", |
+ "httpMethod": "POST", |
+ "id": "logging.projects.metrics.create", |
"parameterOrder": [ |
"parent" |
], |
"parameters": { |
- "pageSize": { |
- "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
- }, |
"parent": { |
- "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
+ "description": "The resource name of the project in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric must be provided in the request.", |
"location": "path", |
- "pattern": "^organizations/[^/]+$", |
+ "pattern": "^projects/[^/]+$", |
"required": true, |
"type": "string" |
- }, |
- "pageToken": { |
- "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 parameters should be identical to those in the previous call.", |
- "location": "query", |
- "type": "string" |
} |
}, |
- "path": "v2/{+parent}/logs", |
+ "path": "v2/{+parent}/metrics", |
+ "request": { |
+ "$ref": "LogMetric" |
+ }, |
"response": { |
- "$ref": "ListLogsResponse" |
+ "$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" |
] |
} |
} |
} |
} |
}, |
- "entries": { |
- "methods": { |
- "list": { |
- "description": "Lists log entries. Use this method to retrieve log entries from Stackdriver Logging. For ways to export log entries, see Exporting Logs.", |
- "httpMethod": "POST", |
- "id": "logging.entries.list", |
- "parameterOrder": [], |
- "parameters": {}, |
- "path": "v2/entries:list", |
- "request": { |
- "$ref": "ListLogEntriesRequest" |
- }, |
- "response": { |
- "$ref": "ListLogEntriesResponse" |
- }, |
- "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" |
- ] |
- }, |
- "write": { |
- "description": "Writes log entries to Stackdriver Logging.", |
- "httpMethod": "POST", |
- "id": "logging.entries.write", |
- "parameterOrder": [], |
- "parameters": {}, |
- "path": "v2/entries:write", |
- "request": { |
- "$ref": "WriteLogEntriesRequest" |
- }, |
- "response": { |
- "$ref": "WriteLogEntriesResponse" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/logging.admin", |
- "https://www.googleapis.com/auth/logging.write" |
- ] |
- } |
- } |
- }, |
- "projects": { |
+ "billingAccounts": { |
"resources": { |
"sinks": { |
"methods": { |
- "delete": { |
- "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", |
- "httpMethod": "DELETE", |
- "id": "logging.projects.sinks.delete", |
- "parameterOrder": [ |
- "sinkName" |
- ], |
- "parameters": { |
- "sinkName": { |
- "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
- "location": "path", |
- "pattern": "^projects/[^/]+/sinks/[^/]+$", |
- "required": true, |
- "type": "string" |
- } |
- }, |
- "path": "v2/{+sinkName}", |
- "response": { |
- "$ref": "Empty" |
- }, |
- "scopes": [ |
- "https://www.googleapis.com/auth/cloud-platform", |
- "https://www.googleapis.com/auth/logging.admin" |
- ] |
- }, |
"get": { |
"description": "Gets a sink.", |
"httpMethod": "GET", |
- "id": "logging.projects.sinks.get", |
+ "id": "logging.billingAccounts.sinks.get", |
"parameterOrder": [ |
"sinkName" |
], |
@@ -935,7 +799,7 @@ |
"sinkName": { |
"description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^projects/[^/]+/sinks/[^/]+$", |
+ "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -954,15 +818,21 @@ |
"list": { |
"description": "Lists sinks.", |
"httpMethod": "GET", |
- "id": "logging.projects.sinks.list", |
+ "id": "logging.billingAccounts.sinks.list", |
"parameterOrder": [ |
"parent" |
], |
"parameters": { |
+ "pageSize": { |
+ "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
+ }, |
"parent": { |
"description": "Required. The parent resource whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
"location": "path", |
- "pattern": "^projects/[^/]+$", |
+ "pattern": "^billingAccounts/[^/]+$", |
"required": true, |
"type": "string" |
}, |
@@ -970,12 +840,6 @@ |
"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 parameters should be identical to those in the previous call.", |
"location": "query", |
"type": "string" |
- }, |
- "pageSize": { |
- "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", |
- "format": "int32", |
- "location": "query", |
- "type": "integer" |
} |
}, |
"path": "v2/{+parent}/sinks", |
@@ -992,7 +856,7 @@ |
"update": { |
"description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.", |
"httpMethod": "PUT", |
- "id": "logging.projects.sinks.update", |
+ "id": "logging.billingAccounts.sinks.update", |
"parameterOrder": [ |
"sinkName" |
], |
@@ -1005,7 +869,7 @@ |
"sinkName": { |
"description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^projects/[^/]+/sinks/[^/]+$", |
+ "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
@@ -1025,7 +889,7 @@ |
"create": { |
"description": "Creates a sink that exports specified 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 or the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", |
"httpMethod": "POST", |
- "id": "logging.projects.sinks.create", |
+ "id": "logging.billingAccounts.sinks.create", |
"parameterOrder": [ |
"parent" |
], |
@@ -1033,7 +897,7 @@ |
"parent": { |
"description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".", |
"location": "path", |
- "pattern": "^projects/[^/]+$", |
+ "pattern": "^billingAccounts/[^/]+$", |
"required": true, |
"type": "string" |
}, |
@@ -1054,28 +918,24 @@ |
"https://www.googleapis.com/auth/cloud-platform", |
"https://www.googleapis.com/auth/logging.admin" |
] |
- } |
- } |
- }, |
- "logs": { |
- "methods": { |
+ }, |
"delete": { |
- "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.", |
+ "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", |
"httpMethod": "DELETE", |
- "id": "logging.projects.logs.delete", |
+ "id": "logging.billingAccounts.sinks.delete", |
"parameterOrder": [ |
- "logName" |
+ "sinkName" |
], |
"parameters": { |
- "logName": { |
- "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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", |
+ "sinkName": { |
+ "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^projects/[^/]+/logs/[^/]+$", |
+ "pattern": "^billingAccounts/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2/{+logName}", |
+ "path": "v2/{+sinkName}", |
"response": { |
"$ref": "Empty" |
}, |
@@ -1083,20 +943,19 @@ |
"https://www.googleapis.com/auth/cloud-platform", |
"https://www.googleapis.com/auth/logging.admin" |
] |
- }, |
+ } |
+ } |
+ }, |
+ "logs": { |
+ "methods": { |
"list": { |
"description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", |
"httpMethod": "GET", |
- "id": "logging.projects.logs.list", |
+ "id": "logging.billingAccounts.logs.list", |
"parameterOrder": [ |
"parent" |
], |
"parameters": { |
- "pageToken": { |
- "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 parameters should be identical to those in the previous call.", |
- "location": "query", |
- "type": "string" |
- }, |
"pageSize": { |
"description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", |
"format": "int32", |
@@ -1106,9 +965,14 @@ |
"parent": { |
"description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
"location": "path", |
- "pattern": "^projects/[^/]+$", |
+ "pattern": "^billingAccounts/[^/]+$", |
"required": true, |
"type": "string" |
+ }, |
+ "pageToken": { |
+ "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 parameters should be identical to those in the previous call.", |
+ "location": "query", |
+ "type": "string" |
} |
}, |
"path": "v2/{+parent}/logs", |
@@ -1121,30 +985,84 @@ |
"https://www.googleapis.com/auth/logging.admin", |
"https://www.googleapis.com/auth/logging.read" |
] |
+ }, |
+ "delete": { |
+ "description": "Deletes all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.", |
+ "httpMethod": "DELETE", |
+ "id": "logging.billingAccounts.logs.delete", |
+ "parameterOrder": [ |
+ "logName" |
+ ], |
+ "parameters": { |
+ "logName": { |
+ "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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", |
+ "location": "path", |
+ "pattern": "^billingAccounts/[^/]+/logs/[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v2/{+logName}", |
+ "response": { |
+ "$ref": "Empty" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "https://www.googleapis.com/auth/logging.admin" |
+ ] |
} |
} |
- }, |
- "metrics": { |
+ } |
+ } |
+ }, |
+ "folders": { |
+ "resources": { |
+ "sinks": { |
"methods": { |
+ "delete": { |
+ "description": "Deletes a sink. If the sink has a unique writer_identity, then that service account is also deleted.", |
+ "httpMethod": "DELETE", |
+ "id": "logging.folders.sinks.delete", |
+ "parameterOrder": [ |
+ "sinkName" |
+ ], |
+ "parameters": { |
+ "sinkName": { |
+ "description": "Required. The full resource name of the sink to delete, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
+ "location": "path", |
+ "pattern": "^folders/[^/]+/sinks/[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v2/{+sinkName}", |
+ "response": { |
+ "$ref": "Empty" |
+ }, |
+ "scopes": [ |
+ "https://www.googleapis.com/auth/cloud-platform", |
+ "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.folders.sinks.get", |
"parameterOrder": [ |
- "metricName" |
+ "sinkName" |
], |
"parameters": { |
- "metricName": { |
- "description": "The resource name of the desired metric:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", |
+ "sinkName": { |
+ "description": "Required. The resource name of the sink:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^projects/[^/]+/metrics/[^/]+$", |
+ "pattern": "^folders/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2/{+metricName}", |
+ "path": "v2/{+sinkName}", |
"response": { |
- "$ref": "LogMetric" |
+ "$ref": "LogSink" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
@@ -1154,9 +1072,9 @@ |
] |
}, |
"list": { |
- "description": "Lists logs-based metrics.", |
+ "description": "Lists sinks.", |
"httpMethod": "GET", |
- "id": "logging.projects.metrics.list", |
+ "id": "logging.folders.sinks.list", |
"parameterOrder": [ |
"parent" |
], |
@@ -1168,9 +1086,9 @@ |
"type": "integer" |
}, |
"parent": { |
- "description": "Required. The name of the project containing the metrics:\n\"projects/[PROJECT_ID]\"\n", |
+ "description": "Required. The parent resource whose sinks are to be listed:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
"location": "path", |
- "pattern": "^projects/[^/]+$", |
+ "pattern": "^folders/[^/]+$", |
"required": true, |
"type": "string" |
}, |
@@ -1180,9 +1098,9 @@ |
"type": "string" |
} |
}, |
- "path": "v2/{+parent}/metrics", |
+ "path": "v2/{+parent}/sinks", |
"response": { |
- "$ref": "ListLogMetricsResponse" |
+ "$ref": "ListSinksResponse" |
}, |
"scopes": [ |
"https://www.googleapis.com/auth/cloud-platform", |
@@ -1192,125 +1110,214 @@ |
] |
}, |
"update": { |
- "description": "Creates or updates a logs-based metric.", |
+ "description": "Updates a sink. If the named sink doesn't exist, then this method is identical to sinks.create. If the named sink does exist, then this method replaces the following fields in the existing sink with values from the new sink: destination, filter, output_version_format, start_time, and end_time. The updated filter might also have a new writer_identity; see the unique_writer_identity field.", |
"httpMethod": "PUT", |
- "id": "logging.projects.metrics.update", |
+ "id": "logging.folders.sinks.update", |
"parameterOrder": [ |
- "metricName" |
+ "sinkName" |
], |
"parameters": { |
- "metricName": { |
- "description": "The resource name of the metric to update:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\nThe updated metric must be provided in the request and it's name field must be the same as [METRIC_ID] If the metric does not exist in [PROJECT_ID], then a new metric is created.", |
+ "uniqueWriterIdentity": { |
+ "description": "Optional. See sinks.create for a description of this field. When updating a sink, the effect of this field on the value of writer_identity in the updated sink depends on both the old and new values of this field:\nIf the old and new values of this field are both false or both true, then there is no change to the sink's writer_identity.\nIf the old value is false and the new value is true, then writer_identity is changed to a unique service account.\nIt is an error if the old value is true and the new value is set to false or defaulted to false.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
+ "sinkName": { |
+ "description": "Required. The full resource name of the sink to update, including the parent resource and the sink identifier:\n\"projects/[PROJECT_ID]/sinks/[SINK_ID]\"\n\"organizations/[ORGANIZATION_ID]/sinks/[SINK_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/sinks/[SINK_ID]\"\n\"folders/[FOLDER_ID]/sinks/[SINK_ID]\"\nExample: \"projects/my-project-id/sinks/my-sink-id\".", |
"location": "path", |
- "pattern": "^projects/[^/]+/metrics/[^/]+$", |
+ "pattern": "^folders/[^/]+/sinks/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2/{+metricName}", |
+ "path": "v2/{+sinkName}", |
"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" |
] |
}, |
"create": { |
- "description": "Creates a logs-based metric.", |
+ "description": "Creates a sink that exports specified 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 or the sink's writer_identity is not permitted to write to the destination. A sink can export log entries only from the resource owning the sink.", |
"httpMethod": "POST", |
- "id": "logging.projects.metrics.create", |
+ "id": "logging.folders.sinks.create", |
"parameterOrder": [ |
"parent" |
], |
"parameters": { |
+ "uniqueWriterIdentity": { |
+ "description": "Optional. Determines the kind 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 returned as writer_identity is the same group or service account used by Stackdriver Logging before 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 the new sink. For more information, see writer_identity in LogSink.", |
+ "location": "query", |
+ "type": "boolean" |
+ }, |
"parent": { |
- "description": "The resource name of the project in which to create the metric:\n\"projects/[PROJECT_ID]\"\nThe new metric must be provided in the request.", |
+ "description": "Required. The resource in which to create the sink:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\nExamples: \"projects/my-logging-project\", \"organizations/123456789\".", |
"location": "path", |
- "pattern": "^projects/[^/]+$", |
+ "pattern": "^folders/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2/{+parent}/metrics", |
+ "path": "v2/{+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" |
+ ] |
+ } |
+ } |
+ }, |
+ "logs": { |
+ "methods": { |
+ "list": { |
+ "description": "Lists the logs in projects, organizations, folders, or billing accounts. Only logs that have entries are listed.", |
+ "httpMethod": "GET", |
+ "id": "logging.folders.logs.list", |
+ "parameterOrder": [ |
+ "parent" |
+ ], |
+ "parameters": { |
+ "pageToken": { |
+ "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 parameters should be identical to those in the previous call.", |
+ "location": "query", |
+ "type": "string" |
+ }, |
+ "pageSize": { |
+ "description": "Optional. The maximum number of results to return from this request. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
+ }, |
+ "parent": { |
+ "description": "Required. The resource name that owns the logs:\n\"projects/[PROJECT_ID]\"\n\"organizations/[ORGANIZATION_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]\"\n\"folders/[FOLDER_ID]\"\n", |
+ "location": "path", |
+ "pattern": "^folders/[^/]+$", |
+ "required": true, |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v2/{+parent}/logs", |
+ "response": { |
+ "$ref": "ListLogsResponse" |
}, |
"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 all the log entries in a log. The log reappears if it receives new entries. Log entries written shortly before the delete operation might not be deleted.", |
"httpMethod": "DELETE", |
- "id": "logging.projects.metrics.delete", |
+ "id": "logging.folders.logs.delete", |
"parameterOrder": [ |
- "metricName" |
+ "logName" |
], |
"parameters": { |
- "metricName": { |
- "description": "The resource name of the metric to delete:\n\"projects/[PROJECT_ID]/metrics/[METRIC_ID]\"\n", |
+ "logName": { |
+ "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\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\", \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", |
"location": "path", |
- "pattern": "^projects/[^/]+/metrics/[^/]+$", |
+ "pattern": "^folders/[^/]+/logs/[^/]+$", |
"required": true, |
"type": "string" |
} |
}, |
- "path": "v2/{+metricName}", |
+ "path": "v2/{+logName}", |
"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" |
] |
} |
} |
} |
} |
+ }, |
+ "monitoredResourceDescriptors": { |
+ "methods": { |
+ "list": { |
+ "description": "Lists the descriptors for monitored resource types 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. Non-positive values are ignored. The presence of nextPageToken in the response indicates that more results might be available.", |
+ "format": "int32", |
+ "location": "query", |
+ "type": "integer" |
+ }, |
+ "pageToken": { |
+ "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 parameters should be identical to those in the previous call.", |
+ "location": "query", |
+ "type": "string" |
+ } |
+ }, |
+ "path": "v2/monitoredResourceDescriptors", |
+ "response": { |
+ "$ref": "ListMonitoredResourceDescriptorsResponse" |
+ }, |
+ "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" |
+ ] |
+ } |
+ } |
} |
}, |
- "revision": "20170626", |
+ "revision": "20170717", |
"rootUrl": "https://logging.googleapis.com/", |
"schemas": { |
- "ListLogEntriesResponse": { |
- "description": "Result returned from ListLogEntries.", |
- "id": "ListLogEntriesResponse", |
- "properties": { |
- "nextPageToken": { |
- "description": "If there might be more results than those appearing 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.If a value for next_page_token appears and the entries field is empty, it means that the search found no log entries so far but it did not have time to search all the possible log entries. Retry the method with this value for page_token to continue the search. Alternatively, consider speeding up the search by changing your filter to specify a single log name or resource type, or to narrow the time range of the search.", |
- "type": "string" |
- }, |
- "entries": { |
- "description": "A list of log entries.", |
- "items": { |
- "$ref": "LogEntry" |
- }, |
- "type": "array" |
- } |
- }, |
+ "Empty": { |
+ "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:\nservice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe JSON representation for Empty is empty JSON object {}.", |
+ "id": "Empty", |
+ "properties": {}, |
"type": "object" |
}, |
- "LogLine": { |
- "description": "Application log line emitted while processing a request.", |
- "id": "LogLine", |
+ "LogEntry": { |
+ "description": "An individual entry in a log.", |
+ "id": "LogEntry", |
"properties": { |
- "logMessage": { |
- "description": "App-provided log message.", |
+ "textPayload": { |
+ "description": "The log entry payload, represented as a Unicode string (UTF-8).", |
"type": "string" |
}, |
+ "protoPayload": { |
+ "additionalProperties": { |
+ "description": "Properties of the object. Contains field @type with type URL.", |
+ "type": "any" |
+ }, |
+ "description": "The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.", |
+ "type": "object" |
+ }, |
+ "trace": { |
+ "description": "Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824", |
+ "type": "string" |
+ }, |
+ "labels": { |
+ "additionalProperties": { |
+ "type": "string" |
+ }, |
+ "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.", |
+ "type": "object" |
+ }, |
"severity": { |
- "description": "Severity of this log entry.", |
+ "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.", |
"enum": [ |
"DEFAULT", |
"DEBUG", |
@@ -1336,39 +1343,9 @@ |
"type": "string" |
}, |
"sourceLocation": { |
- "$ref": "SourceLocation", |
- "description": "Where in the source code this log message was written." |
- }, |
- "time": { |
- "description": "Approximate time when this log entry was made.", |
- "format": "google-datetime", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "ListLogMetricsResponse": { |
- "description": "Result returned from ListLogMetrics.", |
- "id": "ListLogMetricsResponse", |
- "properties": { |
- "metrics": { |
- "description": "A list of logs-based metrics.", |
- "items": { |
- "$ref": "LogMetric" |
- }, |
- "type": "array" |
+ "$ref": "LogEntrySourceLocation", |
+ "description": "Optional. Source code location information associated with the log entry, if any." |
}, |
- "nextPageToken": { |
- "description": "If there might be more results than appear 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.", |
- "type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "LogEntry": { |
- "description": "An individual entry in a log.", |
- "id": "LogEntry", |
- "properties": { |
"receiveTimestamp": { |
"description": "Output only. The time the log entry was received by Stackdriver Logging.", |
"format": "google-datetime", |
@@ -1383,14 +1360,14 @@ |
"description": "Required. The resource name of the log to which this log entry belongs:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_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 include the following characters: upper and lower case alphanumeric characters, forward-slash, underscore, hyphen, and period.For backward compatibility, if log_name begins with a forward-slash, such as /projects/..., then the log entry is ingested 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 never return any results.", |
"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. Example: a log entry that reports a database error would be associated with the monitored resource designating the particular database that reported the error." |
}, |
+ "httpRequest": { |
+ "$ref": "HttpRequest", |
+ "description": "Optional. Information about the HTTP request associated with this log entry, if applicable." |
+ }, |
"jsonPayload": { |
"additionalProperties": { |
"description": "Properties of the object.", |
@@ -1406,69 +1383,10 @@ |
"operation": { |
"$ref": "LogEntryOperation", |
"description": "Optional. Information about an operation associated with the log entry, if applicable." |
- }, |
- "textPayload": { |
- "description": "The log entry payload, represented as a Unicode string (UTF-8).", |
- "type": "string" |
- }, |
- "protoPayload": { |
- "additionalProperties": { |
- "description": "Properties of the object. Contains field @type with type URL.", |
- "type": "any" |
- }, |
- "description": "The log entry payload, represented as a protocol buffer. Some Google Cloud Platform services use this field for their log entry payloads.", |
- "type": "object" |
- }, |
- "labels": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "Optional. A set of user-defined (key, value) data that provides additional information about the log entry.", |
- "type": "object" |
- }, |
- "trace": { |
- "description": "Optional. Resource name of the trace associated with the log entry, if any. If it contains a relative resource name, the name is assumed to be relative to //tracing.googleapis.com. Example: projects/my-projectid/traces/06796866738c859f2f19b7cfb3214824", |
- "type": "string" |
- }, |
- "severity": { |
- "description": "Optional. The severity of the log entry. The default value is LogSeverity.DEFAULT.", |
- "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 a 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" |
- }, |
- "sourceLocation": { |
- "$ref": "LogEntrySourceLocation", |
- "description": "Optional. Source code location information associated with the log entry, if any." |
} |
}, |
"type": "object" |
}, |
- "Empty": { |
- "description": "A generic empty message that you can re-use to avoid defining duplicated empty messages in your APIs. A typical example is to use it as the request or the response type of an API method. For instance:\nservice Foo {\n rpc Bar(google.protobuf.Empty) returns (google.protobuf.Empty);\n}\nThe JSON representation for Empty is empty JSON object {}.", |
- "id": "Empty", |
- "properties": {}, |
- "type": "object" |
- }, |
"SourceLocation": { |
"description": "Specifies a location in a source code file.", |
"id": "SourceLocation", |
@@ -1531,6 +1449,64 @@ |
"description": "Complete log information about a single HTTP request to an App Engine application.", |
"id": "RequestLog", |
"properties": { |
+ "line": { |
+ "description": "A list of log lines emitted by the application while serving this request.", |
+ "items": { |
+ "$ref": "LogLine" |
+ }, |
+ "type": "array" |
+ }, |
+ "referrer": { |
+ "description": "Referrer URL of request.", |
+ "type": "string" |
+ }, |
+ "taskQueueName": { |
+ "description": "Queue name of the request, in the case of an offline request.", |
+ "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.", |
+ "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.", |
+ "type": "string" |
+ }, |
+ "pendingTime": { |
+ "description": "Time this request spent in the pending request queue.", |
+ "format": "google-duration", |
+ "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.", |
+ "type": "string" |
+ }, |
+ "status": { |
+ "description": "HTTP response status code. Example: 200, 404.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "taskName": { |
+ "description": "Task name of the request, in the case of an offline request.", |
+ "type": "string" |
+ }, |
+ "urlMapEntry": { |
+ "description": "File or class that handled the request.", |
+ "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.", |
+ "format": "int32", |
+ "type": "integer" |
+ }, |
+ "finished": { |
+ "description": "Whether this request is finished or active.", |
+ "type": "boolean" |
+ }, |
+ "host": { |
+ "description": "Internet host and port number of the resource being requested.", |
+ "type": "string" |
+ }, |
"httpVersion": { |
"description": "HTTP version of request. Example: \"HTTP/1.1\".", |
"type": "string" |
@@ -1615,64 +1591,6 @@ |
"traceId": { |
"description": "Stackdriver Trace identifier for this request.", |
"type": "string" |
- }, |
- "line": { |
- "description": "A list of log lines emitted by the application while serving this request.", |
- "items": { |
- "$ref": "LogLine" |
- }, |
- "type": "array" |
- }, |
- "referrer": { |
- "description": "Referrer URL of request.", |
- "type": "string" |
- }, |
- "taskQueueName": { |
- "description": "Queue name of the request, in the case of an offline request.", |
- "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.", |
- "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.", |
- "type": "string" |
- }, |
- "status": { |
- "description": "HTTP response status code. Example: 200, 404.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "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.", |
- "type": "string" |
- }, |
- "pendingTime": { |
- "description": "Time this request spent in the pending request queue.", |
- "format": "google-duration", |
- "type": "string" |
- }, |
- "taskName": { |
- "description": "Task name of the request, in the case of an offline request.", |
- "type": "string" |
- }, |
- "urlMapEntry": { |
- "description": "File or class that handled the request.", |
- "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.", |
- "format": "int32", |
- "type": "integer" |
- }, |
- "finished": { |
- "description": "Whether this request is finished or active.", |
- "type": "boolean" |
- }, |
- "host": { |
- "description": "Internet host and port number of the resource being requested.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -1695,40 +1613,17 @@ |
}, |
"type": "object" |
}, |
- "SourceReference": { |
- "description": "A reference to a particular snapshot of the source tree used to build and deploy an application.", |
- "id": "SourceReference", |
- "properties": { |
- "revisionId": { |
- "description": "The canonical and persistent identifier of the deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"", |
- "type": "string" |
- }, |
- "repository": { |
- "description": "Optional. A URI string identifying the repository. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", |
- "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 deploy an application.", |
+ "id": "SourceReference", |
"properties": { |
- "id": { |
- "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.", |
+ "revisionId": { |
+ "description": "The canonical and persistent identifier of the deployed revision. Example (git): \"0035781c50ec7aa23385dc841529ce8a4b70db1b\"", |
"type": "string" |
}, |
- "first": { |
- "description": "Optional. Set this to True if this is the first log entry in the operation.", |
- "type": "boolean" |
- }, |
- "producer": { |
- "description": "Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for producer: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".", |
+ "repository": { |
+ "description": "Optional. A URI string identifying the repository. Example: \"https://github.com/GoogleCloudPlatform/kubernetes.git\"", |
"type": "string" |
- }, |
- "last": { |
- "description": "Optional. Set this to True if this is the last log entry in the operation.", |
- "type": "boolean" |
} |
}, |
"type": "object" |
@@ -1737,6 +1632,10 @@ |
"description": "Describes a logs-based metric. The value of the metric is the number of log entries that match a logs filter in a given time interval.", |
"id": "LogMetric", |
"properties": { |
+ "description": { |
+ "description": "Optional. A description of this metric, which is used in documentation.", |
+ "type": "string" |
+ }, |
"version": { |
"description": "Output only. The API version that created or updated this metric. The version also dictates the syntax of the filter expression. When a value for this field is missing, the default value of V2 should be assumed.", |
"enum": [ |
@@ -1756,9 +1655,28 @@ |
"name": { |
"description": "Required. The client-assigned metric identifier. Examples: \"error_count\", \"nginx/requests\".Metric identifiers are limited to 100 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.The metric identifier in this field must not be URL-encoded (https://en.wikipedia.org/wiki/Percent-encoding). However, when the metric identifier appears as the [METRIC_ID] part of a metric_name API parameter, then the metric identifier must be URL-encoded. Example: \"projects/my-project/metrics/nginx%2Frequests\".", |
"type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "LogEntryOperation": { |
+ "description": "Additional information about a potentially long-running operation with which a log entry is associated.", |
+ "id": "LogEntryOperation", |
+ "properties": { |
+ "last": { |
+ "description": "Optional. Set this to True if this is the last log entry in the operation.", |
+ "type": "boolean" |
+ }, |
+ "id": { |
+ "description": "Optional. An arbitrary operation identifier. Log entries with the same identifier are assumed to be part of the same operation.", |
+ "type": "string" |
}, |
- "description": { |
- "description": "Optional. A description of this metric, which is used in documentation.", |
+ "first": { |
+ "description": "Optional. Set this to True if this is the first log entry in the operation.", |
+ "type": "boolean" |
+ }, |
+ "producer": { |
+ "description": "Optional. An arbitrary producer identifier. The combination of id and producer must be globally unique. Examples for producer: \"MyDivision.MyBigCompany.com\", \"github.com/MyProject/MyApplication\".", |
"type": "string" |
} |
}, |
@@ -1774,49 +1692,16 @@ |
"description": "An object representing a resource that can be used for monitoring, logging, billing, or other purposes. Examples include virtual machine instances, databases, and storage devices such as disks. The type field identifies a MonitoredResourceDescriptor object that describes the resource's schema. Information in the labels field identifies the actual resource and its attributes according to the schema. For example, a particular Compute Engine VM instance could be represented by the following object, because the MonitoredResourceDescriptor for \"gce_instance\" has labels \"instance_id\" and \"zone\":\n{ \"type\": \"gce_instance\",\n \"labels\": { \"instance_id\": \"12345678901234\",\n \"zone\": \"us-central1-a\" }}\n", |
"id": "MonitoredResource", |
"properties": { |
- "labels": { |
- "additionalProperties": { |
- "type": "string" |
- }, |
- "description": "Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels \"project_id\", \"instance_id\", and \"zone\".", |
- "type": "object" |
- }, |
"type": { |
"description": "Required. The monitored resource type. This field must match the type field of a MonitoredResourceDescriptor object. For example, the type of a Compute Engine VM instance is gce_instance.", |
"type": "string" |
- } |
- }, |
- "type": "object" |
- }, |
- "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 entries in entries. If a log entry already has a label with the same key as a label in this parameter, then the log entry's label is not changed. See LogEntry.", |
+ "description": "Required. Values for all of the labels listed in the associated monitored resource descriptor. For example, Compute Engine VM instances use the labels \"project_id\", \"instance_id\", and \"zone\".", |
"type": "object" |
- }, |
- "resource": { |
- "$ref": "MonitoredResource", |
- "description": "Optional. A default monitored resource object 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." |
- }, |
- "entries": { |
- "description": "Required. The log entries to write. Values supplied for the fields log_name, resource, and labels in this entries.write request are inserted into those log entries in this list that do not provide their own values.Stackdriver Logging also creates and inserts values for timestamp and insert_id if the entries do not provide them. The created insert_id for the N'th entry in this list will be greater than earlier entries and less than later entries. Otherwise, the order of log entries in this list does not matter.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 calling this method for each individual log entry.", |
- "items": { |
- "$ref": "LogEntry" |
- }, |
- "type": "array" |
- }, |
- "logName": { |
- "description": "Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", |
- "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, then the response status is the error associated with one of the failed entries and the response includes error details keyed by the entries' zero-based index in the entries.write method.", |
- "type": "boolean" |
} |
}, |
"type": "object" |
@@ -1825,20 +1710,6 @@ |
"description": "Describes a sink used to export log entries to one of 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, organization, billing account, or folder.", |
"id": "LogSink", |
"properties": { |
- "outputVersionFormat": { |
- "description": "Optional. The log entry format to use for this 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 Migration to the v2 API.", |
- "enum": [ |
- "VERSION_FORMAT_UNSPECIFIED", |
- "V2", |
- "V1" |
- ], |
- "enumDescriptions": [ |
- "An unspecified format version that will default to V2.", |
- "LogEntry version 2 format.", |
- "LogEntry version 1 format." |
- ], |
- "type": "string" |
- }, |
"name": { |
"description": "Required. The client-assigned sink identifier, unique within the project. Example: \"my-syslog-errors-to-pubsub\". Sink identifiers are limited to 100 characters and can include only the following characters: upper and lower-case alphanumeric characters, underscores, hyphens, and periods.", |
"type": "string" |
@@ -1868,6 +1739,53 @@ |
"description": "Optional. The time at which this sink will begin 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.", |
"format": "google-datetime", |
"type": "string" |
+ }, |
+ "outputVersionFormat": { |
+ "description": "Deprecated. The log entry format to use for this sink's exported log entries. The v2 format is used by default and cannot be changed.", |
+ "enum": [ |
+ "VERSION_FORMAT_UNSPECIFIED", |
+ "V2", |
+ "V1" |
+ ], |
+ "enumDescriptions": [ |
+ "An unspecified format version that will default to V2.", |
+ "LogEntry version 2 format.", |
+ "LogEntry version 1 format." |
+ ], |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "WriteLogEntriesRequest": { |
+ "description": "The parameters to WriteLogEntries.", |
+ "id": "WriteLogEntriesRequest", |
+ "properties": { |
+ "entries": { |
+ "description": "Required. The log entries to write. Values supplied for the fields log_name, resource, and labels in this entries.write request are inserted into those log entries in this list that do not provide their own values.Stackdriver Logging also creates and inserts values for timestamp and insert_id if the entries do not provide them. The created insert_id for the N'th entry in this list will be greater than earlier entries and less than later entries. Otherwise, the order of log entries in this list does not matter.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 calling this method for each individual log entry.", |
+ "items": { |
+ "$ref": "LogEntry" |
+ }, |
+ "type": "array" |
+ }, |
+ "logName": { |
+ "description": "Optional. A default log resource name that is assigned to all log entries in entries that do not specify a value for log_name:\n\"projects/[PROJECT_ID]/logs/[LOG_ID]\"\n\"organizations/[ORGANIZATION_ID]/logs/[LOG_ID]\"\n\"billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]\"\n\"folders/[FOLDER_ID]/logs/[LOG_ID]\"\n[LOG_ID] must be URL-encoded. For example, \"projects/my-project-id/logs/syslog\" or \"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity\". For more information about log names, see LogEntry.", |
+ "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, then the response status is the error associated with one of the failed entries and the response includes error details keyed by the entries' zero-based index in the entries.write method.", |
+ "type": "boolean" |
+ }, |
+ "labels": { |
+ "additionalProperties": { |
+ "type": "string" |
+ }, |
+ "description": "Optional. Default labels that are added to the labels field of all log entries in entries. If a log entry already has a label with the same key as a label in this parameter, then the log entry's label is not changed. See LogEntry.", |
+ "type": "object" |
+ }, |
+ "resource": { |
+ "$ref": "MonitoredResource", |
+ "description": "Optional. A default monitored resource object 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." |
} |
}, |
"type": "object" |
@@ -1898,13 +1816,13 @@ |
"description": "The request method. Examples: \"GET\", \"HEAD\", \"PUT\", \"POST\".", |
"type": "string" |
}, |
- "responseSize": { |
- "description": "The size of the HTTP response message sent back to the client, in bytes, including the response headers and the response body.", |
+ "requestSize": { |
+ "description": "The size of the HTTP request message in bytes, including the request headers and the request body.", |
"format": "int64", |
"type": "string" |
}, |
- "requestSize": { |
- "description": "The size of the HTTP request message in bytes, including the request headers and the request body.", |
+ "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" |
}, |
@@ -1912,14 +1830,14 @@ |
"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" |
}, |
- "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\".", |
- "type": "string" |
- }, |
"serverIp": { |
"description": "The IP address (IPv4 or IPv6) of the origin server that the request was sent to.", |
"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\".", |
+ "type": "string" |
+ }, |
"cacheLookup": { |
"description": "Whether or not a cache lookup was attempted.", |
"type": "boolean" |
@@ -1980,6 +1898,14 @@ |
"description": "A description of a label.", |
"id": "LabelDescriptor", |
"properties": { |
+ "key": { |
+ "description": "The label key.", |
+ "type": "string" |
+ }, |
+ "description": { |
+ "description": "A human-readable description for the label.", |
+ "type": "string" |
+ }, |
"valueType": { |
"description": "The type of data that can be assigned to the label.", |
"enum": [ |
@@ -1993,14 +1919,6 @@ |
"A 64-bit signed integer." |
], |
"type": "string" |
- }, |
- "key": { |
- "description": "The label key.", |
- "type": "string" |
- }, |
- "description": { |
- "description": "A human-readable description for the label.", |
- "type": "string" |
} |
}, |
"type": "object" |
@@ -2054,6 +1972,88 @@ |
} |
}, |
"type": "object" |
+ }, |
+ "ListLogEntriesResponse": { |
+ "description": "Result returned from ListLogEntries.", |
+ "id": "ListLogEntriesResponse", |
+ "properties": { |
+ "nextPageToken": { |
+ "description": "If there might be more results than those appearing 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.If a value for next_page_token appears and the entries field is empty, it means that the search found no log entries so far but it did not have time to search all the possible log entries. Retry the method with this value for page_token to continue the search. Alternatively, consider speeding up the search by changing your filter to specify a single log name or resource type, or to narrow the time range of the search.", |
+ "type": "string" |
+ }, |
+ "entries": { |
+ "description": "A list of log entries.", |
+ "items": { |
+ "$ref": "LogEntry" |
+ }, |
+ "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.", |
+ "format": "google-datetime", |
+ "type": "string" |
+ }, |
+ "logMessage": { |
+ "description": "App-provided log message.", |
+ "type": "string" |
+ }, |
+ "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 a 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" |
+ }, |
+ "sourceLocation": { |
+ "$ref": "SourceLocation", |
+ "description": "Where in the source code this log message was written." |
+ } |
+ }, |
+ "type": "object" |
+ }, |
+ "ListLogMetricsResponse": { |
+ "description": "Result returned from ListLogMetrics.", |
+ "id": "ListLogMetricsResponse", |
+ "properties": { |
+ "metrics": { |
+ "description": "A list of logs-based metrics.", |
+ "items": { |
+ "$ref": "LogMetric" |
+ }, |
+ "type": "array" |
+ }, |
+ "nextPageToken": { |
+ "description": "If there might be more results than appear 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.", |
+ "type": "string" |
+ } |
+ }, |
+ "type": "object" |
} |
}, |
"servicePath": "", |