public interface StreamService extends PersistedService
destroy, destroyAll, save, saveWithoutValidation, validate, validate, validateStream create(CreateStreamRequest request, String userId)
String save(Stream stream) throws ValidationException
ValidationExceptionString saveWithRulesAndOwnership(Stream stream, Collection<StreamRule> streamRules, User user) throws ValidationException
ValidationExceptionStream load(String id) throws NotFoundException
NotFoundExceptionvoid destroy(Stream stream) throws NotFoundException
NotFoundExceptionSet<Stream> loadByIds(Collection<String> streamIds)
Set<String> indexSetIdsByIds(Collection<String> streamIds)
long count()
void pause(Stream stream) throws ValidationException
ValidationExceptionvoid resume(Stream stream) throws ValidationException
ValidationExceptionList<StreamRule> getStreamRules(Stream stream) throws NotFoundException
NotFoundExceptionList<AlertCondition> getAlertConditions(Stream stream)
AlertCondition getAlertCondition(Stream stream, String conditionId) throws NotFoundException
NotFoundExceptionvoid addAlertCondition(Stream stream, AlertCondition condition) throws ValidationException
ValidationExceptionvoid updateAlertCondition(Stream stream, AlertCondition condition) throws ValidationException
ValidationException@Deprecated void addAlertReceiver(Stream stream, String type, String name)
@Deprecated void removeAlertReceiver(Stream stream, String type, String name)
void addOutputs(org.bson.types.ObjectId streamId,
Collection<org.bson.types.ObjectId> outputIds)
void removeOutputFromAllStreams(Output output)
Copyright © 2012–2021 Graylog, Inc.. All rights reserved.