Skip to content

[ResponseOps][MW] Maintenance Window oas documentation #212377

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

Merged
merged 11 commits into from
Apr 15, 2025

Conversation

adcoelho
Copy link
Contributor

@adcoelho adcoelho commented Feb 25, 2025

Merging into a feature branch

Summary

I recently added a few public routes for managing maintenance windows. I will need to generate documentation for these routes for my' on week' task.

  • Updated capture_oas_snapshot to include /api/alerting/maintenance_window
  • Added tags to the maintenance window routes

@adcoelho adcoelho requested a review from lcawl February 25, 2025 14:03
@adcoelho adcoelho requested review from a team as code owners February 25, 2025 14:03
Copy link
Contributor

@lcawl lcawl left a comment

Choose a reason for hiding this comment

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

There are missing descriptions that can be rectified in future PRs, but otherwise lgtm
Thanks for adding the automated docs!

Copy link
Member

@jbudz jbudz left a comment

Choose a reason for hiding this comment

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

.buildkite/scripts/steps/checks/capture_oas_snapshot.sh LGTM

@adcoelho adcoelho changed the title [OnWeek] Maintenance Window oas documentation [ResponseOps][MW][WIP] Maintenance Window oas documentation Mar 20, 2025
- Added route tags
- Small text changes
@adcoelho
Copy link
Contributor Author

adcoelho commented Apr 1, 2025

@lcawl I had to rebase this PR, could you please take another look?

All routes are inside x-pack/platform/plugins/shared/alerting/server/routes/maintenance_window/apis/external/. Maybe some descriptions/summaries need to be rephrased.

…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/alerting/maintenance_window --update --no-serverless'
adcoelho and others added 3 commits April 2, 2025 11:34
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/alerting/maintenance_window --update --no-serverless'
@lcawl
Copy link
Contributor

lcawl commented Apr 4, 2025

@lcawl I had to rebase this PR, could you please take another look?... Maybe some descriptions/summaries need to be rephrased.

Here's a suggestion for changes to the enabled description, since "disabled" is a word that we use with sensitivity:

The state of the maintenance window. If true, the maintenance window is activated and notifications are suppressed on the specified schedule.

@elasticmachine
Copy link
Contributor

elasticmachine commented Apr 14, 2025

💔 Build Failed

Failed CI Steps

Test Failures

  • [job] [logs] FTR Configs #54 / aiops change point detection UI detects a change point when no split field is selected
  • [job] [logs] FTR Configs #54 / aiops change point detection UI detects a change point when no split field is selected
  • [job] [logs] Jest Tests #5 / createMaintenanceWindowRoute should create the maintenance window
  • [job] [logs] Jest Tests #5 / createMaintenanceWindowRoute should create the maintenance window
  • [job] [logs] Jest Tests #5 / deleteMaintenanceWindowRoute should delete the maintenance window
  • [job] [logs] Jest Tests #5 / deleteMaintenanceWindowRoute should delete the maintenance window
  • [job] [logs] Jest Tests #5 / getMaintenanceWindowRoute should get the maintenance window
  • [job] [logs] Jest Tests #5 / getMaintenanceWindowRoute should get the maintenance window
  • [job] [logs] FTR Configs #31 / Kibana embedded in iframe should open Kibana for logged-in user
  • [job] [logs] FTR Configs #31 / Kibana embedded in iframe should open Kibana for logged-in user
  • [job] [logs] FTR Configs #27 / Licensing plugin public client feature_usage API "before all" hook for "allows to register features to the server"
  • [job] [logs] FTR Configs #27 / Licensing plugin public client feature_usage API "before all" hook for "allows to register features to the server"
  • [job] [logs] FTR Configs #57 / security app - login selector Basic functionality can login with Login Form resetting target URL
  • [job] [logs] FTR Configs #57 / security app - login selector Basic functionality can login with Login Form resetting target URL
  • [job] [logs] FTR Configs #110 / security app Security Login Page can login
  • [job] [logs] FTR Configs #110 / security app Security Login Page can login
  • [job] [logs] FTR Configs #108 / serverless observability UI Serverless Observability Cases Case View Lens visualization adds lens visualization in description
  • [job] [logs] FTR Configs #108 / serverless observability UI Serverless Observability Cases Case View Lens visualization adds lens visualization in description
  • [job] [logs] FTR Configs #18 / serverless security UI Serverless Security Cases Case View Lens visualization adds lens visualization in description
  • [job] [logs] FTR Configs #18 / serverless security UI Serverless Security Cases Case View Lens visualization adds lens visualization in description
  • [job] [logs] FTR Configs #10 / Spaces app Copy Saved Objects to Space "before all" hook for "allows a dashboard to be copied to the marketing space, with all references"
  • [job] [logs] FTR Configs #10 / Spaces app Copy Saved Objects to Space "before all" hook for "allows a dashboard to be copied to the marketing space, with all references"
  • [job] [logs] Jest Tests #12 / to_esql should work with iana timezones that fall udner utc+0
  • [job] [logs] Jest Tests #12 / to_esql should work with iana timezones that fall udner utc+0
  • [job] [logs] Jest Tests #5 / updateMaintenanceWindowRoute should update a maintenance window
  • [job] [logs] Jest Tests #5 / updateMaintenanceWindowRoute should update a maintenance window
  • [job] [logs] FTR Configs #14 / X-Pack Accessibility Tests - Group 1 Security Accessibility Login Page User can login with a11y requirements
  • [job] [logs] FTR Configs #14 / X-Pack Accessibility Tests - Group 1 Security Accessibility Login Page User can login with a11y requirements

Metrics [docs]

✅ unchanged

History

For example, a maintenance window prevents false alarms during planned outages.
externalDocs:
description: Maintenance window documentation
url: https://www.elastic.co/docs/explore-analyze/alerts-cases/alerts/maintenance-windows
Copy link
Member

Choose a reason for hiding this comment

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

Should we have a dedicated URL outside alerts? Like https://www.elastic.co/docs/explore-analyze/maintenance-windows. I am not sure, tbh what this URL is about 🙂.

@@ -53,6 +53,7 @@ export const createMaintenanceWindowRoute = (
options: {
access: 'public',
summary: 'Create a maintenance window.',
tags: ['oas-tag:alerting'],
Copy link
Member

Choose a reason for hiding this comment

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

I am sure you are aware, but a note to not forget to resolve the conflicts with the public APIs PR where we changed the tags.

@adcoelho adcoelho changed the title [ResponseOps][MW][WIP] Maintenance Window oas documentation [ResponseOps][MW] Maintenance Window oas documentation Apr 15, 2025
adcoelho and others added 3 commits April 15, 2025 10:27
…t --include-path /api/status --include-path /api/alerting/rule/ --include-path /api/alerting/rules --include-path /api/actions --include-path /api/security/role --include-path /api/spaces --include-path /api/streams --include-path /api/fleet --include-path /api/dashboards --include-path /api/saved_objects/_import --include-path /api/saved_objects/_export --include-path /api/alerting/maintenance_window --update --no-serverless'
@adcoelho adcoelho merged commit a99abf4 into elastic:mw-public-api Apr 15, 2025
8 of 9 checks passed
adcoelho added a commit that referenced this pull request Apr 16, 2025
Closes #198685

## Summary

This PR creates a public Maintenance Window API.

The work was done on a feature branch over multiple separate PRs. Here
we will merge the feature branch into `main`.
- #209734
- #213694
- #214747
- #213771

The [documentation PR](#212377)
still needs to be merged.

## Release Notes

Publish new public APIs for the Maintenance Window.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
adcoelho added a commit to adcoelho/kibana that referenced this pull request Apr 17, 2025
…ic#216756)

Closes elastic#198685

## Summary

This PR creates a public Maintenance Window API.

The work was done on a feature branch over multiple separate PRs. Here
we will merge the feature branch into `main`.
- elastic#209734
- elastic#213694
- elastic#214747
- elastic#213771

The [documentation PR](elastic#212377)
still needs to be merged.

## Release Notes

Publish new public APIs for the Maintenance Window.

---------

Co-authored-by: kibanamachine <42973632+kibanamachine@users.noreply.github.com>
Co-authored-by: lcawl <lcawley@elastic.co>
(cherry picked from commit 08d0717)

# Conflicts:
#	.buildkite/scripts/steps/checks/capture_oas_snapshot.sh
#	oas_docs/overlays/kibana.overlays.shared.yaml
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.

6 participants