-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathapi.proto
More file actions
45 lines (36 loc) · 977 Bytes
/
api.proto
File metadata and controls
45 lines (36 loc) · 977 Bytes
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
37
38
39
40
41
42
43
44
45
syntax = "proto3";
package api;
option go_package = "./api";
message Void {
}
message Message {
string body = 1;
}
message IsActive {
bool isUp = 1;
}
message ServerInfo {
string serverName = 1;
string timezone = 2;
}
message MonitorData {
string monitorData = 1;
}
message MonitorDataRequest {
string serverName = 1;
string logType = 2;
int64 from = 3;
int64 to = 4;
int64 time = 5;
bool isCustomMetric = 6;
}
service MonitorDataService {
rpc HandlePing(ServerInfo) returns (Message) {}
rpc IsUp(ServerInfo) returns (IsActive) {}
rpc InitAgent(ServerInfo) returns (Message) {}
rpc HandleMonitorData(MonitorData) returns (Message) {}
rpc HandleCustomMonitorData(MonitorData) returns (Message) {}
rpc HandleMonitorDataRequest(MonitorDataRequest) returns (MonitorData) {}
rpc HandleCustomMetricNameRequest(ServerInfo) returns (Message) {}
rpc HandleAgentIdsRequest(Void) returns (Message) {}
}