monitoring.proto 787 Bytes
Newer Older
Ricard Vilalta's avatar
Ricard Vilalta committed
//Example of topology
syntax = "proto3";
package monitoring;

import "google/protobuf/empty.proto";
import "context.proto";

service MonitoringService {
  rpc IncludeKpi (Kpi) returns (google.protobuf.Empty) {}
  rpc MonitorKpi ( KpiDevice ) returns (google.protobuf.Empty) {}
  rpc GetStream_kpi ( KpiId ) returns (stream Kpi) {}
  rpc GetInstantKpi ( KpiId ) returns ( Kpi) {}
}

message Kpi {
  KpiId kpi_id = 1;
  string timestamp = 2;
  string kpiDescription = 3;
  KpiValue kpi_value = 4;
}

message KpiId {
  context.Uuid kpi_id = 1;
}

message KpiDevice {
  KpiId kpi_id = 1;
  context.DeviceId device_id = 2;
}



message KpiList {
  repeated Kpi kpiList = 1;
}


message KpiValue {
  oneof value {
    uint32 intVal = 1;
    string stringVal = 2;
    bool boolVal = 3;
  }
}