Skip to content

msaUtils Module

.models.health


Healthcheck Pydantic Models

Classes

MSAHealthDefinition

Bases: BaseModel

Health Service Definition

Attributes

enabled class-attribute
enabled: bool = True

Is the healtcheck enabled True/False

interval class-attribute
interval: Optional[int] = 60

Interval the Healtchcheck Thread sleeps and checks

path class-attribute
path: str = '/healthcheck'

Path in URL for the API

MSAHealthMessage

Bases: BaseModel

Health Pydantic Response Service Message

Attributes

error class-attribute
error: Optional[str]
healthy class-attribute
healthy: bool = False
message class-attribute
message: Optional[str]

Last update: September 24, 2022
Created: September 24, 2022