whylogs.api.writer.whylabs_base#

Module Contents#

Classes#

WhyLabsWriterBase

Base class for WhyLabs writers

Attributes#

whylogs.api.writer.whylabs_base.FIVE_MINUTES_IN_SECONDS#
whylogs.api.writer.whylabs_base.DAY_IN_SECONDS#
whylogs.api.writer.whylabs_base.FIVE_YEARS_IN_SECONDS#
whylogs.api.writer.whylabs_base.logger#
class whylogs.api.writer.whylabs_base.WhyLabsWriterBase(org_id: Optional[str] = None, api_key: Optional[str] = None, dataset_id: Optional[str] = None, api_client: Optional[whylabs_client.ApiClient] = None, ssl_ca_cert: Optional[str] = None, _timeout_seconds: Optional[float] = None, whylabs_client: Optional[whylogs.api.writer.whylabs_client.WhyLabsClient] = None)#

Bases: whylogs.api.writer.writer.Writer

Base class for WhyLabs writers

Parameters
property key_id: str#
Return type

str

transaction_status() Dict[str, Any]#
Return type

Dict[str, Any]

check_interval(interval_seconds: int) None#
Parameters

interval_seconds (int) –

Return type

None

option(**kwargs) whylogs.api.writer.writer.Writer#
Parameters
  • ID (org_id the organization) –

  • Id (dataset_id the dataset) –

  • key (api_key the API) –

  • profile (reference_profile_name the name of the reference) –

  • client (configuration the additional configuration for the REST) –

  • transaction (transaction_id to ID of currently active) –

  • org_id (Optional[str] = None,) –

  • dataset_id (Optional[str] = None,) –

  • api_key (Optional[str] = None,) –

  • reference_profile_name (Optional[str] = None,) –

  • configuration (Optional[Configuration] = None,) –

  • transaction_id (Optional[str] = None,) –

  • ssl_ca_cert (Optional[str] = None,) –

  • api_client (Optional[ApiClient] = None,) –

  • timeout_seconds (Optional[float] = None,) –

  • prefer_sync (Optional[bool] = None,) –

  • configured (Returns a "WhyLabsWriter" with these options) –

  • -------

Return type

whylogs.api.writer.writer.Writer