v2: ci updates

Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
2024-11-23 16:17:21 +03:30
parent 8d2bdaf352
commit 01e0904fa6
4 changed files with 109 additions and 13 deletions
+46
View File
@@ -0,0 +1,46 @@
syntax = "proto3";
package alert.v1;
enum Importance {
LOW = 0;
MEDIUM = 1;
HIGH = 2;
CRITICAL = 3;
}
enum LogSource {
UNKNOWN = 0;
USER = 1;
SYSTEM = 2;
WALLET = 3;
}
message Meta {
uint32 created_at_ts = 1;
uint32 updated_at_ts = 2;
uint32 blamer_id = 3; // User ID of person who made the change
}
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;
}
message LogEventList {
repeated LogEvent events = 1;
}
/*
Internal Msg
*/
message SMS {
string recipient = 1; //recipient
string text = 2;
optional string sender = 3;
Meta meta = 4;
}
+12
View File
@@ -0,0 +1,12 @@
syntax = "proto3";
package alert.v1;
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) {}
}