{
  "schema_version": "1.0",
  "organization": "p2-data-lab",
  "portal": "p2-data-warehouse-finops-calc",
  "live_meta_url": "https://p2-data-warehouse-finops-calc.pages.dev/data/meta.json",
  "openapi_url": "https://p2-data-warehouse-finops-calc.pages.dev/openapi.json",
  "public_datasets": [
    "https://p2-data-warehouse-finops-calc.pages.dev/data/engine-billing-mechanics.json",
    "https://p2-data-warehouse-finops-calc.pages.dev/data/warehouse-lakehouse-skus.json"
  ],
  "calculator_inputs_schema": {
    "compressed_logical_tb": {
      "label": "Compressed Parquet / Native Table Volume (TB)",
      "type": "number",
      "default": 45,
      "min": 0.5,
      "max": 50000
    },
    "compression_expansion_ratio": {
      "label": "Uncompressed-to-Compressed Columnar Ratio (impacts BigQuery logical scan/storage)",
      "type": "number",
      "default": 4.5,
      "min": 1.5,
      "max": 12
    },
    "daily_cdc_churn_pct": {
      "label": "Daily Table Row Churn / MERGE Upsert Share (% — drives Time-Travel & Fail-Safe bloat)",
      "type": "number",
      "default": 8,
      "min": 0,
      "max": 100
    },
    "time_travel_days": {
      "label": "Configured Time-Travel Retention Window (Days, +7d mandatory Fail-Safe on Standard tables)",
      "type": "number",
      "default": 7,
      "min": 0,
      "max": 90
    },
    "daily_bi_queries": {
      "label": "Daily BI / Dashboard & Ad-Hoc Queries",
      "type": "number",
      "default": 12000,
      "min": 10,
      "max": 5000000
    },
    "avg_tb_scanned_per_query_compressed": {
      "label": "Mean Compressed Partition-Pruned Data Scanned per Query (GB)",
      "type": "number",
      "default": 3.2,
      "min": 0.05,
      "max": 5000
    },
    "query_arrival_burst_pattern": {
      "label": "BI Query Arrival Pattern (governs Auto-Suspend Idle Waste)",
      "type": "select",
      "default": "BUSINESS_HOURS_10H_STEADY",
      "options": [
        "CONTINUOUS_24X7_PINGING",
        "BUSINESS_HOURS_10H_STEADY",
        "BATCH_HOURLY_WINDOWS_10MIN"
      ]
    },
    "auto_suspend_seconds": {
      "label": "Warehouse Auto-Suspend Timeout (Seconds: 60s optimal vs 300s/600s default)",
      "type": "select",
      "default": 300,
      "options": [
        60,
        120,
        300,
        600
      ]
    },
    "daily_dbt_etl_compute_hours": {
      "label": "Daily Scheduled dbt / Spark Transformation Compute Hours (Medium / 16-vCPU equiv)",
      "type": "number",
      "default": 14,
      "min": 0.5,
      "max": 500
    },
    "snowflake_edition": {
      "label": "Target Security/Compliance Tier",
      "type": "select",
      "default": "ENTERPRISE_EDITION",
      "options": [
        "STANDARD_EDITION",
        "ENTERPRISE_EDITION",
        "BUSINESS_CRITICAL_HIPAA_PRIVATELINK"
      ]
    }
  },
  "formulas_summary": {
    "retained_time_travel_failsafe_tb": "TB_billed_storage = compressed_logical_tb * (1 + (daily_cdc_churn_pct / 100) * (time_travel_days + 7_failsafe))",
    "snowflake_monthly_cost": "Active_Hours_BI = Effective_Uptime_With_Idle_Tail(query_arrival_burst_pattern, auto_suspend_seconds); Credits_mo = (Active_Hours_BI * Credits_Hr_BI + 30 * daily_dbt_etl_compute_hours * Credits_Hr_ETL) * 1.04_cloud_services_adj; Cost_SF = Credits_mo * Credit_Price(snowflake_edition) + TB_billed_storage * r_sf_tb_mo",
    "bigquery_ondemand_vs_editions": "TiB_uncompressed_scanned_mo = max(0, (30 * daily_bi_queries * avg_tb_scanned_per_query_compressed / 1024) * compression_expansion_ratio - 1.0_free_tib); Cost_BQ_OD = TiB_uncompressed_scanned_mo * r_bq_ondemand_tib + Storage_BQ; Cost_BQ_Editions = Slot_Hours_Autoscale * r_bq_slot_hr(snowflake_edition) + Storage_BQ_Physical",
    "databricks_photon_lakehouse": "Cost_DBX = 30 * daily_dbt_etl_compute_hours * (DBU_per_hr_Jobs * r_dbu_jobs + VM_Infrastructure_hr) + Active_Hours_BI * (DBU_per_hr_SQL_Serverless * r_dbu_sql) + compressed_logical_tb * 1024 * r_s3_adls_iceberg_gb",
    "redshift_serverless_and_athena": "Cost_Redshift = RPU_Hours_mo * r_redshift_rpu_hr + Managed_Storage_RMS_TB * r_rms_tb; Cost_Athena_Iceberg = (30 * daily_bi_queries * max(0.00001, avg_tb_scanned_per_query_compressed / 1024)) * r_athena_tb + compressed_logical_tb * 1024 * r_s3_gb"
  },
  "pro_api_endpoint": "https://p2-core-api.evsmtoken.workers.dev/v1/pro/p2-data-warehouse-finops-calc/dataset",
  "auth_header": "Authorization: Bearer <POLAR_LICENSE_KEY>",
  "purchase_tiers": [
    {
      "sku_key": "warehouse_lakehouse_sku_dataset",
      "name": "Cloud Warehouse & Lakehouse Live SKU Dataset",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": ""
    },
    {
      "sku_key": "warehouse_query_log_pro_license",
      "name": "Warehouse FinOps Pro API & Query Audit Key",
      "price_usd": null,
      "billing": "month",
      "checkout_url": ""
    },
    {
      "sku_key": "head_of_data_finops_pack",
      "name": "Head of Data FinOps & Iceberg Migration Pack",
      "price_usd": null,
      "billing": "one_time",
      "checkout_url": ""
    }
  ],
  "master_all_portals_pass": {
    "master_all_portals_pro_monthly": {
      "product_id": "18e0b844-b764-41f0-9c3d-186362784997",
      "name": "All-Portals Master Pro API & Batch CSV License Key (Monthly)",
      "price_usd": 79,
      "billing": "monthly",
      "checkout_url": "https://buy.polar.sh/polar_cl_0P1axu2nXEDXECK8Z0k7I3sMndeo3hsdqpepv1LUcJT"
    },
    "enterprise_annual_data_pass": {
      "product_id": "8a5266eb-3aaf-4fb3-9aef-0e5bbfd17dc3",
      "name": "Annual Enterprise FinOps & Compliance Data Pass (All Portals)",
      "price_usd": 499,
      "billing": "yearly",
      "checkout_url": "https://buy.polar.sh/polar_cl_SPWfsAxuQAVHif3soxwqbq5zPAdNZFkN5CtQK3cZRft"
    }
  }
}