Skip to content

Commit cc99cdd

Browse files
refactor(observability): increase the character limit for alertgroup's rule.expression (#1292)
Increase the limit to match the updated limit on the api https://docs.api.stackit.cloud/documentation/argus/version/v1#tag/alert-groups/operation/v1_projects_instances_alertgroups_create (v1.1.1) Co-authored-by: Alexander Dahmen <alexander.dahmen@inovex.de>
1 parent 72a23be commit cc99cdd

File tree

1 file changed

+1
-1
lines changed
  • stackit/internal/services/observability/alertgroup

1 file changed

+1
-1
lines changed

stackit/internal/services/observability/alertgroup/resource.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -227,7 +227,7 @@ func (a *alertGroupResource) Schema(_ context.Context, _ resource.SchemaRequest,
227227
Description: descriptions["expression"],
228228
Required: true,
229229
Validators: []validator.String{
230-
stringvalidator.LengthBetween(1, 600),
230+
stringvalidator.LengthBetween(1, 2000),
231231
// The API currently accepts expressions with trailing newlines but does not return them,
232232
// leading to inconsistent Terraform results. This issue has been reported to the Obs team.
233233
// Until it is resolved, we proactively notify users if their input contains a trailing newline.

0 commit comments

Comments
 (0)