Default

Sets default values for frame attributes.

Parameters

NameDefaultMeaning
valuesA list of attribute names
value0A value to capture if no value exists.

Description

This layer is usually used at the beginning or at the end of a Layered Frame Analytic to fill in any default values for attributes that couldn't be captured.

For example, you might choose to set a value to '0' if it couldn't be calculated.

Because key values are required for the capture to be added to the database, this layer is most often used to ensure all keys have valid values.

Example

If the frame contains the following attributes…

AttributeValue
Max Temperature120
Max Speed15.42
{
   "type": "default",
   "values": ["Max Temperature","Max Vibration"],
   "value": 0
}

Your final frame would contain the following values…

AttributeValue
Max Temperature120
Max Speed15.42
Max Vibration0

Note that the existing value for temperature isn't changed.