Skip to content

Commit b17c68c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 17c39da of spec repo
1 parent c865bda commit b17c68c

File tree

23 files changed

+168
-80
lines changed

23 files changed

+168
-80
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.6.2",
7-
"regenerated": "2022-02-11 15:01:43.065174",
8-
"spec_repo_commit": "0aeef32"
7+
"regenerated": "2022-02-11 15:57:38.355186",
8+
"spec_repo_commit": "17c39da"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.2",
12-
"regenerated": "2022-02-11 15:01:43.077011",
13-
"spec_repo_commit": "0aeef32"
12+
"regenerated": "2022-02-11 15:57:38.367158",
13+
"spec_repo_commit": "17c39da"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11527,6 +11527,10 @@ components:
1152711527
allowFailure:
1152811528
description: A boolean set to allow this step to fail.
1152911529
type: boolean
11530+
isCritical:
11531+
description: A boolean to use in addition to `allowFailure` to determine
11532+
if the test should be marked as failed when the step fails.
11533+
type: boolean
1153011534
name:
1153111535
description: The name of the step.
1153211536
type: string

api/v1/datadog/docs/SyntheticsStep.md

Lines changed: 33 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,13 +2,14 @@
22

33
## Properties
44

5-
| Name | Type | Description | Notes |
6-
| ---------------- | ---------------------------------------------------------- | ----------------------------------------- | ---------- |
7-
| **AllowFailure** | Pointer to **bool** | A boolean set to allow this step to fail. | [optional] |
8-
| **Name** | Pointer to **string** | The name of the step. | [optional] |
9-
| **Params** | Pointer to **interface{}** | The parameters of the step. | [optional] |
10-
| **Timeout** | Pointer to **int64** | The time before declaring a step failed. | [optional] |
11-
| **Type** | Pointer to [**SyntheticsStepType**](SyntheticsStepType.md) | | [optional] |
5+
| Name | Type | Description | Notes |
6+
| ---------------- | ---------------------------------------------------------- | --------------------------------------------------------------------------------------------------------------------------------- | ---------- |
7+
| **AllowFailure** | Pointer to **bool** | A boolean set to allow this step to fail. | [optional] |
8+
| **IsCritical** | Pointer to **bool** | A boolean to use in addition to `allowFailure` to determine if the test should be marked as failed when the step fails. | [optional] |
9+
| **Name** | Pointer to **string** | The name of the step. | [optional] |
10+
| **Params** | Pointer to **interface{}** | The parameters of the step. | [optional] |
11+
| **Timeout** | Pointer to **int64** | The time before declaring a step failed. | [optional] |
12+
| **Type** | Pointer to [**SyntheticsStepType**](SyntheticsStepType.md) | | [optional] |
1213

1314
## Methods
1415

@@ -54,6 +55,31 @@ SetAllowFailure sets AllowFailure field to given value.
5455

5556
HasAllowFailure returns a boolean if a field has been set.
5657

58+
### GetIsCritical
59+
60+
`func (o *SyntheticsStep) GetIsCritical() bool`
61+
62+
GetIsCritical returns the IsCritical field if non-nil, zero value otherwise.
63+
64+
### GetIsCriticalOk
65+
66+
`func (o *SyntheticsStep) GetIsCriticalOk() (*bool, bool)`
67+
68+
GetIsCriticalOk returns a tuple with the IsCritical field if it's non-nil, zero value otherwise
69+
and a boolean to check if the value has been set.
70+
71+
### SetIsCritical
72+
73+
`func (o *SyntheticsStep) SetIsCritical(v bool)`
74+
75+
SetIsCritical sets IsCritical field to given value.
76+
77+
### HasIsCritical
78+
79+
`func (o *SyntheticsStep) HasIsCritical() bool`
80+
81+
HasIsCritical returns a boolean if a field has been set.
82+
5783
### GetName
5884

5985
`func (o *SyntheticsStep) GetName() string`

api/v1/datadog/model_synthetics_step.go

Lines changed: 39 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

examples/v1/synthetics/CreateSyntheticsBrowserTest.go

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -55,6 +55,15 @@ func main() {
5555
"testing:browser",
5656
},
5757
Type: datadog.SYNTHETICSBROWSERTESTTYPE_BROWSER,
58+
Steps: &[]datadog.SyntheticsStep{
59+
{
60+
AllowFailure: datadog.PtrBool(false),
61+
IsCritical: datadog.PtrBool(true),
62+
Name: datadog.PtrString("Refresh page"),
63+
Params: &datadog.SyntheticsStepParams{},
64+
Type: datadog.SYNTHETICSSTEPTYPE_REFRESH.Ptr(),
65+
},
66+
},
5867
}
5968
ctx := datadog.NewDefaultContext(context.Background())
6069
configuration := datadog.NewConfiguration()
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:51:13.534Z
1+
2022-02-10T12:24:10.485Z

tests/scenarios/cassettes/TestScenarios/v1/Feature_Synthetics/Scenario_Create_a_browser_test_returns_OK_-_Returns_the_created_test_details._response.yaml

Lines changed: 6 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: |
4-
{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Test message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1641430273","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"tick_every":300},"tags":["testing:browser"],"type":"browser"}
4+
{"config":{"assertions":[],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"method":"GET","url":"https://datadoghq.com"},"setCookie":"name:test"},"locations":["aws:us-east-2"],"message":"Test message","name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1644495850","options":{"accept_self_signed":false,"allow_insecure":true,"device_ids":["tablet"],"disableCors":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"noScreenshot":true,"retry":{"count":3,"interval":10},"tick_every":300},"steps":[{"allowFailure":false,"isCritical":true,"name":"Refresh page","params":{},"type":"refresh"}],"tags":["testing:browser"],"type":"browser"}
55
form: {}
66
headers:
77
Accept:
@@ -11,8 +11,9 @@ interactions:
1111
method: POST
1212
url: https://api.datadoghq.com/api/v1/synthetics/tests/browser
1313
response:
14-
body: '{"status":"paused","public_id":"db9-2t7-rc6","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test
15-
message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1641430273","monitor_id":59800820,"type":"browser","created_at":"2022-01-06T00:51:13.906186+00:00","modified_at":"2022-01-06T00:51:13.906186+00:00","config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}'
14+
body: '{"status":"paused","public_id":"rsw-sd4-iu5","tags":["testing:browser"],"org_id":321813,"locations":["aws:us-east-2"],"message":"Test
15+
message","deleted_at":null,"name":"Test-Create_a_browser_test_returns_OK_Returns_the_created_test_details_response-1644495850","monitor_id":63812386,"type":"browser","created_at":"2022-02-10T12:24:11.196393+00:00","modified_at":"2022-02-10T12:24:11.196393+00:00","steps":[{"name":"Refresh
16+
page","allowFailure":false,"params":{},"isCritical":true,"type":"refresh"}],"config":{"setCookie":"name:test","request":{"url":"https://datadoghq.com","method":"GET"},"assertions":[],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"noScreenshot":true,"disableCors":true,"device_ids":["tablet"],"tick_every":300}}'
1617
code: 200
1718
duration: ''
1819
headers:
@@ -21,7 +22,7 @@ interactions:
2122
status: 200 OK
2223
- request:
2324
body: |
24-
{"public_ids":["db9-2t7-rc6"]}
25+
{"public_ids":["rsw-sd4-iu5"]}
2526
form: {}
2627
headers:
2728
Accept:
@@ -31,7 +32,7 @@ interactions:
3132
method: POST
3233
url: https://api.datadoghq.com/api/v1/synthetics/tests/delete
3334
response:
34-
body: '{"deleted_tests":[{"deleted_at":"2022-01-06T00:51:14.154081+00:00","public_id":"db9-2t7-rc6"}]}'
35+
body: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:11.753160+00:00","public_id":"rsw-sd4-iu5"}]}'
3536
code: 200
3637
duration: ''
3738
headers:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-11T18:26:30.141Z
1+
2022-02-10T12:24:11.728Z

tests/scenarios/cassettes/TestScenarios/v1/Feature_Synthetics/Scenario_Create_an_API_test_returns_OK_-_Returns_the_created_test_details._response.yaml

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
interactions:
22
- request:
33
body: |
4-
{"config":{"assertions":[{"operator":"is","property":"{{ PROPERTY }}","target":"text/html","type":"header"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificate":{"cert":{"content":"cert-content","filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"content":"key-content","filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"headers":{"unique":"testcreateanapitestreturnsokreturnsthecreatedtestdetailsresponse1641925590"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD test payload: synthetics_api_test_payload.json","name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1641925590","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1641925590","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}
4+
{"config":{"assertions":[{"operator":"is","property":"{{ PROPERTY }}","target":"text/html","type":"header"},{"operator":"lessThan","target":2000,"type":"responseTime"},{"operator":"validatesJSONPath","target":{"jsonPath":"topKey","operator":"isNot","targetValue":"0"},"type":"body"}],"configVariables":[{"example":"content-type","name":"PROPERTY","pattern":"content-type","type":"text"}],"request":{"certificate":{"cert":{"content":"cert-content","filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"content":"key-content","filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"headers":{"unique":"testcreateanapitestreturnsokreturnsthecreatedtestdetailsresponse1644495851"},"method":"GET","proxy":{"headers":{},"url":"https://datadoghq.com"},"timeout":10,"url":"https://datadoghq.com"}},"locations":["aws:us-east-2"],"message":"BDD test payload: synthetics_api_test_payload.json","name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1644495851","options":{"accept_self_signed":false,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"min_location_failed":1,"monitor_name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1644495851","monitor_priority":5,"retry":{"count":3,"interval":10},"tick_every":60},"subtype":"http","tags":["testing:api"],"type":"api"}
55
form: {}
66
headers:
77
Accept:
@@ -11,9 +11,9 @@ interactions:
1111
method: POST
1212
url: https://api.datadoghq.com/api/v1/synthetics/tests/api
1313
response:
14-
body: '{"status":"live","public_id":"gbf-27x-fyf","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD
15-
test payload: synthetics_api_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1641925590","monitor_id":60619278,"type":"api","created_at":"2022-01-11T18:26:30.681233+00:00","modified_at":"2022-01-11T18:26:30.681233+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testcreateanapitestreturnsokreturnsthecreatedtestdetailsresponse1641925590"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"assertions":[{"operator":"is","property":"{{
16-
PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1641925590","tick_every":60}}'
14+
body: '{"status":"live","public_id":"x87-4ez-4xz","tags":["testing:api"],"org_id":321813,"locations":["aws:us-east-2"],"message":"BDD
15+
test payload: synthetics_api_test_payload.json","deleted_at":null,"name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1644495851","monitor_id":63812387,"type":"api","created_at":"2022-02-10T12:24:12.489088+00:00","modified_at":"2022-02-10T12:24:12.489088+00:00","subtype":"http","config":{"request":{"certificate":{"cert":{"filename":"cert-filename","updatedAt":"2020-10-16T09:23:24.857Z"},"key":{"filename":"key-filename","updatedAt":"2020-10-16T09:23:24.857Z"}},"url":"https://datadoghq.com","headers":{"unique":"testcreateanapitestreturnsokreturnsthecreatedtestdetailsresponse1644495851"},"proxy":{"url":"https://datadoghq.com","headers":{}},"timeout":10,"method":"GET"},"assertions":[{"operator":"is","property":"{{
16+
PROPERTY }}","type":"header","target":"text/html"},{"operator":"lessThan","type":"responseTime","target":2000},{"operator":"validatesJSONPath","type":"body","target":{"operator":"isNot","targetValue":"0","jsonPath":"topKey"}}],"configVariables":[{"pattern":"content-type","type":"text","example":"content-type","name":"PROPERTY"}]},"options":{"accept_self_signed":false,"retry":{"count":3,"interval":10},"min_location_failed":1,"allow_insecure":true,"follow_redirects":true,"min_failure_duration":10,"monitor_priority":5,"monitor_name":"Test-Create_an_API_test_returns_OK_Returns_the_created_test_details_response-1644495851","tick_every":60}}'
1717
code: 200
1818
duration: ''
1919
headers:
@@ -22,7 +22,7 @@ interactions:
2222
status: 200 OK
2323
- request:
2424
body: |
25-
{"public_ids":["gbf-27x-fyf"]}
25+
{"public_ids":["x87-4ez-4xz"]}
2626
form: {}
2727
headers:
2828
Accept:
@@ -32,7 +32,7 @@ interactions:
3232
method: POST
3333
url: https://api.datadoghq.com/api/v1/synthetics/tests/delete
3434
response:
35-
body: '{"deleted_tests":[{"deleted_at":"2022-01-11T18:26:32.034575+00:00","public_id":"gbf-27x-fyf"}]}'
35+
body: '{"deleted_tests":[{"deleted_at":"2022-02-10T12:24:13.010432+00:00","public_id":"x87-4ez-4xz"}]}'
3636
code: 200
3737
duration: ''
3838
headers:
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2022-01-06T00:51:15.154Z
1+
2022-02-10T12:24:13.013Z

0 commit comments

Comments
 (0)