Persistence Paths

When a Data Reliability policy runs (Data Quality, Reconciliation, Drift, Freshness, Anomaly, etc.), ADOC writes detailed execution results and roll-up summaries to storage. Policy persistence paths let you control where those results land (for GOOD/BAD records, samples, and derived outputs) so you can plug them into downstream platforms, archives, or analytics.

Use these APIs when you want to:

  • Route policy outputs to a specific storage prefix (for example, a cloud bucket folder per domain or per policy type).

  • Turn result persistence on/off for GOOD/BAD rows or sample-only outputs without editing the policy definition itself.

  • Manage persistence centrally by policy ID or policy name, depending on how your team references policies.

Available Endpoints

ActionEndpointDescription
Get Persistence Configuration by IDGET /catalog-server/api/rules/persistence/:assetIdFetch persistence configuration for a specific policy by its numeric ID.
Create or Update Persistence ConfigurationPUT /catalog-server/api/rules/persistence/:assetIdCreate or update persistence configuration for a policy by ID.
Get Persistence Configuration by NameGET /catalog-server/api/rules/byName/:name/configurationFetch persistence configuration by policy name (useful when IDs vary by environment but names stay consistent).
Create or Update Persistence Configuration by NamePUT /catalog-server/api/rules/byName/:name/configurationCreate or update persistence configuration for a policy by name.

Path Parameters

NameTypeRequiredDescription
idintegerYesUnique identifier of the policy whose persistence configuration you want to fetch or update.
namestringYesHuman-readable policy name (for example, customers_dq_latency_policy) used to locate the policy when ID is not known.

Sample Requests

Fetch persistence configuration by Policy ID

Use this when you know the internal policy ID (for example, from the Policies listing or another API).

Bash
Copy

Create / update persistence configuration by Policy ID

Use this to turn on/off result persistence for GOOD/BAD rows and control the storage prefix for that policy.

Bash
Copy

Key fields in the request body:

  • persistentPathConfig.GOOD.storeResult – Whether to persist successful (GOOD) records.
  • persistentPathConfig.GOOD.sampleOnly – If true, only a sample of GOOD records is persisted.
  • persistentPathConfig.BAD.storeResult – Whether to persist failing (BAD) records.
  • persistentPathConfig.BAD.sampleOnly – If true, only a sample of BAD records is persisted.
  • persistentPathConfig.persistenceFolderPrefix – Prefix/path under your configured storage where all outputs for this policy will be written.

Fetch persistence configuration by Policy Name

Use this when your automation knows the policy by name instead of ID (for example, across dev/stage/prod where IDs differ).

Bash
Copy

This returns the current persistence configuration for the named policy.

Create / update persistence configuration by Policy Name

Bash
Copy

Using the name-based endpoints is especially handy in CI/CD pipelines, where policy names are stable but numeric IDs may differ across tenants or environments.

Type to search, ESC to discard
Type to search, ESC to discard
Type to search, ESC to discard