Skip to content

Commit 6323f67

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 9aed3acf of spec repo
1 parent 20563f8 commit 6323f67

10 files changed

+47
-42
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-04-01 23:26:29.537619",
8-
"spec_repo_commit": "2000c9c8"
7+
"regenerated": "2025-04-02 19:28:15.120004",
8+
"spec_repo_commit": "9aed3acf"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-04-01 23:26:29.553596",
13-
"spec_repo_commit": "2000c9c8"
12+
"regenerated": "2025-04-02 19:28:15.136685",
13+
"spec_repo_commit": "9aed3acf"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 15 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -30189,7 +30189,7 @@ components:
3018930189
type: string
3019030190
type: object
3019130191
SingleAggregatedConnectionResponseArray:
30192-
description: The definition of `SingleAggregatedConnectionResponseArray` object.
30192+
description: List of aggregated connections.
3019330193
example:
3019430194
data:
3019530195
- attributes:
@@ -30213,25 +30213,25 @@ components:
3021330213
type: aggregated_connection
3021430214
properties:
3021530215
data:
30216-
description: The `SingleAggregatedConnectionResponseArray` `data`.
30216+
description: Array of aggregated connection objects.
3021730217
items:
3021830218
$ref: '#/components/schemas/SingleAggregatedConnectionResponseData'
3021930219
type: array
3022030220
type: object
3022130221
SingleAggregatedConnectionResponseData:
30222-
description: The definition of `SingleAggregatedConnectionResponseData` object.
30222+
description: Object describing an aggregated connection.
3022330223
properties:
3022430224
attributes:
3022530225
$ref: '#/components/schemas/SingleAggregatedConnectionResponseDataAttributes'
3022630226
id:
30227-
description: The `SingleAggregatedConnectionResponseData` `id`.
30227+
description: A unique identifier for the aggregated connection based on
30228+
the group by values.
3022830229
type: string
3022930230
type:
3023030231
$ref: '#/components/schemas/SingleAggregatedConnectionResponseDataType'
3023130232
type: object
3023230233
SingleAggregatedConnectionResponseDataAttributes:
30233-
description: The definition of `SingleAggregatedConnectionResponseDataAttributes`
30234-
object.
30234+
description: Attributes for an aggregated connection.
3023530235
properties:
3023630236
bytes_sent_by_client:
3023730237
description: The total number of bytes sent by the client over the given
@@ -30245,10 +30245,11 @@ components:
3024530245
type: integer
3024630246
group_bys:
3024730247
additionalProperties:
30248+
description: The values for each group by
3024830249
items:
3024930250
type: string
3025030251
type: array
30251-
description: The `attributes` `group_bys`.
30252+
description: The key, value pairs for each group by.
3025230253
type: object
3025330254
packets_sent_by_client:
3025430255
description: The total number of packets sent by the client over the given
@@ -30299,9 +30300,7 @@ components:
3029930300
type: object
3030030301
SingleAggregatedConnectionResponseDataType:
3030130302
default: aggregated_connection
30302-
description: 'Aggregated connection resource type. Allowed enum values: `aggregated_connection`.
30303-
30304-
default: `aggregated_connection`'
30303+
description: Aggregated connection resource type.
3030530304
enum:
3030630305
- aggregated_connection
3030730306
type: string
@@ -44403,22 +44402,22 @@ paths:
4440344402
- Network Device Monitoring
4440444403
/api/v2/network/connections/aggregate:
4440544404
get:
44406-
description: Get aggregated connections
44405+
description: Get all aggregated connections
4440744406
operationId: GetAggregatedConnections
4440844407
parameters:
4440944408
- description: Unix timestamp (number of seconds since epoch) of the start of
4441044409
the query window. If not provided, the start of the query window is 15 minutes
44411-
before the "to" timestamp. If neither "from" nor "to" are provided, the
44412-
query window is [now - 15m, now].
44410+
before the `to` timestamp. If neither `from` nor `to` are provided, the
44411+
query window is `[now - 15m, now]`.
4441344412
in: query
4441444413
name: from
4441544414
schema:
4441644415
format: int64
4441744416
type: integer
4441844417
- description: Unix timestamp (number of seconds since epoch) of the end of
4441944418
the query window. If not provided, the end of the query window is the current
44420-
time. If neither "from" nor "to" are provided, the query window is [now
44421-
- 15m, now].
44419+
time. If neither `from` nor `to` are provided, the query window is `[now
44420+
- 15m, now]`.
4442244421
in: query
4442344422
name: to
4442444423
schema:
@@ -44455,7 +44454,7 @@ paths:
4445544454
$ref: '#/components/responses/BadRequestResponse'
4445644455
'429':
4445744456
$ref: '#/components/responses/TooManyRequestsResponse'
44458-
summary: Get aggregated connections
44457+
summary: Get all aggregated connections
4445944458
tags:
4446044459
- Cloud Network Monitoring
4446144460
x-unstable: '**Note**: This endpoint is in Preview. If you have any feedback,

examples/v2/cloud-network-monitoring/GetAggregatedConnections.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Get aggregated connections returns "OK" response
1+
# Get all aggregated connections returns "OK" response
22

33
require "datadog_api_client"
44
DatadogAPIClient.configure do |config|
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/v2/cloud_network_monitoring.feature

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,6 @@ Feature: Cloud Network Monitoring
1212
And operation "GetAggregatedConnections" enabled
1313
And new "GetAggregatedConnections" request
1414

15-
@generated @skip @team:Datadog/networks
16-
Scenario: Get aggregated connections returns "Bad Request" response
17-
When the request is sent
18-
Then the response status is 400 Bad Request
19-
2015
@team:Datadog/networks
2116
Scenario: Get aggregated connections returns "OK" response
2217
When the request is sent
@@ -27,3 +22,8 @@ Feature: Cloud Network Monitoring
2722
Given request contains "limit" parameter with value 6000
2823
When the request is sent
2924
Then the response status is 400 Bad Request
25+
26+
@generated @skip @team:Datadog/networks
27+
Scenario: Get all aggregated connections returns "OK" response
28+
When the request is sent
29+
Then the response status is 200 OK

lib/datadog_api_client/v2/api/cloud_network_monitoring_api.rb

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -23,21 +23,21 @@ def initialize(api_client = DatadogAPIClient::APIClient.default)
2323
@api_client = api_client
2424
end
2525

26-
# Get aggregated connections.
26+
# Get all aggregated connections.
2727
#
2828
# @see #get_aggregated_connections_with_http_info
2929
def get_aggregated_connections(opts = {})
3030
data, _status_code, _headers = get_aggregated_connections_with_http_info(opts)
3131
data
3232
end
3333

34-
# Get aggregated connections.
34+
# Get all aggregated connections.
3535
#
36-
# Get aggregated connections
36+
# Get all aggregated connections
3737
#
3838
# @param opts [Hash] the optional parameters
39-
# @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window is 15 minutes before the "to" timestamp. If neither "from" nor "to" are provided, the query window is [now - 15m, now].
40-
# @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window is the current time. If neither "from" nor "to" are provided, the query window is [now - 15m, now].
39+
# @option opts [Integer] :from Unix timestamp (number of seconds since epoch) of the start of the query window. If not provided, the start of the query window is 15 minutes before the `to` timestamp. If neither `from` nor `to` are provided, the query window is `[now - 15m, now]`.
40+
# @option opts [Integer] :to Unix timestamp (number of seconds since epoch) of the end of the query window. If not provided, the end of the query window is the current time. If neither `from` nor `to` are provided, the query window is `[now - 15m, now]`.
4141
# @option opts [String] :group_by Comma-separated list of fields to group connections by.
4242
# @option opts [String] :tags Comma-separated list of tags to filter connections by.
4343
# @option opts [Integer] :limit The number of connections to be returned. The maximum value is 5000.

lib/datadog_api_client/v2/models/single_aggregated_connection_response_array.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,11 +17,11 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The definition of `SingleAggregatedConnectionResponseArray` object.
20+
# List of aggregated connections.
2121
class SingleAggregatedConnectionResponseArray
2222
include BaseGenericModel
2323

24-
# The `SingleAggregatedConnectionResponseArray` `data`.
24+
# Array of aggregated connection objects.
2525
attr_accessor :data
2626

2727
attr_accessor :additional_properties

lib/datadog_api_client/v2/models/single_aggregated_connection_response_data.rb

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -17,18 +17,17 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The definition of `SingleAggregatedConnectionResponseData` object.
20+
# Object describing an aggregated connection.
2121
class SingleAggregatedConnectionResponseData
2222
include BaseGenericModel
2323

24-
# The definition of `SingleAggregatedConnectionResponseDataAttributes` object.
24+
# Attributes for an aggregated connection.
2525
attr_accessor :attributes
2626

27-
# The `SingleAggregatedConnectionResponseData` `id`.
27+
# A unique identifier for the aggregated connection based on the group by values.
2828
attr_accessor :id
2929

30-
# Aggregated connection resource type. Allowed enum values: `aggregated_connection`.
31-
# default: `aggregated_connection`
30+
# Aggregated connection resource type.
3231
attr_accessor :type
3332

3433
attr_accessor :additional_properties

lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_attributes.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# The definition of `SingleAggregatedConnectionResponseDataAttributes` object.
20+
# Attributes for an aggregated connection.
2121
class SingleAggregatedConnectionResponseDataAttributes
2222
include BaseGenericModel
2323

@@ -27,7 +27,7 @@ class SingleAggregatedConnectionResponseDataAttributes
2727
# The total number of bytes sent by the server over the given period.
2828
attr_accessor :bytes_sent_by_server
2929

30-
# The `attributes` `group_bys`.
30+
# The key, value pairs for each group by.
3131
attr_accessor :group_bys
3232

3333
# The total number of packets sent by the client over the given period.

lib/datadog_api_client/v2/models/single_aggregated_connection_response_data_type.rb

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -17,8 +17,7 @@
1717
require 'time'
1818

1919
module DatadogAPIClient::V2
20-
# Aggregated connection resource type. Allowed enum values: `aggregated_connection`.
21-
# default: `aggregated_connection`
20+
# Aggregated connection resource type.
2221
class SingleAggregatedConnectionResponseDataType
2322
include BaseEnumModel
2423

0 commit comments

Comments
 (0)