All URIs are relative to https://YOUR_INSTANCE.wavefront.com
Method | HTTP request | Description |
---|---|---|
batch_update | PUT /api/v2/monitoredservice/services | Update multiple applications and services in a batch. Batch size is limited to 100. |
get_all_components | GET /api/v2/monitoredservice/components | Get all monitored services with components |
get_all_services | GET /api/v2/monitoredservice | Get all monitored services |
get_component | GET /api/v2/monitoredservice/{application}/{service}/{component} | Get a specific application |
get_service | GET /api/v2/monitoredservice/{application}/{service} | Get a specific application |
get_services_of_application | GET /api/v2/monitoredservice/{application} | Get services for a specific application |
update_service | PUT /api/v2/monitoredservice/{application}/{service} | Update a specific service |
ResponseContainer batch_update(body=body)
Update multiple applications and services in a batch. Batch size is limited to 100.
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
body = [wavefront_api_client.MonitoredServiceDTO()] # list[MonitoredServiceDTO] | Example Body: <pre>[{ \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" },{ \"satisfiedLatencyMillis\": \"100\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }]</pre> (optional)
try:
# Update multiple applications and services in a batch. Batch size is limited to 100.
api_response = api_instance.batch_update(body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MonitoredServiceApi->batch_update: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | list[MonitoredServiceDTO] | Example Body: <pre>[{ "satisfiedLatencyMillis": "100000", "customDashboardLink": "shopping-dashboard", "hidden": "false" },{ "satisfiedLatencyMillis": "100", "customDashboardLink": "shopping-dashboard", "hidden": "false" }]</pre> | [optional] |
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerPagedMonitoredServiceDTO get_all_components(offset=offset, limit=limit)
Get all monitored services with components
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
offset = 0 # int | (optional) (default to 0)
limit = 100 # int | (optional) (default to 100)
try:
# Get all monitored services with components
api_response = api_instance.get_all_components(offset=offset, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling MonitoredServiceApi->get_all_components: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
offset | int | [optional] [default to 0] | |
limit | int | [optional] [default to 100] |
ResponseContainerPagedMonitoredServiceDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerPagedMonitoredServiceDTO get_all_services(offset=offset, limit=limit)
Get all monitored services
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
offset = 0 # int | (optional) (default to 0)
limit = 100 # int | (optional) (default to 100)
try:
# Get all monitored services
api_response = api_instance.get_all_services(offset=offset, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling MonitoredServiceApi->get_all_services: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
offset | int | [optional] [default to 0] | |
limit | int | [optional] [default to 100] |
ResponseContainerPagedMonitoredServiceDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerMonitoredServiceDTO get_component(application, service, component)
Get a specific application
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
application = 'application_example' # str |
service = 'service_example' # str |
component = 'component_example' # str |
try:
# Get a specific application
api_response = api_instance.get_component(application, service, component)
pprint(api_response)
except ApiException as e:
print("Exception when calling MonitoredServiceApi->get_component: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
application | str | ||
service | str | ||
component | str |
ResponseContainerMonitoredServiceDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerMonitoredServiceDTO get_service(application, service)
Get a specific application
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
application = 'application_example' # str |
service = 'service_example' # str |
try:
# Get a specific application
api_response = api_instance.get_service(application, service)
pprint(api_response)
except ApiException as e:
print("Exception when calling MonitoredServiceApi->get_service: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
application | str | ||
service | str |
ResponseContainerMonitoredServiceDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerPagedMonitoredServiceDTO get_services_of_application(application, include_component=include_component, offset=offset, limit=limit)
Get services for a specific application
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
application = 'application_example' # str |
include_component = false # bool | (optional) (default to false)
offset = 0 # int | (optional) (default to 0)
limit = 100 # int | (optional) (default to 100)
try:
# Get services for a specific application
api_response = api_instance.get_services_of_application(application, include_component=include_component, offset=offset, limit=limit)
pprint(api_response)
except ApiException as e:
print("Exception when calling MonitoredServiceApi->get_services_of_application: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
application | str | ||
include_component | bool | [optional] [default to false] | |
offset | int | [optional] [default to 0] | |
limit | int | [optional] [default to 100] |
ResponseContainerPagedMonitoredServiceDTO
- Content-Type: Not defined
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]
ResponseContainerMonitoredServiceDTO update_service(application, service, body=body)
Update a specific service
from __future__ import print_function
import time
import wavefront_api_client
from wavefront_api_client.rest import ApiException
from pprint import pprint
# Configure API key authorization: api_key
configuration = wavefront_api_client.Configuration()
configuration.api_key['X-AUTH-TOKEN'] = 'YOUR_API_KEY'
# Uncomment below to setup prefix (e.g. Bearer) for API key, if needed
# configuration.api_key_prefix['X-AUTH-TOKEN'] = 'Bearer'
# create an instance of the API class
api_instance = wavefront_api_client.MonitoredServiceApi(wavefront_api_client.ApiClient(configuration))
application = 'application_example' # str |
service = 'service_example' # str |
body = wavefront_api_client.MonitoredServiceDTO() # MonitoredServiceDTO | Example Body: <pre>{ \"satisfiedLatencyMillis\": \"100000\", \"customDashboardLink\": \"shopping-dashboard\", \"hidden\": \"false\" }</pre> (optional)
try:
# Update a specific service
api_response = api_instance.update_service(application, service, body=body)
pprint(api_response)
except ApiException as e:
print("Exception when calling MonitoredServiceApi->update_service: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
application | str | ||
service | str | ||
body | MonitoredServiceDTO | Example Body: <pre>{ "satisfiedLatencyMillis": "100000", "customDashboardLink": "shopping-dashboard", "hidden": "false" }</pre> | [optional] |
ResponseContainerMonitoredServiceDTO
- Content-Type: application/json
- Accept: application/json
[Back to top] [Back to API list] [Back to Model list] [Back to README]