opensearch-project / opensearch-project/alerting
[BUG] ctx.monitor only contains _id, _version and name
Nobody has claimed this yet.
- Dominant language
- Kotlin
- Stars
- 82
- Forks
- 133
- Avg merge
- 2d 11h
- Merged PRs (30d)
- 9
Description
As per the documentation (https://opensearch.org/docs/latest/observing-your-data/alerting/monitors/#available-variables), one can access ctx.monitor.name, ctx.monitor.type, ctx.monitor.enabled, ctx.monitor.enabled_time, ctx.monitor.schedule, ctx.monitor.inputs, triggers and ctx.monitor.last_update_time in an alert message. I used {{ctx.monitor}} to see what can I use from it, but after sending it in an email, I only got this information:
{_id=, _version=1, name=mymonitor, enabled=true}
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the available-variables documentation linked in the issue and reproduce the email using {{ctx.monitor}}. Trace how the monitor context is assembled and serialized, then verify that the documented fields—such as type, schedule, inputs, triggers, and last_update_time—are included in the resulting alert message.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- kotlin
- Domain
- backend, observability
- Issue type
- Bug
- Difficulty
- 4/5
- Estimated time
- 3-5 days
- Activity status
- Stale
- Clarity
- Mostly clear
- Newbie friendliness
- 35/100