io.engineblock.extensions.scriptingmetrics.scriptingmetrics.md Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of eb-extensions Show documentation
Show all versions of eb-extensions Show documentation
Scripting extensions for engineblock.
scriptingmetrics extension
==========================
This extensions allows you to create and update metrics
that are visible to engineblock from your scripting environment.
### Example
~~~
var mygauge= scriptingmetrics.newGauge("mygaugename", 1.0);
...
mygauge.update(5.3);
...
~~~
Any such metric will be available in the runtime as a standard metric. For now, only gauges are supported, but others may be added as needed.