github.com/google/cloudprober@v0.11.3/examples/extensions/myprober/myprobe/myprobe.proto (about)

     1  // This protobuf defines a new cloudprober probe type.
     2  syntax = "proto2";
     3  
     4  package myprober;
     5  
     6  option go_package="github.com/google/cloudprober/examples/extensions/myprober/myprobe";
     7  
     8  import "github.com/google/cloudprober/probes/proto/config.proto";
     9  
    10  message ProbeConf {
    11    // Redis operation
    12    enum Op {
    13      GET = 0;
    14      SET = 1;
    15      DELETE = 2;
    16    }
    17    required Op op = 1;
    18  
    19    // Key and value for the redis operation
    20    required string key = 2;
    21    optional string value = 3;
    22  }
    23  
    24  extend cloudprober.probes.ProbeDef {
    25    optional ProbeConf redis_probe = 200;
    26  }