You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3da63d7
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: .generator/schemas/v2/openapi.yaml
+61-13Lines changed: 61 additions & 13 deletions
Original file line number
Diff line number
Diff line change
@@ -22492,7 +22492,9 @@ components:
22492
22492
$ref: "#/components/schemas/ContainerType"
22493
22493
type: object
22494
22494
ContainerAttributes:
22495
-
description: Attributes for a container.
22495
+
description: |-
22496
+
Attributes for a container. For CPU or memory metrics, use its full `container_id` as
22497
+
`container_id:<container_id>` in `tag_filters` with the `container` data source.
22496
22498
properties:
22497
22499
container_id:
22498
22500
description: The ID of the container.
@@ -22559,7 +22561,8 @@ components:
22559
22561
description: Attributes for a container group.
22560
22562
properties:
22561
22563
count:
22562
-
description: Number of containers in the group.
22564
+
description: >-
22565
+
Number of containers in the group. A container with multiple values for a grouping tag can appear in multiple groups. Summing group counts can overcount distinct containers.
The Container Images API allows you to query Container Image data for your organization. See the [Container Images View page](https://docs.datadoghq.com/infrastructure/containers/container_images/) for more information.
255841
255888
name: Container Images
255842
255889
- description: |-
255843
-
The Containers API allows you to query container data for your organization. See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for more information.
255890
+
The Containers API allows you to query container data for your organization.
255891
+
See the [Container Monitoring page](https://docs.datadoghq.com/containers/) for more information.
255844
255892
name: Containers
255845
255893
- description: |-
255846
255894
Programmatic management of a customer's Datadog organization. Use this API to perform
Copy file name to clipboardExpand all lines: src/datadog_api_client/v2/api/containers_api.py
+33-10Lines changed: 33 additions & 10 deletions
Original file line number
Diff line number
Diff line change
@@ -20,7 +20,8 @@
20
20
21
21
classContainersApi:
22
22
"""
23
-
The Containers API allows you to query container data for your organization. See the `Container Monitoring page <https://docs.datadoghq.com/containers/>`_ for more information.
23
+
The Containers API allows you to query container data for your organization.
24
+
See the `Container Monitoring page <https://docs.datadoghq.com/containers/>`_ for more information.
24
25
"""
25
26
26
27
def__init__(self, api_client=None):
@@ -85,15 +86,28 @@ def list_containers(
85
86
) ->ContainersResponse:
86
87
"""Get All Containers.
87
88
88
-
Get all containers for your organization.
89
+
Get all containers for your organization. Use ``group_by`` to return container groups with counts.
90
+
Grouped results are limited by ``page[size]`` and do not support pagination.
89
91
90
-
:param filter_tags: Comma-separated list of tags to filter containers by.
92
+
To get CPU or memory metrics, use a ``container`` data source query with ``/api/v2/query/scalar``
93
+
or ``/api/v2/query/timeseries``.
94
+
95
+
:param filter_tags: Comma-separated ``key:value`` tags. A container must match every tag. Wildcards, negation
96
+
( ``-key:value`` ), spaces, and ``IN (...)`` are not supported. To cover several hosts, make one
97
+
request per host.
91
98
:type filter_tags: str, optional
92
-
:param group_by: Comma-separated list of tags to group containers by.
99
+
:param group_by: Comma-separated list of up to three tag keys to group containers by. Returns ``container_group``
100
+
objects with counts and tags. Grouped results ignore ``sort`` and do not support pagination.
101
+
Containers with multiple values for a grouping tag can appear in multiple groups.
102
+
Summing group counts can overcount distinct containers.
:param count: Number of containers in the group. A container with multiple values for a grouping tag can appear in multiple groups. Summing group counts can overcount distinct containers.
34
34
:type count: int, optional
35
35
36
36
:param tags: Tags from the group name parsed in key/value format.
0 commit comments