Skip to content

Commit d4eb9d4

Browse files
author
ci.datadog-api-spec
committed
Regenerate client from commit 6f010d5 of spec repo
1 parent 387b9d1 commit d4eb9d4

7 files changed

Lines changed: 23 additions & 19 deletions

File tree

.generator/schemas/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2986,6 +2986,8 @@ components:
29862986
type: string
29872987
group_by:
29882988
description: Array of fields to group results by.
2989+
example:
2990+
- "resource_name"
29892991
items:
29902992
description: Field to group results by.
29912993
example: "resource_name"
@@ -3023,6 +3025,8 @@ components:
30233025
- name
30243026
- service
30253027
- stat
3028+
- operation_name
3029+
- group_by
30263030
type: object
30273031
FormulaAndFunctionCloudCostDataSource:
30283032
description: Data source for Cloud Cost queries.

.generator/schemas/v2/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4447,6 +4447,8 @@ components:
44474447
type: string
44484448
group_by:
44494449
description: Tag keys to group results by.
4450+
example:
4451+
- resource_name
44504452
items:
44514453
description: A tag key to group by.
44524454
example: resource_name
@@ -4484,6 +4486,8 @@ components:
44844486
- env
44854487
- service
44864488
- stat
4489+
- operation_name
4490+
- group_by
44874491
type: object
44884492
ApmRetentionFilterType:
44894493
default: apm_retention_filter

src/datadog_api_client/v1/model/distribution_widget_histogram_request_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -52,7 +52,7 @@ def __init__(self, **kwargs):
5252
:type env: str
5353
5454
:param operation_name: Name of operation on service.
55-
:type operation_name: str, optional
55+
:type operation_name: str
5656
5757
:param primary_tag_name: Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
5858
:type primary_tag_name: str, optional

src/datadog_api_client/v1/model/formula_and_function_apm_resource_stats_query_definition.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -70,12 +70,12 @@ def __init__(
7070
self_,
7171
data_source: FormulaAndFunctionApmResourceStatsDataSource,
7272
env: str,
73+
group_by: List[str],
7374
name: str,
75+
operation_name: str,
7476
service: str,
7577
stat: FormulaAndFunctionApmResourceStatName,
7678
cross_org_uuids: Union[List[str], UnsetType] = unset,
77-
group_by: Union[List[str], UnsetType] = unset,
78-
operation_name: Union[str, UnsetType] = unset,
7979
primary_tag_name: Union[str, UnsetType] = unset,
8080
primary_tag_value: Union[str, UnsetType] = unset,
8181
resource_name: Union[str, UnsetType] = unset,
@@ -94,13 +94,13 @@ def __init__(
9494
:type env: str
9595
9696
:param group_by: Array of fields to group results by.
97-
:type group_by: [str], optional
97+
:type group_by: [str]
9898
9999
:param name: Name of this query to use in formulas.
100100
:type name: str
101101
102102
:param operation_name: Name of operation on service.
103-
:type operation_name: str, optional
103+
:type operation_name: str
104104
105105
:param primary_tag_name: Name of the second primary tag used within APM. Required when ``primary_tag_value`` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
106106
:type primary_tag_name: str, optional
@@ -119,10 +119,6 @@ def __init__(
119119
"""
120120
if cross_org_uuids is not unset:
121121
kwargs["cross_org_uuids"] = cross_org_uuids
122-
if group_by is not unset:
123-
kwargs["group_by"] = group_by
124-
if operation_name is not unset:
125-
kwargs["operation_name"] = operation_name
126122
if primary_tag_name is not unset:
127123
kwargs["primary_tag_name"] = primary_tag_name
128124
if primary_tag_value is not unset:
@@ -133,6 +129,8 @@ def __init__(
133129

134130
self_.data_source = data_source
135131
self_.env = env
132+
self_.group_by = group_by
136133
self_.name = name
134+
self_.operation_name = operation_name
137135
self_.service = service
138136
self_.stat = stat

src/datadog_api_client/v2/model/apm_resource_stats_query.py

Lines changed: 6 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -54,11 +54,11 @@ def __init__(
5454
self_,
5555
data_source: ApmResourceStatsDataSource,
5656
env: str,
57+
group_by: List[str],
5758
name: str,
59+
operation_name: str,
5860
service: str,
5961
stat: ApmResourceStatName,
60-
group_by: Union[List[str], UnsetType] = unset,
61-
operation_name: Union[str, UnsetType] = unset,
6262
primary_tag_name: Union[str, UnsetType] = unset,
6363
primary_tag_value: Union[str, UnsetType] = unset,
6464
resource_name: Union[str, UnsetType] = unset,
@@ -74,13 +74,13 @@ def __init__(
7474
:type env: str
7575
7676
:param group_by: Tag keys to group results by.
77-
:type group_by: [str], optional
77+
:type group_by: [str]
7878
7979
:param name: The variable name for use in formulas.
8080
:type name: str
8181
8282
:param operation_name: The APM operation name.
83-
:type operation_name: str, optional
83+
:type operation_name: str
8484
8585
:param primary_tag_name: Name of the second primary tag used within APM. Required when ``primary_tag_value`` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
8686
:type primary_tag_name: str, optional
@@ -97,10 +97,6 @@ def __init__(
9797
:param stat: The APM resource statistic to query.
9898
:type stat: ApmResourceStatName
9999
"""
100-
if group_by is not unset:
101-
kwargs["group_by"] = group_by
102-
if operation_name is not unset:
103-
kwargs["operation_name"] = operation_name
104100
if primary_tag_name is not unset:
105101
kwargs["primary_tag_name"] = primary_tag_name
106102
if primary_tag_value is not unset:
@@ -111,6 +107,8 @@ def __init__(
111107

112108
self_.data_source = data_source
113109
self_.env = env
110+
self_.group_by = group_by
114111
self_.name = name
112+
self_.operation_name = operation_name
115113
self_.service = service
116114
self_.stat = stat

src/datadog_api_client/v2/model/scalar_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ def __init__(self, **kwargs):
4343
:type env: str
4444
4545
:param operation_name: The APM operation name.
46-
:type operation_name: str, optional
46+
:type operation_name: str
4747
4848
:param primary_tag_name: Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
4949
:type primary_tag_name: str, optional

src/datadog_api_client/v2/model/timeseries_query.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -40,7 +40,7 @@ def __init__(self, **kwargs):
4040
:type env: str
4141
4242
:param operation_name: The APM operation name.
43-
:type operation_name: str, optional
43+
:type operation_name: str
4444
4545
:param primary_tag_name: Name of the second primary tag used within APM. Required when `primary_tag_value` is specified. See https://docs.datadoghq.com/tracing/guide/setting_primary_tags_to_scope/#add-a-second-primary-tag-in-datadog
4646
:type primary_tag_name: str, optional

0 commit comments

Comments
 (0)