Skip to content

Commit

Permalink
Adjusts observability alerting perms to require "all"
Browse files Browse the repository at this point in the history
  • Loading branch information
jasonrhodes committed Oct 7, 2020
1 parent 82a6ddb commit 6a7116b
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion x-pack/plugins/apm/server/feature.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ export const APM_FEATURE = {
read: [],
},
alerting: {
all: Object.values(AlertType),
read: Object.values(AlertType),
},
management: {
insightsAndAlerting: ['triggersActions'],
Expand Down
4 changes: 2 additions & 2 deletions x-pack/plugins/infra/server/features.ts
Original file line number Diff line number Diff line change
Expand Up @@ -51,7 +51,7 @@ export const METRICS_FEATURE = {
read: ['infrastructure-ui-source', 'index-pattern'],
},
alerting: {
all: [METRIC_THRESHOLD_ALERT_TYPE_ID, METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID],
read: [METRIC_THRESHOLD_ALERT_TYPE_ID, METRIC_INVENTORY_THRESHOLD_ALERT_TYPE_ID],
},
management: {
insightsAndAlerting: ['triggersActions'],
Expand Down Expand Up @@ -92,7 +92,7 @@ export const LOGS_FEATURE = {
catalogue: ['infralogging', 'logs'],
api: ['infra'],
alerting: {
all: [LOG_DOCUMENT_COUNT_ALERT_TYPE_ID],
read: [LOG_DOCUMENT_COUNT_ALERT_TYPE_ID],
},
savedObject: {
all: [],
Expand Down
2 changes: 1 addition & 1 deletion x-pack/plugins/uptime/server/kibana.index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ export const initServerWithKibana = (server: UptimeCoreSetup, plugins: UptimeCor
read: [umDynamicSettings.name],
},
alerting: {
all: ['xpack.uptime.alerts.tls', 'xpack.uptime.alerts.monitorStatus'],
read: ['xpack.uptime.alerts.tls', 'xpack.uptime.alerts.monitorStatus'],
},
management: {
insightsAndAlerting: ['triggersActions'],
Expand Down

0 comments on commit 6a7116b

Please sign in to comment.