Class SyslogAuditEventHandlerConfiguration.SeverityFieldMapping
- java.lang.Object
-
- org.forgerock.audit.handlers.syslog.SyslogAuditEventHandlerConfiguration.SeverityFieldMapping
-
- Enclosing class:
- SyslogAuditEventHandlerConfiguration
public static final class SyslogAuditEventHandlerConfiguration.SeverityFieldMapping extends Object
Encapsulates configuration for mapping audit event field values to Syslog severity values.
-
-
Constructor Summary
Constructors Constructor Description SeverityFieldMapping()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description String
getField()
Returns the name of the event topic field to which this mapping applies.String
getTopic()
Returns the name of the event topic to which this mapping applies.Map<String,Severity>
getValueMappings()
Returns the mapping of audit event values to Syslog severity values.void
setField(String field)
Sets the name of the event topic field to which this mapping applies.void
setTopic(String topic)
Sets the name of the event topic to which this mapping applies.void
setValueMappings(Map<String,Severity> valueMappings)
Sets the mapping of audit event values to Syslog severity values.
-
-
-
Method Detail
-
getTopic
public String getTopic()
Returns the name of the event topic to which this mapping applies.- Returns:
- the event topic name.
-
setTopic
public void setTopic(String topic)
Sets the name of the event topic to which this mapping applies.- Parameters:
topic
- the event topic name.
-
getField
public String getField()
Returns the name of the event topic field to which this mapping applies.If the chosen field is nested, JsonPointer notation should be used.
- Returns:
- the event topic field name.
-
setField
public void setField(String field)
Sets the name of the event topic field to which this mapping applies.- Parameters:
field
- the event topic field name.
-
getValueMappings
public Map<String,Severity> getValueMappings()
Returns the mapping of audit event values to Syslog severity values.- Returns:
- the value mappings.
-
-