Skip to content

Conversation

julienbourdeau
Copy link
Contributor

A TriggeredAlert is saved to DB when the current usage of the subscription crosses an alerting thresholds.

It's sent over webhooks (serialized once and saved to webhooks.payload column). There is no API or graphql resolver to access triggered alerts.

This adds 2 queries to the serialization. Nowhere in the code we serialize multiple triggered alert, so no "eager load" to edit.

This is done to help customer easily retrieve the customer to warn.

CleanShot 2025-06-12 at 09 45 15@2x

@julienbourdeau julienbourdeau merged commit 2bdf416 into main Jun 12, 2025
14 checks passed
@julienbourdeau julienbourdeau deleted the feat/alerting-add-customer branch June 12, 2025 08:23
diegocharles pushed a commit that referenced this pull request Jul 11, 2025
…3819)

A TriggeredAlert is saved to DB when the current usage of the
subscription crosses an alerting thresholds.

It's sent over webhooks (serialized once and saved to `webhooks.payload`
column). There is no API or graphql resolver to access triggered alerts.

This adds 2 queries to the serialization. Nowhere in the code we
serialize multiple triggered alert, so no "eager load" to edit.

This is done to help customer easily retrieve the customer to warn.

![CleanShot 2025-06-12 at 09 45
15@2x](https://github.com/user-attachments/assets/d3443021-887b-4f44-8550-5260b78d51e0)
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.

3 participants