thing_def.column_map

The thing_def.list command is used to find and return a list of keys and values from all Thing Definition alarms, attributes, and properties.

TR50 Request


                        {
  "1": {
    "command": "thing_def.column_map"
  }
}
      

TR50 Response

If the command is sent successfully a success message and the list of Thing definition alarm, attribute, and property keys and values are returned. Otherwise, an error and error message will be returned.


                        {
  "1": {
    "success": true,
    "params": {
      "result": {
        "alarms": {
          "alarm0key": "Alarm 0 name",
          "alarm1key": "Alarm 1 name",
          "alarm2key": "Alarm 2 name"
        },
        "attributes": {
          "attribute0key": "Attribute 0 name",
          "attribute1key": "Attribute 1 name",
          "attribute2key": "Attribute 2 name"
        },
        "properties": {
          "property0key": "Properties 0 name",
          "property1key": "Properties 1 name",
          "property2key": "Properties 2 name"
        },
      }
    }
  }
}
      

Response Parameters

Name

Type

Description

result

Array

The array of result objects.

Results Object

Name

Type

Description

alarms

Array

An array of all Thing Definition alarm key/value pairs.

attributes

Array

An array of all Thing Definition attribute key/value pairs.

properties

Array

An array of all Thing Definition property key/value pairs.