Skip to content

Latest commit

 

History

History
452 lines (312 loc) · 15.6 KB

DriftDetectorApi.md

File metadata and controls

452 lines (312 loc) · 15.6 KB

seldon_deploy_sdk.DriftDetectorApi

All URIs are relative to http://X.X.X.X/seldon-deploy/api/v1alpha1

Method HTTP request Description
create_drift_detector_seldon_deployment POST /namespaces/{namespace}/seldondeployments/{name}/monitor/drift-detector
create_drift_detector_seldon_pipeline POST /namespaces/{namespace}/pipelines/{name}/monitor/drift-detector
delete_drift_detector_seldon_deployment DELETE /namespaces/{namespace}/seldondeployments/{name}/monitor/drift-detector/{detectorName}
delete_drift_detector_seldon_pipeline DELETE /namespaces/{namespace}/pipelines/{name}/monitor/drift-detector/{detectorName}
list_drift_detector_seldon_deployment GET /namespaces/{namespace}/seldondeployments/{name}/monitor/drift-detector
list_drift_detector_seldon_pipeline GET /namespaces/{namespace}/pipelines/{name}/monitor/drift-detector
read_drift_detector_seldon_deployment GET /namespaces/{namespace}/seldondeployments/{name}/monitor/drift-detector/{detectorName}
read_drift_detector_seldon_pipeline GET /namespaces/{namespace}/pipelines/{name}/monitor/drift-detector/{detectorName}

create_drift_detector_seldon_deployment

DetectorData create_drift_detector_seldon_deployment(name, namespace, detector_data)

Create the specified Seldon Deployment Drift Detector

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.DriftDetectorApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
detector_data = seldon_deploy_sdk.DetectorConfigData() # DetectorConfigData | Deployment Detector Data

try:
    api_response = api_instance.create_drift_detector_seldon_deployment(name, namespace, detector_data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriftDetectorApi->create_drift_detector_seldon_deployment: %s\n" % e)

Parameters

Name Type Description Notes
name str Name identifies a resource
namespace str Namespace provides a logical grouping of resources
detector_data DetectorConfigData Deployment Detector Data

Return type

DetectorData

Authorization

OAuth2

HTTP request headers

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

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

create_drift_detector_seldon_pipeline

DetectorData create_drift_detector_seldon_pipeline(name, namespace, detector_data)

Create the specified Seldon Pipeline Drift Detector

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.DriftDetectorApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
detector_data = seldon_deploy_sdk.DetectorConfigData() # DetectorConfigData | Deployment Detector Data

try:
    api_response = api_instance.create_drift_detector_seldon_pipeline(name, namespace, detector_data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriftDetectorApi->create_drift_detector_seldon_pipeline: %s\n" % e)

Parameters

Name Type Description Notes
name str Name identifies a resource
namespace str Namespace provides a logical grouping of resources
detector_data DetectorConfigData Deployment Detector Data

Return type

DetectorData

Authorization

OAuth2

HTTP request headers

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

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

delete_drift_detector_seldon_deployment

Message delete_drift_detector_seldon_deployment(name, namespace, detector_name)

Read the specified Seldon Deployment Drift Detector

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.DriftDetectorApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
detector_name = 'detector_name_example' # str | Detector Name

try:
    api_response = api_instance.delete_drift_detector_seldon_deployment(name, namespace, detector_name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriftDetectorApi->delete_drift_detector_seldon_deployment: %s\n" % e)

Parameters

Name Type Description Notes
name str Name identifies a resource
namespace str Namespace provides a logical grouping of resources
detector_name str Detector Name

Return type

Message

Authorization

OAuth2

HTTP request headers

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

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

delete_drift_detector_seldon_pipeline

Message delete_drift_detector_seldon_pipeline(name, namespace, detector_name)

Read the specified Seldon Pipeline Drift Detector

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.DriftDetectorApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
detector_name = 'detector_name_example' # str | Detector Name

try:
    api_response = api_instance.delete_drift_detector_seldon_pipeline(name, namespace, detector_name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriftDetectorApi->delete_drift_detector_seldon_pipeline: %s\n" % e)

Parameters

Name Type Description Notes
name str Name identifies a resource
namespace str Namespace provides a logical grouping of resources
detector_name str Detector Name

Return type

Message

Authorization

OAuth2

HTTP request headers

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

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

list_drift_detector_seldon_deployment

list[DetectorData] list_drift_detector_seldon_deployment(name, namespace)

Read the specified Seldon Deployment Drift Detector

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.DriftDetectorApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources

try:
    api_response = api_instance.list_drift_detector_seldon_deployment(name, namespace)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriftDetectorApi->list_drift_detector_seldon_deployment: %s\n" % e)

Parameters

Name Type Description Notes
name str Name identifies a resource
namespace str Namespace provides a logical grouping of resources

Return type

list[DetectorData]

Authorization

OAuth2

HTTP request headers

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

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

list_drift_detector_seldon_pipeline

list[DetectorData] list_drift_detector_seldon_pipeline(name, namespace)

List the specified Seldon Pipeline Drift Detector

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.DriftDetectorApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources

try:
    api_response = api_instance.list_drift_detector_seldon_pipeline(name, namespace)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriftDetectorApi->list_drift_detector_seldon_pipeline: %s\n" % e)

Parameters

Name Type Description Notes
name str Name identifies a resource
namespace str Namespace provides a logical grouping of resources

Return type

list[DetectorData]

Authorization

OAuth2

HTTP request headers

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

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

read_drift_detector_seldon_deployment

DetectorData read_drift_detector_seldon_deployment(name, namespace, detector_name)

Read the specified Seldon Deployment Drift Detector

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.DriftDetectorApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
detector_name = 'detector_name_example' # str | Detector Name

try:
    api_response = api_instance.read_drift_detector_seldon_deployment(name, namespace, detector_name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriftDetectorApi->read_drift_detector_seldon_deployment: %s\n" % e)

Parameters

Name Type Description Notes
name str Name identifies a resource
namespace str Namespace provides a logical grouping of resources
detector_name str Detector Name

Return type

DetectorData

Authorization

OAuth2

HTTP request headers

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

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

read_drift_detector_seldon_pipeline

DetectorData read_drift_detector_seldon_pipeline(name, namespace, detector_name)

Read the specified Seldon Pipeline Drift Detector

Example

from __future__ import print_function
import time
import seldon_deploy_sdk
from seldon_deploy_sdk.rest import ApiException
from pprint import pprint

# Configure OAuth2 access token for authorization: OAuth2
configuration = seldon_deploy_sdk.Configuration()
configuration.access_token = 'YOUR_ACCESS_TOKEN'

# create an instance of the API class
api_instance = seldon_deploy_sdk.DriftDetectorApi(seldon_deploy_sdk.ApiClient(configuration))
name = 'name_example' # str | Name identifies a resource
namespace = 'namespace_example' # str | Namespace provides a logical grouping of resources
detector_name = 'detector_name_example' # str | Detector Name

try:
    api_response = api_instance.read_drift_detector_seldon_pipeline(name, namespace, detector_name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling DriftDetectorApi->read_drift_detector_seldon_pipeline: %s\n" % e)

Parameters

Name Type Description Notes
name str Name identifies a resource
namespace str Namespace provides a logical grouping of resources
detector_name str Detector Name

Return type

DetectorData

Authorization

OAuth2

HTTP request headers

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

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