You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
resource "sentry_rule" "default" {
depends_on = [sentry_project.default]
organization = var.organization
project = var.app_name
name = "Send a notification for new events"
action_match = "any"
frequency = 60
conditions = [
{
id = "sentry.rules.conditions.first_seen_event.FirstSeenEventCondition"
},
{
id = "sentry.rules.conditions.regression_event.RegressionEventCondition",
},
{
id = "sentry.rules.conditions.reappeared_event.ReappearedEventCondition"
},
{
interval = "1h"
value = "1"
id = "sentry.rules.conditions.event_frequency.EventUniqueUserFrequencyCondition"
}
]
actions = [
{
id = "sentry.mail.actions.NotifyEmailAction"
target_type = "IssueOwners"
target_identifier = ""
},
{
name = "Send a notification to the Lightmatter Slack workspace to #${var.app_name}-internal and show tags [] in notification"
workspace = var.slack_workspace_id
tags = "environment"
id = "sentry.integrations.slack.notify_action.SlackNotifyServiceAction"
channel = "#${var.app_name}-internal"
}
]
}
With sentry: map[actions:[Ensure at least one action is enabled and all required fields are filled in.] conditions:[Ensure at least one action is enabled and all required fields are filled in.]
Removing the EventUniqueUserFrequencyCondition and NotifyEmailAction will fix the issue.
It's worth mentioning that the condition given in the documentation EG:
conditions = [
{
id = "sentry.rules.conditions.event_frequency.EventFrequencyCondition"
value = 500
interval = "1h"
}
]
Will trigger the condition error as well.
The text was updated successfully, but these errors were encountered:
The following rule fails validation:
With
sentry: map[actions:[Ensure at least one action is enabled and all required fields are filled in.] conditions:[Ensure at least one action is enabled and all required fields are filled in.]
Removing the EventUniqueUserFrequencyCondition and NotifyEmailAction will fix the issue.
It's worth mentioning that the condition given in the documentation EG:
Will trigger the condition error as well.
The text was updated successfully, but these errors were encountered: