v2: some code clean up
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
6375702e2a
commit
6ae0050be8
@ -3,6 +3,7 @@ syntax = "proto3";
|
||||
package alert.v1;
|
||||
|
||||
import "base/v1/msg.proto";
|
||||
import "auth/v1/msg.proto";
|
||||
|
||||
message AlertFilter {
|
||||
base.v1.BaseQueryParam base_filter = 1;
|
||||
@ -32,17 +33,15 @@ message Meta {
|
||||
}
|
||||
|
||||
message LogEvent {
|
||||
optional uint64 id = 1; // Record Id of Log stored in db
|
||||
string content = 2;
|
||||
string effective_user = 3;
|
||||
optional LogSource source = 5;
|
||||
Importance importance = 6;
|
||||
Meta meta = 7;
|
||||
auth.v1.InternalIAM iam = 1;
|
||||
optional uint64 id = 2; // Record Id of Log stored in db
|
||||
string content = 3;
|
||||
optional LogSource source = 4;
|
||||
Importance importance = 5;
|
||||
Meta meta = 6;
|
||||
}
|
||||
|
||||
message LogEventList {
|
||||
repeated LogEvent events = 1;
|
||||
}
|
||||
message LogEventList { repeated LogEvent events = 1; }
|
||||
/*
|
||||
Internal Msg
|
||||
*/
|
||||
@ -60,6 +59,4 @@ message SMS {
|
||||
repeated SMSChangeLog change_log = 5;
|
||||
}
|
||||
|
||||
message SMSList {
|
||||
repeated SMS sms = 1;
|
||||
}
|
||||
message SMSList { repeated SMS sms = 1; }
|
||||
|
||||
@ -8,6 +8,6 @@ import "base/v1/msg.proto";
|
||||
service AlertSrv {
|
||||
rpc NotificationSrvHealth(base.v1.Empty) returns (base.v1.StatusRes);
|
||||
rpc Emit(LogEvent) returns (base.v1.StatusRes) {}
|
||||
rpc Update(LogEvent) returns (base.v1.StatusRes) {}
|
||||
rpc Get(AlertFilter) returns (base.v1.StatusRes) {}
|
||||
// rpc Update(LogEvent) returns (base.v1.StatusRes) {}
|
||||
// rpc Get(AlertFilter) returns (base.v1.StatusRes) {}
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user