Health - Infomaker/Dashboard-Plugin GitHub Wiki

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