All Verbs | /health |
---|
Imports System
Imports System.Collections
Imports System.Collections.Generic
Imports System.Runtime.Serialization
Imports ServiceStack
Imports ServiceStack.DataAnnotations
Imports ASH.Services.HealthChecks.ServiceStack
Imports ASH.Services.HealthChecks.DTO
Imports ASH.Services.HealthChecks
Namespace Global
Namespace ASH.Services.HealthChecks
<Flags>
<DataContract>
Public Enum HealthStatus
Healthy = 0
Degraded = 4
Unhealthy = 8
End Enum
End Namespace
Namespace ASH.Services.HealthChecks.DTO
<DataContract>
Public Partial Class HealthReport
<DataMember>
Public Overridable Property Entries As IReadOnlyDictionary(Of String, HealthReportEntry)
<DataMember>
Public Overridable Property ApplicationStatus As HealthStatus
<DataMember>
Public Overridable Property Duration As TimeSpan
End Class
<DataContract>
Public Partial Class HealthReportEntry
<DataMember>
Public Overridable Property Status As HealthStatus
<DataMember>
Public Overridable Property Description As String
<DataMember>
Public Overridable Property Duration As TimeSpan
<DataMember>
Public Overridable Property Exception As Exception
<DataMember>
Public Overridable Property Data As IReadOnlyDictionary(Of String, Object)
End Class
End Namespace
Namespace ASH.Services.HealthChecks.ServiceStack
Public Partial Class HealthCheckRequest
End Class
End Namespace
End Namespace
VB.NET HealthCheckRequest DTOs
To override the Content-type in your clients, use the HTTP Accept Header, append the .csv suffix or ?format=csv
The following are sample HTTP requests and responses. The placeholders shown need to be replaced with actual values.
POST /health HTTP/1.1
Host: resourcelibrary.api.ashcompanies.com
Accept: text/csv
Content-Type: text/csv
Content-Length: length
{}
HTTP/1.1 200 OK Content-Type: text/csv Content-Length: length {Unable to show example output for type 'HealthReport' using the custom 'csv' filter}No parameterless constructor defined for this object.