diff --git a/docs/data-sources/service_integration.md b/docs/data-sources/service_integration.md index c88dba0f5..0589a2638 100644 --- a/docs/data-sources/service_integration.md +++ b/docs/data-sources/service_integration.md @@ -143,6 +143,7 @@ Read-Only: Read-Only: +- `cluster_stats_enabled` (Boolean) - `index_stats_enabled` (Boolean) - `pending_task_stats_enabled` (Boolean) - `pshard_stats_enabled` (Boolean) diff --git a/docs/resources/service_integration.md b/docs/resources/service_integration.md index 63f7cd7ff..58f535981 100644 --- a/docs/resources/service_integration.md +++ b/docs/resources/service_integration.md @@ -155,6 +155,7 @@ Optional: Optional: +- `cluster_stats_enabled` (Boolean) Enable Datadog Opensearch Cluster Monitoring. - `index_stats_enabled` (Boolean) Enable Datadog Opensearch Index Monitoring. - `pending_task_stats_enabled` (Boolean) Enable Datadog Opensearch Pending Task Monitoring. - `pshard_stats_enabled` (Boolean) Enable Datadog Opensearch Primary Shard Monitoring. diff --git a/go.mod b/go.mod index c36af94ea..f80cd3ce2 100644 --- a/go.mod +++ b/go.mod @@ -55,7 +55,7 @@ require ( cloud.google.com/go v0.112.0 // indirect cloud.google.com/go/storage v1.36.0 // indirect github.com/agext/levenshtein v1.2.3 // indirect - github.com/aiven/go-api-schemas v1.65.0 + github.com/aiven/go-api-schemas v1.66.0 github.com/aws/aws-sdk-go v1.44.122 // indirect github.com/bgentry/go-netrc v0.0.0-20140422174119-9fd32a8b3d3d // indirect github.com/davecgh/go-spew v1.1.1 // indirect diff --git a/go.sum b/go.sum index aa36cf3a9..567bf309a 100644 --- a/go.sum +++ b/go.sum @@ -199,8 +199,8 @@ github.com/agext/levenshtein v1.2.3 h1:YB2fHEn0UJagG8T1rrWknE3ZQzWM06O8AMAatNn7l github.com/agext/levenshtein v1.2.3/go.mod h1:JEDfjyjHDjOF/1e4FlBE/PkbqA9OfWu2ki2W0IB5558= github.com/aiven/aiven-go-client/v2 v2.14.0 h1:4FEbB3baj+jA3Gd3vXpzoN6Vi9lGLCcIAYo75vSnx4k= github.com/aiven/aiven-go-client/v2 v2.14.0/go.mod h1:x0xhzxWEKAwKv0xY5FvECiI6tesWshcPHvjwl0B/1SU= -github.com/aiven/go-api-schemas v1.65.0 h1:r4ooY83kWwkQQPCq55W4oHitNv+SZ2fzVDxuY3KwU28= -github.com/aiven/go-api-schemas v1.65.0/go.mod h1:/bPxBUHza/2Aeer6hIIdB++GxKiw9K1KCBtRa2rtZ5I= +github.com/aiven/go-api-schemas v1.66.0 h1:Bn7E4CLcV9GMOdwmVtPEPud/9AKh/1fw7qT3epV+LXE= +github.com/aiven/go-api-schemas v1.66.0/go.mod h1:/bPxBUHza/2Aeer6hIIdB++GxKiw9K1KCBtRa2rtZ5I= github.com/aiven/go-client-codegen v0.3.0 h1:RoIHSjMpJ+adYDJPfu9TBHaikQzMPocp1bwD2gqritc= github.com/aiven/go-client-codegen v0.3.0/go.mod h1:qQ5dwRfNnGS4eAYk7JdC5htQI85g7eA/e71ZLyY8pQw= github.com/antihax/optional v1.0.0/go.mod h1:uupD/76wgC+ih3iEmQUL+0Ugr19nfwCT1kdvxnR2qWY= diff --git a/internal/sdkprovider/userconfig/serviceintegration/datadog.go b/internal/sdkprovider/userconfig/serviceintegration/datadog.go index 28f9127f8..e3b254ee8 100644 --- a/internal/sdkprovider/userconfig/serviceintegration/datadog.go +++ b/internal/sdkprovider/userconfig/serviceintegration/datadog.go @@ -94,6 +94,11 @@ func datadogUserConfig() *schema.Schema { "opensearch": { Description: "Datadog Opensearch Options", Elem: &schema.Resource{Schema: map[string]*schema.Schema{ + "cluster_stats_enabled": { + Description: "Enable Datadog Opensearch Cluster Monitoring.", + Optional: true, + Type: schema.TypeBool, + }, "index_stats_enabled": { Description: "Enable Datadog Opensearch Index Monitoring.", Optional: true,