github.com/cloudwan/edgelq-sdk@v1.15.4/logging/proto/v1/log.proto (about) 1 syntax = "proto3"; 2 3 package ntt.logging.v1; 4 5 import "google/api/resource.proto"; 6 import "google/protobuf/any.proto"; 7 import "google/protobuf/struct.proto"; 8 import "google/protobuf/timestamp.proto"; 9 10 option go_package = "github.com/cloudwan/edgelq-sdk/logging/resources/v1/log;log"; 11 option java_multiple_files = true; 12 option java_outer_classname = "LogProto"; 13 option java_package = "com.ntt.logging.pb.v1"; 14 15 // Log Resource 16 message Log { 17 option (google.api.resource) = { 18 type : "logging.edgelq.com/Log" 19 pattern : "projects/{project}/logs/{log}" 20 pattern : "organizations/{organization}/logs/{log}" 21 pattern : "services/{service}/logs/{log}" 22 pattern : "projects/{project}/regions/{region}/buckets/{bucket}/logs/{log}" 23 pattern : "organizations/{organization}/regions/{region}/buckets/{bucket}/" 24 "logs/{log}" 25 pattern : "services/{service}/regions/{region}/buckets/{bucket}/logs/{log}" 26 }; 27 28 // Name of Log 29 // When creating a new instance, this field is optional and if not provided, 30 // it will be generated automatically. Last ID segment must conform to the 31 // following regex: [\\w./-=+]{1,128} 32 string name = 1; 33 34 // Contains scope from name field without resource ID. 35 // Used for internal purpose for filtering (logs are using custom store). 36 // Example formats are: 37 // - organization/umbrella 38 // - projects/mars_exploration 39 // - services/devices.edgelq.com 40 string scope = 2; 41 42 // Service name, for example "devices.edgelq.com" 43 string service = 3; 44 45 // Region of the service to which log is assigned, for example "us-west2" 46 string region = 4; 47 48 // Associated service version, for example "v1" 49 string version = 5; 50 51 // Associated log descriptor 52 string log_descriptor = 6; 53 54 // List of query-able labels 55 map<string, string> labels = 7; 56 57 // Log timestamp 58 google.protobuf.Timestamp time = 8; 59 60 // Log JSON payload 61 google.protobuf.Struct json_payload = 9; 62 63 // Log Protobuf payload 64 google.protobuf.Any pb_payload = 10; 65 66 // Log string type payload 67 string string_payload = 11; 68 69 // Log bytes type payload 70 bytes bytes_payload = 12; 71 72 // Log bin_key identifies unique Log tuple: 73 // <scope, service, region, version, labels, log_descriptor 74 // 75 // Key is not to be decoded outside of service, but treated as opaque string. 76 // This field is equivalent to ID part of the log name and therefore any one 77 // of them can be used. This is intented for streaming log create to conserve 78 // some bandwidth 79 string bin_key = 101; 80 }