Class MetricsApi


  • public class MetricsApi
    extends java.lang.Object
    • 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 ApiException
        Build 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 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)
        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 ApiException
        Send 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