mirror of
https://github.com/vale981/ray
synced 2025-03-06 10:31:39 -05:00

Update cluster_activities endpoint to use pydantic so we have better data validation. Make timestamp a required field. Add pydantic to ray[default] requirements
23 lines
569 B
JSON
23 lines
569 B
JSON
{
|
|
"$schema": "http://json-schema.org/draft-07/schema#",
|
|
"$id": "http://github.com/ray-project/ray/dashboard/modules/snapshot/component_activities_schema.json",
|
|
"type": "object",
|
|
"patternProperties": {
|
|
"[0-9a-f]*": {
|
|
"type": "object",
|
|
"properties": {
|
|
"is_active": {
|
|
"type": "string",
|
|
"enum": ["ACTIVE", "INACTIVE", "ERROR"]
|
|
},
|
|
"reason": {
|
|
"type": ["string", "null"]
|
|
},
|
|
"timestamp": {
|
|
"type": ["number"]
|
|
}
|
|
},
|
|
"required": ["is_active"]
|
|
}
|
|
}
|
|
}
|