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

[UX] Create alerting monitor from visualizations #483

Closed
Tracked by #66
xeniatup opened this issue Feb 14, 2023 · 1 comment
Closed
Tracked by #66

[UX] Create alerting monitor from visualizations #483

xeniatup opened this issue Feb 14, 2023 · 1 comment

Comments

@xeniatup
Copy link

xeniatup commented Feb 14, 2023

As a user who has found a problem area that they want to monitor (e.g. setting up a new service), I want to setup an alert from the visualization that I’m looking at, so I don’t have to go to the alerts plugin to setup an alert.
UX Meta issue

Describe the solution you'd like
#458
#457

User story:
User quickly creates an alerting monitor to use the context of visualization and to receive alerts on a time series visualization on a dashboard. The monitor details are prefilled from the data source and metrics of the visualization.

See also - Associate existing monitor to a visualization

Screenshot 2023-02-14 at 10 21 56 AM

Create new monitor from visualization:

create-alerting-monitor.mp4

Screen 1: User selects a visualization on a dashboard and selects "Alerting" from the visualization context menu OuiContextMenu:

Screenshot 2023-03-11 at 1 18 29 PM

Screen 2: User selects "Add alerting monitor" from the context menu:

Screenshot 2023-03-11 at 1 19 21 PM

Screen 3a: "Add alerting monitor" opens a flyout OuiFlyout with "Create alerting monitor" form (OuiFormRow, OuiFormRows) prefilled with the information from the visualization (including data source information and suggested monitor name):

Screenshot 2023-04-04 at 11 51 58 AM

Screen 4: User toggles visualization for additional context (optional):

Screenshot 2023-04-04 at 11 52 25 AM

Screen 5: User can expand accordion to review and edit basic monitor details prefilled with defaults. All fields are editable.
Note on the accordion behavior - the description is dynamic and changes onBlur with the form inputs.

Screenshot 2023-04-04 at 11 52 52 AM

Screen 6: User can expand accordion to review and edit advanced monitor details OuiAccordion.
Note on the accordion behavior - Only one nested accordion can be expanded at every moment.

Screenshot 2023-04-04 at 11 53 17 AM

Screen 7a: User can edit default Metric "COUNT OF documents" using inline form (OuiFlexGroup, OuiFormRow).

Screenshot 2023-04-04 at 11 54 49 AM

Screen 8a: User can edit default Time range (1 hour) using form field with append prop and OuiContextMenu.

Screenshot 2023-04-04 at 11 57 00 AM

Screen 9a: User can add a Data filter (OuiBadges, OuiFlexGroup, OuiFormRow)

Screenshot 2023-04-04 at 11 57 38 AM

Screen 10: User can add grouping by selecting a field to Group by (OuiComboBox with singleSelection prop.).

Screenshot 2023-04-04 at 11 57 59 AM

Screen 11a: User provides a trigger condition.
Note on accordion behavior - Trigger accordion is expanded by default. The nested accordion with trigger condition is expanded by default for user to review the details and provide numeric threshold value

Screenshot 2023-03-11 at 1 44 20 PM

Screen 12a: User selects a notification channel from the list of existing channels (OuiComboBox). Additionally user can select "Manage channels" to access Notification plugin UI in a new tab (OuiButton).
Note on the element behavior - The list of channels is refreshing dynamically. If any new channels are added in Notifications plugin, those could be accessed from the list without reloading the form.

Screenshot 2023-03-11 at 1 46 58 PM

Screen 13: After selecting a channel user can edit default notification settings and the message copy by selecting "Configure notification".

Screenshot 2023-03-23 at 5 40 17 PM

Screen 14a: Selecting "Configure" shows a modal dialog over the flyout with a form (OuiModal).

Screenshot 2023-04-04 at 12 00 17 PM

Screen 15: Additional notifications are added by selecting "Add notification". Next notification is placed in a new nested accordion expanded for editing. The first notification accordion is collapsed after the second notification accordion is added.

Screenshot 2023-03-11 at 1 53 10 PM

Screen 16: Additional triggers are added by selecting "Add trigger". A new trigger is placed in a new expanded accordion below the first one. The first one is collapsed.

Screenshot 2023-03-11 at 1 58 39 PM

Screen 17: User selects "Create monitor" button. The flyout closes, user returns to the dashboard.

Screenshot 2023-04-04 at 12 01 03 PM

Error states:

Notes on validation error states:

  1. The flyout is kept open and scrolled to the top
  2. Error callout on the top
  3. All accordions that contain errors are expanded
  4. All failed form rows in invalid state
  5. Toast message for index permission errors, plugin permission errors, API failed responses
  6. Missing accordion headers and descriptions use hyphen as placeholder for missing values

Screen 3b: (Validation error state) "Add alerting monitor" opens a flyout OuiFlyout with "Create alerting monitor" option prefilled with the information from the visualization (including data source information and suggested monitor name):

Screenshot 2023-04-04 at 12 01 41 PM

Screen 7b: (Validation error state) User can edit default Metric "COUNT OF documents" using inline form (OuiFlexGroup, OuiFormRow).

Screenshot 2023-04-04 at 12 02 38 PM

Screen 8b: (Validation error state) User can edit default Time range (1 hour) using form field with append prop and OuiContextMenu.

Screenshot 2023-04-04 at 12 03 39 PM

Screen 9b: (Validation error state) User can add a Data filter (OuiBadges, OuiFlexGroup, OuiFormRow)
Screenshot 2023-04-04 at 12 04 08 PM

Screen 11b: (Validation error state) User provides a trigger condition.

Screenshot 2023-03-11 at 8 55 30 PM

Screen 12b: If Notifications plugin is not installed, user sees a warning callout OuiCallOut .

Screenshot 2023-04-04 at 12 07 40 PM

Screen 14b: (Validation error state) Selecting "Configure notification" shows modal dialog over the flyout with a form (OuiModal).

Screenshot 2023-04-04 at 12 09 55 PM

@xeniatup
Copy link
Author

Done

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

No branches or pull requests

1 participant