Package org.graylog.events.processor
Class EventDefinitionDto
java.lang.Object
org.graylog2.database.entities.ScopedEntity
org.graylog.events.processor.EventDefinitionDto
- All Implemented Interfaces:
EventDefinition,ContentPackable<EventDefinitionEntity>,MongoEntity
public abstract class EventDefinitionDto
extends ScopedEntity
implements EventDefinition, ContentPackable<EventDefinitionEntity>
-
Nested Class Summary
Nested ClassesNested classes/interfaces inherited from class org.graylog2.database.entities.ScopedEntity
ScopedEntity.AbstractBuilder<SELF extends ScopedEntity.AbstractBuilder<SELF>>Nested classes/interfaces inherited from interface org.graylog.events.processor.EventDefinition
EventDefinition.State -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final StringFields inherited from class org.graylog2.database.entities.ScopedEntity
FIELD_ID, FIELD_SCOPE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionabstract booleanalert()static EventDefinitionDto.Builderbuilder()abstract EventProcessorConfigconfig()abstract Stringabstract com.google.common.collect.ImmutableMap<String,EventFieldSpec> abstract Stringid()ID of the entity.abstract com.google.common.collect.ImmutableList<String>keySpec()abstract org.joda.time.DateTimeabstract com.google.common.collect.ImmutableList<EventNotificationHandler.Config>abstract EventNotificationSettingsabstract intpriority()abstract StringvoidresolveNativeEntity(EntityDescriptor entityDescriptor, com.google.common.graph.MutableGraph<EntityDescriptor> mutableGraph) abstract EventDefinition.Statestate()abstract com.google.common.collect.ImmutableList<EventStorageHandler.Config>storage()abstract Stringtitle()abstract EventDefinitionDto.BuildertoContentPackEntity(EntityDescriptorIds entityDescriptorIds) abstract org.joda.time.DateTimevalidate(EventDefinitionDto oldEventDefinitionDto, EventDefinitionConfiguration eventDefinitionConfiguration) Methods inherited from class org.graylog2.database.entities.ScopedEntity
scopeMethods 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.EventDefinition
requiredPermissions
-
Field Details
-
FIELD_TITLE
- See Also:
-
FIELD_DESCRIPTION
- See Also:
-
FIELD_REMEDIATION_STEPS
- See Also:
-
FIELD_NOTIFICATIONS
- See Also:
-
FIELD_STATE
- See Also:
-
FIELD_UPDATED_AT
- See Also:
-
FIELD_MATCHED_AT
- See Also:
-
FIELD_CONFIG
- See Also:
-
-
Constructor Details
-
EventDefinitionDto
public EventDefinitionDto()
-
-
Method Details
-
id
Description copied from interface:MongoEntityID of the entity. Will be stored as field "_id" with type ObjectId in MongoDB.- Specified by:
idin interfaceEventDefinition- Specified by:
idin interfaceMongoEntity- Returns:
- Hex string representation of the entity's ID
-
title
- Specified by:
titlein interfaceEventDefinition
-
description
- Specified by:
descriptionin interfaceEventDefinition
-
remediationSteps
- Specified by:
remediationStepsin interfaceEventDefinition
-
updatedAt
@Nullable public abstract org.joda.time.DateTime updatedAt()- Specified by:
updatedAtin interfaceEventDefinition
-
matchedAt
@Nullable public abstract org.joda.time.DateTime matchedAt()- Specified by:
matchedAtin interfaceEventDefinition
-
priority
public abstract int priority()- Specified by:
priorityin interfaceEventDefinition
-
alert
public abstract boolean alert()- Specified by:
alertin interfaceEventDefinition
-
config
- Specified by:
configin interfaceEventDefinition
-
fieldSpec
- Specified by:
fieldSpecin interfaceEventDefinition
-
keySpec
- Specified by:
keySpecin interfaceEventDefinition
-
notificationSettings
- Specified by:
notificationSettingsin interfaceEventDefinition
-
notifications
public abstract com.google.common.collect.ImmutableList<EventNotificationHandler.Config> notifications()- Specified by:
notificationsin interfaceEventDefinition
-
storage
- Specified by:
storagein interfaceEventDefinition
-
schedulerCtx
- Specified by:
schedulerCtxin interfaceEventDefinition
-
state
-
builder
-
toBuilder
-
validate
public ValidationResult validate(@Nullable EventDefinitionDto oldEventDefinitionDto, EventDefinitionConfiguration eventDefinitionConfiguration) -
toContentPackEntity
- Specified by:
toContentPackEntityin interfaceContentPackable<EventDefinitionEntity>
-
resolveNativeEntity
public void resolveNativeEntity(EntityDescriptor entityDescriptor, com.google.common.graph.MutableGraph<EntityDescriptor> mutableGraph) - Specified by:
resolveNativeEntityin interfaceContentPackable<EventDefinitionEntity>
-