{
  "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"
        ],
        "additionalProperties": false
      },
      "description": "Counters defines the counters that will be consumed by the device.\n\nThe maximum number of counters is 32.",
      "type": [
        "object",
        "null"
      ]
    }
  },
  "required": [
    "counterSet",
    "counters"
  ],
  "type": "object",
  "additionalProperties": false,
  "$schema": "http://json-schema.org/schema#"
}