Dashboard-Plugin
Docs HomeDashboard plugins and appsInfomakerNaviga global
  • About
  • Intro
  • Getting started
  • The anatomy of a plugin
  • Manifest structure
  • Getting started
    • Get Dashboard-Plugin
    • Build
  • What's new
  • Components
    • Agent
      • Actions
    • Application
    • Widget
    • Health
    • Modal
    • Settings
  • API and GUI
    • API
      • Overview
      • register
        • Reducers
        • Portals
        • Requirements
        • Permissions
        • Default config
        • Config Modifiers
      • cache
      • store
      • encrypt
      • decrypt
      • createUUID
      • getLanguage
      • getTextDirection
      • getTimeFormat
      • getKeyCharFromCode
      • getKeyCodeFromChar
      • event
      • Logger
      • buildRouteUrlWithDispatchableEvent
      • getUser
      • getAction
      • getPortal
      • getConfig
      • getLocalize
      • getAvailableActions
      • getAvailablePortals
      • request
      • setHealth
      • openModal
      • closeModal
      • confirm
      • notifications
      • hasPermission
      • standalone
      • withUser
      • useModal
      • useSheet
      • useUser
      • useConfig
      • useLocalize
      • useApplication
      • useMappings
      • useStandalone
    • GUI
      • Core GUI
      • Style-Guide
    • Modules
      • GUI
      • Utility
      • NavigaID
        • getUserToken
        • getApplicationToken
        • getGroupsFromToken
  • Mappings
  • Plugins deployments
  • S3 upload
  • Deprecations
    • 4.1.0
    • 4.0.0
    • 2.1.0
Powered by GitBook
On this page
  • What does Health look like?
  • How to set plugin health status
  • Results
  • How to register a Health component?

Was this helpful?

  1. Components

Health

Health is often used in conjunction with agents or applications in plugin.

Your Health component will be rendered in a Dashboard Modal once you click on your plugin name in the Health widget list in the upper right corner (widget bar).

What does Health look like?

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.

How to set plugin health status

Results

How to register a Health component?

Like any other main component, from your main index.js file where you register your plugin, import your Health and pass it down with the register() method from Plugin-API

import DashboardPlugin from 'Dashboard/plugin'

const Plugin = new DashboardPlugin('@plugin_bundle')

const registerPlugin = () => {
    const { Health } = require('@components/Health')
    
    Plugin.register({
        health: Health
    }
}

registerPlugin()

export {
    Plugin
}
PreviousWidgetNextModal

Last updated 4 years ago

Was this helpful?

Dashboard Health list
Dashboard Health modal
setHealth