Package org.graylog2.streams
Interface StreamRuleService
- All Superinterfaces:
PersistedService
- All Known Implementing Classes:
StreamRuleServiceImpl
-
Method Summary
Modifier and TypeMethodDescriptioncopy(String streamId, StreamRule streamRule) create(String streamId, CreateStreamRuleRequest request) intdestroy(StreamRule streamRule) loadForStream(Stream stream) loadForStreamId(String streamId) loadForStreamIds(Collection<String> streamIds) save(Collection<StreamRule> streamRules) save(StreamRule streamRule) longstreamRuleCount(String streamId) longMethods inherited from interface org.graylog2.plugin.database.PersistedService
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validate
-
Method Details
-
load
- Throws:
NotFoundException
-
loadForStream
-
create
-
create
-
copy
-
save
- Throws:
ValidationException
-
save
- Throws:
ValidationException
-
destroy
-
loadForStreamId
-
loadForStreamIds
-
totalStreamRuleCount
long totalStreamRuleCount()- Returns:
- the total number of stream rules
-
streamRuleCount
- Parameters:
streamId- the stream ID- Returns:
- the number of stream rules for the specified stream
-
streamRuleCountByStream
- Returns:
- the number of stream rules grouped by stream
-