@Path(value="/streams/{streamid}/rules")
public class StreamRuleResource
extends RestResource
objectMapper, userService| Constructor and Description |
|---|
StreamRuleResource(StreamRuleService streamRuleService,
StreamService streamService) |
| Modifier and Type | Method and Description |
|---|---|
javax.ws.rs.core.Response |
create(String streamId,
CreateStreamRuleRequest cr) |
void |
delete(String streamid,
String streamRuleId) |
StreamRuleListResponse |
get(String streamid) |
StreamRule |
get(String streamid,
String streamRuleId) |
List<StreamRuleTypeResponse> |
types(String streamid) |
SingleStreamRuleSummaryResponse |
update(String streamid,
String streamRuleId,
CreateStreamRuleRequest cr) |
SingleStreamRuleSummaryResponse |
updateDeprecated(String streamid,
String streamRuleId,
CreateStreamRuleRequest cr)
Deprecated.
|
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint@Inject public StreamRuleResource(StreamRuleService streamRuleService, StreamService streamService)
@POST
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
public javax.ws.rs.core.Response create(@PathParam(value="streamid")
String streamId,
@NotNull
CreateStreamRuleRequest cr)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@PUT
@Path(value="/{streamRuleId}")
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
public SingleStreamRuleSummaryResponse update(@PathParam(value="streamid")
String streamid,
@PathParam(value="streamRuleId")
String streamRuleId,
@NotNull
CreateStreamRuleRequest cr)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@POST
@Path(value="/{streamRuleId}")
@Timed
@Consumes(value="application/json")
@Produces(value="application/json")
@Deprecated
public SingleStreamRuleSummaryResponse updateDeprecated(@PathParam(value="streamid")
String streamid,
@PathParam(value="streamRuleId")
String streamRuleId,
@NotNull
CreateStreamRuleRequest cr)
throws NotFoundException,
ValidationException
NotFoundExceptionValidationException@GET @Timed @Produces(value="application/json") public StreamRuleListResponse get(@PathParam(value="streamid") String streamid) throws NotFoundException
NotFoundException@GET
@Path(value="/{streamRuleId}")
@Timed
@Produces(value="application/json")
public StreamRule get(@PathParam(value="streamid")
String streamid,
@PathParam(value="streamRuleId")
String streamRuleId)
throws NotFoundException
NotFoundException@DELETE
@Path(value="/{streamRuleId}")
@Timed
public void delete(@PathParam(value="streamid")
String streamid,
@PathParam(value="streamRuleId") @NotEmpty
String streamRuleId)
throws NotFoundException
NotFoundException@GET @Path(value="/types") @Timed @Produces(value="application/json") public List<StreamRuleTypeResponse> types(@PathParam(value="streamid") String streamid)
Copyright © 2012-2016 Graylog, Inc.. All Rights Reserved.