github.com/kubeshop/testkube@v1.17.23/pkg/logs/pb/logs.proto (about)

     1  syntax = "proto3";
     2  
     3  package logs;
     4  
     5  option go_package = "pkg/logs/pb";
     6  
     7  import "google/protobuf/timestamp.proto";
     8  
     9  service LogsService {
    10      rpc Logs(LogRequest) returns (stream Log);
    11  }
    12  
    13  message LogRequest {
    14    string execution_id = 2;
    15  }
    16  
    17  
    18  
    19  message Log{
    20  
    21    google.protobuf.Timestamp time = 1;
    22    string content = 2;
    23    bool error = 	3;
    24  
    25    string type = 4;
    26    string source = 5;
    27  
    28    string version = 6;
    29  
    30    map<string, string> metadata = 7;
    31  }
    32  
    33  
    34  // CloudLogsService client will be used in cloud adapter in logs server
    35  // CloudLogsService server will be implemented on cloud side
    36  service CloudLogsService {
    37      rpc Stream(stream Log) returns (StreamResponse);
    38      rpc Logs(CloudLogRequest) returns (stream Log);
    39  }
    40  
    41  message CloudLogRequest {
    42    string environment_id = 1;
    43    string execution_id = 2;
    44    string test_name = 3; 
    45  }
    46  
    47  
    48  message StreamResponse {
    49  	string message = 1;
    50  	StreamResponseStatus status = 2;
    51  }
    52  
    53  enum StreamResponseStatus {
    54    Completed = 0;
    55    Failed = 1;
    56  }