Skip to content

Commit e69394c

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit a75da1e of spec repo (#311)
Co-authored-by: ci.datadog-api-spec <[email protected]>
1 parent 21432e2 commit e69394c

10 files changed

+28
-21
lines changed

.apigentools-info

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
"spec_versions": {
55
"v1": {
66
"apigentools_version": "1.4.1.dev8",
7-
"regenerated": "2021-03-08 08:27:26.096501",
8-
"spec_repo_commit": "317577f"
7+
"regenerated": "2021-03-08 11:24:06.929024",
8+
"spec_repo_commit": "a75da1e"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-03-08 08:27:59.020071",
13-
"spec_repo_commit": "317577f"
12+
"regenerated": "2021-03-08 11:24:44.205548",
13+
"spec_repo_commit": "a75da1e"
1414
}
1515
}
1616
}

docs/v1/FormulaAndFunctionEventQueryDefinition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,9 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**compute** | [**FormulaAndFunctionEventQueryDefinitionCompute**](FormulaAndFunctionEventQueryDefinitionCompute.md) | |
88
**data_source** | [**FormulaAndFunctionEventsDataSource**](FormulaAndFunctionEventsDataSource.md) | |
9+
**name** | **str** | Name of the query for use in formulas. |
910
**group_by** | [**[FormulaAndFunctionEventQueryGroupBy]**](FormulaAndFunctionEventQueryGroupBy.md) | Group by options. | [optional]
1011
**indexes** | **[str]** | An array of index names to query in the stream. Omit or use &#x60;[]&#x60; to query all indexes at once. | [optional]
11-
**name** | **str** | Name of the query for use in formulas. | [optional]
1212
**search** | [**FormulaAndFunctionEventQueryDefinitionSearch**](FormulaAndFunctionEventQueryDefinitionSearch.md) | | [optional]
1313

1414
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)

docs/v1/FormulaAndFunctionMetricQueryDefinition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,9 @@ A formula and functions metrics query.
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**data_source** | [**FormulaAndFunctionMetricDataSource**](FormulaAndFunctionMetricDataSource.md) | |
8+
**name** | **str** | Name of the query for use in formulas. |
89
**query** | **str** | Metrics query definition. |
910
**aggregator** | [**FormulaAndFunctionMetricAggregation**](FormulaAndFunctionMetricAggregation.md) | | [optional]
10-
**name** | **str** | Name of the query for use in formulas. | [optional]
1111

1212
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
1313

docs/v1/FormulaAndFunctionProcessQueryDefinition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,10 +6,10 @@ Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**data_source** | [**FormulaAndFunctionProcessQueryDataSource**](FormulaAndFunctionProcessQueryDataSource.md) | |
88
**metric** | **str** | Process metric name. |
9+
**name** | **str** | Name of query for use in formulas. |
910
**aggregator** | [**FormulaAndFunctionMetricAggregation**](FormulaAndFunctionMetricAggregation.md) | | [optional]
1011
**is_normalized_cpu** | **bool** | Whether to normalize the CPU percentages. | [optional]
1112
**limit** | **int** | Number of hits to return. | [optional]
12-
**name** | **str** | Name of query for use in formulas. | [optional]
1313
**sort** | [**QuerySortOrder**](QuerySortOrder.md) | | [optional]
1414
**tag_filters** | **[str]** | An array of tags to filter by. | [optional]
1515
**text_filter** | **str** | Text to use as filter. | [optional]

docs/v1/FormulaAndFunctionQueryDefinition.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ A formula and function query.
55
Name | Type | Description | Notes
66
------------ | ------------- | ------------- | -------------
77
**aggregator** | [**FormulaAndFunctionMetricAggregation**](FormulaAndFunctionMetricAggregation.md) | | [optional]
8-
**name** | **str** | Name of query for use in formulas. | [optional]
98
**group_by** | [**[FormulaAndFunctionEventQueryGroupBy]**](FormulaAndFunctionEventQueryGroupBy.md) | Group by options. | [optional]
109
**indexes** | **[str]** | An array of index names to query in the stream. Omit or use &#x60;[]&#x60; to query all indexes at once. | [optional]
1110
**search** | [**FormulaAndFunctionEventQueryDefinitionSearch**](FormulaAndFunctionEventQueryDefinitionSearch.md) | | [optional]
@@ -15,6 +14,7 @@ Name | Type | Description | Notes
1514
**tag_filters** | **[str]** | An array of tags to filter by. | [optional]
1615
**text_filter** | **str** | Text to use as filter. | [optional]
1716
**data_source** | [**FormulaAndFunctionProcessQueryDataSource**](FormulaAndFunctionProcessQueryDataSource.md) | | [optional]
17+
**name** | **str** | Name of query for use in formulas. | [optional]
1818
**query** | **str** | Metrics query definition. | [optional]
1919
**compute** | [**FormulaAndFunctionEventQueryDefinitionCompute**](FormulaAndFunctionEventQueryDefinitionCompute.md) | | [optional]
2020
**metric** | **str** | Process metric name. | [optional]

src/datadog_api_client/v1/model/formula_and_function_event_query_definition.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -86,9 +86,9 @@ def openapi_types():
8686
return {
8787
"compute": (FormulaAndFunctionEventQueryDefinitionCompute,), # noqa: E501
8888
"data_source": (FormulaAndFunctionEventsDataSource,), # noqa: E501
89+
"name": (str,), # noqa: E501
8990
"group_by": ([FormulaAndFunctionEventQueryGroupBy],), # noqa: E501
9091
"indexes": ([str],), # noqa: E501
91-
"name": (str,), # noqa: E501
9292
"search": (FormulaAndFunctionEventQueryDefinitionSearch,), # noqa: E501
9393
}
9494

@@ -99,9 +99,9 @@ def discriminator():
9999
attribute_map = {
100100
"compute": "compute", # noqa: E501
101101
"data_source": "data_source", # noqa: E501
102+
"name": "name", # noqa: E501
102103
"group_by": "group_by", # noqa: E501
103104
"indexes": "indexes", # noqa: E501
104-
"name": "name", # noqa: E501
105105
"search": "search", # noqa: E501
106106
}
107107

@@ -119,12 +119,13 @@ def discriminator():
119119
)
120120

121121
@convert_js_args_to_python_args
122-
def __init__(self, compute, data_source, *args, **kwargs): # noqa: E501
122+
def __init__(self, compute, data_source, name, *args, **kwargs): # noqa: E501
123123
"""FormulaAndFunctionEventQueryDefinition - a model defined in OpenAPI
124124
125125
Args:
126126
compute (FormulaAndFunctionEventQueryDefinitionCompute):
127127
data_source (FormulaAndFunctionEventsDataSource):
128+
name (str): Name of the query for use in formulas.
128129
129130
Keyword Args:
130131
_check_type (bool): if True, values for parameters in openapi_types
@@ -159,7 +160,6 @@ def __init__(self, compute, data_source, *args, **kwargs): # noqa: E501
159160
_visited_composed_classes = (Animal,)
160161
group_by ([FormulaAndFunctionEventQueryGroupBy]): Group by options.. [optional] # noqa: E501
161162
indexes ([str]): An array of index names to query in the stream. Omit or use `[]` to query all indexes at once.. [optional] # noqa: E501
162-
name (str): Name of the query for use in formulas.. [optional] # noqa: E501
163163
search (FormulaAndFunctionEventQueryDefinitionSearch): [optional] # noqa: E501
164164
"""
165165

@@ -189,6 +189,7 @@ def __init__(self, compute, data_source, *args, **kwargs): # noqa: E501
189189

190190
self.compute = compute
191191
self.data_source = data_source
192+
self.name = name
192193
for var_name, var_value in kwargs.items():
193194
if (
194195
var_name not in self.attribute_map

src/datadog_api_client/v1/model/formula_and_function_metric_query_definition.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -75,9 +75,9 @@ def openapi_types():
7575
lazy_import()
7676
return {
7777
"data_source": (FormulaAndFunctionMetricDataSource,), # noqa: E501
78+
"name": (str,), # noqa: E501
7879
"query": (str,), # noqa: E501
7980
"aggregator": (FormulaAndFunctionMetricAggregation,), # noqa: E501
80-
"name": (str,), # noqa: E501
8181
}
8282

8383
@cached_property
@@ -86,9 +86,9 @@ def discriminator():
8686

8787
attribute_map = {
8888
"data_source": "data_source", # noqa: E501
89+
"name": "name", # noqa: E501
8990
"query": "query", # noqa: E501
9091
"aggregator": "aggregator", # noqa: E501
91-
"name": "name", # noqa: E501
9292
}
9393

9494
_composed_schemas = {}
@@ -105,11 +105,12 @@ def discriminator():
105105
)
106106

107107
@convert_js_args_to_python_args
108-
def __init__(self, data_source, query, *args, **kwargs): # noqa: E501
108+
def __init__(self, data_source, name, query, *args, **kwargs): # noqa: E501
109109
"""FormulaAndFunctionMetricQueryDefinition - a model defined in OpenAPI
110110
111111
Args:
112112
data_source (FormulaAndFunctionMetricDataSource):
113+
name (str): Name of the query for use in formulas.
113114
query (str): Metrics query definition.
114115
115116
Keyword Args:
@@ -144,7 +145,6 @@ def __init__(self, data_source, query, *args, **kwargs): # noqa: E501
144145
through its discriminator because we passed in
145146
_visited_composed_classes = (Animal,)
146147
aggregator (FormulaAndFunctionMetricAggregation): [optional] # noqa: E501
147-
name (str): Name of the query for use in formulas.. [optional] # noqa: E501
148148
"""
149149

150150
_check_type = kwargs.pop("_check_type", True)
@@ -172,6 +172,7 @@ def __init__(self, data_source, query, *args, **kwargs): # noqa: E501
172172
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
173173

174174
self.data_source = data_source
175+
self.name = name
175176
self.query = query
176177
for var_name, var_value in kwargs.items():
177178
if (

src/datadog_api_client/v1/model/formula_and_function_process_query_definition.py

Lines changed: 5 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -80,10 +80,10 @@ def openapi_types():
8080
return {
8181
"data_source": (FormulaAndFunctionProcessQueryDataSource,), # noqa: E501
8282
"metric": (str,), # noqa: E501
83+
"name": (str,), # noqa: E501
8384
"aggregator": (FormulaAndFunctionMetricAggregation,), # noqa: E501
8485
"is_normalized_cpu": (bool,), # noqa: E501
8586
"limit": (int,), # noqa: E501
86-
"name": (str,), # noqa: E501
8787
"sort": (QuerySortOrder,), # noqa: E501
8888
"tag_filters": ([str],), # noqa: E501
8989
"text_filter": (str,), # noqa: E501
@@ -96,10 +96,10 @@ def discriminator():
9696
attribute_map = {
9797
"data_source": "data_source", # noqa: E501
9898
"metric": "metric", # noqa: E501
99+
"name": "name", # noqa: E501
99100
"aggregator": "aggregator", # noqa: E501
100101
"is_normalized_cpu": "is_normalized_cpu", # noqa: E501
101102
"limit": "limit", # noqa: E501
102-
"name": "name", # noqa: E501
103103
"sort": "sort", # noqa: E501
104104
"tag_filters": "tag_filters", # noqa: E501
105105
"text_filter": "text_filter", # noqa: E501
@@ -119,12 +119,13 @@ def discriminator():
119119
)
120120

121121
@convert_js_args_to_python_args
122-
def __init__(self, data_source, metric, *args, **kwargs): # noqa: E501
122+
def __init__(self, data_source, metric, name, *args, **kwargs): # noqa: E501
123123
"""FormulaAndFunctionProcessQueryDefinition - a model defined in OpenAPI
124124
125125
Args:
126126
data_source (FormulaAndFunctionProcessQueryDataSource):
127127
metric (str): Process metric name.
128+
name (str): Name of query for use in formulas.
128129
129130
Keyword Args:
130131
_check_type (bool): if True, values for parameters in openapi_types
@@ -160,7 +161,6 @@ def __init__(self, data_source, metric, *args, **kwargs): # noqa: E501
160161
aggregator (FormulaAndFunctionMetricAggregation): [optional] # noqa: E501
161162
is_normalized_cpu (bool): Whether to normalize the CPU percentages.. [optional] # noqa: E501
162163
limit (int): Number of hits to return.. [optional] # noqa: E501
163-
name (str): Name of query for use in formulas.. [optional] # noqa: E501
164164
sort (QuerySortOrder): [optional] # noqa: E501
165165
tag_filters ([str]): An array of tags to filter by.. [optional] # noqa: E501
166166
text_filter (str): Text to use as filter.. [optional] # noqa: E501
@@ -192,6 +192,7 @@ def __init__(self, data_source, metric, *args, **kwargs): # noqa: E501
192192

193193
self.data_source = data_source
194194
self.metric = metric
195+
self.name = name
195196
for var_name, var_value in kwargs.items():
196197
if (
197198
var_name not in self.attribute_map

src/datadog_api_client/v1/model/formula_and_function_query_definition.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -175,7 +175,6 @@ def __init__(self, *args, **kwargs): # noqa: E501
175175
through its discriminator because we passed in
176176
_visited_composed_classes = (Animal,)
177177
aggregator (FormulaAndFunctionMetricAggregation): [optional] # noqa: E501
178-
name (str): Name of query for use in formulas.. [optional] # noqa: E501
179178
group_by ([FormulaAndFunctionEventQueryGroupBy]): Group by options.. [optional] # noqa: E501
180179
indexes ([str]): An array of index names to query in the stream. Omit or use `[]` to query all indexes at once.. [optional] # noqa: E501
181180
search (FormulaAndFunctionEventQueryDefinitionSearch): [optional] # noqa: E501
@@ -185,6 +184,7 @@ def __init__(self, *args, **kwargs): # noqa: E501
185184
tag_filters ([str]): An array of tags to filter by.. [optional] # noqa: E501
186185
text_filter (str): Text to use as filter.. [optional] # noqa: E501
187186
data_source (FormulaAndFunctionProcessQueryDataSource): [optional] # noqa: E501
187+
name (str): Name of query for use in formulas.. [optional] # noqa: E501
188188
query (str): Metrics query definition.. [optional] # noqa: E501
189189
compute (FormulaAndFunctionEventQueryDefinitionCompute): [optional] # noqa: E501
190190
metric (str): Process metric name.. [optional] # noqa: E501

src/datadog_api_client/v1/openapi.yaml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1657,6 +1657,7 @@ components:
16571657
required:
16581658
- data_source
16591659
- compute
1660+
- name
16601661
type: object
16611662
FormulaAndFunctionEventQueryGroupBy:
16621663
description: List of objects used to group by.
@@ -1753,6 +1754,7 @@ components:
17531754
required:
17541755
- data_source
17551756
- query
1757+
- name
17561758
type: object
17571759
FormulaAndFunctionProcessQueryDataSource:
17581760
description: Data sources that rely on the process backend.
@@ -1783,6 +1785,7 @@ components:
17831785
type: string
17841786
name:
17851787
description: Name of query for use in formulas.
1788+
example: query_errors
17861789
type: string
17871790
sort:
17881791
$ref: '#/components/schemas/QuerySortOrder'
@@ -1798,6 +1801,7 @@ components:
17981801
required:
17991802
- data_source
18001803
- metric
1804+
- name
18011805
type: object
18021806
FormulaAndFunctionQueryDefinition:
18031807
description: A formula and function query.

0 commit comments

Comments
 (0)