Skip to content

Commit 4679bc9

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 7a734d3 of spec repo
1 parent 5e34e7b commit 4679bc9

File tree

4 files changed

+57
-7
lines changed

4 files changed

+57
-7
lines changed

.generator/schemas/v2/openapi.yaml

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -88653,6 +88653,26 @@ paths:
8865388653
required: false
8865488654
schema:
8865588655
type: boolean
88656+
- description: 'The number of seconds of look back (from now) used by the `filter[queried]`
88657+
filter logic.
88658+
88659+
Must be sent with `filter[queried]` and is only applied when `filter[queried]=true`.
88660+
88661+
If `filter[queried]=false`, this parameter is ignored and default queried-window
88662+
behavior applies.
88663+
88664+
If `filter[queried]` is not provided, sending this parameter returns a 400.
88665+
88666+
For example: `GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=7776000`.'
88667+
example: 7776000
88668+
in: query
88669+
name: filter[queried][window][seconds]
88670+
required: false
88671+
schema:
88672+
format: int64
88673+
maximum: 15552000
88674+
minimum: 0
88675+
type: integer
8865688676
- description: 'Filter metrics that have been submitted with the given tags.
8865788677
Supports boolean and wildcard expressions.
8865888678

src/datadog_api_client/v2/api/metrics_api.py

Lines changed: 29 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -347,6 +347,15 @@ def __init__(self, api_client=None):
347347
"attribute": "filter[queried]",
348348
"location": "query",
349349
},
350+
"filter_queried_window_seconds": {
351+
"validation": {
352+
"inclusive_maximum": 15552000,
353+
"inclusive_minimum": 0,
354+
},
355+
"openapi_types": (int,),
356+
"attribute": "filter[queried][window][seconds]",
357+
"location": "query",
358+
},
350359
"filter_tags": {
351360
"openapi_types": (str,),
352361
"attribute": "filter[tags]",
@@ -770,6 +779,7 @@ def list_tag_configurations(
770779
filter_metric_type: Union[MetricTagConfigurationMetricTypeCategory, UnsetType] = unset,
771780
filter_include_percentiles: Union[bool, UnsetType] = unset,
772781
filter_queried: Union[bool, UnsetType] = unset,
782+
filter_queried_window_seconds: Union[int, UnsetType] = unset,
773783
filter_tags: Union[str, UnsetType] = unset,
774784
filter_related_assets: Union[bool, UnsetType] = unset,
775785
window_seconds: Union[int, UnsetType] = unset,
@@ -795,6 +805,12 @@ def list_tag_configurations(
795805
:param filter_queried: (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds].
796806
If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
797807
:type filter_queried: bool, optional
808+
:param filter_queried_window_seconds: The number of seconds of look back (from now) used by the ``filter[queried]`` filter logic.
809+
Must be sent with ``filter[queried]`` and is only applied when ``filter[queried]=true``.
810+
If ``filter[queried]=false`` , this parameter is ignored and default queried-window behavior applies.
811+
If ``filter[queried]`` is not provided, sending this parameter returns a 400.
812+
For example: ``GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=7776000``.
813+
:type filter_queried_window_seconds: int, optional
798814
:param filter_tags: Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
799815
Can only be combined with the filter[queried] filter.
800816
:type filter_tags: str, optional
@@ -827,6 +843,9 @@ def list_tag_configurations(
827843
if filter_queried is not unset:
828844
kwargs["filter_queried"] = filter_queried
829845

846+
if filter_queried_window_seconds is not unset:
847+
kwargs["filter_queried_window_seconds"] = filter_queried_window_seconds
848+
830849
if filter_tags is not unset:
831850
kwargs["filter_tags"] = filter_tags
832851

@@ -852,6 +871,7 @@ def list_tag_configurations_with_pagination(
852871
filter_metric_type: Union[MetricTagConfigurationMetricTypeCategory, UnsetType] = unset,
853872
filter_include_percentiles: Union[bool, UnsetType] = unset,
854873
filter_queried: Union[bool, UnsetType] = unset,
874+
filter_queried_window_seconds: Union[int, UnsetType] = unset,
855875
filter_tags: Union[str, UnsetType] = unset,
856876
filter_related_assets: Union[bool, UnsetType] = unset,
857877
window_seconds: Union[int, UnsetType] = unset,
@@ -874,6 +894,12 @@ def list_tag_configurations_with_pagination(
874894
:param filter_queried: (Preview) Filter custom metrics that have or have not been queried in the specified window[seconds].
875895
If no window is provided or the window is less than 2 hours, a default of 2 hours will be applied.
876896
:type filter_queried: bool, optional
897+
:param filter_queried_window_seconds: The number of seconds of look back (from now) used by the ``filter[queried]`` filter logic.
898+
Must be sent with ``filter[queried]`` and is only applied when ``filter[queried]=true``.
899+
If ``filter[queried]=false`` , this parameter is ignored and default queried-window behavior applies.
900+
If ``filter[queried]`` is not provided, sending this parameter returns a 400.
901+
For example: ``GET /api/v2/metrics?filter[queried]=true&filter[queried][window][seconds]=7776000``.
902+
:type filter_queried_window_seconds: int, optional
877903
:param filter_tags: Filter metrics that have been submitted with the given tags. Supports boolean and wildcard expressions.
878904
Can only be combined with the filter[queried] filter.
879905
:type filter_tags: str, optional
@@ -908,6 +934,9 @@ def list_tag_configurations_with_pagination(
908934
if filter_queried is not unset:
909935
kwargs["filter_queried"] = filter_queried
910936

937+
if filter_queried_window_seconds is not unset:
938+
kwargs["filter_queried_window_seconds"] = filter_queried_window_seconds
939+
911940
if filter_tags is not unset:
912941
kwargs["filter_tags"] = filter_tags
913942

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
2026-02-18T16:57:05.121Z
1+
2026-01-07T12:38:45.716Z

tests/v2/cassettes/test_scenarios/test_create_a_test_suite_returns_ok_response.yaml

Lines changed: 7 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -11,10 +11,10 @@ interactions:
1111
uri: https://api.datadoghq.com/api/v2/synthetics/suites
1212
response:
1313
body:
14-
string: '{"data":{"type":"suites","attributes":{"type":"suite","monitor_id":259845717,"name":"Example
15-
suite name","options":{},"tests":[],"tags":["env:production"],"public_id":"hik-xp5-9q6","created_at":"2026-02-18T16:57:05.583051+00:00","modified_at":"2026-02-18T16:57:05.583051+00:00","created_by":{"name":"Corentin
16-
Girard","email":"corentin.girard@datadoghq.com","handle":"corentin.girard@datadoghq.com"},"message":"Notification
17-
message","org_id":321813,"modified_by":{"name":"Corentin Girard","email":"corentin.girard@datadoghq.com","handle":"corentin.girard@datadoghq.com"}},"id":"hik-xp5-9q6"}}
14+
string: '{"data":{"type":"suites","id":"36n-bb6-njj","attributes":{"tags":["env:production"],"type":"suite","created_by":{"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI
15+
Account"},"created_at":"2026-01-07T12:38:46.109472+00:00","modified_at":"2026-01-07T12:38:46.109472+00:00","message":"Notification
16+
message","public_id":"36n-bb6-njj","options":{},"modified_by":{"email":"team-intg-tools-libs-spam@datadoghq.com","handle":"9919ec9b-ebc7-49ee-8dc8-03626e717cca","name":"CI
17+
Account"},"tests":[],"name":"Example suite name","org_id":321813,"monitor_id":249141773}}}
1818
1919
'
2020
headers:
@@ -24,7 +24,7 @@ interactions:
2424
code: 200
2525
message: OK
2626
- request:
27-
body: '{"data":{"attributes":{"public_ids":["hik-xp5-9q6"]},"type":"delete_suites_request"}}'
27+
body: '{"data":{"attributes":{"public_ids":["36n-bb6-njj"]},"type":"delete_suites_request"}}'
2828
headers:
2929
accept:
3030
- application/json
@@ -34,7 +34,8 @@ interactions:
3434
uri: https://api.datadoghq.com/api/v2/synthetics/suites/bulk-delete
3535
response:
3636
body:
37-
string: '{"data":[{"type":"suites","attributes":{"deleted_at":"2026-02-18 16:57:06.420679","public_id":"hik-xp5-9q6"},"id":"hik-xp5-9q6"}]}
37+
string: '{"data":[{"type":"suites","attributes":{"public_id":"36n-bb6-njj","deleted_at":"2026-01-07
38+
12:38:46.679914"},"id":"36n-bb6-njj"}]}
3839
3940
'
4041
headers:

0 commit comments

Comments
 (0)