0.1.0 • Published 7 years ago

mozaik-ext-uptimerobot v0.1.0

Weekly downloads
5
License
-
Repository
github
Last release
7 years ago

mozaik-ext-uptimerobot

Uptime Robot widget for Mozaïk v1

Setup

  • Install module from npm:
    npm install mozaik-ext-uptimerobot
  • Register client api by adding to dashboard src/server.js:

    import uptimerobot from 'mozaik-ext-uptimerobot/client';
    mozaik.bus.registerApi('uptimerobot', uptimerobot);
  • Register widgets by adding to dashboard src/App.jsx:

    import uptimerobot from 'mozaik-ext-uptimerobot';
    
    Mozaik.Registry.addExtensions({
        uptimerobot
    });
  • Add UPTIMEROBOT_API_KEY to .env

  • Build the dashboard:

    npm run build-assets

Configuring widget

example

{
    type: 'uptimerobot.monitors',
    statuses: "9", // only down monitors
    columns: 1, rows: 1,
    x: 0, y: 1
}

parameters

keyrequireddescription
statusesnoIf not used, will return all monitors statuses (up, down, paused) in an account. Else, it is possible to define any number of monitor statuses like: statuses="2-9")