abacusai.refresh_policy

Classes

FeatureGroupExportConfig

An abstract class for feature group exports.

FeatureGroupRefreshExportConfig

A Feature Group Refresh Export Config outlines the export configuration for a feature group.

AbstractApiClass

RefreshPolicy

A Refresh Policy describes the frequency at which one or more datasets/models/deployments/batch_predictions can be updated.

Module Contents

class abacusai.refresh_policy.FeatureGroupExportConfig

Bases: abacusai.api_class.abstract.ApiClass

An abstract class for feature group exports.

connector_type: abacusai.api_class.enums.ConnectorType
classmethod _get_builder()
class abacusai.refresh_policy.FeatureGroupRefreshExportConfig(client, connectorType=None, location=None, exportFileFormat=None, additionalIdColumns=None, databaseFeatureMapping=None, externalConnectionId=None, idColumn=None, objectName=None, writeMode=None)

Bases: abacusai.return_class.AbstractApiClass

A Feature Group Refresh Export Config outlines the export configuration for a feature group.

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

  • connectorType (str) – The type of connector the feature group is

  • location (str) – The file connector location of the feature group export

  • exportFileFormat (str) – The file format of the feature group export

  • additionalIdColumns (list) – Additional id columns to use for upsert operations

  • databaseFeatureMapping (dict) – The mapping of feature names to database columns

  • externalConnectionId (str) – The unique identifier of the external connection to write to

  • idColumn (str) – The column to use as the id column for upsert operations

  • objectName (str) – The name of the object to write to

  • writeMode (str) – The write mode to use for the export

__repr__()

Return repr(self).

to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict

class abacusai.refresh_policy.AbstractApiClass(client, id)
__eq__(other)

Return self==value.

_get_attribute_as_dict(attribute)
class abacusai.refresh_policy.RefreshPolicy(client, refreshPolicyId=None, name=None, cron=None, nextRunTime=None, createdAt=None, refreshType=None, projectId=None, datasetIds=None, featureGroupId=None, modelIds=None, deploymentIds=None, batchPredictionIds=None, modelMonitorIds=None, notebookId=None, paused=None, predictionOperatorId=None, pipelineId=None, featureGroupExportConfig={})

Bases: abacusai.return_class.AbstractApiClass

A Refresh Policy describes the frequency at which one or more datasets/models/deployments/batch_predictions can be updated.

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

  • refreshPolicyId (str) – The unique identifier for the refresh policy

  • name (str) – The user-friendly name for the refresh policy

  • cron (str) – A cron-style string that describes when this refresh policy is to be executed in UTC

  • nextRunTime (str) – The next UTC time that this refresh policy will be executed

  • createdAt (str) – The time when the refresh policy was created

  • refreshType (str) – The type of refresh policy to be run

  • projectId (str) – The unique identifier of a project that this refresh policy applies to

  • datasetIds (list[str]) – Comma-separated list of Dataset IDs that this refresh policy applies to

  • featureGroupId (str) – Feature Group ID that this refresh policy applies to

  • modelIds (list[str]) – Comma-separated list of Model IDs that this refresh policy applies to

  • deploymentIds (list[str]) – Comma-separated list of Deployment IDs that this refresh policy applies to

  • batchPredictionIds (list[str]) – Comma-separated list of Batch Prediction IDs that this refresh policy applies to

  • modelMonitorIds (list[str]) – Comma-separated list of Model Monitor IDs that this refresh policy applies to

  • notebookId (str) – Notebook ID that this refresh policy applies to

  • paused (bool) – True if the refresh policy is paused

  • predictionOperatorId (str) – Prediction Operator ID that this refresh policy applies to

  • pipelineId (str) – The Pipeline ID With The Cron Schedule

  • featureGroupExportConfig (FeatureGroupRefreshExportConfig) – The export configuration for the feature group. Only applicable if refresh_type is FEATUREGROUP.

__repr__()

Return repr(self).

to_dict()

Get a dict representation of the parameters in this class

Returns:

The dict value representation of the class parameters

Return type:

dict

delete()

Delete a refresh policy.

Parameters:

refresh_policy_id (str) – Unique string identifier associated with the refresh policy to delete.

refresh()

Calls describe and refreshes the current object’s fields

Returns:

The current object

Return type:

RefreshPolicy

describe()

Retrieve a single refresh policy

Parameters:

refresh_policy_id (str) – The unique ID associated with this refresh policy.

Returns:

An object representing the refresh policy.

Return type:

RefreshPolicy

list_refresh_pipeline_runs()

List the the times that the refresh policy has been run

Parameters:

refresh_policy_id (str) – Unique identifier associated with the refresh policy.

Returns:

List of refresh pipeline runs for the given refresh policy ID.

Return type:

list[RefreshPipelineRun]

pause()

Pauses a refresh policy

Parameters:

refresh_policy_id (str) – Unique identifier associated with the refresh policy to be paused.

resume()

Resumes a refresh policy

Parameters:

refresh_policy_id (str) – The unique ID associated with this refresh policy.

run()

Force a run of the refresh policy.

Parameters:

refresh_policy_id (str) – Unique string identifier associated with the refresh policy to be run.

update(name=None, cron=None, feature_group_export_config=None)

Update the name or cron string of a refresh policy

Parameters:
  • name (str) – Name of the refresh policy to be updated.

  • cron (str) – Cron string describing the schedule from the refresh policy to be updated.

  • feature_group_export_config (FeatureGroupExportConfig) – Feature group export configuration to update a feature group refresh policy.

Returns:

Updated refresh policy.

Return type:

RefreshPolicy