public interface StreamRuleService extends PersistedService
| Modifier and Type | Method and Description |
|---|---|
StreamRule |
copy(String streamId,
StreamRule streamRule) |
StreamRule |
create(Map<String,Object> data) |
StreamRule |
create(String streamId,
CreateStreamRuleRequest request) |
int |
destroy(StreamRule streamRule) |
StreamRule |
load(String id) |
List<StreamRule> |
loadForStream(Stream stream) |
List<StreamRule> |
loadForStreamId(String streamId) |
Map<String,List<StreamRule>> |
loadForStreamIds(Collection<String> streamIds) |
Set<String> |
save(Collection<StreamRule> streamRules) |
String |
save(StreamRule streamRule) |
long |
streamRuleCount(String streamId) |
Map<String,Long> |
streamRuleCountByStream() |
long |
totalStreamRuleCount() |
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validateStreamRule load(String id) throws NotFoundException
NotFoundExceptionList<StreamRule> loadForStream(Stream stream)
StreamRule create(Map<String,Object> data)
StreamRule create(@Nullable String streamId, CreateStreamRuleRequest request)
StreamRule copy(@Nullable String streamId, StreamRule streamRule)
String save(StreamRule streamRule) throws ValidationException
ValidationExceptionSet<String> save(Collection<StreamRule> streamRules) throws ValidationException
ValidationExceptionint destroy(StreamRule streamRule)
List<StreamRule> loadForStreamId(String streamId)
Map<String,List<StreamRule>> loadForStreamIds(Collection<String> streamIds)
long totalStreamRuleCount()
long streamRuleCount(String streamId)
streamId - the stream IDCopyright © 2012–2021 Graylog, Inc.. All rights reserved.