/* Options: Date: 2024-11-22 23:56:25 Version: 6.00 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com //GlobalNamespace: //MakePartial: True //MakeVirtual: True //MakeInternal: False //MakeDataContractsExtensible: 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 System.IO; using ASH.Services.HealthChecks.DTO; using ASH.Services.HealthChecks; using ASH.Services.HealthChecks.ServiceStack; namespace ASH.Services.HealthChecks { [Flags] [DataContract] public enum HealthStatus { Healthy = 0, Degraded = 4, Unhealthy = 8, } } namespace ASH.Services.HealthChecks.DTO { [DataContract] public partial class HealthReport { [DataMember] public virtual IReadOnlyDictionary Entries { get; set; } [DataMember] public virtual HealthStatus ApplicationStatus { get; set; } [DataMember] public virtual TimeSpan Duration { get; set; } } [DataContract] public partial class HealthReportEntry { [DataMember] public virtual HealthStatus Status { get; set; } [DataMember] public virtual string Description { get; set; } [DataMember] public virtual TimeSpan Duration { get; set; } [DataMember] public virtual Exception Exception { get; set; } [DataMember] public virtual IReadOnlyDictionary Data { get; set; } } } namespace ASH.Services.HealthChecks.ServiceStack { [Route("/health")] public partial class HealthCheckRequest : IReturn { } }