{
 "guarded": {
  "arm": "guarded",
  "levels": [
   [
    "ops/sim_clock"
   ],
   [
    "raw/billing/customers",
    "raw/billing/invoices",
    "raw/billing/payment_events",
    "raw/billing/refund_events",
    "raw/billing/subscriptions",
    "raw/crm/accounts",
    "raw/crm/contacts",
    "raw/crm/opportunities",
    "raw/product/bookings",
    "raw/product/locations",
    "raw/product/staff"
   ],
   [
    "warehouse/stg_billing__customers",
    "warehouse/stg_billing__invoices",
    "warehouse/stg_billing__payment_events",
    "warehouse/stg_billing__refund_events",
    "warehouse/stg_billing__subscriptions",
    "warehouse/stg_crm__accounts",
    "warehouse/stg_crm__contacts",
    "warehouse/stg_crm__opportunities",
    "warehouse/stg_product__bookings",
    "warehouse/stg_product__locations",
    "warehouse/stg_product__staff"
   ],
   [
    "warehouse/int_account_billing",
    "warehouse/int_account_usage",
    "warehouse/mart_account_pipeline"
   ],
   [
    "warehouse/mart_account_scores"
   ],
   [
    "warehouse/mart_account_sync_hourly"
   ],
   [
    "sync/plan"
   ],
   [
    "sync/crm_sync"
   ]
  ],
  "nodes": {
   "raw/product/bookings": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "product",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/stg_billing__invoices": {
    "parents": [
     "raw/billing/invoices"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_stg_billing__invoices_invoice_id",
      "blocking": true,
      "description": ""
     },
     {
      "name": "unique_stg_billing__invoices_invoice_id",
      "blocking": true,
      "description": ""
     }
    ]
   },
   "warehouse/stg_crm__contacts": {
    "parents": [
     "raw/crm/contacts"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/stg_billing__customers": {
    "parents": [
     "raw/billing/customers"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/mart_account_pipeline": {
    "parents": [
     "warehouse/stg_crm__contacts",
     "warehouse/stg_crm__opportunities"
    ],
    "group": "warehouse",
    "checks": []
   },
   "raw/product/locations": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "product",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/stg_product__staff": {
    "parents": [
     "raw/product/staff"
    ],
    "group": "warehouse",
    "checks": []
   },
   "sync/crm_sync": {
    "parents": [
     "sync/plan"
    ],
    "group": "sync",
    "checks": []
   },
   "raw/billing/payment_events": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "raw/billing/invoices": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/int_account_billing": {
    "parents": [
     "ops/sim_clock",
     "warehouse/stg_billing__invoices",
     "warehouse/stg_billing__payment_events",
     "warehouse/stg_billing__subscriptions",
     "warehouse/stg_crm__accounts"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "accepted_values_int_account_billing_billing_status__current__past_due__canceled__no_billing_record",
      "blocking": true,
      "description": ""
     },
     {
      "name": "max_null_share_int_account_billing_billing_customer_id__0_01",
      "blocking": true,
      "description": ""
     }
    ]
   },
   "warehouse/int_account_usage": {
    "parents": [
     "ops/sim_clock",
     "warehouse/stg_product__bookings",
     "warehouse/stg_product__locations",
     "warehouse/stg_product__staff"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/stg_crm__opportunities": {
    "parents": [
     "raw/crm/opportunities"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/mart_account_scores": {
    "parents": [
     "ops/sim_clock",
     "warehouse/int_account_billing",
     "warehouse/int_account_usage"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_mart_account_scores_account_id",
      "blocking": true,
      "description": ""
     },
     {
      "name": "not_null_mart_account_scores_health_score",
      "blocking": true,
      "description": ""
     },
     {
      "name": "unique_mart_account_scores_account_id",
      "blocking": true,
      "description": ""
     },
     {
      "name": "value_between_mart_account_scores_health_score__100__0",
      "blocking": true,
      "description": ""
     }
    ]
   },
   "raw/billing/refund_events": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/stg_crm__accounts": {
    "parents": [
     "raw/crm/accounts"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_stg_crm__accounts_account_id",
      "blocking": true,
      "description": ""
     },
     {
      "name": "unique_stg_crm__accounts_account_id",
      "blocking": true,
      "description": ""
     }
    ]
   },
   "warehouse/stg_product__locations": {
    "parents": [
     "raw/product/locations"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/stg_billing__refund_events": {
    "parents": [
     "raw/billing/refund_events"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/stg_billing__subscriptions": {
    "parents": [
     "raw/billing/subscriptions"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_stg_billing__subscriptions_subscription_id",
      "blocking": true,
      "description": ""
     },
     {
      "name": "unique_stg_billing__subscriptions_subscription_id",
      "blocking": true,
      "description": ""
     }
    ]
   },
   "raw/crm/contacts": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "crm",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "raw/billing/customers": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "ops/sim_clock": {
    "parents": [],
    "group": "ops",
    "checks": []
   },
   "raw/crm/opportunities": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "crm",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/mart_account_sync_hourly": {
    "parents": [
     "warehouse/mart_account_scores"
    ],
    "group": "warehouse",
    "checks": []
   },
   "raw/product/staff": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "product",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "raw/billing/subscriptions": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/stg_product__bookings": {
    "parents": [
     "raw/product/bookings"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "no_future_rows_stg_product__bookings_starts_at__status_completed_",
      "blocking": true,
      "description": ""
     },
     {
      "name": "unique_stg_product__bookings_booking_id",
      "blocking": true,
      "description": ""
     }
    ]
   },
   "warehouse/stg_billing__payment_events": {
    "parents": [
     "raw/billing/payment_events"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_stg_billing__payment_events_event_id",
      "blocking": true,
      "description": ""
     },
     {
      "name": "unique_combination_stg_billing__payment_events_invoice_id__attempt",
      "blocking": true,
      "description": ""
     },
     {
      "name": "unique_stg_billing__payment_events_event_id",
      "blocking": true,
      "description": ""
     }
    ]
   },
   "sync/plan": {
    "parents": [
     "warehouse/mart_account_sync_hourly"
    ],
    "group": "sync",
    "checks": [
     {
      "name": "change_volume",
      "blocking": true,
      "description": "band changes within the breaker threshold"
     },
     {
      "name": "crm_readback",
      "blocking": true,
      "description": "every CRM value equals what the sync last confirmed writing"
     }
    ]
   },
   "raw/crm/accounts": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "crm",
    "checks": [
     {
      "name": "freshness",
      "blocking": true,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": true,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   }
  },
  "job": "hourly_sync",
  "schedule": "hourly_sync_schedule",
  "cron": "0 * * * *",
  "assets": 30,
  "checks": 41
 },
 "unguarded": {
  "arm": "unguarded",
  "levels": [
   [
    "ops/sim_clock"
   ],
   [
    "raw/billing/customers",
    "raw/billing/invoices",
    "raw/billing/payment_events",
    "raw/billing/refund_events",
    "raw/billing/subscriptions",
    "raw/crm/accounts",
    "raw/crm/contacts",
    "raw/crm/opportunities",
    "raw/product/bookings",
    "raw/product/locations",
    "raw/product/staff"
   ],
   [
    "warehouse/stg_billing__customers",
    "warehouse/stg_billing__invoices",
    "warehouse/stg_billing__payment_events",
    "warehouse/stg_billing__refund_events",
    "warehouse/stg_billing__subscriptions",
    "warehouse/stg_crm__accounts",
    "warehouse/stg_crm__contacts",
    "warehouse/stg_crm__opportunities",
    "warehouse/stg_product__bookings",
    "warehouse/stg_product__locations",
    "warehouse/stg_product__staff"
   ],
   [
    "warehouse/int_account_billing",
    "warehouse/int_account_usage",
    "warehouse/mart_account_pipeline"
   ],
   [
    "warehouse/mart_account_scores"
   ],
   [
    "warehouse/mart_account_sync_hourly"
   ],
   [
    "sync/plan"
   ],
   [
    "sync/crm_sync"
   ]
  ],
  "nodes": {
   "raw/product/bookings": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "product",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/stg_billing__invoices": {
    "parents": [
     "raw/billing/invoices"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_stg_billing__invoices_invoice_id",
      "blocking": false,
      "description": ""
     },
     {
      "name": "unique_stg_billing__invoices_invoice_id",
      "blocking": false,
      "description": ""
     }
    ]
   },
   "warehouse/stg_crm__contacts": {
    "parents": [
     "raw/crm/contacts"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/stg_billing__customers": {
    "parents": [
     "raw/billing/customers"
    ],
    "group": "warehouse",
    "checks": []
   },
   "sync/crm_sync": {
    "parents": [
     "sync/plan"
    ],
    "group": "sync",
    "checks": []
   },
   "warehouse/mart_account_pipeline": {
    "parents": [
     "warehouse/stg_crm__contacts",
     "warehouse/stg_crm__opportunities"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/stg_product__staff": {
    "parents": [
     "raw/product/staff"
    ],
    "group": "warehouse",
    "checks": []
   },
   "raw/product/locations": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "product",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "raw/billing/payment_events": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "raw/billing/invoices": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/int_account_billing": {
    "parents": [
     "ops/sim_clock",
     "warehouse/stg_billing__invoices",
     "warehouse/stg_billing__payment_events",
     "warehouse/stg_billing__subscriptions",
     "warehouse/stg_crm__accounts"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "accepted_values_int_account_billing_billing_status__current__past_due__canceled__no_billing_record",
      "blocking": false,
      "description": ""
     },
     {
      "name": "max_null_share_int_account_billing_billing_customer_id__0_01",
      "blocking": false,
      "description": ""
     }
    ]
   },
   "warehouse/int_account_usage": {
    "parents": [
     "ops/sim_clock",
     "warehouse/stg_product__bookings",
     "warehouse/stg_product__locations",
     "warehouse/stg_product__staff"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/stg_crm__opportunities": {
    "parents": [
     "raw/crm/opportunities"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/mart_account_scores": {
    "parents": [
     "ops/sim_clock",
     "warehouse/int_account_billing",
     "warehouse/int_account_usage"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_mart_account_scores_account_id",
      "blocking": false,
      "description": ""
     },
     {
      "name": "not_null_mart_account_scores_health_score",
      "blocking": false,
      "description": ""
     },
     {
      "name": "unique_mart_account_scores_account_id",
      "blocking": false,
      "description": ""
     },
     {
      "name": "value_between_mart_account_scores_health_score__100__0",
      "blocking": false,
      "description": ""
     }
    ]
   },
   "raw/billing/refund_events": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/stg_crm__accounts": {
    "parents": [
     "raw/crm/accounts"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_stg_crm__accounts_account_id",
      "blocking": false,
      "description": ""
     },
     {
      "name": "unique_stg_crm__accounts_account_id",
      "blocking": false,
      "description": ""
     }
    ]
   },
   "warehouse/stg_product__locations": {
    "parents": [
     "raw/product/locations"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/stg_billing__refund_events": {
    "parents": [
     "raw/billing/refund_events"
    ],
    "group": "warehouse",
    "checks": []
   },
   "warehouse/stg_billing__subscriptions": {
    "parents": [
     "raw/billing/subscriptions"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_stg_billing__subscriptions_subscription_id",
      "blocking": false,
      "description": ""
     },
     {
      "name": "unique_stg_billing__subscriptions_subscription_id",
      "blocking": false,
      "description": ""
     }
    ]
   },
   "raw/crm/contacts": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "crm",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "raw/billing/customers": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "ops/sim_clock": {
    "parents": [],
    "group": "ops",
    "checks": []
   },
   "raw/crm/opportunities": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "crm",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/mart_account_sync_hourly": {
    "parents": [
     "warehouse/mart_account_scores"
    ],
    "group": "warehouse",
    "checks": []
   },
   "raw/product/staff": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "product",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "raw/billing/subscriptions": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "billing",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   },
   "warehouse/stg_product__bookings": {
    "parents": [
     "raw/product/bookings"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "no_future_rows_stg_product__bookings_starts_at__status_completed_",
      "blocking": false,
      "description": ""
     },
     {
      "name": "unique_stg_product__bookings_booking_id",
      "blocking": false,
      "description": ""
     }
    ]
   },
   "warehouse/stg_billing__payment_events": {
    "parents": [
     "raw/billing/payment_events"
    ],
    "group": "warehouse",
    "checks": [
     {
      "name": "not_null_stg_billing__payment_events_event_id",
      "blocking": false,
      "description": ""
     },
     {
      "name": "unique_combination_stg_billing__payment_events_invoice_id__attempt",
      "blocking": false,
      "description": ""
     },
     {
      "name": "unique_stg_billing__payment_events_event_id",
      "blocking": false,
      "description": ""
     }
    ]
   },
   "sync/plan": {
    "parents": [
     "warehouse/mart_account_sync_hourly"
    ],
    "group": "sync",
    "checks": [
     {
      "name": "change_volume",
      "blocking": false,
      "description": "band changes within the breaker threshold"
     },
     {
      "name": "crm_readback",
      "blocking": false,
      "description": "every CRM value equals what the sync last confirmed writing"
     }
    ]
   },
   "raw/crm/accounts": {
    "parents": [
     "ops/sim_clock"
    ],
    "group": "crm",
    "checks": [
     {
      "name": "freshness",
      "blocking": false,
      "description": "last extract no more than 3 hours old (the declared freshness policy, on the simulated clock)"
     },
     {
      "name": "schema_contract",
      "blocking": false,
      "description": "landed columns equal the source contract"
     }
    ],
    "freshness_fail_hours": 3.0
   }
  },
  "job": "hourly_sync",
  "schedule": "hourly_sync_schedule",
  "cron": "0 * * * *",
  "assets": 30,
  "checks": 41
 }
}
