Sha256: 4482a2c7aa933d9500adff071605377692f410da411ee75b0971158f5e2582e2

Contents?: true

Size: 1.97 KB

Versions: 25

Compression:

Stored size: 1.97 KB

Contents

{
  "$schema": "http://json-schema.org/draft-04/schema#",
  "type": "object",
  "properties": {
    "start": {
      "type": "string",
      "format": "date-time"
    },
    "end": {
      "type": "string",
      "format": "date-time"
    },
    "resolution": {
      "type": "number"
    },
    "aggregation": {
      "type": "string",
      "enum": [
        "FIRST",
        "LAST",
        "COUNT",
        "MAX",
        "MIN",
        "MEDIAN",
        "MEAN",
        "SUM"
      ]
    },
    "devices": {
      "type": "object",
      "patternProperties": {
        "^[A-Fa-f\\d]{24}$": {
          "type": "object",
          "properties": {
            "name": {
              "type": "string",
              "minLength": 1,
              "maxLength": 255
            },
            "points": {
              "type": "array",
              "items": {
                "type": "object",
                "properties": {
                  "time": {
                    "type": "string",
                    "format": "date-time"
                  },
                  "data": {
                    "type": "object",
                    "patternProperties": {
                      "^[0-9a-zA-Z_-]{1,255}$": {
                        "type": [
                          "number",
                          "string",
                          "boolean"
                        ]
                      }
                    },
                    "additionalProperties": false
                  }
                },
                "additionalProperties": false,
                "required": [
                  "data",
                  "time"
                ]
              }
            }
          },
          "additionalProperties": false,
          "required": [
            "name",
            "points"
          ]
        }
      },
      "additionalProperties": false
    }
  },
  "additionalProperties": false,
  "required": [
    "start",
    "end",
    "resolution",
    "aggregation",
    "devices"
  ]
}

Version data entries

25 entries across 25 versions & 1 rubygems

Version Path
losant_rest-1.5.1 schemas/timeSeriesData.json
losant_rest-1.5.0 schemas/timeSeriesData.json
losant_rest-1.4.2 schemas/timeSeriesData.json
losant_rest-1.4.1 schemas/timeSeriesData.json
losant_rest-1.4.0 schemas/timeSeriesData.json
losant_rest-1.3.3 schemas/timeSeriesData.json
losant_rest-1.3.2 schemas/timeSeriesData.json
losant_rest-1.3.1 schemas/timeSeriesData.json
losant_rest-1.3.0 schemas/timeSeriesData.json
losant_rest-1.2.3 schemas/timeSeriesData.json
losant_rest-1.2.2 schemas/timeSeriesData.json
losant_rest-1.2.1 schemas/timeSeriesData.json
losant_rest-1.2.0 schemas/timeSeriesData.json
losant_rest-1.1.2 schemas/timeSeriesData.json
losant_rest-1.1.1 schemas/timeSeriesData.json
losant_rest-1.1.0 schemas/timeSeriesData.json
losant_rest-1.0.8 schemas/timeSeriesData.json
losant_rest-1.0.7 schemas/timeSeriesData.json
losant_rest-1.0.6 schemas/timeSeriesData.json
losant_rest-1.0.5 schemas/timeSeriesData.json