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 voiddeleteMetric(java.lang.String projectKey, java.lang.String metricKey)Delete metric Delete a metric by key.okhttp3.CalldeleteMetricAsync(java.lang.String projectKey, java.lang.String metricKey, ApiCallback<java.lang.Void> _callback)Delete metric (asynchronously) Delete a metric by key.okhttp3.CalldeleteMetricCall(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.ApiClientgetApiClient()java.lang.StringgetCustomBaseUrl()intgetHostIndex()MetricRepgetMetric(java.lang.String projectKey, java.lang.String metricKey, java.lang.String expand, java.lang.String versionId)Get metric Get information for a single metric from the specific project.okhttp3.CallgetMetricAsync(java.lang.String projectKey, java.lang.String metricKey, java.lang.String expand, java.lang.String versionId, ApiCallback<MetricRep> _callback)Get metric (asynchronously) Get information for a single metric from the specific project.okhttp3.CallgetMetricCall(java.lang.String projectKey, java.lang.String metricKey, java.lang.String expand, java.lang.String versionId, ApiCallback _callback)Build call for getMetricMetricCollectionRepgetMetrics(java.lang.String projectKey, java.lang.String expand, java.lang.Long limit, java.lang.Long offset, java.lang.String sort, java.lang.String filter)List metrics Get a list of all metrics for the specified project.okhttp3.CallgetMetricsAsync(java.lang.String projectKey, java.lang.String expand, java.lang.Long limit, java.lang.Long offset, java.lang.String sort, java.lang.String filter, ApiCallback<MetricCollectionRep> _callback)List metrics (asynchronously) Get a list of all metrics for the specified project.okhttp3.CallgetMetricsCall(java.lang.String projectKey, java.lang.String expand, java.lang.Long limit, java.lang.Long offset, java.lang.String sort, java.lang.String filter, ApiCallback _callback)Build call for getMetricsApiResponse<MetricCollectionRep>getMetricsWithHttpInfo(java.lang.String projectKey, java.lang.String expand, java.lang.Long limit, java.lang.Long offset, java.lang.String sort, java.lang.String filter)List metrics Get a list of all metrics for the specified project.ApiResponse<MetricRep>getMetricWithHttpInfo(java.lang.String projectKey, java.lang.String metricKey, java.lang.String expand, java.lang.String versionId)Get metric Get information for a single metric from the specific project.MetricReppatchMetric(java.lang.String projectKey, java.lang.String metricKey, java.util.List<PatchOperation> patchOperation)Update metric Patch a metric by key.okhttp3.CallpatchMetricAsync(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.CallpatchMetricCall(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.MetricReppostMetric(java.lang.String projectKey, MetricPost metricPost)Create metric Create a new metric in the specified project.okhttp3.CallpostMetricAsync(java.lang.String projectKey, MetricPost metricPost, ApiCallback<MetricRep> _callback)Create metric (asynchronously) Create a new metric in the specified project.okhttp3.CallpostMetricCall(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.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)
-
deleteMetricCall
public okhttp3.Call deleteMetricCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, ApiCallback _callback) throws ApiExceptionBuild 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(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey) throws ApiExceptionDelete 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(@Nonnull java.lang.String projectKey, @Nonnull 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(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, ApiCallback<java.lang.Void> _callback) throws ApiExceptionDelete 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(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, @Nullable java.lang.String expand, @Nullable java.lang.String versionId, ApiCallback _callback) throws ApiExceptionBuild call for getMetric- Parameters:
projectKey- The project key (required)metricKey- The metric key (required)expand- A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)versionId- The specific version ID of the metric (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getMetric
public MetricRep getMetric(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, @Nullable java.lang.String expand, @Nullable java.lang.String versionId) throws ApiException
Get metric Get information for a single metric from the specific project. ### Expanding the metric response LaunchDarkly supports four fields for expanding the \"Get metric\" response. By default, these fields are **not** included in the response. To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields: - `experiments` includes all experiments from the specific project that use the metric - `experimentCount` includes the number of experiments from the specific project that use the metric - `metricGroups` includes all metric groups from the specific project that use the metric - `metricGroupCount` includes the number of metric groups from the specific project that use the metric For example, `expand=experiments` includes the `experiments` field in the response.- Parameters:
projectKey- The project key (required)metricKey- The metric key (required)expand- A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)versionId- The specific version ID of the metric (optional)- 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(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, @Nullable java.lang.String expand, @Nullable java.lang.String versionId) throws ApiException
Get metric Get information for a single metric from the specific project. ### Expanding the metric response LaunchDarkly supports four fields for expanding the \"Get metric\" response. By default, these fields are **not** included in the response. To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields: - `experiments` includes all experiments from the specific project that use the metric - `experimentCount` includes the number of experiments from the specific project that use the metric - `metricGroups` includes all metric groups from the specific project that use the metric - `metricGroupCount` includes the number of metric groups from the specific project that use the metric For example, `expand=experiments` includes the `experiments` field in the response.- Parameters:
projectKey- The project key (required)metricKey- The metric key (required)expand- A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)versionId- The specific version ID of the metric (optional)- 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(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, @Nullable java.lang.String expand, @Nullable java.lang.String versionId, ApiCallback<MetricRep> _callback) throws ApiExceptionGet metric (asynchronously) Get information for a single metric from the specific project. ### Expanding the metric response LaunchDarkly supports four fields for expanding the \"Get metric\" response. By default, these fields are **not** included in the response. To expand the response, append the `expand` query parameter and add a comma-separated list with any of the following fields: - `experiments` includes all experiments from the specific project that use the metric - `experimentCount` includes the number of experiments from the specific project that use the metric - `metricGroups` includes all metric groups from the specific project that use the metric - `metricGroupCount` includes the number of metric groups from the specific project that use the metric For example, `expand=experiments` includes the `experiments` field in the response.- Parameters:
projectKey- The project key (required)metricKey- The metric key (required)expand- A comma-separated list of properties that can reveal additional information in the response. Supported fields are `experiments`, `experimentCount`, `metricGroups`, `metricGroupCount`, `eventSources`, `guardedRollouts`, `guardedRolloutCount`, `lastUsedInExperiment`, and `lastUsedInGuardedRollout`. (optional)versionId- The specific version ID of the metric (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
-
getMetricsCall
public okhttp3.Call getMetricsCall(@Nonnull java.lang.String projectKey, @Nullable java.lang.String expand, @Nullable java.lang.Long limit, @Nullable java.lang.Long offset, @Nullable java.lang.String sort, @Nullable java.lang.String filter, ApiCallback _callback) throws ApiExceptionBuild call for getMetrics- Parameters:
projectKey- The project key (required)expand- A comma-separated list of properties that can reveal additional information in the response. (optional)limit- The number of metrics to return in the response. Defaults to 20. Maximum limit is 50. (optional)offset- Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items. (optional)sort- A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`. (optional)filter- A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, `dataSourceKeys`, and `metricUsedIn`. To learn more about the filter syntax, read the 'Filtering metrics' section above. (optional)_callback- Callback for upload/download progress- Returns:
- Call to execute
- Throws:
ApiException- If fail to serialize the request body object
-
getMetrics
public MetricCollectionRep getMetrics(@Nonnull java.lang.String projectKey, @Nullable java.lang.String expand, @Nullable java.lang.Long limit, @Nullable java.lang.Long offset, @Nullable java.lang.String sort, @Nullable java.lang.String filter) throws ApiException
List metrics Get a list of all metrics for the specified project. ### Filtering metrics The `filter` parameter supports the following operators: `contains`, `equals`, `anyOf`. #### Supported fields and operators You can only filter certain fields in metrics when using the `filter` parameter. Additionally, you can only filter some fields with certain operators. When you search for metrics, the `filter` parameter supports the following fields and operators: |<div style=\"width:120px\">Field</div> |Description |Supported operators | |---|---|---| | `eventKind` | The metric event kind. One of `custom`, `pageview`, `click`. | `equals` | | `hasConnections` | Whether the metric has connections to experiments or guarded rollouts. One of `true`, `false`. | `equals` | | `isNumeric` | Whether the metric is numeric. One of `true`, `false`. | `equals` | | `maintainerIds` | A comma-separated list of metric maintainer IDs. | `anyOf` | | `maintainerTeamKey` | The metric maintainer team key. | `equals` | | `metricUsedIn` | Filter by where the metric is used. One of `experiments`, `guarded_rollouts`, `any`, `none`. | `equals` | | `query` | A \"fuzzy\" search across metric key and name. Supply a string or list of strings to the operator. | `equals` | | `tags` | The metric tags. | `contains` | | `unitAggregationType` | The metric's unit aggregation type. One of `sum`, `average`. | `equals` | For example, the filter `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` matches metrics that have all three tags. The documented values for `filter` query parameters are prior to URL encoding. For example, the `[` in `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` must be encoded to `%5B`. ### Expanding the metric list response LaunchDarkly supports expanding the \"List metrics\" response. By default, the expandable field is **not** included in the response. To expand the response, append the `expand` query parameter and add the following supported field: - `experimentCount` includes the number of experiments from the specific project that use the metric For example, `expand=experimentCount` includes the `experimentCount` field for each metric in the response.- Parameters:
projectKey- The project key (required)expand- A comma-separated list of properties that can reveal additional information in the response. (optional)limit- The number of metrics to return in the response. Defaults to 20. Maximum limit is 50. (optional)offset- Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items. (optional)sort- A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`. (optional)filter- A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, `dataSourceKeys`, and `metricUsedIn`. To learn more about the filter syntax, read the 'Filtering metrics' section above. (optional)- 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(@Nonnull java.lang.String projectKey, @Nullable java.lang.String expand, @Nullable java.lang.Long limit, @Nullable java.lang.Long offset, @Nullable java.lang.String sort, @Nullable java.lang.String filter) throws ApiException
List metrics Get a list of all metrics for the specified project. ### Filtering metrics The `filter` parameter supports the following operators: `contains`, `equals`, `anyOf`. #### Supported fields and operators You can only filter certain fields in metrics when using the `filter` parameter. Additionally, you can only filter some fields with certain operators. When you search for metrics, the `filter` parameter supports the following fields and operators: |<div style=\"width:120px\">Field</div> |Description |Supported operators | |---|---|---| | `eventKind` | The metric event kind. One of `custom`, `pageview`, `click`. | `equals` | | `hasConnections` | Whether the metric has connections to experiments or guarded rollouts. One of `true`, `false`. | `equals` | | `isNumeric` | Whether the metric is numeric. One of `true`, `false`. | `equals` | | `maintainerIds` | A comma-separated list of metric maintainer IDs. | `anyOf` | | `maintainerTeamKey` | The metric maintainer team key. | `equals` | | `metricUsedIn` | Filter by where the metric is used. One of `experiments`, `guarded_rollouts`, `any`, `none`. | `equals` | | `query` | A \"fuzzy\" search across metric key and name. Supply a string or list of strings to the operator. | `equals` | | `tags` | The metric tags. | `contains` | | `unitAggregationType` | The metric's unit aggregation type. One of `sum`, `average`. | `equals` | For example, the filter `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` matches metrics that have all three tags. The documented values for `filter` query parameters are prior to URL encoding. For example, the `[` in `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` must be encoded to `%5B`. ### Expanding the metric list response LaunchDarkly supports expanding the \"List metrics\" response. By default, the expandable field is **not** included in the response. To expand the response, append the `expand` query parameter and add the following supported field: - `experimentCount` includes the number of experiments from the specific project that use the metric For example, `expand=experimentCount` includes the `experimentCount` field for each metric in the response.- Parameters:
projectKey- The project key (required)expand- A comma-separated list of properties that can reveal additional information in the response. (optional)limit- The number of metrics to return in the response. Defaults to 20. Maximum limit is 50. (optional)offset- Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items. (optional)sort- A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`. (optional)filter- A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, `dataSourceKeys`, and `metricUsedIn`. To learn more about the filter syntax, read the 'Filtering metrics' section above. (optional)- 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(@Nonnull java.lang.String projectKey, @Nullable java.lang.String expand, @Nullable java.lang.Long limit, @Nullable java.lang.Long offset, @Nullable java.lang.String sort, @Nullable java.lang.String filter, ApiCallback<MetricCollectionRep> _callback) throws ApiExceptionList metrics (asynchronously) Get a list of all metrics for the specified project. ### Filtering metrics The `filter` parameter supports the following operators: `contains`, `equals`, `anyOf`. #### Supported fields and operators You can only filter certain fields in metrics when using the `filter` parameter. Additionally, you can only filter some fields with certain operators. When you search for metrics, the `filter` parameter supports the following fields and operators: |<div style=\"width:120px\">Field</div> |Description |Supported operators | |---|---|---| | `eventKind` | The metric event kind. One of `custom`, `pageview`, `click`. | `equals` | | `hasConnections` | Whether the metric has connections to experiments or guarded rollouts. One of `true`, `false`. | `equals` | | `isNumeric` | Whether the metric is numeric. One of `true`, `false`. | `equals` | | `maintainerIds` | A comma-separated list of metric maintainer IDs. | `anyOf` | | `maintainerTeamKey` | The metric maintainer team key. | `equals` | | `metricUsedIn` | Filter by where the metric is used. One of `experiments`, `guarded_rollouts`, `any`, `none`. | `equals` | | `query` | A \"fuzzy\" search across metric key and name. Supply a string or list of strings to the operator. | `equals` | | `tags` | The metric tags. | `contains` | | `unitAggregationType` | The metric's unit aggregation type. One of `sum`, `average`. | `equals` | For example, the filter `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` matches metrics that have all three tags. The documented values for `filter` query parameters are prior to URL encoding. For example, the `[` in `?filter=tags contains [\"tag1\", \"tag2\", \"tag3\"]` must be encoded to `%5B`. ### Expanding the metric list response LaunchDarkly supports expanding the \"List metrics\" response. By default, the expandable field is **not** included in the response. To expand the response, append the `expand` query parameter and add the following supported field: - `experimentCount` includes the number of experiments from the specific project that use the metric For example, `expand=experimentCount` includes the `experimentCount` field for each metric in the response.- Parameters:
projectKey- The project key (required)expand- A comma-separated list of properties that can reveal additional information in the response. (optional)limit- The number of metrics to return in the response. Defaults to 20. Maximum limit is 50. (optional)offset- Where to start in the list. Use this with pagination. For example, an offset of 10 skips the first ten items and returns the next `limit` items. (optional)sort- A field to sort the items by. Prefix field by a dash ( - ) to sort in descending order. This endpoint supports sorting by `createdAt` or `name`. (optional)filter- A comma-separated list of filters. This endpoint accepts filtering by `query`, `tags`, 'eventKind', 'isNumeric', 'unitAggregationType`, `hasConnections`, `maintainerIds`, `maintainerTeamKey`, `view`, `dataSourceKeys`, and `metricUsedIn`. To learn more about the filter syntax, read the 'Filtering metrics' section above. (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
-
patchMetricCall
public okhttp3.Call patchMetricCall(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, @Nonnull java.util.List<PatchOperation> patchOperation, ApiCallback _callback) throws ApiExceptionBuild 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(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, @Nonnull java.util.List<PatchOperation> patchOperation) throws ApiException
Update metric Patch a metric by key. Updating a metric uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).- 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(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, @Nonnull java.util.List<PatchOperation> patchOperation) throws ApiException
Update metric Patch a metric by key. Updating a metric uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).- 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(@Nonnull java.lang.String projectKey, @Nonnull java.lang.String metricKey, @Nonnull java.util.List<PatchOperation> patchOperation, ApiCallback<MetricRep> _callback) throws ApiExceptionUpdate metric (asynchronously) Patch a metric by key. Updating a metric uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes. To learn more, read [Updates](https://launchdarkly.com/docs/api#updates).- 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(@Nonnull java.lang.String projectKey, @Nonnull MetricPost metricPost, ApiCallback _callback) throws ApiExceptionBuild 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(@Nonnull java.lang.String projectKey, @Nonnull 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(@Nonnull java.lang.String projectKey, @Nonnull 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(@Nonnull java.lang.String projectKey, @Nonnull MetricPost metricPost, ApiCallback<MetricRep> _callback) throws ApiExceptionCreate 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
-
-