Skip to content
This repository has been archived by the owner on Mar 25, 2020. It is now read-only.
hamzahalhariri edited this page Jun 15, 2018 · 5 revisions

Dashboard.Health

Health is often used in conjunction with agents or applications in plugin.
your Health component will only rendered in the Dashboard Modal when you click on plugin name in Healths list upper right.

Simple Health

const GUI = Dashboard.GUI

class MyHealth extends Dashboard.Health {
    render() {
        return <GUI.Wrapper>
            <GUI.Paragraph text='infocaster ready'/>
        </GUI.Wrapper>
    }
}

and don't forget to register your Health component in register function:

Dashboard.register({
	...
	health: MyHealth
	...
})
In this example we create a simple health that renders the status of LCC-Agent Plugin.

Set plugin health status

you can set your plugin health by calling this.healthy(boolean) in any Dashboard Components Application, Agent and Widget

Result

Dashboard Health list Dashboard Health modal

Clone this wiki locally