(.js)
laraImport("antarex.margot.config.monitor.MargotMonitor");
(.lara)
import antarex.margot.config.monitor.MargotMonitor;
Classes:
new MargotMonitor(name)
This class represents the base monitor that is 'extended' by all monitors.
Each class that extends this needs to define a field _margotMetric with the metric that it intends to measure. This base class already defines the get logic in the function {@link MargotMonitor.getMargotMetric}.
expose(varName, what)
Add a variable to expose in the monitor.
getMargotMetric()
Returns the metric associated with this monitor.
getName()