Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 9 Next »

1. Entity::Webhook object added to Connec database with correct tenant credentials, impac api endpoint, and `:subcribed_entities => ['Journals']`.

2. Pusher & Sparkpost keys are configured in Impac! API (application.yml):

SPARKPOST_API_KEY: 'CHANGEME'
PUSHER_APP_ID: 'CHANGEME'
PUSHER_KEY: 'CHANGEME'
PUSHER_SECRET: 'CHANGEME'

3. Add master tenant (SystemIdentity) credentials to Impac! API (config/application.yml).. this is used as the basic authentication when Impac! queries MnoHub for KPIs.

ROOT_KEY: foo
ROOT_SECRET: bar

4. Impac! APIs config/settings/env.yml needs to be configured properly with MnoHub, importantly, the paths for Alerts and KPIs.

mnohub:
	...
	paths:
		alerts: /api/mnoe/v1/alert/:alert_id
		kpis: /api/mnoe/v1/organizations/:organization_id/kpis

5. Impac Angular needs to be provided (via the `ImpacLinkingSvc`) with the Pusher Client Key. (NOTE: mno-enterprise-angular now provides this automatically through an Express env variable configured in Nex!)

// Link required and optional data in on sweep.
ImpacLinkingSvc.linkData({ user: ..., organizations: ..., pusher_key: 'KEY' })
// OR:
ImpacLinkingSvc.linkOptionalData({pusher_key: 'KEY'})

6. The tenant in Maestrano's database needs to be set with `tenant.metadata[:kpi_enabled] = true` or the feature will be disabled

7. Finally, ensure your front-end has configured Impac! Angular's Theming Provider, enabled the feature.

options = {
  	dhbKpisConfig:
    	enableKpis: true
	alertsConfig:
		enableAlerts: true
}


ImpacTheming.configure(options)
  • No labels