hacker-challenge-sgx-general/proto/challenge.proto
Valentyn Faychuk 3c93b258f5
write metrics to the /host/logs
Signed-off-by: Valentyn Faychuk <valy@detee.ltd>
2024-12-02 03:42:38 +02:00

30 lines
591 B
Protocol Buffer

syntax = "proto3";
package challenge;
import "google/protobuf/timestamp.proto";
message NodeUpdate {
string ip = 1;
google.protobuf.Timestamp started_at = 2;
google.protobuf.Timestamp keepalive = 3;
uint64 mint_requests = 4;
uint64 mints = 5;
uint64 mratls_conns = 6;
uint64 quote_attacks = 7;
bool public = 8;
uint64 restarts = 9;
uint64 disk_attacks = 10;
}
message Keys {
bytes keypair = 1;
string token_address = 2;
}
message Empty {}
service Update {
rpc GetKeys (Empty) returns (Keys);
rpc GetUpdates (stream NodeUpdate) returns (stream NodeUpdate);
}