Skip to content

Commit d16b6fc

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 16aa0e9 of spec repo (#747)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 6d2c1eb commit d16b6fc

17 files changed

+613
-7
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.5.1.dev2",
7-
"regenerated": "2022-01-10 14:23:45.936665",
8-
"spec_repo_commit": "d9089b2"
7+
"regenerated": "2022-01-10 18:20:21.979057",
8+
"spec_repo_commit": "16aa0e9"
99
},
1010
"v2": {
1111
"apigentools_version": "1.5.1.dev2",
12-
"regenerated": "2022-01-10 14:23:46.335468",
13-
"spec_repo_commit": "d9089b2"
12+
"regenerated": "2022-01-10 18:20:22.462532",
13+
"spec_repo_commit": "16aa0e9"
1414
}
1515
}
1616
}

.generator/schemas/v1/openapi.yaml

Lines changed: 93 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -360,6 +360,18 @@ components:
360360
- ADMIN
361361
- READ_ONLY
362362
- ERROR
363+
AgentCheck:
364+
description: Array of strings.
365+
example:
366+
- ntp
367+
- ntp
368+
- ntp:d884b5186b651429
369+
- OK
370+
- ''
371+
- ''
372+
items:
373+
description: Agent check running on the host.
374+
type: array
363375
AlertGraphWidgetDefinition:
364376
description: Alert graphs are timeseries graphs showing the current status of
365377
any monitor defined on your system.
@@ -3124,13 +3136,94 @@ components:
31243136
meta:
31253137
description: Metadata associated with your host.
31263138
properties:
3139+
agent_checks:
3140+
description: A list of Agent checks running on the host.
3141+
items:
3142+
$ref: '#/components/schemas/AgentCheck'
3143+
type: array
3144+
agent_version:
3145+
description: The Datadog Agent version.
3146+
example: 7.32.3
3147+
type: string
3148+
cpuCores:
3149+
description: The number of cores.
3150+
example: 1
3151+
format: int64
3152+
type: integer
3153+
fbsdV:
3154+
description: An array of Mac versions.
3155+
items:
3156+
description: The version name.
3157+
example: FreeBSD
3158+
type: string
3159+
type: array
3160+
gohai:
3161+
description: JSON string containing system information.
3162+
example: '{"cpu":{"cache_size":"8192 KB","cpu_cores":"1","cpu_logical_processors":"1","family":"6","mhz":"2712.000","model":"142","model_name":"Intel(R)
3163+
Core(TM) i7-8559U CPU @ 2.70GHz","stepping":"10","vendor_id":"GenuineIntel"},"filesystem":[{"kb_size":"3966896","mounted_on":"/dev","name":"udev"},{"kb_size":"797396","mounted_on":"/run","name":"tmpfs"},{"kb_size":"64800356","mounted_on":"/","name":"/dev/mapper/vagrant--vg-root"},{"kb_size":"3986972","mounted_on":"/dev/shm","name":"tmpfs"},{"kb_size":"5120","mounted_on":"/run/lock","name":"tmpfs"},{"kb_size":"3986972","mounted_on":"/sys/fs/cgroup","name":"tmpfs"},{"kb_size":"488245288","mounted_on":"/vagrant","name":"vagrant"},{"kb_size":"797392","mounted_on":"/run/user/1000","name":"tmpfs"}],"memory":{"swap_total":"1003516kB","total":"7973944kB"},"network":{"interfaces":[{"ipv4":"10.0.2.15","ipv4-network":"10.0.2.0/24","ipv6":"fe80::a00:27ff:fec2:be11","ipv6-network":"fe80::/64","macaddress":"08:00:27:c2:be:11","name":"eth0"},{"ipv4":"192.168.122.1","ipv4-network":"192.168.122.0/24","macaddress":"52:54:00:6f:1c:bf","name":"virbr0"}],"ipaddress":"10.0.2.15","ipaddressv6":"fe80::a00:27ff:fec2:be11","macaddress":"08:00:27:c2:be:11"},"platform":{"GOOARCH":"amd64","GOOS":"linux","goV":"1.16.7","hardware_platform":"x86_64","hostname":"vagrant","kernel_name":"Linux","kernel_release":"4.15.0-29-generic","kernel_version":"#31-Ubuntu
3164+
SMP Tue Jul 17 15:39:52 UTC 2018","machine":"x86_64","os":"GNU/Linux","processor":"x86_64","pythonV":"2.7.15rc1"}}'
3165+
type: string
3166+
install_method:
3167+
description: Agent install method.
3168+
properties:
3169+
installer_version:
3170+
description: The installer version.
3171+
example: install_script-1.7.1
3172+
type: string
3173+
tool:
3174+
description: Tool used to install the agent.
3175+
example: install_script
3176+
type: string
3177+
tool_version:
3178+
description: The tool version.
3179+
example: install_script
3180+
type: string
3181+
type: object
3182+
macV:
3183+
description: An array of Mac versions.
3184+
items:
3185+
description: Version name.
3186+
example: Mac
3187+
type: string
3188+
type: array
3189+
machine:
3190+
description: The machine architecture.
3191+
example: amd64
3192+
type: string
31273193
nixV:
31283194
description: Array of Unix versions.
31293195
items:
31303196
description: Version name.
31313197
example: Ubuntu
31323198
type: string
31333199
type: array
3200+
platform:
3201+
description: The OS platform.
3202+
example: linux
3203+
type: string
3204+
processor:
3205+
description: The processor.
3206+
example: Intel(R) Core(TM) i7-8559U CPU @ 2.70GHz
3207+
type: string
3208+
pythonV:
3209+
description: The Python version.
3210+
example: 3.8.11
3211+
type: string
3212+
socket-fqdn:
3213+
description: The socket fqdn.
3214+
example: vagrant.vm.
3215+
type: string
3216+
socket-hostname:
3217+
description: The socket hostname.
3218+
example: vagrant
3219+
type: string
3220+
winV:
3221+
description: An array of Windows versions.
3222+
items:
3223+
description: Version name.
3224+
example: Windows
3225+
type: string
3226+
type: array
31343227
type: object
31353228
metrics:
31363229
description: Host Metrics collected.

docs/v1/AgentCheck.md

Lines changed: 12 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/v1/HostMeta.md

Lines changed: 17 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/v1/HostMetaInstallMethod.md

Lines changed: 14 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

docs/v1/README.md

Lines changed: 2 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get all hosts with metadata for your organization returns "OK" response
3+
"""
4+
5+
from datadog_api_client.v1 import ApiClient, Configuration
6+
from datadog_api_client.v1.api.hosts_api import HostsApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = HostsApi(api_client)
11+
response = api_instance.list_hosts(include_hosts_metadata=True)
12+
13+
print(response)
Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
"""
2+
Get all hosts with metadata deserializes successfully
3+
"""
4+
5+
from datadog_api_client.v1 import ApiClient, Configuration
6+
from datadog_api_client.v1.api.hosts_api import HostsApi
7+
8+
configuration = Configuration()
9+
with ApiClient(configuration) as api_client:
10+
api_instance = HostsApi(api_client)
11+
response = api_instance.list_hosts(include_hosts_metadata=True)
12+
13+
print(response)

src/datadog_api_client/v1/model/agent_check.py

Lines changed: 81 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/datadog_api_client/v1/model/host_meta.py

Lines changed: 51 additions & 0 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

0 commit comments

Comments
 (0)