// protocol buffers documentation: https://developers.google.com/protocol-buffers/docs/proto3
syntax = "proto3";
package centralized_cybersecurity;

import "context.proto";
import "service.proto";
import "monitoring.proto";


service CentralizedCyberSecurityService {

  rpc NotifyServiceUpdate (service.Service) returns (context.Empty) {}
  
  // rpc that triggers the attack detection loop
  rpc DetectAttack (context.Empty) returns (context.Empty) {}

  // rpc called by the distributed component to report KPIs
  rpc ReportSummarizedKpi (monitoring.KpiList) returns (context.Empty) {}

  rpc ReportKpi (monitoring.KpiList) returns (context.Empty) {}

}

