Compare commits
No commits in common. "3eac30a1e3c7c7ad280f73849836f4b03b4db8b9" and "4135400cf140324f8860346f316e59ff64e8d526" have entirely different histories.
3eac30a1e3
...
4135400cf1
@ -2,8 +2,8 @@ syntax = "proto3";
|
|||||||
|
|
||||||
package alert.v1;
|
package alert.v1;
|
||||||
|
|
||||||
import "auth/v1/msg.proto";
|
|
||||||
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;
|
||||||
@ -19,29 +19,13 @@ enum Importance {
|
|||||||
CRITICAL = 3; // CRITICAL Severity ( can cause panics and data lost )
|
CRITICAL = 3; // CRITICAL Severity ( can cause panics and data lost )
|
||||||
}
|
}
|
||||||
|
|
||||||
enum LogType {
|
|
||||||
TYPE_UNKNOWN = 0;
|
|
||||||
TYPE_SMS = 1;
|
|
||||||
TYPE_EMAIL = 2;
|
|
||||||
TYPE_PUSH = 3;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum LogLevel {
|
|
||||||
LVL_UNKNOWN = 0;
|
|
||||||
LVL_INFO = 1;
|
|
||||||
LVL_SUCCESS = 2;
|
|
||||||
LVL_WARN = 3;
|
|
||||||
LVL_ERROR = 4;
|
|
||||||
}
|
|
||||||
|
|
||||||
enum LogSource {
|
enum LogSource {
|
||||||
SRC_UNKNOWN = 0;
|
UNKNOWN = 0;
|
||||||
SRC_USER = 1;
|
USER = 1;
|
||||||
SRC_SYSTEM = 2;
|
SYSTEM = 2;
|
||||||
SRC_WALLET = 3;
|
WALLET = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
message Meta {
|
message Meta {
|
||||||
uint32 created_at_ts = 1;
|
uint32 created_at_ts = 1;
|
||||||
uint32 updated_at_ts = 2;
|
uint32 updated_at_ts = 2;
|
||||||
@ -51,16 +35,13 @@ message Meta {
|
|||||||
message LogEvent {
|
message LogEvent {
|
||||||
auth.v1.InternalIAM iam = 1;
|
auth.v1.InternalIAM iam = 1;
|
||||||
optional uint64 id = 2; // Record Id of Log stored in db
|
optional uint64 id = 2; // Record Id of Log stored in db
|
||||||
LogSource source = 3;
|
string content = 3;
|
||||||
Importance importance = 4;
|
optional LogSource source = 4;
|
||||||
LogLevel level = 5;
|
Importance importance = 5;
|
||||||
string content = 6;
|
Meta meta = 6;
|
||||||
Meta meta = 7;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
message LogEventList {
|
message LogEventList { repeated LogEvent events = 1; }
|
||||||
repeated LogEvent events = 1;
|
|
||||||
}
|
|
||||||
/*
|
/*
|
||||||
Internal Msg
|
Internal Msg
|
||||||
*/
|
*/
|
||||||
@ -78,6 +59,4 @@ message SMS {
|
|||||||
repeated SMSChangeLog change_log = 5;
|
repeated SMSChangeLog change_log = 5;
|
||||||
}
|
}
|
||||||
|
|
||||||
message SMSList {
|
message SMSList { repeated SMS sms = 1; }
|
||||||
repeated SMS sms = 1;
|
|
||||||
}
|
|
||||||
|
|||||||
@ -11,4 +11,3 @@ service AlertSrv {
|
|||||||
// 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,7 @@ import "base/v1/msg.proto";
|
|||||||
import "wallet/v1/msg.proto";
|
import "wallet/v1/msg.proto";
|
||||||
|
|
||||||
service InternalWalletSrv {
|
service InternalWalletSrv {
|
||||||
rpc InternalWalletSrvHealth(base.v1.Empty) returns (base.v1.StatusRes);
|
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