Fix ML alert not allowed in Uptime app. (#111180)

This commit is contained in:
Justin Kambic 2021-09-03 15:17:06 -04:00 committed by GitHub
parent a9d73311e0
commit 9b20c80867
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -46,7 +46,11 @@ export const initServerWithKibana = (
management: {
insightsAndAlerting: ['triggersActions'],
},
alerting: ['xpack.uptime.alerts.tls', 'xpack.uptime.alerts.monitorStatus'],
alerting: [
'xpack.uptime.alerts.tls',
'xpack.uptime.alerts.monitorStatus',
'xpack.uptime.alerts.durationAnomaly',
],
privileges: {
all: {
app: ['uptime', 'kibana'],
@ -58,10 +62,18 @@ export const initServerWithKibana = (
},
alerting: {
rule: {
all: ['xpack.uptime.alerts.tls', 'xpack.uptime.alerts.monitorStatus'],
all: [
'xpack.uptime.alerts.tls',
'xpack.uptime.alerts.monitorStatus',
'xpack.uptime.alerts.durationAnomaly',
],
},
alert: {
all: ['xpack.uptime.alerts.tls', 'xpack.uptime.alerts.monitorStatus'],
all: [
'xpack.uptime.alerts.tls',
'xpack.uptime.alerts.monitorStatus',
'xpack.uptime.alerts.durationAnomaly',
],
},
},
management: {
@ -79,10 +91,18 @@ export const initServerWithKibana = (
},
alerting: {
rule: {
read: ['xpack.uptime.alerts.tls', 'xpack.uptime.alerts.monitorStatus'],
read: [
'xpack.uptime.alerts.tls',
'xpack.uptime.alerts.monitorStatus',
'xpack.uptime.alerts.durationAnomaly',
],
},
alert: {
read: ['xpack.uptime.alerts.tls', 'xpack.uptime.alerts.monitorStatus'],
read: [
'xpack.uptime.alerts.tls',
'xpack.uptime.alerts.monitorStatus',
'xpack.uptime.alerts.durationAnomaly',
],
},
},
management: {