@Consumes(value="application/json")
@Produces(value="application/json")
@Path(value="/streams/{streamId}/alerts/conditions")
public class StreamAlertConditionResource
extends RestResource
configuration, 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
NotFoundExceptionValidationException@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
NotFoundExceptionValidationException@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
NotFoundExceptionCopyright © 2012–2021 Graylog, Inc.. All rights reserved.