Class DashboardsApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to getPublicDashboardInvitations.static classManage optional parameters to listDashboards. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateDashboard(Dashboard body) Create a new dashboard.Create a new dashboard.Create a dashboard using the specified options.Create a new dashboard.Create a shared dashboard.Create a shared dashboard.Share a specified private dashboard, generating a URL at which it can be publicly viewed.Create a shared dashboard.deleteDashboard(String dashboardId) Delete a dashboard.deleteDashboardAsync(String dashboardId) Delete a dashboard.voidDelete dashboards.Delete dashboards.Delete dashboards using the specified IDs.Delete dashboards.deleteDashboardWithHttpInfo(String dashboardId) Delete a dashboard using the specified ID.deleteDashboardWithHttpInfoAsync(String dashboardId) Delete a dashboard.deletePublicDashboard(String token) Revoke a shared dashboard URL.deletePublicDashboardAsync(String token) Revoke a shared dashboard URL.voiddeletePublicDashboardInvitation(String token, SharedDashboardInvites body) Revoke shared dashboard invitations.Revoke shared dashboard invitations.Revoke previously sent invitation emails and active sessions used to access a given shared dashboard for specific email addresses.Revoke shared dashboard invitations.Revoke the public URL for a dashboard (rendering it private) associated with the specified token.Revoke a shared dashboard URL.Get the API client.getDashboard(String dashboardId) Get a dashboard.getDashboardAsync(String dashboardId) Get a dashboard.getDashboardWithHttpInfo(String dashboardId) Get a dashboard using the specified ID.getDashboardWithHttpInfoAsync(String dashboardId) Get a dashboard.getPublicDashboard(String token) Get a shared dashboard.getPublicDashboardAsync(String token) Get a shared dashboard.Get all invitations for a shared dashboard.getPublicDashboardInvitations(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) Get all invitations for a shared dashboard.Get all invitations for a shared dashboard.getPublicDashboardInvitationsAsync(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) Get all invitations for a shared dashboard.getPublicDashboardInvitationsWithHttpInfo(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) Describe the invitations that exist for the given shared dashboard (paginated).getPublicDashboardInvitationsWithHttpInfoAsync(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) Get all invitations for a shared dashboard.Fetch an existing shared dashboard's sharing metadata associated with the specified token.Get a shared dashboard.Get all dashboards.Get all dashboards.Get all dashboards.Get all dashboards.Get all dashboards.Get all dashboards.Get all dashboards.Get all dashboards.voidRestore deleted dashboards.Restore deleted dashboards.Restore dashboards using the specified IDs.Restore deleted dashboards.sendPublicDashboardInvitation(String token, SharedDashboardInvites body) Send shared dashboard invitation email.Send shared dashboard invitation email.Send emails to specified email addresses containing links to access a given authenticated shared dashboard.Send shared dashboard invitation email.voidsetApiClient(ApiClient apiClient) Set the API client.updateDashboard(String dashboardId, Dashboard body) Update a dashboard.updateDashboardAsync(String dashboardId, Dashboard body) Update a dashboard.updateDashboardWithHttpInfo(String dashboardId, Dashboard body) Update a dashboard using the specified ID.updateDashboardWithHttpInfoAsync(String dashboardId, Dashboard body) Update a dashboard.updatePublicDashboard(String token, SharedDashboardUpdateRequest body) Update a shared dashboard.updatePublicDashboardAsync(String token, SharedDashboardUpdateRequest body) Update a shared dashboard.Update a shared dashboard associated with the specified token.Update a shared dashboard.
-
Constructor Details
-
DashboardsApi
public DashboardsApi() -
DashboardsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createDashboard
Create a new dashboard.See
createDashboardWithHttpInfo(com.datadog.api.client.v1.model.Dashboard).- Parameters:
body- Create a dashboard request body. (required)- Returns:
- Dashboard
- Throws:
ApiException- if fails to make API call
-
createDashboardAsync
Create a new dashboard.See
createDashboardWithHttpInfoAsync(com.datadog.api.client.v1.model.Dashboard).- Parameters:
body- Create a dashboard request body. (required)- Returns:
- CompletableFuture<Dashboard>
-
createDashboardWithHttpInfo
Create a dashboard using the specified options. When defining queries in your widgets, take note of which queries should have theas_count()oras_rate()modifiers appended. Refer to the following documentation for more information on these modifiers.- Parameters:
body- Create a dashboard request body. (required)- Returns:
- ApiResponse<Dashboard>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication Error - 429 Too many requests -
-
createDashboardWithHttpInfoAsync
Create a new dashboard.See
createDashboardWithHttpInfo(com.datadog.api.client.v1.model.Dashboard).- Parameters:
body- Create a dashboard request body. (required)- Returns:
- CompletableFuture<ApiResponse<Dashboard>>
-
deleteDashboard
Delete a dashboard.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- DashboardDeleteResponse
- Throws:
ApiException- if fails to make API call
-
deleteDashboardAsync
Delete a dashboard.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- CompletableFuture<DashboardDeleteResponse>
-
deleteDashboardWithHttpInfo
public ApiResponse<DashboardDeleteResponse> deleteDashboardWithHttpInfo(String dashboardId) throws ApiException Delete a dashboard using the specified ID.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- ApiResponse<DashboardDeleteResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Authentication Error - 404 Dashboards Not Found - 429 Too many requests -
-
deleteDashboardWithHttpInfoAsync
public CompletableFuture<ApiResponse<DashboardDeleteResponse>> deleteDashboardWithHttpInfoAsync(String dashboardId) Delete a dashboard.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- CompletableFuture<ApiResponse<DashboardDeleteResponse>>
-
deleteDashboards
Delete dashboards.See
deleteDashboardsWithHttpInfo(com.datadog.api.client.v1.model.DashboardBulkDeleteRequest).- Parameters:
body- Delete dashboards request body. (required)- Throws:
ApiException- if fails to make API call
-
deleteDashboardsAsync
Delete dashboards.See
deleteDashboardsWithHttpInfoAsync(com.datadog.api.client.v1.model.DashboardBulkDeleteRequest).- Parameters:
body- Delete dashboards request body. (required)- Returns:
- CompletableFuture
-
deleteDashboardsWithHttpInfo
public ApiResponse<Void> deleteDashboardsWithHttpInfo(DashboardBulkDeleteRequest body) throws ApiException Delete dashboards using the specified IDs. If there are any failures, no dashboards will be deleted (partial success is not allowed).- Parameters:
body- Delete dashboards request body. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 400 Bad Request - 403 Forbidden - 404 Dashboards Not Found - 429 Too many requests -
-
deleteDashboardsWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteDashboardsWithHttpInfoAsync(DashboardBulkDeleteRequest body) Delete dashboards.See
deleteDashboardsWithHttpInfo(com.datadog.api.client.v1.model.DashboardBulkDeleteRequest).- Parameters:
body- Delete dashboards request body. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
deletePublicDashboard
Revoke a shared dashboard URL.- Parameters:
token- The token of the shared dashboard. (required)- Returns:
- DeleteSharedDashboardResponse
- Throws:
ApiException- if fails to make API call
-
deletePublicDashboardAsync
Revoke a shared dashboard URL.See
deletePublicDashboardWithHttpInfoAsync(java.lang.String).- Parameters:
token- The token of the shared dashboard. (required)- Returns:
- CompletableFuture<DeleteSharedDashboardResponse>
-
deletePublicDashboardWithHttpInfo
public ApiResponse<DeleteSharedDashboardResponse> deletePublicDashboardWithHttpInfo(String token) throws ApiException Revoke the public URL for a dashboard (rendering it private) associated with the specified token.- Parameters:
token- The token of the shared dashboard. (required)- Returns:
- ApiResponse<DeleteSharedDashboardResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Shared Dashboard Not Found - 429 Too many requests -
-
deletePublicDashboardWithHttpInfoAsync
public CompletableFuture<ApiResponse<DeleteSharedDashboardResponse>> deletePublicDashboardWithHttpInfoAsync(String token) Revoke a shared dashboard URL.- Parameters:
token- The token of the shared dashboard. (required)- Returns:
- CompletableFuture<ApiResponse<DeleteSharedDashboardResponse>>
-
getDashboard
Get a dashboard.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- Dashboard
- Throws:
ApiException- if fails to make API call
-
getDashboardAsync
Get a dashboard.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- CompletableFuture<Dashboard>
-
getDashboardWithHttpInfo
Get a dashboard using the specified ID.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- ApiResponse<Dashboard>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Authentication Error - 404 Item Not Found - 429 Too many requests -
-
getDashboardWithHttpInfoAsync
Get a dashboard.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- CompletableFuture<ApiResponse<Dashboard>>
-
getPublicDashboard
Get a shared dashboard.- Parameters:
token- The token of the shared dashboard. Generated when a dashboard is shared. (required)- Returns:
- SharedDashboard
- Throws:
ApiException- if fails to make API call
-
getPublicDashboardAsync
Get a shared dashboard.- Parameters:
token- The token of the shared dashboard. Generated when a dashboard is shared. (required)- Returns:
- CompletableFuture<SharedDashboard>
-
getPublicDashboardWithHttpInfo
public ApiResponse<SharedDashboard> getPublicDashboardWithHttpInfo(String token) throws ApiException Fetch an existing shared dashboard's sharing metadata associated with the specified token.- Parameters:
token- The token of the shared dashboard. Generated when a dashboard is shared. (required)- Returns:
- ApiResponse<SharedDashboard>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Shared Dashboard Not Found - 429 Too many requests -
-
getPublicDashboardWithHttpInfoAsync
public CompletableFuture<ApiResponse<SharedDashboard>> getPublicDashboardWithHttpInfoAsync(String token) Get a shared dashboard.- Parameters:
token- The token of the shared dashboard. Generated when a dashboard is shared. (required)- Returns:
- CompletableFuture<ApiResponse<SharedDashboard>>
-
getPublicDashboardInvitations
Get all invitations for a shared dashboard.- Parameters:
token- Token of the shared dashboard for which to fetch invitations. (required)- Returns:
- SharedDashboardInvites
- Throws:
ApiException- if fails to make API call
-
getPublicDashboardInvitationsAsync
Get all invitations for a shared dashboard.- Parameters:
token- Token of the shared dashboard for which to fetch invitations. (required)- Returns:
- CompletableFuture<SharedDashboardInvites>
-
getPublicDashboardInvitations
public SharedDashboardInvites getPublicDashboardInvitations(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) throws ApiException Get all invitations for a shared dashboard.- Parameters:
token- Token of the shared dashboard for which to fetch invitations. (required)parameters- Optional parameters for the request.- Returns:
- SharedDashboardInvites
- Throws:
ApiException- if fails to make API call
-
getPublicDashboardInvitationsAsync
public CompletableFuture<SharedDashboardInvites> getPublicDashboardInvitationsAsync(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) Get all invitations for a shared dashboard.- Parameters:
token- Token of the shared dashboard for which to fetch invitations. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<SharedDashboardInvites>
-
getPublicDashboardInvitationsWithHttpInfo
public ApiResponse<SharedDashboardInvites> getPublicDashboardInvitationsWithHttpInfo(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) throws ApiException Describe the invitations that exist for the given shared dashboard (paginated).- Parameters:
token- Token of the shared dashboard for which to fetch invitations. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<SharedDashboardInvites>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getPublicDashboardInvitationsWithHttpInfoAsync
public CompletableFuture<ApiResponse<SharedDashboardInvites>> getPublicDashboardInvitationsWithHttpInfoAsync(String token, DashboardsApi.GetPublicDashboardInvitationsOptionalParameters parameters) Get all invitations for a shared dashboard.- Parameters:
token- Token of the shared dashboard for which to fetch invitations. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<SharedDashboardInvites>>
-
listDashboards
Get all dashboards.- Returns:
- DashboardSummary
- Throws:
ApiException- if fails to make API call
-
listDashboardsAsync
Get all dashboards.- Returns:
- CompletableFuture<DashboardSummary>
-
listDashboards
public DashboardSummary listDashboards(DashboardsApi.ListDashboardsOptionalParameters parameters) throws ApiException Get all dashboards.- Parameters:
parameters- Optional parameters for the request.- Returns:
- DashboardSummary
- Throws:
ApiException- if fails to make API call
-
listDashboardsAsync
public CompletableFuture<DashboardSummary> listDashboardsAsync(DashboardsApi.ListDashboardsOptionalParameters parameters) Get all dashboards.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<DashboardSummary>
-
listDashboardsWithPagination
Get all dashboards.- Returns:
- PaginationIterable<DashboardSummaryDefinition>
-
listDashboardsWithPagination
public PaginationIterable<DashboardSummaryDefinition> listDashboardsWithPagination(DashboardsApi.ListDashboardsOptionalParameters parameters) Get all dashboards.- Returns:
- DashboardSummary
-
listDashboardsWithHttpInfo
public ApiResponse<DashboardSummary> listDashboardsWithHttpInfo(DashboardsApi.ListDashboardsOptionalParameters parameters) throws ApiException Get all dashboards.Note: This query will only return custom created or cloned dashboards. This query will not return preset dashboards.
- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<DashboardSummary>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 403 Authentication Error - 429 Too many requests -
-
listDashboardsWithHttpInfoAsync
public CompletableFuture<ApiResponse<DashboardSummary>> listDashboardsWithHttpInfoAsync(DashboardsApi.ListDashboardsOptionalParameters parameters) Get all dashboards.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<DashboardSummary>>
-
restoreDashboards
Restore deleted dashboards.See
restoreDashboardsWithHttpInfo(com.datadog.api.client.v1.model.DashboardRestoreRequest).- Parameters:
body- Restore dashboards request body. (required)- Throws:
ApiException- if fails to make API call
-
restoreDashboardsAsync
Restore deleted dashboards.See
restoreDashboardsWithHttpInfoAsync(com.datadog.api.client.v1.model.DashboardRestoreRequest).- Parameters:
body- Restore dashboards request body. (required)- Returns:
- CompletableFuture
-
restoreDashboardsWithHttpInfo
public ApiResponse<Void> restoreDashboardsWithHttpInfo(DashboardRestoreRequest body) throws ApiException Restore dashboards using the specified IDs. If there are any failures, no dashboards will be restored (partial success is not allowed).- Parameters:
body- Restore dashboards request body. (required)- Returns:
- ApiResponse<Void>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 204 No Content - 400 Bad Request - 403 Forbidden - 404 Dashboards Not Found - 429 Too many requests -
-
restoreDashboardsWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> restoreDashboardsWithHttpInfoAsync(DashboardRestoreRequest body) Restore deleted dashboards.See
restoreDashboardsWithHttpInfo(com.datadog.api.client.v1.model.DashboardRestoreRequest).- Parameters:
body- Restore dashboards request body. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
updateDashboard
Update a dashboard.See
updateDashboardWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.Dashboard).- Parameters:
dashboardId- The ID of the dashboard. (required)body- Update Dashboard request body. (required)- Returns:
- Dashboard
- Throws:
ApiException- if fails to make API call
-
updateDashboardAsync
Update a dashboard.See
updateDashboardWithHttpInfoAsync(java.lang.String, com.datadog.api.client.v1.model.Dashboard).- Parameters:
dashboardId- The ID of the dashboard. (required)body- Update Dashboard request body. (required)- Returns:
- CompletableFuture<Dashboard>
-
updateDashboardWithHttpInfo
public ApiResponse<Dashboard> updateDashboardWithHttpInfo(String dashboardId, Dashboard body) throws ApiException Update a dashboard using the specified ID.- Parameters:
dashboardId- The ID of the dashboard. (required)body- Update Dashboard request body. (required)- Returns:
- ApiResponse<Dashboard>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Authentication Error - 404 Item Not Found - 429 Too many requests -
-
updateDashboardWithHttpInfoAsync
public CompletableFuture<ApiResponse<Dashboard>> updateDashboardWithHttpInfoAsync(String dashboardId, Dashboard body) Update a dashboard.See
updateDashboardWithHttpInfo(java.lang.String, com.datadog.api.client.v1.model.Dashboard).- Parameters:
dashboardId- The ID of the dashboard. (required)body- Update Dashboard request body. (required)- Returns:
- CompletableFuture<ApiResponse<Dashboard>>
-