{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/okareo/json-schema/okareo-dashboard-scenario-trends-preview-request-schema.json",
  "title": "DashboardScenarioTrendsPreviewRequest",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/okareo-dashboards-api-openapi.yml#/components/schemas/DashboardScenarioTrendsPreviewRequest",
  "properties": {
    "scenario_id": {
      "type": "string",
      "format": "uuid",
      "title": "Scenario Id"
    },
    "check_ids": {
      "items": {
        "type": "string",
        "format": "uuid"
      },
      "type": "array",
      "minItems": 1,
      "title": "Check Ids"
    },
    "time_range": {
      "$ref": "#/$defs/TimeRange",
      "default": "LAST_30_DAYS"
    },
    "granularity": {
      "type": "string",
      "enum": [
        "hour",
        "day",
        "week"
      ],
      "title": "Granularity",
      "default": "day"
    }
  },
  "type": "object",
  "required": [
    "scenario_id",
    "check_ids"
  ],
  "$defs": {
    "TimeRange": {
      "type": "string",
      "enum": [
        "LAST_HOUR",
        "LAST_24_HOURS",
        "LAST_7_DAYS",
        "LAST_14_DAYS",
        "LAST_30_DAYS",
        "LAST_90_DAYS"
      ],
      "title": "TimeRange"
    }
  }
}