@Path(value="/dashboards/{dashboardId}/widgets") public class DashboardWidgetsResource extends RestResource
userService
Constructor and Description |
---|
DashboardWidgetsResource(DashboardWidgetCreator dashboardWidgetCreator,
ActivityWriter activityWriter,
WidgetResultCache widgetResultCache,
DashboardService dashboardService,
ClusterEventBus clusterEventBus) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
addWidget(String dashboardId,
AddWidgetRequest awr) |
WidgetSummary |
getWidget(String dashboardId,
String widgetId) |
void |
remove(String dashboardId,
String widgetId) |
void |
updateCacheTime(String dashboardId,
String widgetId,
@Valid UpdateWidgetRequest uwr)
Deprecated.
|
void |
updateDescription(String dashboardId,
String widgetId,
@Valid UpdateWidgetRequest uwr)
Deprecated.
|
void |
updateWidget(String dashboardId,
String widgetId,
@Valid @NotNull AddWidgetRequest awr) |
Map<String,Object> |
widgetValue(String dashboardId,
String widgetId) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
@Inject public DashboardWidgetsResource(DashboardWidgetCreator dashboardWidgetCreator, ActivityWriter activityWriter, WidgetResultCache widgetResultCache, DashboardService dashboardService, ClusterEventBus clusterEventBus)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response addWidget(@PathParam(value="dashboardId") String dashboardId, AddWidgetRequest awr) throws ValidationException, NotFoundException
ValidationException
NotFoundException
@GET @Timed @Path(value="/{widgetId}") @Produces(value="application/json") public WidgetSummary getWidget(@PathParam(value="dashboardId") String dashboardId, @PathParam(value="widgetId") String widgetId) throws NotFoundException
NotFoundException
@DELETE @Timed @Path(value="/{widgetId}") @Produces(value="application/json") public void remove(@PathParam(value="dashboardId") String dashboardId, @PathParam(value="widgetId") String widgetId) throws NotFoundException
NotFoundException
@GET @Timed @Path(value="/{widgetId}/value") @Produces(value="application/json") public Map<String,Object> widgetValue(@PathParam(value="dashboardId") String dashboardId, @PathParam(value="widgetId") String widgetId) throws NotFoundException, InvalidWidgetConfigurationException
@PUT @Timed @Path(value="/{widgetId}") @Produces(value="application/json") public void updateWidget(@PathParam(value="dashboardId") String dashboardId, @PathParam(value="widgetId") String widgetId, @Valid @NotNull @Valid @NotNull AddWidgetRequest awr) throws ValidationException, NotFoundException
ValidationException
NotFoundException
@Deprecated @PUT @Timed @Path(value="/{widgetId}/description") @Produces(value="application/json") public void updateDescription(@PathParam(value="dashboardId") String dashboardId, @PathParam(value="widgetId") String widgetId, @Valid @Valid UpdateWidgetRequest uwr) throws ValidationException, NotFoundException
ValidationException
NotFoundException
@Deprecated @PUT @Timed @Path(value="/{widgetId}/cachetime") @Produces(value="application/json") public void updateCacheTime(@PathParam(value="dashboardId") String dashboardId, @PathParam(value="widgetId") String widgetId, @Valid @Valid UpdateWidgetRequest uwr) throws ValidationException, NotFoundException
ValidationException
NotFoundException
Copyright © 2012–2018 Graylog, Inc.. All rights reserved.