abacusai.health_data_source

Classes

HealthDataSource

A connected Health data source (a wearable/device via Terra).

Module Contents

class abacusai.health_data_source.HealthDataSource(client, healthDataSourceId=None, provider=None, kind=None, status=None, errorDetail=None, connectedAt=None, lastSyncedAt=None, isLiveSync=None)

Bases: abacusai.return_class.AbstractApiClass

A connected Health data source (a wearable/device via Terra).

Parameters:
  • client (ApiClient) – An authenticated API Client instance

  • healthDataSourceId (id) – The ID of the data source.

  • provider (str) – Provider key (oura, fitbit, garmin, …).

  • kind (str) – wearable | nutrition | cgm.

  • status (str) – active | syncing | error | disconnected.

  • errorDetail (str) – Populated when status is ‘error’.

  • connectedAt (str) – When the source was connected.

  • lastSyncedAt (str) – Last successful sync time.

  • isLiveSync (bool) – Whether this source is refreshed by pulling the aggregator, as opposed to by not refreshable at all (a retired source, kept for its history). Not derivable from provider: an Apple Health row is live only once the iOS SDK has connected it, so clients must branch on this rather than on a hardcoded provider list.

health_data_source_id = None
provider = None
kind = None
status = None
error_detail = None
connected_at = None
last_synced_at = None
is_live_sync = None
deprecated_keys
__repr__()
to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict