{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-collection-service-get-collection-job-count-response-schema.json",
  "title": "Return a total count of collect jobs and total collection endpoints and errors in the system if no application context\nis provided.  If application context is provided counts are for that collection job",
  "x-generated": "2026-11-25",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/cisco-crosswork-collectionservice-api-openapi.yml#/components/schemas/collection_serviceGetCollectionJobCountResponse",
  "type": "object",
  "properties": {
    "job_count": {
      "type": "string",
      "format": "uint64",
      "title": "job count"
    },
    "input_collection_count": {
      "type": "string",
      "format": "uint64",
      "title": "the number of input sensor collection endpoints for given collection job(s)"
    },
    "output_collection_count": {
      "type": "string",
      "format": "uint64",
      "title": "the number of output collection endpoints for given collection job(s)"
    },
    "input_error_collection_count": {
      "type": "string",
      "format": "uint64",
      "title": "the number of input sensor collection endpoints for given collection job(s)"
    },
    "output_error_collection_count": {
      "type": "string",
      "format": "uint64",
      "title": "the number of output collection endpoints for given collection job(s)"
    },
    "control_error_count": {
      "type": "string",
      "format": "uint64",
      "title": "the number of output collection endpoints for given collection job(s)"
    },
    "result": {
      "$ref": "#/$defs/collection_serviceResult",
      "title": "Result"
    }
  },
  "$defs": {
    "collection_serviceError": {
      "type": "object",
      "properties": {
        "error": {
          "type": "string",
          "title": "Message is a textual description of reason for rejection, and can be safely passed on to operator through logs\nor UI"
        }
      },
      "title": "Error  associated with an Object"
    },
    "collection_serviceRequestResult": {
      "type": "string",
      "enum": [
        "UNKNOWN_RESULT",
        "REJECTED",
        "ACCEPTED"
      ],
      "default": "UNKNOWN_RESULT",
      "description": "- REJECTED: Request has been rejected\n - ACCEPTED: Request has been accepted for processing",
      "title": "Request - reply\nresponse"
    },
    "collection_serviceResult": {
      "type": "object",
      "properties": {
        "request_result": {
          "$ref": "#/$defs/collection_serviceRequestResult",
          "description": "ResultValue indicated accept/reject for a request, not the outcome of the work itself."
        },
        "error": {
          "$ref": "#/$defs/collection_serviceError",
          "description": "Message is a textual description of reason for rejection, and can be safely passed on to operator through logs\nor UI."
        }
      },
      "description": "Result is used to convey whether an operation (individual or in a batch)\nhas been accepted or rejected. For sync API's an error or rejection indicates failure of operation.\nA string error message accompanies rejection to support troubleshooting. For notification objects,\nrejection represents failure to do intended operation."
    }
  }
}