Skip to content

Commit 0918d72

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit e904a45 of spec repo
1 parent d03b10c commit 0918d72

4 files changed

Lines changed: 33 additions & 38 deletions

File tree

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-11-27T14:11:49.966Z
1+
2026-05-11T20:29:00.457Z

cassettes/features/v2/on-call/Set-On-Call-team-routing-rules-returns-OK-response.yml

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

examples/v2/on-call/SetOnCallTeamRoutingRules.rb

Lines changed: 2 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -14,14 +14,9 @@
1414
attributes: DatadogAPIClient::V2::TeamRoutingRulesRequestDataAttributes.new({
1515
rules: [
1616
DatadogAPIClient::V2::TeamRoutingRulesRequestRule.new({
17-
actions: [
18-
DatadogAPIClient::V2::SendSlackMessageAction.new({
19-
channel: "channel",
20-
type: DatadogAPIClient::V2::SendSlackMessageActionType::SEND_SLACK_MESSAGE,
21-
workspace: "workspace",
22-
}),
23-
],
17+
policy_id: ESCALATION_POLICY_DATA_ID,
2418
query: "tags.service:test",
19+
urgency: DatadogAPIClient::V2::Urgency::HIGH,
2520
time_restriction: DatadogAPIClient::V2::TimeRestrictions.new({
2621
time_zone: "Europe/Paris",
2722
restrictions: [

features/v2/on-call.feature

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -401,7 +401,7 @@ Feature: On-Call
401401
And there is a valid "schedule" in the system
402402
And there is a valid "escalation_policy" in the system
403403
And request contains "team_id" parameter from "dd_team.data.id"
404-
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"}}
404+
And body with value {"data": {"attributes": {"rules": [{"policy_id": "{{ escalation_policy.data.id }}", "query": "tags.service:test", "urgency": "high", "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"}}
405405
And request contains "include" parameter with value "rules"
406406
When the request is sent
407407
Then the response status is 200 OK

0 commit comments

Comments
 (0)