Contract

Contract through the API

The Data Trust contract Nistor projects from the ODCS orders example (schema, freshness, volume and quality), written through the API.

Use it when You keep contracts in Nistor rather than in ODCS files, and want the same four promises on a table.

By The Nistor team

name: acme_orders
owner: data-team@example.com
status: active
asset_ids:
  - YOUR_ASSET_ID
dimensions:
  - dimension: schema
    expected_columns: [order_id, amount, ordered_at]
    allow_extra_columns: true
  - dimension: freshness
    sla_hours: 24
  - dimension: volume
    min_rows: 1000
  - dimension: quality
    min_pass_rate: 0.95
  1. Line 5the monitored asset of the orders table

Taken from packages/integrations/odcs/src/nistor_tool_odcs/services/trust_projection.py

The body of POST /api/v1/data-contracts (sent as JSON), with the four dimensions the ODCS import projects from the docs' orders contract: its three required columns, its 24-hour latency, its rowCount floor and, because it has an executable rule, a 95% pass rate. The comment is ours.

Every 30 minutes, Nistor checks each pair of asset and dimension. schema is measured from the node's columns and freshness from the health snapshots; volume and quality need data-quality results from the Enterprise Data quality module, and without it never breach. Changing a contract's dimensions cuts a new version.

Feeds fromGoogle Cloud

See your platform as one graph, on your laptop. Explore the demo estate, or book a walkthrough on one like yours.