Skip to content
telemetry_frontend.proto 1.74 KiB
Newer Older
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
// Copyright 2022-2024 ETSI OSG/SDG TeraFlowSDN (TFS) (https://tfs.etsi.org/)
//
// Licensed under the Apache License, Version 2.0 (the "License");
// you may not use this file except in compliance with the License.
// You may obtain a copy of the License at
//
//      http://www.apache.org/licenses/LICENSE-2.0
//
// Unless required by applicable law or agreed to in writing, software
// distributed under the License is distributed on an "AS IS" BASIS,
// WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
// See the License for the specific language governing permissions and
// limitations under the License.

Ricard Vilalta's avatar
Ricard Vilalta committed
syntax = "proto3";
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
package telemetry_frontend;
Ricard Vilalta's avatar
Ricard Vilalta committed

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

service TelemetryFrontendService {
  rpc StartCollector  (Collector      ) returns (CollectorId  ) {}
  rpc StopCollector   (CollectorId    ) returns (context.Empty) {}
  rpc SelectCollectors(CollectorFilter) returns (CollectorList) {}
}

message CollectorId {
  context.Uuid collector_id = 1;
}

message Collector {
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
  CollectorId       collector_id = 1; // The Collector ID
  kpi_manager.KpiId kpi_id       = 2; // The KPI Id to be associated to the collected samples
  float             duration_s   = 3; // Terminate data collection after duration[seconds]; duration==0 means indefinitely
  float             interval_s   = 4; // Interval between collected samples
Ricard Vilalta's avatar
Ricard Vilalta committed
}

message CollectorFilter {
  // Collector that fulfill the filter are those that match ALL the following fields.
  // An empty list means: any value is accepted.
  // All fields empty means: list all Collectors
Lluis Gifre Renom's avatar
Lluis Gifre Renom committed
  repeated CollectorId       collector_id = 1;
  repeated kpi_manager.KpiId kpi_id       = 2;
Ricard Vilalta's avatar
Ricard Vilalta committed
}

message CollectorList {
  repeated Collector collector_list = 1;
}