go.ligato.io/vpp-agent/v3@v3.5.0/proto/ligato/configurator/statspoller.proto (about)

     1  syntax = "proto3";
     2  
     3  package ligato.configurator;
     4  
     5  option go_package = "go.ligato.io/vpp-agent/v3/proto/ligato/configurator;configurator";
     6  
     7  import "ligato/vpp/vpp.proto";
     8  
     9  // Stats defines stats data returned by StatsPollerService.
    10  message Stats {
    11      oneof stats {
    12          vpp.Stats vpp_stats = 1;
    13      }
    14  }
    15  
    16  message PollStatsRequest {
    17      // PeriodSec defines polling period (in seconds). Set to zero to
    18      // return just single polling.
    19      uint32 period_sec = 1;
    20      // NumPolls defines number of pollings. Set to non-zero number to
    21      // stop the polling after specified number of pollings is reached.
    22      uint32 num_polls = 2;
    23  }
    24  
    25  
    26  message PollStatsResponse {
    27      // PollSeq defines the sequence number of this polling response.
    28      uint32 poll_seq = 1;
    29      // Stats contains polled stats data.
    30      Stats stats = 2;
    31  }
    32  
    33  // StatsPollerService provides operations for collecting statistics.
    34  service StatsPollerService {
    35      // PollStats is used for polling stats with specific period and number of pollings.
    36      rpc PollStats(PollStatsRequest) returns (stream PollStatsResponse) {};
    37  }