/* Options: Date: 2024-12-03 09:39:26 Version: 6.00 Tip: To override a DTO option, remove "//" prefix before updating BaseUrl: https://resourcelibrary.api.ashcompanies.com //Package: //GlobalNamespace: dtos //AddPropertyAccessors: True //SettersReturnThis: True //AddServiceStackTypes: True //AddResponseStatus: False //AddDescriptionAsComments: True //AddImplicitVersion: IncludeTypes: HealthCheckRequest.* //ExcludeTypes: //TreatTypesAsStrings: //DefaultImports: java.math.*,java.util.*,net.servicestack.client.* */ import java.math.*; import java.util.*; import net.servicestack.client.*; public class dtos { @Route("/health") public static class HealthCheckRequest implements IReturn { private static Object responseType = HealthReport.class; public Object getResponseType() { return responseType; } } @DataContract public static class HealthReport { @DataMember public IReadOnlyDictionary entries = null; @DataMember public HealthStatus applicationStatus = null; @DataMember public TimeSpan duration = null; public IReadOnlyDictionary getEntries() { return entries; } public HealthReport setEntries(IReadOnlyDictionary value) { this.entries = value; return this; } public HealthStatus getApplicationStatus() { return applicationStatus; } public HealthReport setApplicationStatus(HealthStatus value) { this.applicationStatus = value; return this; } public TimeSpan getDuration() { return duration; } public HealthReport setDuration(TimeSpan value) { this.duration = value; return this; } } @DataContract public static class HealthReportEntry { @DataMember public HealthStatus status = null; @DataMember public String description = null; @DataMember public TimeSpan duration = null; @DataMember public Exception exception = null; @DataMember public IReadOnlyDictionary data = null; public HealthStatus getStatus() { return status; } public HealthReportEntry setStatus(HealthStatus value) { this.status = value; return this; } public String getDescription() { return description; } public HealthReportEntry setDescription(String value) { this.description = value; return this; } public TimeSpan getDuration() { return duration; } public HealthReportEntry setDuration(TimeSpan value) { this.duration = value; return this; } public Exception getException() { return exception; } public HealthReportEntry setException(Exception value) { this.exception = value; return this; } public IReadOnlyDictionary getData() { return data; } public HealthReportEntry setData(IReadOnlyDictionary value) { this.data = value; return this; } } @Flags() @DataContract public static enum HealthStatus { @SerializedName("0") Healthy(0), @SerializedName("4") Degraded(4), @SerializedName("8") Unhealthy(8); private final int value; HealthStatus(final int intValue) { value = intValue; } public int getValue() { return value; } } }