Class AggregationEventProcessorConfig
java.lang.Object
org.graylog.events.processor.aggregation.AggregationEventProcessorConfig
- All Implemented Interfaces:
EventProcessorConfig,ContentPackable<EventProcessorConfigEntity>
public abstract class AggregationEventProcessorConfig
extends Object
implements EventProcessorConfig
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from interface org.graylog.events.processor.EventProcessorConfig
EventProcessorConfig.FallbackConfig -
Field Summary
FieldsFields inherited from interface org.graylog.events.processor.EventProcessorConfig
TYPE_FIELD -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionbuilder()abstract Optional<AggregationConditions>abstract longgroupBy()abstract Stringquery()abstract com.google.common.collect.ImmutableSet<Parameter>Returns the permissions that are required to create the event processor configuration.voidresolveNativeEntity(EntityDescriptor entityDescriptor, com.google.common.graph.MutableGraph<EntityDescriptor> mutableGraph) abstract longabstract List<AggregationSeries>series()abstract com.google.common.collect.ImmutableSet<String>streams()toContentPackEntity(EntityDescriptorIds entityDescriptorIds) toJobSchedulerConfig(EventDefinition eventDefinition, JobSchedulerClock clock) Returns aJobDefinitionConfigfor this event processor configuration.validate()Validates the event processor configuration.Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.graylog2.contentpacks.ContentPackable
getContentPackPluginPackageMethods inherited from interface org.graylog.events.processor.EventProcessorConfig
isContentPackExportable, isUserPresentable, type
-
Field Details
-
TYPE_NAME
- See Also:
-
-
Constructor Details
-
AggregationEventProcessorConfig
public AggregationEventProcessorConfig()
-
-
Method Details
-
query
-
queryParameters
-
streams
-
groupBy
-
series
-
conditions
-
searchWithinMs
public abstract long searchWithinMs() -
executeEveryMs
public abstract long executeEveryMs() -
requiredPermissions
Description copied from interface:EventProcessorConfigReturns the permissions that are required to create the event processor configuration. (e.g. stream permissions)- Specified by:
requiredPermissionsin interfaceEventProcessorConfig- Returns:
- the required permissions
-
builder
-
toBuilder
-
toJobSchedulerConfig
public Optional<EventProcessorSchedulerConfig> toJobSchedulerConfig(EventDefinition eventDefinition, JobSchedulerClock clock) Description copied from interface:EventProcessorConfigReturns aJobDefinitionConfigfor this event processor configuration. If the event processor shouldn't be scheduled, this method returns an emptyOptional.- Specified by:
toJobSchedulerConfigin interfaceEventProcessorConfig- Parameters:
eventDefinition- the event definitionclock- the clock that can be used to get the current time- Returns:
- the job definition config or an empty optional if the processor shouldn't be scheduled
-
validate
Description copied from interface:EventProcessorConfigValidates the event processor configuration.- Specified by:
validatein interfaceEventProcessorConfig- Returns:
- the validation result
-
toContentPackEntity
- Specified by:
toContentPackEntityin interfaceContentPackable<EventProcessorConfigEntity>
-
resolveNativeEntity
public void resolveNativeEntity(EntityDescriptor entityDescriptor, com.google.common.graph.MutableGraph<EntityDescriptor> mutableGraph) - Specified by:
resolveNativeEntityin interfaceContentPackable<EventProcessorConfigEntity>
-