Skip to content

Commit 7e39fc7

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit b2c4e7e8 of spec repo (#2451)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent cd3970d commit 7e39fc7

File tree

7 files changed

+74
-11
lines changed

7 files changed

+74
-11
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": "2025-06-13 19:38:19.691417",
8-
"spec_repo_commit": "6eb36f2b"
7+
"regenerated": "2025-06-16 08:24:57.259638",
8+
"spec_repo_commit": "b2c4e7e8"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-06-13 19:38:19.708710",
13-
"spec_repo_commit": "6eb36f2b"
12+
"regenerated": "2025-06-16 08:24:57.275017",
13+
"spec_repo_commit": "b2c4e7e8"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11095,6 +11095,17 @@ components:
1109511095
- version
1109611096
- name
1109711097
type: object
11098+
DORACustomTags:
11099+
description: A list of user-defined tags. The tags must follow the `key:value`
11100+
pattern. Up to 100 may be added per event.
11101+
example:
11102+
- language:java
11103+
- department:engineering
11104+
items:
11105+
description: Tags in the form of `key:value`.
11106+
type: string
11107+
nullable: true
11108+
type: array
1109811109
DORADeploymentRequest:
1109911110
description: Request to create a DORA deployment event.
1110011111
properties:
@@ -11106,6 +11117,8 @@ components:
1110611117
DORADeploymentRequestAttributes:
1110711118
description: Attributes to create a DORA deployment event.
1110811119
properties:
11120+
custom_tags:
11121+
$ref: '#/components/schemas/DORACustomTags'
1110911122
env:
1111011123
description: Environment name to where the service was deployed.
1111111124
example: staging
@@ -11208,6 +11221,8 @@ components:
1120811221
DORAFailureRequestAttributes:
1120911222
description: Attributes to create a DORA failure event.
1121011223
properties:
11224+
custom_tags:
11225+
$ref: '#/components/schemas/DORACustomTags'
1121111226
env:
1121211227
description: Environment name that was impacted by the failure.
1121311228
example: staging

examples/v2/dora-metrics/CreateDORAFailure.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
body = DatadogAPIClient::V2::DORAFailureRequest.new({
77
data: DatadogAPIClient::V2::DORAFailureRequestData.new({
88
attributes: DatadogAPIClient::V2::DORAFailureRequestAttributes.new({
9+
custom_tags: [
10+
"language:java",
11+
"department:engineering",
12+
],
913
env: "staging",
1014
finished_at: 1693491984000000000,
1115
git: DatadogAPIClient::V2::DORAGitInfo.new({

examples/v2/dora-metrics/CreateDORAIncident.rb

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,10 @@
66
body = DatadogAPIClient::V2::DORAFailureRequest.new({
77
data: DatadogAPIClient::V2::DORAFailureRequestData.new({
88
attributes: DatadogAPIClient::V2::DORAFailureRequestAttributes.new({
9+
custom_tags: [
10+
"language:java",
11+
"department:engineering",
12+
],
913
env: "staging",
1014
finished_at: 1693491984000000000,
1115
git: DatadogAPIClient::V2::DORAGitInfo.new({

features/v2/dora_metrics.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79,7 +79,7 @@ Feature: DORA Metrics
7979
@generated @skip @team:DataDog/ci-app-backend
8080
Scenario: Send a deployment event for DORA Metrics returns "OK - but delayed due to incident" response
8181
Given new "CreateDORADeployment" request
82-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
82+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "service": "shopist", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
8383
When the request is sent
8484
Then the response status is 202 OK - but delayed due to incident
8585

@@ -100,7 +100,7 @@ Feature: DORA Metrics
100100
@generated @skip @team:DataDog/ci-app-backend
101101
Scenario: Send a failure event for DORA Metrics returns "OK - but delayed due to incident" response
102102
Given new "CreateDORAFailure" request
103-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
103+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
104104
When the request is sent
105105
Then the response status is 202 OK - but delayed due to incident
106106

@@ -114,20 +114,20 @@ Feature: DORA Metrics
114114
@generated @skip @team:DataDog/ci-app-backend
115115
Scenario: Send an incident event for DORA Metrics returns "Bad Request" response
116116
Given new "CreateDORAIncident" request
117-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
117+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
118118
When the request is sent
119119
Then the response status is 400 Bad Request
120120

121121
@generated @skip @team:DataDog/ci-app-backend
122122
Scenario: Send an incident event for DORA Metrics returns "OK - but delayed due to incident" response
123123
Given new "CreateDORAIncident" request
124-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
124+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
125125
When the request is sent
126126
Then the response status is 202 OK - but delayed due to incident
127127

128128
@generated @skip @team:DataDog/ci-app-backend
129129
Scenario: Send an incident event for DORA Metrics returns "OK" response
130130
Given new "CreateDORAIncident" request
131-
And body with value {"data": {"attributes": {"env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
131+
And body with value {"data": {"attributes": {"custom_tags": ["language:java", "department:engineering"], "env": "staging", "finished_at": 1693491984000000000, "git": {"commit_sha": "66adc9350f2cc9b250b69abddab733dd55e1a588", "repository_url": "https://github.com/organization/example-repository"}, "name": "Webserver is down failing all requests.", "services": ["shopist"], "severity": "High", "started_at": 1693491974000000000, "team": "backend", "version": "v1.12.07"}}}
132132
When the request is sent
133133
Then the response status is 200 OK

lib/datadog_api_client/v2/models/dora_deployment_request_attributes.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class DORADeploymentRequestAttributes
2222
include BaseGenericModel
2323

24+
# A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event.
25+
attr_accessor :custom_tags
26+
2427
# Environment name to where the service was deployed.
2528
attr_accessor :env
2629

@@ -51,6 +54,7 @@ class DORADeploymentRequestAttributes
5154
# @!visibility private
5255
def self.attribute_map
5356
{
57+
:'custom_tags' => :'custom_tags',
5458
:'env' => :'env',
5559
:'finished_at' => :'finished_at',
5660
:'git' => :'git',
@@ -66,6 +70,7 @@ def self.attribute_map
6670
# @!visibility private
6771
def self.openapi_types
6872
{
73+
:'custom_tags' => :'Array<String>',
6974
:'env' => :'String',
7075
:'finished_at' => :'Integer',
7176
:'git' => :'DORAGitInfo',
@@ -77,6 +82,14 @@ def self.openapi_types
7782
}
7883
end
7984

85+
# List of attributes with nullable: true
86+
# @!visibility private
87+
def self.openapi_nullable
88+
Set.new([
89+
:'custom_tags',
90+
])
91+
end
92+
8093
# Initializes the object
8194
# @param attributes [Hash] Model attributes in the form of hash
8295
# @!visibility private
@@ -95,6 +108,12 @@ def initialize(attributes = {})
95108
end
96109
}
97110

111+
if attributes.key?(:'custom_tags')
112+
if (value = attributes[:'custom_tags']).is_a?(Array)
113+
self.custom_tags = value
114+
end
115+
end
116+
98117
if attributes.key?(:'env')
99118
self.env = attributes[:'env']
100119
end
@@ -194,6 +213,7 @@ def to_hash
194213
def ==(o)
195214
return true if self.equal?(o)
196215
self.class == o.class &&
216+
custom_tags == o.custom_tags &&
197217
env == o.env &&
198218
finished_at == o.finished_at &&
199219
git == o.git &&
@@ -209,7 +229,7 @@ def ==(o)
209229
# @return [Integer] Hash code
210230
# @!visibility private
211231
def hash
212-
[env, finished_at, git, id, service, started_at, team, version, additional_properties].hash
232+
[custom_tags, env, finished_at, git, id, service, started_at, team, version, additional_properties].hash
213233
end
214234
end
215235
end

lib/datadog_api_client/v2/models/dora_failure_request_attributes.rb

Lines changed: 21 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -21,6 +21,9 @@ module DatadogAPIClient::V2
2121
class DORAFailureRequestAttributes
2222
include BaseGenericModel
2323

24+
# A list of user-defined tags. The tags must follow the `key:value` pattern. Up to 100 may be added per event.
25+
attr_accessor :custom_tags
26+
2427
# Environment name that was impacted by the failure.
2528
attr_accessor :env
2629

@@ -57,6 +60,7 @@ class DORAFailureRequestAttributes
5760
# @!visibility private
5861
def self.attribute_map
5962
{
63+
:'custom_tags' => :'custom_tags',
6064
:'env' => :'env',
6165
:'finished_at' => :'finished_at',
6266
:'git' => :'git',
@@ -74,6 +78,7 @@ def self.attribute_map
7478
# @!visibility private
7579
def self.openapi_types
7680
{
81+
:'custom_tags' => :'Array<String>',
7782
:'env' => :'String',
7883
:'finished_at' => :'Integer',
7984
:'git' => :'DORAGitInfo',
@@ -87,6 +92,14 @@ def self.openapi_types
8792
}
8893
end
8994

95+
# List of attributes with nullable: true
96+
# @!visibility private
97+
def self.openapi_nullable
98+
Set.new([
99+
:'custom_tags',
100+
])
101+
end
102+
90103
# Initializes the object
91104
# @param attributes [Hash] Model attributes in the form of hash
92105
# @!visibility private
@@ -105,6 +118,12 @@ def initialize(attributes = {})
105118
end
106119
}
107120

121+
if attributes.key?(:'custom_tags')
122+
if (value = attributes[:'custom_tags']).is_a?(Array)
123+
self.custom_tags = value
124+
end
125+
end
126+
108127
if attributes.key?(:'env')
109128
self.env = attributes[:'env']
110129
end
@@ -192,6 +211,7 @@ def to_hash
192211
def ==(o)
193212
return true if self.equal?(o)
194213
self.class == o.class &&
214+
custom_tags == o.custom_tags &&
195215
env == o.env &&
196216
finished_at == o.finished_at &&
197217
git == o.git &&
@@ -209,7 +229,7 @@ def ==(o)
209229
# @return [Integer] Hash code
210230
# @!visibility private
211231
def hash
212-
[env, finished_at, git, id, name, services, severity, started_at, team, version, additional_properties].hash
232+
[custom_tags, env, finished_at, git, id, name, services, severity, started_at, team, version, additional_properties].hash
213233
end
214234
end
215235
end

0 commit comments

Comments
 (0)