/* Options: Date: 2024-09-19 23:33:07 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://services.dev.extremereach.com //GlobalNamespace: //MakePropertiesOptional: False //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: HealthCheckRequest.* //ExcludeTypes: //DefaultImports: */ export interface IReturn { createResponse(): T; } export enum ExecutionMode { Basic = 1, Standard = 2, Advanced = 3, } export enum ServerType { App = 1, Sql = 2, FtpApi = 3, Ftp = 4, Batch = 5, Identity = 6, Qc = 7, XcodeV = 8, XcodeC = 9, MsgVast = 10, AsgVast = 11, Mongo = 12, Agents = 13, } export class ServerState { public ServerName: string; public TotalRamInMb?: number; public AvailableRamInMb?: number; public UsedCpuPercent?: number; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export enum MonitoringStatus { Success = 1, Failure = 2, } export class MonitoringResult { public MonitoringName: string; public Status: MonitoringStatus; public StatusMessage: string; public ErrorMessages: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class MonitorSummary { public MonitorName: string; public Status: MonitoringStatus; public Results: MonitoringResult[]; public ErrorMessages: string[]; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class MonitorExecutionMetrics { public StartDateTime: string; public EndDateTime: string; public Duration: string; public constructor(init?: Partial) { (Object as any).assign(this, init); } } export class HealthCheckResponse { public ServerState: ServerState; public Status: MonitoringStatus; public StatusMessage: string; public CorrelationId: string; public FailedMonitorCount: number; public MonitorSummaries: MonitorSummary[]; public ExecutionMetrics: MonitorExecutionMetrics; public constructor(init?: Partial) { (Object as any).assign(this, init); } } // @Route("/healthcheck", "GET") export class HealthCheckRequest implements IReturn { /** * The mode used to determine what level of health check to perform. */ // @ApiMember(DataType="ExecutionMode", Description="The mode used to determine what level of health check to perform.", IsRequired=true, ParameterType="query") public ExecutionMode: ExecutionMode; /** * The type of server that will be used to determine which monitors will be run. */ // @ApiMember(DataType="ServerType", Description="The type of server that will be used to determine which monitors will be run.", IsRequired=true, ParameterType="query") public ServerType: ServerType; /** * Indicates whether or not to include server state information in the response. */ // @ApiMember(DataType="boolean", Description="Indicates whether or not to include server state information in the response.", ParameterType="query") public IncludeServerStateInformation: boolean; /** * Indicates whether or not to suppress returning error codes. This will always return a 200 code to the caller, which is required for PRTG to process the JSON response properly. */ // @ApiMember(DataType="boolean", Description="Indicates whether or not to suppress returning error codes. This will always return a 200 code to the caller, which is required for PRTG to process the JSON response properly.", ParameterType="query") public SuppressErrorCodes: boolean; /** * Indicates whether or not to suppress deployment-related errors. */ // @ApiMember(DataType="boolean", Description="Indicates whether or not to suppress deployment-related errors.", ParameterType="query") public SuppressDeploymentErrors: boolean; public constructor(init?: Partial) { (Object as any).assign(this, init); } public getTypeName() { return 'HealthCheckRequest'; } public getMethod() { return 'GET'; } public createResponse() { return new HealthCheckResponse(); } }