Class PolicyAuditConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.operator.v1.PolicyAuditConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<PolicyAuditConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class PolicyAuditConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<PolicyAuditConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description PolicyAuditConfig()No args constructor for use in serializationPolicyAuditConfig(String destination, Long maxFileSize, Integer maxLogFiles, Long rateLimit, String syslogFacility)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description PolicyAuditConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetDestination()destination is the location for policy log messages.LonggetMaxFileSize()maxFilesSize is the max size an ACL_audit log file is allowed to reach before rotation occurs Units are in MB and the Default is 50MBIntegergetMaxLogFiles()maxLogFiles specifies the maximum number of ACL_audit log files that can be present.LonggetRateLimit()rateLimit is the approximate maximum number of messages to generate per-second per-node.StringgetSyslogFacility()syslogFacility the RFC5424 facility for generated messages, e.g.voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetDestination(String destination)destination is the location for policy log messages.voidsetMaxFileSize(Long maxFileSize)maxFilesSize is the max size an ACL_audit log file is allowed to reach before rotation occurs Units are in MB and the Default is 50MBvoidsetMaxLogFiles(Integer maxLogFiles)maxLogFiles specifies the maximum number of ACL_audit log files that can be present.voidsetRateLimit(Long rateLimit)rateLimit is the approximate maximum number of messages to generate per-second per-node.voidsetSyslogFacility(String syslogFacility)syslogFacility the RFC5424 facility for generated messages, e.g.PolicyAuditConfigBuildertoBuilder()
-
-
-
Method Detail
-
getDestination
public String getDestination()
destination is the location for policy log messages. Regardless of this config, persistent logs will always be dumped to the host at /var/log/ovn/ however Additionally syslog output may be configured as follows. Valid values are: - "libc" -> to use the libc syslog() function of the host node's journdald process - "udp:host:port" -> for sending syslog over UDP - "unix:file" -> for using the UNIX domain socket directly - "null" -> to discard all messages logged to syslog The default is "null"
-
setDestination
public void setDestination(String destination)
destination is the location for policy log messages. Regardless of this config, persistent logs will always be dumped to the host at /var/log/ovn/ however Additionally syslog output may be configured as follows. Valid values are: - "libc" -> to use the libc syslog() function of the host node's journdald process - "udp:host:port" -> for sending syslog over UDP - "unix:file" -> for using the UNIX domain socket directly - "null" -> to discard all messages logged to syslog The default is "null"
-
getMaxFileSize
public Long getMaxFileSize()
maxFilesSize is the max size an ACL_audit log file is allowed to reach before rotation occurs Units are in MB and the Default is 50MB
-
setMaxFileSize
public void setMaxFileSize(Long maxFileSize)
maxFilesSize is the max size an ACL_audit log file is allowed to reach before rotation occurs Units are in MB and the Default is 50MB
-
getMaxLogFiles
public Integer getMaxLogFiles()
maxLogFiles specifies the maximum number of ACL_audit log files that can be present.
-
setMaxLogFiles
public void setMaxLogFiles(Integer maxLogFiles)
maxLogFiles specifies the maximum number of ACL_audit log files that can be present.
-
getRateLimit
public Long getRateLimit()
rateLimit is the approximate maximum number of messages to generate per-second per-node. If unset the default of 20 msg/sec is used.
-
setRateLimit
public void setRateLimit(Long rateLimit)
rateLimit is the approximate maximum number of messages to generate per-second per-node. If unset the default of 20 msg/sec is used.
-
getSyslogFacility
public String getSyslogFacility()
syslogFacility the RFC5424 facility for generated messages, e.g. "kern". Default is "local0"
-
setSyslogFacility
public void setSyslogFacility(String syslogFacility)
syslogFacility the RFC5424 facility for generated messages, e.g. "kern". Default is "local0"
-
edit
public PolicyAuditConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<PolicyAuditConfigBuilder>
-
toBuilder
public PolicyAuditConfigBuilder toBuilder()
-
-