2 Commits

Author SHA1 Message Date
2f666a9cfa Merge remote-tracking branch 'origin/master'
All checks were successful
Publish Package / build (push) Successful in 19s
2024-04-19 17:28:54 +01:00
8c2c03eba5 use new endpoint status model 2024-04-19 17:28:50 +01:00
2 changed files with 19 additions and 4 deletions

View File

@ -1,6 +1,6 @@
{ {
"name": "mcutils-library", "name": "mcutils-library",
"version": "1.2.2", "version": "1.2.3",
"description": "", "description": "",
"main": "dist/index.js", "main": "dist/index.js",
"types": "dist/index.d.ts", "types": "dist/index.d.ts",

View File

@ -1,10 +1,25 @@
import { Status } from "../status"; import { Status } from "../status";
export interface CachedEndpointStatus extends Cache, EndpointStatus {} export interface CachedEndpointStatus extends Cache, EndpointStatus {
/**
* The endpoint statuses.
*/
endpoints: EndpointStatus[];
}
type EndpointStatus = { type EndpointStatus = {
/** /**
* The cached endpoint status. * The name of the service.
*/ */
endpoints: Record<string, Status>; name: string;
/**
* The hostname of the service.
*/
hostname: string;
/**
* The status of the service.
*/
status: Status;
}; };