thing.log Action

This trigger action is used to publish a log entry for a Thing.

Action

This trigger action if found under the Thing heading.

Canvas

When dragged onto the canvas, the appearance of the action is a rectangle with two routing points.

The left routing point (red) is the failure route. This route will be taken if the there is an error during execution.

The right routing point (green) is the success route. This route will be taken if action executes successfully.

Form

Parameters

Name

Type

Required

Description

Thing Key

String

Yes

Identifies the thing to which the log entry is to be associated. It can be the thing key associated with the trigger event: $(event.thing.key).

Correlation Id

String

 

A string used to identify related data objects. It can be the corrId associated with the trigger event: $(event.location.corrId).

Timestamp

String

 

The date and time of the log entry. It can be the timestamp associated with the trigger event: $(event.location.ts).

Message

String

Yes

The message to publish.

Level

Integer

 

The log level. If left blank, the default value will be 2. The log levels are 0 (Error), 1 (Warning), and 2 (Information).

Latitude

Float

 

Latitude coordinate of the alarm state event. It can be the latitude value associated with the trigger event: $(event.location.lat).

Longitude

Float

 

Longitude coordinate of the alarm state event. It can be the longitude associated with the trigger event: $(event.location.lng).