Instance
Handler for the application instance. Coordinates much of the application's functionality. Significant functionality is also delegated to meters' handlers, session handlers, and the server objects.
Constructors
Properties
Functions
Returns the active measurement in the session. If session == null, it is the latest session.
Tells how many sessions are still writing / planning to serialize their state on disk.
Return a summary of a past measurement.
Returns a past run id in the session. If session == null, it is the latest session.
The pool of all the free meters associated with the instance.
Return a list of received MQTT messages.
Global configuration for this instance.
Supports the following SystemAppCommands:
Handler for HTTP GET requests.
Handler for HTTP POST requests.
Handle an event. If sessionId == null, it is the latest session.
A faster routine for aggregate events (collectd stream)
Handler for Telnet commands. The API is documented at https://tech.utugit.fi/soft/tools/power/doc/manual/usage/api/#telnet
Handle a trigger event. If session == null, it is the latest session.
Shorter summary of the instance status. Faster to compute, for the web UI.
Summary data structure for the whole app setup.
Up-to-date snapshot of the log entries of the past sessions.
Tells how many ordinary files in located in the log directory. This can be an estimate and only needs to grow when a log has been serialized on disk.
Summary of external nodes associated with this instance.
The pool of all meters associated with the instance. Does not include dummy copies of the meters.
Send a MQTT message with the given topic and content.
A snapshot of currently active & inactive sessions.