Compare commits
No commits in common. "15ba0b6212ccf5e83103e59e83777748a10a6cd7" and "6375702e2a22eadbe7f040e71c1eb1994a62f23a" have entirely different histories.
15ba0b6212
...
6375702e2a
@ -3,7 +3,6 @@ syntax = "proto3";
|
|||||||
package alert.v1;
|
package alert.v1;
|
||||||
|
|
||||||
import "base/v1/msg.proto";
|
import "base/v1/msg.proto";
|
||||||
import "auth/v1/msg.proto";
|
|
||||||
|
|
||||||
message AlertFilter {
|
message AlertFilter {
|
||||||
base.v1.BaseQueryParam base_filter = 1;
|
base.v1.BaseQueryParam base_filter = 1;
|
||||||
@ -11,7 +10,7 @@ message AlertFilter {
|
|||||||
LogSource source = 3;
|
LogSource source = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
// Importance of given event
|
//Importance of given event
|
||||||
enum Importance {
|
enum Importance {
|
||||||
LOW = 0; // Low Severity ( unimportant and can be ignored )
|
LOW = 0; // Low Severity ( unimportant and can be ignored )
|
||||||
MEDIUM = 1; // MEDIUM Severity
|
MEDIUM = 1; // MEDIUM Severity
|
||||||
@ -33,15 +32,17 @@ message Meta {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message LogEvent {
|
message LogEvent {
|
||||||
auth.v1.InternalIAM iam = 1;
|
optional uint64 id = 1; // Record Id of Log stored in db
|
||||||
optional uint64 id = 2; // Record Id of Log stored in db
|
string content = 2;
|
||||||
string content = 3;
|
string effective_user = 3;
|
||||||
optional LogSource source = 4;
|
optional LogSource source = 5;
|
||||||
Importance importance = 5;
|
Importance importance = 6;
|
||||||
Meta meta = 6;
|
Meta meta = 7;
|
||||||
}
|
}
|
||||||
|
|
||||||
message LogEventList { repeated LogEvent events = 1; }
|
message LogEventList {
|
||||||
|
repeated LogEvent events = 1;
|
||||||
|
}
|
||||||
/*
|
/*
|
||||||
Internal Msg
|
Internal Msg
|
||||||
*/
|
*/
|
||||||
@ -52,11 +53,13 @@ message SMSChangeLog {
|
|||||||
}
|
}
|
||||||
|
|
||||||
message SMS {
|
message SMS {
|
||||||
string recipient = 1; // recipient
|
string recipient = 1; //recipient
|
||||||
string text = 2;
|
string text = 2;
|
||||||
optional string sender = 3;
|
optional string sender = 3;
|
||||||
Meta meta = 4;
|
Meta meta = 4;
|
||||||
repeated SMSChangeLog change_log = 5;
|
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 {
|
service AlertSrv {
|
||||||
rpc NotificationSrvHealth(base.v1.Empty) returns (base.v1.StatusRes);
|
rpc NotificationSrvHealth(base.v1.Empty) returns (base.v1.StatusRes);
|
||||||
rpc Emit(LogEvent) returns (base.v1.StatusRes) {}
|
rpc Emit(LogEvent) returns (base.v1.StatusRes) {}
|
||||||
// rpc Update(LogEvent) returns (base.v1.StatusRes) {}
|
rpc Update(LogEvent) returns (base.v1.StatusRes) {}
|
||||||
// rpc Get(AlertFilter) returns (base.v1.StatusRes) {}
|
rpc Get(AlertFilter) returns (base.v1.StatusRes) {}
|
||||||
}
|
}
|
||||||
|
|||||||
@ -6,7 +6,6 @@ import "base/v1/msg.proto";
|
|||||||
import "wallet/v1/msg.proto";
|
import "wallet/v1/msg.proto";
|
||||||
|
|
||||||
service PrivWalletSrv {
|
service PrivWalletSrv {
|
||||||
rpc PrivWalletSrvHealth(base.v1.Empty) returns (base.v1.StatusRes);
|
|
||||||
// Lock And Release Assets
|
// Lock And Release Assets
|
||||||
rpc LockAsset(LockAssetReq) returns (base.v1.StatusRes);
|
rpc LockAsset(LockAssetReq) returns (base.v1.StatusRes);
|
||||||
rpc ReleaseAsset(LockAssetReq) returns (base.v1.StatusRes);
|
rpc ReleaseAsset(LockAssetReq) returns (base.v1.StatusRes);
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user