Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. #83226

Conversation

YulNaumenko
Copy link
Contributor

@YulNaumenko YulNaumenko commented Nov 11, 2020

Added default dedupKey value as an {{alertId}}:{{alertInstanceId}} to provide grouping functionality for PagerDuty incidents.
Exposed getDefaultsForActionParams function which returns the default action params values for a selected action group

Resolve #77772

…uping functionality for PagerDuty incidents. Set default savedObjectId as {{alertInstanceId}} for ServiceNow, Resilient and Jira
@YulNaumenko YulNaumenko added Feature:Alerting v8.0.0 release_note:skip Skip the PR/issue when compiling release notes Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.11.0 labels Nov 11, 2020
@YulNaumenko YulNaumenko self-assigned this Nov 11, 2020
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-alerting-services (Team:Alerting Services)

@YulNaumenko YulNaumenko requested a review from a team November 12, 2020 16:27
Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

I took a look at the PR / approach today and I think it would be better to move this logic outside the connector code as it now couples them to the alert. I wonder if we can do something from the alert components to get a list of default connector values which then gets passed to the connector components (like a switch case for defaults).

Testing the connector currently shows a dedup key that is alert specific:
Screen Shot 2020-11-17 at 8 37 36 AM

x-pack/plugins/actions/README.md Outdated Show resolved Hide resolved
Copy link
Contributor

@gmmorris gmmorris left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, just a couple of notes :)

Copy link
Contributor

@mikecote mikecote left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Changes LGTM, its nice to see it auto select "Resolve" for the PagerDuty event action!

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Module Count

Fewer modules leads to a faster build time

id before after diff
triggersActionsUi 275 276 +1

Async chunks

Total size of all lazy-loaded chunks that will be downloaded as the user navigates the app

id before after diff
triggersActionsUi 1.4MB 1.4MB +5.4KB

History

To update your PR or re-run it, just comment with:
@elasticmachine merge upstream

@YulNaumenko YulNaumenko merged commit f79188a into elastic:master Nov 20, 2020
YulNaumenko added a commit to YulNaumenko/kibana that referenced this pull request Nov 20, 2020
…uping functionality for PagerDuty incidents. (elastic#83226)

* Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. Set default savedObjectId as  {{alertInstanceId}} for ServiceNow, Resilient and Jira

* fixed comment

* fixed due to comments

* fixed doc

* fixed due to comments
brianseeders added a commit that referenced this pull request Nov 20, 2020
…vide grouping functionality for PagerDuty incidents. (#83226)"

This reverts commit f79188a.
@brianseeders
Copy link
Contributor

@YulNaumenko I'm sorry, I had to revert this PR... It ended up having a conflict with another PR that was merged earlier. Can you create another PR that's up-to-date with master and get that resolved? See here: https://kibana-ci.elastic.co/job/elastic+kibana+master/9808/execution/node/353/log/

It looks like your 7.x backport is currently failing with the same issue

YulNaumenko added a commit that referenced this pull request Nov 21, 2020
…de grouping functionality for PagerDuty incidents. (#83226) (#83985)

* Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. (#83226)

* Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. Set default savedObjectId as  {{alertInstanceId}} for ServiceNow, Resilient and Jira

* fixed comment

* fixed due to comments

* fixed doc

* fixed due to comments

* fixed type checks
gmmorris added a commit to rudolf/kibana that referenced this pull request Nov 23, 2020
* master: (67 commits)
  [Observability] Load hasData call asynchronously (elastic#80644)
  Implement AnonymousAuthenticationProvider. (elastic#79985)
  Deprecate `visualization:colorMapping` advanced setting (elastic#83372)
  [TSVB] [Rollup] Table tab not working with rollup indexes (elastic#83635)
  Revert "[Search] Search batching using bfetch (elastic#83418)" (elastic#84037)
  skip flaky suite (elastic#83772)
  skip flaky suite (elastic#69849)
  create kbn-legacy-logging package (elastic#77678)
  [Search] Search batching using bfetch (elastic#83418)
  [Security Solution] Refactor Timeline flyout to take a full page (elastic#82033)
  Drop use of console-stamp (elastic#83922)
  skip flaky suite (elastic#84011 , elastic#84012)
  Fixed usage of `isReady` for usage collection of alerts and actions (elastic#83760)
  [maps] support URL drilldowns (elastic#83732)
  Revert "Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. (elastic#83226)"
  [code coverage] Update jest config to collect more data (elastic#83804)
  Added default dedupKey value as an {{alertInstanceId}} to provide grouping functionality for PagerDuty incidents. (elastic#83226)
  [Security Solution] Give notice when endpoint policy is out of date (elastic#83469)
  [Security Solution] Sync url state on any changes to query string (elastic#83314)
  [CI] Initial TeamCity implementation (elastic#81043)
  ...
@mikecote mikecote added needs_docs release_note:enhancement reverted and removed release_note:skip Skip the PR/issue when compiling release notes needs_docs labels Dec 16, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Feature:Alerting release_note:enhancement reverted Team:ResponseOps Label for the ResponseOps team (formerly the Cases and Alerting teams) v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Alerts don't group their incidents by a dedupKey / Object ID
6 participants