{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/veritas-infoscale/json-schema/veritas-infoscale-resource-schema.json",
  "title": "Resource",
  "x-generated": "2026-11-10",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/veritas-infoscale-resources-api-openapi.yml#/components/schemas/Resource",
  "type": "object",
  "properties": {
    "name": {
      "type": "string",
      "description": "Resource name"
    },
    "type": {
      "type": "string",
      "description": "Resource type"
    },
    "state": {
      "type": "string",
      "description": "Current resource state",
      "enum": [
        "ONLINE",
        "OFFLINE",
        "FAULTED",
        "UNKNOWN"
      ]
    },
    "serviceGroup": {
      "type": "string",
      "description": "Parent service group"
    },
    "system": {
      "type": "string",
      "description": "System where resource is running"
    },
    "enabled": {
      "type": "boolean",
      "description": "Whether the resource is enabled"
    },
    "critical": {
      "type": "boolean",
      "description": "Whether the resource is critical to the group"
    },
    "attributes": {
      "type": "object",
      "description": "Resource-type-specific attributes",
      "additionalProperties": true
    }
  }
}