@Path(value="/dashboards/{dashboardId}/widgets")
public class DashboardWidgetsResource
extends RestResource
objectMapper, userService| Constructor and Description |
|---|
DashboardWidgetsResource(DashboardWidgetCreator dashboardWidgetCreator,
ActivityWriter activityWriter,
WidgetResultCache widgetResultCache,
DashboardService dashboardService) |
| 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,
UpdateWidgetRequest uwr)
Deprecated.
|
void |
updateDescription(String dashboardId,
String widgetId,
UpdateWidgetRequest uwr)
Deprecated.
|
void |
updateWidget(String dashboardId,
String widgetId,
AddWidgetRequest awr) |
Map<String,Object> |
widgetValue(String dashboardId,
String widgetId) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public DashboardWidgetsResource(DashboardWidgetCreator dashboardWidgetCreator, ActivityWriter activityWriter, WidgetResultCache widgetResultCache, DashboardService dashboardService)
@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
ValidationExceptionNotFoundException@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,
@NotNull
AddWidgetRequest awr)
throws ValidationException,
NotFoundException
ValidationExceptionNotFoundException@Deprecated @PUT @Timed @Path(value="/{widgetId}/description") @Produces(value="application/json") public void updateDescription(@PathParam(value="dashboardId") String dashboardId, @PathParam(value="widgetId") String widgetId, UpdateWidgetRequest uwr) throws ValidationException, NotFoundException
ValidationExceptionNotFoundException@Deprecated @PUT @Timed @Path(value="/{widgetId}/cachetime") @Produces(value="application/json") public void updateCacheTime(@PathParam(value="dashboardId") String dashboardId, @PathParam(value="widgetId") String widgetId, UpdateWidgetRequest uwr) throws ValidationException, NotFoundException
ValidationExceptionNotFoundExceptionCopyright © 2012-2016 Graylog, Inc.. All Rights Reserved.