Skip to content

Conversation

@aalmenar
Copy link
Contributor

@aalmenar aalmenar commented Apr 29, 2025

Summary

This helps solving issue: #1085

Since this adds a new placeholder shouldn't interfere with the current behaviour gatus has.

Checklist

  • Tested to validate that the changes work as intended, if applicable.
  • Updated documentation in README.md, if applicable.

@github-actions github-actions bot added feature New feature or request area/alerting Related to alerting labels Apr 29, 2025
@aalmenar aalmenar changed the title feat(alerting): Add RESULT_CONDITIONS in custom alert to have more in… feat(alerting): Add RESULT_CONDITIONS in custom alert to have more information Apr 29, 2025
@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch 3 times, most recently from e9223fd to e7597a1 Compare May 15, 2025 14:00
@aalmenar
Copy link
Contributor Author

Rebased patch after: fix(alerting): Escape custom result errors

@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch 2 times, most recently from 869fdf9 to 2ddec80 Compare May 17, 2025 21:55
@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch 3 times, most recently from 1a1426e to 08eb98e Compare June 1, 2025 20:39
@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch from 1e3abec to a1a6a1b Compare July 5, 2025 10:10
@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch 2 times, most recently from 7d9acd2 to 2dffcf0 Compare July 15, 2025 07:20
@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch from 2dffcf0 to da56af1 Compare August 1, 2025 08:07
@soymgomez
Copy link

It would be nice to have this on Gatus! For us it is useful to integrate it with our alert system.

@TwiN Could you take a look at it?

@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch 3 times, most recently from d12c941 to 7d13b47 Compare August 12, 2025 09:54
@aalmenar aalmenar requested a review from TwiN August 12, 2025 10:57
@aalmenar
Copy link
Contributor Author

@TwiN any comments after the changes ?

@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch from 7d13b47 to b96dbb1 Compare August 19, 2025 11:11
@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch from b96dbb1 to 3225f58 Compare September 2, 2025 10:18
@TwiN
Copy link
Owner

TwiN commented Sep 2, 2025

I'm working on a very large change that touches nearly half of the files, that's why I haven't looked at this yet FYI

@aalmenar
Copy link
Contributor Author

I'm working on a very large change that touches nearly half of the files, that's why I haven't looked at this yet FYI

Since 5.24.0 is released now, can we revisit this?

@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch 2 times, most recently from de3e119 to 6cd3393 Compare September 22, 2025 08:24
@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch from 6cd3393 to 67b591b Compare September 30, 2025 10:29
@aalmenar
Copy link
Contributor Author

aalmenar commented Oct 4, 2025

I'm working on a very large change that touches nearly half of the files, that's why I haven't looked at this yet FYI

Don’t forget this !! 😉

@TwiN
Copy link
Owner

TwiN commented Oct 4, 2025

@aalmenar Thank you for the reminder!

@TwiN
Copy link
Owner

TwiN commented Oct 4, 2025

Can you test your change? I see you checked that you tested the change, but I'm not seeing any tests 🧐

@aalmenar
Copy link
Contributor Author

aalmenar commented Oct 4, 2025

Can you test your change? I see you checked that you tested the change, but I'm not seeing any tests 🧐

Sure, i will add some tests to the changes. But i have it on at least 4 instances working correctly. I will add the tests no matter what.

@TwiN
Copy link
Owner

TwiN commented Oct 4, 2025

Thank you! The main reason I want tests is in part to make sure it works, but also to make sure future changes don't break the new feature.

I'll have another look once you pushed the tests, thank you for your patience!

…formation on an alert while using custom alerting module

Add testing of new feature
@aalmenar aalmenar force-pushed the add_conditions_to_custom_alerting branch from 488e5da to 60e75f8 Compare October 6, 2025 08:51
@aalmenar
Copy link
Contributor Author

aalmenar commented Oct 6, 2025

Hi @TwiN, i have added a test for this feature, and squashed the commits into 1.

Hope its ok for finally merging it.

Thank you! The main reason I want tests is in part to make sure it works, but also to make sure future changes don't break the new feature.

I'll have another look once you pushed the tests, thank you for your patience!

@TwiN TwiN merged commit 129fb82 into TwiN:master Oct 6, 2025
2 checks passed
@TwiN
Copy link
Owner

TwiN commented Oct 6, 2025

Thank you for the contribution!

@aalmenar aalmenar deleted the add_conditions_to_custom_alerting branch October 6, 2025 16:49
alexlebens pushed a commit to alexlebens/infrastructure that referenced this pull request Oct 7, 2025
This PR contains the following updates:

| Package | Update | Change |
|---|---|---|
| [ghcr.io/twin/gatus](https://github.com/TwiN/gatus) | minor | `v5.25.2` -> `v5.26.0` |

---

### Release Notes

<details>
<summary>TwiN/gatus (ghcr.io/twin/gatus)</summary>

### [`v5.26.0`](https://github.com/TwiN/gatus/releases/tag/v5.26.0)

[Compare Source](TwiN/gatus@v5.25.2...v5.26.0)

#### What's Changed

- feat(alerting): Add support for n8n alerts by [@&#8203;TwiN](https://github.com/TwiN) in [#&#8203;1309](TwiN/gatus#1309)
- feat(client): Support body placeholder for SSH endpoints  by [@&#8203;yansh97](https://github.com/yansh97) in [#&#8203;1286](TwiN/gatus#1286)
- feat(alerting): Add RESULT\_CONDITIONS in custom alert to have more information by [@&#8203;aalmenar](https://github.com/aalmenar) in [#&#8203;1086](TwiN/gatus#1086)
- fix(alerting): Implement deduplication key generation for incidentio alerts by [@&#8203;NerdySoftPaw](https://github.com/NerdySoftPaw) in [#&#8203;1296](TwiN/gatus#1296)
- fix(ui): Swap oldest/newest result time for SuiteCard.vue by [@&#8203;TwiN](https://github.com/TwiN) in [#&#8203;1308](TwiN/gatus#1308)
- fix(alerting): Format link from Telegram alert description when sending message  by [@&#8203;andriyor](https://github.com/andriyor) in [#&#8203;1200](TwiN/gatus#1200)
- chore(deps): Update aws-sdk-go to aws-sdk-go-v2 by [@&#8203;TwiN](https://github.com/TwiN) in [#&#8203;1305](TwiN/gatus#1305)

#### New Contributors

- [@&#8203;NerdySoftPaw](https://github.com/NerdySoftPaw) made their first contribution in [#&#8203;1296](TwiN/gatus#1296)
- [@&#8203;yansh97](https://github.com/yansh97) made their first contribution in [#&#8203;1286](TwiN/gatus#1286)
- [@&#8203;andriyor](https://github.com/andriyor) made their first contribution in [#&#8203;1200](TwiN/gatus#1200)

**Full Changelog**: <TwiN/gatus@v5.25.2...v5.26.0>

</details>

---

### Configuration

📅 **Schedule**: Branch creation - At any time (no schedule defined), Automerge - At any time (no schedule defined).

🚦 **Automerge**: Disabled by config. Please merge this manually once you are satisfied.

♻ **Rebasing**: Whenever PR is behind base branch, or you tick the rebase/retry checkbox.

🔕 **Ignore**: Close this PR and you won't be reminded about this update again.

---

 - [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check this box

---

This PR has been generated by [Renovate Bot](https://github.com/renovatebot/renovate).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiI0MS4xMzUuNCIsInVwZGF0ZWRJblZlciI6IjQxLjEzNS40IiwidGFyZ2V0QnJhbmNoIjoibWFpbiIsImxhYmVscyI6WyJpbWFnZSJdfQ==-->

Reviewed-on: https://gitea.alexlebens.dev/alexlebens/infrastructure/pulls/1689
Co-authored-by: Renovate Bot <[email protected]>
Co-committed-by: Renovate Bot <[email protected]>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

area/alerting Related to alerting feature New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants