{
  "description": "DeviceCounterConsumption defines a set of counters that a device will consume from a CounterSet.",
  "properties": {
    "counterSet": {
      "description": "CounterSet is the name of the set from which the counters defined will be consumed.",
      "type": [
        "string",
        "null"
      ]
    },
    "counters": {
      "additionalProperties": {
        "description": "Counter describes a quantity associated with a device.",
        "properties": {
          "value": {
            "oneOf": [
              {
                "type": [
                  "string",
                  "null"
                ]
              },
              {
                "type": [
                  "number",
                  "null"
                ]
              }
            ]
          }
        },
        "required": [
          "value"
        ],
        "type": [
          "object",
          "null"
        ]
      },
      "description": "Counters defines the counters that will be consumed by the device.\n\nThe maximum number counters in a device is 32. In addition, the maximum number of all counters in all devices is 1024 (for example, 64 devices with 16 counters each).",
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "counterSet",
    "counters"
  ],
  "type": "object",
  "$schema": "http://json-schema.org/schema#"
}