All URIs are relative to http://localhost
Method | Description |
---|---|
disable_tenant_anomaly_setting | disables an anomaly for a tenant in the tenant DB. |
enable_tenant_anomaly_setting | enables an anomaly for a tenant in the tenant DB. |
get_tenant_anomaly_settings | Retrieves all tenant anomaly settings, optionally filtered by the parameters in the request. |
override_tenant_anomaly_setting_config | Override the tenant anomaly config with the provided config. |
DisableTenantAnomalySettingsResponse disable_tenant_anomaly_setting(disable_tenant_anomaly_settings_request)
disables an anomaly for a tenant in the tenant DB.
import onelens_backend_client
from onelens_backend_client.models.disable_tenant_anomaly_settings_request import DisableTenantAnomalySettingsRequest
from onelens_backend_client.models.disable_tenant_anomaly_settings_response import DisableTenantAnomalySettingsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantAnomalyServiceApi(api_client)
disable_tenant_anomaly_settings_request = onelens_backend_client.DisableTenantAnomalySettingsRequest() # DisableTenantAnomalySettingsRequest |
try:
# disables an anomaly for a tenant in the tenant DB.
api_response = api_instance.disable_tenant_anomaly_setting(disable_tenant_anomaly_settings_request)
print("The response of TenantAnomalyServiceApi->disable_tenant_anomaly_setting:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantAnomalyServiceApi->disable_tenant_anomaly_setting: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
disable_tenant_anomaly_settings_request | DisableTenantAnomalySettingsRequest |
DisableTenantAnomalySettingsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
EnableTenantAnomalySettingsResponse enable_tenant_anomaly_setting(enable_tenant_anomaly_settings_request)
enables an anomaly for a tenant in the tenant DB.
import onelens_backend_client
from onelens_backend_client.models.enable_tenant_anomaly_settings_request import EnableTenantAnomalySettingsRequest
from onelens_backend_client.models.enable_tenant_anomaly_settings_response import EnableTenantAnomalySettingsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantAnomalyServiceApi(api_client)
enable_tenant_anomaly_settings_request = onelens_backend_client.EnableTenantAnomalySettingsRequest() # EnableTenantAnomalySettingsRequest |
try:
# enables an anomaly for a tenant in the tenant DB.
api_response = api_instance.enable_tenant_anomaly_setting(enable_tenant_anomaly_settings_request)
print("The response of TenantAnomalyServiceApi->enable_tenant_anomaly_setting:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantAnomalyServiceApi->enable_tenant_anomaly_setting: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
enable_tenant_anomaly_settings_request | EnableTenantAnomalySettingsRequest |
EnableTenantAnomalySettingsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
GetTenantAnomalySettingsResponse get_tenant_anomaly_settings(get_tenant_anomaly_settings_request)
Retrieves all tenant anomaly settings, optionally filtered by the parameters in the request.
import onelens_backend_client
from onelens_backend_client.models.get_tenant_anomaly_settings_request import GetTenantAnomalySettingsRequest
from onelens_backend_client.models.get_tenant_anomaly_settings_response import GetTenantAnomalySettingsResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantAnomalyServiceApi(api_client)
get_tenant_anomaly_settings_request = onelens_backend_client.GetTenantAnomalySettingsRequest() # GetTenantAnomalySettingsRequest |
try:
# Retrieves all tenant anomaly settings, optionally filtered by the parameters in the request.
api_response = api_instance.get_tenant_anomaly_settings(get_tenant_anomaly_settings_request)
print("The response of TenantAnomalyServiceApi->get_tenant_anomaly_settings:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantAnomalyServiceApi->get_tenant_anomaly_settings: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
get_tenant_anomaly_settings_request | GetTenantAnomalySettingsRequest |
GetTenantAnomalySettingsResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
OverrideTenantAnomalyConfigResponse override_tenant_anomaly_setting_config(override_tenant_anomaly_config_request)
Override the tenant anomaly config with the provided config.
import onelens_backend_client
from onelens_backend_client.models.override_tenant_anomaly_config_request import OverrideTenantAnomalyConfigRequest
from onelens_backend_client.models.override_tenant_anomaly_config_response import OverrideTenantAnomalyConfigResponse
from onelens_backend_client.rest import ApiException
from pprint import pprint
# Defining the host is optional and defaults to http://localhost
# See configuration.py for a list of all supported configuration parameters.
configuration = onelens_backend_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with onelens_backend_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = onelens_backend_client.TenantAnomalyServiceApi(api_client)
override_tenant_anomaly_config_request = onelens_backend_client.OverrideTenantAnomalyConfigRequest() # OverrideTenantAnomalyConfigRequest |
try:
# Override the tenant anomaly config with the provided config.
api_response = api_instance.override_tenant_anomaly_setting_config(override_tenant_anomaly_config_request)
print("The response of TenantAnomalyServiceApi->override_tenant_anomaly_setting_config:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling TenantAnomalyServiceApi->override_tenant_anomaly_setting_config: %s\n" % e)
Name | Type | Description | Notes |
---|---|---|---|
override_tenant_anomaly_config_request | OverrideTenantAnomalyConfigRequest |
OverrideTenantAnomalyConfigResponse
No authorization required
- Content-Type: application/json
- Accept: application/json
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
422 | Validation Error | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]