kibana/x-pack/plugins/stack_alerts
Kibana Machine b09bca4439
[8.16] [ResponseOps] Do not change time field when edit (#206858) (#208029)
# Backport

This will backport the following commits from `main` to `8.16`:
- [[ResponseOps] Do not change time field when edit
(#206858)](https://github.com/elastic/kibana/pull/206858)

<!--- Backport version: 9.4.3 -->

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

<!--BACKPORT
[{"author":{"name":"Julia","email":"iuliia.guskova@elastic.co"},"sourceCommit":{"committedDate":"2025-01-23T11:38:15Z","message":"[ResponseOps]
Do not change time field when edit (#206858)\n\nFixed:
https://github.com/elastic/kibana/issues/204432\r\n\r\nHow to
test:\r\nGo to rules creation. Create ESquery rule. Set some
`@timestamp` time\r\nfield. Try to edit rule. Check if it's save
previous value of time\r\nfield.\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"993392bc4f6a96391644578a77bc2c4406581d05","branchLabelMapping":{"^v9.0.0$":"main","^v8.18.0$":"8.x","^v(\\d+).(\\d+).\\d+$":"$1.$2"}},"sourcePullRequest":{"labels":["Feature:Alerting","release_note:skip","Team:ResponseOps","v9.0.0","backport:prev-major","v8.18.0"],"title":"[ResponseOps]
Do not change time field when
edit","number":206858,"url":"https://github.com/elastic/kibana/pull/206858","mergeCommit":{"message":"[ResponseOps]
Do not change time field when edit (#206858)\n\nFixed:
https://github.com/elastic/kibana/issues/204432\r\n\r\nHow to
test:\r\nGo to rules creation. Create ESquery rule. Set some
`@timestamp` time\r\nfield. Try to edit rule. Check if it's save
previous value of time\r\nfield.\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"993392bc4f6a96391644578a77bc2c4406581d05"}},"sourceBranch":"main","suggestedTargetBranches":["8.x"],"targetPullRequestStates":[{"branch":"main","label":"v9.0.0","branchLabelMappingKey":"^v9.0.0$","isSourceBranch":true,"state":"MERGED","url":"https://github.com/elastic/kibana/pull/206858","number":206858,"mergeCommit":{"message":"[ResponseOps]
Do not change time field when edit (#206858)\n\nFixed:
https://github.com/elastic/kibana/issues/204432\r\n\r\nHow to
test:\r\nGo to rules creation. Create ESquery rule. Set some
`@timestamp` time\r\nfield. Try to edit rule. Check if it's save
previous value of time\r\nfield.\r\n\r\nCheck the PR satisfies following
conditions. \r\n\r\n- [x] [Unit or
functional\r\ntests](https://www.elastic.co/guide/en/kibana/master/development-tests.html)\r\nwere
updated or added to match the most common
scenarios\r\n\r\n---------\r\n\r\nCo-authored-by: kibanamachine
<42973632+kibanamachine@users.noreply.github.com>","sha":"993392bc4f6a96391644578a77bc2c4406581d05"}},{"branch":"8.x","label":"v8.18.0","branchLabelMappingKey":"^v8.18.0$","isSourceBranch":false,"state":"NOT_CREATED"}]}]
BACKPORT-->

Co-authored-by: Julia <iuliia.guskova@elastic.co>
2025-01-23 13:31:44 +00:00
..
common [Response Ops][Alerting] Add limit to size when ES query rule specifies a group by field (#189291) 2024-07-30 12:35:22 -04:00
public [8.16] [ResponseOps] Do not change time field when edit (#206858) (#208029) 2025-01-23 13:31:44 +00:00
server [8.16] [ES Query] Fix saving ECS group by fields for query DSL rule (#203769) (#204345) 2024-12-17 04:15:22 -06:00
jest.config.js
kibana.jsonc [ES|QL] Rename text-based-languages pugin to esql plugin (#187520) 2024-07-10 00:16:32 +10:00
README.md Docs: fix relative link (#190187) 2024-08-09 10:26:50 -07:00
tsconfig.json [8.x] [ES|QL] Renames the textbased editor to esql editor (#193521) (#193706) 2024-09-23 15:22:56 +02:00

stack_alerts plugin

This plugin provides alertTypes shipped with Kibana for use with the the alerting plugin. When enabled, it will register the alertTypes by the Stack in the alerting plugin, register associated HTTP routes, etc.

The plugin setup and start contracts for this plugin are the following type, which provides some runtime capabilities. Each built-in alertType will have it's own top-level property in the IService interface, if it needs to expose functionality.

export interface IService {
  indexThreshold: {
     timeSeriesQuery(params: TimeSeriesQueryParameters): Promise<TimeSeriesResult>;
  }
}

Each Stack RuleType is described in it's own README: