feat: implement observability log alertgroups (#785)

This commit is contained in:
Mauritz Uphoff 2025-04-29 11:43:05 +02:00 committed by GitHub
parent 616788087c
commit 3c20b7743f
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
15 changed files with 1860 additions and 13 deletions

View file

@ -129,14 +129,14 @@ func (a *alertGroupResource) Configure(ctx context.Context, req resource.Configu
// Schema defines the schema for the resource.
func (a *alertGroupResource) Schema(_ context.Context, _ resource.SchemaRequest, resp *resource.SchemaResponse) {
resp.Schema = schema.Schema{
Description: "Observability alert group resource schema. Must have a `region` specified in the provider configuration.",
Description: "Observability alert group resource schema. Used to create alerts based on metrics (Thanos). Must have a `region` specified in the provider configuration.",
Attributes: map[string]schema.Attribute{
"id": schema.StringAttribute{
Description: descriptions["id"],
Computed: true,
},
"project_id": schema.StringAttribute{
Description: "STACKIT project ID to which the alert group is associated.",
Description: descriptions["project_id"],
Required: true,
Validators: []validator.String{
validate.UUID(),