Skip to content

Commit e2f322d

Browse files
api-clients-generation-pipeline[bot]ci.datadog-api-spec
andauthored
Regenerate client from commit 49e5f63 of spec repo (#494)
Co-authored-by: ci.datadog-api-spec <[email protected]> Co-authored-by: api-clients-generation-pipeline[bot] <54105614+api-clients-generation-pipeline[bot]@users.noreply.github.com>
1 parent 8e6877c commit e2f322d

18 files changed

+1281
-14
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-06-26 08:38:25.181926",
8-
"spec_repo_commit": "d18c63f"
7+
"regenerated": "2021-06-28 16:37:38.437354",
8+
"spec_repo_commit": "49e5f63"
99
},
1010
"v2": {
1111
"apigentools_version": "1.4.1.dev8",
12-
"regenerated": "2021-06-26 08:38:47.452453",
13-
"spec_repo_commit": "d18c63f"
12+
"regenerated": "2021-06-28 16:38:06.418638",
13+
"spec_repo_commit": "49e5f63"
1414
}
1515
}
1616
}

docs/v1/README.md

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -750,6 +750,12 @@ Class | Method | HTTP request | Description
750750
- [ToplistWidgetDefinition](ToplistWidgetDefinition.md)
751751
- [ToplistWidgetDefinitionType](ToplistWidgetDefinitionType.md)
752752
- [ToplistWidgetRequest](ToplistWidgetRequest.md)
753+
- [TreeMapColorBy](TreeMapColorBy.md)
754+
- [TreeMapGroupBy](TreeMapGroupBy.md)
755+
- [TreeMapSizeBy](TreeMapSizeBy.md)
756+
- [TreeMapWidgetDefinition](TreeMapWidgetDefinition.md)
757+
- [TreeMapWidgetDefinitionType](TreeMapWidgetDefinitionType.md)
758+
- [TreeMapWidgetRequest](TreeMapWidgetRequest.md)
753759
- [UsageAnalyzedLogsHour](UsageAnalyzedLogsHour.md)
754760
- [UsageAnalyzedLogsResponse](UsageAnalyzedLogsResponse.md)
755761
- [UsageAttributionAggregates](UsageAttributionAggregates.md)

docs/v1/TreeMapColorBy.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TreeMapColorBy
2+
3+
The attribute used to determine color in the widget.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**value** | **str** | The attribute used to determine color in the widget. | defaults to "user", must be one of ["user", ]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+

docs/v1/TreeMapGroupBy.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TreeMapGroupBy
2+
3+
The attribute used to group elements in the widget.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**value** | **str** | The attribute used to group elements in the widget. | must be one of ["user", "family", "process", ]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+

docs/v1/TreeMapSizeBy.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TreeMapSizeBy
2+
3+
The attribute used to determine size in the widget.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**value** | **str** | The attribute used to determine size in the widget. | must be one of ["pct_cpu", "pct_mem", ]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+

docs/v1/TreeMapWidgetDefinition.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# TreeMapWidgetDefinition
2+
3+
The treemap visualization found on the Host Dashboards comes from the output of `ps auxww`. This is not continuously run on your hosts. Instead, it’s run once on Agent start/restart. The treemap is only supported for process data on a single host dashboard — this may not be reused in other dashboards or for other metrics.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**color_by** | [**TreeMapColorBy**](TreeMapColorBy.md) | |
9+
**group_by** | [**TreeMapGroupBy**](TreeMapGroupBy.md) | |
10+
**requests** | [**[TreeMapWidgetRequest]**](TreeMapWidgetRequest.md) | List of top list widget requests. |
11+
**size_by** | [**TreeMapSizeBy**](TreeMapSizeBy.md) | |
12+
**type** | [**TreeMapWidgetDefinitionType**](TreeMapWidgetDefinitionType.md) | |
13+
**title** | **str** | Title of your widget. | [optional]
14+
15+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
16+
17+
Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TreeMapWidgetDefinitionType
2+
3+
Type of the treemap widget.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**value** | **str** | Type of the treemap widget. | defaults to "treemap", must be one of ["treemap", ]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+

docs/v1/TreeMapWidgetRequest.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# TreeMapWidgetRequest
2+
3+
An updated treemap widget.
4+
5+
## Properties
6+
Name | Type | Description | Notes
7+
------------ | ------------- | ------------- | -------------
8+
**q** | **str** | The widget metrics query. | [optional]
9+
10+
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
11+
12+

docs/v1/WidgetDefinition.md

Lines changed: 5 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@ Name | Type | Description | Notes
1414
**unit** | **str** | Unit to display with the value. | [optional]
1515
**custom_links** | [**[WidgetCustomLink]**](WidgetCustomLink.md) | List of custom links. | [optional]
1616
**group** | **[str]** | List of tag prefixes to group by. | [optional]
17-
**group_by** | **[str]** | List of tag prefixes to group by in the case of a cluster check. | [optional]
1817
**tags** | **[str]** | List of tags used to filter the groups reporting a cluster check. | [optional]
1918
**legend_size** | **str** | Available legend sizes for a widget. Should be one of \&quot;0\&quot;, \&quot;2\&quot;, \&quot;4\&quot;, \&quot;8\&quot;, \&quot;16\&quot;, or \&quot;auto\&quot;. | [optional]
2019
**markers** | [**[WidgetMarker]**](WidgetMarker.md) | List of markers. | [optional]
@@ -79,10 +78,11 @@ Name | Type | Description | Notes
7978
**legend_layout** | [**TimeseriesWidgetLegendLayout**](TimeseriesWidgetLegendLayout.md) | | [optional]
8079
**right_yaxis** | [**WidgetAxis**](WidgetAxis.md) | | [optional]
8180
**alert_id** | **str** | ID of the alert to use in the widget. | [optional]
82-
**type** | [**ToplistWidgetDefinitionType**](ToplistWidgetDefinitionType.md) | | [optional]
81+
**type** | [**TreeMapWidgetDefinitionType**](TreeMapWidgetDefinitionType.md) | | [optional]
8382
**viz_type** | [**WidgetVizType**](WidgetVizType.md) | | [optional]
84-
**requests** | [**[ToplistWidgetRequest]**](ToplistWidgetRequest.md) | List of top list widget requests. | [optional]
83+
**requests** | [**[TreeMapWidgetRequest]**](TreeMapWidgetRequest.md) | List of top list widget requests. | [optional]
8584
**check** | **str** | Name of the check to use in the widget. | [optional]
85+
**group_by** | [**TreeMapGroupBy**](TreeMapGroupBy.md) | | [optional]
8686
**grouping** | [**WidgetGrouping**](WidgetGrouping.md) | | [optional]
8787
**query** | **str** | Query to filter the monitors with. | [optional]
8888
**text** | **str** | Text to display. | [optional]
@@ -97,6 +97,8 @@ Name | Type | Description | Notes
9797
**service** | **str** | APM service. | [optional]
9898
**env** | **str** | APM environment. | [optional]
9999
**span_name** | **str** | APM span name. | [optional]
100+
**color_by** | [**TreeMapColorBy**](TreeMapColorBy.md) | | [optional]
101+
**size_by** | [**TreeMapSizeBy**](TreeMapSizeBy.md) | | [optional]
100102
**any string name** | **bool, date, datetime, dict, float, int, list, str, none_type** | any string name can be used but the value must be the correct type | [optional]
101103

102104
[[Back to Model list]](README.md#documentation-for-models) [[Back to API list]](README.md#documentation-for-api-endpoints) [[Back to README]](README.md)
Lines changed: 175 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,175 @@
1+
# Unless explicitly stated otherwise all files in this repository are licensed under the Apache-2.0 License.
2+
# This product includes software developed at Datadog (https://www.datadoghq.com/).
3+
# Copyright 2019-Present Datadog, Inc.
4+
5+
6+
import re # noqa: F401
7+
import sys # noqa: F401
8+
9+
from datadog_api_client.v1.model_utils import ( # noqa: F401
10+
ApiTypeError,
11+
ModelComposed,
12+
ModelNormal,
13+
ModelSimple,
14+
cached_property,
15+
change_keys_js_to_python,
16+
convert_js_args_to_python_args,
17+
date,
18+
datetime,
19+
file_type,
20+
none_type,
21+
validate_get_composed_info,
22+
)
23+
24+
25+
class TreeMapColorBy(ModelSimple):
26+
"""NOTE: This class is auto generated by OpenAPI Generator.
27+
Ref: https://openapi-generator.tech
28+
29+
Do not edit the class manually.
30+
31+
Attributes:
32+
allowed_values (dict): The key is the tuple path to the attribute
33+
and the for var_name this is (var_name,). The value is a dict
34+
with a capitalized key describing the allowed value and an allowed
35+
value. These dicts store the allowed enum values.
36+
validations (dict): The key is the tuple path to the attribute
37+
and the for var_name this is (var_name,). The value is a dict
38+
that stores validations for max_length, min_length, max_items,
39+
min_items, exclusive_maximum, inclusive_maximum, exclusive_minimum,
40+
inclusive_minimum, and regex.
41+
additional_properties_type (tuple): A tuple of classes accepted
42+
as additional properties values.
43+
"""
44+
45+
allowed_values = {
46+
("value",): {
47+
"USER": "user",
48+
},
49+
}
50+
51+
validations = {}
52+
53+
additional_properties_type = None
54+
55+
_nullable = False
56+
57+
@cached_property
58+
def openapi_types():
59+
"""
60+
This must be a method because a model may have properties that are
61+
of type self, this must run after the class is loaded
62+
63+
Returns
64+
openapi_types (dict): The key is attribute name
65+
and the value is attribute type.
66+
"""
67+
return {
68+
"value": (str,),
69+
}
70+
71+
@cached_property
72+
def discriminator():
73+
return None
74+
75+
attribute_map = {}
76+
77+
_composed_schemas = None
78+
79+
required_properties = set(
80+
[
81+
"_data_store",
82+
"_check_type",
83+
"_spec_property_naming",
84+
"_path_to_item",
85+
"_configuration",
86+
"_visited_composed_classes",
87+
]
88+
)
89+
90+
@convert_js_args_to_python_args
91+
def __init__(self, *args, **kwargs):
92+
"""TreeMapColorBy - a model defined in OpenAPI
93+
94+
Note that value can be passed either in args or in kwargs, but not in both.
95+
96+
Args:
97+
args[0] (str): The attribute used to determine color in the widget.. if omitted defaults to "user", must be one of ["user", ] # noqa: E501
98+
99+
Keyword Args:
100+
value (str): The attribute used to determine color in the widget.. if omitted defaults to "user", must be one of ["user", ] # noqa: E501
101+
_check_type (bool): if True, values for parameters in openapi_types
102+
will be type checked and a TypeError will be
103+
raised if the wrong type is input.
104+
Defaults to True
105+
_path_to_item (tuple/list): This is a list of keys or values to
106+
drill down to the model in received_data
107+
when deserializing a response
108+
_spec_property_naming (bool): True if the variable names in the input data
109+
are serialized names, as specified in the OpenAPI document.
110+
False if the variable names in the input data
111+
are pythonic names, e.g. snake case (default)
112+
_configuration (Configuration): the instance to use when
113+
deserializing a file_type parameter.
114+
If passed, type conversion is attempted
115+
If omitted no type conversion is done.
116+
_visited_composed_classes (tuple): This stores a tuple of
117+
classes that we have traveled through so that
118+
if we see that class again we will not use its
119+
discriminator again.
120+
When traveling through a discriminator, the
121+
composed schema that is
122+
is traveled through is added to this set.
123+
For example if Animal has a discriminator
124+
petType and we pass in "Dog", and the class Dog
125+
allOf includes Animal, we move through Animal
126+
once using the discriminator, and pick Dog.
127+
Then in Dog, we will make an instance of the
128+
Animal class but this time we won't travel
129+
through its discriminator because we passed in
130+
_visited_composed_classes = (Animal,)
131+
"""
132+
# required up here when default value is not given
133+
_path_to_item = kwargs.pop("_path_to_item", ())
134+
135+
if "value" in kwargs:
136+
value = kwargs.pop("value")
137+
elif args:
138+
args = list(args)
139+
value = args.pop(0)
140+
else:
141+
value = "user"
142+
143+
_check_type = kwargs.pop("_check_type", True)
144+
_spec_property_naming = kwargs.pop("_spec_property_naming", False)
145+
_configuration = kwargs.pop("_configuration", None)
146+
_visited_composed_classes = kwargs.pop("_visited_composed_classes", ())
147+
148+
if args:
149+
raise ApiTypeError(
150+
"Invalid positional arguments=%s passed to %s. Remove those invalid positional arguments."
151+
% (
152+
args,
153+
self.__class__.__name__,
154+
),
155+
path_to_item=_path_to_item,
156+
valid_classes=(self.__class__,),
157+
)
158+
159+
self._data_store = {}
160+
self._check_type = _check_type
161+
self._spec_property_naming = _spec_property_naming
162+
self._path_to_item = _path_to_item
163+
self._configuration = _configuration
164+
self._visited_composed_classes = _visited_composed_classes + (self.__class__,)
165+
self.value = value
166+
if kwargs:
167+
raise ApiTypeError(
168+
"Invalid named arguments=%s passed to %s. Remove those invalid named arguments."
169+
% (
170+
kwargs,
171+
self.__class__.__name__,
172+
),
173+
path_to_item=_path_to_item,
174+
valid_classes=(self.__class__,),
175+
)

0 commit comments

Comments
 (0)