{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-advisor/json-schema/microsoft-azure-advisor-prediction-response-schema.json",
  "title": "PredictionResponse",
  "description": "Response used by predictions.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-advisor-subscriptions-api-openapi.yml#/components/schemas/PredictionResponse",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/PredictionResponseProperties",
      "description": "The properties of the prediction.",
      "x-ms-client-flatten": true
    }
  },
  "$defs": {
    "Category": {
      "type": "string",
      "description": "The category of the recommendation.",
      "enum": [
        "HighAvailability",
        "Security",
        "Performance",
        "Cost",
        "OperationalExcellence"
      ],
      "x-ms-enum": {
        "name": "Category",
        "modelAsString": true,
        "values": [
          {
            "name": "HighAvailability",
            "value": "HighAvailability"
          },
          {
            "name": "Security",
            "value": "Security"
          },
          {
            "name": "Performance",
            "value": "Performance"
          },
          {
            "name": "Cost",
            "value": "Cost"
          },
          {
            "name": "OperationalExcellence",
            "value": "OperationalExcellence"
          }
        ]
      }
    },
    "Impact": {
      "type": "string",
      "description": "The business impact of the recommendation.",
      "enum": [
        "High",
        "Medium",
        "Low"
      ],
      "x-ms-enum": {
        "name": "Impact",
        "modelAsString": true,
        "values": [
          {
            "name": "High",
            "value": "High"
          },
          {
            "name": "Medium",
            "value": "Medium"
          },
          {
            "name": "Low",
            "value": "Low"
          }
        ]
      }
    },
    "PredictionResponseProperties": {
      "type": "object",
      "description": "Properties of the prediction",
      "properties": {
        "extendedProperties": {
          "description": "Extended properties"
        },
        "predictionType": {
          "$ref": "#/$defs/PredictionType",
          "description": "Type of the prediction."
        },
        "category": {
          "$ref": "#/$defs/Category",
          "description": "The category of the recommendation."
        },
        "impact": {
          "$ref": "#/$defs/Impact",
          "description": "The business impact of the recommendation."
        },
        "impactedField": {
          "type": "string",
          "description": "The resource type identified by Advisor."
        },
        "lastUpdated": {
          "type": "string",
          "format": "date-time",
          "description": "The most recent time that Advisor checked the validity of the recommendation."
        },
        "shortDescription": {
          "$ref": "#/$defs/ShortDescription",
          "description": "A summary of the recommendation."
        }
      }
    },
    "PredictionType": {
      "type": "string",
      "description": "Type of the prediction.",
      "enum": [
        "PredictiveRightsizing"
      ],
      "x-ms-enum": {
        "name": "PredictionType",
        "modelAsString": true,
        "values": [
          {
            "name": "PredictiveRightsizing",
            "value": "PredictiveRightsizing"
          }
        ]
      }
    },
    "ShortDescription": {
      "type": "object",
      "description": "A summary of the recommendation.",
      "properties": {
        "problem": {
          "type": "string",
          "description": "The issue or opportunity identified by the recommendation and proposed solution."
        },
        "solution": {
          "type": "string",
          "description": "The issue or opportunity identified by the recommendation and proposed solution."
        }
      }
    }
  }
}