GET | /status |
---|
"use strict";
/** @typedef {'Unhealthy'|'Degraded'|'Healthy'} */
export var HealthStatus;
(function (HealthStatus) {
HealthStatus["Unhealthy"] = "Unhealthy"
HealthStatus["Degraded"] = "Degraded"
HealthStatus["Healthy"] = "Healthy"
})(HealthStatus || (HealthStatus = {}));
export class HealthCheckReportEntry {
/** @param {{Key?:string,Description?:string,Duration?:string,Status?:HealthStatus,Error?:string}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?string} */
Key;
/** @type {?string} */
Description;
/** @type {string} */
Duration;
/** @type {HealthStatus} */
Status;
/** @type {?string} */
Error;
}
export class HealthCheckReport {
/** @param {{Status?:HealthStatus,Duration?:string,Version?:string,BuildDate?:string,Entries?:HealthCheckReportEntry[]}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {HealthStatus} */
Status;
/** @type {string} */
Duration;
/** @type {string} */
Version;
/** @type {?string} */
BuildDate;
/** @type {?HealthCheckReportEntry[]} */
Entries;
}
export class HealthResponse {
/** @param {{Result?:HealthCheckReport}} [init] */
constructor(init) { Object.assign(this, init) }
/** @type {?HealthCheckReport} */
Result;
}
export class HealthRequest {
constructor(init) { Object.assign(this, init) }
}
To override the Content-type in your clients, use the HTTP Accept Header, append the .json suffix or ?format=json
To embed the response in a jsonp callback, append ?callback=myCallback
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
GET /status HTTP/1.1 Host: prod-api-agency-orch-mb-dhc.rapp-customers.co.uk Accept: application/json
HTTP/1.1 200 OK Content-Type: application/json Content-Length: length {"Result":{"Status":"Unhealthy","Duration":"PT0S","Version":"String","BuildDate":"String"}}