Losant · Schema

Losant Device

Schema for a single Device

IoTInternet Of ThingsDevicesEdge ComputeEmbeddedMQTTIndustrial IoTTelemetryWorkflow AutomationVisual Workflow EngineDashboardsTime SeriesConnected ProductsEnterprise

Properties

Name Type Description
id object
deviceId object
applicationId object
creationDate object
lastUpdated object
deletedAt object
name object
description object
tags object
attributes object
deviceClass object
gatewayId object
edgeAgentVersion object
connectionInfo object
parentId object
ancestorIds object
systemInterval object
keepDuplicates boolean
View JSON Schema on GitHub

JSON Schema

losant-device-schema.json Raw ↑
{
  "title": "Losant Device",
  "description": "Schema for a single Device",
  "type": "object",
  "properties": {
    "id": {
      "$ref": "#/$defs/common/objectId"
    },
    "deviceId": {
      "$ref": "#/$defs/common/objectId"
    },
    "applicationId": {
      "$ref": "#/$defs/common/objectId"
    },
    "creationDate": {
      "$ref": "#/$defs/common/date"
    },
    "lastUpdated": {
      "$ref": "#/$defs/common/date"
    },
    "deletedAt": {
      "$ref": "#/$defs/common/date"
    },
    "name": {
      "$ref": "#/$defs/common/name"
    },
    "description": {
      "$ref": "#/$defs/common/description"
    },
    "tags": {
      "$ref": "#/$defs/common/tagsRequired"
    },
    "attributes": {
      "$ref": "#/$defs/common/deviceAttributesInternal"
    },
    "deviceClass": {
      "$ref": "#/$defs/common/deviceClass"
    },
    "gatewayId": {
      "$ref": "#/$defs/common/objectId"
    },
    "edgeAgentVersion": {
      "$ref": "#/$defs/common/version"
    },
    "connectionInfo": {
      "type": "object",
      "properties": {
        "time": {
          "$ref": "#/$defs/common/date"
        },
        "connected": {
          "enum": [
            1,
            0,
            null
          ]
        }
      }
    },
    "parentId": {
      "$ref": "#/$defs/common/objectIdOrNull"
    },
    "ancestorIds": {
      "$ref": "#/$defs/common/objectIds"
    },
    "systemInterval": {
      "$ref": "#/$defs/common/systemInterval"
    },
    "keepDuplicates": {
      "type": "boolean"
    }
  },
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/losant/main/json-schema/losant-device-schema.json"
}