Hi everyone,
I’m working on a simple flow in Analytics Builder where:
-
I take an input measurement (e.g., from type
Demo
), -
Fetch a value from the Managed Object (e.g.,
updated_cost.0.cost
), -
Multiply the two values using an Expression block,
-
And write the result as a new Measurement in a custom fragment (
Cost.Total
).
It’s working functionally — however, I noticed that the timestamp of the calculated output measurement doesn’t match the timestamp of the original input measurement.
Input Measurement:
{
"id": "1417835717",
"type": "Demo",
"time": "2025-08-29T08:40:10.000Z",
"Demo": {
"TOTAL_WithDraw": {
"unit": "gal",
"value": 0
},
"VOLUME_dispensed_15": {
"unit": "gal",
"value": 0
}
}
}
Calculated Measurement Output:
{
"time": "2025-08-29T08:40:51.000Z",
"apama_analytics_modelName": "Demo Total Cost #1",
"Cost": {
"Total": {
"unit": "$",
"value": 0.36
}
}
}
As you can see, the output measurement timestamp (08:40:51
) does not match the input measurement timestamp (08:40:10
).
For my use case, I need the calculated measurement to carry the same timestamp as the original input measurement.
Question:
How can I ensure that the output measurement generated by Analytics Builder uses the same timestamp as the input measurement? Is there a configuration or workaround for this?
Thanks in advance!