{
  "$id": "https://schemas.ump.dev/v1/fetch-record.json",
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "additionalProperties": false,
  "description": "What a run saw when it read a dataset (``POST /v1/datasets/{id}:materialize``). Run records and model\nlineage keep this record, never the rows of a ``transient_only`` dataset.",
  "properties": {
    "connection_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Connection Id"
    },
    "connector_stub": {
      "default": false,
      "title": "Connector Stub",
      "type": "boolean"
    },
    "copy_policy": {
      "default": "allowed",
      "enum": [
        "allowed",
        "transient_only",
        "aggregates_only"
      ],
      "title": "Copy Policy",
      "type": "string"
    },
    "dataset_id": {
      "title": "Dataset Id",
      "type": "string"
    },
    "dataset_version": {
      "anyOf": [
        {
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Dataset Version"
    },
    "drift": {
      "default": false,
      "title": "Drift",
      "type": "boolean"
    },
    "fetched_at": {
      "anyOf": [
        {
          "format": "date-time",
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Fetched At"
    },
    "fingerprint_registered": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "The dataset's sha256 at registration.",
      "title": "Fingerprint Registered"
    },
    "fingerprint_seen": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "description": "sha256 hex of what came back this time.",
      "title": "Fingerprint Seen"
    },
    "purpose_artifact_id": {
      "anyOf": [
        {
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Purpose Artifact Id"
    },
    "reachable": {
      "default": true,
      "title": "Reachable",
      "type": "boolean"
    },
    "rows": {
      "anyOf": [
        {
          "minimum": 0,
          "type": "integer"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Rows"
    },
    "source": {
      "default": "live",
      "enum": [
        "live",
        "stored",
        "cached_copy",
        "none"
      ],
      "title": "Source",
      "type": "string"
    },
    "storage": {
      "default": "stored",
      "enum": [
        "stored",
        "connected"
      ],
      "title": "Storage",
      "type": "string"
    },
    "use": {
      "anyOf": [
        {
          "enum": [
            "fit",
            "score",
            "side_modelling",
            "benchmark",
            "transform"
          ],
          "type": "string"
        },
        {
          "type": "null"
        }
      ],
      "default": null,
      "title": "Use"
    }
  },
  "required": [
    "dataset_id"
  ],
  "title": "FetchRecord",
  "type": "object"
}
