Class AuditEventType

java.lang.Object
org.graylog2.audit.AuditEventType

public abstract class AuditEventType extends Object
Represents an audit event with namespace, object and action. Plugins should use their own namespace for audit events. The create(String) method expects an event type string with the following format: namespace:object:action Examples: server:message_input:create pipeline-processor:configuration:update
  • Constructor Details

    • AuditEventType

      public AuditEventType()
  • Method Details

    • namespace

      public abstract String namespace()
    • object

      public abstract String object()
    • action

      public abstract String action()
    • toTypeString

      public String toTypeString()
    • create

      public static AuditEventType create(String namespace, String object, String action)
    • create

      public static AuditEventType create(@Nonnull String type)
      Creates AuditEventType from an audit event type string with the following format. namespace:object:action See class documentation for details.
      Parameters:
      type - the audit event type string
      Returns:
      the object