Skip to content

Commit acb8798

Browse files
dd-octo-sts[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit fe702d3 of spec repo (#4187)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent aa508d4 commit acb8798

3 files changed

Lines changed: 27 additions & 13 deletions

File tree

‎.generator/schemas/v2/openapi.yaml‎

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -79277,11 +79277,15 @@ components:
7927779277
enum:
7927879278
- non_distribution
7927979279
- distribution
79280+
- exponential_histogram
79281+
- explicit_histogram
7928079282
example: distribution
7928179283
type: string
7928279284
x-enum-varnames:
7928379285
- NON_DISTRIBUTION
7928479286
- DISTRIBUTION
79287+
- EXPONENTIAL_HISTOGRAM
79288+
- EXPLICIT_HISTOGRAM
7928579289
MetricTagConfigurationMetricTypes:
7928679290
default: gauge
7928779291
description: The metric's type.
@@ -199129,7 +199133,7 @@ paths:
199129199133
schema:
199130199134
type: boolean
199131199135
- description: |-
199132-
This parameter has no effect unless `filter[queried]` is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: `filter[queried]=true&filter[queried][window][seconds]=604800`.
199136+
The look-back window for `filter[queried]`, in seconds. You must also set `filter[queried]`, or the request returns a 400 error. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 0. With `0`, the window ends now, so `filter[queried]=true` returns almost no metrics and `filter[queried]=false` returns all metrics. For example: `filter[queried]=true&filter[queried][window][seconds]=604800`.
199133199137
example: 15552000
199134199138
in: query
199135199139
name: filter[queried][window][seconds]
@@ -199138,7 +199142,7 @@ paths:
199138199142
default: 2592000
199139199143
format: int64
199140199144
maximum: 15552000
199141-
minimum: 1
199145+
minimum: 0
199142199146
type: integer
199143199147
- description: |-
199144199148
Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards. For example: `filter[tags]=env IN (staging,test) AND service:web*`.
@@ -199171,16 +199175,16 @@ paths:
199171199175
schema:
199172199176
type: string
199173199177
- description: |-
199174-
Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second.
199178+
Only return metrics that have been actively reporting in this window. The default value is 3,600 seconds (1 hour), the maximum value is 5,184,000 seconds (60 days), and the minimum value is 0. With `0`, the API returns only metrics that reported in the last few minutes.
199175199179
example: 3600
199176199180
in: query
199177199181
name: window[seconds]
199178199182
required: false
199179199183
schema:
199180199184
default: 3600
199181199185
format: int64
199182-
maximum: 2592000
199183-
minimum: 1
199186+
maximum: 5184000
199187+
minimum: 0
199184199188
type: integer
199185199189
- description: |-
199186199190
Maximum number of results per page. Send `page[size]` on the first request to opt in to pagination. On each subsequent request, send `page[cursor]` set to the value of `meta.pagination.next_cursor` from the previous response. The default value is 10000, the maximum value is 10000, and the minimum value is 1.

‎src/datadog_api_client/v2/api/metrics_api.py‎

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -644,7 +644,7 @@ def __init__(self, api_client=None):
644644
"filter_queried_window_seconds": {
645645
"validation": {
646646
"inclusive_maximum": 15552000,
647-
"inclusive_minimum": 1,
647+
"inclusive_minimum": 0,
648648
},
649649
"openapi_types": (int,),
650650
"attribute": "filter[queried][window][seconds]",
@@ -672,8 +672,8 @@ def __init__(self, api_client=None):
672672
},
673673
"window_seconds": {
674674
"validation": {
675-
"inclusive_maximum": 2592000,
676-
"inclusive_minimum": 1,
675+
"inclusive_maximum": 5184000,
676+
"inclusive_minimum": 0,
677677
},
678678
"openapi_types": (int,),
679679
"attribute": "window[seconds]",
@@ -1489,7 +1489,7 @@ def list_tag_configurations(
14891489
:type filter_include_percentiles: bool, optional
14901490
:param filter_queried: Only return metrics that have been queried (true) or not queried (false) in the look back window. Set the window with ``filter[queried][window][seconds]`` ; if omitted, a default window is used.
14911491
:type filter_queried: bool, optional
1492-
:param filter_queried_window_seconds: This parameter has no effect unless ``filter[queried]`` is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: ``filter[queried]=true&filter[queried][window][seconds]=604800``.
1492+
:param filter_queried_window_seconds: The look-back window for ``filter[queried]`` , in seconds. You must also set ``filter[queried]`` , or the request returns a 400 error. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 0. With ``0`` , the window ends now, so ``filter[queried]=true`` returns almost no metrics and ``filter[queried]=false`` returns all metrics. For example: ``filter[queried]=true&filter[queried][window][seconds]=604800``.
14931493
:type filter_queried_window_seconds: int, optional
14941494
:param filter_tags: Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards. For example: ``filter[tags]=env IN (staging,test) AND service:web*``.
14951495
:type filter_tags: str, optional
@@ -1499,7 +1499,7 @@ def list_tag_configurations(
14991499
:type include: str, optional
15001500
:param sort: Sort results by metric volume. Prefix a key with ``-`` for descending order. Supported keys: ``metric_volumes.indexed_volume`` , ``metric_volumes.ingested_volume`` , ``metric_volumes.indexed_volume_delta`` , ``metric_volumes.ingested_volume_delta``. Requires a paginated request ( ``page[size]`` or ``page[cursor]`` ).
15011501
:type sort: str, optional
1502-
:param window_seconds: Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second.
1502+
:param window_seconds: Only return metrics that have been actively reporting in this window. The default value is 3,600 seconds (1 hour), the maximum value is 5,184,000 seconds (60 days), and the minimum value is 0. With ``0`` , the API returns only metrics that reported in the last few minutes.
15031503
:type window_seconds: int, optional
15041504
:param page_size: Maximum number of results per page. Send ``page[size]`` on the first request to opt in to pagination. On each subsequent request, send ``page[cursor]`` set to the value of ``meta.pagination.next_cursor`` from the previous response. The default value is 10000, the maximum value is 10000, and the minimum value is 1.
15051505
:type page_size: int, optional
@@ -1586,7 +1586,7 @@ def list_tag_configurations_with_pagination(
15861586
:type filter_include_percentiles: bool, optional
15871587
:param filter_queried: Only return metrics that have been queried (true) or not queried (false) in the look back window. Set the window with ``filter[queried][window][seconds]`` ; if omitted, a default window is used.
15881588
:type filter_queried: bool, optional
1589-
:param filter_queried_window_seconds: This parameter has no effect unless ``filter[queried]`` is also set. Only return metrics that have been queried or not queried in the specified window. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 1 second. For example: ``filter[queried]=true&filter[queried][window][seconds]=604800``.
1589+
:param filter_queried_window_seconds: The look-back window for ``filter[queried]`` , in seconds. You must also set ``filter[queried]`` , or the request returns a 400 error. The default value is 2,592,000 seconds (30 days), the maximum value is 15,552,000 seconds (180 days), and the minimum value is 0. With ``0`` , the window ends now, so ``filter[queried]=true`` returns almost no metrics and ``filter[queried]=false`` returns all metrics. For example: ``filter[queried]=true&filter[queried][window][seconds]=604800``.
15901590
:type filter_queried_window_seconds: int, optional
15911591
:param filter_tags: Only return metrics that were submitted with tags matching this expression. You can use AND, OR, IN, and wildcards. For example: ``filter[tags]=env IN (staging,test) AND service:web*``.
15921592
:type filter_tags: str, optional
@@ -1596,7 +1596,7 @@ def list_tag_configurations_with_pagination(
15961596
:type include: str, optional
15971597
:param sort: Sort results by metric volume. Prefix a key with ``-`` for descending order. Supported keys: ``metric_volumes.indexed_volume`` , ``metric_volumes.ingested_volume`` , ``metric_volumes.indexed_volume_delta`` , ``metric_volumes.ingested_volume_delta``. Requires a paginated request ( ``page[size]`` or ``page[cursor]`` ).
15981598
:type sort: str, optional
1599-
:param window_seconds: Only return metrics that have been actively reporting in the specified window. The default value is 3600 seconds (1 hour), the maximum value is 2,592,000 seconds (30 days), and the minimum value is 1 second.
1599+
:param window_seconds: Only return metrics that have been actively reporting in this window. The default value is 3,600 seconds (1 hour), the maximum value is 5,184,000 seconds (60 days), and the minimum value is 0. With ``0`` , the API returns only metrics that reported in the last few minutes.
16001600
:type window_seconds: int, optional
16011601
:param page_size: Maximum number of results per page. Send ``page[size]`` on the first request to opt in to pagination. On each subsequent request, send ``page[cursor]`` set to the value of ``meta.pagination.next_cursor`` from the previous response. The default value is 10000, the maximum value is 10000, and the minimum value is 1.
16021602
:type page_size: int, optional

‎src/datadog_api_client/v2/model/metric_tag_configuration_metric_type_category.py‎

Lines changed: 11 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,16 +16,20 @@ class MetricTagConfigurationMetricTypeCategory(ModelSimple):
1616
"""
1717
The metric's type category.
1818
19-
:param value: If omitted defaults to "distribution". Must be one of ["non_distribution", "distribution"].
19+
:param value: If omitted defaults to "distribution". Must be one of ["non_distribution", "distribution", "exponential_histogram", "explicit_histogram"].
2020
:type value: str
2121
"""
2222

2323
allowed_values = {
2424
"non_distribution",
2525
"distribution",
26+
"exponential_histogram",
27+
"explicit_histogram",
2628
}
2729
NON_DISTRIBUTION: ClassVar["MetricTagConfigurationMetricTypeCategory"]
2830
DISTRIBUTION: ClassVar["MetricTagConfigurationMetricTypeCategory"]
31+
EXPONENTIAL_HISTOGRAM: ClassVar["MetricTagConfigurationMetricTypeCategory"]
32+
EXPLICIT_HISTOGRAM: ClassVar["MetricTagConfigurationMetricTypeCategory"]
2933

3034
@cached_property
3135
def openapi_types(_):
@@ -36,3 +40,9 @@ def openapi_types(_):
3640

3741
MetricTagConfigurationMetricTypeCategory.NON_DISTRIBUTION = MetricTagConfigurationMetricTypeCategory("non_distribution")
3842
MetricTagConfigurationMetricTypeCategory.DISTRIBUTION = MetricTagConfigurationMetricTypeCategory("distribution")
43+
MetricTagConfigurationMetricTypeCategory.EXPONENTIAL_HISTOGRAM = MetricTagConfigurationMetricTypeCategory(
44+
"exponential_histogram"
45+
)
46+
MetricTagConfigurationMetricTypeCategory.EXPLICIT_HISTOGRAM = MetricTagConfigurationMetricTypeCategory(
47+
"explicit_histogram"
48+
)

0 commit comments

Comments
 (0)