Contract

Freshness contract

An ODCS contract that gives a BigQuery table a 24-hour freshness target, bound to its node on the graph.

Use it when Consumers need a written freshness promise for a table, checked by Nistor.

By The Nistor team

apiVersion: v3.1.0
kind: DataContract
id: acme-orders
name: acme_orders
version: 1.0.0
status: active
domain: sales
description:
  purpose: One row per order, for finance reporting.
team:
  - username: data-team@example.com
    role: owner
schema:
  - name: orders
    physicalName: orders
    physicalType: table
    properties:
      - name: order_id
        physicalType: STRING
        logicalType: string
        required: true
        primaryKey: true
      - name: ordered_at
        physicalType: TIMESTAMP
        logicalType: date
        required: true
slaProperties:
  - property: latency
    value: 24
    unit: hours
    element: orders.ordered_at
customProperties:
  - property: nodeId
    value: BigqueryTable_acme-data-prod.sales.orders

Taken from docs/integrations/odcs.md

The latency SLA is the promise: a freshness target of 24 hours for the table. The nodeId custom property binds the contract to the BigQuery table on the graph. Import it through the ODCS API, or push it from CI with nistor odcs sync, and Nistor turns the SLA into the contract's freshness dimension, with a schema dimension for the two declared columns. Data Trust evaluates the contract every 30 minutes; when the freshness dimension breaches, it opens a contract breach and an incident, and the recovery resolves both.

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