This commit is contained in:
parent
4bca857c80
commit
c1e9d7e5db
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "mcutils-library",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"description": "",
|
||||
"main": "dist/index.js",
|
||||
"types": "dist/index.d.ts",
|
||||
|
22
src/types/cache/cachedEndpointStatus.ts
vendored
22
src/types/cache/cachedEndpointStatus.ts
vendored
@ -1,8 +1,24 @@
|
||||
import { EndpointStatus } from "../mojang/endpointStatus";
|
||||
|
||||
export interface CachedEndpointStatus extends Cache {
|
||||
/**
|
||||
* The cached endpoint status.
|
||||
*/
|
||||
status: EndpointStatus;
|
||||
endpoints: Map<string, Status>;
|
||||
}
|
||||
|
||||
enum Status {
|
||||
/**
|
||||
* The service is online and operational.
|
||||
*/
|
||||
ONLINE,
|
||||
|
||||
/**
|
||||
* The service is online, but may be experiencing issues.
|
||||
* This could be due to high load or other issues.
|
||||
*/
|
||||
DEGRADED,
|
||||
|
||||
/**
|
||||
* The service is offline and not operational.
|
||||
*/
|
||||
OFFLINE,
|
||||
}
|
||||
|
@ -1,24 +0,0 @@
|
||||
export type EndpointStatus = {
|
||||
/**
|
||||
* The status of the endpoints.
|
||||
*/
|
||||
endpoints: Map<string, Status>;
|
||||
};
|
||||
|
||||
enum Status {
|
||||
/**
|
||||
* The service is online and operational.
|
||||
*/
|
||||
ONLINE,
|
||||
|
||||
/**
|
||||
* The service is online, but may be experiencing issues.
|
||||
* This could be due to high load or other issues.
|
||||
*/
|
||||
DEGRADED,
|
||||
|
||||
/**
|
||||
* The service is offline and not operational.
|
||||
*/
|
||||
OFFLINE,
|
||||
}
|
Loading…
Reference in New Issue
Block a user