Skip to content

Commit 1c83720

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
[SLO-3499] Remove hardcoded slo-reporter timestamps (#271)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 4f7ba2e commit 1c83720

17 files changed

+30
-30
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.6",
7-
"regenerated": "2024-08-28 20:30:20.049362",
8-
"spec_repo_commit": "6b2f00dd"
7+
"regenerated": "2024-08-29 20:01:57.245800",
8+
"spec_repo_commit": "518ca9df"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-08-28 20:30:20.067333",
13-
"spec_repo_commit": "6b2f00dd"
12+
"regenerated": "2024-08-29 20:01:57.263520",
13+
"spec_repo_commit": "518ca9df"
1414
}
1515
}
1616
}

examples/v2_service-level-objectives_CreateSLOReportJob.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,9 @@ use datadog_api_client::datadogV2::model::SloReportCreateRequestData;
1010
async fn main() {
1111
let body = SloReportCreateRequest::new(SloReportCreateRequestData::new(
1212
SloReportCreateRequestAttributes::new(
13-
1690901870,
13+
1633173071,
1414
r#"slo_type:metric "SLO Reporting Test""#.to_string(),
15-
1706803070,
15+
1636629071,
1616
)
1717
.interval(SLOReportInterval::MONTHLY)
1818
.timezone("America/New_York".to_string()),
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-04-18T20:09:43.575Z
1+
2024-08-29T19:53:50.818Z

tests/scenarios/cassettes/v2/service_level_objectives/Create-a-new-SLO-report-returns-Bad-Request-response.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"request": {
55
"body": {
6-
"string": "{\"data\":{\"attributes\":{\"from_ts\":1690901870,\"interval\":\"bad-interval\",\"query\":\"slo_type:metric \\\"SLO Reporting Test\\\"\",\"to_ts\":1706803070}}}",
6+
"string": "{\"data\":{\"attributes\":{\"from_ts\":1721505230,\"interval\":\"bad-interval\",\"query\":\"slo_type:metric \\\"SLO Reporting Test\\\"\",\"to_ts\":1724961230}}}",
77
"encoding": null
88
},
99
"headers": {
@@ -32,7 +32,7 @@
3232
"message": "Bad Request"
3333
}
3434
},
35-
"recorded_at": "Thu, 18 Apr 2024 20:09:43 GMT"
35+
"recorded_at": "Thu, 29 Aug 2024 19:53:50 GMT"
3636
}
3737
],
3838
"recorded_with": "VCR 6.0.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-04-18T20:09:43.729Z
1+
2024-08-29T19:53:50.962Z

tests/scenarios/cassettes/v2/service_level_objectives/Create-a-new-SLO-report-returns-OK-response.json

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@
33
{
44
"request": {
55
"body": {
6-
"string": "{\"data\":{\"attributes\":{\"from_ts\":1690901870,\"interval\":\"monthly\",\"query\":\"slo_type:metric \\\"SLO Reporting Test\\\"\",\"timezone\":\"America/New_York\",\"to_ts\":1706803070}}}",
6+
"string": "{\"data\":{\"attributes\":{\"from_ts\":1721505230,\"interval\":\"monthly\",\"query\":\"slo_type:metric \\\"SLO Reporting Test\\\"\",\"timezone\":\"America/New_York\",\"to_ts\":1724961230}}}",
77
"encoding": null
88
},
99
"headers": {
@@ -19,7 +19,7 @@
1919
},
2020
"response": {
2121
"body": {
22-
"string": "{\"data\":{\"id\":\"98c67bea-fdbf-11ee-8a01-bfd37432018b\",\"type\":\"report_id\"}}",
22+
"string": "{\"data\":{\"id\":\"69cfaa02-6640-11ef-8501-33b2b403f044\",\"type\":\"report_id\"}}",
2323
"encoding": null
2424
},
2525
"headers": {
@@ -32,7 +32,7 @@
3232
"message": "OK"
3333
}
3434
},
35-
"recorded_at": "Thu, 18 Apr 2024 20:09:43 GMT"
35+
"recorded_at": "Thu, 29 Aug 2024 19:53:50 GMT"
3636
}
3737
],
3838
"recorded_with": "VCR 6.0.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-04-18T20:09:43.887Z
1+
2024-08-29T19:53:51.070Z

tests/scenarios/cassettes/v2/service_level_objectives/Get-SLO-report-returns-Bad-Request-response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"message": "Bad Request"
2727
}
2828
},
29-
"recorded_at": "Thu, 18 Apr 2024 20:09:43 GMT"
29+
"recorded_at": "Thu, 29 Aug 2024 19:53:51 GMT"
3030
}
3131
],
3232
"recorded_with": "VCR 6.0.0"
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2024-04-18T20:09:43.972Z
1+
2024-08-29T19:53:51.158Z

tests/scenarios/cassettes/v2/service_level_objectives/Get-SLO-report-returns-Not-Found-response.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@
2626
"message": "Not Found"
2727
}
2828
},
29-
"recorded_at": "Thu, 18 Apr 2024 20:09:43 GMT"
29+
"recorded_at": "Thu, 29 Aug 2024 19:53:51 GMT"
3030
}
3131
],
3232
"recorded_with": "VCR 6.0.0"

0 commit comments

Comments
 (0)