device.proto 675 Bytes
Newer Older
Ricard Vilalta's avatar
Ricard Vilalta committed
syntax = "proto3";
package device;

import "context.proto";
import "monitoring.proto";
Ricard Vilalta's avatar
Ricard Vilalta committed

service DeviceService {
  rpc AddDevice       (context.Device    ) returns (context.DeviceId    ) {}
  rpc ConfigureDevice (context.Device    ) returns (context.DeviceId    ) {}
  rpc DeleteDevice    (context.DeviceId  ) returns (context.Empty       ) {}
  rpc GetInitialConfig(context.DeviceId  ) returns (context.DeviceConfig) {}
  rpc MonitorDeviceKpi(MonitoringSettings) returns (context.Empty       ) {}
message MonitoringSettings {
  monitoring.KpiId kpi_id = 1;
  monitoring.KpiDescriptor kpi_descriptor = 2;
  float sampling_duration_s = 3;
  float sampling_interval_s = 4;
}