HealthChecks¶
- class baseten.client.modelconfig.HealthChecks(*, restart_check_delay_seconds=None, restart_threshold_seconds=None, stop_traffic_threshold_seconds=None, startup_threshold_seconds=None, **extra_data)¶
Bases:
BaseModel- Parameters:
restart_check_delay_seconds (Annotated[int | None, FieldInfo(annotation=NoneType, required=True, title='Restart Check Delay Seconds', description='The delay in seconds before starting restart checks. Defaults to platform-determined value when not set.')])
restart_threshold_seconds (Annotated[int | None, FieldInfo(annotation=NoneType, required=True, title='Restart Threshold Seconds', description='The time in seconds after which an unhealthy instance is restarted. Defaults to platform-determined value when not set.')])
stop_traffic_threshold_seconds (Annotated[int | None, FieldInfo(annotation=NoneType, required=True, title='Stop Traffic Threshold Seconds', description='The time in seconds after which traffic is stopped to an unhealthy instance. Defaults to platform-determined value when not set.')])
startup_threshold_seconds (Annotated[int | None, FieldInfo(annotation=NoneType, required=True, title='Startup Threshold Seconds', description='The time in seconds to wait for a model to start before marking it as unhealthy. Defaults to platform-determined value when not set.')])
extra_data (Any)
- model_config = {'extra': 'allow'}¶
Configuration for the model, should be a dictionary conforming to [ConfigDict][pydantic.config.ConfigDict].