{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/amazon-forecast/refs/heads/main/json-schema/amazon-forecast-predictor-schema.json",
  "title": "Predictor",
  "description": "An Amazon Forecast ML predictor trained on a dataset group.",
  "type": "object",
  "properties": {
    "PredictorArn": {
      "type": "string",
      "description": "ARN of the predictor."
    },
    "PredictorName": {
      "type": "string",
      "description": "Name of the predictor."
    },
    "AlgorithmArn": {
      "type": "string",
      "description": "ARN of the algorithm used."
    },
    "ForecastHorizon": {
      "type": "integer",
      "description": "Number of time steps for the forecast."
    },
    "ForecastTypes": {
      "type": "array",
      "items": {
        "type": "string"
      },
      "description": "Quantiles to forecast (e.g., p10, p50, p90)."
    },
    "PerformAutoML": {
      "type": "boolean",
      "description": "Whether to auto-select the best algorithm."
    },
    "PerformHPO": {
      "type": "boolean",
      "description": "Whether to perform hyperparameter optimization."
    },
    "Status": {
      "type": "string",
      "description": "Status of the predictor."
    },
    "CreationTime": {
      "type": "string",
      "format": "date-time"
    },
    "LastModificationTime": {
      "type": "string",
      "format": "date-time"
    }
  },
  "required": [
    "PredictorName",
    "ForecastHorizon"
  ]
}