Skip to content

Commit

Permalink
Regenerate client from commit d3379b79 of spec repo (#1591)
Browse files Browse the repository at this point in the history
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
  • Loading branch information
api-clients-generation-pipeline[bot] and ci.datadog-api-spec authored Jul 14, 2022
1 parent d1bc091 commit 2ae8859
Show file tree
Hide file tree
Showing 22 changed files with 58 additions and 31 deletions.
8 changes: 4 additions & 4 deletions .apigentools-info
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,13 @@
"spec_versions": {
"v1": {
"apigentools_version": "1.6.2",
"regenerated": "2022-07-12 16:17:00.420694",
"spec_repo_commit": "2d238f31"
"regenerated": "2022-07-14 15:13:45.021813",
"spec_repo_commit": "d3379b79"
},
"v2": {
"apigentools_version": "1.6.2",
"regenerated": "2022-07-12 16:17:00.434582",
"spec_repo_commit": "2d238f31"
"regenerated": "2022-07-14 15:13:45.036316",
"spec_repo_commit": "d3379b79"
}
}
}
3 changes: 3 additions & 0 deletions examples/v1/downtimes/CreateDowntime_1393233946.go
Original file line number Diff line number Diff line change
Expand Up @@ -33,6 +33,9 @@ func main() {
Start: datadog.PtrInt64(time.Now().Unix()),
End: *datadog.NewNullableInt64(datadog.PtrInt64(time.Now().Add(time.Hour * 1).Unix())),
Timezone: datadog.PtrString("Etc/UTC"),
MonitorTags: []string{
"tag0",
},
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
Expand Down
3 changes: 3 additions & 0 deletions examples/v1/downtimes/CreateDowntime_2908359488.go
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,9 @@ func main() {
End: *datadog.NewNullableInt64(datadog.PtrInt64(time.Now().Add(time.Hour * 1).Unix())),
Timezone: datadog.PtrString("Etc/UTC"),
MuteFirstRecoveryNotification: datadog.PtrBool(true),
MonitorTags: []string{
"tag0",
},
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
Expand Down
3 changes: 3 additions & 0 deletions examples/v1/downtimes/CreateDowntime_3059354445.go
Original file line number Diff line number Diff line change
Expand Up @@ -26,6 +26,9 @@ func main() {
End: *datadog.NewNullableInt64(datadog.PtrInt64(time.Now().Add(time.Hour * 1).Unix())),
Timezone: datadog.PtrString("Etc/UTC"),
MuteFirstRecoveryNotification: datadog.PtrBool(true),
MonitorTags: []string{
"tag0",
},
}
ctx := datadog.NewDefaultContext(context.Background())
configuration := datadog.NewConfiguration()
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-05-12T09:49:58.211Z
2022-07-12T22:07:44.361Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: |
{"end":1652352598,"message":"Test-Schedule_a_downtime_once_a_year-1652348998","mute_first_recovery_notification":true,"recurrence":{"period":1,"type":"years"},"scope":["*"],"start":1652348998,"timezone":"Etc/UTC"}
{"end":1657667264,"message":"Test-Schedule_a_downtime_once_a_year-1657663664","monitor_tags":["tag0"],"mute_first_recovery_notification":true,"recurrence":{"period":1,"type":"years"},"scope":["*"],"start":1657663664,"timezone":"Etc/UTC"}
form: {}
headers:
Accept:
Expand All @@ -11,7 +11,7 @@ interactions:
method: POST
url: https://api.datadoghq.com/api/v1/downtime
response:
body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"years","period":1},"end":1652352598,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":true,"created":1652348998,"org_id":321813,"modified":1652348998,"disabled":false,"start":1652348998,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_once_a_year-1652348998","downtime_type":0,"id":1944162271,"updater_id":null}'
body: '{"recurrence":{"until_date":null,"until_occurrences":null,"week_days":null,"type":"years","period":1},"end":1657667264,"monitor_tags":["tag0"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":true,"created":1657663664,"org_id":321813,"modified":1657663664,"disabled":false,"start":1657663664,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_once_a_year-1657663664","downtime_type":0,"id":2082107265,"updater_id":null}'
code: 200
duration: ''
headers:
Expand All @@ -25,7 +25,7 @@ interactions:
Accept:
- '*/*'
method: DELETE
url: https://api.datadoghq.com/api/v1/downtime/1944162271
url: https://api.datadoghq.com/api/v1/downtime/2082107265
response:
body: ''
code: 204
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-05-12T09:49:59.975Z
2022-07-12T22:07:45.319Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: |
{"end":1652352599,"message":"Test-Schedule_a_downtime_until_date-1652348999","mute_first_recovery_notification":true,"recurrence":{"period":1,"type":"weeks","until_date":1654163399,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["*"],"start":1652348999,"timezone":"Etc/UTC"}
{"end":1657667265,"message":"Test-Schedule_a_downtime_until_date-1657663665","monitor_tags":["tag0"],"mute_first_recovery_notification":true,"recurrence":{"period":1,"type":"weeks","until_date":1659478065,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["*"],"start":1657663665,"timezone":"Etc/UTC"}
form: {}
headers:
Accept:
Expand All @@ -11,7 +11,7 @@ interactions:
method: POST
url: https://api.datadoghq.com/api/v1/downtime
response:
body: '{"recurrence":{"until_date":1654163399,"until_occurrences":null,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":1652352599,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":true,"created":1652349000,"org_id":321813,"modified":1652349000,"disabled":false,"start":1652348999,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_until_date-1652348999","downtime_type":0,"id":1944162290,"updater_id":null}'
body: '{"recurrence":{"until_date":1659478065,"until_occurrences":null,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":1657667265,"monitor_tags":["tag0"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":true,"created":1657663665,"org_id":321813,"modified":1657663665,"disabled":false,"start":1657663665,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_until_date-1657663665","downtime_type":0,"id":2082107326,"updater_id":null}'
code: 200
duration: ''
headers:
Expand All @@ -25,7 +25,7 @@ interactions:
Accept:
- '*/*'
method: DELETE
url: https://api.datadoghq.com/api/v1/downtime/1944162290
url: https://api.datadoghq.com/api/v1/downtime/2082107326
response:
body: ''
code: 204
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-01-06T00:50:48.683Z
2022-07-12T22:07:46.126Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: |
{"end":1641433848,"message":"Test-Schedule_a_downtime_with_invalid_type_hours-1641430248","recurrence":{"period":1,"type":"hours"},"scope":["*"],"start":1641430248,"timezone":"Etc/UTC"}
{"end":1657667266,"message":"Test-Schedule_a_downtime_with_invalid_type_hours-1657663666","monitor_tags":["tag0"],"recurrence":{"period":1,"type":"hours"},"scope":["*"],"start":1657663666,"timezone":"Etc/UTC"}
form: {}
headers:
Accept:
Expand All @@ -11,7 +11,7 @@ interactions:
method: POST
url: https://api.datadoghq.com/api/v1/downtime
response:
body: '{"errors":["Invalid recurrence type"]}'
body: '{"errors": ["Invalid recurrence type"]}'
code: 400
duration: ''
headers:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-01-06T00:50:48.876Z
2022-07-12T22:07:46.506Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: |
{"end":1641433848,"message":"Test-Schedule_a_downtime_with_invalid_weekdays-1641430248","recurrence":{"period":1,"type":"weeks","week_days":["mon","tue"]},"scope":["*"],"start":1641430248,"timezone":"Etc/UTC"}
{"end":1657667266,"message":"Test-Schedule_a_downtime_with_invalid_weekdays-1657663666","monitor_tags":["tag0"],"recurrence":{"period":1,"type":"weeks","week_days":["mon","tue"]},"scope":["*"],"start":1657663666,"timezone":"Etc/UTC"}
form: {}
headers:
Accept:
Expand All @@ -11,7 +11,7 @@ interactions:
method: POST
url: https://api.datadoghq.com/api/v1/downtime
response:
body: '{"errors":["Invalid set of days in week_days. Be sure that the first letter
body: '{"errors": ["Invalid set of days in week_days. Be sure that the first letter
is capitalized."]}'
code: 400
duration: ''
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-01-06T00:50:49.053Z
2022-07-12T22:07:46.899Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: |
{"end":1641433849,"message":"Test-Schedule_a_downtime_with_mutually_exclusive_until_occurrences_and_until_date_properties-1641430249","recurrence":{"period":1,"type":"weeks","until_date":1643244649,"until_occurrences":3,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["*"],"start":1641430249,"timezone":"Etc/UTC"}
{"end":1657667266,"message":"Test-Schedule_a_downtime_with_mutually_exclusive_until_occurrences_and_until_date_properties-1657663666","monitor_tags":["tag0"],"recurrence":{"period":1,"type":"weeks","until_date":1659478066,"until_occurrences":3,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["*"],"start":1657663666,"timezone":"Etc/UTC"}
form: {}
headers:
Accept:
Expand All @@ -11,7 +11,7 @@ interactions:
method: POST
url: https://api.datadoghq.com/api/v1/downtime
response:
body: '{"errors":["You must provide only provide one of (until_occurrences, until_date)"]}'
body: '{"errors": ["You must provide only provide one of (until_occurrences, until_date)"]}'
code: 400
duration: ''
headers:
Expand Down
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2022-05-12T09:50:00.938Z
2022-07-12T22:07:47.296Z
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
interactions:
- request:
body: |
{"end":1652352600,"message":"Test-Schedule_a_downtime_with_until_occurrences-1652349000","recurrence":{"period":1,"type":"weeks","until_occurrences":3,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["*"],"start":1652349000,"timezone":"Etc/UTC"}
{"end":1657667267,"message":"Test-Schedule_a_downtime_with_until_occurrences-1657663667","monitor_tags":["tag0"],"recurrence":{"period":1,"type":"weeks","until_occurrences":3,"week_days":["Mon","Tue","Wed","Thu","Fri"]},"scope":["*"],"start":1657663667,"timezone":"Etc/UTC"}
form: {}
headers:
Accept:
Expand All @@ -11,7 +11,7 @@ interactions:
method: POST
url: https://api.datadoghq.com/api/v1/downtime
response:
body: '{"recurrence":{"until_date":null,"until_occurrences":3,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":1652352600,"monitor_tags":["*"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":false,"created":1652349001,"org_id":321813,"modified":1652349001,"disabled":false,"start":1652349000,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_with_until_occurrences-1652349000","downtime_type":0,"id":1944162296,"updater_id":null}'
body: '{"recurrence":{"until_date":null,"until_occurrences":3,"week_days":["Mon","Tue","Wed","Thu","Fri"],"type":"weeks","period":1},"end":1657667267,"monitor_tags":["tag0"],"child_id":null,"canceled":null,"monitor_id":null,"mute_first_recovery_notification":false,"created":1657663667,"org_id":321813,"modified":1657663667,"disabled":false,"start":1657663667,"creator_id":1445416,"parent_id":null,"timezone":"Etc/UTC","active":true,"scope":["*"],"message":"Test-Schedule_a_downtime_with_until_occurrences-1657663667","downtime_type":0,"id":2082107712,"updater_id":null}'
code: 200
duration: ''
headers:
Expand All @@ -25,7 +25,7 @@ interactions:
Accept:
- '*/*'
method: DELETE
url: https://api.datadoghq.com/api/v1/downtime/1944162296
url: https://api.datadoghq.com/api/v1/downtime/2082107712
response:
body: ''
code: 204
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,8 @@
"scope": ["*"],
"start": {{ timestamp("now") }},
"end": {{ timestamp("now + 1h") }},
"timezone": "Etc/UTC"
"timezone": "Etc/UTC",
"monitor_tags": [
"tag0"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"scope": ["*"],
"start": {{ timestamp("now") }},
"end": {{ timestamp("now + 1h") }},
"timezone": "Etc/UTC"
"timezone": "Etc/UTC",
"monitor_tags": [
"tag0"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,8 @@
"start": {{ timestamp("now") }},
"end": {{ timestamp("now + 1h") }},
"timezone": "Etc/UTC",
"mute_first_recovery_notification": true
"mute_first_recovery_notification": true,
"monitor_tags": [
"tag0"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"start": {{ timestamp("now") }},
"end": {{ timestamp("now + 1h") }},
"timezone": "Etc/UTC",
"mute_first_recovery_notification": true
"mute_first_recovery_notification": true,
"monitor_tags": [
"tag0"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -9,5 +9,8 @@
"scope": ["*"],
"start": {{ timestamp("now") }},
"end": {{ timestamp("now + 1h") }},
"timezone": "Etc/UTC"
"timezone": "Etc/UTC",
"monitor_tags": [
"tag0"
]
}
Original file line number Diff line number Diff line change
Expand Up @@ -10,5 +10,8 @@
"scope": ["*"],
"start": {{ timestamp("now") }},
"end": {{ timestamp("now + 1h") }},
"timezone": "Etc/UTC"
"timezone": "Etc/UTC",
"monitor_tags": [
"tag0"
]
}

0 comments on commit 2ae8859

Please sign in to comment.