API referenceresources

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() -> Any

List the Signals configurations that could not be delivered.

Returns

  • Any: The API's JSON response.

repair()

repair(request: JsonObject | None = None) -> Any

Retry delivering undeliverable Signals configurations.

Parameters

NameTypeDefaultDescription
requestJsonObject | NoneNoneOptional 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,
) -> Any

Send a request to the Signals API through the Ovok gateway.

Parameters

NameTypeDefaultDescription
methodLiteral['GET', 'POST', 'PUT', 'PATCH', 'DELETE']HTTP method.
pathlist[str]Path segments under the Signals API, such as ["patient"].
queryQueryParams | NoneNoneQuery parameters; a list value repeats its parameter.
bodyAnyNoneJSON 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) -> Any

Enable Signals monitoring for a patient.

Parameters

NameTypeDefaultDescription
patient_idstrThe Patient's ID.

Returns

  • Any: The API's JSON response.

Last updated on

On this page