github.com/google/cloudprober@v0.11.3/prober/proto/service.proto (about) 1 syntax = "proto2"; 2 3 package cloudprober; 4 5 import "github.com/google/cloudprober/probes/proto/config.proto"; 6 7 option go_package = "github.com/google/cloudprober/prober/proto"; 8 9 service Cloudprober { 10 // AddProbe adds a probe to cloudprober. Error is returned if probe is already 11 // defined or there is an error during initialization of the probe. 12 rpc AddProbe(AddProbeRequest) returns (AddProbeResponse) {} 13 14 // RemoveProbe stops the probe and removes it from the in-memory database. 15 rpc RemoveProbe(RemoveProbeRequest) returns (RemoveProbeResponse) {} 16 17 // ListProbes lists active probes. 18 rpc ListProbes(ListProbesRequest) returns (ListProbesResponse) {} 19 } 20 21 message AddProbeRequest { 22 optional probes.ProbeDef probe_config = 1; 23 } 24 25 message AddProbeResponse {} 26 27 message RemoveProbeRequest { 28 optional string probe_name = 1; 29 } 30 31 message RemoveProbeResponse {} 32 33 message ListProbesRequest {} 34 35 message Probe { 36 optional string name = 1; 37 optional probes.ProbeDef config = 2; 38 } 39 40 message ListProbesResponse { 41 repeated Probe probe = 1; 42 }