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

[Maps] Add 'crossed' & 'exited' events to tracking alert #82463

Merged
merged 9 commits into from
Nov 18, 2020

Conversation

kindsun
Copy link
Contributor

@kindsun kindsun commented Nov 3, 2020

In addition to entered, adds exited and crossed conditionds to geo threshold alert

image

This doesn't change the nature of the ES query, but instead just the filters applied to the response.

Note: This may change significantly (or disappear) when the query shifts to tracking containment rather than the current crossing logic, but since the work is already complete and containment isn't fully fleshed out, this functionality should be merged to augment the existing logic.

@kindsun kindsun marked this pull request as ready for review November 16, 2020 18:43
@elasticmachine
Copy link
Contributor

Pinging @elastic/kibana-gis (Team:Geo)

@kindsun kindsun added the release_note:skip Skip the PR/issue when compiling release notes label Nov 16, 2020
Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

thx for enabling!

I'm not sure if we should retain the current way that instance-ids are generated:

ie.

.alertInstanceFactory(`${entityName}-${toBoundaryName || currLocation.shapeId}`)

For exiting, shouldn't the instance-id be the shape-boundary where it come from. Since the currLocaiton.shapeId will always be outside.

(I didn't test, more open ended question now)

@kindsun
Copy link
Contributor Author

kindsun commented Nov 16, 2020

thx for enabling!

I'm not sure if we should retain the current way that instance-ids are generated:

ie.

.alertInstanceFactory(`${entityName}-${toBoundaryName || currLocation.shapeId}`)

For exiting, shouldn't the instance-id be the shape-boundary where it come from. Since the currLocaiton.shapeId will always be outside.

(I didn't test, more open ended question now)

Mhm, good catch. It also gets stranger for crossing. We could do something like:

  • Entered: ${entityName}-${toBoundaryName || currLocation.shapeId}
  • Exited: ${entityName}-${fromBoundaryName || prevLocation.shapeId}
  • Crossed: ${entityName}-${fromBoundaryName || prevLocation.shapeId}-${toBoundaryName || currLocation.shapeId}

@thomasneirynck
Copy link
Contributor

Entered: ${entityName}-${toBoundaryName || currLocation.shapeId}
Exited: ${entityName}-${fromBoundaryName || prevLocation.shapeId}
Crossed: ${entityName}-${fromBoundaryName || prevLocation.shapeId}-${toBoundaryName || currLocation.shapeId}

+1 from me.

maybe @kmartastic can chime in, since this is very user-facing.

@kindsun
Copy link
Contributor Author

kindsun commented Nov 18, 2020

Entered: ${entityName}-${toBoundaryName || currLocation.shapeId}
Exited: ${entityName}-${fromBoundaryName || prevLocation.shapeId}
Crossed: ${entityName}-${fromBoundaryName || prevLocation.shapeId}-${toBoundaryName || currLocation.shapeId}
+1 from me.

maybe @kmartastic can chime in, since this is very user-facing.

@thomasneirynck Discussed with @kmartastic offline and he approved the suggested changes. Updates pushed!

Crossing example (note: it does get tricky with hyphenated names, but maybe that's ok):

image

Copy link
Contributor

@thomasneirynck thomasneirynck left a comment

Choose a reason for hiding this comment

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

thanks, remains pretty readable to me.

@kibanamachine
Copy link
Contributor

💚 Build Succeeded

Metrics [docs]

Async chunks

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

id before after diff
stackAlerts 79.6KB 79.7KB +30.0B

History

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

@kindsun kindsun merged commit a767051 into elastic:master Nov 18, 2020
@kindsun kindsun deleted the add-crossing-event-to-tracking-alert branch November 18, 2020 22:43
kindsun pushed a commit to kindsun/kibana that referenced this pull request Nov 18, 2020
gmmorris added a commit to gmmorris/kibana that referenced this pull request Nov 19, 2020
* master: (60 commits)
  Forward any registry cache-control header for files (elastic#83680)
  Revert "[Alerting] Add `alert.updatedAt` field to represent date of last user edit (elastic#83578)"
  [Security Solution][Detections] Fix adding an action to detection rules (elastic#83722)
  Make expectSnapshot available in all functional test runs (elastic#82932)
  Skip failing cypress test
  Increase bulk request timeout during esArchiver load (elastic#83657)
  [data.search] Server-side background session service (elastic#81099)
  [maps] convert VectorStyleEditor to TS (elastic#83582)
  Revert "[App Search] Engine overview layout stub (elastic#83504)"
  Adding documentation for global action configuration options (elastic#83557)
  [Metrics UI] Optimizations for Snapshot and Inventory Metadata (elastic#83596)
  chore(NA): update lmdb store to v0.8.15 (elastic#83726)
  [App Search] Engine overview layout stub (elastic#83504)
  [Workplace Search] Update SourceIcon to match latest changes in ent-search (elastic#83714)
  [Enterprise Search] Rename React Router helpers (elastic#83718)
  [Maps] Add 'crossed' & 'exited' events to tracking alert (elastic#82463)
  Updating code-owners to use new core/app-services team names (elastic#83731)
  Add Managed label to data streams and a view switch for the table (elastic#83049)
  [Maps] Add query bar inputs to geo threshold alerts tracked points & boundaries (elastic#80871)
  fix(NA): search examples kibana version declaration (elastic#83182)
  ...
gmmorris added a commit to gmmorris/kibana that referenced this pull request Nov 19, 2020
* master: (60 commits)
  Forward any registry cache-control header for files (elastic#83680)
  Revert "[Alerting] Add `alert.updatedAt` field to represent date of last user edit (elastic#83578)"
  [Security Solution][Detections] Fix adding an action to detection rules (elastic#83722)
  Make expectSnapshot available in all functional test runs (elastic#82932)
  Skip failing cypress test
  Increase bulk request timeout during esArchiver load (elastic#83657)
  [data.search] Server-side background session service (elastic#81099)
  [maps] convert VectorStyleEditor to TS (elastic#83582)
  Revert "[App Search] Engine overview layout stub (elastic#83504)"
  Adding documentation for global action configuration options (elastic#83557)
  [Metrics UI] Optimizations for Snapshot and Inventory Metadata (elastic#83596)
  chore(NA): update lmdb store to v0.8.15 (elastic#83726)
  [App Search] Engine overview layout stub (elastic#83504)
  [Workplace Search] Update SourceIcon to match latest changes in ent-search (elastic#83714)
  [Enterprise Search] Rename React Router helpers (elastic#83718)
  [Maps] Add 'crossed' & 'exited' events to tracking alert (elastic#82463)
  Updating code-owners to use new core/app-services team names (elastic#83731)
  Add Managed label to data streams and a view switch for the table (elastic#83049)
  [Maps] Add query bar inputs to geo threshold alerts tracked points & boundaries (elastic#80871)
  fix(NA): search examples kibana version declaration (elastic#83182)
  ...
phillipb added a commit to phillipb/kibana that referenced this pull request Nov 19, 2020
… into add-logs-to-node-details

* 'add-logs-to-node-details' of github.com:phillipb/kibana: (87 commits)
  [Maps] Add 'crossed' & 'exited' events to tracking alert (elastic#82463)
  Updating code-owners to use new core/app-services team names (elastic#83731)
  Add Managed label to data streams and a view switch for the table (elastic#83049)
  [Maps] Add query bar inputs to geo threshold alerts tracked points & boundaries (elastic#80871)
  fix(NA): search examples kibana version declaration (elastic#83182)
  Fixed console error, which appears when saving changes in Edit Alert flyout (elastic#83610)
  [Alerting] Add `alert.updatedAt` field to represent date of last user edit (elastic#83578)
  Not resetting server log level if level is defined (elastic#83651)
  disable incremenetal build for legacy tsconfig.json (elastic#82986)
  [Workplace Search] Migrate SourceLogic from ent-search (elastic#83593)
  [Workplace Search] Port Box changes from ent-search (elastic#83675)
  [APM] Improve router types (elastic#83620)
  Bump flat to v4.1.1 (elastic#83647)
  Bump y18n@5 to v5.0.5 (elastic#83644)
  Bump jsonpointer to v4.1.0 (elastic#83641)
  Bump is-my-json-valid to v2.20.5 (elastic#83642)
  [Telemetry] Move Monitoring collection strategy to a collector (elastic#82638)
  Update typescript eslint to v4.8 (elastic#83520)
  [ML] Persist URL state for Anomaly detection jobs using metric function (elastic#83507)
  [ML] Performance improvements to annotations editing in Single Metric Viewer & buttons placement (elastic#83216)
  ...
chrisronline pushed a commit to chrisronline/kibana that referenced this pull request Nov 19, 2020
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
[Deprecated-Use Team:Presentation]Team:Geo Former Team Label for Geo Team. Now use Team:Presentation Feature:Alerting release_note:skip Skip the PR/issue when compiling release notes v7.11.0 v8.0.0
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants