-
Notifications
You must be signed in to change notification settings - Fork 0
/
nip.proto
36 lines (31 loc) · 875 Bytes
/
nip.proto
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
syntax = "proto3";
import "google/protobuf/timestamp.proto";
import "common.proto";
package hoppipolla.nip;
message EnergyReading {
string id = 1;
string isd_as = 2;
string machine_id = 3;
google.protobuf.Timestamp collected_at = 4;
float energy_consumption_kWh = 5;
float cpu_usage_percentage = 6;
float memory_usage_percentage =7;
float network_traffic_MB = 8;
float temperature_celsius = 9;
string power_source = 10;
string status = 11;
float carbon_emissions_kg = 12;
float renewable_energy_percentage = 13;
string energy_efficiency_rating = 14;
}
service NipProxy {
rpc GetEnergyReadings(GetEnergyReadingsRequest)
returns (GetEnergyReadingsResponse) {}
}
message GetEnergyReadingsRequest {
string isd_as = 1;
hoppipolla.common.Interval interval = 2;
}
message GetEnergyReadingsResponse {
repeated EnergyReading data = 1;
}