v2: buf format
Signed-off-by: nfel <nfilsaraee@gmail.com>
This commit is contained in:
parent
b3ceb01bfb
commit
8b560247e4
@ -4,18 +4,18 @@ package alert.v1;
|
|||||||
|
|
||||||
import "base/v1/msg.proto";
|
import "base/v1/msg.proto";
|
||||||
|
|
||||||
|
message AlertFilter {
|
||||||
message AlertFilter{
|
|
||||||
base.v1.Filter base_filter = 1;
|
base.v1.Filter base_filter = 1;
|
||||||
Importance importance = 2;
|
Importance importance = 2;
|
||||||
LogSource source = 3;
|
LogSource source = 3;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
//Importance of given event
|
||||||
enum Importance {
|
enum Importance {
|
||||||
LOW = 0;
|
LOW = 0; // Low Severity ( unimportant and can be ignored )
|
||||||
MEDIUM = 1;
|
MEDIUM = 1; // MEDIUM Severity
|
||||||
HIGH = 2;
|
HIGH = 2; // High Severity
|
||||||
CRITICAL = 3;
|
CRITICAL = 3; // CRITICAL Severity ( can cause panics and data lost )
|
||||||
}
|
}
|
||||||
|
|
||||||
enum LogSource {
|
enum LogSource {
|
||||||
|
|||||||
@ -131,7 +131,7 @@ message Identity {
|
|||||||
string updated_at = 18;
|
string updated_at = 18;
|
||||||
string created_at = 19;
|
string created_at = 19;
|
||||||
string email = 20;
|
string email = 20;
|
||||||
string mobile = 21;
|
string mobile = 21;
|
||||||
optional Company company = 22;
|
optional Company company = 22;
|
||||||
optional string employee_info = 23;
|
optional string employee_info = 23;
|
||||||
}
|
}
|
||||||
|
|||||||
@ -14,8 +14,7 @@ service AuthorizationService {
|
|||||||
|
|
||||||
rpc UserLoginSendOTP(UserSendOtpReq) returns (UserSendOtpRes) {}
|
rpc UserLoginSendOTP(UserSendOtpReq) returns (UserSendOtpRes) {}
|
||||||
rpc UserLoginWithOTP(UserLoginReq) returns (UserAccessTokenRes) {}
|
rpc UserLoginWithOTP(UserLoginReq) returns (UserAccessTokenRes) {}
|
||||||
rpc UserGetAccessTokenByRefreshToken(UserRefreshTokenReq)
|
rpc UserGetAccessTokenByRefreshToken(UserRefreshTokenReq) returns (UserAccessTokenRes) {}
|
||||||
returns (UserAccessTokenRes) {}
|
|
||||||
|
|
||||||
rpc UserGetUserPermission(InternalIAM) returns (PermissionList) {}
|
rpc UserGetUserPermission(InternalIAM) returns (PermissionList) {}
|
||||||
|
|
||||||
|
|||||||
@ -13,7 +13,7 @@ message IdRes {
|
|||||||
message IdReq {
|
message IdReq {
|
||||||
int64 id = 1;
|
int64 id = 1;
|
||||||
}
|
}
|
||||||
message Pagination{
|
message Pagination {
|
||||||
uint32 page = 1; // in query param it will be p
|
uint32 page = 1; // in query param it will be p
|
||||||
uint32 page_size = 2; // in query param it will be pz
|
uint32 page_size = 2; // in query param it will be pz
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user