Skip to content

Commit dc66555

Browse files
committed
Prevent editing/creation of these in the alerts management UI
1 parent 78f6410 commit dc66555

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

x-pack/plugins/monitoring/public/alerts/cpu_usage_alert/cpu_usage_alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -23,6 +23,6 @@ export function createCpuUsageAlertType(): AlertTypeModel {
2323
),
2424
validate,
2525
defaultActionMessage: '{{context.internalFullMessage}}',
26-
requiresAppContext: false,
26+
requiresAppContext: true,
2727
};
2828
}

x-pack/plugins/monitoring/public/alerts/legacy_alert/legacy_alert.tsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ export function createLegacyAlertTypes(): AlertTypeModel[] {
3333
),
3434
defaultActionMessage: '{{context.internalFullMessage}}',
3535
validate: () => ({ errors: {} }),
36-
requiresAppContext: false,
36+
requiresAppContext: true,
3737
};
3838
});
3939
}

0 commit comments

Comments
 (0)