Skip to content
Open
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
Original file line number Diff line number Diff line change
@@ -1 +1 @@
2025-11-27T14:11:49.966Z
2026-05-06T15:31:58.276Z

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

27 changes: 0 additions & 27 deletions examples/v2/on-call/SetOnCallTeamRoutingRules.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,33 +13,6 @@
data: DatadogAPIClient::V2::TeamRoutingRulesRequestData.new({
attributes: DatadogAPIClient::V2::TeamRoutingRulesRequestDataAttributes.new({
rules: [
DatadogAPIClient::V2::TeamRoutingRulesRequestRule.new({
actions: [
DatadogAPIClient::V2::SendSlackMessageAction.new({
channel: "channel",
type: DatadogAPIClient::V2::SendSlackMessageActionType::SEND_SLACK_MESSAGE,
workspace: "workspace",
}),
],
query: "tags.service:test",
time_restriction: DatadogAPIClient::V2::TimeRestrictions.new({
time_zone: "Europe/Paris",
restrictions: [
DatadogAPIClient::V2::TimeRestriction.new({
end_day: DatadogAPIClient::V2::Weekday::MONDAY,
end_time: "17:00:00",
start_day: DatadogAPIClient::V2::Weekday::MONDAY,
start_time: "09:00:00",
}),
DatadogAPIClient::V2::TimeRestriction.new({
end_day: DatadogAPIClient::V2::Weekday::TUESDAY,
end_time: "17:00:00",
start_day: DatadogAPIClient::V2::Weekday::TUESDAY,
start_time: "09:00:00",
}),
],
}),
}),
DatadogAPIClient::V2::TeamRoutingRulesRequestRule.new({
policy_id: ESCALATION_POLICY_DATA_ID,
query: "",
Expand Down
2 changes: 1 addition & 1 deletion features/v2/on-call.feature
Original file line number Diff line number Diff line change
Expand Up @@ -401,7 +401,7 @@ Feature: On-Call
And there is a valid "schedule" in the system
And there is a valid "escalation_policy" in the system
And request contains "team_id" parameter from "dd_team.data.id"
And body with value {"data": {"attributes": {"rules": [{"actions": [{"channel": "channel", "type": "send_slack_message", "workspace": "workspace"}], "query": "tags.service:test", "time_restriction": {"time_zone": "Europe/Paris", "restrictions": [{"end_day": "monday", "end_time": "17:00:00", "start_day": "monday", "start_time": "09:00:00"}, {"end_day": "tuesday", "end_time": "17:00:00", "start_day": "tuesday", "start_time": "09:00:00"}]}}, {"policy_id": "{{ escalation_policy.data.id }}", "query": "", "urgency": "low"}]}, "id": "{{ dd_team.data.id }}", "type": "team_routing_rules"}}
And body with value {"data": {"attributes": {"rules": [{"policy_id": "{{ escalation_policy.data.id }}", "query": "", "urgency": "low"}]}, "id": "{{ dd_team.data.id }}", "type": "team_routing_rules"}}
And request contains "include" parameter with value "rules"
When the request is sent
Then the response status is 200 OK
Expand Down
Loading