From 8d168845ec46e4259ca70089195e954d293efef2 Mon Sep 17 00:00:00 2001 From: Arthur Hemery Date: Mon, 4 Nov 2024 17:10:20 +0100 Subject: [PATCH 1/2] Bump go library version. --- datadog/resource_datadog_dashboard.go | 1 - datadog/resource_datadog_synthetics_test_.go | 8 ++++---- go.mod | 2 +- go.sum | 4 ++-- 4 files changed, 7 insertions(+), 8 deletions(-) diff --git a/datadog/resource_datadog_dashboard.go b/datadog/resource_datadog_dashboard.go index c5e81325f4..f84d89eddd 100644 --- a/datadog/resource_datadog_dashboard.go +++ b/datadog/resource_datadog_dashboard.go @@ -8068,7 +8068,6 @@ func buildDatadogToplistStyle(terraformToplistStyle map[string]interface{}) data if t == "stacked" { datadogToplistStyle.SetDisplay(datadogV1.ToplistWidgetDisplay{ ToplistWidgetStacked: datadogV1.NewToplistWidgetStacked( - datadogV1.TOPLISTWIDGETLEGEND_AUTOMATIC, datadogV1.TOPLISTWIDGETSTACKEDTYPE_STACKED, ), }) diff --git a/datadog/resource_datadog_synthetics_test_.go b/datadog/resource_datadog_synthetics_test_.go index 8dcadc35b4..9d061f6de0 100644 --- a/datadog/resource_datadog_synthetics_test_.go +++ b/datadog/resource_datadog_synthetics_test_.go @@ -3114,10 +3114,10 @@ func buildDatadogTestOptions(d *schema.ResourceData) *datadogV1.SyntheticsTestOp if rawTimeframes, ok := scheduling.(map[string]interface{})["timeframes"]; ok { var timeFrames []datadogV1.SyntheticsTestOptionsSchedulingTimeframe for _, tf := range rawTimeframes.(*schema.Set).List() { - timeframe := datadogV1.NewSyntheticsTestOptionsSchedulingTimeframe() - timeframe.SetDay(int32(tf.(map[string]interface{})["day"].(int))) - timeframe.SetFrom(tf.(map[string]interface{})["from"].(string)) - timeframe.SetTo(tf.(map[string]interface{})["to"].(string)) + timeframe := datadogV1.NewSyntheticsTestOptionsSchedulingTimeframe( + int32(tf.(map[string]interface{})["day"].(int)), + tf.(map[string]interface{})["from"].(string), + tf.(map[string]interface{})["to"].(string)) timeFrames = append(timeFrames, *timeframe) } optionsScheduling.SetTimeframes(timeFrames) diff --git a/go.mod b/go.mod index 2bee4b4626..0929788fd6 100644 --- a/go.mod +++ b/go.mod @@ -1,7 +1,7 @@ module github.com/terraform-providers/terraform-provider-datadog require ( - github.com/DataDog/datadog-api-client-go/v2 v2.31.0 + github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241031172113-8704b619424c github.com/DataDog/dd-sdk-go-testing v0.0.0-20211116174033-1cd082e322ad github.com/Masterminds/semver/v3 v3.1.1 github.com/google/go-cmp v0.5.9 diff --git a/go.sum b/go.sum index c7f67f0706..b3e2348a16 100644 --- a/go.sum +++ b/go.sum @@ -1,7 +1,7 @@ cloud.google.com/go v0.26.0/go.mod h1:aQUYkXzVsufM+DwF1aE+0xfcU+56JwCaLick0ClmMTw= github.com/BurntSushi/toml v0.3.1/go.mod h1:xHWCNGjB5oqiDr8zfno3MHue2Ht5sIBksp03qcyfWMU= -github.com/DataDog/datadog-api-client-go/v2 v2.31.0 h1:JfJhYlHfLzvauI8u6h23smTooWYe6quNhhg9gpTszWY= -github.com/DataDog/datadog-api-client-go/v2 v2.31.0/go.mod h1:d3tOEgUd2kfsr9uuHQdY+nXrWp4uikgTgVCPdKNK30U= +github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241031172113-8704b619424c h1:FRgVhkpYHmy6VHlhsWDhOZciWe1S+aaDCp4KYmsaeOg= +github.com/DataDog/datadog-api-client-go/v2 v2.31.1-0.20241031172113-8704b619424c/go.mod h1:d3tOEgUd2kfsr9uuHQdY+nXrWp4uikgTgVCPdKNK30U= github.com/DataDog/datadog-go v4.4.0+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= github.com/DataDog/datadog-go v4.8.3+incompatible h1:fNGaYSuObuQb5nzeTQqowRAd9bpDIRRV4/gUtIBjh8Q= github.com/DataDog/datadog-go v4.8.3+incompatible/go.mod h1:LButxg5PwREeZtORoXG3tL4fMGNddJ+vMq1mwgfaqoQ= From cd56737693b8232a36f96c068681975817138dfe Mon Sep 17 00:00:00 2001 From: Arthur Hemery Date: Mon, 4 Nov 2024 17:16:14 +0100 Subject: [PATCH 2/2] Add docs --- docs/resources/dashboard.md | 4 ++-- docs/resources/powerpack.md | 2 +- docs/resources/synthetics_test.md | 2 +- 3 files changed, 4 insertions(+), 4 deletions(-) diff --git a/docs/resources/dashboard.md b/docs/resources/dashboard.md index 04b76f94fe..f7264f482a 100644 --- a/docs/resources/dashboard.md +++ b/docs/resources/dashboard.md @@ -5048,7 +5048,7 @@ Required: Required: -- `data_source` (String) Source from which to query items to display in the stream. Valid values are `logs_stream`, `audit_stream`, `ci_pipeline_stream`, `ci_test_stream`, `rum_issue_stream`, `apm_issue_stream`, `trace_stream`, `logs_issue_stream`, `logs_pattern_stream`, `logs_transaction_stream`, `event_stream`, `rum_stream`. +- `data_source` (String) Source from which to query items to display in the stream. Valid values are `logs_stream`, `audit_stream`, `ci_pipeline_stream`, `ci_test_stream`, `rum_issue_stream`, `apm_issue_stream`, `trace_stream`, `logs_issue_stream`, `logs_pattern_stream`, `logs_transaction_stream`, `event_stream`, `rum_stream`, `llm_observability_stream`. Optional: @@ -16870,7 +16870,7 @@ Required: Required: -- `data_source` (String) Source from which to query items to display in the stream. Valid values are `logs_stream`, `audit_stream`, `ci_pipeline_stream`, `ci_test_stream`, `rum_issue_stream`, `apm_issue_stream`, `trace_stream`, `logs_issue_stream`, `logs_pattern_stream`, `logs_transaction_stream`, `event_stream`, `rum_stream`. +- `data_source` (String) Source from which to query items to display in the stream. Valid values are `logs_stream`, `audit_stream`, `ci_pipeline_stream`, `ci_test_stream`, `rum_issue_stream`, `apm_issue_stream`, `trace_stream`, `logs_issue_stream`, `logs_pattern_stream`, `logs_transaction_stream`, `event_stream`, `rum_stream`, `llm_observability_stream`. Optional: diff --git a/docs/resources/powerpack.md b/docs/resources/powerpack.md index 62c4244aca..4e9fead835 100644 --- a/docs/resources/powerpack.md +++ b/docs/resources/powerpack.md @@ -2836,7 +2836,7 @@ Required: Required: -- `data_source` (String) Source from which to query items to display in the stream. Valid values are `logs_stream`, `audit_stream`, `ci_pipeline_stream`, `ci_test_stream`, `rum_issue_stream`, `apm_issue_stream`, `trace_stream`, `logs_issue_stream`, `logs_pattern_stream`, `logs_transaction_stream`, `event_stream`, `rum_stream`. +- `data_source` (String) Source from which to query items to display in the stream. Valid values are `logs_stream`, `audit_stream`, `ci_pipeline_stream`, `ci_test_stream`, `rum_issue_stream`, `apm_issue_stream`, `trace_stream`, `logs_issue_stream`, `logs_pattern_stream`, `logs_transaction_stream`, `event_stream`, `rum_stream`, `llm_observability_stream`. Optional: diff --git a/docs/resources/synthetics_test.md b/docs/resources/synthetics_test.md index 8b56fc3ded..e813ce96c0 100644 --- a/docs/resources/synthetics_test.md +++ b/docs/resources/synthetics_test.md @@ -519,7 +519,7 @@ resource "datadog_synthetics_test" "test_grpc_health" { - `locations` (Set of String) Array of locations used to run the test. Refer to [the Datadog Synthetics location data source](https://registry.terraform.io/providers/DataDog/datadog/latest/docs/data-sources/synthetics_locations) to retrieve the list of locations. - `name` (String) Name of Datadog synthetics test. - `status` (String) Define whether you want to start (`live`) or pause (`paused`) a Synthetic test. Valid values are `live`, `paused`. -- `type` (String) Synthetics test type. Valid values are `api`, `browser`. +- `type` (String) Synthetics test type. Valid values are `api`, `browser`, `mobile`. ### Optional