/* Options: Date: 2024-11-21 03:16:00 Version: 6.00 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: HealthCheckRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } // @Flags() // @DataContract export enum HealthStatus { Healthy = 0, Degraded = 4, Unhealthy = 8, } // @DataContract export class HealthReportEntry { // @DataMember public status: HealthStatus; // @DataMember public description: string; // @DataMember public duration: string; // @DataMember public exception: Exception; // @DataMember public data: IReadOnlyDictionary; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @DataContract export class HealthReport { // @DataMember public entries: IReadOnlyDictionary; // @DataMember public applicationStatus: HealthStatus; // @DataMember public duration: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/health") export class HealthCheckRequest implements IReturn { public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HealthCheckRequest'; } public getMethod() { return 'GET'; } public createResponse() { return new HealthReport(); } }