Monito API

Bartosz Jarocki
Bartosz Jarocki

With a new version of Monito your application can send a custom events to Monito. The extension will display it as separate entry in logs.

To receive an event Monito uses standard event DOM API. To send an event from your application simply do the following

    new CustomEvent("MonitoCustomEvent", {
      detail: {
        tags: JSON.stringify(['tag 1', 'tag 2']),
        log: 'Very important message that has to be shown in the logs'
        expandedContent: JSON.stringify({ someBigJsonObject: true })

It is required to use MonitoCustomEvent as event type and provide a valid details. The only optional property is expandedContent. Properties like tags and log are required.