v2: test env

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
2024-11-26 11:41:10 +03:30
parent 22c5992046
commit 7b2eef8657
4 changed files with 23 additions and 24 deletions
+11 -1
View File
@@ -26,7 +26,6 @@ message LogEvent {
optional uint64 id = 1; // Record Id of Log stored in db
string content = 2;
string effective_user = 3;
optional LogEvent prev_cause = 4;
optional LogSource source = 5;
Importance importance = 6;
Meta meta = 7;
@@ -38,9 +37,20 @@ message LogEventList {
/*
Internal Msg
*/
message SMSChangeLog {
uint32 when_ts = 1;
string what = 2;
}
message SMS {
string recipient = 1; //recipient
string text = 2;
optional string sender = 3;
Meta meta = 4;
repeated SMSChangeLog change_log = 5;
}
message SMSList {
repeated SMS sms = 1;
}
+3 -3
View File
@@ -6,7 +6,7 @@ import "alert/v1/msg.proto";
import "base/v1/msg.proto";
service AlertSrv {
rpc Log(LogEvent) returns (base.v1.StatusRes) {}
rpc LogHistory(base.v1.IdReq) returns(LogEventList) {}
rpc StatusChange(LogEvent) returns (base.v1.StatusRes) {}
rpc Emit(LogEvent) returns (base.v1.StatusRes) {}
rpc Update(LogEvent) returns (base.v1.StatusRes) {}
rpc Get() returns (base.v1.StatusRes) {}
}