{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-cluster-node-details-schema.json",
  "title": "Node Details",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-clustermanager-api-openapi.yml#/components/schemas/clusterNodeDetails",
  "type": "object",
  "properties": {
    "node_name": {
      "type": "string"
    },
    "node_id": {
      "type": "string"
    },
    "node_parameters": {
      "$ref": "#/$defs/clusterNodeParameters"
    },
    "node_resource": {
      "$ref": "#/$defs/clusterResource"
    },
    "node_recommendation": {
      "$ref": "#/$defs/clusterNodeRecommendation"
    },
    "micro_service_list": {
      "$ref": "#/$defs/clusterMicroServiceList"
    },
    "vm_name": {
      "type": "string"
    },
    "vm_id": {
      "type": "string"
    },
    "vm_state": {
      "type": "string"
    }
  },
  "$defs": {
    "clusterAction": {
      "type": "object",
      "properties": {
        "action_name": {
          "type": "string"
        },
        "action_id": {
          "type": "string"
        }
      }
    },
    "clusterHealthState": {
      "type": "string",
      "enum": [
        "Healthy",
        "Degraded",
        "Down",
        "NA",
        "Unknown"
      ],
      "default": "Healthy"
    },
    "clusterMicroService": {
      "type": "object",
      "properties": {
        "Name": {
          "type": "string",
          "title": "Name of the Service"
        },
        "health_state": {
          "$ref": "#/$defs/clusterHealthState",
          "title": "Health of the Service"
        },
        "up_time": {
          "type": "string",
          "title": "Up time of the Service"
        },
        "recommendation": {
          "type": "string",
          "title": "Recommendation for this Service"
        },
        "description": {
          "type": "string",
          "title": "Description of this Service"
        },
        "micro_service_action": {
          "$ref": "#/$defs/clusterMicroServiceAction",
          "title": "Actions applicable on this microservice"
        }
      },
      "title": "Microservice"
    },
    "clusterMicroServiceAction": {
      "type": "object",
      "properties": {
        "actions": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/clusterAction"
          }
        }
      },
      "title": "Actions that can be done on a Microservice"
    },
    "clusterMicroServiceList": {
      "type": "object",
      "properties": {
        "micro_service": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/clusterMicroService"
          }
        }
      },
      "title": "List of Microservices"
    },
    "clusterNodeParameters": {
      "type": "object",
      "properties": {
        "status": {
          "type": "string",
          "title": "Status"
        },
        "availability": {
          "type": "string",
          "title": "High-Availablity status"
        },
        "type": {
          "type": "string",
          "title": "Type"
        },
        "size_profile": {
          "$ref": "#/$defs/clusterSizeProfile",
          "title": "Size Profile"
        },
        "host": {
          "type": "string",
          "title": "Hypervisor Details"
        },
        "data_store": {
          "type": "string"
        },
        "management_ip": {
          "type": "string",
          "title": "Network Details"
        },
        "data_ip": {
          "type": "string"
        }
      }
    },
    "clusterNodeRecommendation": {
      "type": "object",
      "properties": {
        "recommendation": {
          "type": "string"
        }
      }
    },
    "clusterResource": {
      "type": "object",
      "properties": {
        "cpu_summary": {
          "$ref": "#/$defs/clusterResourceSummary"
        },
        "memory_summary": {
          "$ref": "#/$defs/clusterResourceSummary"
        },
        "disk_summary": {
          "$ref": "#/$defs/clusterResourceSummary"
        },
        "last_updated_time": {
          "type": "string"
        }
      }
    },
    "clusterResourceSummary": {
      "type": "object",
      "properties": {
        "current_usage": {
          "type": "string"
        },
        "used": {
          "type": "string"
        },
        "total": {
          "type": "string"
        },
        "health_state": {
          "type": "string"
        }
      },
      "title": "Summary of Crosswork Resources"
    },
    "clusterSizeProfile": {
      "type": "object",
      "properties": {
        "cpu": {
          "type": "string"
        },
        "memory": {
          "type": "string"
        },
        "disk": {
          "type": "string"
        }
      }
    }
  }
}