Skip to content

Commit 589d468

Browse files
committed
allow updating monitor namespace
1 parent 2da7b6a commit 589d468

File tree

2 files changed

+2
-3
lines changed

2 files changed

+2
-3
lines changed

docs/resources/kibana_synthetics_monitor.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -72,7 +72,7 @@ resource "elasticstack_kibana_synthetics_monitor" "my_monitor" {
7272
- `http` (Attributes) HTTP Monitor specific fields (see [below for nested schema](#nestedatt--http))
7373
- `icmp` (Attributes) ICMP Monitor specific fields (see [below for nested schema](#nestedatt--icmp))
7474
- `locations` (List of String) Where to deploy the monitor. Monitors can be deployed in multiple locations so that you can detect differences in availability and response times across those locations.
75-
- `namespace` (String) Fleet namespace. The `namespace` field should be lowercase and not contain spaces. The namespace must not include any of the following characters: *, \, /, ?, ", <, >, |, whitespace, ,, #, :, or -. Default: `default`
75+
- `namespace` (String) Fleet namespace, the namespace of a datastream where test documents are stored. Note: if you change its value, kibana creates new datastream. A user needs permissions for new/old datastream in update case to be able to see full monitor history. The `namespace` field should be lowercase and not contain spaces. The namespace must not include any of the following characters: *, \, /, ?, ", <, >, |, whitespace, ,, #, :, or -. Default: `default`
7676
- `params` (String) Monitor parameters. Raw JSON object, use `jsonencode` function to represent JSON
7777
- `private_locations` (List of String) These Private Locations refer to locations hosted and managed by you, whereas locations are hosted by Elastic. You can specify a Private Location using the location’s name.
7878
- `retest_on_failure` (Boolean) Enable or disable retesting when a monitor fails. By default, monitors are automatically retested if the monitor goes from "up" to "down". If the result of the retest is also "down", an error will be created, and if configured, an alert sent. Then the monitor will resume running according to the defined schedule. Using retest_on_failure can reduce noise related to transient problems. Default: `true`.

internal/kibana/synthetics/schema.go

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -153,11 +153,10 @@ func monitorConfigSchema() schema.Schema {
153153
Computed: true,
154154
},
155155
"namespace": schema.StringAttribute{
156-
MarkdownDescription: "Fleet namespace. The `namespace` field should be lowercase and not contain spaces. The namespace must not include any of the following characters: *, \\, /, ?, \", <, >, |, whitespace, ,, #, :, or -. Default: `default`",
156+
MarkdownDescription: "Fleet namespace, the namespace of a datastream where test documents are stored. Note: if you change its value, kibana creates new datastream. A user needs permissions for new/old datastream in update case to be able to see full monitor history. The `namespace` field should be lowercase and not contain spaces. The namespace must not include any of the following characters: *, \\, /, ?, \", <, >, |, whitespace, ,, #, :, or -. Default: `default`",
157157
Optional: true,
158158
PlanModifiers: []planmodifier.String{
159159
stringplanmodifier.UseStateForUnknown(),
160-
stringplanmodifier.RequiresReplace(),
161160
},
162161
Computed: true,
163162
},

0 commit comments

Comments
 (0)