/* Options: Date: 2024-11-08 10:30:39 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://elb.aws.tclclouds.com //Package: //AddServiceStackTypes: True //AddResponseStatus: False //AddImplicitVersion: //AddDescriptionAsComments: True IncludeTypes: HealthCheckRequest.* //ExcludeTypes: //InitializeCollections: True //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.* import java.util.* import net.servicestack.client.* @Route(Path="/healthcheck", Verbs="GET") open class HealthCheckRequest : 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") var ExecutionMode:ExecutionMode? = null /** * 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") var ServerType:ServerType? = null /** * 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") var IncludeServerStateInformation:Boolean? = null /** * 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") var SuppressErrorCodes:Boolean? = null /** * Indicates whether or not to suppress deployment-related errors. */ @ApiMember(DataType="boolean", Description="Indicates whether or not to suppress deployment-related errors.", ParameterType="query") var SuppressDeploymentErrors:Boolean? = null companion object { private val responseType = HealthCheckResponse::class.java } override fun getResponseType(): Any? = HealthCheckRequest.responseType } open class HealthCheckResponse { var ServerState:ServerState? = null var Status:MonitoringStatus? = null var StatusMessage:String? = null var CorrelationId:String? = null var FailedMonitorCount:Int? = null var MonitorSummaries:ArrayList = ArrayList() var ExecutionMetrics:MonitorExecutionMetrics? = null } enum class ExecutionMode(val value:Int) { Basic(1), Standard(2), Advanced(3), } enum class ServerType(val value:Int) { 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), } open class ServerState { var ServerName:String? = null var TotalRamInMb:BigDecimal? = null var AvailableRamInMb:BigDecimal? = null var UsedCpuPercent:BigDecimal? = null } enum class MonitoringStatus(val value:Int) { Success(1), Failure(2), } open class MonitorSummary { var MonitorName:String? = null var Status:MonitoringStatus? = null var Results:ArrayList = ArrayList() var ErrorMessages:ArrayList = ArrayList() } open class MonitorExecutionMetrics { var StartDateTime:Date? = null var EndDateTime:Date? = null var Duration:TimeSpan? = null } open class MonitoringResult { var MonitoringName:String? = null var Status:MonitoringStatus? = null var StatusMessage:String? = null var ErrorMessages:ArrayList = ArrayList() }