|
|
|
@ -35,29 +35,26 @@ option go_package = "google.golang.org/genproto/googleapis/logging/v2"; |
|
|
|
|
service LoggingServiceV2 { |
|
|
|
|
// Deletes a log and all its log entries. |
|
|
|
|
// The log will reappear if it receives new entries. |
|
|
|
|
// |
|
|
|
|
rpc DeleteLog(DeleteLogRequest) returns (google.protobuf.Empty) { |
|
|
|
|
option (google.api.http) = { delete: "/v2beta1/{log_name=projects/*/logs/*}" }; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// 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: "*" }; |
|
|
|
|
option (google.api.http) = { post: "/v2/entries:write" body: "*" }; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Lists log entries. Use this method to retrieve log entries from Cloud |
|
|
|
|
// Logging. For ways to export log entries, see |
|
|
|
|
// [Exporting Logs](/logging/docs/export). |
|
|
|
|
// |
|
|
|
|
rpc ListLogEntries(ListLogEntriesRequest) returns (ListLogEntriesResponse) { |
|
|
|
|
option (google.api.http) = { post: "/v2beta1/entries:list" body: "*" }; |
|
|
|
|
option (google.api.http) = { post: "/v2/entries:list" body: "*" }; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
// Lists the monitored resource descriptors used by Stackdriver Logging. |
|
|
|
|
rpc ListMonitoredResourceDescriptors(ListMonitoredResourceDescriptorsRequest) returns (ListMonitoredResourceDescriptorsResponse) { |
|
|
|
|
option (google.api.http) = { get: "/v2beta1/monitoredResourceDescriptors" }; |
|
|
|
|
option (google.api.http) = { get: "/v2/monitoredResourceDescriptors" }; |
|
|
|
|
} |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -70,28 +67,37 @@ message DeleteLogRequest { |
|
|
|
|
|
|
|
|
|
// The parameters to WriteLogEntries. |
|
|
|
|
message WriteLogEntriesRequest { |
|
|
|
|
// Optional. A default log resource name for those log entries in `entries` |
|
|
|
|
// that do not specify their own `logName`. Example: |
|
|
|
|
// Optional. A default log resource name that is assigned to all log entries |
|
|
|
|
// in `entries` that do not specify a value for `log_name`. Example: |
|
|
|
|
// `"projects/my-project/logs/syslog"`. See |
|
|
|
|
// [LogEntry][google.logging.v2.LogEntry]. |
|
|
|
|
string log_name = 1; |
|
|
|
|
|
|
|
|
|
// Optional. A default monitored resource for those log entries in `entries` |
|
|
|
|
// that do not specify their own `resource`. |
|
|
|
|
// Optional. A default monitored resource object that is assigned to all log |
|
|
|
|
// entries in `entries` that do not specify a value for `resource`. Example: |
|
|
|
|
// |
|
|
|
|
// { "type": "gce_instance", |
|
|
|
|
// "labels": { |
|
|
|
|
// "zone": "us-central1-a", "instance_id": "00000000000000000000" }} |
|
|
|
|
// |
|
|
|
|
// See [LogEntry][google.logging.v2.LogEntry]. |
|
|
|
|
google.api.MonitoredResource resource = 2; |
|
|
|
|
|
|
|
|
|
// Optional. User-defined `key:value` items that are added to |
|
|
|
|
// the `labels` field of each log entry in `entries`, except when a log |
|
|
|
|
// entry specifies its own `key:value` item with the same key. |
|
|
|
|
// Example: `{ "size": "large", "color":"red" }` |
|
|
|
|
// 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][google.logging.v2.LogEntry]. |
|
|
|
|
map<string, string> labels = 3; |
|
|
|
|
|
|
|
|
|
// Required. The log entries to write. The log entries must have values for |
|
|
|
|
// all required fields. |
|
|
|
|
// Required. The log entries to write. Values supplied for the fields |
|
|
|
|
// `log_name`, `resource`, and `labels` in this `entries.write` request are |
|
|
|
|
// added to those log entries that do not provide their own values for the |
|
|
|
|
// fields. |
|
|
|
|
// |
|
|
|
|
// To improve throughput and to avoid exceeding the quota limit for calls |
|
|
|
|
// to `entries.write`, use this field to write multiple log entries at once |
|
|
|
|
// rather than // calling this method for each log entry. |
|
|
|
|
// To improve throughput and to avoid exceeding the |
|
|
|
|
// [quota limit](/logging/quota-policy) for calls to `entries.write`, |
|
|
|
|
// you should write multiple log entries at once rather than |
|
|
|
|
// calling this method for each individual log entry. |
|
|
|
|
repeated LogEntry entries = 4; |
|
|
|
|
|
|
|
|
|
// Optional. Whether valid entries should be written even if some other |
|
|
|
@ -110,14 +116,21 @@ message WriteLogEntriesResponse { |
|
|
|
|
|
|
|
|
|
// The parameters to `ListLogEntries`. |
|
|
|
|
message ListLogEntriesRequest { |
|
|
|
|
// Required. One or more project IDs or project numbers from which to retrieve |
|
|
|
|
// log entries. Examples of a project ID: `"my-project-1A"`, `"1234567890"`. |
|
|
|
|
// Deprecated. One or more project identifiers or project numbers from which |
|
|
|
|
// to retrieve log entries. Examples: `"my-project-1A"`, `"1234567890"`. If |
|
|
|
|
// present, these project identifiers are converted to resource format and |
|
|
|
|
// added to the list of resources in `resourceNames`. Callers should use |
|
|
|
|
// `resourceNames` rather than this parameter. |
|
|
|
|
repeated string project_ids = 1; |
|
|
|
|
|
|
|
|
|
// Optional. An [advanced logs filter](/logging/docs/view/advanced_filters). |
|
|
|
|
// The filter is compared against all log entries in the projects specified by |
|
|
|
|
// `projectIds`. Only entries that match the filter are retrieved. An empty |
|
|
|
|
// filter matches all log entries. |
|
|
|
|
// Optional. One or more cloud resources from which to retrieve log entries. |
|
|
|
|
// Example: `"projects/my-project-1A"`, `"projects/1234567890"`. Projects |
|
|
|
|
// listed in `projectIds` are added to this list. |
|
|
|
|
repeated string resource_names = 8; |
|
|
|
|
|
|
|
|
|
// Optional. A filter that chooses which log entries to return. See [Advanced |
|
|
|
|
// Logs Filters](/logging/docs/view/advanced_filters). Only log entries that |
|
|
|
|
// match the filter are returned. An empty filter matches all log entries. |
|
|
|
|
string filter = 2; |
|
|
|
|
|
|
|
|
|
// Optional. How the results should be sorted. Presently, the only permitted |
|
|
|
@ -129,16 +142,14 @@ message ListLogEntriesRequest { |
|
|
|
|
string order_by = 3; |
|
|
|
|
|
|
|
|
|
// 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. |
|
|
|
|
// Non-positive values are ignored. The presence of `nextPageToken` in the |
|
|
|
|
// response indicates that more results might be available. |
|
|
|
|
int32 page_size = 4; |
|
|
|
|
|
|
|
|
|
// 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. |
|
|
|
|
// 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. |
|
|
|
|
string page_token = 5; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -147,8 +158,8 @@ message ListLogEntriesResponse { |
|
|
|
|
// A list of log entries. |
|
|
|
|
repeated LogEntry entries = 1; |
|
|
|
|
|
|
|
|
|
// If there are more results than were returned, then `nextPageToken` is |
|
|
|
|
// included in the response. To get the next set of results, call this |
|
|
|
|
// 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`. |
|
|
|
|
string next_page_token = 2; |
|
|
|
|
} |
|
|
|
@ -156,14 +167,14 @@ message ListLogEntriesResponse { |
|
|
|
|
// The parameters to ListMonitoredResourceDescriptors |
|
|
|
|
message ListMonitoredResourceDescriptorsRequest { |
|
|
|
|
// 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. |
|
|
|
|
// Non-positive values are ignored. The presence of `nextPageToken` in the |
|
|
|
|
// response indicates that more results might be available. |
|
|
|
|
int32 page_size = 1; |
|
|
|
|
|
|
|
|
|
// 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. |
|
|
|
|
// 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. |
|
|
|
|
string page_token = 2; |
|
|
|
|
} |
|
|
|
|
|
|
|
|
@ -172,8 +183,8 @@ message ListMonitoredResourceDescriptorsResponse { |
|
|
|
|
// A list of resource descriptors. |
|
|
|
|
repeated google.api.MonitoredResourceDescriptor resource_descriptors = 1; |
|
|
|
|
|
|
|
|
|
// If there are more results than were returned, then `nextPageToken` is |
|
|
|
|
// included in the response. To get the next set of results, call this |
|
|
|
|
// 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`. |
|
|
|
|
string next_page_token = 2; |
|
|
|
|
} |
|
|
|
|