/* Options: Date: 2024-11-16 18:46:47 Version: 6.50 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: http://54.235.149.200 //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: False //AddNullableAnnotations: False //AddReturnMarker: True //AddDescriptionAsComments: True //AddDataContractAttributes: False //AddIndexesToDataMembers: False //AddGeneratedCodeAttributes: False //AddResponseStatus: False //AddImplicitVersion: //InitializeCollections: True //ExportValueTypes: False IncludeTypes: HealthCheckRequest.* //ExcludeTypes: //AddNamespaces: //AddDefaultXmlNamespace: http://schemas.servicestack.net/types */ using System; using System.Collections; using System.Collections.Generic; using System.Runtime.Serialization; using ServiceStack; using ServiceStack.DataAnnotations; using ExtremeReach.Diagnostics.App.Types; namespace ExtremeReach.Diagnostics.App.Types { public enum ExecutionMode { Basic = 1, Standard = 2, Advanced = 3, } [Route("/healthcheck", "GET")] public partial 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")] public virtual ExecutionMode ExecutionMode { get; set; } /// ///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 virtual ServerType ServerType { get; set; } /// ///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 virtual bool IncludeServerStateInformation { 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. /// [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 virtual bool SuppressErrorCodes { get; set; } /// ///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 virtual bool SuppressDeploymentErrors { get; set; } } public partial class HealthCheckResponse { public HealthCheckResponse() { MonitorSummaries = new List{}; } public virtual ServerState ServerState { get; set; } public virtual MonitoringStatus Status { get; set; } public virtual string StatusMessage { get; set; } public virtual string CorrelationId { get; set; } public virtual int FailedMonitorCount { get; set; } public virtual List MonitorSummaries { get; set; } public virtual MonitorExecutionMetrics ExecutionMetrics { get; set; } } public partial class MonitorExecutionMetrics { public virtual DateTime StartDateTime { get; set; } public virtual DateTime EndDateTime { get; set; } public virtual TimeSpan Duration { get; set; } } public partial class MonitoringResult { public MonitoringResult() { ErrorMessages = new List{}; } public virtual string MonitoringName { get; set; } public virtual MonitoringStatus Status { get; set; } public virtual string StatusMessage { get; set; } public virtual List ErrorMessages { get; set; } } public enum MonitoringStatus { Success = 1, Failure = 2, } public partial class MonitorSummary { public MonitorSummary() { Results = new List{}; ErrorMessages = new List{}; } public virtual string MonitorName { get; set; } public virtual MonitoringStatus Status { get; set; } public virtual List Results { get; set; } public virtual List ErrorMessages { get; set; } } public partial class ServerState { public virtual string ServerName { get; set; } public virtual decimal? TotalRamInMb { get; set; } public virtual decimal? AvailableRamInMb { get; set; } public virtual decimal? UsedCpuPercent { get; set; } } public 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, } }