Skip to content
This repository was archived by the owner on Jan 16, 2026. It is now read-only.

Commit f789c4c

Browse files
committed
Autogenerated Update v2.79.1.
1 parent fbbc72b commit f789c4c

File tree

12 files changed

+217
-64
lines changed

12 files changed

+217
-64
lines changed

.swagger-codegen/config.json

Lines changed: 1 addition & 1 deletion
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.78.2"
6+
"packageVersion": "2.79.1"
77
}

.swagger-codegen/config.jsone

Lines changed: 1 addition & 1 deletion
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.76.1"
6+
"packageVersion": "2.78.2"
77
}

README.md

Lines changed: 2 additions & 1 deletion
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.78.2
7+
- Package version: 2.79.1
88
- Build package: io.swagger.codegen.languages.PythonClientCodegen
99

1010
## Requirements.
@@ -228,6 +228,7 @@ Class | Method | HTTP request | Description
228228
*MonitoredApplicationApi* | [**get_all_applications**](docs/MonitoredApplicationApi.md#get_all_applications) | **GET** /api/v2/monitoredapplication | Get all monitored services
229229
*MonitoredApplicationApi* | [**get_application**](docs/MonitoredApplicationApi.md#get_application) | **GET** /api/v2/monitoredapplication/{application} | Get a specific application
230230
*MonitoredApplicationApi* | [**update_service**](docs/MonitoredApplicationApi.md#update_service) | **PUT** /api/v2/monitoredapplication/{application} | Update a specific service
231+
*MonitoredServiceApi* | [**batch_update**](docs/MonitoredServiceApi.md#batch_update) | **PUT** /api/v2/monitoredservice/services | Update multiple applications and services in a batch. Batch size is limited to 100.
231232
*MonitoredServiceApi* | [**get_all_services**](docs/MonitoredServiceApi.md#get_all_services) | **GET** /api/v2/monitoredservice | Get all monitored services
232233
*MonitoredServiceApi* | [**get_service**](docs/MonitoredServiceApi.md#get_service) | **GET** /api/v2/monitoredservice/{application}/{service} | Get a specific application
233234
*MonitoredServiceApi* | [**get_services_of_application**](docs/MonitoredServiceApi.md#get_services_of_application) | **GET** /api/v2/monitoredservice/{application} | Get a specific application

docs/Alert.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ Name | Type | Description | Notes
1010
**alerts_last_day** | **int** | | [optional]
1111
**alerts_last_month** | **int** | | [optional]
1212
**alerts_last_week** | **int** | | [optional]
13+
**application** | **list[str]** | Lists the applications from the failingHostLabelPair of the alert. | [optional]
1314
**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 |
1415
**condition_qb_enabled** | **bool** | Whether the condition query was created using the Query Builder. Default false | [optional]
1516
**condition_qb_serialization** | **str** | The special serialization of the Query Builder that corresponds to the condition query. Applicable only when conditionQBEnabled is true | [optional]
@@ -54,6 +55,7 @@ Name | Type | Description | Notes
5455
**query_failing** | **bool** | Whether there was an exception when the alert condition last ran | [optional]
5556
**resolve_after_minutes** | **int** | The number of consecutive minutes that a firing series matching the condition query must evaluate to \"false\" (zero value) before the alert resolves. When unset, this defaults to the same value as \"minutes\" | [optional]
5657
**secure_metric_details** | **bool** | Whether to secure sensitive metric details and alert images in alert notifications, to not break Metrics Security. | [optional]
58+
**service** | **list[str]** | Lists the services from the failingHostLabelPair of the alert. | [optional]
5759
**severity** | **str** | Severity of the alert | [optional]
5860
**severity_list** | **list[str]** | Alert severity list for multi-threshold type. | [optional]
5961
**snoozed** | **int** | The until which time this alert is snoozed (not checked), in epoch millis. A negative value implies the alert is snoozed indefinitely | [optional]

docs/Annotation.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,8 +3,6 @@
33
## Properties
44
Name | Type | Description | Notes
55
------------ | ------------- | ------------- | -------------
6-
**key** | **str** | | [optional]
7-
**value** | **str** | | [optional]
86

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

docs/MonitoredServiceApi.md

Lines changed: 55 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,12 +4,67 @@ All URIs are relative to *https://YOUR_INSTANCE.wavefront.com*
44

55
Method | HTTP request | Description
66
------------- | ------------- | -------------
7+
[**batch_update**](MonitoredServiceApi.md#batch_update) | **PUT** /api/v2/monitoredservice/services | Update multiple applications and services in a batch. Batch size is limited to 100.
78
[**get_all_services**](MonitoredServiceApi.md#get_all_services) | **GET** /api/v2/monitoredservice | Get all monitored services
89
[**get_service**](MonitoredServiceApi.md#get_service) | **GET** /api/v2/monitoredservice/{application}/{service} | Get a specific application
910
[**get_services_of_application**](MonitoredServiceApi.md#get_services_of_application) | **GET** /api/v2/monitoredservice/{application} | Get a specific application
1011
[**update_service**](MonitoredServiceApi.md#update_service) | **PUT** /api/v2/monitoredservice/{application}/{service} | Update a specific service
1112

1213

14+
# **batch_update**
15+
> ResponseContainer batch_update(body=body)
16+
17+
Update multiple applications and services in a batch. Batch size is limited to 100.
18+
19+
20+
21+
### Example
22+
```python
23+
from __future__ import print_function
24+
import time
25+
import wavefront_api_client
26+
from wavefront_api_client.rest import ApiException
27+
from pprint import pprint
28+
29+
# Configure API key authorization: api_key
30+
configuration = wavefront_api_client.Configuration()
31+
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
32+
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
33+
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
34+
35+
# create an instance of the API class
36+
api_instance = wavefront_api_client.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
37+
body = [wavefront_api_client.MonitoredServiceDTO()] # list[MonitoredServiceDTO] | Example Body: <pre>[{ \"application\": \"beachshirts\", \"service\": \"shopping\", \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" },{ \"application\": \"beachshirts\", \"service\": \"delivery\", \"satisfiedLatencyMillis\": \"100\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }]</pre> (optional)
38+
39+
try:
40+
# Update multiple applications and services in a batch. Batch size is limited to 100.
41+
api_response = api_instance.batch_update(body=body)
42+
pprint(api_response)
43+
except ApiException as e:
44+
print("Exception when calling MonitoredServiceApi->batch_update: %s\n" % e)
45+
```
46+
47+
### Parameters
48+
49+
Name | Type | Description | Notes
50+
------------- | ------------- | ------------- | -------------
51+
**body** | [**list[MonitoredServiceDTO]**](MonitoredServiceDTO.md)| Example Body: &lt;pre&gt;[{ \&quot;application\&quot;: \&quot;beachshirts\&quot;, \&quot;service\&quot;: \&quot;shopping\&quot;, \&quot;satisfiedLatencyMillis\&quot;: \&quot;100000\&quot;, \&quot;customDashboardLink\&quot;: \&quot;shopping-dashboard\&quot;, \&quot;hidden\&quot;: \&quot;false\&quot; },{ \&quot;application\&quot;: \&quot;beachshirts\&quot;, \&quot;service\&quot;: \&quot;delivery\&quot;, \&quot;satisfiedLatencyMillis\&quot;: \&quot;100\&quot;, \&quot;customDashboardLink\&quot;: \&quot;shopping-dashboard\&quot;, \&quot;hidden\&quot;: \&quot;false\&quot; }]&lt;/pre&gt; | [optional]
52+
53+
### Return type
54+
55+
[**ResponseContainer**](ResponseContainer.md)
56+
57+
### Authorization
58+
59+
[api_key](../README.md#api_key)
60+
61+
### HTTP request headers
62+
63+
- **Content-Type**: application/json
64+
- **Accept**: application/json
65+
66+
[[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)
67+
1368
# **get_all_services**
1469
> ResponseContainerPagedMonitoredServiceDTO get_all_services(offset=offset, limit=limit)
1570

setup.py

Lines changed: 1 addition & 1 deletion
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.78.2"
17+
VERSION = "2.79.1"
1818
# To install the library, run the following
1919
#
2020
# python setup.py install

wavefront_api_client/api/monitored_service_api.py

Lines changed: 95 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -33,6 +33,101 @@ def __init__(self, api_client=None):
3333
api_client = ApiClient()
3434
self.api_client = api_client
3535

36+
def batch_update(self, **kwargs): # noqa: E501
37+
"""Update multiple applications and services in a batch. Batch size is limited to 100. # noqa: E501
38+
39+
# noqa: E501
40+
This method makes a synchronous HTTP request by default. To make an
41+
asynchronous HTTP request, please pass async_req=True
42+
>>> thread = api.batch_update(async_req=True)
43+
>>> result = thread.get()
44+
45+
:param async_req bool
46+
:param list[MonitoredServiceDTO] body: Example Body: <pre>[{ \"application\": \"beachshirts\", \"service\": \"shopping\", \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" },{ \"application\": \"beachshirts\", \"service\": \"delivery\", \"satisfiedLatencyMillis\": \"100\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }]</pre>
47+
:return: ResponseContainer
48+
If the method is called asynchronously,
49+
returns the request thread.
50+
"""
51+
kwargs['_return_http_data_only'] = True
52+
if kwargs.get('async_req'):
53+
return self.batch_update_with_http_info(**kwargs) # noqa: E501
54+
else:
55+
(data) = self.batch_update_with_http_info(**kwargs) # noqa: E501
56+
return data
57+
58+
def batch_update_with_http_info(self, **kwargs): # noqa: E501
59+
"""Update multiple applications and services in a batch. Batch size is limited to 100. # noqa: E501
60+
61+
# noqa: E501
62+
This method makes a synchronous HTTP request by default. To make an
63+
asynchronous HTTP request, please pass async_req=True
64+
>>> thread = api.batch_update_with_http_info(async_req=True)
65+
>>> result = thread.get()
66+
67+
:param async_req bool
68+
:param list[MonitoredServiceDTO] body: Example Body: <pre>[{ \"application\": \"beachshirts\", \"service\": \"shopping\", \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" },{ \"application\": \"beachshirts\", \"service\": \"delivery\", \"satisfiedLatencyMillis\": \"100\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }]</pre>
69+
:return: ResponseContainer
70+
If the method is called asynchronously,
71+
returns the request thread.
72+
"""
73+
74+
all_params = ['body'] # noqa: E501
75+
all_params.append('async_req')
76+
all_params.append('_return_http_data_only')
77+
all_params.append('_preload_content')
78+
all_params.append('_request_timeout')
79+
80+
params = locals()
81+
for key, val in six.iteritems(params['kwargs']):
82+
if key not in all_params:
83+
raise TypeError(
84+
"Got an unexpected keyword argument '%s'"
85+
" to method batch_update" % key
86+
)
87+
params[key] = val
88+
del params['kwargs']
89+
90+
collection_formats = {}
91+
92+
path_params = {}
93+
94+
query_params = []
95+
96+
header_params = {}
97+
98+
form_params = []
99+
local_var_files = {}
100+
101+
body_params = None
102+
if 'body' in params:
103+
body_params = params['body']
104+
# HTTP header `Accept`
105+
header_params['Accept'] = self.api_client.select_header_accept(
106+
['application/json']) # noqa: E501
107+
108+
# HTTP header `Content-Type`
109+
header_params['Content-Type'] = self.api_client.select_header_content_type( # noqa: E501
110+
['application/json']) # noqa: E501
111+
112+
# Authentication setting
113+
auth_settings = ['api_key'] # noqa: E501
114+
115+
return self.api_client.call_api(
116+
'/api/v2/monitoredservice/services', 'PUT',
117+
path_params,
118+
query_params,
119+
header_params,
120+
body=body_params,
121+
post_params=form_params,
122+
files=local_var_files,
123+
response_type='ResponseContainer', # noqa: E501
124+
auth_settings=auth_settings,
125+
async_req=params.get('async_req'),
126+
_return_http_data_only=params.get('_return_http_data_only'),
127+
_preload_content=params.get('_preload_content', True),
128+
_request_timeout=params.get('_request_timeout'),
129+
collection_formats=collection_formats)
130+
36131
def get_all_services(self, **kwargs): # noqa: E501
37132
"""Get all monitored services # noqa: E501
38133

wavefront_api_client/api_client.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ def __init__(self, configuration=None, header_name=None, header_value=None,
7474
self.default_headers[header_name] = header_value
7575
self.cookie = cookie
7676
# Set default User-Agent.
77-
self.user_agent = 'Swagger-Codegen/2.78.2/python'
77+
self.user_agent = 'Swagger-Codegen/2.79.1/python'
7878

7979
def __del__(self):
8080
if self._pool is not None:

wavefront_api_client/configuration.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -248,5 +248,5 @@ def to_debug_report(self):
248248
"OS: {env}\n"\
249249
"Python Version: {pyversion}\n"\
250250
"Version of the API: v2\n"\
251-
"SDK Package Version: 2.78.2".\
251+
"SDK Package Version: 2.79.1".\
252252
format(env=sys.platform, pyversion=sys.version)

0 commit comments

Comments
 (0)