Skip to content

Commit 9bd3589

Browse files
committed
Autogenerated Update v2.84.3.
1 parent 65f5d8f commit 9bd3589

30 files changed

+1285
-15
lines changed

.swagger-codegen/config.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"gitUserId": "wavefrontHQ",
44
"packageName": "wavefront_api_client",
55
"packageUrl": "https://github.com/wavefrontHQ/python-client",
6-
"packageVersion": "2.83.7"
6+
"packageVersion": "2.84.3"
77
}

.swagger-codegen/config.jsone

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
"gitUserId": "wavefrontHQ",
44
"packageName": "wavefront_api_client",
55
"packageUrl": "https://github.com/wavefrontHQ/python-client",
6-
"packageVersion": "2.81.4"
6+
"packageVersion": "2.83.7"
77
}

README.md

+6-2
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
This Python package is automatically generated by the [Swagger Codegen](https://github.com/swagger-api/swagger-codegen) project:
55

66
- API version: v2
7-
- Package version: 2.83.7
7+
- Package version: 2.84.3
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -107,6 +107,7 @@ Class | Method | HTTP request | Description
107107
*AccountUserAndServiceAccountApi* | [**validate_accounts**](docs/AccountUserAndServiceAccountApi.md#validate_accounts) | **POST** /api/v2/account/validateAccounts | Returns valid accounts (users and service accounts), also invalid identifiers from the given list
108108
*AlertApi* | [**add_alert_access**](docs/AlertApi.md#add_alert_access) | **POST** /api/v2/alert/acl/add | Adds the specified ids to the given alerts' ACL
109109
*AlertApi* | [**add_alert_tag**](docs/AlertApi.md#add_alert_tag) | **PUT** /api/v2/alert/{id}/tag/{tagValue} | Add a tag to a specific alert
110+
*AlertApi* | [**check_query_type**](docs/AlertApi.md#check_query_type) | **POST** /api/v2/alert/checkQuery | Return the type of provided query.
110111
*AlertApi* | [**clone_alert**](docs/AlertApi.md#clone_alert) | **POST** /api/v2/alert/{id}/clone | Clones the specified alert
111112
*AlertApi* | [**create_alert**](docs/AlertApi.md#create_alert) | **POST** /api/v2/alert | Create a specific alert
112113
*AlertApi* | [**delete_alert**](docs/AlertApi.md#delete_alert) | **DELETE** /api/v2/alert/{id} | Delete a specific alert
@@ -399,7 +400,6 @@ Class | Method | HTTP request | Description
399400
- [Annotation](docs/Annotation.md)
400401
- [Anomaly](docs/Anomaly.md)
401402
- [AppDynamicsConfiguration](docs/AppDynamicsConfiguration.md)
402-
- [AvroBackedStandardizedDTO](docs/AvroBackedStandardizedDTO.md)
403403
- [AzureActivityLogConfiguration](docs/AzureActivityLogConfiguration.md)
404404
- [AzureBaseCredentials](docs/AzureBaseCredentials.md)
405405
- [AzureConfiguration](docs/AzureConfiguration.md)
@@ -410,6 +410,7 @@ Class | Method | HTTP request | Description
410410
- [CloudIntegration](docs/CloudIntegration.md)
411411
- [CloudTrailConfiguration](docs/CloudTrailConfiguration.md)
412412
- [CloudWatchConfiguration](docs/CloudWatchConfiguration.md)
413+
- [Conversion](docs/Conversion.md)
413414
- [ConversionObject](docs/ConversionObject.md)
414415
- [CustomerFacingUserObject](docs/CustomerFacingUserObject.md)
415416
- [Dashboard](docs/Dashboard.md)
@@ -464,6 +465,7 @@ Class | Method | HTTP request | Description
464465
- [NewRelicMetricFilters](docs/NewRelicMetricFilters.md)
465466
- [Notificant](docs/Notificant.md)
466467
- [Package](docs/Package.md)
468+
- [Paged](docs/Paged.md)
467469
- [PagedAccount](docs/PagedAccount.md)
468470
- [PagedAlert](docs/PagedAlert.md)
469471
- [PagedAlertWithStats](docs/PagedAlertWithStats.md)
@@ -497,6 +499,7 @@ Class | Method | HTTP request | Description
497499
- [Proxy](docs/Proxy.md)
498500
- [QueryEvent](docs/QueryEvent.md)
499501
- [QueryResult](docs/QueryResult.md)
502+
- [QueryTypeDTO](docs/QueryTypeDTO.md)
500503
- [RawTimeseries](docs/RawTimeseries.md)
501504
- [RelatedAnomaly](docs/RelatedAnomaly.md)
502505
- [RelatedData](docs/RelatedData.md)
@@ -562,6 +565,7 @@ Class | Method | HTTP request | Description
562565
- [ResponseContainerPagedSource](docs/ResponseContainerPagedSource.md)
563566
- [ResponseContainerPagedUserGroupModel](docs/ResponseContainerPagedUserGroupModel.md)
564567
- [ResponseContainerProxy](docs/ResponseContainerProxy.md)
568+
- [ResponseContainerQueryTypeDTO](docs/ResponseContainerQueryTypeDTO.md)
565569
- [ResponseContainerRoleDTO](docs/ResponseContainerRoleDTO.md)
566570
- [ResponseContainerSavedSearch](docs/ResponseContainerSavedSearch.md)
567571
- [ResponseContainerServiceAccount](docs/ResponseContainerServiceAccount.md)

docs/Alert.md

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,7 @@ Name | Type | Description | Notes
1414
**condition** | **str** | A Wavefront query that is evaluated at regular intervals (default 1m). The alert fires and notifications are triggered when a data series matching this query evaluates to a non-zero value for a set number of consecutive minutes |
1515
**condition_qb_enabled** | **bool** | Whether the condition query was created using the Query Builder. Default false | [optional]
1616
**condition_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true | [optional]
17+
**condition_query_type** | **str** | | [optional]
1718
**conditions** | **dict(str, str)** | Multi - alert conditions. | [optional]
1819
**create_user_id** | **str** | | [optional]
1920
**created** | **int** | When this alert was created, in epoch millis | [optional]
@@ -23,6 +24,7 @@ Name | Type | Description | Notes
2324
**display_expression** | **str** | A second query whose results are displayed in the alert user interface instead of the condition query. This field is often used to display a version of the condition query with Boolean operators removed so that numerical values are plotted | [optional]
2425
**display_expression_qb_enabled** | **bool** | Whether the display expression query was created using the Query Builder. Default false | [optional]
2526
**display_expression_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the display expression query. Applicable only when displayExpressionQBEnabled is true | [optional]
27+
**display_expression_query_type** | **str** | | [optional]
2628
**enable_pd_incident_by_series** | **bool** | | [optional]
2729
**evaluate_realtime_data** | **bool** | Whether to alert on the real-time ingestion stream (may be noisy due to late data) | [optional]
2830
**event** | [**Event**](Event.md) | | [optional]

docs/AlertApi.md

+55
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Method | HTTP request | Description
66
------------- | ------------- | -------------
77
[**add_alert_access**](AlertApi.md#add_alert_access) | **POST** /api/v2/alert/acl/add | Adds the specified ids to the given alerts' ACL
88
[**add_alert_tag**](AlertApi.md#add_alert_tag) | **PUT** /api/v2/alert/{id}/tag/{tagValue} | Add a tag to a specific alert
9+
[**check_query_type**](AlertApi.md#check_query_type) | **POST** /api/v2/alert/checkQuery | Return the type of provided query.
910
[**clone_alert**](AlertApi.md#clone_alert) | **POST** /api/v2/alert/{id}/clone | Clones the specified alert
1011
[**create_alert**](AlertApi.md#create_alert) | **POST** /api/v2/alert | Create a specific alert
1112
[**delete_alert**](AlertApi.md#delete_alert) | **DELETE** /api/v2/alert/{id} | Delete a specific alert
@@ -137,6 +138,60 @@ Name | Type | Description | Notes
137138

138139
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
139140

141+
# **check_query_type**
142+
> ResponseContainerQueryTypeDTO check_query_type(body=body)
143+
144+
Return the type of provided query.
145+
146+
147+
148+
### Example
149+
```python
150+
from __future__ import print_function
151+
import time
152+
import wavefront_api_client
153+
from wavefront_api_client.rest import ApiException
154+
from pprint import pprint
155+
156+
# Configure API key authorization: api_key
157+
configuration = wavefront_api_client.Configuration()
158+
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
159+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
160+
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
161+
162+
# create an instance of the API class
163+
api_instance = wavefront_api_client.AlertApi(wavefront_api_client.ApiClient(configuration))
164+
body = wavefront_api_client.QueryTypeDTO() # QueryTypeDTO | (optional)
165+
166+
try:
167+
# Return the type of provided query.
168+
api_response = api_instance.check_query_type(body=body)
169+
pprint(api_response)
170+
except ApiException as e:
171+
print("Exception when calling AlertApi->check_query_type: %s\n" % e)
172+
```
173+
174+
### Parameters
175+
176+
Name | Type | Description | Notes
177+
------------- | ------------- | ------------- | -------------
178+
**body** | [**QueryTypeDTO**](QueryTypeDTO.md)| | [optional]
179+
180+
### Return type
181+
182+
[**ResponseContainerQueryTypeDTO**](ResponseContainerQueryTypeDTO.md)
183+
184+
### Authorization
185+
186+
[api_key](../README.md#api_key)
187+
188+
### HTTP request headers
189+
190+
- **Content-Type**: application/json
191+
- **Accept**: application/json
192+
193+
[[Back to top]](#) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to Model list]](../README.md#documentation-for-models) [[Back to README]](../README.md)
194+
140195
# **clone_alert**
141196
> ResponseContainerAlert clone_alert(id, name=name, v=v)
142197

docs/ChartSettings.md

+2
Original file line numberDiff line numberDiff line change
@@ -16,6 +16,8 @@ Name | Type | Description | Notes
1616
**fixed_legend_filter_sort** | **str** | Whether to display \"Top\"- or \"Bottom\"-ranked series in the fixed legend | [optional]
1717
**fixed_legend_hide_label** | **bool** | deprecated | [optional]
1818
**fixed_legend_position** | **str** | Where the fixed legend should be displayed with respect to the chart | [optional]
19+
**fixed_legend_show_metric_name** | **bool** | Whether to display Metric Name fixed legend | [optional]
20+
**fixed_legend_show_source_name** | **bool** | Whether to display Source Name fixed legend | [optional]
1921
**fixed_legend_use_raw_stats** | **bool** | If true, the legend uses non-summarized stats instead of summarized | [optional]
2022
**group_by_source** | **bool** | For the tabular view, whether to group multi metrics into a single row by a common source. If false, each metric for each source is displayed in its own row. If true, multiple metrics for the same host will be displayed as different columns in the same row | [optional]
2123
**invert_dynamic_legend_hover_control** | **bool** | Whether to disable the display of the floating legend (but reenable it when the ctrl-key is pressed) | [optional]

docs/ChartSourceQuery.md

+1
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ Name | Type | Description | Notes
66
**disabled** | **bool** | Whether the source is disabled | [optional]
77
**name** | **str** | Name of the source |
88
**query** | **str** | Query expression to plot on the chart |
9+
**query_type** | **str** | Query type of the source | [optional]
910
**querybuilder_enabled** | **bool** | Whether or not this source line should have the query builder enabled | [optional]
1011
**querybuilder_serialization** | **str** | Opaque representation of the querybuilder | [optional]
1112
**scatter_plot_source** | **str** | For scatter plots, does this query source the X-axis or the Y-axis | [optional]

docs/Conversion.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# Conversion
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**logical_type_name** | **str** | | [optional]
7+
**recommended_schema** | [**Schema**](Schema.md) | | [optional]
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

docs/Paged.md

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
# Paged
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**cursor** | **str** | The id at which the current (limited) search can be continued to obtain more matching items | [optional]
7+
**items** | **list[object]** | List of requested items | [optional]
8+
**limit** | **int** | | [optional]
9+
**more_items** | **bool** | Whether more items are available for return by increment offset or cursor | [optional]
10+
**offset** | **int** | | [optional]
11+
**sort** | [**Sorting**](Sorting.md) | | [optional]
12+
**total_items** | **int** | An estimate (lower-bound) of the total number of items available for return. May not be a tight estimate for facet queries | [optional]
13+
14+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
15+
16+

docs/QueryApi.md

+4-2
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ Method | HTTP request | Description
99

1010

1111
# **query_api**
12-
> QueryResult query_api(q, s, g, n=n, e=e, p=p, i=i, auto_events=auto_events, summarization=summarization, list_mode=list_mode, strict=strict, view=view, include_obsolete_metrics=include_obsolete_metrics, sorted=sorted, cached=cached, dimension_tuples=dimension_tuples, use_raw_qk=use_raw_qk)
12+
> QueryResult query_api(q, s, g, n=n, query_type=query_type, e=e, p=p, i=i, auto_events=auto_events, summarization=summarization, list_mode=list_mode, strict=strict, view=view, include_obsolete_metrics=include_obsolete_metrics, sorted=sorted, cached=cached, dimension_tuples=dimension_tuples, use_raw_qk=use_raw_qk)
1313
1414
Perform a charting query against Wavefront servers that returns the appropriate points in the specified time window and granularity
1515

@@ -35,6 +35,7 @@ q = 'q_example' # str | the query expression to execute
3535
s = 's_example' # str | the start time of the query window in epoch milliseconds
3636
g = 'g_example' # str | the granularity of the points returned
3737
n = 'n_example' # str | name used to identify the query (optional)
38+
query_type = 'HYBRID' # str | the query type of the query (optional) (default to HYBRID)
3839
e = 'e_example' # str | the end time of the query window in epoch milliseconds (null to use now) (optional)
3940
p = 'p_example' # str | the approximate maximum number of points to return (may not limit number of points exactly) (optional)
4041
i = true # bool | whether series with only points that are outside of the query window will be returned (defaults to true) (optional)
@@ -51,7 +52,7 @@ use_raw_qk = false # bool | (optional) (default to false)
5152

5253
try:
5354
# Perform a charting query against Wavefront servers that returns the appropriate points in the specified time window and granularity
54-
api_response = api_instance.query_api(q, s, g, n=n, e=e, p=p, i=i, auto_events=auto_events, summarization=summarization, list_mode=list_mode, strict=strict, view=view, include_obsolete_metrics=include_obsolete_metrics, sorted=sorted, cached=cached, dimension_tuples=dimension_tuples, use_raw_qk=use_raw_qk)
55+
api_response = api_instance.query_api(q, s, g, n=n, query_type=query_type, e=e, p=p, i=i, auto_events=auto_events, summarization=summarization, list_mode=list_mode, strict=strict, view=view, include_obsolete_metrics=include_obsolete_metrics, sorted=sorted, cached=cached, dimension_tuples=dimension_tuples, use_raw_qk=use_raw_qk)
5556
pprint(api_response)
5657
except ApiException as e:
5758
print("Exception when calling QueryApi->query_api: %s\n" % e)
@@ -65,6 +66,7 @@ Name | Type | Description | Notes
6566
**s** | **str**| the start time of the query window in epoch milliseconds |
6667
**g** | **str**| the granularity of the points returned |
6768
**n** | **str**| name used to identify the query | [optional]
69+
**query_type** | **str**| the query type of the query | [optional] [default to HYBRID]
6870
**e** | **str**| the end time of the query window in epoch milliseconds (null to use now) | [optional]
6971
**p** | **str**| the approximate maximum number of points to return (may not limit number of points exactly) | [optional]
7072
**i** | **bool**| whether series with only points that are outside of the query window will be returned (defaults to true) | [optional]

docs/QueryTypeDTO.md

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
# QueryTypeDTO
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**input_query** | **str** | | [optional]
7+
**query_type** | **str** | | [optional]
8+
**translated_input** | **str** | | [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/ResponseContainerQueryTypeDTO.md

+11
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
# ResponseContainerQueryTypeDTO
2+
3+
## Properties
4+
Name | Type | Description | Notes
5+
------------ | ------------- | ------------- | -------------
6+
**response** | [**QueryTypeDTO**](QueryTypeDTO.md) | | [optional]
7+
**status** | [**ResponseStatus**](ResponseStatus.md) | |
8+
9+
[[Back to Model list]](../README.md#documentation-for-models) [[Back to API list]](../README.md#documentation-for-api-endpoints) [[Back to README]](../README.md)
10+
11+

setup.py

+1-1
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@
1414
from setuptools import setup, find_packages # noqa: H301
1515

1616
NAME = "wavefront-api-client"
17-
VERSION = "2.83.7"
17+
VERSION = "2.84.3"
1818
# To install the library, run the following
1919
#
2020
# python setup.py install

test/test_conversion.py

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# coding: utf-8
2+
3+
"""
4+
Wavefront REST API
5+
6+
<p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer &lt;&lt;API-TOKEN&gt;&gt;\" to your HTTP requests.</p> # noqa: E501
7+
8+
OpenAPI spec version: v2
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
import unittest
17+
18+
import wavefront_api_client
19+
from wavefront_api_client.models.conversion import Conversion # noqa: E501
20+
from wavefront_api_client.rest import ApiException
21+
22+
23+
class TestConversion(unittest.TestCase):
24+
"""Conversion unit test stubs"""
25+
26+
def setUp(self):
27+
pass
28+
29+
def tearDown(self):
30+
pass
31+
32+
def testConversion(self):
33+
"""Test Conversion"""
34+
# FIXME: construct object with mandatory attributes with example values
35+
# model = wavefront_api_client.models.conversion.Conversion() # noqa: E501
36+
pass
37+
38+
39+
if __name__ == '__main__':
40+
unittest.main()

test/test_paged.py

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# coding: utf-8
2+
3+
"""
4+
Wavefront REST API
5+
6+
<p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer &lt;&lt;API-TOKEN&gt;&gt;\" to your HTTP requests.</p> # noqa: E501
7+
8+
OpenAPI spec version: v2
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
import unittest
17+
18+
import wavefront_api_client
19+
from wavefront_api_client.models.paged import Paged # noqa: E501
20+
from wavefront_api_client.rest import ApiException
21+
22+
23+
class TestPaged(unittest.TestCase):
24+
"""Paged unit test stubs"""
25+
26+
def setUp(self):
27+
pass
28+
29+
def tearDown(self):
30+
pass
31+
32+
def testPaged(self):
33+
"""Test Paged"""
34+
# FIXME: construct object with mandatory attributes with example values
35+
# model = wavefront_api_client.models.paged.Paged() # noqa: E501
36+
pass
37+
38+
39+
if __name__ == '__main__':
40+
unittest.main()

test/test_query_type_dto.py

+40
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
# coding: utf-8
2+
3+
"""
4+
Wavefront REST API
5+
6+
<p>The Wavefront REST API enables you to interact with Wavefront servers using standard REST API tools. You can use the REST API to automate commonly executed operations such as automatically tagging sources.</p><p>When you make REST API calls outside the Wavefront REST API documentation you must add the header \"Authorization: Bearer &lt;&lt;API-TOKEN&gt;&gt;\" to your HTTP requests.</p> # noqa: E501
7+
8+
OpenAPI spec version: v2
9+
10+
Generated by: https://github.com/swagger-api/swagger-codegen.git
11+
"""
12+
13+
14+
from __future__ import absolute_import
15+
16+
import unittest
17+
18+
import wavefront_api_client
19+
from wavefront_api_client.models.query_type_dto import QueryTypeDTO # noqa: E501
20+
from wavefront_api_client.rest import ApiException
21+
22+
23+
class TestQueryTypeDTO(unittest.TestCase):
24+
"""QueryTypeDTO unit test stubs"""
25+
26+
def setUp(self):
27+
pass
28+
29+
def tearDown(self):
30+
pass
31+
32+
def testQueryTypeDTO(self):
33+
"""Test QueryTypeDTO"""
34+
# FIXME: construct object with mandatory attributes with example values
35+
# model = wavefront_api_client.models.query_type_dto.QueryTypeDTO() # noqa: E501
36+
pass
37+
38+
39+
if __name__ == '__main__':
40+
unittest.main()

0 commit comments

Comments
 (0)