{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-robotctl-api-collect-op-result-schema.json",
  "title": "robotctl_apiCollectOpResult",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-troubleshooting-api-api-openapi.yml#/components/schemas/robotctl_apiCollectOpResult",
  "type": "object",
  "properties": {
    "Result": {
      "$ref": "#/$defs/robotctl_apiResultValue"
    },
    "Description": {
      "type": "string",
      "title": "Additional information regarding the response"
    },
    "CollectJobs": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/CollectOpResultcollectJob"
      }
    }
  },
  "$defs": {
    "CollectOpResultcollectJob": {
      "type": "object",
      "properties": {
        "Id": {
          "type": "string",
          "title": "Unique Collect Job Id"
        },
        "JobScope": {
          "type": "string"
        },
        "Type": {
          "$ref": "#/$defs/robotctl_apiCollectType"
        },
        "JobStatus": {
          "$ref": "#/$defs/robotctl_apijobStatus"
        },
        "User": {
          "type": "string"
        },
        "CreationTime": {
          "type": "string"
        },
        "Description": {
          "type": "string",
          "title": "Additional information regarding the job"
        }
      }
    },
    "robotctl_apiCollectType": {
      "type": "string",
      "enum": [
        "_",
        "All",
        "Logs",
        "Metrics"
      ],
      "default": "_"
    },
    "robotctl_apiResultValue": {
      "type": "string",
      "enum": [
        "NOOP",
        "SUCCESS",
        "FAILURE"
      ],
      "default": "NOOP"
    },
    "robotctl_apijobStatus": {
      "type": "string",
      "enum": [
        "JobUnknown",
        "JobCreated",
        "JobInProgress",
        "JobCompleted",
        "JobFailed"
      ],
      "default": "JobUnknown"
    }
  }
}