{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/logicmonitor/main/json-schema/logicmonitor-device-schema.json",
  "title": "Device",
  "x-generated": "2026-10-04",
  "x-method": "derived",
  "x-generator": "derive-json-schema.py",
  "x-source": "openapi/logicmonitor-devices-api-openapi.yml#/components/schemas/Device",
  "type": "object",
  "required": [
    "displayName",
    "name",
    "preferredCollectorId"
  ],
  "properties": {
    "netflowCollectorGroupName": {
      "description": "The name of the Collector Group associated with the device's netflow collector",
      "readOnly": true,
      "type": "string"
    },
    "azureState": {
      "format": "int32",
      "description": "The GCP instance state (if applicable): 1 indicates that the instance is running, 2 indicates that the instance is stopped and 3 the instance is terminated.",
      "readOnly": true,
      "type": "integer"
    },
    "relatedDeviceId": {
      "format": "int32",
      "description": "The Id of the AWS EC2 instance related to this device, if one exists in the LogicMonitor account. This value defaults to -1, which indicates that there are no related devices",
      "type": "integer"
    },
    "displayName": {
      "description": "The display name of the device",
      "type": "string"
    },
    "link": {
      "description": "The URL link associated with the device",
      "type": "string"
    },
    "awsState": {
      "format": "int32",
      "description": "The AWS instance state (if applicable): 1 indicates that the instance is running, 2 indicates that the instance is stopped and 3 the instance is terminated",
      "readOnly": true,
      "type": "integer"
    },
    "description": {
      "description": "The device description",
      "type": "string"
    },
    "disableAlerting": {
      "description": "Indicates whether alerting is disabled (true) or enabled (false) for this device",
      "type": "boolean"
    },
    "netflowCollectorGroupId": {
      "format": "int32",
      "description": "The id of the Collector Group associated with the device's netflow collector",
      "readOnly": true,
      "type": "integer"
    },
    "createdOn": {
      "format": "int64",
      "description": "The time, in epoch seconds format, that the device was added to your LogicMonitor account",
      "readOnly": true,
      "type": "integer"
    },
    "systemProperties": {
      "description": "Any system properties (aside from system.categories) defined for this device",
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/NameAndValue"
      }
    },
    "hostStatus": {
      "description": "The status of this device, where possible statuses are normal, dead and dead-collector",
      "readOnly": true,
      "type": "string"
    },
    "gcpState": {
      "format": "int32",
      "description": "The Azure instance state (if applicable): 1 indicates that the instance is running, 2 indicates that the instance is stopped and 3 the instance is terminated.",
      "readOnly": true,
      "type": "integer"
    },
    "autoBalancedCollectorGroupId": {
      "format": "int32",
      "description": "The Auto Balanced Collector Group id. 0 means not monitored by ABCG",
      "type": "integer"
    },
    "autoPropsUpdatedOn": {
      "format": "int64",
      "description": "The time, in epoch seconds, that auto properties last ran and updated the properties table for this device",
      "readOnly": true,
      "type": "integer"
    },
    "scanConfigId": {
      "format": "int32",
      "description": "The Id of the netscan configuration which was used to discover this device. 0 indicates that the device was not discovered by a scan",
      "readOnly": true,
      "type": "integer"
    },
    "inheritedProperties": {
      "description": "Any properties inherit from parents",
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/NameAndValue"
      }
    },
    "id": {
      "format": "int32",
      "description": "The Id of the device",
      "readOnly": true,
      "type": "integer"
    },
    "enableNetflow": {
      "description": "Indicates whether Netflow is enabled (true) or disabled (false) for the device",
      "type": "boolean"
    },
    "lastDataTime": {
      "format": "int64",
      "description": "The last time, in epoch seconds, that the device received Netflow data",
      "readOnly": true,
      "type": "integer"
    },
    "hostGroupIds": {
      "description": "The Id(s) of the groups the device is in, where multiple group ids are comma separated",
      "type": "string"
    },
    "upTimeInSeconds": {
      "format": "int64",
      "description": "The uptime of the device in seconds. This value will always be the largest value reported by the following datasources:\nHost Uptime-\nSNMPUptime-\nSNMP_Engine_Uptime-\nWinSystemUptime-\nNimbleUptime-",
      "readOnly": true,
      "type": "integer"
    },
    "deviceType": {
      "format": "int32",
      "description": "The type of device: 0 indicates a regular device, 2 indicates an AWS device, 4 indicates an Azure device",
      "type": "integer"
    },
    "currentCollectorId": {
      "format": "int32",
      "description": "The id of the collector currently monitoring the device and discovering instances",
      "type": "integer"
    },
    "netflowCollectorDescription": {
      "description": "The description/name of the netflow collector for this device",
      "readOnly": true,
      "type": "string"
    },
    "netflowCollectorId": {
      "format": "int32",
      "description": "The Id of the netflow collector associated with the device",
      "type": "integer"
    },
    "userPermission": {
      "description": "The read and/or write permissions for this device that are granted to the user who made the API request",
      "readOnly": true,
      "type": "string"
    },
    "autoPropsAssignedOn": {
      "format": "int64",
      "description": "The time, in epoch seconds format, that properties were first discovered for this device",
      "readOnly": true,
      "type": "integer"
    },
    "updatedOn": {
      "format": "int64",
      "description": "The time, in epoch seconds format, that the device was last updated",
      "readOnly": true,
      "type": "integer"
    },
    "preferredCollectorGroupName": {
      "description": "The name of the Collector Group associated with the device's preferred collector",
      "readOnly": true,
      "type": "string"
    },
    "preferredCollectorGroupId": {
      "format": "int32",
      "description": "The id of the Collector Group associated with the device's preferred collector",
      "readOnly": true,
      "type": "integer"
    },
    "autoProperties": {
      "description": "Any auto properties assigned to the device",
      "readOnly": true,
      "type": "array",
      "items": {
        "$ref": "#/$defs/NameAndValue"
      }
    },
    "customProperties": {
      "description": "Any non-system properties (aside from system.categories) defined for this device",
      "type": "array",
      "items": {
        "$ref": "#/$defs/NameAndValue"
      }
    },
    "toDeleteTimeInMs": {
      "format": "int64",
      "description": "The number of milliseconds until the device will be automatically deleted from your LogicMonitor account (a value of zero indicates that a future delete time/date has not been scheduled)",
      "readOnly": true,
      "type": "integer"
    },
    "collectorDescription": {
      "description": "The description/name of the collector for this device",
      "readOnly": true,
      "type": "string"
    },
    "preferredCollectorId": {
      "format": "int32",
      "description": "The Id of the preferred collector assigned to monitor the device",
      "type": "integer"
    },
    "lastRawdataTime": {
      "format": "int64",
      "description": "The last time, in epoch seconds, that raw Netflow data was reported",
      "readOnly": true,
      "type": "integer"
    },
    "name": {
      "description": "The host name or IP address of the device",
      "type": "string"
    },
    "deletedTimeInMs": {
      "format": "int64",
      "description": "The time in milliseconds that the device has been dead for, or since the AWS device was filtered out",
      "readOnly": true,
      "type": "integer"
    }
  },
  "$defs": {
    "NameAndValue": {
      "type": "object",
      "required": [
        "name",
        "value"
      ],
      "properties": {
        "name": {
          "description": "The name of a property",
          "type": "string"
        },
        "value": {
          "description": "The value of a property",
          "type": "string"
        }
      }
    }
  }
}