Skip to main content
Version: 2.12

EventMonitor

Constructors

Constructor

new EventMonitor(): EventMonitor;

Returns

EventMonitor

Methods

isEnabled()

static isEnabled(): boolean;

Checks if the Event Monitor is enabled in the config.

Returns

boolean


track()

static track(eventType, eventName): void;

Track an occurrence of an event. No network call is made; an in-memory counter is incremented and later flushed in batch. If monitoring is disabled, the call is a no‑op.

Parameters

ParameterTypeDescription
eventTypestringThe event type (remote action, datasource, etc)
eventNamestringLogical event name (e.g. brick name or endpoint id).

Returns

void