@Generated(value="https://github.com/DataDog/datadog-api-client-java/blob/master/.generator") public class DashboardsApi extends Object
| Modifier and Type | Class and Description |
|---|---|
static class |
DashboardsApi.GetPublicDashboardInvitationsOptionalParameters
Manage optional parameters to getPublicDashboardInvitations.
|
static class |
DashboardsApi.ListDashboardsOptionalParameters
Manage optional parameters to listDashboards.
|
| Constructor and Description |
|---|
DashboardsApi() |
DashboardsApi(ApiClient apiClient) |
public DashboardsApi()
public DashboardsApi(ApiClient apiClient)
public ApiClient getApiClient()
public void setApiClient(ApiClient apiClient)
apiClient - an instance of API clientpublic Dashboard createDashboard(Dashboard body) throws ApiException
See createDashboardWithHttpInfo(com.datadog.api.client.v1.model.Dashboard).
body - Create a dashboard request body. (required)ApiException - if fails to make API callpublic CompletableFuture<Dashboard> createDashboardAsync(Dashboard body)
See createDashboardWithHttpInfoAsync(com.datadog.api.client.v1.model.Dashboard).
body - Create a dashboard request body. (required)public ApiResponse<Dashboard> createDashboardWithHttpInfo(Dashboard body) throws ApiException
as_count() or as_rate()
modifiers appended. Refer to the following documentation
for more information on these modifiers.body - Create a dashboard request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication Error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Dashboard>> createDashboardWithHttpInfoAsync(Dashboard body)
See createDashboardWithHttpInfo(com.datadog.api.client.v1.model.Dashboard).
body - Create a dashboard request body. (required)public SharedDashboard createPublicDashboard(SharedDashboard body) throws ApiException
See createPublicDashboardWithHttpInfo(com.datadog.api.client.v1.model.SharedDashboard).
body - Create a shared dashboard request body. (required)ApiException - if fails to make API callpublic CompletableFuture<SharedDashboard> createPublicDashboardAsync(SharedDashboard body)
See createPublicDashboardWithHttpInfoAsync(com.datadog.api.client.v1.model.SharedDashboard).
body - Create a shared dashboard request body. (required)public ApiResponse<SharedDashboard> createPublicDashboardWithHttpInfo(SharedDashboard body) throws ApiException
body - Create a shared dashboard request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Dashboard Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SharedDashboard>> createPublicDashboardWithHttpInfoAsync(SharedDashboard body)
See createPublicDashboardWithHttpInfo(com.datadog.api.client.v1.model.SharedDashboard).
body - Create a shared dashboard request body. (required)public DashboardDeleteResponse deleteDashboard(String dashboardId) throws ApiException
dashboardId - The ID of the dashboard. (required)ApiException - if fails to make API callpublic CompletableFuture<DashboardDeleteResponse> deleteDashboardAsync(String dashboardId)
dashboardId - The ID of the dashboard. (required)public ApiResponse<DashboardDeleteResponse> deleteDashboardWithHttpInfo(String dashboardId) throws ApiException
dashboardId - The ID of the dashboard. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication Error | - |
| 404 | Dashboards Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<DashboardDeleteResponse>> deleteDashboardWithHttpInfoAsync(String dashboardId)
dashboardId - The ID of the dashboard. (required)public void deleteDashboards(DashboardBulkDeleteRequest body) throws ApiException
See deleteDashboardsWithHttpInfo(com.datadog.api.client.v1.model.DashboardBulkDeleteRequest).
body - Delete dashboards request body. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deleteDashboardsAsync(DashboardBulkDeleteRequest body)
See deleteDashboardsWithHttpInfoAsync(com.datadog.api.client.v1.model.DashboardBulkDeleteRequest).
body - Delete dashboards request body. (required)public ApiResponse<Void> deleteDashboardsWithHttpInfo(DashboardBulkDeleteRequest body) throws ApiException
body - Delete dashboards request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Dashboards Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deleteDashboardsWithHttpInfoAsync(DashboardBulkDeleteRequest body)
See deleteDashboardsWithHttpInfo(com.datadog.api.client.v1.model.DashboardBulkDeleteRequest).
body - Delete dashboards request body. (required)public DeleteSharedDashboardResponse deletePublicDashboard(String token) throws ApiException
token - The token of the shared dashboard. (required)ApiException - if fails to make API callpublic CompletableFuture<DeleteSharedDashboardResponse> deletePublicDashboardAsync(String token)
See deletePublicDashboardWithHttpInfoAsync(java.lang.String).
token - The token of the shared dashboard. (required)public ApiResponse<DeleteSharedDashboardResponse> deletePublicDashboardWithHttpInfo(String token) throws ApiException
token - The token of the shared dashboard. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Shared Dashboard Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<DeleteSharedDashboardResponse>> deletePublicDashboardWithHttpInfoAsync(String token)
token - The token of the shared dashboard. (required)public void deletePublicDashboardInvitation(String token, SharedDashboardInvites body) throws ApiException
token - The token of the shared dashboard. (required)body - Shared Dashboard Invitation deletion request body. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> deletePublicDashboardInvitationAsync(String token, SharedDashboardInvites body)
token - The token of the shared dashboard. (required)body - Shared Dashboard Invitation deletion request body. (required)public ApiResponse<Void> deletePublicDashboardInvitationWithHttpInfo(String token, SharedDashboardInvites body) throws ApiException
token - The token of the shared dashboard. (required)body - Shared Dashboard Invitation deletion request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | OK | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> deletePublicDashboardInvitationWithHttpInfoAsync(String token, SharedDashboardInvites body)
token - The token of the shared dashboard. (required)body - Shared Dashboard Invitation deletion request body. (required)public Dashboard getDashboard(String dashboardId) throws ApiException
dashboardId - The ID of the dashboard. (required)ApiException - if fails to make API callpublic CompletableFuture<Dashboard> getDashboardAsync(String dashboardId)
dashboardId - The ID of the dashboard. (required)public ApiResponse<Dashboard> getDashboardWithHttpInfo(String dashboardId) throws ApiException
dashboardId - The ID of the dashboard. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication Error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Dashboard>> getDashboardWithHttpInfoAsync(String dashboardId)
dashboardId - The ID of the dashboard. (required)public SharedDashboard getPublicDashboard(String token) throws ApiException
token - The token of the shared dashboard. Generated when a dashboard is shared.
(required)ApiException - if fails to make API callpublic CompletableFuture<SharedDashboard> getPublicDashboardAsync(String token)
token - The token of the shared dashboard. Generated when a dashboard is shared.
(required)public ApiResponse<SharedDashboard> getPublicDashboardWithHttpInfo(String token) throws ApiException
token - The token of the shared dashboard. Generated when a dashboard is shared.
(required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Forbidden | - |
| 404 | Shared Dashboard Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SharedDashboard>> getPublicDashboardWithHttpInfoAsync(String token)
token - The token of the shared dashboard. Generated when a dashboard is shared.
(required)public SharedDashboardInvites getPublicDashboardInvitations(String token) throws ApiException
token - Token of the shared dashboard for which to fetch invitations. (required)ApiException - if fails to make API callpublic CompletableFuture<SharedDashboardInvites> getPublicDashboardInvitationsAsync(String token)
token - Token of the shared dashboard for which to fetch invitations. (required)public SharedDashboardInvites getPublicDashboardInvitations(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) throws ApiException
token - Token of the shared dashboard for which to fetch invitations. (required)parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<SharedDashboardInvites> getPublicDashboardInvitationsAsync(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters)
token - Token of the shared dashboard for which to fetch invitations. (required)parameters - Optional parameters for the request.public ApiResponse<SharedDashboardInvites> getPublicDashboardInvitationsWithHttpInfo(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) throws ApiException
token - Token of the shared dashboard for which to fetch invitations. (required)parameters - Optional parameters for the request.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<SharedDashboardInvites>> getPublicDashboardInvitationsWithHttpInfoAsync(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters)
token - Token of the shared dashboard for which to fetch invitations. (required)parameters - Optional parameters for the request.public DashboardSummary listDashboards() throws ApiException
ApiException - if fails to make API callpublic CompletableFuture<DashboardSummary> listDashboardsAsync()
public DashboardSummary listDashboards(DashboardsApi.ListDashboardsOptionalParameters parameters) throws ApiException
parameters - Optional parameters for the request.ApiException - if fails to make API callpublic CompletableFuture<DashboardSummary> listDashboardsAsync(DashboardsApi.ListDashboardsOptionalParameters parameters)
parameters - Optional parameters for the request.public PaginationIterable<DashboardSummaryDefinition> listDashboardsWithPagination()
public PaginationIterable<DashboardSummaryDefinition> listDashboardsWithPagination(DashboardsApi.ListDashboardsOptionalParameters parameters)
public ApiResponse<DashboardSummary> listDashboardsWithHttpInfo(DashboardsApi.ListDashboardsOptionalParameters parameters) throws ApiException
Note: This query will only return custom created or cloned dashboards. This query will not return preset dashboards.
parameters - Optional parameters for the request.ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 403 | Authentication Error | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<DashboardSummary>> listDashboardsWithHttpInfoAsync(DashboardsApi.ListDashboardsOptionalParameters parameters)
parameters - Optional parameters for the request.public void restoreDashboards(DashboardRestoreRequest body) throws ApiException
See restoreDashboardsWithHttpInfo(com.datadog.api.client.v1.model.DashboardRestoreRequest).
body - Restore dashboards request body. (required)ApiException - if fails to make API callpublic CompletableFuture<Void> restoreDashboardsAsync(DashboardRestoreRequest body)
See restoreDashboardsWithHttpInfoAsync(com.datadog.api.client.v1.model.DashboardRestoreRequest).
body - Restore dashboards request body. (required)public ApiResponse<Void> restoreDashboardsWithHttpInfo(DashboardRestoreRequest body) throws ApiException
body - Restore dashboards request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 204 | No Content | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Dashboards Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Void>> restoreDashboardsWithHttpInfoAsync(DashboardRestoreRequest body)
See restoreDashboardsWithHttpInfo(com.datadog.api.client.v1.model.DashboardRestoreRequest).
body - Restore dashboards request body. (required)public SharedDashboardInvites sendPublicDashboardInvitation(String token, SharedDashboardInvites body) throws ApiException
token - The token of the shared dashboard. (required)body - Shared Dashboard Invitation request body. (required)ApiException - if fails to make API callpublic CompletableFuture<SharedDashboardInvites> sendPublicDashboardInvitationAsync(String token, SharedDashboardInvites body)
token - The token of the shared dashboard. (required)body - Shared Dashboard Invitation request body. (required)public ApiResponse<SharedDashboardInvites> sendPublicDashboardInvitationWithHttpInfo(String token, SharedDashboardInvites body) throws ApiException
token - The token of the shared dashboard. (required)body - Shared Dashboard Invitation request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 201 | OK | - |
| 400 | Bad Request | - |
| 403 | Forbidden | - |
| 404 | Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SharedDashboardInvites>> sendPublicDashboardInvitationWithHttpInfoAsync(String token, SharedDashboardInvites body)
token - The token of the shared dashboard. (required)body - Shared Dashboard Invitation request body. (required)public Dashboard updateDashboard(String dashboardId, Dashboard body) throws ApiException
See updateDashboardWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.Dashboard).
dashboardId - The ID of the dashboard. (required)body - Update Dashboard request body. (required)ApiException - if fails to make API callpublic CompletableFuture<Dashboard> updateDashboardAsync(String dashboardId, Dashboard body)
See updateDashboardWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v1.model.Dashboard).
dashboardId - The ID of the dashboard. (required)body - Update Dashboard request body. (required)public ApiResponse<Dashboard> updateDashboardWithHttpInfo(String dashboardId, Dashboard body) throws ApiException
dashboardId - The ID of the dashboard. (required)body - Update Dashboard request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication Error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<Dashboard>> updateDashboardWithHttpInfoAsync(String dashboardId, Dashboard body)
See updateDashboardWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.Dashboard).
dashboardId - The ID of the dashboard. (required)body - Update Dashboard request body. (required)public SharedDashboard updatePublicDashboard(String token, SharedDashboardUpdateRequest body) throws ApiException
token - The token of the shared dashboard. (required)body - Update Dashboard request body. (required)ApiException - if fails to make API callpublic CompletableFuture<SharedDashboard> updatePublicDashboardAsync(String token, SharedDashboardUpdateRequest body)
token - The token of the shared dashboard. (required)body - Update Dashboard request body. (required)public ApiResponse<SharedDashboard> updatePublicDashboardWithHttpInfo(String token, SharedDashboardUpdateRequest body) throws ApiException
token - The token of the shared dashboard. (required)body - Update Dashboard request body. (required)ApiException - if fails to make API call| Status Code | Description | Response Headers |
| 200 | OK | - |
| 400 | Bad Request | - |
| 403 | Authentication Error | - |
| 404 | Item Not Found | - |
| 429 | Too many requests | - |
public CompletableFuture<ApiResponse<SharedDashboard>> updatePublicDashboardWithHttpInfoAsync(String token, SharedDashboardUpdateRequest body)
token - The token of the shared dashboard. (required)body - Update Dashboard request body. (required)Copyright © 2024. All rights reserved.