Package com.launchdarkly.api.api
Class AuditLogApi
- java.lang.Object
-
- com.launchdarkly.api.api.AuditLogApi
-
public class AuditLogApi extends java.lang.Object
-
-
Constructor Summary
Constructors Constructor Description AuditLogApi()AuditLogApi(ApiClient apiClient)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description ApiClientgetApiClient()AuditLogEntryListingRepCollectiongetAuditLogEntries(java.lang.Long before, java.lang.Long after, java.lang.String q, java.lang.Long limit, java.lang.String spec)List audit log entries Get a list of all audit log entries.okhttp3.CallgetAuditLogEntriesAsync(java.lang.Long before, java.lang.Long after, java.lang.String q, java.lang.Long limit, java.lang.String spec, ApiCallback<AuditLogEntryListingRepCollection> _callback)List audit log entries (asynchronously) Get a list of all audit log entries.okhttp3.CallgetAuditLogEntriesCall(java.lang.Long before, java.lang.Long after, java.lang.String q, java.lang.Long limit, java.lang.String spec, ApiCallback _callback)Build call for getAuditLogEntriesApiResponse<AuditLogEntryListingRepCollection>getAuditLogEntriesWithHttpInfo(java.lang.Long before, java.lang.Long after, java.lang.String q, java.lang.Long limit, java.lang.String spec)List audit log entries Get a list of all audit log entries.AuditLogEntryRepgetAuditLogEntry(java.lang.String id)Get audit log entry Fetch a detailed audit log entry representation.okhttp3.CallgetAuditLogEntryAsync(java.lang.String id, ApiCallback<AuditLogEntryRep> _callback)Get audit log entry (asynchronously) Fetch a detailed audit log entry representation.okhttp3.CallgetAuditLogEntryCall(java.lang.String id, ApiCallback _callback)Build call for getAuditLogEntryApiResponse<AuditLogEntryRep>getAuditLogEntryWithHttpInfo(java.lang.String id)Get audit log entry Fetch a detailed audit log entry representation.java.lang.StringgetCustomBaseUrl()intgetHostIndex()AuditLogEntryListingRepCollectionpostAuditLogEntries(java.lang.Long before, java.lang.Long after, java.lang.String q, java.lang.Long limit, java.util.List<StatementPost> statementPost)Search audit log entries Search your audit log entries.okhttp3.CallpostAuditLogEntriesAsync(java.lang.Long before, java.lang.Long after, java.lang.String q, java.lang.Long limit, java.util.List<StatementPost> statementPost, ApiCallback<AuditLogEntryListingRepCollection> _callback)Search audit log entries (asynchronously) Search your audit log entries.okhttp3.CallpostAuditLogEntriesCall(java.lang.Long before, java.lang.Long after, java.lang.String q, java.lang.Long limit, java.util.List<StatementPost> statementPost, ApiCallback _callback)Build call for postAuditLogEntriesApiResponse<AuditLogEntryListingRepCollection>postAuditLogEntriesWithHttpInfo(java.lang.Long before, java.lang.Long after, java.lang.String q, java.lang.Long limit, java.util.List<StatementPost> statementPost)Search audit log entries Search your audit log entries.CountBucketsResultpostAuditLogEntryCounts(java.lang.Long after, java.util.List<StatementPost> statementPost, java.lang.Long before, java.lang.Long buckets)Get audit log entry counts Returns aggregate counts of audit log entries per time bucket.okhttp3.CallpostAuditLogEntryCountsAsync(java.lang.Long after, java.util.List<StatementPost> statementPost, java.lang.Long before, java.lang.Long buckets, ApiCallback<CountBucketsResult> _callback)Get audit log entry counts (asynchronously) Returns aggregate counts of audit log entries per time bucket.okhttp3.CallpostAuditLogEntryCountsCall(java.lang.Long after, java.util.List<StatementPost> statementPost, java.lang.Long before, java.lang.Long buckets, ApiCallback _callback)Build call for postAuditLogEntryCountsApiResponse<CountBucketsResult>postAuditLogEntryCountsWithHttpInfo(java.lang.Long after, java.util.List<StatementPost> statementPost, java.lang.Long before, java.lang.Long buckets)Get audit log entry counts Returns aggregate counts of audit log entries per time bucket.voidsetApiClient(ApiClient apiClient)voidsetCustomBaseUrl(java.lang.String customBaseUrl)voidsetHostIndex(int hostIndex)
-
-
-
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 ApiExceptionBuild 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 ApiExceptionList 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 ApiExceptionBuild 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 ApiExceptionGet 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 ApiExceptionBuild 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 ApiExceptionSearch 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 ApiExceptionBuild 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 ApiExceptionGet 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
-
-