ovok_sdk.resources.signals
Signals enablement, the proxied Signals API and undeliverable-config repair.
- Stable unknown
- Release candidate since 0.1.0-rc.4
- Development since 0.1.0-dev.25+2ba84b0
Signals enablement, the proxied Signals API and undeliverable-config repair.
UndeliverableResource
UndeliverableResource(http: HttpClient)Signals configurations that could not be delivered; access it as ovok.signals.undeliverable.
list()
list() -> AnyList the Signals configurations that could not be delivered.
Returns
Any: The API's JSON response.
repair()
repair(request: JsonObject | None = None) -> AnyRetry delivering undeliverable Signals configurations.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
request | JsonObject | None | None | Optional repair options, sent as JSON. |
Returns
Any: The API's JSON response.
SignalsGatewayResource
SignalsGatewayResource(http: HttpClient)Proxies requests to the Signals API through Ovok; access it as ovok.signals.gateway.
request()
request(
method: Literal['GET', 'POST', 'PUT', 'PATCH', 'DELETE'],
path: list[str],
*,
query: QueryParams | None = None,
body: Any = None,
) -> AnySend a request to the Signals API through the Ovok gateway.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
method | Literal['GET', 'POST', 'PUT', 'PATCH', 'DELETE'] | HTTP method. | |
path | list[str] | Path segments under the Signals API, such as ["patient"]. | |
query | QueryParams | None | None | Query parameters; a list value repeats its parameter. |
body | Any | None | JSON request body. |
Returns
Any: The decoded JSON response.
Raises
OvokValidationError: A path segment is empty,.or.., or holds a slash or control character.
Examples
patients = ovok.signals.gateway.request("GET", ["patient"], query={"limit": 5})SignalsResource
SignalsResource(http: HttpClient)Signals monitoring for patients; created by Ovok, access it as ovok.signals.
Attributes gateway and undeliverable hold the proxied Signals API and repair routes.
enable()
enable(patient_id: str) -> AnyEnable Signals monitoring for a patient.
Parameters
| Name | Type | Default | Description |
|---|---|---|---|
patient_id | str | The Patient's ID. |
Returns
Any: The API's JSON response.
Last updated on