Package com.datadog.api.client.v2.api
Class DashboardsApi
java.lang.Object
com.datadog.api.client.v2.api.DashboardsApi
@Generated("https://github.com/DataDog/datadog-api-client-java/blob/master/.generator")
public class DashboardsApi
extends Object
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to listDashboardsUsage. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionGet the API client.getDashboardUsage(String dashboardId) Get usage stats for a dashboard.getDashboardUsageAsync(String dashboardId) Get usage stats for a dashboard.getDashboardUsageWithHttpInfo(String dashboardId) Get usage statistics for a single dashboard.getDashboardUsageWithHttpInfoAsync(String dashboardId) Get usage stats for a dashboard.Get usage stats for all dashboards.Get usage stats for all dashboards.Get usage stats for all dashboards.Get usage stats for all dashboards.Get paginated usage statistics for every dashboard in the caller's organization.listDashboardsUsageWithHttpInfoAsync(DashboardsApi.ListDashboardsUsageOptionalParameters parameters) Get usage stats for all dashboards.Get usage stats for all dashboards.Get usage stats for all dashboards.voidsetApiClient(ApiClient apiClient) Set the API client.
-
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
-
getDashboardUsage
Get usage stats for a dashboard.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- DashboardUsageResponse
- Throws:
ApiException- if fails to make API call
-
getDashboardUsageAsync
Get usage stats for a dashboard.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- CompletableFuture<DashboardUsageResponse>
-
getDashboardUsageWithHttpInfo
public ApiResponse<DashboardUsageResponse> getDashboardUsageWithHttpInfo(String dashboardId) throws ApiException Get usage statistics for a single dashboard. The response includes view counts, the most recent view and edit times, widget counts, and the dashboard quality score. View-count fields depend on Real User Monitoring (RUM) and arenullor0in orgs without RUM. View counts are refreshed once per day and only reflect views recorded starting January 2025; views prior to that date are not included.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- ApiResponse<DashboardUsageResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 404 Not Found - 429 Too many requests -
-
getDashboardUsageWithHttpInfoAsync
public CompletableFuture<ApiResponse<DashboardUsageResponse>> getDashboardUsageWithHttpInfoAsync(String dashboardId) Get usage stats for a dashboard.- Parameters:
dashboardId- The ID of the dashboard. (required)- Returns:
- CompletableFuture<ApiResponse<DashboardUsageResponse>>
-
listDashboardsUsage
Get usage stats for all dashboards.- Returns:
- ListDashboardsUsageResponse
- Throws:
ApiException- if fails to make API call
-
listDashboardsUsageAsync
Get usage stats for all dashboards.- Returns:
- CompletableFuture<ListDashboardsUsageResponse>
-
listDashboardsUsage
public ListDashboardsUsageResponse listDashboardsUsage(DashboardsApi.ListDashboardsUsageOptionalParameters parameters) throws ApiException Get usage stats for all dashboards.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ListDashboardsUsageResponse
- Throws:
ApiException- if fails to make API call
-
listDashboardsUsageAsync
public CompletableFuture<ListDashboardsUsageResponse> listDashboardsUsageAsync(DashboardsApi.ListDashboardsUsageOptionalParameters parameters) Get usage stats for all dashboards.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ListDashboardsUsageResponse>
-
listDashboardsUsageWithPagination
Get usage stats for all dashboards.- Returns:
- PaginationIterable<DashboardUsage>
-
listDashboardsUsageWithPagination
public PaginationIterable<DashboardUsage> listDashboardsUsageWithPagination(DashboardsApi.ListDashboardsUsageOptionalParameters parameters) Get usage stats for all dashboards.- Returns:
- ListDashboardsUsageResponse
-
listDashboardsUsageWithHttpInfo
public ApiResponse<ListDashboardsUsageResponse> listDashboardsUsageWithHttpInfo(DashboardsApi.ListDashboardsUsageOptionalParameters parameters) throws ApiException Get paginated usage statistics for every dashboard in the caller's organization. Usepage[limit]andpage[offset]to walk the result set. Usefilter[edited_before]orfilter[viewed_before]to narrow results by edit or view date. View-count fields depend on Real User Monitoring (RUM) and arenullor0in orgs without RUM. View counts are refreshed once per day and only reflect views recorded starting January 2025; views prior to that date are not included.- Parameters:
parameters- Optional parameters for the request.- Returns:
- ApiResponse<ListDashboardsUsageResponse>
- Throws:
ApiException- if fails to make API call- Http Response Details:
Response details Status Code Description Response Headers 200 OK - 400 Bad Request - 403 Forbidden - 429 Too many requests -
-
listDashboardsUsageWithHttpInfoAsync
public CompletableFuture<ApiResponse<ListDashboardsUsageResponse>> listDashboardsUsageWithHttpInfoAsync(DashboardsApi.ListDashboardsUsageOptionalParameters parameters) Get usage stats for all dashboards.- Parameters:
parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<ListDashboardsUsageResponse>>
-