use new endpoint status model

This commit is contained in:
Lee 2024-04-19 17:28:50 +01:00
parent 7693e7055b
commit 8c2c03eba5
2 changed files with 19 additions and 4 deletions

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

@ -1,10 +1,25 @@
import { Status } from "../status";
export interface CachedEndpointStatus extends Cache, EndpointStatus {}
export interface CachedEndpointStatus extends Cache, EndpointStatus {
/**
* The endpoint statuses.
*/
endpoints: 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;
};