Skip to content

Commit 9b79f29

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit b90c5b3 of spec repo
1 parent 05ad14a commit 9b79f29

57 files changed

Lines changed: 3715 additions & 874 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

.generator/schemas/v2/openapi.yaml

Lines changed: 964 additions & 174 deletions
Large diffs are not rendered by default.
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2025-02-05T13:46:11.165Z
1+
2026-03-13T09:35:04.822Z

cassettes/features/v2/security_monitoring/Patch-a-signal-based-notification-rule-returns-Bad-Request-response.yml

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

examples/v2/reference-tables/BatchRowsQuery.rb

Lines changed: 0 additions & 19 deletions
This file was deleted.

examples/v2/reference-tables/DeleteRows.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
body = DatadogAPIClient::V2::BatchDeleteRowsRequestArray.new({
77
data: [
8-
DatadogAPIClient::V2::TableRowResourceIdentifier.new({
8+
DatadogAPIClient::V2::BatchDeleteRowsRequestData.new({
99
id: "primary_key_value",
1010
type: DatadogAPIClient::V2::TableRowResourceDataType::ROW,
1111
}),
Lines changed: 26 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,26 @@
1+
# Create a new campaign returns "Created" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ScorecardsAPI.new
5+
6+
body = DatadogAPIClient::V2::CreateCampaignRequest.new({
7+
data: DatadogAPIClient::V2::CreateCampaignRequestData.new({
8+
attributes: DatadogAPIClient::V2::CreateCampaignRequestAttributes.new({
9+
description: "Campaign to improve security posture for Q1 2024.",
10+
due_date: "2024-03-31T23:59:59Z",
11+
entity_scope: "kind:service AND team:platform",
12+
guidance: "Please ensure all services pass the security requirements.",
13+
key: "q1-security-2024",
14+
name: "Q1 Security Campaign",
15+
owner_id: "550e8400-e29b-41d4-a716-446655440000",
16+
rule_ids: [
17+
"q8MQxk8TCqrHnWkx",
18+
"r9NRyl9UDrsIoXly",
19+
],
20+
start_date: "2024-01-01T00:00:00Z",
21+
status: DatadogAPIClient::V2::CampaignStatus::IN_PROGRESS,
22+
}),
23+
type: DatadogAPIClient::V2::CampaignType::CAMPAIGN,
24+
}),
25+
})
26+
p api_instance.create_scorecard_campaign(body)

examples/v2/service-scorecards/CreateScorecardOutcomesBatch.rb renamed to examples/v2/scorecards/CreateScorecardOutcomesBatch.rb

Lines changed: 2 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,18 +4,15 @@
44
DatadogAPIClient.configure do |config|
55
config.unstable_operations["v2.create_scorecard_outcomes_batch".to_sym] = true
66
end
7-
api_instance = DatadogAPIClient::V2::ServiceScorecardsAPI.new
8-
9-
# there is a valid "create_scorecard_rule" in the system
10-
CREATE_SCORECARD_RULE_DATA_ID = ENV["CREATE_SCORECARD_RULE_DATA_ID"]
7+
api_instance = DatadogAPIClient::V2::ScorecardsAPI.new
118

129
body = DatadogAPIClient::V2::OutcomesBatchRequest.new({
1310
data: DatadogAPIClient::V2::OutcomesBatchRequestData.new({
1411
attributes: DatadogAPIClient::V2::OutcomesBatchAttributes.new({
1512
results: [
1613
DatadogAPIClient::V2::OutcomesBatchRequestItem.new({
1714
remarks: 'See: <a href="https://app.datadoghq.com/services">Services</a>',
18-
rule_id: CREATE_SCORECARD_RULE_DATA_ID,
15+
rule_id: "q8MQxk8TCqrHnWkx",
1916
service_name: "my-service",
2017
state: DatadogAPIClient::V2::State::PASS,
2118
}),

examples/v2/service-scorecards/CreateScorecardRule.rb renamed to examples/v2/scorecards/CreateScorecardRule.rb

Lines changed: 5 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,16 @@
11
# Create a new rule returns "Created" response
22

33
require "datadog_api_client"
4-
DatadogAPIClient.configure do |config|
5-
config.unstable_operations["v2.create_scorecard_rule".to_sym] = true
6-
end
7-
api_instance = DatadogAPIClient::V2::ServiceScorecardsAPI.new
4+
api_instance = DatadogAPIClient::V2::ScorecardsAPI.new
85

96
body = DatadogAPIClient::V2::CreateRuleRequest.new({
107
data: DatadogAPIClient::V2::CreateRuleRequestData.new({
118
attributes: DatadogAPIClient::V2::RuleAttributes.new({
129
enabled: true,
13-
name: "Example-Service-Scorecard",
14-
scorecard_name: "Observability Best Practices",
10+
level: 2,
11+
name: "Team Defined",
12+
scope_query: "kind:service",
13+
scorecard_name: "Deployments automated via Deployment Trains",
1514
}),
1615
type: DatadogAPIClient::V2::RuleType::RULE,
1716
}),
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete a campaign returns "No Content" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ScorecardsAPI.new
5+
api_instance.delete_scorecard_campaign("c10ODp0VCrrIpXmz")
Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
# Delete a rule returns "OK" response
2+
3+
require "datadog_api_client"
4+
api_instance = DatadogAPIClient::V2::ScorecardsAPI.new
5+
api_instance.delete_scorecard_rule("rule_id")

0 commit comments

Comments
 (0)