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: {
|
gameId: {
|
||||||
type: String,
|
type: String,
|
||||||
},
|
},
|
||||||
|
grpcServiceName: {
|
||||||
|
type: String,
|
||||||
|
default: "",
|
||||||
|
},
|
||||||
group: {
|
group: {
|
||||||
type: String,
|
type: String,
|
||||||
trim: true,
|
trim: true,
|
||||||
|
|||||||
@@ -93,6 +93,13 @@ export interface PortStatusPayload {
|
|||||||
|
|
||||||
export type GameStatusPayload = Record<string, unknown>;
|
export type GameStatusPayload = Record<string, unknown>;
|
||||||
|
|
||||||
|
export interface GrpcStatusPayload {
|
||||||
|
grpcStatusCode: number;
|
||||||
|
grpcStatusName: string;
|
||||||
|
serviceName: string;
|
||||||
|
servingStatus: string;
|
||||||
|
}
|
||||||
|
|
||||||
export interface MonitorPayloadMap {
|
export interface MonitorPayloadMap {
|
||||||
ping: PingStatusPayload;
|
ping: PingStatusPayload;
|
||||||
http: HttpStatusPayload;
|
http: HttpStatusPayload;
|
||||||
@@ -101,6 +108,7 @@ export interface MonitorPayloadMap {
|
|||||||
docker: DockerStatusPayload;
|
docker: DockerStatusPayload;
|
||||||
port: PortStatusPayload;
|
port: PortStatusPayload;
|
||||||
game: GameStatusPayload;
|
game: GameStatusPayload;
|
||||||
|
grpc: GrpcStatusPayload;
|
||||||
default: unknown;
|
default: unknown;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|||||||
Reference in new issue
Block a user