Skip to content

Commit 105a19c

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9cb15a5 of spec repo
1 parent 5f3ad6a commit 105a19c

16 files changed

+1010
-9
lines changed

.generated-info

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
11
{
2-
"spec_repo_commit": "06ccc32",
3-
"generated": "2025-07-21 13:55:17.296"
2+
"spec_repo_commit": "9cb15a5",
3+
"generated": "2025-07-21 20:01:15.989"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 228 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12925,6 +12925,42 @@ components:
1292512925
description: The type of the resource. The value should always be device.
1292612926
type: string
1292712927
type: object
12928+
DnsMetricKey:
12929+
description: The metric key for DNS metrics.
12930+
enum:
12931+
- dns_total_requests
12932+
- dns_failures
12933+
- dns_successful_responses
12934+
- dns_failed_responses
12935+
- dns_timeouts
12936+
- dns_responses.nxdomain
12937+
- dns_responses.servfail
12938+
- dns_responses.other
12939+
- dns_success_latency_percentile
12940+
- dns_failure_latency_percentile
12941+
type: string
12942+
x-enum-descriptions:
12943+
- The total number of DNS requests made by the client.
12944+
- The total number of timeouts and errors in DNS requests.
12945+
- The total number of successful DNS responses.
12946+
- The total number of failed DNS responses.
12947+
- The total number of DNS timeouts.
12948+
- The total number of DNS responses with the NXDOMAIN error code.
12949+
- The total number of DNS responses with the SERVFAIL error code.
12950+
- The total number of DNS responses with other error codes.
12951+
- The latency percentile for successful DNS responses.
12952+
- The latency percentile for failed DNS responses.
12953+
x-enum-varnames:
12954+
- DNS_TOTAL_REQUESTS
12955+
- DNS_FAILURES
12956+
- DNS_SUCCESSFUL_RESPONSES
12957+
- DNS_FAILED_RESPONSES
12958+
- DNS_TIMEOUTS
12959+
- DNS_RESPONSES_NXDOMAIN
12960+
- DNS_RESPONSES_SERVFAIL
12961+
- DNS_RESPONSES_OTHER
12962+
- DNS_SUCCESS_LATENCY_PERCENTILE
12963+
- DNS_FAILURE_LATENCY_PERCENTILE
1292812964
DomainAllowlist:
1292912965
description: The email domain allowlist for an org.
1293012966
properties:
@@ -38383,6 +38419,133 @@ components:
3838338419
type: string
3838438420
x-enum-varnames:
3838538421
- AGGREGATED_CONNECTION
38422+
SingleAggregatedDnsResponseArray:
38423+
description: List of aggregated DNS flows.
38424+
example:
38425+
data:
38426+
- attributes:
38427+
group_bys:
38428+
- key: client_team
38429+
value: networks
38430+
- key: server_service
38431+
value: hucklebuck
38432+
metrics:
38433+
- key: dns_total_requests
38434+
value: 100
38435+
- key: dns_failures
38436+
value: 6
38437+
- key: dns_successful_responses
38438+
value: 95
38439+
- key: dns_failed_responses
38440+
value: 4
38441+
- key: dns_timeouts
38442+
value: 2
38443+
- key: dns_responses.nxdomain
38444+
value: 1
38445+
- key: dns_responses.servfail
38446+
value: 1
38447+
- key: dns_responses.other
38448+
value: 3
38449+
- key: dns_success_latency_percentile
38450+
value: 50
38451+
- key: dns_failure_latency_percentile
38452+
value: 75
38453+
id: client_team:networks, server_service:hucklebuck
38454+
type: aggregated_dns
38455+
properties:
38456+
data:
38457+
description: Array of aggregated DNS objects.
38458+
items:
38459+
$ref: '#/components/schemas/SingleAggregatedDnsResponseData'
38460+
type: array
38461+
type: object
38462+
SingleAggregatedDnsResponseData:
38463+
description: Object describing an aggregated DNS flow.
38464+
properties:
38465+
attributes:
38466+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataAttributes'
38467+
id:
38468+
description: A unique identifier for the aggregated DNS traffic based on
38469+
the group by values.
38470+
example: client_service:example-service,network.dns_query:example.com
38471+
type: string
38472+
type:
38473+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataType'
38474+
example: aggregated_dns
38475+
type: object
38476+
SingleAggregatedDnsResponseDataAttributes:
38477+
description: Attributes for an aggregated DNS flow.
38478+
properties:
38479+
group_bys:
38480+
additionalProperties: {}
38481+
description: The key, value pairs for each group by.
38482+
example:
38483+
- key: client_service
38484+
value: example-service
38485+
- key: network.dns_query
38486+
value: example.com
38487+
items:
38488+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataAttributesGroupByItems'
38489+
type: array
38490+
metrics:
38491+
additionalProperties: {}
38492+
description: Metrics associated with an aggregated DNS flow.
38493+
example:
38494+
- key: dns_total_requests
38495+
value: 100
38496+
- key: dns_failures
38497+
value: 7
38498+
- key: dns_successful_responses
38499+
value: 93
38500+
- key: dns_failed_responses
38501+
value: 5
38502+
- key: dns_timeouts
38503+
value: 2
38504+
- key: dns_responses.nxdomain
38505+
value: 1
38506+
- key: dns_responses.servfail
38507+
value: 1
38508+
- key: dns_responses.other
38509+
value: 3
38510+
- key: dns_success_latency_percentile
38511+
value: 50
38512+
- key: dns_failure_latency_percentile
38513+
value: 76
38514+
items:
38515+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataAttributesMetricsItems'
38516+
type: array
38517+
type: object
38518+
SingleAggregatedDnsResponseDataAttributesGroupByItems:
38519+
description: Attributes associated with a group by
38520+
properties:
38521+
key:
38522+
description: The group by key.
38523+
type: string
38524+
value:
38525+
additionalProperties:
38526+
items:
38527+
type: string
38528+
type: array
38529+
description: The group by value.
38530+
type: object
38531+
SingleAggregatedDnsResponseDataAttributesMetricsItems:
38532+
description: Metrics associated with an aggregated DNS flow.
38533+
properties:
38534+
key:
38535+
$ref: '#/components/schemas/DnsMetricKey'
38536+
value:
38537+
description: The metric value.
38538+
format: int64
38539+
type: integer
38540+
type: object
38541+
SingleAggregatedDnsResponseDataType:
38542+
default: aggregated_dns
38543+
description: Aggregated DNS resource type.
38544+
enum:
38545+
- aggregated_dns
38546+
type: string
38547+
x-enum-varnames:
38548+
- AGGREGATED_DNS
3838638549
SlackIntegrationMetadata:
3838738550
description: Incident integration metadata for the Slack integration.
3838838551
properties:
@@ -55030,6 +55193,69 @@ paths:
5503055193
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
5503155194

5503255195
contact [Datadog support](https://docs.datadoghq.com/help/).'
55196+
/api/v2/network/dns/aggregate:
55197+
get:
55198+
description: Get all aggregated DNS traffic.
55199+
operationId: GetAggregatedDns
55200+
parameters:
55201+
- description: Unix timestamp (number of seconds since epoch) of the start of
55202+
the query window. If not provided, the start of the query window is 15 minutes
55203+
before the `to` timestamp. If neither `from` nor `to` are provided, the
55204+
query window is `[now - 15m, now]`.
55205+
in: query
55206+
name: from
55207+
schema:
55208+
format: int64
55209+
type: integer
55210+
- description: Unix timestamp (number of seconds since epoch) of the end of
55211+
the query window. If not provided, the end of the query window is the current
55212+
time. If neither `from` nor `to` are provided, the query window is `[now
55213+
- 15m, now]`.
55214+
in: query
55215+
name: to
55216+
schema:
55217+
format: int64
55218+
type: integer
55219+
- description: Comma-separated list of fields to group DNS traffic by. The server
55220+
side defaults to `network.dns_query` if unspecified. `server_ungrouped`
55221+
may be used if groups are not desired. The maximum number of group_by(s)
55222+
is 10.
55223+
in: query
55224+
name: group_by
55225+
schema:
55226+
type: string
55227+
- description: Comma-separated list of tags to filter DNS traffic by.
55228+
in: query
55229+
name: tags
55230+
schema:
55231+
type: string
55232+
- description: The number of aggregated DNS entries to be returned. The maximum
55233+
value is 7500.
55234+
in: query
55235+
name: limit
55236+
schema:
55237+
default: 100
55238+
format: int32
55239+
maximum: 7500
55240+
minimum: 1
55241+
type: integer
55242+
responses:
55243+
'200':
55244+
content:
55245+
application/json:
55246+
schema:
55247+
$ref: '#/components/schemas/SingleAggregatedDnsResponseArray'
55248+
description: OK
55249+
'400':
55250+
$ref: '#/components/responses/BadRequestResponse'
55251+
'429':
55252+
$ref: '#/components/responses/TooManyRequestsResponse'
55253+
summary: Get all aggregated DNS traffic
55254+
tags:
55255+
- Cloud Network Monitoring
55256+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
55257+
55258+
contact [Datadog support](https://docs.datadoghq.com/help/).'
5503355259
/api/v2/on-call/escalation-policies:
5503455260
post:
5503555261
description: Create a new On-Call escalation policy
@@ -65821,7 +66047,8 @@ tags:
6582166047
documentation](https://docs.datadoghq.com/cloud_cost_management/).
6582266048
name: Cloud Cost Management
6582366049
- description: The Cloud Network Monitoring API allows you to fetch aggregated connections
65824-
and their attributes. See the [Cloud Network Monitoring page](https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring/)
66050+
and DNS traffic with their attributes. See the [Cloud Network Monitoring page](https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring/)
66051+
and [DNS Monitoring page](https://docs.datadoghq.com/network_monitoring/dns/)
6582566052
for more information.
6582666053
name: Cloud Network Monitoring
6582766054
- description: Manage your Datadog Cloudflare integration directly through the Datadog
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Get all aggregated DNS traffic returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_aggregated_dns".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudNetworkMonitoringAPI.new
8+
p api_instance.get_aggregated_dns()

features/scenarios_model_mapping.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2163,6 +2163,13 @@
21632163
"tags" => "String",
21642164
"limit" => "Integer",
21652165
},
2166+
"v2.GetAggregatedDns" => {
2167+
"from" => "Integer",
2168+
"to" => "Integer",
2169+
"group_by" => "String",
2170+
"tags" => "String",
2171+
"limit" => "Integer",
2172+
},
21662173
"v2.CreateOnCallEscalationPolicy" => {
21672174
"include" => "String",
21682175
"body" => "EscalationPolicyCreateRequest",
Lines changed: 27 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,29 +1,50 @@
11
@endpoint(cloud-network-monitoring) @endpoint(cloud-network-monitoring-v2)
22
Feature: Cloud Network Monitoring
33
The Cloud Network Monitoring API allows you to fetch aggregated
4-
connections and their attributes. See the [Cloud Network Monitoring page](
5-
https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring/)
6-
for more information.
4+
connections and DNS traffic with their attributes. See the [Cloud Network
5+
Monitoring page](https://docs.datadoghq.com/network_monitoring/cloud_netwo
6+
rk_monitoring/) and [DNS Monitoring
7+
page](https://docs.datadoghq.com/network_monitoring/dns/) for more
8+
information.
79

810
Background:
911
Given a valid "apiKeyAuth" key in the system
1012
And a valid "appKeyAuth" key in the system
1113
And an instance of "CloudNetworkMonitoring" API
12-
And operation "GetAggregatedConnections" enabled
13-
And new "GetAggregatedConnections" request
1414

1515
@team:Datadog/networks
1616
Scenario: Get aggregated connections returns "OK" response
17+
Given operation "GetAggregatedConnections" enabled
18+
And new "GetAggregatedConnections" request
19+
When the request is sent
20+
Then the response status is 200 OK
21+
22+
@team:Datadog/networks
23+
Scenario: Get all aggregated DNS traffic returns "Bad Request" response
24+
Given operation "GetAggregatedDns" enabled
25+
And new "GetAggregatedDns" request
26+
And request contains "group_by" parameter with value "server_ungrouped,server_service"
27+
When the request is sent
28+
Then the response status is 400 Bad Request
29+
30+
@team:Datadog/networks
31+
Scenario: Get all aggregated DNS traffic returns "OK" response
32+
Given operation "GetAggregatedDns" enabled
33+
And new "GetAggregatedDns" request
1734
When the request is sent
1835
Then the response status is 200 OK
1936

2037
@skip-python @skip-ruby @team:Datadog/networks
2138
Scenario: Get all aggregated connections returns "Bad Request" response
22-
Given request contains "limit" parameter with value 6000
39+
Given operation "GetAggregatedConnections" enabled
40+
And new "GetAggregatedConnections" request
41+
And request contains "limit" parameter with value 8000
2342
When the request is sent
2443
Then the response status is 400 Bad Request
2544

2645
@generated @skip @team:Datadog/networks
2746
Scenario: Get all aggregated connections returns "OK" response
47+
Given operation "GetAggregatedConnections" enabled
48+
And new "GetAggregatedConnections" request
2849
When the request is sent
2950
Then the response status is 200 OK

features/v2/undo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2072,6 +2072,12 @@
20722072
"type": "safe"
20732073
}
20742074
},
2075+
"GetAggregatedDns": {
2076+
"tag": "Cloud Network Monitoring",
2077+
"undo": {
2078+
"type": "safe"
2079+
}
2080+
},
20752081
"CreateOnCallEscalationPolicy": {
20762082
"tag": "On-Call",
20772083
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -250,6 +250,7 @@ def initialize
250250
"v2.validate_existing_monitor_user_template": false,
251251
"v2.validate_monitor_user_template": false,
252252
"v2.get_aggregated_connections": false,
253+
"v2.get_aggregated_dns": false,
253254
"v2.create_pipeline": false,
254255
"v2.delete_pipeline": false,
255256
"v2.get_pipeline": false,

lib/datadog_api_client/inflector.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1641,6 +1641,7 @@ def overrides
16411641
"v2.device_attributes" => "DeviceAttributes",
16421642
"v2.device_attributes_interface_statuses" => "DeviceAttributesInterfaceStatuses",
16431643
"v2.devices_list_data" => "DevicesListData",
1644+
"v2.dns_metric_key" => "DnsMetricKey",
16441645
"v2.domain_allowlist" => "DomainAllowlist",
16451646
"v2.domain_allowlist_attributes" => "DomainAllowlistAttributes",
16461647
"v2.domain_allowlist_request" => "DomainAllowlistRequest",
@@ -3285,6 +3286,12 @@ def overrides
32853286
"v2.single_aggregated_connection_response_data" => "SingleAggregatedConnectionResponseData",
32863287
"v2.single_aggregated_connection_response_data_attributes" => "SingleAggregatedConnectionResponseDataAttributes",
32873288
"v2.single_aggregated_connection_response_data_type" => "SingleAggregatedConnectionResponseDataType",
3289+
"v2.single_aggregated_dns_response_array" => "SingleAggregatedDnsResponseArray",
3290+
"v2.single_aggregated_dns_response_data" => "SingleAggregatedDnsResponseData",
3291+
"v2.single_aggregated_dns_response_data_attributes" => "SingleAggregatedDnsResponseDataAttributes",
3292+
"v2.single_aggregated_dns_response_data_attributes_group_by_items" => "SingleAggregatedDnsResponseDataAttributesGroupByItems",
3293+
"v2.single_aggregated_dns_response_data_attributes_metrics_items" => "SingleAggregatedDnsResponseDataAttributesMetricsItems",
3294+
"v2.single_aggregated_dns_response_data_type" => "SingleAggregatedDnsResponseDataType",
32883295
"v2.slack_integration_metadata" => "SlackIntegrationMetadata",
32893296
"v2.slack_integration_metadata_channel_item" => "SlackIntegrationMetadataChannelItem",
32903297
"v2.slack_trigger_wrapper" => "SlackTriggerWrapper",

0 commit comments

Comments
 (0)