(* Options: Date: 2024-11-08 09:31:33 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://appcenter.tclclouds.com //GlobalNamespace: //MakeDataContractsExtensible: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //ExportValueTypes: False IncludeTypes: HealthCheckRequest.* //ExcludeTypes: //InitializeCollections: True //AddNamespaces: *) namespace ExtremeReach.Diagnostics.App.Types open System open System.Collections open System.Collections.Generic open System.Runtime.Serialization open ServiceStack open ServiceStack.DataAnnotations type ExecutionMode = | Basic = 1 | Standard = 2 | Advanced = 3 type 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 [] type ServerState() = member val ServerName:String = null with get,set member val TotalRamInMb:Nullable = new Nullable() with get,set member val AvailableRamInMb:Nullable = new Nullable() with get,set member val UsedCpuPercent:Nullable = new Nullable() with get,set type MonitoringStatus = | Success = 1 | Failure = 2 [] type MonitoringResult() = member val MonitoringName:String = null with get,set member val Status:MonitoringStatus = new MonitoringStatus() with get,set member val StatusMessage:String = null with get,set member val ErrorMessages:ResizeArray = new ResizeArray() with get,set [] type MonitorSummary() = member val MonitorName:String = null with get,set member val Status:MonitoringStatus = new MonitoringStatus() with get,set member val Results:ResizeArray = new ResizeArray() with get,set member val ErrorMessages:ResizeArray = new ResizeArray() with get,set [] type MonitorExecutionMetrics() = member val StartDateTime:DateTime = new DateTime() with get,set member val EndDateTime:DateTime = new DateTime() with get,set member val Duration:TimeSpan = new TimeSpan() with get,set [] type HealthCheckResponse() = member val ServerState:ServerState = null with get,set member val Status:MonitoringStatus = new MonitoringStatus() with get,set member val StatusMessage:String = null with get,set member val CorrelationId:String = null with get,set member val FailedMonitorCount:Int32 = new Int32() with get,set member val MonitorSummaries:ResizeArray = new ResizeArray() with get,set member val ExecutionMetrics:MonitorExecutionMetrics = null with get,set [] [] type HealthCheckRequest() = interface IReturn /// ///The mode used to determine what level of health check to perform. /// [] member val ExecutionMode:ExecutionMode = new ExecutionMode() with get,set /// ///The type of server that will be used to determine which monitors will be run. /// [] member val ServerType:ServerType = new ServerType() with get,set /// ///Indicates whether or not to include server state information in the response. /// [] member val IncludeServerStateInformation:Boolean = new Boolean() with get,set /// ///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. /// [] member val SuppressErrorCodes:Boolean = new Boolean() with get,set /// ///Indicates whether or not to suppress deployment-related errors. /// [] member val SuppressDeploymentErrors:Boolean = new Boolean() with get,set