addSparseReactiveMetrics
Syntax
addSparseReactiveMetrics(engine, metrics)
Details
Adds sparse stateful computation metrics to the specified SparseReactiveStateEngine.
The format of the new metrics is the same as the metrics parameter of
createSparseReactiveStateEngine.
Parameters
engine is a STRING scalar or an object, specifying the sparse reactive stateful engine to which computation metrics are added.
metrics is a table specifying the set of metrics to be added. Its schema is
the same as the metrics parameter of
createSparseReactiveStateEngine: keyColumn(s), formula,
outputMetricKey.
Returns
Returns no value or returns an execution status (subject to the actual product implementation).
Examples
newMetrics = table(
["A003"] as deviceID,
["mavg(value,3)"] as formula,
["A003_1"] as outputMetricKey
)
addSparseReactiveMetrics("demoengine", newMetrics)
Related functions: createSparseReactiveStateEngine, getSparseReactiveMetrics, deleteSparseReactiveMetric
