All URIs are relative to /dataservice
Method | HTTP request | Description |
---|---|---|
get_disabled_device_list | GET /statistics/settings/disable/devicelist/{indexName} | |
get_enabled_index_for_device | GET /statistics/settings/status/device | |
get_statistics_settings | GET /statistics/settings/status | |
update_statistics_device_list | PUT /statistics/settings/disable/devicelist/{indexName} | |
update_statistics_settings | PUT /statistics/settings/status |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} get_disabled_device_list(index_name)
Get list of disabled devices for a statistics index
import time
import openapi_client
from openapi_client.api import monitoring_status_api
from pprint import pprint
# Defining the host is optional and defaults to /dataservice
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "/dataservice"
)
# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = monitoring_status_api.MonitoringStatusApi(api_client)
index_name = "indexName_example" # str | Index name
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_disabled_device_list(index_name)
pprint(api_response)
except openapi_client.ApiException as e:
print("Exception when calling MonitoringStatusApi->get_disabled_device_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
index_name | str | Index name |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
403 | Forbidden | - |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} get_enabled_index_for_device(device_id)
Get list of enabled device for statistics index
import time
import openapi_client
from openapi_client.api import monitoring_status_api
from pprint import pprint
# Defining the host is optional and defaults to /dataservice
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "/dataservice"
)
# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = monitoring_status_api.MonitoringStatusApi(api_client)
device_id = "00r252U250?250" # str | Device IP
# example passing only required values which don't have defaults set
try:
api_response = api_instance.get_enabled_index_for_device(device_id)
pprint(api_response)
except openapi_client.ApiException as e:
print("Exception when calling MonitoringStatusApi->get_enabled_index_for_device: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
device_id | str | Device IP |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
403 | Forbidden | - |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} get_statistics_settings()
Get statistics settings
import time
import openapi_client
from openapi_client.api import monitoring_status_api
from pprint import pprint
# Defining the host is optional and defaults to /dataservice
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "/dataservice"
)
# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = monitoring_status_api.MonitoringStatusApi(api_client)
# example, this endpoint has no required or optional parameters
try:
api_response = api_instance.get_statistics_settings()
pprint(api_response)
except openapi_client.ApiException as e:
print("Exception when calling MonitoringStatusApi->get_statistics_settings: %s\n" % e)
This endpoint does not need any parameter.
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
No authorization required
- Content-Type: Not defined
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
403 | Forbidden | - |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
{str: (bool, date, datetime, dict, float, int, list, str, none_type)} update_statistics_device_list(index_name)
Update list of disabled devices for a statistics index
import time
import openapi_client
from openapi_client.api import monitoring_status_api
from pprint import pprint
# Defining the host is optional and defaults to /dataservice
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "/dataservice"
)
# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = monitoring_status_api.MonitoringStatusApi(api_client)
index_name = "indexName_example" # str | Index name
body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | Disabled device (optional)
# example passing only required values which don't have defaults set
try:
api_response = api_instance.update_statistics_device_list(index_name)
pprint(api_response)
except openapi_client.ApiException as e:
print("Exception when calling MonitoringStatusApi->update_statistics_device_list: %s\n" % e)
# example passing only required values which don't have defaults set
# and optional values
try:
api_response = api_instance.update_statistics_device_list(index_name, body=body)
pprint(api_response)
except openapi_client.ApiException as e:
print("Exception when calling MonitoringStatusApi->update_statistics_device_list: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
index_name | str | Index name | |
body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | Disabled device | [optional] |
{str: (bool, date, datetime, dict, float, int, list, str, none_type)}
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
403 | Forbidden | - |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
update_statistics_settings()
Update statistics settings
import time
import openapi_client
from openapi_client.api import monitoring_status_api
from pprint import pprint
# Defining the host is optional and defaults to /dataservice
# See configuration.py for a list of all supported configuration parameters.
configuration = openapi_client.Configuration(
host = "/dataservice"
)
# Enter a context with an instance of the API client
with openapi_client.ApiClient() as api_client:
# Create an instance of the API class
api_instance = monitoring_status_api.MonitoringStatusApi(api_client)
body = {} # {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | Stats setting (optional)
# example passing only required values which don't have defaults set
# and optional values
try:
api_instance.update_statistics_settings(body=body)
except openapi_client.ApiException as e:
print("Exception when calling MonitoringStatusApi->update_statistics_settings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
body | {str: (bool, date, datetime, dict, float, int, list, str, none_type)} | Stats setting | [optional] |
void (empty response body)
No authorization required
- Content-Type: application/json
- Accept: Not defined
Status code | Description | Response headers |
---|---|---|
200 | Success | - |
400 | Bad Request | - |
403 | Forbidden | - |
500 | Internal Server Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]