{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotctl-api-health-app-services-schema.json",
  "title": "Service detail per app",
  "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_apiHealthAppServices",
  "type": "object",
  "properties": {
    "Result": {
      "$ref": "#/$defs/robotctl_apiResultValue"
    },
    "Description": {
      "type": "string"
    },
    "ServiceList": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/robotctl_apisrvInfo"
      },
      "title": "List of service names for the application"
    }
  },
  "$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_apisrvInfo": {
      "type": "object",
      "properties": {
        "ServiceName": {
          "type": "string"
        },
        "State": {
          "$ref": "#/$defs/robotctl_apiRobotSvcState"
        },
        "Description": {
          "type": "string",
          "title": "Additional info for the service status response"
        },
        "Uptime": {
          "type": "string"
        },
        "Issue": {
          "type": "string"
        },
        "Recommendation": {
          "type": "string"
        },
        "Pods": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "List of pods running the service"
        }
      }
    }
  }
}