Class WidgetsApi
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classManage optional parameters to searchWidgets. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptioncreateWidget(WidgetExperienceType experienceType, CreateOrUpdateWidgetRequest body) Create a widget.createWidgetAsync(WidgetExperienceType experienceType, CreateOrUpdateWidgetRequest body) Create a widget.createWidgetWithHttpInfo(WidgetExperienceType experienceType, CreateOrUpdateWidgetRequest body) Create a new widget for a given experience type.createWidgetWithHttpInfoAsync(WidgetExperienceType experienceType, CreateOrUpdateWidgetRequest body) Create a widget.voiddeleteWidget(WidgetExperienceType experienceType, UUID uuid) Delete a widget.deleteWidgetAsync(WidgetExperienceType experienceType, UUID uuid) Delete a widget.deleteWidgetWithHttpInfo(WidgetExperienceType experienceType, UUID uuid) Soft-delete a widget by its UUID for a given experience type.deleteWidgetWithHttpInfoAsync(WidgetExperienceType experienceType, UUID uuid) Delete a widget.Get the API client.getWidget(WidgetExperienceType experienceType, UUID uuid) Get a widget.getWidgetAsync(WidgetExperienceType experienceType, UUID uuid) Get a widget.getWidgetWithHttpInfo(WidgetExperienceType experienceType, UUID uuid) Retrieve a widget by its UUID for a given experience type.getWidgetWithHttpInfoAsync(WidgetExperienceType experienceType, UUID uuid) Get a widget.searchWidgets(WidgetExperienceType experienceType) Search widgets.searchWidgets(WidgetExperienceType experienceType, WidgetsApi.SearchWidgetsOptionalParameters parameters) Search widgets.searchWidgetsAsync(WidgetExperienceType experienceType) Search widgets.searchWidgetsAsync(WidgetExperienceType experienceType, WidgetsApi.SearchWidgetsOptionalParameters parameters) Search widgets.searchWidgetsWithHttpInfo(WidgetExperienceType experienceType, WidgetsApi.SearchWidgetsOptionalParameters parameters) Search and list widgets for a given experience type, with filtering, sorting, and pagination.searchWidgetsWithHttpInfoAsync(WidgetExperienceType experienceType, WidgetsApi.SearchWidgetsOptionalParameters parameters) Search widgets.voidsetApiClient(ApiClient apiClient) Set the API client.updateWidget(WidgetExperienceType experienceType, UUID uuid, CreateOrUpdateWidgetRequest body) Update a widget.updateWidgetAsync(WidgetExperienceType experienceType, UUID uuid, CreateOrUpdateWidgetRequest body) Update a widget.updateWidgetWithHttpInfo(WidgetExperienceType experienceType, UUID uuid, CreateOrUpdateWidgetRequest body) Update a widget by its UUID for a given experience type.updateWidgetWithHttpInfoAsync(WidgetExperienceType experienceType, UUID uuid, CreateOrUpdateWidgetRequest body) Update a widget.
-
Constructor Details
-
WidgetsApi
public WidgetsApi() -
WidgetsApi
-
-
Method Details
-
getApiClient
Get the API client.- Returns:
- API client
-
setApiClient
Set the API client.- Parameters:
apiClient- an instance of API client
-
createWidget
public WidgetResponse createWidget(WidgetExperienceType experienceType, CreateOrUpdateWidgetRequest body) throws ApiException Create a widget.- Parameters:
experienceType- The experience type for the widget. (required)body- Widget request body. Thedefinitionobject's required fields vary bywidget.definition.type: every type requiresrequests, and some types require additional fields (e.g.cloud_cost_summaryrequiresgraph_options,geomaprequiresstyleandview). The example below shows a completecloud_cost_summarypayload for theccm_reportsexperience type. (required)- Returns:
- WidgetResponse
- Throws:
ApiException- if fails to make API call
-
createWidgetAsync
public CompletableFuture<WidgetResponse> createWidgetAsync(WidgetExperienceType experienceType, CreateOrUpdateWidgetRequest body) Create a widget.- Parameters:
experienceType- The experience type for the widget. (required)body- Widget request body. Thedefinitionobject's required fields vary bywidget.definition.type: every type requiresrequests, and some types require additional fields (e.g.cloud_cost_summaryrequiresgraph_options,geomaprequiresstyleandview). The example below shows a completecloud_cost_summarypayload for theccm_reportsexperience type. (required)- Returns:
- CompletableFuture<WidgetResponse>
-
createWidgetWithHttpInfo
public ApiResponse<WidgetResponse> createWidgetWithHttpInfo(WidgetExperienceType experienceType, CreateOrUpdateWidgetRequest body) throws ApiException Create a new widget for a given experience type.- Parameters:
experienceType- The experience type for the widget. (required)body- Widget request body. Thedefinitionobject's required fields vary bywidget.definition.type: every type requiresrequests, and some types require additional fields (e.g.cloud_cost_summaryrequiresgraph_options,geomaprequiresstyleandview). The example below shows a completecloud_cost_summarypayload for theccm_reportsexperience type. (required)- Returns:
- ApiResponse<WidgetResponse>
- 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 -
-
createWidgetWithHttpInfoAsync
public CompletableFuture<ApiResponse<WidgetResponse>> createWidgetWithHttpInfoAsync(WidgetExperienceType experienceType, CreateOrUpdateWidgetRequest body) Create a widget.- Parameters:
experienceType- The experience type for the widget. (required)body- Widget request body. Thedefinitionobject's required fields vary bywidget.definition.type: every type requiresrequests, and some types require additional fields (e.g.cloud_cost_summaryrequiresgraph_options,geomaprequiresstyleandview). The example below shows a completecloud_cost_summarypayload for theccm_reportsexperience type. (required)- Returns:
- CompletableFuture<ApiResponse<WidgetResponse>>
-
deleteWidget
Delete a widget.See
deleteWidgetWithHttpInfo(com.datadog.api.client.v2.model.WidgetExperienceType, java.util.UUID).- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)- Throws:
ApiException- if fails to make API call
-
deleteWidgetAsync
Delete a widget.See
deleteWidgetWithHttpInfoAsync(com.datadog.api.client.v2.model.WidgetExperienceType, java.util.UUID).- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)- Returns:
- CompletableFuture
-
deleteWidgetWithHttpInfo
public ApiResponse<Void> deleteWidgetWithHttpInfo(WidgetExperienceType experienceType, UUID uuid) throws ApiException Soft-delete a widget by its UUID for a given experience type.- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (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 Not Found - 429 Too many requests -
-
deleteWidgetWithHttpInfoAsync
public CompletableFuture<ApiResponse<Void>> deleteWidgetWithHttpInfoAsync(WidgetExperienceType experienceType, UUID uuid) Delete a widget.See
deleteWidgetWithHttpInfo(com.datadog.api.client.v2.model.WidgetExperienceType, java.util.UUID).- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)- Returns:
- CompletableFuture<ApiResponse<Void>>
-
getWidget
Get a widget.See
getWidgetWithHttpInfo(com.datadog.api.client.v2.model.WidgetExperienceType, java.util.UUID).- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)- Returns:
- WidgetResponse
- Throws:
ApiException- if fails to make API call
-
getWidgetAsync
public CompletableFuture<WidgetResponse> getWidgetAsync(WidgetExperienceType experienceType, UUID uuid) Get a widget.See
getWidgetWithHttpInfoAsync(com.datadog.api.client.v2.model.WidgetExperienceType, java.util.UUID).- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)- Returns:
- CompletableFuture<WidgetResponse>
-
getWidgetWithHttpInfo
public ApiResponse<WidgetResponse> getWidgetWithHttpInfo(WidgetExperienceType experienceType, UUID uuid) throws ApiException Retrieve a widget by its UUID for a given experience type.- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)- Returns:
- ApiResponse<WidgetResponse>
- 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 -
-
getWidgetWithHttpInfoAsync
public CompletableFuture<ApiResponse<WidgetResponse>> getWidgetWithHttpInfoAsync(WidgetExperienceType experienceType, UUID uuid) Get a widget.See
getWidgetWithHttpInfo(com.datadog.api.client.v2.model.WidgetExperienceType, java.util.UUID).- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)- Returns:
- CompletableFuture<ApiResponse<WidgetResponse>>
-
searchWidgets
Search widgets.- Parameters:
experienceType- The experience type for the widget. (required)- Returns:
- WidgetListResponse
- Throws:
ApiException- if fails to make API call
-
searchWidgetsAsync
public CompletableFuture<WidgetListResponse> searchWidgetsAsync(WidgetExperienceType experienceType) Search widgets.- Parameters:
experienceType- The experience type for the widget. (required)- Returns:
- CompletableFuture<WidgetListResponse>
-
searchWidgets
public WidgetListResponse searchWidgets(WidgetExperienceType experienceType, WidgetsApi.SearchWidgetsOptionalParameters parameters) throws ApiException Search widgets.- Parameters:
experienceType- The experience type for the widget. (required)parameters- Optional parameters for the request.- Returns:
- WidgetListResponse
- Throws:
ApiException- if fails to make API call
-
searchWidgetsAsync
public CompletableFuture<WidgetListResponse> searchWidgetsAsync(WidgetExperienceType experienceType, WidgetsApi.SearchWidgetsOptionalParameters parameters) Search widgets.- Parameters:
experienceType- The experience type for the widget. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<WidgetListResponse>
-
searchWidgetsWithHttpInfo
public ApiResponse<WidgetListResponse> searchWidgetsWithHttpInfo(WidgetExperienceType experienceType, WidgetsApi.SearchWidgetsOptionalParameters parameters) throws ApiException Search and list widgets for a given experience type, with filtering, sorting, and pagination.Response meta carries totals scoped to the current filter: -
filtered_total— widgets matching the filter. -created_by_you_total— among the matches, how many the current user created. -favorited_by_you_total— among the matches, how many the current user has favorited. -created_by_anyone_total— total widgets in the experience type, ignoring filters.Each returned widget includes
is_favoritedreflecting the current user's favorite status. Favoriting itself is performed through the shared favorites API, not this endpoint.- Parameters:
experienceType- The experience type for the widget. (required)parameters- Optional parameters for the request.- Returns:
- ApiResponse<WidgetListResponse>
- 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 -
-
searchWidgetsWithHttpInfoAsync
public CompletableFuture<ApiResponse<WidgetListResponse>> searchWidgetsWithHttpInfoAsync(WidgetExperienceType experienceType, WidgetsApi.SearchWidgetsOptionalParameters parameters) Search widgets.- Parameters:
experienceType- The experience type for the widget. (required)parameters- Optional parameters for the request.- Returns:
- CompletableFuture<ApiResponse<WidgetListResponse>>
-
updateWidget
public WidgetResponse updateWidget(WidgetExperienceType experienceType, UUID uuid, CreateOrUpdateWidgetRequest body) throws ApiException Update a widget.- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)body- Widget request body. Thedefinitionobject's required fields vary bywidget.definition.type; seeCreateWidgetabove for a complete worked payload. Update is a full replacement of the widget definition. (required)- Returns:
- WidgetResponse
- Throws:
ApiException- if fails to make API call
-
updateWidgetAsync
public CompletableFuture<WidgetResponse> updateWidgetAsync(WidgetExperienceType experienceType, UUID uuid, CreateOrUpdateWidgetRequest body) Update a widget.- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)body- Widget request body. Thedefinitionobject's required fields vary bywidget.definition.type; seeCreateWidgetabove for a complete worked payload. Update is a full replacement of the widget definition. (required)- Returns:
- CompletableFuture<WidgetResponse>
-
updateWidgetWithHttpInfo
public ApiResponse<WidgetResponse> updateWidgetWithHttpInfo(WidgetExperienceType experienceType, UUID uuid, CreateOrUpdateWidgetRequest body) throws ApiException Update a widget by its UUID for a given experience type. This performs a full replacement of the widget definition.- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)body- Widget request body. Thedefinitionobject's required fields vary bywidget.definition.type; seeCreateWidgetabove for a complete worked payload. Update is a full replacement of the widget definition. (required)- Returns:
- ApiResponse<WidgetResponse>
- 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 -
-
updateWidgetWithHttpInfoAsync
public CompletableFuture<ApiResponse<WidgetResponse>> updateWidgetWithHttpInfoAsync(WidgetExperienceType experienceType, UUID uuid, CreateOrUpdateWidgetRequest body) Update a widget.- Parameters:
experienceType- The experience type for the widget. (required)uuid- The UUID of the widget. (required)body- Widget request body. Thedefinitionobject's required fields vary bywidget.definition.type; seeCreateWidgetabove for a complete worked payload. Update is a full replacement of the widget definition. (required)- Returns:
- CompletableFuture<ApiResponse<WidgetResponse>>
-