All URIs are relative to http://localhost
Method | HTTP request | Description |
---|---|---|
example_get | GET / | Example endpoint |
metrics_metrics_get | GET /metrics | Metrics |
ExampleResponse example_get()
Example endpoint
Example endpoint that returns test data
import template_web_client
from template_web_client.models.example_response import ExampleResponse
from template_web_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 = template_web_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with template_web_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = template_web_client.DefaultApi(api_client)
try:
# Example endpoint
api_response = api_instance.example_get()
print("The response of DefaultApi->example_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->example_get: %s\n" % e)
This endpoint does not need any parameter.
No authorization required
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]
object metrics_metrics_get()
Metrics
Endpoint that serves Prometheus metrics.
import template_web_client
from template_web_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 = template_web_client.Configuration(
host = "http://localhost"
)
# Enter a context with an instance of the API client
with template_web_client.ApiClient(configuration) as api_client:
# Create an instance of the API class
api_instance = template_web_client.DefaultApi(api_client)
try:
# Metrics
api_response = api_instance.metrics_metrics_get()
print("The response of DefaultApi->metrics_metrics_get:\n")
pprint(api_response)
except Exception as e:
print("Exception when calling DefaultApi->metrics_metrics_get: %s\n" % e)
This endpoint does not need any parameter.
object
No authorization required
Status code | Description | Response headers |
---|---|---|
200 | Successful Response | - |
[Back to top] [Back to API list] [Back to Model list] [Back to README]