mirror of
https://github.com/bluewave-labs/Checkmate.git
synced 2026-05-22 01:29:30 -05:00
Feat: Add GrpcStatus to network and Mongoose schema
This commit is contained in:
@@ -160,6 +160,10 @@ const MonitorSchema = new Schema<MonitorDocument>(
|
||||
gameId: {
|
||||
type: String,
|
||||
},
|
||||
grpcServiceName: {
|
||||
type: String,
|
||||
default: "",
|
||||
},
|
||||
group: {
|
||||
type: String,
|
||||
trim: true,
|
||||
|
||||
@@ -93,6 +93,13 @@ export interface PortStatusPayload {
|
||||
|
||||
export type GameStatusPayload = Record<string, unknown>;
|
||||
|
||||
export interface GrpcStatusPayload {
|
||||
grpcStatusCode: number;
|
||||
grpcStatusName: string;
|
||||
serviceName: string;
|
||||
servingStatus: string;
|
||||
}
|
||||
|
||||
export interface MonitorPayloadMap {
|
||||
ping: PingStatusPayload;
|
||||
http: HttpStatusPayload;
|
||||
@@ -101,6 +108,7 @@ export interface MonitorPayloadMap {
|
||||
docker: DockerStatusPayload;
|
||||
port: PortStatusPayload;
|
||||
game: GameStatusPayload;
|
||||
grpc: GrpcStatusPayload;
|
||||
default: unknown;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user