Agent v2.0.0.12
This is probably more of a question initially, a bug only if this is not the intended behavior.
The ToolNumber shown here is a key in an Events object (within a ComponentStream). Usually, an event type will be associated with multiple observations, so naturally, we get an array. I'm questioning the behavior when there is only one observation; the observation is returned as a scalar, but I would expect a single-element array.
Actual:
"ToolNumber": {
"dataItemId": "cnc2_p7_tool_num",
"sequence": 2747897,
"timestamp": "2023-02-17T04:32:48.035Z",
"value": "1"
},
Expected:
"ToolNumber": [
{
"dataItemId": "cnc2_p7_tool_num",
"sequence": 2747897,
"timestamp": "2023-02-17T04:32:48.035Z",
"value": "1"
}
],
Agent v2.0.0.12
This is probably more of a question initially, a bug only if this is not the intended behavior.
The
ToolNumbershown here is a key in anEventsobject (within a ComponentStream). Usually, an event type will be associated with multiple observations, so naturally, we get an array. I'm questioning the behavior when there is only one observation; the observation is returned as a scalar, but I would expect a single-element array.Actual:
Expected: