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

Refactored Dashboard::getMonitors to function without using the from and size parameters from getAlerts #89

Merged
merged 9 commits into from
Sep 2, 2021

Conversation

annie3431
Copy link
Contributor

Signed-off-by: Annie Lee [email protected]
Signed off by Thomas Hurney [email protected]

Description

  1. Refactored Dashboard::getMonitors to function without using the from and size parameters from getAlerts.

Issues Resolved

[List any issues this PR will resolve]

Check List

  • New functionality includes testing.
    • All tests pass
  • New functionality has been documented.
    • New functionality has javadoc added
  • Commits are signed per the DCO using --signoff

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.

Annie and others added 9 commits April 30, 2021 16:36
…and size parameters from getAlerts (opensearch-project#53)

* Refactored MonitorType such that the AD definition option cannot be selected for aggregation monitors. Also implemented logic to clear the form when changing from an unsupported definition option to aggregation monitor type. Reimplemented the query response display in the trigger panel when defining an AD trigger condition using the query response option. Also made minor edits to various other classes to align UX with mocks.

* Refactored actions panel to align with new mocks. Disabled throttling when per execution is selected in the action configuration.

* Refactored the visual editor for bucket-level triggers to align with new mocks.

* Refactored the visual and response editor options for query-level AD triggers to align with new mocks. Refactored form reset logic to remove trigger definitions from the form when changing the monitor type.

* Implemented logic to set bucket-level monitor search type to a default value when changing from a query-level monitor with an unsupported search type.

* Refactored monitor details panel on the monitor creation/edit page to align with mocks.

* Implemented flyout side panel for the alerts dashboard.

* Refactored the popover used by query-level visual trigger editor to dropdown menus. Refactored actions panel to hide throttling options when per execution is selected. Set a default throttling value for bucket-level actions. Refactored margins and padding in various classes to align with mocks

* Refactored query trigger definition components so code editor box sizes align with mocks. Add a prompt to select a detector for anomaly detection monitors when.

* Refactored the alert dashboard flyout to remove the close button in the top-right corner. Moved the detector link on the monitor details page for anomaly detection monitors from under the monitor name to the overview table.

* Fixed a bug that was causing the alerts dashboard flyout to display a severity 1 level higher than the actual level. Moved the log statement to the default case of getOverviewStats::getMonitorLevelType. Implemented a toast indicating when a test message is sent to a destination.

* Refactored Dashboard::getMonitors to function without using the from and size parameters from getAlerts.

Signed-off-by: Annie Lee <[email protected]>
@annie3431 annie3431 requested a review from qreshi September 2, 2021 00:37
@annie3431 annie3431 merged commit b849278 into opensearch-project:main Sep 2, 2021
@annie3431 annie3431 deleted the dev-base branch September 2, 2021 00:45
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

3 participants