|
|
|
@ -1,4 +1,4 @@ |
|
|
|
|
// Copyright (c) 2015, Google Inc. |
|
|
|
|
// Copyright 2016 Google Inc. |
|
|
|
|
// |
|
|
|
|
// Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
|
// you may not use this file except in compliance with the License. |
|
|
|
@ -19,7 +19,9 @@ package google.logging.v2; |
|
|
|
|
import "google/api/annotations.proto"; |
|
|
|
|
import "google/api/monitored_resource.proto"; |
|
|
|
|
import "google/logging/v2/log_entry.proto"; |
|
|
|
|
import "google/protobuf/duration.proto"; |
|
|
|
|
import "google/protobuf/empty.proto"; |
|
|
|
|
import "google/protobuf/timestamp.proto"; |
|
|
|
|
import "google/rpc/status.proto"; |
|
|
|
|
|
|
|
|
|
option cc_enable_arenas = true; |
|
|
|
@ -37,8 +39,8 @@ service LoggingServiceV2 { |
|
|
|
|
option (google.api.http) = { delete: "/v2beta1/{log_name=projects/*/logs/*}" }; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Writes log entries to Cloud Logging. |
|
|
|
|
// All log entries in Cloud Logging are written by this method. |
|
|
|
|
// Writes log entries to Stackdriver Logging. All log entries are |
|
|
|
|
// written by this method. |
|
|
|
|
// |
|
|
|
|
rpc WriteLogEntries(WriteLogEntriesRequest) returns (WriteLogEntriesResponse) { |
|
|
|
|
option (google.api.http) = { post: "/v2beta1/entries:write" body: "*" }; |
|
|
|
@ -52,7 +54,7 @@ service LoggingServiceV2 { |
|
|
|
|
option (google.api.http) = { post: "/v2beta1/entries:list" body: "*" }; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Lists monitored resource descriptors that are used by Cloud Logging. |
|
|
|
|
// Lists the monitored resource descriptors used by Stackdriver Logging. |
|
|
|
|
rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) returns (ListMonitoredResourceDescriptorsResponse) { |
|
|
|
|
option (google.api.http) = { get: "/v2beta1/monitoredResourceDescriptors" }; |
|
|
|
|
} |
|
|
|
@ -85,10 +87,22 @@ message WriteLogEntriesRequest { |
|
|
|
|
|
|
|
|
|
// Required. The log entries to write. The log entries must have values for |
|
|
|
|
// all required fields. |
|
|
|
|
// |
|
|
|
|
// To improve throughput and to avoid exceeding the quota limit for calls |
|
|
|
|
// to `entries.write`, use this field to write multiple log entries at once |
|
|
|
|
// rather than // calling this method for each log entry. |
|
|
|
|
repeated LogEntry entries = 4; |
|
|
|
|
|
|
|
|
|
// Optional. Whether valid entries should be written even if some other |
|
|
|
|
// entries fail due to INVALID_ARGUMENT or PERMISSION_DENIED errors. If any |
|
|
|
|
// entry is not written, the response status will be the error associated |
|
|
|
|
// with one of the failed entries and include error details in the form of |
|
|
|
|
// WriteLogEntriesPartialErrors. |
|
|
|
|
bool partial_success = 5; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Result returned from WriteLogEntries. |
|
|
|
|
// empty |
|
|
|
|
message WriteLogEntriesResponse { |
|
|
|
|
|
|
|
|
|
} |
|
|
|
@ -106,25 +120,24 @@ message ListLogEntriesRequest { |
|
|
|
|
string filter = 2; |
|
|
|
|
|
|
|
|
|
// Optional. How the results should be sorted. Presently, the only permitted |
|
|
|
|
// values are `"timestamp"` (default) and `"timestamp desc"`. The first |
|
|
|
|
// values are `"timestamp asc"` (default) and `"timestamp desc"`. The first |
|
|
|
|
// option returns entries in order of increasing values of |
|
|
|
|
// `LogEntry.timestamp` (oldest first), and the second option returns entries |
|
|
|
|
// in order of decreasing timestamps (newest first). Entries with equal |
|
|
|
|
// timestamps are returned in order of `LogEntry.insertId`. |
|
|
|
|
string order_by = 3; |
|
|
|
|
|
|
|
|
|
// Optional. The maximum number of results to return from this request. Fewer |
|
|
|
|
// results might be returned. You must check for the `nextPageToken` result to |
|
|
|
|
// determine if additional results are available, which you can retrieve by |
|
|
|
|
// passing the `nextPageToken` value in the `pageToken` parameter to the next |
|
|
|
|
// request. |
|
|
|
|
// Optional. The maximum number of results to return from this request. |
|
|
|
|
// You must check for presence of `nextPageToken` to determine if additional |
|
|
|
|
// results are available, which you can retrieve by passing the |
|
|
|
|
// `nextPageToken` value as the `pageToken` parameter in the next request. |
|
|
|
|
int32 page_size = 4; |
|
|
|
|
|
|
|
|
|
// Optional. If the `pageToken` request parameter is supplied, then the next |
|
|
|
|
// page of results in the set are retrieved. The `pageToken` parameter must |
|
|
|
|
// be set with the value of the `nextPageToken` result parameter from the |
|
|
|
|
// previous request. The values of `projectIds`, `filter`, and `orderBy` must |
|
|
|
|
// be the same as in the previous request. |
|
|
|
|
// Optional. If the `pageToken` parameter is supplied, then the next page of |
|
|
|
|
// results is retrieved. The `pageToken` parameter must be set to the value |
|
|
|
|
// of the `nextPageToken` from the previous response. |
|
|
|
|
// The values of `projectIds`, `filter`, and `orderBy` must be the same |
|
|
|
|
// as in the previous request. |
|
|
|
|
string page_token = 5; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -134,24 +147,22 @@ message ListLogEntriesResponse { |
|
|
|
|
repeated LogEntry entries = 1; |
|
|
|
|
|
|
|
|
|
// If there are more results than were returned, then `nextPageToken` is |
|
|
|
|
// given a value in the response. To get the next batch of results, call |
|
|
|
|
// this method again using the value of `nextPageToken` as `pageToken`. |
|
|
|
|
// included in the response. To get the next set of results, call this |
|
|
|
|
// method again using the value of `nextPageToken` as `pageToken`. |
|
|
|
|
string next_page_token = 2; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// The parameters to ListMonitoredResourceDescriptors |
|
|
|
|
message ListMonitoredResourceDescriptorsRequest { |
|
|
|
|
// Optional. The maximum number of results to return from this request. Fewer |
|
|
|
|
// results might be returned. You must check for the `nextPageToken` result to |
|
|
|
|
// determine if additional results are available, which you can retrieve by |
|
|
|
|
// passing the `nextPageToken` value in the `pageToken` parameter to the next |
|
|
|
|
// request. |
|
|
|
|
// Optional. The maximum number of results to return from this request. |
|
|
|
|
// You must check for presence of `nextPageToken` to determine if additional |
|
|
|
|
// results are available, which you can retrieve by passing the |
|
|
|
|
// `nextPageToken` value as the `pageToken` parameter in the next request. |
|
|
|
|
int32 page_size = 1; |
|
|
|
|
|
|
|
|
|
// Optional. If the `pageToken` request parameter is supplied, then the next |
|
|
|
|
// page of results in the set are retrieved. The `pageToken` parameter must |
|
|
|
|
// be set with the value of the `nextPageToken` result parameter from the |
|
|
|
|
// previous request. |
|
|
|
|
// Optional. If the `pageToken` parameter is supplied, then the next page of |
|
|
|
|
// results is retrieved. The `pageToken` parameter must be set to the value |
|
|
|
|
// of the `nextPageToken` from the previous response. |
|
|
|
|
string page_token = 2; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -161,7 +172,7 @@ message ListMonitoredResourceDescriptorsResponse { |
|
|
|
|
repeated google.api.MonitoredResourceDescriptor resource_descriptors = 1; |
|
|
|
|
|
|
|
|
|
// If there are more results than were returned, then `nextPageToken` is |
|
|
|
|
// returned in the response. To get the next batch of results, call this |
|
|
|
|
// included in the response. To get the next set of results, call this |
|
|
|
|
// method again using the value of `nextPageToken` as `pageToken`. |
|
|
|
|
string next_page_token = 2; |
|
|
|
|
} |
|
|
|
|