feat: Update Logging API with latest changes

PiperOrigin-RevId: 429289471
pull/705/head
Google APIs 3 years ago committed by Copybara-Service
parent f30b83dd43
commit acd5f89b8a
  1. 4
      google/logging/type/http_request.proto
  2. 3
      google/logging/type/log_severity.proto
  3. 21
      google/logging/v2/BUILD.bazel
  4. 50
      google/logging/v2/log_entry.proto
  5. 114
      google/logging/v2/logging.proto
  6. 65
      google/logging/v2/logging.yaml
  7. 758
      google/logging/v2/logging_config.proto
  8. 18
      google/logging/v2/logging_metrics.proto

@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -16,8 +16,8 @@ syntax = "proto3";
package google.logging.type;
import "google/protobuf/duration.proto";
import "google/api/annotations.proto";
import "google/protobuf/duration.proto";
option csharp_namespace = "Google.Cloud.Logging.Type";
option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype";

@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -23,6 +23,7 @@ option go_package = "google.golang.org/genproto/googleapis/logging/type;ltype";
option java_multiple_files = true;
option java_outer_classname = "LogSeverityProto";
option java_package = "com.google.logging.type";
option objc_class_prefix = "GLOG";
option php_namespace = "Google\\Cloud\\Logging\\Type";
option ruby_package = "Google::Cloud::Logging::Type";

@ -1,5 +1,5 @@
# This file was automatically generated by BuildFileGenerator
# https://github.com/googleapis/gapic-generator/tree/master/rules_gapic/bazel
# https://github.com/googleapis/rules_gapic/tree/master/bazel
# Most of the manual changes to this file will be overwritten.
# It's **only** allowed to change the following rule attribute values:
@ -35,6 +35,7 @@ proto_library(
"//google/api:monitored_resource_proto",
"//google/api:resource_proto",
"//google/logging/type:type_proto",
"//google/longrunning:operations_proto",
"//google/rpc:status_proto",
"@com_google_protobuf//:any_proto",
"@com_google_protobuf//:duration_proto",
@ -81,6 +82,7 @@ java_gapic_library(
srcs = [":logging_proto_with_info"],
gapic_yaml = "logging_gapic.yaml",
grpc_service_config = "logging_grpc_service_config.json",
service_yaml = "logging.yaml",
test_deps = [
":logging_java_grpc",
],
@ -133,6 +135,7 @@ go_proto_library(
"//google/api:metric_go_proto",
"//google/api:monitoredres_go_proto",
"//google/logging/type:type_go_proto",
"//google/longrunning:longrunning_go_proto",
"//google/rpc:status_go_proto",
],
)
@ -142,11 +145,18 @@ go_gapic_library(
srcs = [":logging_proto_with_info"],
grpc_service_config = "logging_grpc_service_config.json",
importpath = "cloud.google.com/go/logging/apiv2;logging",
metadata = True,
service_yaml = "logging.yaml",
deps = [
":logging_go_proto",
"//google/api:metric_go_proto",
"//google/api:monitoredres_go_proto",
"//google/longrunning:longrunning_go_proto",
"@com_google_cloud_go//longrunning:go_default_library",
"@com_google_cloud_go//longrunning/autogen:go_default_library",
"@io_bazel_rules_go//proto/wkt:any_go_proto",
"@io_bazel_rules_go//proto/wkt:duration_go_proto",
"@io_bazel_rules_go//proto/wkt:struct_go_proto",
],
)
@ -162,6 +172,7 @@ go_gapic_assembly_pkg(
name = "gapi-cloud-logging-v2-go",
deps = [
":logging_go_gapic",
":logging_go_gapic_srcjar-metadata.srcjar",
":logging_go_gapic_srcjar-test.srcjar",
":logging_go_proto",
],
@ -181,8 +192,8 @@ py_gapic_library(
srcs = [":logging_proto"],
grpc_service_config = "logging_grpc_service_config.json",
opt_args = [
"python-gapic-namespace=google.cloud",
"python-gapic-name=logging",
"python-gapic-namespace=google.cloud",
],
)
@ -293,11 +304,11 @@ ruby_cloud_gapic_library(
name = "logging_ruby_gapic",
srcs = [":logging_proto_with_info"],
extra_protoc_parameters = [
"ruby-cloud-gem-name=google-cloud-logging-v2",
"ruby-cloud-env-prefix=LOGGING",
"ruby-cloud-product-url=https://cloud.google.com/logging",
"ruby-cloud-api-id=logging.googleapis.com",
"ruby-cloud-api-shortname=logging",
"ruby-cloud-env-prefix=LOGGING",
"ruby-cloud-gem-name=google-cloud-logging-v2",
"ruby-cloud-product-url=https://cloud.google.com/logging",
"ruby-cloud-service-override=ConfigServiceV2=ConfigService;LoggingServiceV2=LoggingService;MetricsServiceV2=MetricsService",
"ruby-cloud-yard-strict=false",
],

@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -16,6 +16,7 @@ syntax = "proto3";
package google.logging.v2;
import "google/api/annotations.proto";
import "google/api/field_behavior.proto";
import "google/api/monitored_resource.proto";
import "google/api/resource.proto";
@ -24,8 +25,6 @@ import "google/logging/type/log_severity.proto";
import "google/protobuf/any.proto";
import "google/protobuf/struct.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";
import "google/api/annotations.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Logging.V2";
@ -37,8 +36,6 @@ option php_namespace = "Google\\Cloud\\Logging\\V2";
option ruby_package = "Google::Cloud::Logging::V2";
// An individual entry in a log.
//
//
message LogEntry {
option (google.api.resource) = {
type: "logging.googleapis.com/Log"
@ -62,12 +59,13 @@ message LogEntry {
//
// `[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
// 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.
@ -126,7 +124,7 @@ message LogEntry {
// de-duplication in the export of logs.
//
// If the `insert_id` is omitted when writing a log entry, the Logging API
// assigns its own unique identifier in this field.
// assigns its own unique identifier in this field.
//
// In queries, the `insert_id` is also used to order log entries that have
// the same `log_name` and `timestamp` values.
@ -136,8 +134,20 @@ message LogEntry {
// applicable.
google.logging.type.HttpRequest http_request = 7 [(google.api.field_behavior) = OPTIONAL];
// Optional. A set of user-defined (key, value) data that provides additional
// information about the log entry.
// Optional. A map of key, value pairs that provides additional information about the
// log entry. The labels can be user-defined or system-defined.
//
// User-defined labels are arbitrary key, value pairs that you can use to
// classify logs.
//
// System-defined labels are defined by GCP services for platform logs.
// They have two components - a service namespace component and the
// attribute name. For example: `compute.googleapis.com/resource_name`.
//
// Cloud Logging truncates label keys that exceed 512 B and label
// values that exceed 64 KB upon their associated log entry being
// written. The truncation is indicated by an ellipsis at the
// end of the character string.
map<string, string> labels = 11 [(google.api.field_behavior) = OPTIONAL];
// Optional. Information about an operation associated with the log entry, if
@ -168,6 +178,10 @@ message LogEntry {
// Optional. Source code location information associated with the log entry, if any.
LogEntrySourceLocation source_location = 23 [(google.api.field_behavior) = OPTIONAL];
// Optional. Information indicating this LogEntry is part of a sequence of multiple log
// entries split from a single LogEntry.
LogSplit split = 35 [(google.api.field_behavior) = OPTIONAL];
}
// Additional information about a potentially long-running operation with which
@ -208,3 +222,21 @@ message LogEntrySourceLocation {
// (Python).
string function = 3 [(google.api.field_behavior) = OPTIONAL];
}
// Additional information used to correlate multiple log entries. Used when a
// single LogEntry would exceed the Google Cloud Logging size limit and is
// split across multiple log entries.
message LogSplit {
// A globally unique identifier for all log entries in a sequence of split log
// entries. All log entries with the same |LogSplit.uid| are assumed to be
// part of the same sequence of split log entries.
string uid = 1;
// The index of this LogEntry in the sequence of split log entries. Log
// entries are given |index| values 0, 1, ..., n-1 for a sequence of n log
// entries.
int32 index = 2;
// The total number of log entries that the original LogEntry was split into.
int32 total_splits = 3;
}

@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -16,6 +16,7 @@ syntax = "proto3";
package google.logging.v2;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/field_behavior.proto";
import "google/api/monitored_resource.proto";
@ -27,7 +28,6 @@ import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "google/rpc/status.proto";
import "google/api/annotations.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Logging.V2";
@ -48,10 +48,10 @@ service LoggingServiceV2 {
"https://www.googleapis.com/auth/logging.read,"
"https://www.googleapis.com/auth/logging.write";
// 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. Entries received after the delete operation with a timestamp
// before the operation will be deleted.
// Deletes all the log entries in a log for the _Default Log Bucket. The log
// reappears if it receives new entries. Log entries written shortly before
// the delete operation might not be deleted. Entries received after the
// delete operation with a timestamp before the operation will be deleted.
rpc DeleteLog(DeleteLogRequest) returns (google.protobuf.Empty) {
option (google.api.http) = {
delete: "/v2/{log_name=projects/*/logs/*}"
@ -140,14 +140,15 @@ service LoggingServiceV2 {
message DeleteLogRequest {
// Required. The resource name of the log to delete:
//
// "projects/[PROJECT_ID]/logs/[LOG_ID]"
// "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
// "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
// "folders/[FOLDER_ID]/logs/[LOG_ID]"
// * `projects/[PROJECT_ID]/logs/[LOG_ID]`
// * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
// * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
// * `folders/[FOLDER_ID]/logs/[LOG_ID]`
//
// `[LOG_ID]` must be URL-encoded. For example,
// `"projects/my-project-id/logs/syslog"`,
// `"organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"`.
// `"organizations/123/logs/cloudaudit.googleapis.com%2Factivity"`.
//
// For more information about log names, see
// [LogEntry][google.logging.v2.LogEntry].
string log_name = 1 [
@ -163,15 +164,15 @@ message WriteLogEntriesRequest {
// Optional. A default log resource name that is assigned to all log entries
// in `entries` that do not specify a value for `log_name`:
//
// "projects/[PROJECT_ID]/logs/[LOG_ID]"
// "organizations/[ORGANIZATION_ID]/logs/[LOG_ID]"
// "billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]"
// "folders/[FOLDER_ID]/logs/[LOG_ID]"
// * `projects/[PROJECT_ID]/logs/[LOG_ID]`
// * `organizations/[ORGANIZATION_ID]/logs/[LOG_ID]`
// * `billingAccounts/[BILLING_ACCOUNT_ID]/logs/[LOG_ID]`
// * `folders/[FOLDER_ID]/logs/[LOG_ID]`
//
// `[LOG_ID]` must be URL-encoded. For example:
//
// "projects/my-project-id/logs/syslog"
// "organizations/1234567890/logs/cloudresourcemanager.googleapis.com%2Factivity"
// "organizations/123/logs/cloudaudit.googleapis.com%2Factivity"
//
// The permission `logging.logEntries.create` is needed on each project,
// organization, billing account, or folder that is receiving new log
@ -214,14 +215,14 @@ message WriteLogEntriesRequest {
// the entries later in the list. See the `entries.list` method.
//
// Log entries with timestamps that are more than the
// [logs retention period](https://cloud.google.com/logging/quota-policy) in
// [logs retention period](https://cloud.google.com/logging/quotas) in
// the past or more than 24 hours in the future will not be available when
// calling `entries.list`. However, those log entries can still be [exported
// with
// LogSinks](https://cloud.google.com/logging/docs/api/tasks/exporting-logs).
//
// To improve throughput and to avoid exceeding the
// [quota limit](https://cloud.google.com/logging/quota-policy) for calls to
// [quota limit](https://cloud.google.com/logging/quotas) for calls to
// `entries.write`, you should try to include several log entries in this
// list, rather than calling this method for each individual log entry.
repeated LogEntry entries = 4 [(google.api.field_behavior) = REQUIRED];
@ -258,16 +259,17 @@ message ListLogEntriesRequest {
// Required. Names of one or more parent resources from which to
// retrieve log entries:
//
// "projects/[PROJECT_ID]"
// "organizations/[ORGANIZATION_ID]"
// "billingAccounts/[BILLING_ACCOUNT_ID]"
// "folders/[FOLDER_ID]"
// * `projects/[PROJECT_ID]`
// * `organizations/[ORGANIZATION_ID]`
// * `billingAccounts/[BILLING_ACCOUNT_ID]`
// * `folders/[FOLDER_ID]`
//
// May alternatively be one or more views:
//
// May alternatively be one or more views
// projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
// organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
// billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
// folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
// * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
// * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
// * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
// * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
//
// Projects listed in the `project_ids` field are added to this list.
repeated string resource_names = 8 [
@ -294,10 +296,10 @@ message ListLogEntriesRequest {
// timestamps are returned in order of their `insert_id` values.
string order_by = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. The maximum number of results to return from this request.
// Default is 50. If the value is negative or exceeds 1000,
// the request is rejected. The presence of `next_page_token` in the
// response indicates that more results might be available.
// Optional. The maximum number of results to return from this request. Default is 50.
// If the value is negative or exceeds 1000, the request is rejected. The
// presence of `next_page_token` in the response indicates that more results
// might be available.
int32 page_size = 4 [(google.api.field_behavior) = OPTIONAL];
// Optional. If present, then retrieve the next batch of results from the
@ -356,10 +358,10 @@ message ListMonitoredResourceDescriptorsResponse {
message ListLogsRequest {
// Required. The resource name that owns the logs:
//
// "projects/[PROJECT_ID]"
// "organizations/[ORGANIZATION_ID]"
// "billingAccounts/[BILLING_ACCOUNT_ID]"
// "folders/[FOLDER_ID]"
// * `projects/[PROJECT_ID]`
// * `organizations/[ORGANIZATION_ID]`
// * `billingAccounts/[BILLING_ACCOUNT_ID]`
// * `folders/[FOLDER_ID]`
string parent = 1 [
(google.api.field_behavior) = REQUIRED,
(google.api.resource_reference) = {
@ -379,17 +381,24 @@ message ListLogsRequest {
string page_token = 3 [(google.api.field_behavior) = OPTIONAL];
// Optional. The resource name that owns the logs:
// projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
// organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
// billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
// folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]
//
// * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
// * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
// * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
// * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
//
// To support legacy queries, it could also be:
// "projects/[PROJECT_ID]"
// "organizations/[ORGANIZATION_ID]"
// "billingAccounts/[BILLING_ACCOUNT_ID]"
// "folders/[FOLDER_ID]"
repeated string resource_names = 8 [(google.api.field_behavior) = OPTIONAL];
//
// * `projects/[PROJECT_ID]`
// * `organizations/[ORGANIZATION_ID]`
// * `billingAccounts/[BILLING_ACCOUNT_ID]`
// * `folders/[FOLDER_ID]`
repeated string resource_names = 8 [
(google.api.field_behavior) = OPTIONAL,
(google.api.resource_reference) = {
child_type: "logging.googleapis.com/Log"
}
];
}
// Result returned from ListLogs.
@ -409,16 +418,17 @@ message ListLogsResponse {
message TailLogEntriesRequest {
// Required. Name of a parent resource from which to retrieve log entries:
//
// "projects/[PROJECT_ID]"
// "organizations/[ORGANIZATION_ID]"
// "billingAccounts/[BILLING_ACCOUNT_ID]"
// "folders/[FOLDER_ID]"
// * `projects/[PROJECT_ID]`
// * `organizations/[ORGANIZATION_ID]`
// * `billingAccounts/[BILLING_ACCOUNT_ID]`
// * `folders/[FOLDER_ID]`
//
// May alternatively be one or more views:
// "projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
// "organization/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
// "billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
// "folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]"
//
// * `projects/[PROJECT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
// * `organizations/[ORGANIZATION_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
// * `billingAccounts/[BILLING_ACCOUNT_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
// * `folders/[FOLDER_ID]/locations/[LOCATION_ID]/buckets/[BUCKET_ID]/views/[VIEW_ID]`
repeated string resource_names = 1 [(google.api.field_behavior) = REQUIRED];
// Optional. A filter that chooses which log entries to return. See [Advanced

@ -8,6 +8,10 @@ apis:
- name: google.logging.v2.LoggingServiceV2
- name: google.logging.v2.MetricsServiceV2
types:
- name: google.logging.v2.CopyLogEntriesMetadata
- name: google.logging.v2.CopyLogEntriesResponse
documentation:
summary: |-
Writes log entries and manages your Cloud Logging configuration. The table
@ -22,6 +26,10 @@ backend:
rules:
- selector: 'google.logging.v2.ConfigServiceV2.*'
deadline: 60.0
- selector: google.logging.v2.ConfigServiceV2.CreateBucket
deadline: 600.0
- selector: google.logging.v2.ConfigServiceV2.UpdateBucket
deadline: 600.0
- selector: 'google.logging.v2.LoggingServiceV2.*'
deadline: 60.0
- selector: google.logging.v2.LoggingServiceV2.ListLogEntries
@ -30,6 +38,37 @@ backend:
deadline: 3600.0
- selector: 'google.logging.v2.MetricsServiceV2.*'
deadline: 60.0
- selector: 'google.longrunning.Operations.*'
deadline: 60.0
http:
rules:
- selector: google.longrunning.Operations.CancelOperation
post: '/v2/{name=*/*/locations/*/operations/*}:cancel'
body: '*'
additional_bindings:
- post: '/v2/{name=projects/*/locations/*/operations/*}:cancel'
body: '*'
- post: '/v2/{name=organizations/*/locations/*/operations/*}:cancel'
body: '*'
- post: '/v2/{name=folders/*/locations/*/operations/*}:cancel'
body: '*'
- post: '/v2/{name=billingAccounts/*/locations/*/operations/*}:cancel'
body: '*'
- selector: google.longrunning.Operations.GetOperation
get: '/v2/{name=*/*/locations/*/operations/*}'
additional_bindings:
- get: '/v2/{name=projects/*/locations/*/operations/*}'
- get: '/v2/{name=organizations/*/locations/*/operations/*}'
- get: '/v2/{name=folders/*/locations/*/operations/*}'
- get: '/v2/{name=billingAccounts/*/operations/*}'
- selector: google.longrunning.Operations.ListOperations
get: '/v2/{name=*/*/locations/*}/operations'
additional_bindings:
- get: '/v2/{name=projects/*/locations/*}/operations'
- get: '/v2/{name=organizations/*/locations/*}/operations'
- get: '/v2/{name=folders/*/locations/*}/operations'
- get: '/v2/{name=billingAccounts/*/locations/*}/operations'
authentication:
rules:
@ -59,6 +98,13 @@ authentication:
https://www.googleapis.com/auth/cloud-platform.read-only,
https://www.googleapis.com/auth/logging.admin,
https://www.googleapis.com/auth/logging.read
- selector: google.logging.v2.ConfigServiceV2.GetSettings
oauth:
canonical_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
- selector: google.logging.v2.ConfigServiceV2.GetSink
oauth:
canonical_scopes: |-
@ -139,3 +185,22 @@ authentication:
https://www.googleapis.com/auth/cloud-platform.read-only,
https://www.googleapis.com/auth/logging.admin,
https://www.googleapis.com/auth/logging.read
- selector: google.longrunning.Operations.CancelOperation
oauth:
canonical_scopes: |-
https://www.googleapis.com/auth/cloud-platform,
https://www.googleapis.com/auth/logging.admin
- selector: google.longrunning.Operations.GetOperation
oauth:
canonical_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
- selector: google.longrunning.Operations.ListOperations
oauth:
canonical_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

File diff suppressed because it is too large Load Diff

@ -1,4 +1,4 @@
// Copyright 2020 Google LLC
// Copyright 2022 Google LLC
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
@ -16,6 +16,7 @@ syntax = "proto3";
package google.logging.v2;
import "google/api/annotations.proto";
import "google/api/client.proto";
import "google/api/distribution.proto";
import "google/api/field_behavior.proto";
@ -25,7 +26,6 @@ import "google/protobuf/duration.proto";
import "google/protobuf/empty.proto";
import "google/protobuf/field_mask.proto";
import "google/protobuf/timestamp.proto";
import "google/api/annotations.proto";
option cc_enable_arenas = true;
option csharp_namespace = "Google.Cloud.Logging.V2";
@ -119,11 +119,11 @@ message LogMetric {
// `_-.,+!*',()%/`. 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"`.
// This field is the `[METRIC_ID]` part of a metric resource name in the
// format "projects/[PROJECT_ID]/metrics/[METRIC_ID]". Example: If the
// resource name of a metric is
// `"projects/my-project/metrics/nginx%2Frequests"`, this field's value is
// `"nginx/requests"`.
string name = 1 [(google.api.field_behavior) = REQUIRED];
// Optional. A description of this metric, which is used in documentation.
@ -139,6 +139,10 @@ message LogMetric {
// The maximum length of the filter is 20000 characters.
string filter = 3 [(google.api.field_behavior) = REQUIRED];
// Optional. If set to True, then this metric is disabled and it does not
// generate any points.
bool disabled = 12 [(google.api.field_behavior) = OPTIONAL];
// Optional. The metric descriptor associated with the logs-based metric.
// If unspecified, it uses a default metric descriptor with a DELTA metric
// kind, INT64 value type, with no labels and a unit of "1". Such a metric

Loading…
Cancel
Save