Skip to content

Commit a21fd41

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit fe72263c of spec repo
1 parent f7c825c commit a21fd41

13 files changed

+821
-4
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-03-28 19:43:11.098502",
8-
"spec_repo_commit": "1d2132af"
7+
"regenerated": "2025-03-28 23:34:19.475082",
8+
"spec_repo_commit": "fe72263c"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-03-28 19:43:11.121309",
13-
"spec_repo_commit": "1d2132af"
12+
"regenerated": "2025-03-28 23:34:19.496604",
13+
"spec_repo_commit": "fe72263c"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 183 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -30188,6 +30188,125 @@ components:
3018830188
description: Link to the Incident created on ServiceNow
3018930189
type: string
3019030190
type: object
30191+
SingleAggregatedConnectionResponseArray:
30192+
description: The definition of `SingleAggregatedConnectionResponseArray` object.
30193+
example:
30194+
data:
30195+
- attributes:
30196+
bytes_sent_by_client: 100
30197+
bytes_sent_by_server: 200
30198+
group_bys:
30199+
client_team:
30200+
- networks
30201+
server_service:
30202+
- hucklebuck
30203+
packets_sent_by_client: 10
30204+
packets_sent_by_server: 20
30205+
rtt_micro_seconds: 800
30206+
tcp_closed_connections: 30
30207+
tcp_established_connections: 40
30208+
tcp_refusals: 7
30209+
tcp_resets: 5
30210+
tcp_retransmits: 30
30211+
tcp_timeouts: 6
30212+
id: client_team:networks, server_service:hucklebuck
30213+
type: aggregated_connection
30214+
properties:
30215+
data:
30216+
description: The `SingleAggregatedConnectionResponseArray` `data`.
30217+
items:
30218+
$ref: '#/components/schemas/SingleAggregatedConnectionResponseData'
30219+
type: array
30220+
type: object
30221+
SingleAggregatedConnectionResponseData:
30222+
description: The definition of `SingleAggregatedConnectionResponseData` object.
30223+
properties:
30224+
attributes:
30225+
$ref: '#/components/schemas/SingleAggregatedConnectionResponseDataAttributes'
30226+
id:
30227+
description: The `SingleAggregatedConnectionResponseData` `id`.
30228+
type: string
30229+
type:
30230+
$ref: '#/components/schemas/SingleAggregatedConnectionResponseDataType'
30231+
type: object
30232+
SingleAggregatedConnectionResponseDataAttributes:
30233+
description: The definition of `SingleAggregatedConnectionResponseDataAttributes`
30234+
object.
30235+
properties:
30236+
bytes_sent_by_client:
30237+
description: The total number of bytes sent by the client over the given
30238+
period.
30239+
format: int64
30240+
type: integer
30241+
bytes_sent_by_server:
30242+
description: The total number of bytes sent by the server over the given
30243+
period.
30244+
format: int64
30245+
type: integer
30246+
group_bys:
30247+
additionalProperties:
30248+
items:
30249+
type: string
30250+
type: array
30251+
description: The `attributes` `group_bys`.
30252+
type: object
30253+
packets_sent_by_client:
30254+
description: The total number of packets sent by the client over the given
30255+
period.
30256+
format: int64
30257+
type: integer
30258+
packets_sent_by_server:
30259+
description: The total number of packets sent by the server over the given
30260+
period.
30261+
format: int64
30262+
type: integer
30263+
rtt_micro_seconds:
30264+
description: Measured as TCP smoothed round-trip time in microseconds, that
30265+
is, the time between a TCP frame being sent and acknowledged.
30266+
format: int64
30267+
type: integer
30268+
tcp_closed_connections:
30269+
description: The number of TCP connections in a closed state. Measured in
30270+
connections per second from the client.
30271+
format: int64
30272+
type: integer
30273+
tcp_established_connections:
30274+
description: The number of TCP connections in an established state. Measured
30275+
in connections per second from the client.
30276+
format: int64
30277+
type: integer
30278+
tcp_refusals:
30279+
description: The number of TCP connections that were refused by the server.
30280+
Typically this indicates an attempt to connect to an IP/port that is not
30281+
receiving connections, or a firewall/security misconfiguration.
30282+
format: int64
30283+
type: integer
30284+
tcp_resets:
30285+
description: The number of TCP connections that were reset by the server.
30286+
format: int64
30287+
type: integer
30288+
tcp_retransmits:
30289+
description: TCP Retransmits represent detected failures that are retransmitted
30290+
to ensure delivery. Measured in count of retransmits from the client.
30291+
format: int64
30292+
type: integer
30293+
tcp_timeouts:
30294+
description: The number of TCP connections that timed out from the perspective
30295+
of the operating system. This can indicate general connectivity and latency
30296+
issues.
30297+
format: int64
30298+
type: integer
30299+
type: object
30300+
SingleAggregatedConnectionResponseDataType:
30301+
default: aggregated_connection
30302+
description: 'Aggregated connection resource type. Allowed enum values: `aggregated_connection`.
30303+
30304+
default: `aggregated_connection`'
30305+
enum:
30306+
- aggregated_connection
30307+
type: string
30308+
x-enum-varnames:
30309+
- AGGREGATED_CONNECTION
3019130310
SlackIntegrationMetadata:
3019230311
description: Incident integration metadata for the Slack integration.
3019330312
properties:
@@ -44282,6 +44401,66 @@ paths:
4428244401
summary: Update the tags for a device
4428344402
tags:
4428444403
- Network Device Monitoring
44404+
/api/v2/network/connections/aggregate:
44405+
get:
44406+
description: Get aggregated connections
44407+
operationId: GetAggregatedConnections
44408+
parameters:
44409+
- description: Unix timestamp (number of seconds since epoch) of the start of
44410+
the query window. If not provided, the start of the query window will be
44411+
15 minutes before the to timestamp. If neither from nor to are provided,
44412+
the query window will be [now - 15m, now].
44413+
in: query
44414+
name: from
44415+
schema:
44416+
format: int64
44417+
type: integer
44418+
- description: Unix timestamp (number of seconds since epoch) of the end of
44419+
the query window. If not provided, the end of the query window will be the
44420+
current time. If neither from nor to are provided, the query window will
44421+
be [now - 15m, now].
44422+
in: query
44423+
name: to
44424+
schema:
44425+
format: int64
44426+
type: integer
44427+
- description: Comma-separated list of fields to group connections by.
44428+
in: query
44429+
name: group_by
44430+
schema:
44431+
type: string
44432+
- description: Comma-separated list of tags to filter connections by.
44433+
in: query
44434+
name: tags
44435+
schema:
44436+
type: string
44437+
- description: The number of connections to be returned. The maximum value is
44438+
5000.
44439+
in: query
44440+
name: limit
44441+
schema:
44442+
default: 100
44443+
format: int32
44444+
maximum: 5000
44445+
minimum: 1
44446+
type: integer
44447+
responses:
44448+
'200':
44449+
content:
44450+
application/json:
44451+
schema:
44452+
$ref: '#/components/schemas/SingleAggregatedConnectionResponseArray'
44453+
description: OK
44454+
'429':
44455+
$ref: '#/components/responses/TooManyRequestsResponse'
44456+
summary: Get aggregated connections
44457+
tags:
44458+
- Cloud Network Monitoring
44459+
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,
44460+
44461+
contact [Datadog support](https://docs.datadoghq.com/help/).
44462+
44463+
type: safe'
4428544464
/api/v2/org_configs:
4428644465
get:
4428744466
description: Returns all Org Configs (name, description, and value).
@@ -53624,6 +53803,10 @@ tags:
5362453803
and the `cloud_cost` data source. For more information, see the [Cloud Cost Management
5362553804
documentation](https://docs.datadoghq.com/cloud_cost_management/).
5362653805
name: Cloud Cost Management
53806+
- description: The Cloud Network Monitoring API allows you to fetch aggregated connections
53807+
and their attributes. See the [Cloud Network Monitoring page](https://docs.datadoghq.com/network_monitoring/cloud_network_monitoring/)
53808+
for more information.
53809+
name: Cloud Network Monitoring
5362753810
- description: Manage your Datadog Cloudflare integration directly through the Datadog
5362853811
API. See the [Cloudflare integration page](https://docs.datadoghq.com/integrations/cloudflare/)
5362953812
for more information.
Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Get aggregated connections returns "OK" response
2+
3+
require "datadog_api_client"
4+
DatadogAPIClient.configure do |config|
5+
config.unstable_operations["v2.get_aggregated_connections".to_sym] = true
6+
end
7+
api_instance = DatadogAPIClient::V2::CloudNetworkMonitoringAPI.new
8+
p api_instance.get_aggregated_connections()

features/scenarios_model_mapping.rb

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1765,6 +1765,13 @@
17651765
"device_id" => "String",
17661766
"body" => "ListTagsResponse",
17671767
},
1768+
"v2.GetAggregatedConnections" => {
1769+
"from" => "Integer",
1770+
"to" => "Integer",
1771+
"group_by" => "String",
1772+
"tags" => "String",
1773+
"limit" => "Integer",
1774+
},
17681775
"v2.GetOrgConfig" => {
17691776
"org_config_name" => "String",
17701777
},
Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,24 @@
1+
@endpoint(cloud-network-monitoring) @endpoint(cloud-network-monitoring-v2)
2+
Feature: Cloud Network Monitoring
3+
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.
7+
8+
Background:
9+
Given a valid "apiKeyAuth" key in the system
10+
And a valid "appKeyAuth" key in the system
11+
And an instance of "CloudNetworkMonitoring" API
12+
And new "GetAggregatedConnections" request
13+
14+
@team:Datadog/networks
15+
Scenario: Get aggregated connections returns "OK" response
16+
Given operation "GetAggregatedConnections" enabled
17+
When the request is sent
18+
Then the response status is 200 OK
19+
20+
@team:Datadog/networks
21+
Scenario: Get all aggregated connections returns "Bad Request" response
22+
Given request contains "limit" parameter with value "6000"
23+
When the request is sent
24+
Then the response status is 400 Bad Request

features/v2/undo.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1744,6 +1744,12 @@
17441744
"type": "idempotent"
17451745
}
17461746
},
1747+
"GetAggregatedConnections": {
1748+
"tag": "Cloud Network Monitoring",
1749+
"undo": {
1750+
"type": "safe"
1751+
}
1752+
},
17471753
"ListOrgConfigs": {
17481754
"tag": "Organizations",
17491755
"undo": {

lib/datadog_api_client/configuration.rb

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -230,6 +230,7 @@ def initialize
230230
"v2.list_aws_namespaces": false,
231231
"v2.update_aws_account": false,
232232
"v2.list_aws_logs_services": false,
233+
"v2.get_aggregated_connections": false,
233234
"v2.cancel_historical_job": false,
234235
"v2.convert_job_result_to_signal": false,
235236
"v2.delete_historical_job": false,

lib/datadog_api_client/inflector.rb

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2793,6 +2793,10 @@ def overrides
27932793
"v2.service_definition_v2_version" => "ServiceDefinitionV2Version",
27942794
"v2.service_now_ticket" => "ServiceNowTicket",
27952795
"v2.service_now_ticket_result" => "ServiceNowTicketResult",
2796+
"v2.single_aggregated_connection_response_array" => "SingleAggregatedConnectionResponseArray",
2797+
"v2.single_aggregated_connection_response_data" => "SingleAggregatedConnectionResponseData",
2798+
"v2.single_aggregated_connection_response_data_attributes" => "SingleAggregatedConnectionResponseDataAttributes",
2799+
"v2.single_aggregated_connection_response_data_type" => "SingleAggregatedConnectionResponseDataType",
27962800
"v2.slack_integration_metadata" => "SlackIntegrationMetadata",
27972801
"v2.slack_integration_metadata_channel_item" => "SlackIntegrationMetadataChannelItem",
27982802
"v2.slack_trigger_wrapper" => "SlackTriggerWrapper",
@@ -3087,6 +3091,7 @@ def overrides
30873091
"v2.ci_visibility_pipelines_api" => "CIVisibilityPipelinesAPI",
30883092
"v2.ci_visibility_tests_api" => "CIVisibilityTestsAPI",
30893093
"v2.cloud_cost_management_api" => "CloudCostManagementAPI",
3094+
"v2.cloud_network_monitoring_api" => "CloudNetworkMonitoringAPI",
30903095
"v2.cloudflare_integration_api" => "CloudflareIntegrationAPI",
30913096
"v2.confluent_cloud_api" => "ConfluentCloudAPI",
30923097
"v2.container_images_api" => "ContainerImagesAPI",

0 commit comments

Comments
 (0)