ray.serve.schema.ApplicationStatus.to_numeric#
- ApplicationStatus.to_numeric() int[source]#
Convert status to numeric value for metrics, it serves state progression order on the dashboard.
0 is reserved for UNKNOWN. Values are ordered by severity/state progression: 0=UNKNOWN, 1=DEPLOY_FAILED, 2=UNHEALTHY, 3=NOT_STARTED, 4=DELETING, 5=DEPLOYING, 6=RUNNING