github.com/pinpoint-apm/pinpoint-go-agent@v1.4.1-0.20240110120318-a50c2eb18c8c/protobuf/Cmd.proto (about)

     1  syntax = "proto3";
     2  
     3  import "google/protobuf/wrappers.proto";
     4  import "v1/ThreadDump.proto";
     5  
     6  option java_multiple_files = true;
     7  option java_package = "com.navercorp.pinpoint.grpc.trace";
     8  option java_outer_classname = "CmdProto";
     9  option go_package = "/v1";
    10  
    11  package v1;
    12  
    13  enum PCommandType {
    14      NONE = 0;
    15  
    16      PING = 100;
    17      PONG = 101;
    18  
    19      ECHO = 710;
    20  
    21      ACTIVE_THREAD_COUNT = 730;
    22      ACTIVE_THREAD_DUMP = 740;
    23      ACTIVE_THREAD_LIGHT_DUMP = 750;
    24  }
    25  
    26  message PCmdMessage {
    27      oneof message {
    28          PCmdServiceHandshake handshakeMessage = 1;
    29          PCmdResponse failMessage = 2;
    30      }
    31  }
    32  
    33  message PCmdServiceHandshake {
    34      // initial message
    35      repeated int32 supportCommandServiceKey = 1;
    36  }
    37  
    38  message PCmdResponse {
    39      int32 responseId = 1;
    40      int32 status = 2;
    41      google.protobuf.StringValue message = 3;
    42  }
    43  
    44  message PCmdStreamResponse {
    45      int32 responseId = 1;
    46      int32 sequenceId = 2;
    47      google.protobuf.StringValue message = 3;
    48  }
    49  
    50  message PCmdRequest {
    51      int32 requestId = 1;
    52  
    53      oneof command {
    54          PCmdEcho commandEcho = 710;
    55          PCmdActiveThreadCount commandActiveThreadCount = 730;
    56          PCmdActiveThreadDump commandActiveThreadDump = 740;
    57          PCmdActiveThreadLightDump commandActiveThreadLightDump = 750;
    58      }
    59  }
    60  
    61  message PCmdEcho {
    62      string message = 1;
    63  }
    64  
    65  message PCmdEchoResponse {
    66      PCmdResponse commonResponse = 1;
    67      string message = 2;
    68  }
    69  
    70  message PCmdActiveThreadDump {
    71      int32 limit = 1;
    72      repeated string threadName = 2;
    73      repeated int64 localTraceId = 3;
    74  }
    75  
    76  message PCmdActiveThreadDumpRes {
    77      PCmdResponse commonResponse = 1;
    78      repeated PActiveThreadDump threadDump = 2;
    79      string type = 3;
    80      string subType = 4;
    81      string version = 5;
    82  }
    83  
    84  message PCmdActiveThreadLightDump {
    85      int32 limit = 1;
    86      repeated string threadName = 2;
    87      repeated int64 localTraceId = 3;
    88  }
    89  
    90  message PCmdActiveThreadLightDumpRes {
    91      PCmdResponse commonResponse = 1;
    92      repeated PActiveThreadLightDump threadDump = 2;
    93      string type = 3;
    94      string subType = 4;
    95      string version = 5;
    96  }
    97  
    98  message PCmdActiveThreadCount {
    99  }
   100  
   101  message PCmdActiveThreadCountRes {
   102      PCmdStreamResponse commonStreamResponse = 1;
   103      int32 histogramSchemaType = 2;
   104      repeated int32 activeThreadCount = 3;
   105      int64 timeStamp = 4;
   106  }