Class MetricsBetaApi


  • public class MetricsBetaApi
    extends java.lang.Object
    • Constructor Detail

      • MetricsBetaApi

        public MetricsBetaApi()
      • MetricsBetaApi

        public MetricsBetaApi​(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)
      • createMetricGroupCall

        public okhttp3.Call createMetricGroupCall​(java.lang.String projectKey,
                                                  MetricGroupPost metricGroupPost,
                                                  ApiCallback _callback)
                                           throws ApiException
        Build call for createMetricGroup
        Parameters:
        projectKey - The project key (required)
        metricGroupPost - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • createMetricGroup

        public MetricGroupRep createMetricGroup​(java.lang.String projectKey,
                                                MetricGroupPost metricGroupPost)
                                         throws ApiException
        Create metric group Create a new metric group in the specified project
        Parameters:
        projectKey - The project key (required)
        metricGroupPost - (required)
        Returns:
        MetricGroupRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createMetricGroupWithHttpInfo

        public ApiResponse<MetricGroupRep> createMetricGroupWithHttpInfo​(java.lang.String projectKey,
                                                                         MetricGroupPost metricGroupPost)
                                                                  throws ApiException
        Create metric group Create a new metric group in the specified project
        Parameters:
        projectKey - The project key (required)
        metricGroupPost - (required)
        Returns:
        ApiResponse<MetricGroupRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • createMetricGroupAsync

        public okhttp3.Call createMetricGroupAsync​(java.lang.String projectKey,
                                                   MetricGroupPost metricGroupPost,
                                                   ApiCallback<MetricGroupRep> _callback)
                                            throws ApiException
        Create metric group (asynchronously) Create a new metric group in the specified project
        Parameters:
        projectKey - The project key (required)
        metricGroupPost - (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
      • deleteMetricGroupCall

        public okhttp3.Call deleteMetricGroupCall​(java.lang.String projectKey,
                                                  java.lang.String metricGroupKey,
                                                  ApiCallback _callback)
                                           throws ApiException
        Build call for deleteMetricGroup
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • deleteMetricGroup

        public void deleteMetricGroup​(java.lang.String projectKey,
                                      java.lang.String metricGroupKey)
                               throws ApiException
        Delete metric group Delete a metric group by key.
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteMetricGroupWithHttpInfo

        public ApiResponse<java.lang.Void> deleteMetricGroupWithHttpInfo​(java.lang.String projectKey,
                                                                         java.lang.String metricGroupKey)
                                                                  throws ApiException
        Delete metric group Delete a metric group by key.
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        Returns:
        ApiResponse<Void>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • deleteMetricGroupAsync

        public okhttp3.Call deleteMetricGroupAsync​(java.lang.String projectKey,
                                                   java.lang.String metricGroupKey,
                                                   ApiCallback<java.lang.Void> _callback)
                                            throws ApiException
        Delete metric group (asynchronously) Delete a metric group by key.
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group 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
      • getMetricGroupCall

        public okhttp3.Call getMetricGroupCall​(java.lang.String projectKey,
                                               java.lang.String metricGroupKey,
                                               java.lang.String expand,
                                               ApiCallback _callback)
                                        throws ApiException
        Build call for getMetricGroup
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        expand - A comma-separated list of properties that can reveal additional information in the response. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getMetricGroup

        public MetricGroupRep getMetricGroup​(java.lang.String projectKey,
                                             java.lang.String metricGroupKey,
                                             java.lang.String expand)
                                      throws ApiException
        Get metric group Get information for a single metric group from the specific project. ### Expanding the metric group response LaunchDarkly supports two fields for expanding the \"Get metric group\" 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 either or both of the following fields: - `experiments` includes all experiments from the specific project that use the metric group - `experimentCount` includes the number of experiments from the specific project that use the metric group For example, `expand=experiments` includes the `experiments` field in the response.
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        expand - A comma-separated list of properties that can reveal additional information in the response. (optional)
        Returns:
        MetricGroupRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getMetricGroupWithHttpInfo

        public ApiResponse<MetricGroupRep> getMetricGroupWithHttpInfo​(java.lang.String projectKey,
                                                                      java.lang.String metricGroupKey,
                                                                      java.lang.String expand)
                                                               throws ApiException
        Get metric group Get information for a single metric group from the specific project. ### Expanding the metric group response LaunchDarkly supports two fields for expanding the \"Get metric group\" 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 either or both of the following fields: - `experiments` includes all experiments from the specific project that use the metric group - `experimentCount` includes the number of experiments from the specific project that use the metric group For example, `expand=experiments` includes the `experiments` field in the response.
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        expand - A comma-separated list of properties that can reveal additional information in the response. (optional)
        Returns:
        ApiResponse<MetricGroupRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getMetricGroupAsync

        public okhttp3.Call getMetricGroupAsync​(java.lang.String projectKey,
                                                java.lang.String metricGroupKey,
                                                java.lang.String expand,
                                                ApiCallback<MetricGroupRep> _callback)
                                         throws ApiException
        Get metric group (asynchronously) Get information for a single metric group from the specific project. ### Expanding the metric group response LaunchDarkly supports two fields for expanding the \"Get metric group\" 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 either or both of the following fields: - `experiments` includes all experiments from the specific project that use the metric group - `experimentCount` includes the number of experiments from the specific project that use the metric group For example, `expand=experiments` includes the `experiments` field in the response.
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        expand - A comma-separated list of properties that can reveal additional information in the response. (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
      • getMetricGroupsCall

        public okhttp3.Call getMetricGroupsCall​(java.lang.String projectKey,
                                                java.lang.String expand,
                                                ApiCallback _callback)
                                         throws ApiException
        Build call for getMetricGroups
        Parameters:
        projectKey - The project key (required)
        expand - A comma-separated list of properties that can reveal additional information in the response. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getMetricGroups

        public MetricGroupCollectionRep getMetricGroups​(java.lang.String projectKey,
                                                        java.lang.String expand)
                                                 throws ApiException
        List metric groups Get a list of all metric groups for the specified project. ### Expanding the metric groups response LaunchDarkly supports one field for expanding the \"Get metric groups\" 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 the following field: - `experiments` includes all experiments from the specific project that use the metric group For example, `expand=experiments` includes the `experiments` field 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)
        Returns:
        MetricGroupCollectionRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getMetricGroupsWithHttpInfo

        public ApiResponse<MetricGroupCollectionRep> getMetricGroupsWithHttpInfo​(java.lang.String projectKey,
                                                                                 java.lang.String expand)
                                                                          throws ApiException
        List metric groups Get a list of all metric groups for the specified project. ### Expanding the metric groups response LaunchDarkly supports one field for expanding the \"Get metric groups\" 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 the following field: - `experiments` includes all experiments from the specific project that use the metric group For example, `expand=experiments` includes the `experiments` field 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)
        Returns:
        ApiResponse<MetricGroupCollectionRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getMetricGroupsAsync

        public okhttp3.Call getMetricGroupsAsync​(java.lang.String projectKey,
                                                 java.lang.String expand,
                                                 ApiCallback<MetricGroupCollectionRep> _callback)
                                          throws ApiException
        List metric groups (asynchronously) Get a list of all metric groups for the specified project. ### Expanding the metric groups response LaunchDarkly supports one field for expanding the \"Get metric groups\" 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 the following field: - `experiments` includes all experiments from the specific project that use the metric group For example, `expand=experiments` includes the `experiments` field 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)
        _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
      • patchMetricGroupCall

        public okhttp3.Call patchMetricGroupCall​(java.lang.String projectKey,
                                                 java.lang.String metricGroupKey,
                                                 java.util.List<PatchOperation> patchOperation,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for patchMetricGroup
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        patchOperation - (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • patchMetricGroup

        public MetricGroupRep patchMetricGroup​(java.lang.String projectKey,
                                               java.lang.String metricGroupKey,
                                               java.util.List<PatchOperation> patchOperation)
                                        throws ApiException
        Patch metric group Patch a metric group by key. Updating a metric group uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes.
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        patchOperation - (required)
        Returns:
        MetricGroupRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchMetricGroupWithHttpInfo

        public ApiResponse<MetricGroupRep> patchMetricGroupWithHttpInfo​(java.lang.String projectKey,
                                                                        java.lang.String metricGroupKey,
                                                                        java.util.List<PatchOperation> patchOperation)
                                                                 throws ApiException
        Patch metric group Patch a metric group by key. Updating a metric group uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes.
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group key (required)
        patchOperation - (required)
        Returns:
        ApiResponse<MetricGroupRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • patchMetricGroupAsync

        public okhttp3.Call patchMetricGroupAsync​(java.lang.String projectKey,
                                                  java.lang.String metricGroupKey,
                                                  java.util.List<PatchOperation> patchOperation,
                                                  ApiCallback<MetricGroupRep> _callback)
                                           throws ApiException
        Patch metric group (asynchronously) Patch a metric group by key. Updating a metric group uses a [JSON patch](https://datatracker.ietf.org/doc/html/rfc6902) representation of the desired changes.
        Parameters:
        projectKey - The project key (required)
        metricGroupKey - The metric group 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