123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203204205206207208209210211212213214215216217218219220221222223224225226227228229230231232233234235236237238239240241 |
- syntax = "proto3";
- package google.logging.v2;
- import "google/api/field_behavior.proto";
- import "google/api/monitored_resource.proto";
- import "google/api/resource.proto";
- import "google/logging/type/http_request.proto";
- import "google/logging/type/log_severity.proto";
- import "google/protobuf/any.proto";
- import "google/protobuf/struct.proto";
- import "google/protobuf/timestamp.proto";
- option cc_enable_arenas = true;
- option csharp_namespace = "Google.Cloud.Logging.V2";
- option go_package = "google.golang.org/genproto/googleapis/logging/v2;logging";
- option java_multiple_files = true;
- option java_outer_classname = "LogEntryProto";
- option java_package = "com.google.logging.v2";
- option php_namespace = "Google\\Cloud\\Logging\\V2";
- option ruby_package = "Google::Cloud::Logging::V2";
- message LogEntry {
- option (google.api.resource) = {
- type: "logging.googleapis.com/Log"
- pattern: "projects/{project}/logs/{log}"
- pattern: "organizations/{organization}/logs/{log}"
- pattern: "folders/{folder}/logs/{log}"
- pattern: "billingAccounts/{billing_account}/logs/{log}"
- name_field: "log_name"
- };
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- string log_name = 12 [(google.api.field_behavior) = REQUIRED];
-
-
-
-
-
- google.api.MonitoredResource resource = 8 [(google.api.field_behavior) = REQUIRED];
-
- oneof payload {
-
-
-
-
-
-
-
-
- google.protobuf.Any proto_payload = 2;
-
- string text_payload = 3;
-
-
- google.protobuf.Struct json_payload = 6;
- }
-
-
-
-
-
-
-
-
-
-
-
- google.protobuf.Timestamp timestamp = 9 [(google.api.field_behavior) = OPTIONAL];
-
- google.protobuf.Timestamp receive_timestamp = 24 [(google.api.field_behavior) = OUTPUT_ONLY];
-
- google.logging.type.LogSeverity severity = 10 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
-
-
-
-
- string insert_id = 4 [(google.api.field_behavior) = OPTIONAL];
-
-
- google.logging.type.HttpRequest http_request = 7 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
-
-
-
-
-
-
-
- map<string, string> labels = 11 [(google.api.field_behavior) = OPTIONAL];
-
-
- LogEntryOperation operation = 15 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
- string trace = 22 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
- string span_id = 27 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
-
- bool trace_sampled = 30 [(google.api.field_behavior) = OPTIONAL];
-
- LogEntrySourceLocation source_location = 23 [(google.api.field_behavior) = OPTIONAL];
-
-
- LogSplit split = 35 [(google.api.field_behavior) = OPTIONAL];
- }
- message LogEntryOperation {
-
-
- string id = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
-
- string producer = 2 [(google.api.field_behavior) = OPTIONAL];
-
- bool first = 3 [(google.api.field_behavior) = OPTIONAL];
-
- bool last = 4 [(google.api.field_behavior) = OPTIONAL];
- }
- message LogEntrySourceLocation {
-
-
- string file = 1 [(google.api.field_behavior) = OPTIONAL];
-
-
- int64 line = 2 [(google.api.field_behavior) = OPTIONAL];
-
-
-
-
-
-
- string function = 3 [(google.api.field_behavior) = OPTIONAL];
- }
- message LogSplit {
-
-
-
- string uid = 1;
-
-
-
- int32 index = 2;
-
- int32 total_splits = 3;
- }
|