@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class DashboardListsApi extends Object
Constructor and Description |
---|
DashboardListsApi() |
DashboardListsApi(ApiClient apiClient) |
public DashboardListsApi()
public DashboardListsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient
- an instance of API clientpublic DashboardList createDashboardList(DashboardList body) throws ApiException
See createDashboardListWithHttpInfo(com.datadog.api.v1.client.model.DashboardList)
.
body
- Create a dashboard list request body. (required)ApiException
- if fails to make API callpublic CompletableFuture<DashboardList> createDashboardListAsync(DashboardList body)
See createDashboardListWithHttpInfoAsync(com.datadog.api.v1.client.model.DashboardList)
.
body
- Create a dashboard list request body. (required)public ApiResponse<DashboardList> createDashboardListWithHttpInfo(DashboardList body) throws ApiException
Create an empty dashboard list.
body
- Create a dashboard list request body. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<DashboardList>> createDashboardListWithHttpInfoAsync(DashboardList body)
See createDashboardListWithHttpInfo(com.datadog.api.v1.client.model.DashboardList)
.
body
- Create a dashboard list request body. (required)public DashboardListDeleteResponse deleteDashboardList(Long listId) throws ApiException
listId
- ID of the dashboard list to delete. (required)ApiException
- if fails to make API callpublic CompletableFuture<DashboardListDeleteResponse> deleteDashboardListAsync(Long listId)
listId
- ID of the dashboard list to delete. (required)public ApiResponse<DashboardListDeleteResponse> deleteDashboardListWithHttpInfo(Long listId) throws ApiException
Delete a dashboard list.
listId
- ID of the dashboard list to delete. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<DashboardListDeleteResponse>> deleteDashboardListWithHttpInfoAsync(Long listId)
listId
- ID of the dashboard list to delete. (required)public DashboardList getDashboardList(Long listId) throws ApiException
listId
- ID of the dashboard list to fetch. (required)ApiException
- if fails to make API callpublic CompletableFuture<DashboardList> getDashboardListAsync(Long listId)
listId
- ID of the dashboard list to fetch. (required)public ApiResponse<DashboardList> getDashboardListWithHttpInfo(Long listId) throws ApiException
Fetch an existing dashboard list's definition.
listId
- ID of the dashboard list to fetch. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<DashboardList>> getDashboardListWithHttpInfoAsync(Long listId)
listId
- ID of the dashboard list to fetch. (required)public DashboardListListResponse listDashboardLists() throws ApiException
ApiException
- if fails to make API callpublic CompletableFuture<DashboardListListResponse> listDashboardListsAsync()
public ApiResponse<DashboardListListResponse> listDashboardListsWithHttpInfo() throws ApiException
Fetch all of your existing dashboard list definitions.
ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
403 | Forbidden | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<DashboardListListResponse>> listDashboardListsWithHttpInfoAsync()
public DashboardList updateDashboardList(Long listId, DashboardList body) throws ApiException
See updateDashboardListWithHttpInfo(java.lang.Long, com.datadog.api.v1.client.model.DashboardList)
.
listId
- ID of the dashboard list to update. (required)body
- Update a dashboard list request body. (required)ApiException
- if fails to make API callpublic CompletableFuture<DashboardList> updateDashboardListAsync(Long listId, DashboardList body)
See updateDashboardListWithHttpInfoAsync(java.lang.Long, com.datadog.api.v1.client.model.DashboardList)
.
listId
- ID of the dashboard list to update. (required)body
- Update a dashboard list request body. (required)public ApiResponse<DashboardList> updateDashboardListWithHttpInfo(Long listId, DashboardList body) throws ApiException
Update the name of a dashboard list.
listId
- ID of the dashboard list to update. (required)body
- Update a dashboard list request body. (required)ApiException
- if fails to make API callStatus Code | Description | Response Headers |
200 | OK | - |
400 | Bad Request | - |
403 | Forbidden | - |
404 | Not Found | - |
429 | Too many requests | - |
public CompletableFuture<ApiResponse<DashboardList>> updateDashboardListWithHttpInfoAsync(Long listId, DashboardList body)
See updateDashboardListWithHttpInfo(java.lang.Long, com.datadog.api.v1.client.model.DashboardList)
.
listId
- ID of the dashboard list to update. (required)body
- Update a dashboard list request body. (required)Copyright © 2022. All rights reserved.