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

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.
31 lines
664 B
JSON
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"
|
|
]
|
|
}
|
|
}
|
|
}
|