Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
38 commits
Select commit Hold shift + click to select a range
e039b2b
[Documentation] Update rule resource ID description. (#1047)
adcoelho Mar 11, 2025
2fa6506
Bump github.com/hashicorp/go-cty (#1046)
dependabot[bot] Mar 12, 2025
dfaa416
devcontainer
Zyther Feb 13, 2025
8fd542c
schema and model to support global data tags
Zyther Feb 18, 2025
7f8790f
minimum version
Zyther Feb 18, 2025
d75bfd8
tests
Zyther Feb 18, 2025
506c284
test cleanup
Zyther Feb 18, 2025
c0b8f7b
lint
Zyther Feb 19, 2025
7b5a8c8
schema description
Zyther Feb 19, 2025
6116783
docs
Zyther Feb 19, 2025
4822826
if datatags is nil
Zyther Feb 19, 2025
aea89ce
len not nil
Zyther Feb 19, 2025
008ce70
reflect instead
Zyther Feb 19, 2025
a2a3674
ehh
Zyther Feb 19, 2025
fa76d5b
deref
Zyther Feb 19, 2025
3e79fa0
test mod
Zyther Feb 19, 2025
178416a
temp dev
Zyther Feb 19, 2025
c487f13
temp dev2
Zyther Feb 19, 2025
35b3f61
temp dev 3
Zyther Feb 19, 2025
4289452
to jsonencode
Zyther Mar 3, 2025
fe4320a
docs
Zyther Mar 3, 2025
3348ea6
pointers
Zyther Mar 3, 2025
3a8c668
maybe json
Zyther Mar 4, 2025
b6697b3
8.17.3 generate with new transform to combine global_data_tags schemas
Zyther Mar 4, 2025
2658557
amazing, types arent screaming and tests pass
Zyther Mar 4, 2025
16f7951
changelog
Zyther Mar 5, 2025
4503604
seems like this breaks other things
Zyther Mar 5, 2025
704998a
using elastic/kibana 4f38cf96d24a66c98ac6dbaede2a9b92fa460b75 to gene…
Zyther Mar 5, 2025
c0b300e
gen kbapi from github_ref=3757e641278a5186919e35a0f980ac3cda7e8ccd
Zyther Mar 5, 2025
65463b5
fmt
Zyther Mar 6, 2025
457e024
schema
Zyther Mar 6, 2025
d9da725
new docs
Zyther Mar 6, 2025
e4b02a9
test mod
Zyther Mar 6, 2025
7527ddc
novalidate
Zyther Mar 6, 2025
dc0360c
its alive
Zyther Mar 7, 2025
1cf7a62
passing tests
Zyther Mar 7, 2025
39998b0
docs
Zyther Mar 7, 2025
d7332bb
Merge branch 'main' into elastic-main
Zyther Mar 12, 2025
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
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@
- Add `max_primary_shard_docs` condition to ILM rollover ([#845](https://github.com/elastic/terraform-provider-elasticstack/pull/845))
- Add missing entries to `data_view.field_formats.params` ([#1001](https://github.com/elastic/terraform-provider-elasticstack/pull/1001))
- Fix namespaces inconsistency when creating elasticstack_kibana_data_view resources ([#1011](https://github.com/elastic/terraform-provider-elasticstack/pull/1011))
- Update rule ID documentation. ([#1047](https://github.com/elastic/terraform-provider-elasticstack/pull/1047))
- Add `global_data_tags` to fleet agent policies. ([#1044](https://github.com/elastic/terraform-provider-elasticstack/pull/1044))

## [0.11.13] - 2025-01-09
Expand Down
2 changes: 1 addition & 1 deletion docs/resources/kibana_alerting_rule.md
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ Could not create API key - Unsupported scheme "ApiKey" for granting API Key
- `alert_delay` (Number) A number that indicates how many consecutive runs need to meet the rule conditions for an alert to occur.
- `enabled` (Boolean) Indicates if you want to run the rule on an interval basis.
- `notify_when` (String) Required until v8.6.0. Deprecated in v8.13.0. Use the `notify_when` property in the action `frequency` object instead. Defines how often alerts generate actions. Valid values include: `onActionGroupChange`: Actions run when the alert status changes; `onActiveAlert`: Actions run when the alert becomes active and at each check interval while the rule conditions are met; `onThrottleInterval`: Actions run when the alert becomes active and at the interval specified in the throttle property while the rule conditions are met. NOTE: This is a rule level property; if you update the rule in Kibana, it is automatically changed to use action-specific `notify_when` values.
- `rule_id` (String) A UUID v1 or v4 to use instead of a randomly generated ID.
- `rule_id` (String) The identifier for the rule. Until Kibana version 8.17.0 this should be a UUID v1 or v4, for later versions any format can be used. If it is omitted, an ID is randomly generated.
- `space_id` (String) An identifier for the space. If space_id is not provided, the default space is used.
- `tags` (List of String) A list of tag names that are applied to the rule.
- `throttle` (String) Deprecated in 8.13.0. Defines how often an alert generates repeated actions. This custom action interval must be specified in seconds, minutes, hours, or days. For example, 10m or 1h. This property is applicable only if `notify_when` is `onThrottleInterval`. NOTE: This is a rule level property; if you update the rule in Kibana, it is automatically changed to use action-specific `throttle` values.
Expand Down
2 changes: 1 addition & 1 deletion go.mod
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ require (
github.com/elastic/go-elasticsearch/v8 v8.17.1
github.com/google/gofuzz v1.2.0
github.com/google/uuid v1.6.0
github.com/hashicorp/go-cty v1.4.1-0.20241127173709-a0325cb22c13
github.com/hashicorp/go-cty v1.4.1
github.com/hashicorp/go-version v1.7.0
github.com/hashicorp/terraform-plugin-framework v1.14.1
github.com/hashicorp/terraform-plugin-framework-jsontypes v0.2.0
Expand Down
4 changes: 2 additions & 2 deletions go.sum
Original file line number Diff line number Diff line change
Expand Up @@ -70,8 +70,8 @@ github.com/hashicorp/go-checkpoint v0.5.0/go.mod h1:7nfLNL10NsxqO4iWuW6tWW0HjZuD
github.com/hashicorp/go-cleanhttp v0.5.0/go.mod h1:JpRdi6/HCYpAwUzNwuwqhbovhLtngrth3wmdIIUrZ80=
github.com/hashicorp/go-cleanhttp v0.5.2 h1:035FKYIWjmULyFRBKPs8TBQoi0x6d9G4xc9neXJWAZQ=
github.com/hashicorp/go-cleanhttp v0.5.2/go.mod h1:kO/YDlP8L1346E6Sodw+PrpBSV4/SoxCXGY6BqNFT48=
github.com/hashicorp/go-cty v1.4.1-0.20241127173709-a0325cb22c13 h1:moS57/17PHF0Am4DSrwfC7NOs3mbl3VMjFdLbag83NY=
github.com/hashicorp/go-cty v1.4.1-0.20241127173709-a0325cb22c13/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs=
github.com/hashicorp/go-cty v1.4.1 h1:T4i4kbEKuyMoe4Ujh52Ud07VXr05dnP/Si9JiVDpx3Y=
github.com/hashicorp/go-cty v1.4.1/go.mod h1:EiZBMaudVLy8fmjf9Npq1dq9RalhveqZG5w/yz3mHWs=
github.com/hashicorp/go-hclog v1.6.3 h1:Qr2kF+eVWjTiYmU7Y31tYlP1h0q/X3Nl3tPGdaB11/k=
github.com/hashicorp/go-hclog v1.6.3/go.mod h1:W4Qnvbt70Wk/zYJryRzDRU/4r0kIg0PVHBcfoyhpF5M=
github.com/hashicorp/go-multierror v1.1.1 h1:H5DkEtf6CXdFp0N0Em5UCwQpXMWke8IA0+lD48awMYo=
Expand Down
2 changes: 1 addition & 1 deletion internal/kibana/alerting.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ func stringIsAlertingDuration() schema.SchemaValidateFunc {
func ResourceAlertingRule() *schema.Resource {
apikeySchema := map[string]*schema.Schema{
"rule_id": {
Description: "A UUID v1 or v4 to use instead of a randomly generated ID.",
Description: "The identifier for the rule. Until Kibana version 8.17.0 this should be a UUID v1 or v4, for later versions any format can be used. If it is omitted, an ID is randomly generated.",
Type: schema.TypeString,
Computed: true,
Optional: true,
Expand Down
Loading