Class PivotAggregationSearch
java.lang.Object
org.graylog.events.processor.aggregation.PivotAggregationSearch
- All Implemented Interfaces:
AggregationSearch
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.graylog.events.processor.aggregation.AggregationSearch
AggregationSearch.Factory, AggregationSearch.User -
Constructor Summary
ConstructorsConstructorDescriptionPivotAggregationSearch(AggregationEventProcessorConfig config, AggregationEventProcessorParameters parameters, AggregationSearch.User searchOwner, EventDefinition eventDefinition, List<SearchType> additionalSearchTypes, SearchJobService searchJobService, QueryEngine queryEngine, EventsConfigurationProvider configProvider, MoreSearch moreSearch, PermittedStreams permittedStreams, NotificationService notificationService, QueryStringDecorators queryStringDecorators, SearchNormalization searchNormalization) -
Method Summary
Modifier and TypeMethodDescriptiondoSearch()protected QuerygetAggregationQuery(AggregationEventProcessorParameters parameters, long searchWithinMs, long executeEveryMs) Returns the query to compute the aggregation.protected SearchJobgetSearchJob(AggregationEventProcessorParameters parameters, AggregationSearch.User user, long searchWithinMs, long executeEveryMs)
-
Constructor Details
-
PivotAggregationSearch
@Inject public PivotAggregationSearch(AggregationEventProcessorConfig config, AggregationEventProcessorParameters parameters, AggregationSearch.User searchOwner, EventDefinition eventDefinition, List<SearchType> additionalSearchTypes, SearchJobService searchJobService, QueryEngine queryEngine, EventsConfigurationProvider configProvider, MoreSearch moreSearch, PermittedStreams permittedStreams, NotificationService notificationService, QueryStringDecorators queryStringDecorators, SearchNormalization searchNormalization)
-
-
Method Details
-
doSearch
- Specified by:
doSearchin interfaceAggregationSearch- Throws:
EventProcessorException
-
getSearchJob
protected SearchJob getSearchJob(AggregationEventProcessorParameters parameters, AggregationSearch.User user, long searchWithinMs, long executeEveryMs) throws EventProcessorException - Throws:
EventProcessorException
-
getAggregationQuery
protected Query getAggregationQuery(AggregationEventProcessorParameters parameters, long searchWithinMs, long executeEveryMs) Returns the query to compute the aggregation.- Parameters:
parameters- processor parameterssearchWithinMs- processor search within period. Used to build the date range bucketsexecuteEveryMs-- Returns:
- aggregation query
-