@Consumes(value="application/json") @Produces(value="application/json") @Path(value="/streams/{streamId}/alerts/conditions") public class StreamAlertConditionResource extends RestResource
userService
Constructor and Description |
---|
StreamAlertConditionResource(StreamService streamService,
AlertService alertService,
Map<String,AlertCondition.Factory> alertConditionMap) |
Modifier and Type | Method and Description |
---|---|
javax.ws.rs.core.Response |
create(String streamid,
@Valid @NotNull CreateConditionRequest ccr) |
void |
delete(String streamid,
String conditionId) |
AlertConditionSummary |
get(String streamId,
String conditionId) |
AlertConditionListSummary |
list(String streamid) |
javax.ws.rs.core.Response |
testExisting(String streamId,
String conditionId) |
javax.ws.rs.core.Response |
testNew(String streamId,
@Valid @NotNull CreateConditionRequest ccr) |
void |
update(String streamid,
String conditionid,
@Valid @NotNull CreateConditionRequest ccr) |
checkAnyPermission, checkPermission, checkPermission, getCurrentUser, getIndexSet, getSubject, getUriBuilderToSelf, isAnyPermitted, isAnyPermitted, isPermitted, isPermitted, setPrettyPrint
@Inject public StreamAlertConditionResource(StreamService streamService, AlertService alertService, Map<String,AlertCondition.Factory> alertConditionMap)
@POST @Timed public javax.ws.rs.core.Response create(@PathParam(value="streamId") String streamid, @Valid @NotNull @Valid @NotNull CreateConditionRequest ccr) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@PUT @Timed @Path(value="{conditionId}") public void update(@PathParam(value="streamId") String streamid, @PathParam(value="conditionId") String conditionid, @Valid @NotNull @Valid @NotNull CreateConditionRequest ccr) throws NotFoundException, ValidationException
NotFoundException
ValidationException
@GET @Timed public AlertConditionListSummary list(@PathParam(value="streamId") String streamid) throws NotFoundException
NotFoundException
@DELETE @Timed @Path(value="{conditionId}") public void delete(@PathParam(value="streamId") String streamid, @PathParam(value="conditionId") String conditionId) throws NotFoundException
NotFoundException
@GET @Timed @Path(value="{conditionId}") public AlertConditionSummary get(@PathParam(value="streamId") String streamId, @PathParam(value="conditionId") String conditionId) throws NotFoundException
NotFoundException
@POST @Path(value="test") @Timed public javax.ws.rs.core.Response testNew(@PathParam(value="streamId") String streamId, @Valid @NotNull @Valid @NotNull CreateConditionRequest ccr) throws NotFoundException
NotFoundException
@POST @Path(value="{conditionId}/test") @Timed public javax.ws.rs.core.Response testExisting(@PathParam(value="streamId") String streamId, @PathParam(value="conditionId") String conditionId) throws NotFoundException
NotFoundException
Copyright © 2012–2019 Graylog, Inc.. All rights reserved.