use new endpoint status model
This commit is contained in:
parent
7693e7055b
commit
8c2c03eba5
@ -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",
|
||||||
|
@ -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;
|
||||||
};
|
};
|
||||||
|
Loading…
Reference in New Issue
Block a user