Skip to content

Conversation

@emilioalvap
Copy link
Contributor

@emilioalvap emilioalvap commented Nov 18, 2025

Summary

Adds maintenance windows support for all monitor types:

  monitor.use({
    id: 'example-monitor',
    schedule: 10,
    maintenanceWindows: ["1a083e2e-1847-4f27-a7ab-a34ff0b23eac"]
  });

Related issues:

@emilioalvap emilioalvap requested a review from mcapell November 18, 2025 17:19
mcapell
mcapell previously approved these changes Nov 18, 2025
Copy link
Contributor

@mcapell mcapell left a comment

Choose a reason for hiding this comment

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

LGTM!

Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

Do we need to provide via CLI and Synthetics config?

@emilioalvap
Copy link
Contributor Author

@vigneshshanmugam This already supports mw through the synthetics config file, I'm adding the cli support now. Thank you!

mcapell
mcapell previously approved these changes Nov 21, 2025
});
});

it('supports maintenance-windows in config', async () => {
Copy link
Contributor

Choose a reason for hiding this comment

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

Nice test!

Copy link
Member

@vigneshshanmugam vigneshshanmugam left a comment

Choose a reason for hiding this comment

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

Added few suggestions, the code LGTM

emilioalvap added a commit to elastic/docs-content that referenced this pull request Nov 24, 2025
<!--
Thank you for contributing to the Elastic Docs! 🎉
Use this template to help us efficiently review your contribution.
-->

## Summary
<!--
Describe what your PR changes or improves.  
If your PR fixes an issue, link it here. If your PR does not fix an
issue, describe the reason you are making the change.
-->

Add maintenance windows options to synthetics docs. Relates to
elastic/synthetics#1103.

## Generative AI disclosure
<!--
To help us ensure compliance with the Elastic open source and
documentation guidelines, please answer the following:
-->
1. Did you use a generative AI (GenAI) tool to assist in creating this
contribution?
- [ ] Yes  
- [x] No  
<!--
2. If you answered "Yes" to the previous question, please specify the
tool(s) and model(s) used (e.g., Google Gemini, OpenAI ChatGPT-4, etc.).

Tool(s) and model(s) used:
-->

---------

Co-authored-by: Mike Birnstiehl <114418652+mdbirnstiehl@users.noreply.github.com>
@emilioalvap emilioalvap dismissed stale reviews from vigneshshanmugam and mcapell via 5fa30bb November 24, 2025 12:54
@emilioalvap emilioalvap requested a review from mcapell November 24, 2025 13:38
@emilioalvap emilioalvap merged commit c402568 into main Nov 24, 2025
8 checks passed
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.

4 participants