Feat: Add GrpcStatus to network and Mongoose schema
This commit is contained in:
1 parent
dac78c7647
commit
05f8e6a07e
2 files changed
+12
No files matched your search
@@ -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