@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class LogsIndexesApi extends Object
| Constructor and Description |
|---|
LogsIndexesApi() |
LogsIndexesApi(ApiClient apiClient) |
public LogsIndexesApi()
public LogsIndexesApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic LogsIndex createLogsIndex(LogsIndex body) throws ApiException
See createLogsIndexWithHttpInfo(com.datadog.api.client.v1.model.LogsIndex).
body - Object containing the new index. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsIndex> createLogsIndexAsync(LogsIndex body)
See createLogsIndexWithHttpInfoAsync(com.datadog.api.client.v1.model.LogsIndex).
body - Object containing the new index. (required)public ApiResponse<LogsIndex> createLogsIndexWithHttpInfo(LogsIndex body) throws ApiException
body - Object containing the new index. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Invalid Parameter Error | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsIndex>> createLogsIndexWithHttpInfoAsync(LogsIndex body)
See createLogsIndexWithHttpInfo(com.datadog.api.client.v1.model.LogsIndex).
body - Object containing the new index. (required)public LogsIndex getLogsIndex(String name) throws ApiException
name - Name of the log index. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsIndex> getLogsIndexAsync(String name)
name - Name of the log index. (required)public ApiResponse<LogsIndex> getLogsIndexWithHttpInfo(String name) throws ApiException
name - Name of the log index. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsIndex>> getLogsIndexWithHttpInfoAsync(String name)
name - Name of the log index. (required)public LogsIndexesOrder getLogsIndexOrder() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<LogsIndexesOrder> getLogsIndexOrderAsync()
public ApiResponse<LogsIndexesOrder> getLogsIndexOrderWithHttpInfo() throws ApiException
ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsIndexesOrder>> getLogsIndexOrderWithHttpInfoAsync()
public LogsIndexListResponse listLogIndexes() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<LogsIndexListResponse> listLogIndexesAsync()
public ApiResponse<LogsIndexListResponse> listLogIndexesWithHttpInfo() throws ApiException
LogIndex objects of your organization.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsIndexListResponse>> listLogIndexesWithHttpInfoAsync()
public LogsIndex updateLogsIndex(String name, LogsIndexUpdateRequest body) throws ApiException
name - Name of the log index. (required)body - Object containing the new LogsIndexUpdateRequest. (required)ApiException - if fails to make API callpublic CompletableFuture<LogsIndex> updateLogsIndexAsync(String name, LogsIndexUpdateRequest body)
name - Name of the log index. (required)body - Object containing the new LogsIndexUpdateRequest. (required)public ApiResponse<LogsIndex> updateLogsIndexWithHttpInfo(String name, LogsIndexUpdateRequest body) throws ApiException
Using the PUT method updates your index’s configuration by
replacing your current configuration with the new one sent to your Datadog
organization.
name - Name of the log index. (required)body - Object containing the new LogsIndexUpdateRequest. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Invalid Parameter Error | - |
| 403 | Forbidden | - |
| 429 | Too Many Requests | - |
public CompletableFuture<ApiResponse<LogsIndex>> updateLogsIndexWithHttpInfoAsync(String name, LogsIndexUpdateRequest body)
name - Name of the log index. (required)body - Object containing the new LogsIndexUpdateRequest. (required)public LogsIndexesOrder updateLogsIndexOrder(LogsIndexesOrder body) throws ApiException
See updateLogsIndexOrderWithHttpInfo(com.datadog.api.client.v1.model.LogsIndexesOrder).
body - Object containing the new ordered list of index names (required)ApiException - if fails to make API callpublic CompletableFuture<LogsIndexesOrder> updateLogsIndexOrderAsync(LogsIndexesOrder body)
See updateLogsIndexOrderWithHttpInfoAsync(com.datadog.api.client.v1.model.LogsIndexesOrder).
body - Object containing the new ordered list of index names (required)public ApiResponse<LogsIndexesOrder> updateLogsIndexOrderWithHttpInfo(LogsIndexesOrder body) throws ApiException
body - Object containing the new ordered list of index names (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<LogsIndexesOrder>> updateLogsIndexOrderWithHttpInfoAsync(LogsIndexesOrder body)
See updateLogsIndexOrderWithHttpInfo(com.datadog.api.client.v1.model.LogsIndexesOrder).
body - Object containing the new ordered list of index names (required)Copyright © 2024. All rights reserved.