Keyboard shortcuts

Press or to navigate between chapters

Press S or / to search in the book

Press ? to show this help

Press Esc to hide this help

ce_rise_hex_core_sdk.AdminApi

All URIs are relative to http://localhost:8080

MethodHTTP requestDescription
healthGET /admin/healthLiveness probe
metricsGET /admin/metricsPrometheus metrics
models_countGET /admin/models/countCurrent model count
readyGET /admin/readyReadiness probe
statusGET /admin/statusRuntime status
versionGET /admin/versionService and OpenAPI version

health

HealthResponse health()

Liveness probe

Returns service process liveness.

Example

import ce_rise_hex_core_sdk
from ce_rise_hex_core_sdk.models.health_response import HealthResponse
from ce_rise_hex_core_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = ce_rise_hex_core_sdk.Configuration(
    host = "http://localhost:8080"
)


# Enter a context with an instance of the API client
with ce_rise_hex_core_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ce_rise_hex_core_sdk.AdminApi(api_client)

    try:
        # Liveness probe
        api_response = api_instance.health()
        print("The response of AdminApi->health:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminApi->health: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

HealthResponse

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Service is alive.-

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

metrics

str metrics()

Prometheus metrics

Returns Prometheus exposition format when metrics are enabled.

Example

import ce_rise_hex_core_sdk
from ce_rise_hex_core_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = ce_rise_hex_core_sdk.Configuration(
    host = "http://localhost:8080"
)


# Enter a context with an instance of the API client
with ce_rise_hex_core_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ce_rise_hex_core_sdk.AdminApi(api_client)

    try:
        # Prometheus metrics
        api_response = api_instance.metrics()
        print("The response of AdminApi->metrics:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminApi->metrics: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

str

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined
  • Accept: text/plain, application/json

HTTP response details

Status codeDescriptionResponse headers
200Metrics text returned.-
404Metrics endpoint disabled.-

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

models_count

ModelCountResponse models_count()

Current model count

Returns the number of model/version entries currently loaded in the active registry index.

Example

import ce_rise_hex_core_sdk
from ce_rise_hex_core_sdk.models.model_count_response import ModelCountResponse
from ce_rise_hex_core_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = ce_rise_hex_core_sdk.Configuration(
    host = "http://localhost:8080"
)


# Enter a context with an instance of the API client
with ce_rise_hex_core_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ce_rise_hex_core_sdk.AdminApi(api_client)

    try:
        # Current model count
        api_response = api_instance.models_count()
        print("The response of AdminApi->models_count:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminApi->models_count: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ModelCountResponse

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Model count returned.-

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

ready

ReadyResponse ready()

Readiness probe

Returns readiness based on runtime adapter and registry state.

Example

import ce_rise_hex_core_sdk
from ce_rise_hex_core_sdk.models.ready_response import ReadyResponse
from ce_rise_hex_core_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = ce_rise_hex_core_sdk.Configuration(
    host = "http://localhost:8080"
)


# Enter a context with an instance of the API client
with ce_rise_hex_core_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ce_rise_hex_core_sdk.AdminApi(api_client)

    try:
        # Readiness probe
        api_response = api_instance.ready()
        print("The response of AdminApi->ready:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminApi->ready: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

ReadyResponse

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Service is ready to accept traffic.-
503Service is not ready.-

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

status

Dict[str, object] status()

Runtime status

Returns runtime status payload useful for operations dashboards.

Example

  • Bearer (JWT) Authentication (bearerAuth):
import ce_rise_hex_core_sdk
from ce_rise_hex_core_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = ce_rise_hex_core_sdk.Configuration(
    host = "http://localhost:8080"
)

# The client must configure the authentication and authorization parameters
# in accordance with the API server security policy.
# Examples for each auth method are provided below, use the example that
# satisfies your auth use case.

# Configure Bearer authorization (JWT): bearerAuth
configuration = ce_rise_hex_core_sdk.Configuration(
    access_token = os.environ["BEARER_TOKEN"]
)

# Enter a context with an instance of the API client
with ce_rise_hex_core_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ce_rise_hex_core_sdk.AdminApi(api_client)

    try:
        # Runtime status
        api_response = api_instance.status()
        print("The response of AdminApi->status:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminApi->status: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

Dict[str, object]

Authorization

bearerAuth

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Status payload returned.-

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

version

VersionResponse version()

Service and OpenAPI version

Returns running service version and bundled OpenAPI specification version.

Example

import ce_rise_hex_core_sdk
from ce_rise_hex_core_sdk.models.version_response import VersionResponse
from ce_rise_hex_core_sdk.rest import ApiException
from pprint import pprint

# Defining the host is optional and defaults to http://localhost:8080
# See configuration.py for a list of all supported configuration parameters.
configuration = ce_rise_hex_core_sdk.Configuration(
    host = "http://localhost:8080"
)


# Enter a context with an instance of the API client
with ce_rise_hex_core_sdk.ApiClient(configuration) as api_client:
    # Create an instance of the API class
    api_instance = ce_rise_hex_core_sdk.AdminApi(api_client)

    try:
        # Service and OpenAPI version
        api_response = api_instance.version()
        print("The response of AdminApi->version:\n")
        pprint(api_response)
    except Exception as e:
        print("Exception when calling AdminApi->version: %s\n" % e)

Parameters

This endpoint does not need any parameter.

Return type

VersionResponse

Authorization

No authorization required

HTTP request headers

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

HTTP response details

Status codeDescriptionResponse headers
200Version payload returned.-

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