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";
|
||||
|
||||
|
||||
message AlertFilter{
|
||||
message AlertFilter {
|
||||
base.v1.Filter base_filter = 1;
|
||||
Importance importance = 2;
|
||||
LogSource source = 3;
|
||||
Importance importance = 2;
|
||||
LogSource source = 3;
|
||||
}
|
||||
|
||||
//Importance of given event
|
||||
enum Importance {
|
||||
LOW = 0;
|
||||
MEDIUM = 1;
|
||||
HIGH = 2;
|
||||
CRITICAL = 3;
|
||||
LOW = 0; // Low Severity ( unimportant and can be ignored )
|
||||
MEDIUM = 1; // MEDIUM Severity
|
||||
HIGH = 2; // High Severity
|
||||
CRITICAL = 3; // CRITICAL Severity ( can cause panics and data lost )
|
||||
}
|
||||
|
||||
enum LogSource {
|
||||
|
||||
@ -131,7 +131,7 @@ message Identity {
|
||||
string updated_at = 18;
|
||||
string created_at = 19;
|
||||
string email = 20;
|
||||
string mobile = 21;
|
||||
string mobile = 21;
|
||||
optional Company company = 22;
|
||||
optional string employee_info = 23;
|
||||
}
|
||||
|
||||
@ -14,8 +14,7 @@ service AuthorizationService {
|
||||
|
||||
rpc UserLoginSendOTP(UserSendOtpReq) returns (UserSendOtpRes) {}
|
||||
rpc UserLoginWithOTP(UserLoginReq) returns (UserAccessTokenRes) {}
|
||||
rpc UserGetAccessTokenByRefreshToken(UserRefreshTokenReq)
|
||||
returns (UserAccessTokenRes) {}
|
||||
rpc UserGetAccessTokenByRefreshToken(UserRefreshTokenReq) returns (UserAccessTokenRes) {}
|
||||
|
||||
rpc UserGetUserPermission(InternalIAM) returns (PermissionList) {}
|
||||
|
||||
|
||||
@ -13,12 +13,12 @@ message IdRes {
|
||||
message IdReq {
|
||||
int64 id = 1;
|
||||
}
|
||||
message Pagination{
|
||||
uint32 page = 1; // in query param it will be p
|
||||
message Pagination {
|
||||
uint32 page = 1; // in query param it will be p
|
||||
uint32 page_size = 2; // in query param it will be pz
|
||||
}
|
||||
message Filter {
|
||||
string query = 1; // q
|
||||
string sort = 2; // s
|
||||
optional Pagination page = 3;
|
||||
optional Pagination page = 3;
|
||||
}
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user