github.com/cloudwan/edgelq-sdk@v1.15.4/logging/proto/v1alpha2/log.proto (about)

     1  syntax = "proto3";
     2  
     3  package ntt.logging.v1alpha2;
     4  
     5  import "google/api/resource.proto";
     6  import "google/protobuf/struct.proto";
     7  import "google/protobuf/timestamp.proto";
     8  
     9  option go_package = "github.com/cloudwan/edgelq-sdk/logging/resources/v1alpha2/log;log";
    10  option java_multiple_files = true;
    11  option java_outer_classname = "LogProto";
    12  option java_package = "com.ntt.logging.pb.v1alpha2";
    13  
    14  // Log Resource
    15  message Log {
    16    option (google.api.resource) = {
    17      type : "logging.edgelq.com/Log"
    18      pattern : "logs/{log}"
    19      pattern : "projects/{project}/logs/{log}"
    20      pattern : "organizations/{organization}/logs/{log}"
    21    };
    22  
    23    // Name of Log. It contains scope + ID of the log.
    24    // ID is a base64 encoded unique key that identifies tuple:
    25    //   scope
    26    //   service
    27    //   region_id
    28    //   version
    29    //   log_descriptor
    30    //   labels
    31    //
    32    // Key is not to be decoded outside of service, but treated as opaque string
    33    string name = 1;
    34  
    35    // Contains scope from name field without resource ID.
    36    // Used for internal purpose for filtering (logs are using custom store).
    37    // Example formats are:
    38    // - organization/umbrella
    39    // - projects/mars_exploration
    40    // - <system>
    41    string scope = 2;
    42  
    43    // Service name, for example "devices.edgelq.com"
    44    string service = 3;
    45  
    46    // Region of the service to which log is assigned, for example "us-west2"
    47    string region = 4;
    48  
    49    // Associated service version, for example "v1alpha2"
    50    string version = 5;
    51  
    52    // Associated log descriptor
    53    string log_descriptor = 6;
    54  
    55    // List of query-able labels
    56    map<string, string> labels = 7;
    57  
    58    // Log timestamp
    59    google.protobuf.Timestamp time = 8;
    60  
    61    // Log payload
    62    google.protobuf.Struct payload = 9;
    63  }