Skip to content

Commit fb3ba94

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 1f36c1c of spec repo
1 parent 94c276d commit fb3ba94

16 files changed

+1014
-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": "0becaa3",
3-
"generated": "2025-07-17 13:13:07.458"
2+
"spec_repo_commit": "1f36c1c",
3+
"generated": "2025-07-17 15:55:42.667"
44
}

.generator/schemas/v2/openapi.yaml

Lines changed: 203 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12634,6 +12634,43 @@ components:
1263412634
description: The type of the resource. The value should always be device.
1263512635
type: string
1263612636
type: object
12637+
DnsMetricKey:
12638+
description: The metric key for DNS metrics.
12639+
enum:
12640+
- dns_total_requests
12641+
- dns_failures
12642+
- dns_successful_responses
12643+
- dns_failed_responses
12644+
- dns_timeouts
12645+
- dns_responses.nxdomain
12646+
- dns_responses.servfail
12647+
- dns_responses.other
12648+
- dns_success_latency_percentile
12649+
- dns_failure_latency_percentile
12650+
example: dns_total_requests
12651+
type: string
12652+
x-enum-descriptions:
12653+
- The total number of DNS requests made by the client.
12654+
- The total number of timeouts and errors in DNS requests.
12655+
- The total number of successful DNS responses.
12656+
- The total number of failed DNS responses.
12657+
- The total number of DNS timeouts.
12658+
- The total number of DNS responses with the NXDOMAIN error code.
12659+
- The total number of DNS responses with the SERVFAIL error code.
12660+
- The total number of DNS responses with other error codes.
12661+
- The latency percentile for successful DNS responses.
12662+
- The latency percentile for failed DNS responses.
12663+
x-enum-varnames:
12664+
- DNS_TOTAL_REQUESTS
12665+
- DNS_FAILURES
12666+
- DNS_SUCCESSFUL_RESPONSES
12667+
- DNS_FAILED_RESPONSES
12668+
- DNS_TIMEOUTS
12669+
- DNS_RESPONSES_NXDOMAIN
12670+
- DNS_RESPONSES_SERVFAIL
12671+
- DNS_RESPONSES_OTHER
12672+
- DNS_SUCCESS_LATENCY_PERCENTILE
12673+
- DNS_FAILURE_LATENCY_PERCENTILE
1263712674
DomainAllowlist:
1263812675
description: The email domain allowlist for an org.
1263912676
properties:
@@ -37990,6 +38027,107 @@ components:
3799038027
type: string
3799138028
x-enum-varnames:
3799238029
- AGGREGATED_CONNECTION
38030+
SingleAggregatedDnsResponseArray:
38031+
description: List of aggregated DNS flows.
38032+
example:
38033+
data:
38034+
- attributes:
38035+
group_bys:
38036+
- key: client_team
38037+
value: networks
38038+
- key: server_service
38039+
value: hucklebuck
38040+
metrics:
38041+
- key: dns_total_requests
38042+
value: 100
38043+
- key: dns_failures
38044+
value: 6
38045+
- key: dns_successful_responses
38046+
value: 95
38047+
- key: dns_failed_responses
38048+
value: 4
38049+
- key: dns_timeouts
38050+
value: 2
38051+
- key: dns_responses.nxdomain
38052+
value: 1
38053+
- key: dns_responses.servfail
38054+
value: 1
38055+
- key: dns_responses.other
38056+
value: 3
38057+
- key: dns_success_latency_percentile
38058+
value: 50
38059+
- key: dns_failure_latency_percentile
38060+
value: 75
38061+
id: client_team:networks, server_service:hucklebuck
38062+
type: aggregated_dns
38063+
properties:
38064+
data:
38065+
description: Array of aggregated DNS flow objects.
38066+
items:
38067+
$ref: '#/components/schemas/SingleAggregatedDnsResponseData'
38068+
type: array
38069+
type: object
38070+
SingleAggregatedDnsResponseData:
38071+
description: Object describing an aggregated DNS flow.
38072+
properties:
38073+
attributes:
38074+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataAttributes'
38075+
id:
38076+
description: A unique identifier for the aggregated DNS traffic based on
38077+
the group by values.
38078+
type: string
38079+
type:
38080+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataType'
38081+
type: object
38082+
SingleAggregatedDnsResponseDataAttributes:
38083+
description: Attributes for an aggregated DNS flow.
38084+
properties:
38085+
group_bys:
38086+
description: The key, value pairs for each group by.
38087+
items:
38088+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataAttributesGroupByItems'
38089+
type: array
38090+
metrics:
38091+
description: Metrics associated with an aggregated DNS flow.
38092+
items:
38093+
$ref: '#/components/schemas/SingleAggregatedDnsResponseDataAttributesMetricsItems'
38094+
type: array
38095+
type: object
38096+
SingleAggregatedDnsResponseDataAttributesGroupByItems:
38097+
description: Attributes associated with a group by
38098+
properties:
38099+
key:
38100+
description: The group by key.
38101+
type: string
38102+
value:
38103+
additionalProperties:
38104+
items:
38105+
type: string
38106+
type: array
38107+
description: The group by value.
38108+
type: object
38109+
SingleAggregatedDnsResponseDataAttributesMetricsItems:
38110+
description: Metrics associated with an aggregated DNS flow.
38111+
properties:
38112+
key:
38113+
$ref: '#/components/schemas/DnsMetricKey'
38114+
value:
38115+
description: The metric value.
38116+
example: 1
38117+
format: int64
38118+
type: integer
38119+
required:
38120+
- key
38121+
- value
38122+
type: object
38123+
SingleAggregatedDnsResponseDataType:
38124+
default: aggregated_dns
38125+
description: Aggregated DNS resource type.
38126+
enum:
38127+
- aggregated_dns
38128+
type: string
38129+
x-enum-varnames:
38130+
- AGGREGATED_DNS
3799338131
SlackIntegrationMetadata:
3799438132
description: Incident integration metadata for the Slack integration.
3799538133
properties:
@@ -54460,6 +54598,69 @@ paths:
5446054598
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
5446154599

5446254600
contact [Datadog support](https://docs.datadoghq.com/help/).'
54601+
/api/v2/network/dns/aggregate:
54602+
get:
54603+
description: Get all aggregated DNS traffic.
54604+
operationId: GetAggregatedDns
54605+
parameters:
54606+
- description: Unix timestamp (number of seconds since epoch) of the start of
54607+
the query window. If not provided, the start of the query window is 15 minutes
54608+
before the `to` timestamp. If neither `from` nor `to` are provided, the
54609+
query window is `[now - 15m, now]`.
54610+
in: query
54611+
name: from
54612+
schema:
54613+
format: int64
54614+
type: integer
54615+
- description: Unix timestamp (number of seconds since epoch) of the end of
54616+
the query window. If not provided, the end of the query window is the current
54617+
time. If neither `from` nor `to` are provided, the query window is `[now
54618+
- 15m, now]`.
54619+
in: query
54620+
name: to
54621+
schema:
54622+
format: int64
54623+
type: integer
54624+
- description: Comma-separated list of fields to group DNS traffic by. The server
54625+
side defaults to `network.dns_query` if unspecified. `server_ungrouped`
54626+
may be used if groups are not desired. The maximum number of group_by(s)
54627+
is 10.
54628+
in: query
54629+
name: group_by
54630+
schema:
54631+
type: string
54632+
- description: Comma-separated list of tags to filter DNS traffic by.
54633+
in: query
54634+
name: tags
54635+
schema:
54636+
type: string
54637+
- description: The number of aggregated DNS entries to be returned. The maximum
54638+
value is 7500.
54639+
in: query
54640+
name: limit
54641+
schema:
54642+
default: 100
54643+
format: int32
54644+
maximum: 7500
54645+
minimum: 1
54646+
type: integer
54647+
responses:
54648+
'200':
54649+
content:
54650+
application/json:
54651+
schema:
54652+
$ref: '#/components/schemas/SingleAggregatedDnsResponseArray'
54653+
description: OK
54654+
'400':
54655+
$ref: '#/components/responses/BadRequestResponse'
54656+
'429':
54657+
$ref: '#/components/responses/TooManyRequestsResponse'
54658+
summary: Get all aggregated DNS traffic
54659+
tags:
54660+
- Cloud Network Monitoring
54661+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
54662+
54663+
contact [Datadog support](https://docs.datadoghq.com/help/).'
5446354664
/api/v2/on-call/escalation-policies:
5446454665
post:
5446554666
description: Create a new On-Call escalation policy
@@ -65264,7 +65465,8 @@ tags:
6526465465
documentation](https://docs.datadoghq.com/cloud_cost_management/).
6526565466
name: Cloud Cost Management
6526665467
- description: The Cloud Network Monitoring API allows you to fetch aggregated connections
65267-
and their attributes. See the [Cloud Network Monitoring page](https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring/)
65468+
and DNS traffic with their attributes. See the [Cloud Network Monitoring page](https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring/)
65469+
and [DNS Monitoring page](https://docs.datadoghq.com/network_monitoring/dns/)
6526865470
for more information.
6526965471
name: Cloud Network Monitoring
6527065472
- 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
@@ -2157,6 +2157,13 @@
21572157
"tags" => "String",
21582158
"limit" => "Integer",
21592159
},
2160+
"v2.GetAggregatedDns" => {
2161+
"from" => "Integer",
2162+
"to" => "Integer",
2163+
"group_by" => "String",
2164+
"tags" => "String",
2165+
"limit" => "Integer",
2166+
},
21602167
"v2.CreateOnCallEscalationPolicy" => {
21612168
"include" => "String",
21622169
"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
@@ -2060,6 +2060,12 @@
20602060
"type": "safe"
20612061
}
20622062
},
2063+
"GetAggregatedDns": {
2064+
"tag": "Cloud Network Monitoring",
2065+
"undo": {
2066+
"type": "safe"
2067+
}
2068+
},
20632069
"CreateOnCallEscalationPolicy": {
20642070
"tag": "On-Call",
20652071
"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
@@ -1621,6 +1621,7 @@ def overrides
16211621
"v2.device_attributes" => "DeviceAttributes",
16221622
"v2.device_attributes_interface_statuses" => "DeviceAttributesInterfaceStatuses",
16231623
"v2.devices_list_data" => "DevicesListData",
1624+
"v2.dns_metric_key" => "DnsMetricKey",
16241625
"v2.domain_allowlist" => "DomainAllowlist",
16251626
"v2.domain_allowlist_attributes" => "DomainAllowlistAttributes",
16261627
"v2.domain_allowlist_request" => "DomainAllowlistRequest",
@@ -3258,6 +3259,12 @@ def overrides
32583259
"v2.single_aggregated_connection_response_data" => "SingleAggregatedConnectionResponseData",
32593260
"v2.single_aggregated_connection_response_data_attributes" => "SingleAggregatedConnectionResponseDataAttributes",
32603261
"v2.single_aggregated_connection_response_data_type" => "SingleAggregatedConnectionResponseDataType",
3262+
"v2.single_aggregated_dns_response_array" => "SingleAggregatedDnsResponseArray",
3263+
"v2.single_aggregated_dns_response_data" => "SingleAggregatedDnsResponseData",
3264+
"v2.single_aggregated_dns_response_data_attributes" => "SingleAggregatedDnsResponseDataAttributes",
3265+
"v2.single_aggregated_dns_response_data_attributes_group_by_items" => "SingleAggregatedDnsResponseDataAttributesGroupByItems",
3266+
"v2.single_aggregated_dns_response_data_attributes_metrics_items" => "SingleAggregatedDnsResponseDataAttributesMetricsItems",
3267+
"v2.single_aggregated_dns_response_data_type" => "SingleAggregatedDnsResponseDataType",
32613268
"v2.slack_integration_metadata" => "SlackIntegrationMetadata",
32623269
"v2.slack_integration_metadata_channel_item" => "SlackIntegrationMetadataChannelItem",
32633270
"v2.slack_trigger_wrapper" => "SlackTriggerWrapper",

0 commit comments

Comments
 (0)