This is an old revision of the document!
Default
Sets default values for frame attributes that don't have existing values.
Parameters
Name | Default | Meaning |
---|---|---|
values | A list of attribute names | |
value | 0 | A 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…
Attribute | Value |
---|---|
Max Temperature | 120 |
Max Speed | 15.42 |
{ "type": "default", "values": ["Max Temperature","Max Vibration"], "value": 0 }
Your final frame would contain the following values…
Attribute | Value |
---|---|
Max Temperature | 120 |
Max Speed | 15.42 |
Max Vibration | 0 |
Note that the existing value for temperature isn't changed.