Skip to content

Commit 353864b

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Add default values for NDM ListDevices endpoint parameters (#3687)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 4429d82 commit 353864b

2 files changed

Lines changed: 26 additions & 4 deletions

File tree

.generator/schemas/v2/openapi.yaml

Lines changed: 25 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -783,6 +783,27 @@ components:
783783
required: false
784784
schema:
785785
type: string
786+
NDMPageNumber:
787+
description: Specific page number to return. Defaults to 0.
788+
in: query
789+
name: page[number]
790+
required: false
791+
schema:
792+
default: 0
793+
example: 0
794+
format: int64
795+
type: integer
796+
NDMPageSize:
797+
description: Size for a given page. The maximum allowed value is 500. Defaults
798+
to 50.
799+
in: query
800+
name: page[size]
801+
required: false
802+
schema:
803+
default: 50
804+
example: 50
805+
format: int64
806+
type: integer
786807
NotificationRuleIDPathParameter:
787808
description: Notification Rule UUID
788809
example: e555e290-ed65-49bd-ae18-8acbfcf18db7
@@ -86135,14 +86156,15 @@ paths:
8613586156
description: Get the list of devices.
8613686157
operationId: ListDevices
8613786158
parameters:
86138-
- $ref: '#/components/parameters/PageSize'
86139-
- $ref: '#/components/parameters/PageNumber'
86140-
- description: The field to sort the devices by.
86159+
- $ref: '#/components/parameters/NDMPageSize'
86160+
- $ref: '#/components/parameters/NDMPageNumber'
86161+
- description: The field to sort the devices by. Defaults to `name`.
8614186162
example: status
8614286163
in: query
8614386164
name: sort
8614486165
required: false
8614586166
schema:
86167+
default: name
8614686168
type: string
8614786169
- description: Filter devices by tag.
8614886170
example: status:ok

api/datadogV2/api_network_device_monitoring.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -415,7 +415,7 @@ func (a *NetworkDeviceMonitoringApi) ListDevices(ctx _context.Context, o ...List
415415
// ListDevicesWithPagination provides a paginated version of ListDevices returning a channel with all items.
416416
func (a *NetworkDeviceMonitoringApi) ListDevicesWithPagination(ctx _context.Context, o ...ListDevicesOptionalParameters) (<-chan datadog.PaginationResult[DevicesListData], func()) {
417417
ctx, cancel := _context.WithCancel(ctx)
418-
pageSize_ := int64(10)
418+
pageSize_ := int64(50)
419419
if len(o) == 0 {
420420
o = append(o, ListDevicesOptionalParameters{})
421421
}

0 commit comments

Comments
 (0)