{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotctl-api-health-apps-schema.json",
  "title": "Application Summary",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-crosswork-health-api-api-openapi.yml#/components/schemas/robotctl_apiHealthApps",
  "type": "object",
  "properties": {
    "Result": {
      "$ref": "#/$defs/robotctl_apiResultValue"
    },
    "Description": {
      "type": "string"
    },
    "AppList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/robotctl_apiappInfo"
      },
      "title": "List of application names/ids"
    }
  },
  "$defs": {
    "robotctl_apiResultValue": {
      "type": "string",
      "enum": [
        "NOOP",
        "SUCCESS",
        "FAILURE"
      ],
      "default": "NOOP"
    },
    "robotctl_apiRobotSvcState": {
      "type": "string",
      "enum": [
        "Unknown",
        "Down",
        "Running",
        "Degraded",
        "Deleted",
        "Failed"
      ],
      "default": "Unknown",
      "description": " - Unknown: ROBOT_MSVC_STATE_UNKNOWN defines unknown state. Only used to app-status.\n - Down: ROBOT_MSVC_STATE_DOWN defines when the service/container is non-functional.\n - Running: ROBOT_MSVC_STATE_RUNNING defines when the service/container is completely functional.\n - Degraded: ROBOT_MSVC_STATE_DEGRADED defines when the service/container is not completely functional.\n - Deleted: ROBOT_MSVC_STATE_DELETING defines when the service/container is supposed to be deleted.\n - Failed: ROBOT_MSVC_STATE_FAILED defines when the service/container action failed and is in stale state."
    },
    "robotctl_apiappInfo": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "title": "Application name"
        },
        "State": {
          "$ref": "#/$defs/robotctl_apiRobotSvcState"
        },
        "Counts": {
          "$ref": "#/$defs/robotctl_apicountInfo"
        },
        "Issue": {
          "type": "string"
        },
        "Recommendation": {
          "type": "string"
        }
      }
    },
    "robotctl_apicountInfo": {
      "type": "object",
      "properties": {
        "Total": {
          "type": "integer",
          "format": "int32"
        },
        "Running": {
          "type": "integer",
          "format": "int32"
        },
        "Degraded": {
          "type": "integer",
          "format": "int32"
        },
        "Down": {
          "type": "integer",
          "format": "int32"
        },
        "Unknown": {
          "type": "integer",
          "format": "int32"
        }
      }
    }
  }
}