Sha256: 345b8edb0eb9fdcd3d688c61cd1791ebd35fe55c76d41c6e71998570cde24fff

Contents?: true

Size: 1.34 KB

Versions: 19

Compression:

Stored size: 1.34 KB

Contents

{
  "$schema": "http://json-schema.org/draft-07/schema#",
  "type": "object",
  "properties": {
    "level": {
      "type": "string",
      "enum": [
        "info",
        "warning",
        "error",
        "critical"
      ]
    },
    "state": {
      "type": "string",
      "enum": [
        "new",
        "acknowledged",
        "resolved"
      ]
    },
    "subject": {
      "type": "string",
      "minLength": 1,
      "maxLength": 255
    },
    "message": {
      "type": "string",
      "maxLength": 32767
    },
    "data": {},
    "deviceId": {
      "type": "string",
      "pattern": "^[A-Fa-f\\d]{24}$"
    },
    "eventTags": {
      "type": "object",
      "patternProperties": {
        "^[0-9a-zA-Z_-]{1,255}$": {
          "type": "string",
          "minLength": 1,
          "maxLength": 255
        }
      },
      "additionalProperties": false
    },
    "creationDate": {
      "oneOf": [
        {
          "type": "string"
        },
        {
          "type": "number"
        },
        {
          "type": "object",
          "properties": {
            "$date": {
              "type": "string"
            }
          },
          "additionalProperties": false,
          "required": [
            "$date"
          ]
        }
      ]
    }
  },
  "required": [
    "level",
    "subject"
  ],
  "additionalProperties": false
}

Version data entries

19 entries across 19 versions & 1 rubygems

Version Path
losant_rest-1.21.0 schemas/eventPost.json
losant_rest-1.20.1 schemas/eventPost.json
losant_rest-1.20.0 schemas/eventPost.json
losant_rest-1.19.9 schemas/eventPost.json
losant_rest-1.19.8 schemas/eventPost.json
losant_rest-1.19.6 schemas/eventPost.json
losant_rest-1.19.4 schemas/eventPost.json
losant_rest-1.19.3 schemas/eventPost.json
losant_rest-1.19.2 schemas/eventPost.json
losant_rest-1.19.1 schemas/eventPost.json
losant_rest-1.19.0 schemas/eventPost.json
losant_rest-1.18.0 schemas/eventPost.json
losant_rest-1.17.5 schemas/eventPost.json
losant_rest-1.17.4 schemas/eventPost.json
losant_rest-1.17.3 schemas/eventPost.json
losant_rest-1.17.2 schemas/eventPost.json
losant_rest-1.17.1 schemas/eventPost.json
losant_rest-1.17.0 schemas/eventPost.json
losant_rest-1.16.6 schemas/eventPost.json