Skip to content

Commit 9424a73

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 29c3acc3 of spec repo
1 parent 435640f commit 9424a73

File tree

19 files changed

+1179
-4
lines changed

19 files changed

+1179
-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": "2024-07-03 18:25:12.681194",
8-
"spec_repo_commit": "ce846cd6"
7+
"regenerated": "2024-07-05 20:24:22.716510",
8+
"spec_repo_commit": "29c3acc3"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2024-07-03 18:25:12.698893",
13-
"spec_repo_commit": "ce846cd6"
12+
"regenerated": "2024-07-05 20:24:22.734532",
13+
"spec_repo_commit": "29c3acc3"
1414
}
1515
}
1616
}

.generator/schemas/v2/openapi.yaml

Lines changed: 204 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6573,6 +6573,129 @@ components:
65736573
type: string
65746574
x-enum-varnames:
65756575
- DETAILED_FINDING
6576+
DeviceAttributes:
6577+
description: The device attributes
6578+
properties:
6579+
description:
6580+
description: The device description
6581+
example: a device monitored with NDM
6582+
type: string
6583+
device_type:
6584+
description: The device type
6585+
example: other
6586+
type: string
6587+
integration:
6588+
description: The device integration
6589+
example: snmp
6590+
type: string
6591+
interface_statuses:
6592+
$ref: '#/components/schemas/DeviceAttributesInterfaceStatuses'
6593+
ip_address:
6594+
description: The device IP address
6595+
example: 1.2.3.4
6596+
type: string
6597+
location:
6598+
description: The device location
6599+
example: paris
6600+
type: string
6601+
model:
6602+
description: The device model
6603+
example: xx-123
6604+
type: string
6605+
name:
6606+
description: The device name
6607+
example: example device
6608+
type: string
6609+
os_hostname:
6610+
description: The device OS hostname
6611+
type: string
6612+
os_name:
6613+
description: The device OS name
6614+
example: example OS
6615+
type: string
6616+
os_version:
6617+
description: The device OS version
6618+
example: 1.0.2
6619+
type: string
6620+
ping_status:
6621+
description: The device ping status
6622+
example: unmonitored
6623+
type: string
6624+
product_name:
6625+
description: The device product name
6626+
example: example device
6627+
type: string
6628+
serial_number:
6629+
description: The device serial number
6630+
example: X12345
6631+
type: string
6632+
status:
6633+
description: The device SNMP status
6634+
example: ok
6635+
type: string
6636+
subnet:
6637+
description: The device subnet
6638+
example: 1.2.3.4/24
6639+
type: string
6640+
sys_object_id:
6641+
description: The device `sys_object_id`
6642+
example: 1.3.6.1.4.1.99999
6643+
type: string
6644+
tags:
6645+
description: The list of device tags
6646+
example:
6647+
- device_ip:1.2.3.4
6648+
- device_id:example:1.2.3.4
6649+
items:
6650+
type: string
6651+
type: array
6652+
vendor:
6653+
description: The device vendor
6654+
example: example vendor
6655+
type: string
6656+
version:
6657+
description: The device version
6658+
example: 1.2.3
6659+
type: string
6660+
type: object
6661+
DeviceAttributesInterfaceStatuses:
6662+
description: Count of the device interfaces by status
6663+
example:
6664+
down: 1
6665+
'off': 2
6666+
up: 12
6667+
warning: 5
6668+
properties:
6669+
down:
6670+
description: The number of interfaces that are down
6671+
format: int64
6672+
type: integer
6673+
'off':
6674+
description: The number of interfaces that are off
6675+
format: int64
6676+
type: integer
6677+
up:
6678+
description: The number of interfaces that are up
6679+
format: int64
6680+
type: integer
6681+
warning:
6682+
description: The number of interfaces that are in a warning state
6683+
format: int64
6684+
type: integer
6685+
type: object
6686+
DeviceData:
6687+
description: The devices list data
6688+
properties:
6689+
attributes:
6690+
$ref: '#/components/schemas/DeviceAttributes'
6691+
id:
6692+
description: The device ID
6693+
example: example:1.2.3.4
6694+
type: string
6695+
type:
6696+
description: The type of the resource. The value should always be device.
6697+
type: string
6698+
type: object
65766699
DowntimeCreateRequest:
65776700
description: Request for creating a downtime.
65786701
properties:
@@ -10635,6 +10758,32 @@ components:
1063510758
meta:
1063610759
$ref: '#/components/schemas/ApplicationKeyResponseMeta'
1063710760
type: object
10761+
ListDevicesResponse:
10762+
description: List devices response.
10763+
properties:
10764+
data:
10765+
description: The list devices response data.
10766+
items:
10767+
$ref: '#/components/schemas/DeviceData'
10768+
type: array
10769+
meta:
10770+
$ref: '#/components/schemas/ListDevicesResponseMetadata'
10771+
type: object
10772+
ListDevicesResponseMetadata:
10773+
description: Object describing meta attributes of response.
10774+
properties:
10775+
page:
10776+
$ref: '#/components/schemas/ListDevicesResponseMetadataPage'
10777+
type: object
10778+
ListDevicesResponseMetadataPage:
10779+
description: Pagination object.
10780+
properties:
10781+
total_filtered_count:
10782+
description: Total count of devices matched by the filter.
10783+
example: 1
10784+
format: int64
10785+
type: integer
10786+
type: object
1063810787
ListDowntimesResponse:
1063910788
description: Response for retrieving all downtimes.
1064010789
properties:
@@ -30607,6 +30756,57 @@ paths:
3060730756
limitParam: page[limit]
3060830757
pageOffsetParam: page[offset]
3060930758
resultsPath: data
30759+
/api/v2/ndm/devices:
30760+
get:
30761+
description: Get the list of devices.
30762+
operationId: ListDevices
30763+
parameters:
30764+
- description: The page number to fetch.
30765+
example: 0
30766+
in: query
30767+
name: page[number]
30768+
required: false
30769+
schema:
30770+
format: int64
30771+
type: integer
30772+
- description: The number of devices to return per page.
30773+
example: 10
30774+
in: query
30775+
name: page[size]
30776+
required: false
30777+
schema:
30778+
format: int64
30779+
type: integer
30780+
- description: The field to sort the devices by.
30781+
example: status
30782+
in: query
30783+
name: sort
30784+
required: false
30785+
schema:
30786+
type: string
30787+
- description: Filter devices by tag.
30788+
example: status:ok
30789+
in: query
30790+
name: filter[tag]
30791+
required: false
30792+
schema:
30793+
type: string
30794+
responses:
30795+
'200':
30796+
content:
30797+
application/json:
30798+
schema:
30799+
$ref: '#/components/schemas/ListDevicesResponse'
30800+
description: OK
30801+
'400':
30802+
$ref: '#/components/responses/BadRequestResponse'
30803+
'403':
30804+
$ref: '#/components/responses/ForbiddenResponse'
30805+
'429':
30806+
$ref: '#/components/responses/TooManyRequestsResponse'
30807+
summary: Get the list of devices
30808+
tags:
30809+
- Network Device Monitoring
3061030810
/api/v2/org_configs:
3061130811
get:
3061230812
description: Returns all Org Configs (name, description, and value).
@@ -37149,6 +37349,10 @@ tags:
3714937349
description: Find out more at
3715037350
url: https://docs.datadoghq.com/monitors/create/types/
3715137351
name: Monitors
37352+
- description: The Network Device Monitoring API allows you to fetch devices and interfaces
37353+
and their attributes. See the [Network Device Monitoring page](https://docs.datadoghq.com/network_monitoring/)
37354+
for more information.
37355+
name: Network Device Monitoring
3715237356
- description: Configure your [Datadog Okta integration](https://docs.datadoghq.com/integrations/okta/)
3715337357
directly through the Datadog API.
3715437358
name: Okta Integration
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-07-02T14:40:57.137Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,57 @@
1+
{
2+
"log": {
3+
"_recordingName": "Network Device Monitoring/Get the list of devices returns \"Bad Request\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "99c26a35fab4a555344ae8fc49f70c4c",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 516,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [],
28+
"url": "https://api.datadoghq.com/api/v2/ndm/devices"
29+
},
30+
"response": {
31+
"bodySize": 51,
32+
"content": {
33+
"mimeType": "application/vnd.api+json",
34+
"size": 51,
35+
"text": "{\"errors\":[{\"status\":\"400\",\"title\":\"Bad Request\"}]}"
36+
},
37+
"cookies": [],
38+
"headers": [
39+
{
40+
"name": "content-type",
41+
"value": "application/vnd.api+json"
42+
}
43+
],
44+
"headersSize": 522,
45+
"httpVersion": "HTTP/1.1",
46+
"redirectURL": "",
47+
"status": 400,
48+
"statusText": "Bad Request"
49+
},
50+
"startedDateTime": "2024-07-02T14:40:57.148Z",
51+
"time": 981
52+
}
53+
],
54+
"pages": [],
55+
"version": "1.2"
56+
}
57+
}
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
"2024-07-02T14:47:22.939Z"
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,71 @@
1+
{
2+
"log": {
3+
"_recordingName": "Network Device Monitoring/Get the list of devices returns \"OK\" response",
4+
"creator": {
5+
"comment": "persister:fs",
6+
"name": "Polly.JS",
7+
"version": "6.0.5"
8+
},
9+
"entries": [
10+
{
11+
"_id": "a55750ac10e8977d8862c5e7c9445caa",
12+
"_order": 0,
13+
"cache": {},
14+
"request": {
15+
"bodySize": 0,
16+
"cookies": [],
17+
"headers": [
18+
{
19+
"_fromType": "array",
20+
"name": "accept",
21+
"value": "application/json"
22+
}
23+
],
24+
"headersSize": 581,
25+
"httpVersion": "HTTP/1.1",
26+
"method": "GET",
27+
"queryString": [
28+
{
29+
"name": "page",
30+
"value": {
31+
"number": 0,
32+
"size": 1
33+
}
34+
},
35+
{
36+
"name": "filter",
37+
"value": {
38+
"tag": "device_namespace:default"
39+
}
40+
}
41+
],
42+
"url": "https://api.datadoghq.com/api/v2/ndm/devices?page%5Bsize%5D=1&page%5Bnumber%5D=0&filter%5Btag%5D=device_namespace%3Adefault"
43+
},
44+
"response": {
45+
"bodySize": 1032,
46+
"content": {
47+
"mimeType": "application/vnd.api+json",
48+
"size": 1032,
49+
"text": "{\"data\":[{\"id\":\"default:1.2.3.4\",\"type\":\"device\",\"attributes\":{\"description\":\"a device monitored with NDM\",\"device_type\":\"other\",\"interface_statuses\":{\"up\":2,\"warning\":4,\"down\":13},\"ip_address\":\"1.2.3.4\",\"location\":\"paris\",\"model\":\"xx-123\",\"name\":\"example device\",\"os_name\":\"example OS\",\"os_version\":\"1.0.2\",\"ping_status\":\"unmonitored\",\"product_name\":\"example device\",\"serial_number\":\"X12345\",\"status\":\"ok\",\"sys_object_id\":\"1.3.6.1.4.1.99999\",\"tags\":[\"device_ip:1.2.3.4\",\"device_id:default:1.2.3.4\"]}}],\"meta\":{\"page\":{\"total_filtered_count\":1}}}"
50+
},
51+
"cookies": [],
52+
"headers": [
53+
{
54+
"name": "content-type",
55+
"value": "application/vnd.api+json"
56+
}
57+
],
58+
"headersSize": 524,
59+
"httpVersion": "HTTP/1.1",
60+
"redirectURL": "",
61+
"status": 200,
62+
"statusText": "OK"
63+
},
64+
"startedDateTime": "2024-07-02T14:47:22.950Z",
65+
"time": 721
66+
}
67+
],
68+
"pages": [],
69+
"version": "1.2"
70+
}
71+
}

0 commit comments

Comments
 (0)