Skip to content

Commit d201b54

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
and
ci.datadog-api-spec
authoredFeb 6, 2025··
Regenerate client from commit b89b292b of spec repo (#2366)
Co-authored-by: ci.datadog-api-spec <packages@datadoghq.com>
1 parent 7692bed commit d201b54

File tree

3 files changed

+32
-7
lines changed

3 files changed

+32
-7
lines changed
 

‎.apigentools-info

+4-4
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": "2025-02-06 14:56:59.904084",
8-
"spec_repo_commit": "3c39fb0c"
7+
"regenerated": "2025-02-06 17:59:44.328977",
8+
"spec_repo_commit": "b89b292b"
99
},
1010
"v2": {
1111
"apigentools_version": "1.6.6",
12-
"regenerated": "2025-02-06 14:56:59.918861",
13-
"spec_repo_commit": "3c39fb0c"
12+
"regenerated": "2025-02-06 17:59:44.354899",
13+
"spec_repo_commit": "b89b292b"
1414
}
1515
}
1616
}

‎.generator/schemas/v2/openapi.yaml

+9-1
Original file line numberDiff line numberDiff line change
@@ -40196,7 +40196,7 @@ paths:
4019640196
required: false
4019740197
schema:
4019840198
type: boolean
40199-
- description: '(Beta) Filter custom metrics that have or have not been queried
40199+
- description: '(Preview) Filter custom metrics that have or have not been queried
4020040200
in the specified window[seconds].
4020140201

4020240202
If no window is provided or the window is less than 2 hours, a default of
@@ -40217,6 +40217,14 @@ paths:
4021740217
required: false
4021840218
schema:
4021940219
type: string
40220+
- description: (Preview) Filter metrics that are used in dashboards, monitors,
40221+
notebooks, SLOs.
40222+
example: true
40223+
in: query
40224+
name: filter[related_assets]
40225+
required: false
40226+
schema:
40227+
type: boolean
4022040228
- description: 'The number of seconds of look back (from now) to apply to a
4022140229
filter[tag] or filter[queried] query.
4022240230

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

+19-2
Original file line numberDiff line numberDiff line change
@@ -328,6 +328,11 @@ def __init__(self, api_client=None):
328328
"attribute": "filter[tags]",
329329
"location": "query",
330330
},
331+
"filter_related_assets": {
332+
"openapi_types": (bool,),
333+
"attribute": "filter[related_assets]",
334+
"location": "query",
335+
},
331336
"window_seconds": {
332337
"openapi_types": (int,),
333338
"attribute": "window[seconds]",
@@ -691,6 +696,7 @@ def list_tag_configurations(
691696
filter_include_percentiles: Union[bool, UnsetType] = unset,
692697
filter_queried: Union[bool, UnsetType] = unset,
693698
filter_tags: Union[str, UnsetType] = unset,
699+
filter_related_assets: Union[bool, UnsetType] = unset,
694700
window_seconds: Union[int, UnsetType] = unset,
695701
page_size: Union[int, UnsetType] = unset,
696702
page_cursor: Union[str, UnsetType] = unset,
@@ -711,12 +717,14 @@ def list_tag_configurations(
711717
:param filter_include_percentiles: Filter distributions with additional percentile
712718
aggregations enabled or disabled.
713719
:type filter_include_percentiles: bool, optional
714-
:param filter_queried: (Beta) Filter custom metrics that have or have not been queried in the specified window[seconds].
720+
:param filter_queried: (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds].
715721
If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
716722
:type filter_queried: bool, optional
717723
:param filter_tags: Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
718724
Can only be combined with the filter[queried] filter.
719725
:type filter_tags: str, optional
726+
:param filter_related_assets: (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
727+
:type filter_related_assets: bool, optional
720728
:param window_seconds: The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query.
721729
Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).
722730
:type window_seconds: int, optional
@@ -747,6 +755,9 @@ def list_tag_configurations(
747755
if filter_tags is not unset:
748756
kwargs["filter_tags"] = filter_tags
749757

758+
if filter_related_assets is not unset:
759+
kwargs["filter_related_assets"] = filter_related_assets
760+
750761
if window_seconds is not unset:
751762
kwargs["window_seconds"] = window_seconds
752763

@@ -767,6 +778,7 @@ def list_tag_configurations_with_pagination(
767778
filter_include_percentiles: Union[bool, UnsetType] = unset,
768779
filter_queried: Union[bool, UnsetType] = unset,
769780
filter_tags: Union[str, UnsetType] = unset,
781+
filter_related_assets: Union[bool, UnsetType] = unset,
770782
window_seconds: Union[int, UnsetType] = unset,
771783
page_size: Union[int, UnsetType] = unset,
772784
page_cursor: Union[str, UnsetType] = unset,
@@ -784,12 +796,14 @@ def list_tag_configurations_with_pagination(
784796
:param filter_include_percentiles: Filter distributions with additional percentile
785797
aggregations enabled or disabled.
786798
:type filter_include_percentiles: bool, optional
787-
:param filter_queried: (Beta) Filter custom metrics that have or have not been queried in the specified window[seconds].
799+
:param filter_queried: (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds].
788800
If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
789801
:type filter_queried: bool, optional
790802
:param filter_tags: Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
791803
Can only be combined with the filter[queried] filter.
792804
:type filter_tags: str, optional
805+
:param filter_related_assets: (Preview) Filter metrics that are used in dashboards, monitors, notebooks, SLOs.
806+
:type filter_related_assets: bool, optional
793807
:param window_seconds: The number of seconds of look back (from now) to apply to a filter[tag] or filter[queried] query.
794808
Default value is 3600 (1 hour), maximum value is 2,592,000 (30 days).
795809
:type window_seconds: int, optional
@@ -822,6 +836,9 @@ def list_tag_configurations_with_pagination(
822836
if filter_tags is not unset:
823837
kwargs["filter_tags"] = filter_tags
824838

839+
if filter_related_assets is not unset:
840+
kwargs["filter_related_assets"] = filter_related_assets
841+
825842
if window_seconds is not unset:
826843
kwargs["window_seconds"] = window_seconds
827844

0 commit comments

Comments
 (0)
Please sign in to comment.