17 lines
523 B
Kotlin
17 lines
523 B
Kotlin
|
package com.cubetiqs.web.model.response
|
||
|
|
||
|
import io.swagger.v3.oas.annotations.media.Schema
|
||
|
|
||
|
@Schema(name = "HealthResponse", description = "HealthResponse")
|
||
|
data class HealthResponse(
|
||
|
@Schema(name = "status", description = "Status for the service")
|
||
|
val status: String,
|
||
|
) : BaseRequestModel {
|
||
|
companion object {
|
||
|
private const val STATUS_UP = "UP"
|
||
|
private const val STATUS_DOWN = "DOWN"
|
||
|
val UP get() = HealthResponse(STATUS_UP)
|
||
|
val DOWN get() = HealthResponse(STATUS_DOWN)
|
||
|
}
|
||
|
}
|