kibana/x-pack/examples/alerting_example
Umberto Pepato 545732caad
[8.x] [ResponseOps][Rules] Add solution field to rule types (#212079) (#214345)
# Backport

This will backport the following commits from `main` to `8.x`:
- [[ResponseOps][Rules] Add solution field to rule types
(#212079)](https://github.com/elastic/kibana/pull/212079)

<!--- Backport version: 9.6.6 -->

### Questions ?
Please refer to the [Backport tool
documentation](https://github.com/sorenlouv/backport)

<!--BACKPORT [{"author":{"name":"Umberto
Pepato","email":"umbopepato@users.noreply.github.com"},"sourceCommit":{"committedDate":"2025-03-12T16:19:58Z","message":"[ResponseOps][Rules]
Add solution field to rule types (#212079)\n\nWe need to add a
`solution` field to rule types in order to provide a\nroot-level
categorization based on the Kibana solution/area that owns\neach rule
type. This will serve as a more reliable alternative to\nprevious
attempts at `featureId`-based filtering.\n\n## Summary\n\n- Adds a
`solution` field to rule type objects, accepting the
values\n`observability`, `security` and `stack`.\n- Categorizes existing
rule types.\n- Updates tests with the new field.\n\n## Verification
steps\n\n1. Check that the rule types you own have been categorized
under the\ncorrect solution\n2. Create rules in multiple areas of
Kibana\n3. Check that those rules show up correctly in their UIs and
work\ncorrectly\n\n## References\n\nCloses
#212017","sha":"f8a3051605a5663d99253ee698d441ac32fe3868","branchLabelMapping":{"^v9.1.0$":"main","^v8.19.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["release_note:skip","Team:obs-ux-infra_services","Team:obs-ux-management","backport:version","v9.1.0","v8.19.0"],"title":"[ResponseOps][Rules]
Add solution field to rule
types","number":212079,"url":"https://github.com/elastic/kibana/pull/212079","mergeCommit":{"message":"[ResponseOps][Rules]
Add solution field to rule types (#212079)\n\nWe need to add a
`solution` field to rule types in order to provide a\nroot-level
categorization based on the Kibana solution/area that owns\neach rule
type. This will serve as a more reliable alternative to\nprevious
attempts at `featureId`-based filtering.\n\n## Summary\n\n- Adds a
`solution` field to rule type objects, accepting the
values\n`observability`, `security` and `stack`.\n- Categorizes existing
rule types.\n- Updates tests with the new field.\n\n## Verification
steps\n\n1. Check that the rule types you own have been categorized
under the\ncorrect solution\n2. Create rules in multiple areas of
Kibana\n3. Check that those rules show up correctly in their UIs and
work\ncorrectly\n\n## References\n\nCloses
#212017","sha":"f8a3051605a5663d99253ee698d441ac32fe3868"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.1.0","branchLabelMappingKey":"^v9.1.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/212079","number":212079,"mergeCommit":{"message":"[ResponseOps][Rules]
Add solution field to rule types (#212079)\n\nWe need to add a
`solution` field to rule types in order to provide a\nroot-level
categorization based on the Kibana solution/area that owns\neach rule
type. This will serve as a more reliable alternative to\nprevious
attempts at `featureId`-based filtering.\n\n## Summary\n\n- Adds a
`solution` field to rule type objects, accepting the
values\n`observability`, `security` and `stack`.\n- Categorizes existing
rule types.\n- Updates tests with the new field.\n\n## Verification
steps\n\n1. Check that the rule types you own have been categorized
under the\ncorrect solution\n2. Create rules in multiple areas of
Kibana\n3. Check that those rules show up correctly in their UIs and
work\ncorrectly\n\n## References\n\nCloses
#212017","sha":"f8a3051605a5663d99253ee698d441ac32fe3868"}},{"branch":"8.x","label":"v8.19.0","branchLabelMappingKey":"^v8.19.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->
2025-03-13 15:22:56 +00:00
..
common fix all violations 2022-04-16 01:37:30 -05:00
public [8.x] [Response Ops] [Rule Form] Remove V1 Rule Form Flyout (#209171) (#213748) 2025-03-13 13:11:07 +00:00
server [8.x] [ResponseOps][Rules] Add solution field to rule types (#212079) (#214345) 2025-03-13 15:22:56 +00:00
jest.config.js adds an example rule type example.pattern (#150068) 2023-02-07 10:33:12 -05:00
kibana.jsonc [8.x] [Response Ops] [Rule Form] Add Rule Form Flyout v2 (#206685) (#213258) 2025-03-06 02:32:40 +01:00
README.md [Response Ops] Renaming Alert to Rule (#129136) 2022-04-04 07:32:32 -04:00
tsconfig.json [8.x] [Response Ops] [Rule Form] Remove V1 Rule Form Flyout (#209171) (#213748) 2025-03-13 13:11:07 +00:00

Alerting Example

This example plugin shows you how to create a custom Rule Type, create rules based on that type and corresponding UI for viewing the details of all the rules within the custom plugin.

To run this example, use the command yarn start --run-examples.