support-formatter-api/support_formatter/models/interface.py
Firq 3046b1ee7b
All checks were successful
/ backend-pylint (push) Successful in 17s
/ publish-artifacts (push) Successful in 8s
/ build-and-push-container (push) Successful in 1m19s
/ build-artifacts (push) Successful in 8s
/ release (push) Successful in 6s
Initial Version
2024-09-30 20:40:26 +02:00

20 lines
416 B
Python

from enum import Enum
import marshmallow as ma
class HealthStatus(Enum):
OK = 0
WARNING = 1
ERROR = 2
CRITICAL = 3
class HealthGet(ma.Schema):
alive_since = ma.fields.String()
alive_for = ma.fields.String()
status = ma.fields.Enum(HealthStatus, type=ma.fields.String)
class ApiVersionGet(ma.Schema):
version = ma.fields.String(example="0.1")
class OpenAPIGet(ma.Schema):
pass