-
Notifications
You must be signed in to change notification settings - Fork 15
Expand file tree
/
Copy pathalertapi.proto
More file actions
43 lines (35 loc) · 744 Bytes
/
alertapi.proto
File metadata and controls
43 lines (35 loc) · 744 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
syntax = "proto3";
package alertapi;
option go_package = "./alertapi";
message Void {
}
message Response {
bool success = 1;
string msg = 2;
}
message Alert {
string serverName = 1;
string metricName = 2;
int64 logId = 3;
int32 status = 4;
string subject = 5;
string content = 6;
string timestamp = 7;
bool resolved = 8;
string disk = 9;
string service = 10;
bool pagerduty = 11;
bool email = 12;
bool slack = 13;
string slackChannel = 14;
}
message Request {
string serverName = 1;
}
message AlertArray {
repeated Alert alerts = 1;
}
service AlertService {
rpc HandleAlerts(Alert) returns (Response) {}
rpc AlertRequest(Request) returns (AlertArray) {}
}