Package io.harness.cf.api
Class MetricsApi
- java.lang.Object
-
- io.harness.cf.api.MetricsApi
-
public class MetricsApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description MetricsApi()MetricsApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()voidpostMetrics(java.lang.String environment, java.lang.String cluster, Metrics metrics)Send metrics to the Analytics server.okhttp3.CallpostMetricsAsync(java.lang.String environment, java.lang.String cluster, Metrics metrics, ApiCallback<java.lang.Void> _callback)Send metrics to the Analytics server.okhttp3.CallpostMetricsCall(java.lang.String environment, java.lang.String cluster, Metrics metrics, ApiCallback _callback)Build call for postMetricsApiResponse<java.lang.Void>postMetricsWithHttpInfo(java.lang.String environment, java.lang.String cluster, Metrics metrics)Send metrics to the Analytics server.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
Constructor Detail
-
MetricsApi
public MetricsApi()
-
MetricsApi
public MetricsApi(ApiClient apiClient)
-
-
Method Detail
-
getApiClient
public ApiClient getApiClient()
-
setApiClient
public void setApiClient(ApiClient apiClient)
-
getHostIndex
public int getHostIndex()
-
setHostIndex
public void setHostIndex(int hostIndex)
-
getCustomBaseUrl
public java.lang.String getCustomBaseUrl()
-
setCustomBaseUrl
public void setCustomBaseUrl(java.lang.String customBaseUrl)
-
postMetricsCall
public okhttp3.Call postMetricsCall(java.lang.String environment, java.lang.String cluster, Metrics metrics, ApiCallback _callback) throws ApiExceptionBuild call for postMetrics- Parameters:
environment- environment parameter in query. (required)cluster- Unique identifier for the cluster for the account (optional)metrics- (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
postMetrics
public void postMetrics(java.lang.String environment, java.lang.String cluster, Metrics metrics) throws ApiExceptionSend metrics to the Analytics server. Send metrics to Analytics server- Parameters:
environment- environment parameter in query. (required)cluster- Unique identifier for the cluster for the account (optional)metrics- (optional)- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postMetricsWithHttpInfo
public ApiResponse<java.lang.Void> postMetricsWithHttpInfo(java.lang.String environment, java.lang.String cluster, Metrics metrics) throws ApiException
Send metrics to the Analytics server. Send metrics to Analytics server- Parameters:
environment- environment parameter in query. (required)cluster- Unique identifier for the cluster for the account (optional)metrics- (optional)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postMetricsAsync
public okhttp3.Call postMetricsAsync(java.lang.String environment, java.lang.String cluster, Metrics metrics, ApiCallback<java.lang.Void> _callback) throws ApiExceptionSend metrics to the Analytics server. (asynchronously) Send metrics to Analytics server- Parameters:
environment- environment parameter in query. (required)cluster- Unique identifier for the cluster for the account (optional)metrics- (optional)_callback- The callback to be executed when the API call finishes- Returns:
- The request call
- Throws:
ApiException- If fail to process the API call, e.g. serializing the request body object
-
-