Skip to content

Commit 9f1c85d

Browse files
authored
update dd go client to 1.5.0 (#1248)
1 parent 66f9524 commit 9f1c85d

File tree

67 files changed

+2988
-2830
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+2988
-2830
lines changed

datadog/resource_datadog_monitor.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -617,7 +617,7 @@ func updateMonitorState(d *schema.ResourceData, meta interface{}, m *datadogV1.M
617617
return diag.FromErr(err)
618618
}
619619
// This helper function is defined in `resource_datadog_dashboard`
620-
restrictedRoles := buildTerraformRestrictedRoles(m.RestrictedRoles)
620+
restrictedRoles := buildTerraformRestrictedRoles(&m.RestrictedRoles)
621621
if err := d.Set("restricted_roles", restrictedRoles); err != nil {
622622
return diag.FromErr(err)
623623
}
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-06-24T08:27:02.885721-04:00
1+
2021-10-22T14:19:47.683011-04:00

datadog/tests/cassettes/TestAccDatadogDowntime_BasicWithMonitor.yaml

Lines changed: 69 additions & 81 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-06-24T08:27:02.885724-04:00
1+
2021-10-22T14:19:47.682184-04:00

datadog/tests/cassettes/TestAccDatadogDowntime_BasicWithMonitorTags.yaml

Lines changed: 78 additions & 90 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-07-21T16:17:41.794838-04:00
1+
2021-10-22T14:14:53.368368-04:00

datadog/tests/cassettes/TestAccDatadogIntegrationAWS.yaml

Lines changed: 63 additions & 51 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-07-21T16:17:51.267417-04:00
1+
2021-10-22T14:15:03.595223-04:00

datadog/tests/cassettes/TestAccDatadogIntegrationAWSAccessKey.yaml

Lines changed: 58 additions & 50 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-07-21T16:17:30.234571-04:00
1+
2021-10-22T14:14:36.179256-04:00

datadog/tests/cassettes/TestAccDatadogIntegrationAWSLambdaArn.yaml

Lines changed: 39 additions & 31 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-08-27T14:21:07.146532+02:00
1+
2021-10-22T14:14:30.862199-04:00

datadog/tests/cassettes/TestAccDatadogIntegrationAWSLambdaArnAccessKey.yaml

Lines changed: 58 additions & 30 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-07-21T16:17:36.061162-04:00
1+
2021-10-22T14:14:40.903615-04:00

datadog/tests/cassettes/TestAccDatadogIntegrationAWSLogCollection.yaml

Lines changed: 55 additions & 43 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-08-27T14:21:26.963677+02:00
1+
2021-10-22T14:14:46.59198-04:00

datadog/tests/cassettes/TestAccDatadogIntegrationAWSLogCollectionAccessKey.yaml

Lines changed: 82 additions & 42 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-07-21T16:28:47.097859-04:00
1+
2021-10-22T14:26:54.570174-04:00

datadog/tests/cassettes/TestAccDatadogIntegrationAwsTagFilter_Basic.yaml

Lines changed: 40 additions & 32 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-08-27T14:21:43.870961+02:00
1+
2021-10-22T14:26:54.572025-04:00

datadog/tests/cassettes/TestAccDatadogIntegrationAwsTagFilter_BasicAccessKey.yaml

Lines changed: 61 additions & 31 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-07-21T16:22:40.206973-04:00
1+
2021-10-22T14:27:39.394161-04:00

datadog/tests/cassettes/TestAccDatadogLogsArchiveS3Update_basic.yaml

Lines changed: 67 additions & 61 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-07-21T16:22:35.252499-04:00
1+
2021-10-22T14:15:28.027159-04:00

datadog/tests/cassettes/TestAccDatadogLogsArchiveS3_basic.yaml

Lines changed: 46 additions & 42 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-10-13T15:03:14.135106-04:00
1+
2021-10-22T14:18:22.639122-04:00

datadog/tests/cassettes/TestAccDatadogMonitorDatasource.yaml

Lines changed: 356 additions & 360 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-10-20T15:21:44.760556-04:00
1+
2021-10-22T14:15:52.808331-04:00

datadog/tests/cassettes/TestAccDatadogMonitorJSONBasic.yaml

Lines changed: 41 additions & 39 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-10-20T15:18:27.099517-04:00
1+
2021-10-22T14:15:44.058558-04:00

datadog/tests/cassettes/TestAccDatadogMonitorJSONImport.yaml

Lines changed: 27 additions & 27 deletions
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@ interactions:
44
- request:
55
body: |
66
{
7-
"name": "tf-TestAccDatadogMonitorJSONImport-local-1634757507",
7+
"name": "tf-TestAccDatadogMonitorJSONImport-local-1634926544",
88
"type": "service check",
99
"query": "\"ntp.in_sync\".over(\"*\").last(2).count_by_status()",
1010
"message": "Change the message triggers if any host's clock goes out of sync with the time given by NTP. The offset threshold is configured in the Agent's 'ntp.yaml' file.\n\nSee [Troubleshooting NTP Offset issues](https://docs.datadoghq.com/agent/troubleshooting/ntp for more details on cause and resolution.",
@@ -32,11 +32,11 @@ interactions:
3232
Content-Type:
3333
- application/json
3434
User-Agent:
35-
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.4.1+dev (go go1.17; os darwin; arch amd64)
35+
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.5.0 (go go1.17; os darwin; arch amd64)
3636
url: https://api.datadoghq.com/api/v1/monitor
3737
method: POST
3838
response:
39-
body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"\"ntp.in_sync\".over(\"*\").last(2).count_by_status()","message":"Change the message triggers if any host''s clock goes out of sync with the time given by NTP. The offset threshold is configured in the Agent''s ''ntp.yaml'' file.\n\nSee [Troubleshooting NTP Offset issues](https://docs.datadoghq.com/agent/troubleshooting/ntp for more details on cause and resolution.","id":50776654,"multi":true,"name":"tf-TestAccDatadogMonitorJSONImport-local-1634757507","created":"2021-10-20T19:18:28.760640+00:00","created_at":1634757508000,"creator":{"id":1445416,"handle":"[email protected]","name":null,"email":"[email protected]"},"org_id":321813,"modified":"2021-10-20T19:18:28.760640+00:00","priority":null,"overall_state_modified":null,"overall_state":"No Data","type":"service check","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"thresholds":{"warning":1,"ok":1,"critical":1},"new_host_delay":150,"notify_no_data":false}}'
39+
body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"\"ntp.in_sync\".over(\"*\").last(2).count_by_status()","message":"Change the message triggers if any host''s clock goes out of sync with the time given by NTP. The offset threshold is configured in the Agent''s ''ntp.yaml'' file.\n\nSee [Troubleshooting NTP Offset issues](https://docs.datadoghq.com/agent/troubleshooting/ntp for more details on cause and resolution.","id":51392441,"multi":true,"name":"tf-TestAccDatadogMonitorJSONImport-local-1634926544","created":"2021-10-22T18:15:57.618598+00:00","created_at":1634926557000,"creator":{"id":1445416,"handle":"[email protected]","name":null,"email":"[email protected]"},"org_id":321813,"modified":"2021-10-22T18:15:57.618598+00:00","priority":null,"overall_state_modified":null,"overall_state":"No Data","type":"service check","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"thresholds":{"warning":1,"ok":1,"critical":1},"new_host_delay":150,"notify_no_data":false}}'
4040
headers:
4141
Cache-Control:
4242
- no-cache
@@ -47,7 +47,7 @@ interactions:
4747
Content-Type:
4848
- application/json
4949
Date:
50-
- Wed, 20 Oct 2021 19:18:28 GMT
50+
- Fri, 22 Oct 2021 18:15:57 GMT
5151
Pragma:
5252
- no-cache
5353
Strict-Transport-Security:
@@ -63,9 +63,9 @@ interactions:
6363
X-Ratelimit-Period:
6464
- "10"
6565
X-Ratelimit-Remaining:
66-
- "499"
66+
- "492"
6767
X-Ratelimit-Reset:
68-
- "2"
68+
- "3"
6969
status: 200 OK
7070
code: 200
7171
duration: ""
@@ -76,11 +76,11 @@ interactions:
7676
Content-Type:
7777
- application/json
7878
User-Agent:
79-
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.4.1+dev (go go1.17; os darwin; arch amd64)
80-
url: https://api.datadoghq.com/api/v1/monitor/50776654
79+
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.5.0 (go go1.17; os darwin; arch amd64)
80+
url: https://api.datadoghq.com/api/v1/monitor/51392441
8181
method: GET
8282
response:
83-
body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"\"ntp.in_sync\".over(\"*\").last(2).count_by_status()","message":"Change the message triggers if any host''s clock goes out of sync with the time given by NTP. The offset threshold is configured in the Agent''s ''ntp.yaml'' file.\n\nSee [Troubleshooting NTP Offset issues](https://docs.datadoghq.com/agent/troubleshooting/ntp for more details on cause and resolution.","id":50776654,"multi":true,"name":"tf-TestAccDatadogMonitorJSONImport-local-1634757507","created":"2021-10-20T19:18:28.760640+00:00","created_at":1634757508000,"creator":{"id":1445416,"handle":"[email protected]","name":null,"email":"[email protected]"},"org_id":321813,"modified":"2021-10-20T19:18:28.760640+00:00","priority":null,"overall_state_modified":null,"overall_state":"No Data","type":"service check","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"thresholds":{"warning":1,"ok":1,"critical":1},"new_host_delay":150,"notify_no_data":false}}'
83+
body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"\"ntp.in_sync\".over(\"*\").last(2).count_by_status()","message":"Change the message triggers if any host''s clock goes out of sync with the time given by NTP. The offset threshold is configured in the Agent''s ''ntp.yaml'' file.\n\nSee [Troubleshooting NTP Offset issues](https://docs.datadoghq.com/agent/troubleshooting/ntp for more details on cause and resolution.","id":51392441,"multi":true,"name":"tf-TestAccDatadogMonitorJSONImport-local-1634926544","created":"2021-10-22T18:15:57.618598+00:00","created_at":1634926557000,"creator":{"id":1445416,"handle":"[email protected]","name":null,"email":"[email protected]"},"org_id":321813,"modified":"2021-10-22T18:15:57.618598+00:00","priority":null,"overall_state_modified":null,"overall_state":"No Data","type":"service check","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"thresholds":{"warning":1,"ok":1,"critical":1},"new_host_delay":150,"notify_no_data":false}}'
8484
headers:
8585
Cache-Control:
8686
- no-cache
@@ -91,7 +91,7 @@ interactions:
9191
Content-Type:
9292
- application/json
9393
Date:
94-
- Wed, 20 Oct 2021 19:18:29 GMT
94+
- Fri, 22 Oct 2021 18:15:58 GMT
9595
Pragma:
9696
- no-cache
9797
Strict-Transport-Security:
@@ -107,9 +107,9 @@ interactions:
107107
X-Ratelimit-Period:
108108
- "10"
109109
X-Ratelimit-Remaining:
110-
- "2999"
110+
- "2967"
111111
X-Ratelimit-Reset:
112-
- "1"
112+
- "2"
113113
status: 200 OK
114114
code: 200
115115
duration: ""
@@ -120,11 +120,11 @@ interactions:
120120
Content-Type:
121121
- application/json
122122
User-Agent:
123-
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.4.1+dev (go go1.17; os darwin; arch amd64)
124-
url: https://api.datadoghq.com/api/v1/monitor/50776654
123+
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.5.0 (go go1.17; os darwin; arch amd64)
124+
url: https://api.datadoghq.com/api/v1/monitor/51392441
125125
method: GET
126126
response:
127-
body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"\"ntp.in_sync\".over(\"*\").last(2).count_by_status()","message":"Change the message triggers if any host''s clock goes out of sync with the time given by NTP. The offset threshold is configured in the Agent''s ''ntp.yaml'' file.\n\nSee [Troubleshooting NTP Offset issues](https://docs.datadoghq.com/agent/troubleshooting/ntp for more details on cause and resolution.","id":50776654,"multi":true,"name":"tf-TestAccDatadogMonitorJSONImport-local-1634757507","created":"2021-10-20T19:18:28.760640+00:00","created_at":1634757508000,"creator":{"id":1445416,"handle":"[email protected]","name":null,"email":"[email protected]"},"org_id":321813,"modified":"2021-10-20T19:18:28.760640+00:00","priority":null,"overall_state_modified":null,"overall_state":"No Data","type":"service check","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"thresholds":{"warning":1,"ok":1,"critical":1},"new_host_delay":150,"notify_no_data":false}}'
127+
body: '{"restricted_roles":null,"tags":[],"deleted":null,"query":"\"ntp.in_sync\".over(\"*\").last(2).count_by_status()","message":"Change the message triggers if any host''s clock goes out of sync with the time given by NTP. The offset threshold is configured in the Agent''s ''ntp.yaml'' file.\n\nSee [Troubleshooting NTP Offset issues](https://docs.datadoghq.com/agent/troubleshooting/ntp for more details on cause and resolution.","id":51392441,"multi":true,"name":"tf-TestAccDatadogMonitorJSONImport-local-1634926544","created":"2021-10-22T18:15:57.618598+00:00","created_at":1634926557000,"creator":{"id":1445416,"handle":"[email protected]","name":null,"email":"[email protected]"},"org_id":321813,"modified":"2021-10-22T18:15:57.618598+00:00","priority":null,"overall_state_modified":null,"overall_state":"No Data","type":"service check","options":{"notify_audit":false,"locked":false,"silenced":{},"include_tags":true,"thresholds":{"warning":1,"ok":1,"critical":1},"new_host_delay":150,"notify_no_data":false}}'
128128
headers:
129129
Cache-Control:
130130
- no-cache
@@ -135,7 +135,7 @@ interactions:
135135
Content-Type:
136136
- application/json
137137
Date:
138-
- Wed, 20 Oct 2021 19:18:30 GMT
138+
- Fri, 22 Oct 2021 18:15:59 GMT
139139
Pragma:
140140
- no-cache
141141
Strict-Transport-Security:
@@ -151,9 +151,9 @@ interactions:
151151
X-Ratelimit-Period:
152152
- "10"
153153
X-Ratelimit-Remaining:
154-
- "2999"
154+
- "2959"
155155
X-Ratelimit-Reset:
156-
- "10"
156+
- "1"
157157
status: 200 OK
158158
code: 200
159159
duration: ""
@@ -164,11 +164,11 @@ interactions:
164164
Content-Type:
165165
- application/json
166166
User-Agent:
167-
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.4.1+dev (go go1.17; os darwin; arch amd64)
168-
url: https://api.datadoghq.com/api/v1/monitor/50776654
167+
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.5.0 (go go1.17; os darwin; arch amd64)
168+
url: https://api.datadoghq.com/api/v1/monitor/51392441
169169
method: DELETE
170170
response:
171-
body: '{"deleted_monitor_id":50776654}'
171+
body: '{"deleted_monitor_id":51392441}'
172172
headers:
173173
Cache-Control:
174174
- no-cache
@@ -179,7 +179,7 @@ interactions:
179179
Content-Type:
180180
- application/json
181181
Date:
182-
- Wed, 20 Oct 2021 19:18:30 GMT
182+
- Fri, 22 Oct 2021 18:16:00 GMT
183183
Pragma:
184184
- no-cache
185185
Strict-Transport-Security:
@@ -202,8 +202,8 @@ interactions:
202202
Dd-Operation-Id:
203203
- GetMonitor
204204
User-Agent:
205-
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.4.1+dev (go go1.17; os darwin; arch amd64)
206-
url: https://api.datadoghq.com/api/v1/monitor/50776654
205+
- terraform-provider-datadog/dev (terraform 2.7.0; terraform-cli 0.14.7) datadog-api-client-go/1.5.0 (go go1.17; os darwin; arch amd64)
206+
url: https://api.datadoghq.com/api/v1/monitor/51392441
207207
method: GET
208208
response:
209209
body: '{"errors": ["Monitor not found"]}'
@@ -217,7 +217,7 @@ interactions:
217217
Content-Type:
218218
- application/json
219219
Date:
220-
- Wed, 20 Oct 2021 19:18:31 GMT
220+
- Fri, 22 Oct 2021 18:16:00 GMT
221221
Pragma:
222222
- no-cache
223223
Strict-Transport-Security:
@@ -233,9 +233,9 @@ interactions:
233233
X-Ratelimit-Period:
234234
- "10"
235235
X-Ratelimit-Remaining:
236-
- "2998"
236+
- "2994"
237237
X-Ratelimit-Reset:
238-
- "9"
238+
- "10"
239239
status: 404 Not Found
240240
code: 404
241241
duration: ""
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2021-10-13T15:03:14.138485-04:00
1+
2021-10-22T14:15:44.065164-04:00

0 commit comments

Comments
 (0)