Cisco Crosswork · Schema

GetCollectionDataMetricsResponse

Network AutomationService ProvidersOrchestrationNetworkingAssuranceTelecommunicationsRESTCONFYANGZero Touch ProvisioningWorkflow AutomationTraffic EngineeringMCPTelemetryOn-Premises

Properties

Name Type Description
collection_data_metrics_list array
query_options object
result object
View JSON Schema on GitHub

JSON Schema

cisco-crosswork-collection-service-get-collection-data-metrics-response-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://artifacts.apis.io/cisco-crosswork/json-schema/cisco-crosswork-collection-service-get-collection-data-metrics-response-schema.json",
  "title": "GetCollectionDataMetricsResponse",
  "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_serviceGetCollectionDataMetricsResponse",
  "type": "object",
  "properties": {
    "collection_data_metrics_list": {
      "type": "array",
      "items": {
        "$ref": "#/$defs/collection_serviceCollectionDataMetrics"
      },
      "title": "CollectionJobStatus represents current status of the job"
    },
    "query_options": {
      "$ref": "#/$defs/collection_serviceQueryOptions",
      "title": "Pagination and other query options"
    },
    "result": {
      "$ref": "#/$defs/collection_serviceResult",
      "title": "Sync Request reply , indicating whether request has accepted or rejected"
    }
  },
  "$defs": {
    "SyslogSensorPRIs": {
      "type": "object",
      "properties": {
        "facilities": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "title": "Syslog Facility , valid numbers 0 to 23"
        },
        "severities": {
          "type": "array",
          "items": {
            "type": "integer",
            "format": "int32"
          },
          "title": "Syslog Severity , valid numbers 0 to 7"
        }
      },
      "title": "PRI is combination of Facility code(0-23) and Severity(0-7).\nEmpty list will result in all syslog messages getting collected.\nIf multiple items are present in the same list type, as long as any one matches, messages would be collected.\nThree digit code that's a combination of Facility and Severity"
    },
    "collection_serviceCollectionDataMetrics": {
      "type": "object",
      "properties": {
        "input_metrics_list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/collection_serviceInputMetrics"
          },
          "title": "Metrics per device per sensor on the input collection side"
        },
        "output_metrics_list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/collection_serviceOutputMetrics"
          },
          "title": "Metrics per device per destination on the output collection side"
        }
      },
      "title": "Collection Data Metrics"
    },
    "collection_serviceDestination": {
      "type": "object",
      "properties": {
        "destination_id": {
          "type": "string",
          "title": "Unique identifier for Destination Provider in Inventory"
        },
        "context_id": {
          "type": "string",
          "description": "Destination context identifier.\nIt could be topic name if destination is message bus.\nThe combination of destination_id and context_id needs to be unique for Destination. What context id\nmeans depends on the Destination type of Destination provider.\nIf GRPC is destination type, context_id is not used and will be ignored."
        },
        "destination_name": {
          "type": "string",
          "title": "Not used during Write, Optionally filled during Get API's.\nMaps to destination provider name in DLM"
        }
      },
      "description": "Destination identifier to uniquely identify a destination\nOutput encoding format for destination is derived from Inventory destination_id."
    },
    "collection_serviceDeviceData": {
      "type": "object",
      "properties": {
        "device_id": {
          "type": "string",
          "title": "UUID of device in CW inventory"
        },
        "host_name": {
          "type": "string",
          "title": "Host name  of device in CW inventory.Optional to populate"
        }
      },
      "title": "Device Data"
    },
    "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_serviceFilter": {
      "type": "object",
      "properties": {
        "operator": {
          "$ref": "#/$defs/collection_serviceFilterOperator",
          "title": "the filter logical or conditional operator ex. AND, OR, >, <"
        },
        "field_list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/collection_serviceFilterField"
          },
          "title": "the filter criteria list"
        }
      },
      "title": "Filter"
    },
    "collection_serviceFilterField": {
      "type": "object",
      "properties": {
        "field": {
          "type": "string",
          "title": "field to filter on.  Only CollectionState String is supported"
        },
        "value": {
          "type": "string",
          "description": "field value to filter on.  Note for non string backend will convert to honor actual db type."
        }
      }
    },
    "collection_serviceFilterOperator": {
      "type": "string",
      "enum": [
        "UNKNOWN_OPERATOR",
        "OPERATOR_OR",
        "OPERATOR_AND",
        "OPERATOR_EQ",
        "OPERATOR_REGEX",
        "OPERATOR_CONTAINS"
      ],
      "default": "UNKNOWN_OPERATOR",
      "description": " - UNKNOWN_OPERATOR: unknown operator\n - OPERATOR_OR: OR operator filter applied across filter list\n - OPERATOR_AND: AND operator filter applied across filter list\n - OPERATOR_EQ: EQUAL operator filter applied across filter list. not supported yet.\n - OPERATOR_REGEX: REGEX operator filter applied across filter list. not supported yet.\n - OPERATOR_CONTAINS: CONTAINS operator filter applied across filter list. supported only for hostname."
    },
    "collection_serviceInputMetrics": {
      "type": "object",
      "properties": {
        "device_data": {
          "$ref": "#/$defs/collection_serviceDeviceData",
          "title": "Device data"
        },
        "sensor_data": {
          "$ref": "#/$defs/common_collection_dataSensorData",
          "title": "Sensor"
        },
        "metrics": {
          "$ref": "#/$defs/collection_serviceMetrics",
          "title": "Input side metrics"
        }
      }
    },
    "collection_serviceKeyValueMetric": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "value": {
          "type": "number",
          "format": "double"
        }
      },
      "title": "Key Value metric"
    },
    "collection_serviceMetrics": {
      "type": "object",
      "properties": {
        "key_value_metrics": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/collection_serviceKeyValueMetric"
          }
        }
      },
      "title": "Message containing various collection metrics\nFollowing metrics need to be collected\n last_collection_time_msec = 1;\n last_polling_cadence_msec = 2;\n total_collected_bytes_count = 3;\n total_collected_errors_count = 4;\n total_write_errors_count = 5;\n total_collected_msgs_count = 6;\n total_dropped_msgs_count = 7;\n last_device_latency_msec = 8;"
    },
    "collection_serviceOutputMetrics": {
      "type": "object",
      "properties": {
        "destination": {
          "$ref": "#/$defs/collection_serviceDestination",
          "title": "Destination"
        },
        "device_data": {
          "$ref": "#/$defs/collection_serviceDeviceData",
          "title": "Device data"
        },
        "sensor_data": {
          "$ref": "#/$defs/common_collection_dataSensorData",
          "title": "Sensor"
        },
        "metrics": {
          "$ref": "#/$defs/collection_serviceMetrics",
          "title": "Input side metrics"
        }
      }
    },
    "collection_serviceQueryOptions": {
      "type": "object",
      "properties": {
        "page_token": {
          "type": "string",
          "title": "Page token to echo back to get next page, if collection_job_device_sets is empty or page token is empty ,\nthen there is no more results"
        },
        "page_size": {
          "type": "integer",
          "format": "int64",
          "title": "page_size"
        },
        "filter_list": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/collection_serviceFilter"
          },
          "title": "filtering options"
        },
        "filter_query": {
          "type": "string",
          "title": "Reserved for future use. Not used as of CW 3.1"
        }
      },
      "title": "Query Options"
    },
    "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."
    },
    "common_collection_dataCliSensor": {
      "type": "object",
      "properties": {
        "command": {
          "type": "string",
          "title": "Example show clock"
        },
        "device_package": {
          "$ref": "#/$defs/common_collection_dataDevicePackage",
          "title": "Total size  is limited to 512 characters"
        }
      }
    },
    "common_collection_dataCliYangSensor": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "title": "Example cli_xr_show_logging:syslog"
        }
      }
    },
    "common_collection_dataDevicePackage": {
      "type": "object",
      "properties": {
        "device_package_name": {
          "type": "string",
          "title": "XDE device package name"
        },
        "function_name": {
          "type": "string",
          "title": "XDE function name within package"
        },
        "parameters": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/common_collection_dataKeyValue"
          },
          "title": "Parameters for custom device packages"
        }
      },
      "title": "XDE Device package"
    },
    "common_collection_dataGNMIDeviceSetting": {
      "type": "object",
      "properties": {
        "suppress_redundant": {
          "type": "boolean",
          "format": "boolean"
        },
        "heartbeat_interval": {
          "type": "string",
          "format": "uint64",
          "description": "Specifies the maximum allowable silent period in nanoseconds when\nsuppress_redundant is in use. The target should send a value at least once\nin the period specified."
        },
        "qos": {
          "$ref": "#/$defs/gnmiQOSMarking"
        },
        "allow_aggregation": {
          "type": "boolean",
          "format": "boolean"
        },
        "use_models": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/gnmiModelData"
          },
          "description": "The set of schemas that define the elements of the data tree that should\nbe sent by the target."
        },
        "updates_only": {
          "type": "boolean",
          "format": "boolean",
          "description": "An optional field to specify that only updates to current state should be\nsent to a client. If set, the initial state is not sent to the client but\nrather only the sync message followed by any subsequent updates to the\ncurrent state. For ONCE and POLL modes, this causes the server to send only\nthe sync message (Sec. 3.5.2.3)."
        }
      },
      "title": "Device settings that may or may not be supported for GNMI"
    },
    "common_collection_dataGnmiSensor": {
      "type": "object",
      "properties": {
        "path": {
          "$ref": "#/$defs/gnmiPath",
          "title": "Gnmi path\nExample {\"origin\":\"syslog-oper\",\"elem\":[{\"name\":\"syslog\"},{\"name\":\"messages\"}]}"
        },
        "mode": {
          "$ref": "#/$defs/gnmiSubscriptionMode",
          "description": "Subscription mode to be used."
        },
        "device_setting": {
          "$ref": "#/$defs/common_collection_dataGNMIDeviceSetting",
          "title": "Optional GNMI Device setting"
        }
      },
      "title": "Reference: gNMI Specification Section 3.5.1.3"
    },
    "common_collection_dataKeyValue": {
      "type": "object",
      "properties": {
        "key": {
          "type": "string"
        },
        "bytes_value": {
          "type": "string",
          "format": "byte"
        },
        "string_value": {
          "type": "string"
        },
        "bool_value": {
          "type": "boolean",
          "format": "boolean"
        },
        "uint32_value": {
          "type": "integer",
          "format": "int64"
        },
        "uint64_value": {
          "type": "string",
          "format": "uint64"
        },
        "sint32_value": {
          "type": "integer",
          "format": "int32"
        },
        "sint64_value": {
          "type": "string",
          "format": "int64"
        },
        "double_value": {
          "type": "number",
          "format": "double"
        },
        "float_value": {
          "type": "number",
          "format": "float"
        }
      },
      "title": "Generic Key value message"
    },
    "common_collection_dataMDTSensor": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "title": "Example Cisco-IOS-XR-infra-statsd-oper:infra-statistics/interfaces/interface/latest/generic-counters"
        }
      }
    },
    "common_collection_dataSensorData": {
      "type": "object",
      "properties": {
        "snmp_sensor": {
          "$ref": "#/$defs/common_collection_dataSnmpSensor"
        },
        "snmp_yang_sensor": {
          "$ref": "#/$defs/common_collection_dataSnmpYangSensor"
        },
        "cli_yang_sensor": {
          "$ref": "#/$defs/common_collection_dataCliYangSensor"
        },
        "cli_sensor": {
          "$ref": "#/$defs/common_collection_dataCliSensor"
        },
        "mdt_sensor": {
          "$ref": "#/$defs/common_collection_dataMDTSensor"
        },
        "trap_sensor": {
          "$ref": "#/$defs/common_collection_dataTrapSensor"
        },
        "trap_yang_sensor": {
          "$ref": "#/$defs/common_collection_dataTrapYangSensor"
        },
        "gnmi_sensor": {
          "$ref": "#/$defs/common_collection_dataGnmiSensor"
        },
        "syslog_sensor": {
          "$ref": "#/$defs/common_collection_dataSyslogSensor"
        }
      },
      "title": "Sensor Data"
    },
    "common_collection_dataSnmpMib": {
      "type": "object",
      "properties": {
        "oid": {
          "type": "string",
          "title": "OID of the path Example 1.3.5.6.1"
        },
        "snmp_operation": {
          "$ref": "#/$defs/common_collection_dataSnmpOperation",
          "title": "SNMP operation type"
        }
      }
    },
    "common_collection_dataSnmpOperation": {
      "type": "string",
      "enum": [
        "UNKNOWN_SNMP_OPERATION",
        "WALK",
        "SCALAR",
        "TABLE"
      ],
      "default": "UNKNOWN_SNMP_OPERATION",
      "title": "SNMP operation types"
    },
    "common_collection_dataSnmpSensor": {
      "type": "object",
      "properties": {
        "snmp_mib": {
          "$ref": "#/$defs/common_collection_dataSnmpMib",
          "title": "Snmp mib"
        },
        "device_package": {
          "$ref": "#/$defs/common_collection_dataDevicePackage",
          "title": "Total size  is limited to 512 characters"
        }
      }
    },
    "common_collection_dataSnmpYangSensor": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "title": "Example SNMPv2-MIB:SNMPv2-MIB/system"
        }
      }
    },
    "common_collection_dataSyslogSensor": {
      "type": "object",
      "properties": {
        "pris": {
          "$ref": "#/$defs/SyslogSensorPRIs",
          "title": "List of priority levels"
        },
        "application_names": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "title": "Empty list will result in all syslog messages getting collected\nIf multiple items are present in the same list type, as long as any one matches, messages would be collected.\nOptional list of ApplicationName's to filter upon"
        },
        "process_names": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Empty list will result in all syslog messages getting collected\nOptional list of  process_names to filter upon\nIf multiple items are present in the same list type, as long as any one matches, messages would be collected."
        }
      },
      "title": "Refer https://www.paessler.com/it-explained/syslog,https://datatracker.ietf.org/doc/rfc5424/\nExample if PRI is (165,111) , application_name is  (su,syslogd) all messages with PRI (165 or 111) and application\nname su or syslogd would be collected"
    },
    "common_collection_dataTrapSensor": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "title": "Example snmp-trap-oper:traps/notifications"
        }
      }
    },
    "common_collection_dataTrapYangSensor": {
      "type": "object",
      "properties": {
        "path": {
          "type": "string",
          "title": "Example ISIS-MIB:notifications,SNMPv2-MIB:notifications,IF-MIB:notifications"
        }
      }
    },
    "gnmiModelData": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "organization": {
          "type": "string"
        },
        "version": {
          "type": "string"
        }
      },
      "title": "ModelData is used to describe a set of schema modules. It can be used in a\nCapabilityResponse where a target reports the set of modules that it\nsupports, and within the SubscribeRequest and GetRequest messages to specify\nthe set of models from which data tree elements should be reported.\nReference: gNMI Specification Section 3.2.3"
    },
    "gnmiPath": {
      "type": "object",
      "properties": {
        "element": {
          "type": "array",
          "items": {
            "type": "string"
          },
          "description": "Elements of the path are no longer encoded as a string, but rather within\nthe elem field as a PathElem message."
        },
        "origin": {
          "type": "string"
        },
        "elem": {
          "type": "array",
          "items": {
            "$ref": "#/$defs/gnmiPathElem"
          }
        },
        "target": {
          "type": "string"
        }
      },
      "description": "Path encodes a data tree path as a series of repeated strings, with\neach element of the path representing a data tree node name and the\nassociated attributes.\nReference: gNMI Specification Section 2.2.2."
    },
    "gnmiPathElem": {
      "type": "object",
      "properties": {
        "name": {
          "type": "string"
        },
        "key": {
          "type": "object",
          "additionalProperties": {
            "type": "string"
          }
        }
      },
      "description": "PathElem encodes an element of a gNMI path, along with any attributes (keys)\nthat may be associated with it.\nReference: gNMI Specification Section 2.2.2."
    },
    "gnmiQOSMarking": {
      "type": "object",
      "properties": {
        "marking": {
          "type": "integer",
          "format": "int64"
        }
      },
      "title": "QOSMarking specifies the DSCP value to be set on transmitted telemetry\nupdates from the target.\nReference: gNMI Specification Section 3.5.1.2"
    },
    "gnmiSubscriptionMode": {
      "type": "string",
      "enum": [
        "TARGET_DEFINED",
        "ON_CHANGE",
        "SAMPLE"
      ],
      "default": "TARGET_DEFINED",
      "title": "SubscriptionMode is the mode of the subscription, specifying how the\ntarget must return values in a subscription.\nReference: gNMI Specification Section 3.5.1.3"
    }
  }
}

Work with this as data

Every JSON Schema here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for schemas

4 MCP tools reach this
  • find_json_schemasBrowse and filter every JSON Schema in the catalog.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This JSON Schema
curl "https://apis.io/api/v1/json-schemas/cisco-crosswork-collection-service-get-collection-data-metrics-response"
All schemas
curl "https://apis.io/api/v1/json-schemas?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.