gs_interactive.AdminServiceServiceManagementApi

All URIs are relative to {INTERACTIVE_ADMIN_ENDPOINT}

Method

HTTP request

Description

GetServiceStatus

GET /v1/service/status

Get the status and metrics of service

RestartService

POST /v1/service/restart

Restart the query service on the current running graph

StartService

POST /v1/service/start

Start the query service on the specified graph

StopService

POST /v1/service/stop

Stop the query service

GetServiceStatus

Result[ServiceStatus] get_service_status()

Get service status

Example

resp = sess.get_service_status()
assert resp.is_ok()
print("Current service status", resp)

Parameters

This endpoint does not need any parameter.

Return type

ServiceStatus

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

successful operation

-

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

RestartService

Result[str] restart_service()

Start current service

Example

resp = sess.restart_service()
assert resp.is_ok()
print("restart service result", resp)

Parameters

This endpoint does not need any parameter.

Return type

str

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

successful operation

-

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

StartService

Result[str] start_service(start_service_request=start_service_request)

Start service on a specified graph

Example

resp = sess.start_service(
    start_service_request=StartServiceRequest(graph_id=graph_id)
)
assert resp.is_ok()
print("restart service result: ", resp.get_value())

Parameters

Name

Type

Description

Notes

start_service_request

StartServiceRequest

Start service on a specified graph

[optional]

Return type

str

Authorization

No authorization required

HTTP request headers

  • Content-Type: application/json

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

successful operation

-

500

Internal Error

-

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

StopService

Result[str] stop_service()

Stop current query service. The admin service will still be serving.

Example

stop_res = sess.stop_service()
assert stop_res.is_ok()
print("stop service result", stop_res)

Parameters

This endpoint does not need any parameter.

Return type

str

Authorization

No authorization required

HTTP request headers

  • Content-Type: Not defined

  • Accept: application/json

HTTP response details

Status code

Description

Response headers

200

successful operation

-

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