Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
448 changes: 448 additions & 0 deletions .generator/schemas/v2/openapi.yaml

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-01-02T19:09:02.221Z
2026-07-10T15:48:20.043Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-01-12T19:41:34.038Z
2026-07-10T15:48:20.956Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-01-12T19:41:36.187Z
2026-07-10T15:48:22.074Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Original file line number Diff line number Diff line change
@@ -1 +1 @@
2026-01-12T19:41:37.223Z
2026-07-10T15:48:23.863Z

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

5 changes: 5 additions & 0 deletions examples/v2/report-schedules/ListDatasetReportSchedules.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# List dataset report schedules returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new
p api_instance.list_dataset_report_schedules("dataset_id")
27 changes: 27 additions & 0 deletions examples/v2/report-schedules/PrintReport.rb
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# Print a report returns "OK" response

require "datadog_api_client"
api_instance = DatadogAPIClient::V2::ReportSchedulesAPI.new

body = DatadogAPIClient::V2::PrintReportRequest.new({
data: DatadogAPIClient::V2::PrintReportRequestData.new({
attributes: DatadogAPIClient::V2::PrintReportRequestAttributes.new({
from_ts: 1780318800000,
resource_id: "abc-def-ghi",
resource_type: DatadogAPIClient::V2::ReportScheduleResourceType::DASHBOARD,
template_variables: [
DatadogAPIClient::V2::ReportScheduleTemplateVariable.new({
name: "env",
values: [
"prod",
],
}),
],
timeframe: "1w",
timezone: "America/New_York",
to_ts: 1780923600000,
}),
type: DatadogAPIClient::V2::PrintReportType::REPORT,
}),
})
p api_instance.print_report(body)
6 changes: 6 additions & 0 deletions features/scenarios_model_mapping.rb
Original file line number Diff line number Diff line change
Expand Up @@ -4976,6 +4976,12 @@
"snapshot_id" => "String",
"body" => "SnapshotUpdateRequest",
},
"v2.ListDatasetReportSchedules" => {
"dataset_id" => "String",
},
"v2.PrintReport" => {
"body" => "PrintReportRequest",
},
"v2.CreateReportSchedule" => {
"body" => "ReportScheduleCreateRequest",
},
Expand Down
49 changes: 49 additions & 0 deletions features/v2/report_schedules.feature
Original file line number Diff line number Diff line change
Expand Up @@ -99,6 +99,27 @@ Feature: Report Schedules
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/reporting-and-sharing
Scenario: List dataset report schedules returns "Bad Request" response
Given new "ListDatasetReportSchedules" request
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/reporting-and-sharing
Scenario: List dataset report schedules returns "Not Found" response
Given new "ListDatasetReportSchedules" request
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/reporting-and-sharing
Scenario: List dataset report schedules returns "OK" response
Given new "ListDatasetReportSchedules" request
And request contains "dataset_id" parameter from "REPLACE.ME"
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/reporting-and-sharing
Scenario: List report schedules returns "Bad Request" response
Given new "ListReportSchedules" request
Expand All @@ -117,6 +138,34 @@ Feature: Report Schedules
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/reporting-and-sharing
Scenario: Print a report returns "Bad Request" response
Given new "PrintReport" request
And body with value {"data": {"attributes": {"from_ts": 1780318800000, "resource_id": "abc-def-ghi", "resource_type": "dashboard", "template_variables": [{"name": "env", "values": ["prod"]}], "timeframe": "1w", "timezone": "America/New_York", "to_ts": 1780923600000}, "type": "report"}}
When the request is sent
Then the response status is 400 Bad Request

@generated @skip @team:DataDog/reporting-and-sharing
Scenario: Print a report returns "Not Found" response
Given new "PrintReport" request
And body with value {"data": {"attributes": {"from_ts": 1780318800000, "resource_id": "abc-def-ghi", "resource_type": "dashboard", "template_variables": [{"name": "env", "values": ["prod"]}], "timeframe": "1w", "timezone": "America/New_York", "to_ts": 1780923600000}, "type": "report"}}
When the request is sent
Then the response status is 404 Not Found

@generated @skip @team:DataDog/reporting-and-sharing
Scenario: Print a report returns "OK" response
Given new "PrintReport" request
And body with value {"data": {"attributes": {"from_ts": 1780318800000, "resource_id": "abc-def-ghi", "resource_type": "dashboard", "template_variables": [{"name": "env", "values": ["prod"]}], "timeframe": "1w", "timezone": "America/New_York", "to_ts": 1780923600000}, "type": "report"}}
When the request is sent
Then the response status is 200 OK

@generated @skip @team:DataDog/reporting-and-sharing
Scenario: Print a report returns "Unprocessable Entity" response
Given new "PrintReport" request
And body with value {"data": {"attributes": {"from_ts": 1780318800000, "resource_id": "abc-def-ghi", "resource_type": "dashboard", "template_variables": [{"name": "env", "values": ["prod"]}], "timeframe": "1w", "timezone": "America/New_York", "to_ts": 1780923600000}, "type": "report"}}
When the request is sent
Then the response status is 422 Unprocessable Entity

@generated @skip @team:DataDog/reporting-and-sharing
Scenario: Toggle a report schedule returns "Bad Request" response
Given new "ToggleReportSchedule" request
Expand Down
12 changes: 12 additions & 0 deletions features/v2/undo.json
Original file line number Diff line number Diff line change
Expand Up @@ -6476,6 +6476,18 @@
"type": "idempotent"
}
},
"ListDatasetReportSchedules": {
"tag": "Report Schedules",
"undo": {
"type": "safe"
}
},
"PrintReport": {
"tag": "Report Schedules",
"undo": {
"type": "unsafe"
}
},
"CreateReportSchedule": {
"tag": "Report Schedules",
"undo": {
Expand Down
Loading
Loading