ray/dashboard/modules/snapshot/component_activities_schema.json
Nikita Vemuri 56716a1c1b
[dashboard] Add RAY_CLUSTER_ACTIVITY_HOOK to /api/component_activities (#26297)
Add external hook to /api/component_activities endpoint in dashboard snapshot router
Change is_active field of RayActivityResponse to take an enum RayActivityStatus instead of bool. This is a backward incompatible change, but should be ok because [dashboard] Add component_activities API #25996 wasn't included in any branch cuts. RayActivityResponse now supports informing when there was an error getting the activity observation and the reason.
2022-07-08 10:51:59 -07:00

31 lines
664 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",
"null"
]
}
},
"required": [
"is_active"
]
}
}
}