Skip to content

Commit 8d379e6

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6232298 of spec repo
1 parent 95d53e3 commit 8d379e6

16 files changed

+985
-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": "f2ae7eb",
3-
"generated": "2025-07-17 19:53:16.203"
2+
"spec_repo_commit": "6232298",
3+
"generated": "2025-07-17 22:30:12.128"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 203 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12826,6 +12826,43 @@ components:
1282612826
description: The type of the resource. The value should always be device.
1282712827
type: string
1282812828
type: object
12829+
DnsMetricKey:
12830+
description: The metric key for DNS metrics.
12831+
enum:
12832+
- dns_total_requests
12833+
- dns_failures
12834+
- dns_successful_responses
12835+
- dns_failed_responses
12836+
- dns_timeouts
12837+
- dns_responses.nxdomain
12838+
- dns_responses.servfail
12839+
- dns_responses.other
12840+
- dns_success_latency_percentile
12841+
- dns_failure_latency_percentile
12842+
example: dns_total_requests
12843+
type: string
12844+
x-enum-descriptions:
12845+
- The total number of DNS requests made by the client.
12846+
- The total number of timeouts and errors in DNS requests.
12847+
- The total number of successful DNS responses.
12848+
- The total number of failed DNS responses.
12849+
- The total number of DNS timeouts.
12850+
- The total number of DNS responses with the NXDOMAIN error code.
12851+
- The total number of DNS responses with the SERVFAIL error code.
12852+
- The total number of DNS responses with other error codes.
12853+
- The latency percentile for successful DNS responses.
12854+
- The latency percentile for failed DNS responses.
12855+
x-enum-varnames:
12856+
- DNS_TOTAL_REQUESTS
12857+
- DNS_FAILURES
12858+
- DNS_SUCCESSFUL_RESPONSES
12859+
- DNS_FAILED_RESPONSES
12860+
- DNS_TIMEOUTS
12861+
- DNS_RESPONSES_NXDOMAIN
12862+
- DNS_RESPONSES_SERVFAIL
12863+
- DNS_RESPONSES_OTHER
12864+
- DNS_SUCCESS_LATENCY_PERCENTILE
12865+
- DNS_FAILURE_LATENCY_PERCENTILE
1282912866
DomainAllowlist:
1283012867
description: The email domain allowlist for an org.
1283112868
properties:
@@ -38222,6 +38259,107 @@ components:
3822238259
type: string
3822338260
x-enum-varnames:
3822438261
- AGGREGATED_CONNECTION
38262+
SingleAggregatedDnsResponseArray:
38263+
description: List of aggregated DNS flows.
38264+
example:
38265+
data:
38266+
- attributes:
38267+
group_bys:
38268+
- key: client_team
38269+
value: networks
38270+
- key: server_service
38271+
value: hucklebuck
38272+
metrics:
38273+
- key: dns_total_requests
38274+
value: 100
38275+
- key: dns_failures
38276+
value: 6
38277+
- key: dns_successful_responses
38278+
value: 95
38279+
- key: dns_failed_responses
38280+
value: 4
38281+
- key: dns_timeouts
38282+
value: 2
38283+
- key: dns_responses.nxdomain
38284+
value: 1
38285+
- key: dns_responses.servfail
38286+
value: 1
38287+
- key: dns_responses.other
38288+
value: 3
38289+
- key: dns_success_latency_percentile
38290+
value: 50
38291+
- key: dns_failure_latency_percentile
38292+
value: 75
38293+
id: client_team:networks, server_service:hucklebuck
38294+
type: aggregated_dns
38295+
properties:
38296+
data:
38297+
description: Array of aggregated DNS objects.
38298+
items:
38299+
$ref: '#/components/schemas/SingleAggregatedDnsResponseData'
38300+
type: array
38301+
type: object
38302+
SingleAggregatedDnsResponseData:
38303+
description: Object describing an aggregated DNS flow.
38304+
properties:
38305+
attributes:
38306+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataAttributes'
38307+
id:
38308+
description: A unique identifier for the aggregated DNS traffic based on
38309+
the group by values.
38310+
example: client_service:example-service
38311+
type: string
38312+
type:
38313+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataType'
38314+
example: aggregated_dns
38315+
type: object
38316+
SingleAggregatedDnsResponseDataAttributes:
38317+
description: Attributes for an aggregated DNS flow.
38318+
properties:
38319+
group_bys:
38320+
description: The key, value pairs for each group by.
38321+
items:
38322+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataAttributesGroupByItems'
38323+
type: array
38324+
metrics:
38325+
description: Metrics associated with an aggregated DNS flow.
38326+
items:
38327+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataAttributesMetricsItems'
38328+
type: array
38329+
type: object
38330+
SingleAggregatedDnsResponseDataAttributesGroupByItems:
38331+
description: Attributes associated with a group by
38332+
properties:
38333+
key:
38334+
description: The group by key.
38335+
example: client_service
38336+
type: string
38337+
value:
38338+
additionalProperties:
38339+
items:
38340+
type: string
38341+
type: array
38342+
description: The group by value.
38343+
example: example-service
38344+
type: object
38345+
SingleAggregatedDnsResponseDataAttributesMetricsItems:
38346+
description: Metrics associated with an aggregated DNS flow.
38347+
properties:
38348+
key:
38349+
$ref: '#/components/schemas/DnsMetricKey'
38350+
value:
38351+
description: The metric value.
38352+
format: int64
38353+
type: integer
38354+
type: object
38355+
SingleAggregatedDnsResponseDataType:
38356+
default: aggregated_dns
38357+
description: Aggregated DNS resource type.
38358+
enum:
38359+
- aggregated_dns
38360+
type: string
38361+
x-enum-varnames:
38362+
- AGGREGATED_DNS
3822538363
SlackIntegrationMetadata:
3822638364
description: Incident integration metadata for the Slack integration.
3822738365
properties:
@@ -54825,6 +54963,69 @@ paths:
5482554963
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
5482654964

5482754965
contact [Datadog support](https://docs.datadoghq.com/help/).'
54966+
/api/v2/network/dns/aggregate:
54967+
get:
54968+
description: Get all aggregated DNS traffic.
54969+
operationId: GetAggregatedDns
54970+
parameters:
54971+
- description: Unix timestamp (number of seconds since epoch) of the start of
54972+
the query window. If not provided, the start of the query window is 15 minutes
54973+
before the `to` timestamp. If neither `from` nor `to` are provided, the
54974+
query window is `[now - 15m, now]`.
54975+
in: query
54976+
name: from
54977+
schema:
54978+
format: int64
54979+
type: integer
54980+
- description: Unix timestamp (number of seconds since epoch) of the end of
54981+
the query window. If not provided, the end of the query window is the current
54982+
time. If neither `from` nor `to` are provided, the query window is `[now
54983+
- 15m, now]`.
54984+
in: query
54985+
name: to
54986+
schema:
54987+
format: int64
54988+
type: integer
54989+
- description: Comma-separated list of fields to group DNS traffic by. The server
54990+
side defaults to `network.dns_query` if unspecified. `server_ungrouped`
54991+
may be used if groups are not desired. The maximum number of group_by(s)
54992+
is 10.
54993+
in: query
54994+
name: group_by
54995+
schema:
54996+
type: string
54997+
- description: Comma-separated list of tags to filter DNS traffic by.
54998+
in: query
54999+
name: tags
55000+
schema:
55001+
type: string
55002+
- description: The number of aggregated DNS entries to be returned. The maximum
55003+
value is 7500.
55004+
in: query
55005+
name: limit
55006+
schema:
55007+
default: 100
55008+
format: int32
55009+
maximum: 7500
55010+
minimum: 1
55011+
type: integer
55012+
responses:
55013+
'200':
55014+
content:
55015+
application/json:
55016+
schema:
55017+
$ref: '#/components/schemas/SingleAggregatedDnsResponseArray'
55018+
description: OK
55019+
'400':
55020+
$ref: '#/components/responses/BadRequestResponse'
55021+
'429':
55022+
$ref: '#/components/responses/TooManyRequestsResponse'
55023+
summary: Get all aggregated DNS traffic
55024+
tags:
55025+
- Cloud Network Monitoring
55026+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
55027+
55028+
contact [Datadog support](https://docs.datadoghq.com/help/).'
5482855029
/api/v2/on-call/escalation-policies:
5482955030
post:
5483055031
description: Create a new On-Call escalation policy
@@ -65612,7 +65813,8 @@ tags:
6561265813
documentation](https://docs.datadoghq.com/cloud_cost_management/).
6561365814
name: Cloud Cost Management
6561465815
- description: The Cloud Network Monitoring API allows you to fetch aggregated connections
65615-
and their attributes. See the [Cloud Network Monitoring page](https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring/)
65816+
and DNS traffic with their attributes. See the [Cloud Network Monitoring page](https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring/)
65817+
and [DNS Monitoring page](https://docs.datadoghq.com/network_monitoring/dns/)
6561665818
for more information.
6561765819
name: Cloud Network Monitoring
6561865820
- 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
@@ -2160,6 +2160,13 @@
21602160
"tags" => "String",
21612161
"limit" => "Integer",
21622162
},
2163+
"v2.GetAggregatedDns" => {
2164+
"from" => "Integer",
2165+
"to" => "Integer",
2166+
"group_by" => "String",
2167+
"tags" => "String",
2168+
"limit" => "Integer",
2169+
},
21632170
"v2.CreateOnCallEscalationPolicy" => {
21642171
"include" => "String",
21652172
"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
@@ -2066,6 +2066,12 @@
20662066
"type": "safe"
20672067
}
20682068
},
2069+
"GetAggregatedDns": {
2070+
"tag": "Cloud Network Monitoring",
2071+
"undo": {
2072+
"type": "safe"
2073+
}
2074+
},
20692075
"CreateOnCallEscalationPolicy": {
20702076
"tag": "On-Call",
20712077
"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
@@ -1633,6 +1633,7 @@ def overrides
16331633
"v2.device_attributes" => "DeviceAttributes",
16341634
"v2.device_attributes_interface_statuses" => "DeviceAttributesInterfaceStatuses",
16351635
"v2.devices_list_data" => "DevicesListData",
1636+
"v2.dns_metric_key" => "DnsMetricKey",
16361637
"v2.domain_allowlist" => "DomainAllowlist",
16371638
"v2.domain_allowlist_attributes" => "DomainAllowlistAttributes",
16381639
"v2.domain_allowlist_request" => "DomainAllowlistRequest",
@@ -3273,6 +3274,12 @@ def overrides
32733274
"v2.single_aggregated_connection_response_data" => "SingleAggregatedConnectionResponseData",
32743275
"v2.single_aggregated_connection_response_data_attributes" => "SingleAggregatedConnectionResponseDataAttributes",
32753276
"v2.single_aggregated_connection_response_data_type" => "SingleAggregatedConnectionResponseDataType",
3277+
"v2.single_aggregated_dns_response_array" => "SingleAggregatedDnsResponseArray",
3278+
"v2.single_aggregated_dns_response_data" => "SingleAggregatedDnsResponseData",
3279+
"v2.single_aggregated_dns_response_data_attributes" => "SingleAggregatedDnsResponseDataAttributes",
3280+
"v2.single_aggregated_dns_response_data_attributes_group_by_items" => "SingleAggregatedDnsResponseDataAttributesGroupByItems",
3281+
"v2.single_aggregated_dns_response_data_attributes_metrics_items" => "SingleAggregatedDnsResponseDataAttributesMetricsItems",
3282+
"v2.single_aggregated_dns_response_data_type" => "SingleAggregatedDnsResponseDataType",
32763283
"v2.slack_integration_metadata" => "SlackIntegrationMetadata",
32773284
"v2.slack_integration_metadata_channel_item" => "SlackIntegrationMetadataChannelItem",
32783285
"v2.slack_trigger_wrapper" => "SlackTriggerWrapper",

0 commit comments

Comments
 (0)