Skip to content

Latest commit

 

History

History
230 lines (158 loc) · 7.96 KB

MetricsServerApi.md

File metadata and controls

230 lines (158 loc) · 7.96 KB

seldon_deploy_sdk.MetricsServerApi

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

Method HTTP request Description
create_metrics_server_seldon_deployment POST /namespaces/{namespace}/seldondeployments/{name}/monitor/metrics-server
delete_metrics_server_seldon_deployment DELETE /namespaces/{namespace}/seldondeployments/{name}/monitor/metrics-server/{detectorName}
list_metrics_server_seldon_deployment GET /namespaces/{namespace}/seldondeployments/{name}/monitor/metrics-server
read_metrics_server_seldon_deployment GET /namespaces/{namespace}/seldondeployments/{name}/monitor/metrics-server/{detectorName}

create_metrics_server_seldon_deployment

DetectorData create_metrics_server_seldon_deployment(name, namespace, detector_data)

Create the specified Seldon Deployment Metrics Server

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.MetricsServerApi(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_metrics_server_seldon_deployment(name, namespace, detector_data)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MetricsServerApi->create_metrics_server_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]

delete_metrics_server_seldon_deployment

Message delete_metrics_server_seldon_deployment(name, namespace, detector_name)

Read the specified Seldon Deployment Metrics Server

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.MetricsServerApi(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_metrics_server_seldon_deployment(name, namespace, detector_name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MetricsServerApi->delete_metrics_server_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]

list_metrics_server_seldon_deployment

list[DetectorData] list_metrics_server_seldon_deployment(name, namespace)

Read the specified Seldon Deployment Metrics Server

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.MetricsServerApi(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_metrics_server_seldon_deployment(name, namespace)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MetricsServerApi->list_metrics_server_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]

read_metrics_server_seldon_deployment

DetectorData read_metrics_server_seldon_deployment(name, namespace, detector_name)

Read the specified Seldon Deployment Metrics Server

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.MetricsServerApi(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_metrics_server_seldon_deployment(name, namespace, detector_name)
    pprint(api_response)
except ApiException as e:
    print("Exception when calling MetricsServerApi->read_metrics_server_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]