{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/microsoft-azure-advisor/json-schema/microsoft-azure-advisor-resiliency-review-schema.json",
  "title": "resiliencyReview",
  "description": "The Advisor resiliency review data structure.",
  "x-generated": "2026-11-12",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/microsoft-azure-advisor-resiliencyreviews-api-openapi.yml#/components/schemas/resiliencyReview",
  "type": "object",
  "properties": {
    "properties": {
      "$ref": "#/$defs/ResiliencyReviewProperties",
      "description": "Advisor resiliency review properties.",
      "x-ms-client-flatten": true
    }
  },
  "allOf": [
    {
      "$ref": "#/$defs/ProxyResource"
    }
  ],
  "$defs": {
    "ProxyResource": {
      "type": "object",
      "title": "Proxy Resource",
      "description": "The resource model definition for a Azure Resource Manager proxy resource. It will not have tags and a location",
      "allOf": [
        {
          "$ref": "#/$defs/Resource"
        }
      ]
    },
    "ResiliencyReviewProperties": {
      "type": "object",
      "description": "Resiliency review properties.",
      "properties": {
        "reviewName": {
          "type": "string",
          "description": "Review name.",
          "readOnly": true
        },
        "workloadName": {
          "type": "string",
          "description": "Workload Name.",
          "readOnly": true
        },
        "reviewStatus": {
          "$ref": "#/$defs/ReviewStatus",
          "description": "Review status.",
          "readOnly": true
        },
        "recommendationsCount": {
          "type": "integer",
          "format": "int32",
          "description": "Review recommendations count.",
          "readOnly": true
        },
        "publishedAt": {
          "type": "string",
          "description": "Review last updated timestamp.",
          "readOnly": true
        },
        "updatedAt": {
          "type": "string",
          "description": "Review last updated timestamp.",
          "readOnly": true
        }
      }
    },
    "Resource": {
      "type": "object",
      "title": "Resource",
      "description": "Common fields that are returned in the response for all Azure Resource Manager resources",
      "properties": {
        "id": {
          "type": "string",
          "format": "arm-id",
          "description": "Fully qualified resource ID for the resource. E.g. \"/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/{resourceProviderNamespace}/{resourceType}/{resourceName}\"",
          "readOnly": true
        },
        "name": {
          "type": "string",
          "description": "The name of the resource",
          "readOnly": true
        },
        "type": {
          "type": "string",
          "description": "The type of the resource. E.g. \"Microsoft.Compute/virtualMachines\" or \"Microsoft.Storage/storageAccounts\"",
          "readOnly": true
        },
        "systemData": {
          "$ref": "#/$defs/systemData",
          "type": "object",
          "description": "Azure Resource Manager metadata containing createdBy and modifiedBy information.",
          "readOnly": true
        }
      },
      "x-ms-azure-resource": true
    },
    "ReviewStatus": {
      "type": "string",
      "description": "Review status.",
      "enum": [
        "New",
        "InProgress",
        "Completed"
      ],
      "x-ms-enum": {
        "name": "ReviewStatus",
        "modelAsString": true,
        "values": [
          {
            "name": "New",
            "value": "New",
            "description": "The review has been newly created."
          },
          {
            "name": "InProgress",
            "value": "InProgress",
            "description": "The review is currently in progress."
          },
          {
            "name": "Completed",
            "value": "Completed",
            "description": "The review has been completed."
          }
        ]
      }
    }
  }
}