@@ -19,6 +19,7 @@ import { overlayAlertsFunction } from './expressions/overlay_alerts';
19
19
import { setClient , setEmbeddable , setNotifications , setOverlays , setSavedAugmentVisLoader , setUISettings , setQueryService } from './services' ;
20
20
import { VisAugmenterStart } from '../../../src/plugins/vis_augmenter/public' ;
21
21
import { DataPublicPluginStart } from '../../../src/plugins/data/public' ;
22
+ import { AssistantPublicPluginSetup } from './../../../plugins/dashboards-assistant/public' ;
22
23
23
24
declare module '../../../src/plugins/ui_actions/public' {
24
25
export interface ActionContextMapping {
@@ -33,6 +34,7 @@ export interface AlertingStart {}
33
34
export interface AlertingSetupDeps {
34
35
expressions : ExpressionsSetup ;
35
36
uiActions : UiActionsSetup ;
37
+ assistantDashboards ?: AssistantPublicPluginSetup ;
36
38
}
37
39
38
40
export interface AlertingStartDeps {
@@ -42,7 +44,7 @@ export interface AlertingStartDeps {
42
44
}
43
45
44
46
export class AlertingPlugin implements Plugin < AlertingSetup , AlertingStart , AlertingSetupDeps , AlertingStartDeps > {
45
- public setup ( core : CoreSetup < AlertingStartDeps , AlertingStart > , { expressions, uiActions } : AlertingSetupDeps ) : AlertingSetup {
47
+ public setup ( core : CoreSetup < AlertingStartDeps , AlertingStart > , { expressions, uiActions, assistantDashboards } : AlertingSetupDeps ) : AlertingSetup {
46
48
core . application . register ( {
47
49
id : PLUGIN_NAME ,
48
50
title : 'Alerting' ,
@@ -60,6 +62,16 @@ export class AlertingPlugin implements Plugin<AlertingSetup, AlertingStart, Aler
60
62
} ,
61
63
} ) ;
62
64
65
+ if ( assistantDashboards ) {
66
+ assistantDashboards . registerPalantir ( [
67
+ {
68
+ key : 'query_level_monitor' ,
69
+ description : 'Monitoring on the query level' ,
70
+ suggestion : 'How to better configure my monitor?' ,
71
+ } ,
72
+ ] ) ;
73
+ }
74
+
63
75
setUISettings ( core . uiSettings ) ;
64
76
65
77
// Set the HTTP client so it can be pulled into expression fns to make
0 commit comments