Class AuditLogApi


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

      • AuditLogApi

        public AuditLogApi()
      • AuditLogApi

        public AuditLogApi​(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)
      • getAuditLogEntriesCall

        public okhttp3.Call getAuditLogEntriesCall​(@Nullable
                                                   java.lang.Long before,
                                                   @Nullable
                                                   java.lang.Long after,
                                                   @Nullable
                                                   java.lang.String q,
                                                   @Nullable
                                                   java.lang.Long limit,
                                                   @Nullable
                                                   java.lang.String spec,
                                                   ApiCallback _callback)
                                            throws ApiException
        Build call for getAuditLogEntries
        Parameters:
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries this returns occurred before the timestamp. (optional)
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries this returns occurred after the timestamp. (optional)
        q - Text to search for. You can search for the full or partial name of the resource. (optional)
        limit - A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10. (optional)
        spec - A resource specifier that lets you filter audit log listings by resource (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAuditLogEntries

        public AuditLogEntryListingRepCollection getAuditLogEntries​(@Nullable
                                                                    java.lang.Long before,
                                                                    @Nullable
                                                                    java.lang.Long after,
                                                                    @Nullable
                                                                    java.lang.String q,
                                                                    @Nullable
                                                                    java.lang.Long limit,
                                                                    @Nullable
                                                                    java.lang.String spec)
                                                             throws ApiException
        List audit log entries Get a list of all audit log entries. The query parameters let you restrict the results that return by date ranges, resource specifiers, or a full-text search query. LaunchDarkly uses a resource specifier syntax to name resources or collections of resources. To learn more, read [About the resource specifier syntax](https://launchdarkly.com/docs/home/account/role-resources#about-the-resource-specifier-syntax).
        Parameters:
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries this returns occurred before the timestamp. (optional)
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries this returns occurred after the timestamp. (optional)
        q - Text to search for. You can search for the full or partial name of the resource. (optional)
        limit - A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10. (optional)
        spec - A resource specifier that lets you filter audit log listings by resource (optional)
        Returns:
        AuditLogEntryListingRepCollection
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAuditLogEntriesWithHttpInfo

        public ApiResponse<AuditLogEntryListingRepCollection> getAuditLogEntriesWithHttpInfo​(@Nullable
                                                                                             java.lang.Long before,
                                                                                             @Nullable
                                                                                             java.lang.Long after,
                                                                                             @Nullable
                                                                                             java.lang.String q,
                                                                                             @Nullable
                                                                                             java.lang.Long limit,
                                                                                             @Nullable
                                                                                             java.lang.String spec)
                                                                                      throws ApiException
        List audit log entries Get a list of all audit log entries. The query parameters let you restrict the results that return by date ranges, resource specifiers, or a full-text search query. LaunchDarkly uses a resource specifier syntax to name resources or collections of resources. To learn more, read [About the resource specifier syntax](https://launchdarkly.com/docs/home/account/role-resources#about-the-resource-specifier-syntax).
        Parameters:
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries this returns occurred before the timestamp. (optional)
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries this returns occurred after the timestamp. (optional)
        q - Text to search for. You can search for the full or partial name of the resource. (optional)
        limit - A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10. (optional)
        spec - A resource specifier that lets you filter audit log listings by resource (optional)
        Returns:
        ApiResponse<AuditLogEntryListingRepCollection>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAuditLogEntriesAsync

        public okhttp3.Call getAuditLogEntriesAsync​(@Nullable
                                                    java.lang.Long before,
                                                    @Nullable
                                                    java.lang.Long after,
                                                    @Nullable
                                                    java.lang.String q,
                                                    @Nullable
                                                    java.lang.Long limit,
                                                    @Nullable
                                                    java.lang.String spec,
                                                    ApiCallback<AuditLogEntryListingRepCollection> _callback)
                                             throws ApiException
        List audit log entries (asynchronously) Get a list of all audit log entries. The query parameters let you restrict the results that return by date ranges, resource specifiers, or a full-text search query. LaunchDarkly uses a resource specifier syntax to name resources or collections of resources. To learn more, read [About the resource specifier syntax](https://launchdarkly.com/docs/home/account/role-resources#about-the-resource-specifier-syntax).
        Parameters:
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries this returns occurred before the timestamp. (optional)
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries this returns occurred after the timestamp. (optional)
        q - Text to search for. You can search for the full or partial name of the resource. (optional)
        limit - A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10. (optional)
        spec - A resource specifier that lets you filter audit log listings by resource (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
      • getAuditLogEntryCall

        public okhttp3.Call getAuditLogEntryCall​(@Nonnull
                                                 java.lang.String id,
                                                 ApiCallback _callback)
                                          throws ApiException
        Build call for getAuditLogEntry
        Parameters:
        id - The ID of the audit log entry (required)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • getAuditLogEntry

        public AuditLogEntryRep getAuditLogEntry​(@Nonnull
                                                 java.lang.String id)
                                          throws ApiException
        Get audit log entry Fetch a detailed audit log entry representation. The detailed representation includes several fields that are not present in the summary representation, including: - `previousVersion`: a JSON representation of the previous version of the entity. - `currentVersion`: a JSON representation of the current version of the entity. - `delta`: the JSON patch body that was used in the request to update the entity. This is only included if the update was made through a [JSON patch](https://launchdarkly.com/docs/api#updates-using-json-patch). It is null when the update was made using [semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch). Because most [flag updates](https://launchdarkly.com/docs/api/feature-flags/patch-feature-flag) are made using semantic patch, this field is rarely returned.
        Parameters:
        id - The ID of the audit log entry (required)
        Returns:
        AuditLogEntryRep
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAuditLogEntryWithHttpInfo

        public ApiResponse<AuditLogEntryRep> getAuditLogEntryWithHttpInfo​(@Nonnull
                                                                          java.lang.String id)
                                                                   throws ApiException
        Get audit log entry Fetch a detailed audit log entry representation. The detailed representation includes several fields that are not present in the summary representation, including: - `previousVersion`: a JSON representation of the previous version of the entity. - `currentVersion`: a JSON representation of the current version of the entity. - `delta`: the JSON patch body that was used in the request to update the entity. This is only included if the update was made through a [JSON patch](https://launchdarkly.com/docs/api#updates-using-json-patch). It is null when the update was made using [semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch). Because most [flag updates](https://launchdarkly.com/docs/api/feature-flags/patch-feature-flag) are made using semantic patch, this field is rarely returned.
        Parameters:
        id - The ID of the audit log entry (required)
        Returns:
        ApiResponse<AuditLogEntryRep>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • getAuditLogEntryAsync

        public okhttp3.Call getAuditLogEntryAsync​(@Nonnull
                                                  java.lang.String id,
                                                  ApiCallback<AuditLogEntryRep> _callback)
                                           throws ApiException
        Get audit log entry (asynchronously) Fetch a detailed audit log entry representation. The detailed representation includes several fields that are not present in the summary representation, including: - `previousVersion`: a JSON representation of the previous version of the entity. - `currentVersion`: a JSON representation of the current version of the entity. - `delta`: the JSON patch body that was used in the request to update the entity. This is only included if the update was made through a [JSON patch](https://launchdarkly.com/docs/api#updates-using-json-patch). It is null when the update was made using [semantic patch](https://launchdarkly.com/docs/api#updates-using-semantic-patch). Because most [flag updates](https://launchdarkly.com/docs/api/feature-flags/patch-feature-flag) are made using semantic patch, this field is rarely returned.
        Parameters:
        id - The ID of the audit log entry (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
      • postAuditLogEntriesCall

        public okhttp3.Call postAuditLogEntriesCall​(@Nullable
                                                    java.lang.Long before,
                                                    @Nullable
                                                    java.lang.Long after,
                                                    @Nullable
                                                    java.lang.String q,
                                                    @Nullable
                                                    java.lang.Long limit,
                                                    @Nullable
                                                    java.util.List<StatementPost> statementPost,
                                                    ApiCallback _callback)
                                             throws ApiException
        Build call for postAuditLogEntries
        Parameters:
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred before the timestamp. (optional)
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred after the timestamp. (optional)
        q - Text to search for. You can search for the full or partial name of the resource. (optional)
        limit - A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10. (optional)
        statementPost - (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postAuditLogEntries

        public AuditLogEntryListingRepCollection postAuditLogEntries​(@Nullable
                                                                     java.lang.Long before,
                                                                     @Nullable
                                                                     java.lang.Long after,
                                                                     @Nullable
                                                                     java.lang.String q,
                                                                     @Nullable
                                                                     java.lang.Long limit,
                                                                     @Nullable
                                                                     java.util.List<StatementPost> statementPost)
                                                              throws ApiException
        Search audit log entries Search your audit log entries. The query parameters let you restrict the results that return by date ranges, or a full-text search query. The request body lets you restrict the results that return by resource specifiers. LaunchDarkly uses a resource specifier syntax to name resources or collections of resources. To learn more, read [About the resource specifier syntax](https://launchdarkly.com/docs/home/account/role-resources#about-the-resource-specifier-syntax).
        Parameters:
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred before the timestamp. (optional)
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred after the timestamp. (optional)
        q - Text to search for. You can search for the full or partial name of the resource. (optional)
        limit - A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10. (optional)
        statementPost - (optional)
        Returns:
        AuditLogEntryListingRepCollection
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAuditLogEntriesWithHttpInfo

        public ApiResponse<AuditLogEntryListingRepCollection> postAuditLogEntriesWithHttpInfo​(@Nullable
                                                                                              java.lang.Long before,
                                                                                              @Nullable
                                                                                              java.lang.Long after,
                                                                                              @Nullable
                                                                                              java.lang.String q,
                                                                                              @Nullable
                                                                                              java.lang.Long limit,
                                                                                              @Nullable
                                                                                              java.util.List<StatementPost> statementPost)
                                                                                       throws ApiException
        Search audit log entries Search your audit log entries. The query parameters let you restrict the results that return by date ranges, or a full-text search query. The request body lets you restrict the results that return by resource specifiers. LaunchDarkly uses a resource specifier syntax to name resources or collections of resources. To learn more, read [About the resource specifier syntax](https://launchdarkly.com/docs/home/account/role-resources#about-the-resource-specifier-syntax).
        Parameters:
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred before the timestamp. (optional)
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred after the timestamp. (optional)
        q - Text to search for. You can search for the full or partial name of the resource. (optional)
        limit - A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10. (optional)
        statementPost - (optional)
        Returns:
        ApiResponse<AuditLogEntryListingRepCollection>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAuditLogEntriesAsync

        public okhttp3.Call postAuditLogEntriesAsync​(@Nullable
                                                     java.lang.Long before,
                                                     @Nullable
                                                     java.lang.Long after,
                                                     @Nullable
                                                     java.lang.String q,
                                                     @Nullable
                                                     java.lang.Long limit,
                                                     @Nullable
                                                     java.util.List<StatementPost> statementPost,
                                                     ApiCallback<AuditLogEntryListingRepCollection> _callback)
                                              throws ApiException
        Search audit log entries (asynchronously) Search your audit log entries. The query parameters let you restrict the results that return by date ranges, or a full-text search query. The request body lets you restrict the results that return by resource specifiers. LaunchDarkly uses a resource specifier syntax to name resources or collections of resources. To learn more, read [About the resource specifier syntax](https://launchdarkly.com/docs/home/account/role-resources#about-the-resource-specifier-syntax).
        Parameters:
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred before the timestamp. (optional)
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. All entries returned occurred after the timestamp. (optional)
        q - Text to search for. You can search for the full or partial name of the resource. (optional)
        limit - A limit on the number of audit log entries that return. Set between 1 and 20. The default is 10. (optional)
        statementPost - (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
      • postAuditLogEntryCountsCall

        public okhttp3.Call postAuditLogEntryCountsCall​(@Nonnull
                                                        java.lang.Long after,
                                                        @Nonnull
                                                        java.util.List<StatementPost> statementPost,
                                                        @Nullable
                                                        java.lang.Long before,
                                                        @Nullable
                                                        java.lang.Long buckets,
                                                        ApiCallback _callback)
                                                 throws ApiException
        Build call for postAuditLogEntryCounts
        Parameters:
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. Required. (required)
        statementPost - (required)
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. Defaults to now. (optional)
        buckets - Number of time buckets to divide the range into. Default 50, max 500. (optional)
        _callback - Callback for upload/download progress
        Returns:
        Call to execute
        Throws:
        ApiException - If fail to serialize the request body object
      • postAuditLogEntryCounts

        public CountBucketsResult postAuditLogEntryCounts​(@Nonnull
                                                          java.lang.Long after,
                                                          @Nonnull
                                                          java.util.List<StatementPost> statementPost,
                                                          @Nullable
                                                          java.lang.Long before,
                                                          @Nullable
                                                          java.lang.Long buckets)
                                                   throws ApiException
        Get audit log entry counts Returns aggregate counts of audit log entries per time bucket. Used for dashboard overlays that show flag targeting changes.
        Parameters:
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. Required. (required)
        statementPost - (required)
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. Defaults to now. (optional)
        buckets - Number of time buckets to divide the range into. Default 50, max 500. (optional)
        Returns:
        CountBucketsResult
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAuditLogEntryCountsWithHttpInfo

        public ApiResponse<CountBucketsResult> postAuditLogEntryCountsWithHttpInfo​(@Nonnull
                                                                                   java.lang.Long after,
                                                                                   @Nonnull
                                                                                   java.util.List<StatementPost> statementPost,
                                                                                   @Nullable
                                                                                   java.lang.Long before,
                                                                                   @Nullable
                                                                                   java.lang.Long buckets)
                                                                            throws ApiException
        Get audit log entry counts Returns aggregate counts of audit log entries per time bucket. Used for dashboard overlays that show flag targeting changes.
        Parameters:
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. Required. (required)
        statementPost - (required)
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. Defaults to now. (optional)
        buckets - Number of time buckets to divide the range into. Default 50, max 500. (optional)
        Returns:
        ApiResponse<CountBucketsResult>
        Throws:
        ApiException - If fail to call the API, e.g. server error or cannot deserialize the response body
      • postAuditLogEntryCountsAsync

        public okhttp3.Call postAuditLogEntryCountsAsync​(@Nonnull
                                                         java.lang.Long after,
                                                         @Nonnull
                                                         java.util.List<StatementPost> statementPost,
                                                         @Nullable
                                                         java.lang.Long before,
                                                         @Nullable
                                                         java.lang.Long buckets,
                                                         ApiCallback<CountBucketsResult> _callback)
                                                  throws ApiException
        Get audit log entry counts (asynchronously) Returns aggregate counts of audit log entries per time bucket. Used for dashboard overlays that show flag targeting changes.
        Parameters:
        after - A timestamp filter, expressed as a Unix epoch time in milliseconds. Required. (required)
        statementPost - (required)
        before - A timestamp filter, expressed as a Unix epoch time in milliseconds. Defaults to now. (optional)
        buckets - Number of time buckets to divide the range into. Default 50, max 500. (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