Class DefaultApi
java.lang.Object
org.apache.camel.component.torchserve.client.metrics.invoker.BaseApi
org.apache.camel.component.torchserve.client.metrics.api.DefaultApi
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
date="2025-07-04T14:36:41.803051715Z[Etc/UTC]",
comments="Generator version: 7.14.0")
public class DefaultApi
extends BaseApi
-
Field Summary
-
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescription<T> TinvokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) Directly invoke the API for the given URL.Get TorchServe application metrics in prometheus format.Get TorchServe application metrics in prometheus format.Methods inherited from class org.apache.camel.component.torchserve.client.metrics.invoker.BaseApi
getApiClient, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, invokeAPI, setApiClient
-
Constructor Details
-
DefaultApi
public DefaultApi() -
DefaultApi
-
-
Method Details
-
metrics
Get TorchServe application metrics in prometheus format.- Parameters:
name- Names of metrics to filter (optional)- Returns:
- String
- Throws:
ApiException- if fails to make API call
-
metrics
public String metrics(@Nullable String name, Map<String, String> additionalHeaders) throws ApiExceptionGet TorchServe application metrics in prometheus format.- Parameters:
name- Names of metrics to filter (optional)additionalHeaders- additionalHeaders for this call- Returns:
- String
- Throws:
ApiException- if fails to make API call
-
invokeAPI
public <T> T invokeAPI(String url, String method, Object request, com.fasterxml.jackson.core.type.TypeReference<T> returnType, Map<String, String> additionalHeaders) throws ApiExceptionDescription copied from class:BaseApiDirectly invoke the API for the given URL. Useful if the API returns direct links/URLs for subsequent requests.- Specified by:
invokeAPIin classBaseApi- Parameters:
url- The URL for the request, either full URL or only the path.method- The HTTP method for the request.request- The request object.returnType- The return type.additionalHeaders- Additional headers for the request.- Returns:
- The API response in the specified type.
- Throws:
ApiException- if fails to make API call.
-