Skip to content

Latest commit

 

History

History
280 lines (182 loc) · 9.37 KB

TenantAnomaliesApi.md

File metadata and controls

280 lines (182 loc) · 9.37 KB

TenantAnomaliesApi

All URIs are relative to http://localhost

Method Description
disable_tenant_anomaly_setting Disable Tenant Anomaly Setting
enable_tenant_anomaly_setting Enable Tenant Anomaly Setting
get_tenant_anomaly_settings Get Tenant Anomaly Settings
override_tenant_anomaly_config Override Tenant Anomaly Config

disable_tenant_anomaly_setting

ResponseEnableTenantAnomalySettingsResponse disable_tenant_anomaly_setting()

Disable Tenant Anomaly Setting

enables an anomaly for a tenant in the tenant DB.

Example

import onelens_backend_client
from onelens_backend_client.models.response_enable_tenant_anomaly_settings_response import ResponseEnableTenantAnomalySettingsResponse
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.TenantAnomaliesApi(api_client)

    try:
        # Disable Tenant Anomaly Setting
        api_response = api_instance.disable_tenant_anomaly_setting()
        print("The response of TenantAnomaliesApi->disable_tenant_anomaly_setting:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantAnomaliesApi->disable_tenant_anomaly_setting: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ResponseEnableTenantAnomalySettingsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

enable_tenant_anomaly_setting

ResponseEnableTenantAnomalySettingsResponse enable_tenant_anomaly_setting()

Enable Tenant Anomaly Setting

enables an anomaly for a tenant in the tenant DB.

Example

import onelens_backend_client
from onelens_backend_client.models.response_enable_tenant_anomaly_settings_response import ResponseEnableTenantAnomalySettingsResponse
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.TenantAnomaliesApi(api_client)

    try:
        # Enable Tenant Anomaly Setting
        api_response = api_instance.enable_tenant_anomaly_setting()
        print("The response of TenantAnomaliesApi->enable_tenant_anomaly_setting:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantAnomaliesApi->enable_tenant_anomaly_setting: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ResponseEnableTenantAnomalySettingsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: application/json

HTTP response details

Status code Description Response headers
200 Successful Response -

[Back to top] [Back to API list] [Back to Model list] [Back to README]

get_tenant_anomaly_settings

ResponseGetTenantAnomalySettingsResponse get_tenant_anomaly_settings(get_tenant_anomaly_settings_api_request)

Get Tenant Anomaly Settings

enables an anomaly for a tenant in the tenant DB.

Example

import onelens_backend_client
from onelens_backend_client.models.get_tenant_anomaly_settings_api_request import GetTenantAnomalySettingsAPIRequest
from onelens_backend_client.models.response_get_tenant_anomaly_settings_response import ResponseGetTenantAnomalySettingsResponse
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.TenantAnomaliesApi(api_client)
    get_tenant_anomaly_settings_api_request = onelens_backend_client.GetTenantAnomalySettingsAPIRequest() # GetTenantAnomalySettingsAPIRequest | 

    try:
        # Get Tenant Anomaly Settings
        api_response = api_instance.get_tenant_anomaly_settings(get_tenant_anomaly_settings_api_request)
        print("The response of TenantAnomaliesApi->get_tenant_anomaly_settings:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantAnomaliesApi->get_tenant_anomaly_settings: %s\n" % e)

Parameters

Name Type Description Notes
get_tenant_anomaly_settings_api_request GetTenantAnomalySettingsAPIRequest

Return type

ResponseGetTenantAnomalySettingsResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

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]

override_tenant_anomaly_config

ResponseOverrideTenantAnomalyConfigResponse override_tenant_anomaly_config(override_tenant_anomaly_config_api_request)

Override Tenant Anomaly Config

enables an anomaly for a tenant in the tenant DB.

Example

import onelens_backend_client
from onelens_backend_client.models.override_tenant_anomaly_config_api_request import OverrideTenantAnomalyConfigAPIRequest
from onelens_backend_client.models.response_override_tenant_anomaly_config_response import ResponseOverrideTenantAnomalyConfigResponse
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.TenantAnomaliesApi(api_client)
    override_tenant_anomaly_config_api_request = onelens_backend_client.OverrideTenantAnomalyConfigAPIRequest() # OverrideTenantAnomalyConfigAPIRequest | 

    try:
        # Override Tenant Anomaly Config
        api_response = api_instance.override_tenant_anomaly_config(override_tenant_anomaly_config_api_request)
        print("The response of TenantAnomaliesApi->override_tenant_anomaly_config:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling TenantAnomaliesApi->override_tenant_anomaly_config: %s\n" % e)

Parameters

Name Type Description Notes
override_tenant_anomaly_config_api_request OverrideTenantAnomalyConfigAPIRequest

Return type

ResponseOverrideTenantAnomalyConfigResponse

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json
  • Accept: application/json

HTTP response details

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]