json_schema: {
      "properties": {
          "consulate": {
              "description": "The consular level for the number of events",
              "type": "string"
          },
          "count": {
              "description": "The count of the number of events",
              "minimum": 0,
              "type": "integer"
          },
          "period": {
              "description": "The period described by each data point",
              "enum": [
                  "second",
                  "minute",
                  "hour",
                  "day",
                  "week",
                  "month",
                  "year"
              ]
          },
          "serviceType": {
              "description": "The name of the service-type along which to segment the count",
              "type": "string"
          }
      },
      "required": [
          "count",
          "serviceType",
          "consulate",
          "period"
      ],
      "title": "Appointments by service type and consulate",
      "type": "object"
  }