Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion docs/resources/kibana_slo.md
Original file line number Diff line number Diff line change
Expand Up @@ -213,7 +213,7 @@ resource "elasticstack_kibana_slo" "custom_metric" {
- `kql_custom_indicator` (Block List, Max: 1) (see [below for nested schema](#nestedblock--kql_custom_indicator))
- `metric_custom_indicator` (Block List, Max: 1) (see [below for nested schema](#nestedblock--metric_custom_indicator))
- `settings` (Block List, Max: 1) The default settings should be sufficient for most users, but if needed, these properties can be overwritten. (see [below for nested schema](#nestedblock--settings))
- `slo_id` (String) An ID (8 and 36 characters). If omitted, a UUIDv1 will be generated server-side.
- `slo_id` (String) An ID (8 and 48 characters). If omitted, a UUIDv1 will be generated server-side.
- `space_id` (String) An identifier for the space. If space_id is not provided, the default space is used.
- `tags` (List of String) The tags for the SLO.

Expand Down
11 changes: 6 additions & 5 deletions internal/kibana/slo.go
Original file line number Diff line number Diff line change
Expand Up @@ -81,11 +81,12 @@ func getSchema() map[string]*schema.Schema {

return map[string]*schema.Schema{
"slo_id": {
Description: "An ID (8 and 36 characters). If omitted, a UUIDv1 will be generated server-side.",
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
Description: "An ID (8 and 48 characters). If omitted, a UUIDv1 will be generated server-side.",
Type: schema.TypeString,
Optional: true,
Computed: true,
ForceNew: true,
ValidateFunc: validation.StringLenBetween(8, 48),
},
"name": {
Description: "The name of the SLO.",
Expand Down
Loading