mirror of
https://github.com/home-assistant/developers.home-assistant.git
synced 2025-07-16 13:56:29 +00:00
API calls for the check management (#847)
Co-authored-by: Joakim Sørensen <joasoe@gmail.com>
This commit is contained in:
parent
1221ccae4d
commit
137ba0a553
@ -1681,6 +1681,7 @@ Update Home Assistant OS
|
||||
| unhealthy | list | A list of reasons why a installation is marked as unhealthy (docker, supervisor, privileged, setup) |
|
||||
| issues | list | A list of [Issue models](api/supervisor/models.md#issues) |
|
||||
| suggestions | list | A list of [Suggestion models](api/supervisor/models.md#suggestion) actions |
|
||||
| checks | list | A list of [Check models](api/supervisor/models.md#check) |
|
||||
|
||||
**Example response:**
|
||||
|
||||
@ -1703,6 +1704,12 @@ Update Home Assistant OS
|
||||
"context": "system",
|
||||
"reference": null
|
||||
}
|
||||
],
|
||||
"checks": [
|
||||
{
|
||||
"slug": "free_space",
|
||||
"enabled": true
|
||||
}
|
||||
]
|
||||
}
|
||||
```
|
||||
@ -1733,6 +1740,24 @@ Execute a healthcheck and autofix & notifcation.
|
||||
|
||||
</ApiEndpoint>
|
||||
|
||||
<ApiEndpoint path="/resolution/check/<slug>/options" method="post">
|
||||
|
||||
Set options for this check.
|
||||
|
||||
**Payload:**
|
||||
|
||||
| key | type | description |
|
||||
| ------- | ------ | -------------------------------------------------------------- |
|
||||
| enabled | bool | If the check should be enabled or disabled |
|
||||
|
||||
</ApiEndpoint>
|
||||
|
||||
<ApiEndpoint path="/resolution/check/<slug>/run" method="post">
|
||||
|
||||
Execute a specific check right now.
|
||||
|
||||
</ApiEndpoint>
|
||||
|
||||
### Service
|
||||
|
||||
<ApiEndpoint path="/services" method="get">
|
||||
|
@ -222,6 +222,13 @@ These models are describing objects that are getting returned from the superviso
|
||||
| context | str | In which context the suggestion occorse |
|
||||
| reference | str or null | Depend on the Context, a reference to a other Model |
|
||||
|
||||
## Check
|
||||
|
||||
| key | type | description |
|
||||
| ----------| ----------- | --------------------------------------------------- |
|
||||
| slug | str | A generated slug for the check |
|
||||
| enable | bool | The enabled state of the check |
|
||||
|
||||
## Device
|
||||
|
||||
| key | type | description |
|
||||
|
Loading…
x
Reference in New Issue
Block a user