@Path(value="/dashboards") public class DashboardsResource extends RestResource
objectMapper, serverStatus, userService| Constructor and Description |
|---|
DashboardsResource(DashboardService dashboardService,
DashboardRegistry dashboardRegistry,
ActivityWriter activityWriter,
com.codahale.metrics.MetricRegistry metricRegistry,
Searches searches) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
addWidget(String dashboardId,
AddWidgetRequest awr) |
javax.ws.rs.core.Response |
create(CreateDashboardRequest cr) |
void |
delete(String dashboardId) |
Map<String,Object> |
get(String dashboardId) |
DashboardList |
list() |
void |
remove(String dashboardId,
String widgetId) |
void |
setPositions(String dashboardId,
WidgetPositions uwpr) |
void |
update(String dashboardId,
UpdateDashboardRequest cr) |
void |
updateCacheTime(String dashboardId,
String widgetId,
UpdateWidgetRequest uwr) |
void |
updateDescription(String dashboardId,
String widgetId,
UpdateWidgetRequest uwr) |
Map<String,Object> |
widgetValue(String dashboardId,
String widgetId) |
bytesToValueMap, checkPermission, checkPermission, getCurrentUser, getSubject, guessContentType, isPermitted, isPermitted, page, restrictToMaster, setPrettyPrint@Inject public DashboardsResource(DashboardService dashboardService, DashboardRegistry dashboardRegistry, ActivityWriter activityWriter, com.codahale.metrics.MetricRegistry metricRegistry, Searches searches)
@POST @Timed @Consumes(value="application/json") @Produces(value="application/json") public javax.ws.rs.core.Response create(CreateDashboardRequest cr) throws ValidationException
ValidationException@GET @Timed @Produces(value="application/json") public DashboardList list()
@GET
@Timed
@Path(value="/{dashboardId}")
@Produces(value="application/json")
public Map<String,Object> get(@PathParam(value="dashboardId")
String dashboardId)
throws NotFoundException
NotFoundException@DELETE
@Timed
@Produces(value="application/json")
@Path(value="/{dashboardId}")
public void delete(@PathParam(value="dashboardId")
String dashboardId)
throws NotFoundException
NotFoundException@PUT
@Timed
@Produces(value="application/json")
@Path(value="/{dashboardId}")
public void update(@PathParam(value="dashboardId")
String dashboardId,
UpdateDashboardRequest cr)
throws ValidationException,
NotFoundException
ValidationExceptionNotFoundException@PUT
@Timed
@Produces(value="application/json")
@Path(value="/{dashboardId}/positions")
public void setPositions(@PathParam(value="dashboardId")
String dashboardId,
WidgetPositions uwpr)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@POST
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="/{dashboardId}/widgets")
public javax.ws.rs.core.Response addWidget(@PathParam(value="dashboardId")
String dashboardId,
AddWidgetRequest awr)
throws ValidationException
ValidationException@DELETE
@Timed
@Path(value="/{dashboardId}/widgets/{widgetId}")
@Produces(value="application/json")
public void remove(@PathParam(value="dashboardId")
String dashboardId,
@PathParam(value="widgetId")
String widgetId)
@GET
@Timed
@Path(value="/{dashboardId}/widgets/{widgetId}/value")
@Produces(value="application/json")
public Map<String,Object> widgetValue(@PathParam(value="dashboardId")
String dashboardId,
@PathParam(value="widgetId")
String widgetId)
@PUT
@Timed
@Path(value="/{dashboardId}/widgets/{widgetId}/description")
@Produces(value="application/json")
public void updateDescription(@PathParam(value="dashboardId")
String dashboardId,
@PathParam(value="widgetId")
String widgetId,
UpdateWidgetRequest uwr)
throws ValidationException
ValidationException@PUT
@Timed
@Path(value="/{dashboardId}/widgets/{widgetId}/cachetime")
@Produces(value="application/json")
public void updateCacheTime(@PathParam(value="dashboardId")
String dashboardId,
@PathParam(value="widgetId")
String widgetId,
UpdateWidgetRequest uwr)
throws ValidationException
ValidationExceptionCopyright © 2012-2015 Graylog, Inc.. All Rights Reserved.