Package com.launchdarkly.api.api
Class MetricsApi
- java.lang.Object
-
- com.launchdarkly.api.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 void
deleteMetric(java.lang.String projectKey, java.lang.String metricKey)
Delete metric Delete a metric by key.okhttp3.Call
deleteMetricAsync(java.lang.String projectKey, java.lang.String metricKey, ApiCallback<java.lang.Void> _callback)
Delete metric (asynchronously) Delete a metric by key.okhttp3.Call
deleteMetricCall(java.lang.String projectKey, java.lang.String metricKey, ApiCallback _callback)
Build call for deleteMetricApiResponse<java.lang.Void>
deleteMetricWithHttpInfo(java.lang.String projectKey, java.lang.String metricKey)
Delete metric Delete a metric by key.ApiClient
getApiClient()
java.lang.String
getCustomBaseUrl()
int
getHostIndex()
MetricRep
getMetric(java.lang.String projectKey, java.lang.String metricKey)
Get metric Get information for a single metric from the specific project.okhttp3.Call
getMetricAsync(java.lang.String projectKey, java.lang.String metricKey, ApiCallback<MetricRep> _callback)
Get metric (asynchronously) Get information for a single metric from the specific project.okhttp3.Call
getMetricCall(java.lang.String projectKey, java.lang.String metricKey, ApiCallback _callback)
Build call for getMetricMetricCollectionRep
getMetrics(java.lang.String projectKey)
List metrics Get a list of all metrics for the specified project.okhttp3.Call
getMetricsAsync(java.lang.String projectKey, ApiCallback<MetricCollectionRep> _callback)
List metrics (asynchronously) Get a list of all metrics for the specified project.okhttp3.Call
getMetricsCall(java.lang.String projectKey, ApiCallback _callback)
Build call for getMetricsApiResponse<MetricCollectionRep>
getMetricsWithHttpInfo(java.lang.String projectKey)
List metrics Get a list of all metrics for the specified project.ApiResponse<MetricRep>
getMetricWithHttpInfo(java.lang.String projectKey, java.lang.String metricKey)
Get metric Get information for a single metric from the specific project.MetricRep
patchMetric(java.lang.String projectKey, java.lang.String metricKey, java.util.List<PatchOperation> patchOperation)
Update metric Patch a metric by key.okhttp3.Call
patchMetricAsync(java.lang.String projectKey, java.lang.String metricKey, java.util.List<PatchOperation> patchOperation, ApiCallback<MetricRep> _callback)
Update metric (asynchronously) Patch a metric by key.okhttp3.Call
patchMetricCall(java.lang.String projectKey, java.lang.String metricKey, java.util.List<PatchOperation> patchOperation, ApiCallback _callback)
Build call for patchMetricApiResponse<MetricRep>
patchMetricWithHttpInfo(java.lang.String projectKey, java.lang.String metricKey, java.util.List<PatchOperation> patchOperation)
Update metric Patch a metric by key.MetricRep
postMetric(java.lang.String projectKey, MetricPost metricPost)
Create metric Create a new metric in the specified project.okhttp3.Call
postMetricAsync(java.lang.String projectKey, MetricPost metricPost, ApiCallback<MetricRep> _callback)
Create metric (asynchronously) Create a new metric in the specified project.okhttp3.Call
postMetricCall(java.lang.String projectKey, MetricPost metricPost, ApiCallback _callback)
Build call for postMetricApiResponse<MetricRep>
postMetricWithHttpInfo(java.lang.String projectKey, MetricPost metricPost)
Create metric Create a new metric in the specified project.void
setApiClient(ApiClient apiClient)
void
setCustomBaseUrl(java.lang.String customBaseUrl)
void
setHostIndex(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)
-
deleteMetricCall
public okhttp3.Call deleteMetricCall(java.lang.String projectKey, java.lang.String metricKey, ApiCallback _callback) throws ApiException
Build call for deleteMetric- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
deleteMetric
public void deleteMetric(java.lang.String projectKey, java.lang.String metricKey) throws ApiException
Delete metric Delete a metric by key.- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteMetricWithHttpInfo
public ApiResponse<java.lang.Void> deleteMetricWithHttpInfo(java.lang.String projectKey, java.lang.String metricKey) throws ApiException
Delete metric Delete a metric by key.- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
deleteMetricAsync
public okhttp3.Call deleteMetricAsync(java.lang.String projectKey, java.lang.String metricKey, ApiCallback<java.lang.Void> _callback) throws ApiException
Delete metric (asynchronously) Delete a metric by key.- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)_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
-
getMetricCall
public okhttp3.Call getMetricCall(java.lang.String projectKey, java.lang.String metricKey, ApiCallback _callback) throws ApiException
Build call for getMetric- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getMetric
public MetricRep getMetric(java.lang.String projectKey, java.lang.String metricKey) throws ApiException
Get metric Get information for a single metric from the specific project.- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)- Returns:
- MetricRep
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getMetricWithHttpInfo
public ApiResponse<MetricRep> getMetricWithHttpInfo(java.lang.String projectKey, java.lang.String metricKey) throws ApiException
Get metric Get information for a single metric from the specific project.- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)- Returns:
- ApiResponse<MetricRep>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getMetricAsync
public okhttp3.Call getMetricAsync(java.lang.String projectKey, java.lang.String metricKey, ApiCallback<MetricRep> _callback) throws ApiException
Get metric (asynchronously) Get information for a single metric from the specific project.- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)_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
-
getMetricsCall
public okhttp3.Call getMetricsCall(java.lang.String projectKey, ApiCallback _callback) throws ApiException
Build call for getMetrics- Parameters:
projectKey
- The project key (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
getMetrics
public MetricCollectionRep getMetrics(java.lang.String projectKey) throws ApiException
List metrics Get a list of all metrics for the specified project.- Parameters:
projectKey
- The project key (required)- Returns:
- MetricCollectionRep
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getMetricsWithHttpInfo
public ApiResponse<MetricCollectionRep> getMetricsWithHttpInfo(java.lang.String projectKey) throws ApiException
List metrics Get a list of all metrics for the specified project.- Parameters:
projectKey
- The project key (required)- Returns:
- ApiResponse<MetricCollectionRep>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
getMetricsAsync
public okhttp3.Call getMetricsAsync(java.lang.String projectKey, ApiCallback<MetricCollectionRep> _callback) throws ApiException
List metrics (asynchronously) Get a list of all metrics for the specified project.- Parameters:
projectKey
- The project key (required)_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
-
patchMetricCall
public okhttp3.Call patchMetricCall(java.lang.String projectKey, java.lang.String metricKey, java.util.List<PatchOperation> patchOperation, ApiCallback _callback) throws ApiException
Build call for patchMetric- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)patchOperation
- (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
patchMetric
public MetricRep patchMetric(java.lang.String projectKey, java.lang.String metricKey, java.util.List<PatchOperation> patchOperation) throws ApiException
Update metric Patch a metric by key.- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)patchOperation
- (required)- Returns:
- MetricRep
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchMetricWithHttpInfo
public ApiResponse<MetricRep> patchMetricWithHttpInfo(java.lang.String projectKey, java.lang.String metricKey, java.util.List<PatchOperation> patchOperation) throws ApiException
Update metric Patch a metric by key.- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)patchOperation
- (required)- Returns:
- ApiResponse<MetricRep>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
patchMetricAsync
public okhttp3.Call patchMetricAsync(java.lang.String projectKey, java.lang.String metricKey, java.util.List<PatchOperation> patchOperation, ApiCallback<MetricRep> _callback) throws ApiException
Update metric (asynchronously) Patch a metric by key.- Parameters:
projectKey
- The project key (required)metricKey
- The metric key (required)patchOperation
- (required)_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
-
postMetricCall
public okhttp3.Call postMetricCall(java.lang.String projectKey, MetricPost metricPost, ApiCallback _callback) throws ApiException
Build call for postMetric- Parameters:
projectKey
- The project key (required)metricPost
- (required)_callback
- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException
- If fail to serialize the request body object
-
postMetric
public MetricRep postMetric(java.lang.String projectKey, MetricPost metricPost) throws ApiException
Create metric Create a new metric in the specified project. The expected `POST` body differs depending on the specified `kind` property.- Parameters:
projectKey
- The project key (required)metricPost
- (required)- Returns:
- MetricRep
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postMetricWithHttpInfo
public ApiResponse<MetricRep> postMetricWithHttpInfo(java.lang.String projectKey, MetricPost metricPost) throws ApiException
Create metric Create a new metric in the specified project. The expected `POST` body differs depending on the specified `kind` property.- Parameters:
projectKey
- The project key (required)metricPost
- (required)- Returns:
- ApiResponse<MetricRep>
- Throws:
ApiException
- If fail to call the API, e.g. server error or cannot deserialize the response body
-
postMetricAsync
public okhttp3.Call postMetricAsync(java.lang.String projectKey, MetricPost metricPost, ApiCallback<MetricRep> _callback) throws ApiException
Create metric (asynchronously) Create a new metric in the specified project. The expected `POST` body differs depending on the specified `kind` property.- Parameters:
projectKey
- The project key (required)metricPost
- (required)_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
-
-