openmct/src/plugins/URLIndicatorPlugin
Charles Hacskaylo 61bdadc33c
Fixes #2878 (#2879)
- Remove background from `elementStatusColors` mixin;
- Change Indicators to use more correct style of `.s-status-on`;
2020-04-06 15:36:52 -07:00
..
2020-04-06 15:36:52 -07:00
2018-07-16 15:21:38 -07:00
2020-04-06 15:36:52 -07:00

URL Indicator

Adds an indicator which shows the availability of a URL, with success based on receipt of a 200 HTTP code. Can be used for monitoring the availability of web services.

Installation

openmct.install(openmct.plugins.URLIndicator({
  url: 'http://localhost:8080',
    iconClass: 'check',
    interval: 10000,
    label: 'Localhost'
 })
);

Options

  • url: URL to indicate the status of
  • iconClass: Icon to show in the status bar, defaults to icon-database. See the Style Guide for more icon options.
  • interval: Interval between checking the connection, defaults to 10000
  • label: Name showing up as text in the status bar, defaults to url