Class AuditConfig
- java.lang.Object
-
- io.fabric8.openshift.api.model.config.v1.AuditConfig
-
- All Implemented Interfaces:
io.fabric8.kubernetes.api.builder.Editable<AuditConfigBuilder>,io.fabric8.kubernetes.api.model.KubernetesResource,Serializable
@Generated("io.fabric8.kubernetes.schema.generator.model.ModelGenerator") public class AuditConfig extends Object implements io.fabric8.kubernetes.api.builder.Editable<AuditConfigBuilder>, io.fabric8.kubernetes.api.model.KubernetesResource
AuditConfig holds configuration for the audit capabilities- See Also:
- Serialized Form
-
-
Constructor Summary
Constructors Constructor Description AuditConfig()No args constructor for use in serializationAuditConfig(String auditFilePath, Boolean enabled, String logFormat, Integer maximumFileRetentionDays, Integer maximumFileSizeMegabytes, Integer maximumRetainedFiles, Object policyConfiguration, String policyFile, String webHookKubeConfig, String webHookMode)
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description AuditConfigBuilderedit()Map<String,Object>getAdditionalProperties()StringgetAuditFilePath()All requests coming to the apiserver will be logged to this file.BooleangetEnabled()If this flag is set, audit log will be printed in the logs.StringgetLogFormat()Format of saved audits (legacy or json).IntegergetMaximumFileRetentionDays()Maximum number of days to retain old log files based on the timestamp encoded in their filename.IntegergetMaximumFileSizeMegabytes()Maximum size in megabytes of the log file before it gets rotated.IntegergetMaximumRetainedFiles()Maximum number of old log files to retain.ObjectgetPolicyConfiguration()AuditConfig holds configuration for the audit capabilitiesStringgetPolicyFile()policyFile is a path to the file that defines the audit policy configuration.StringgetWebHookKubeConfig()Path to a .kubeconfig formatted file that defines the audit webhook configuration.StringgetWebHookMode()Strategy for sending audit events (block or batch).voidsetAdditionalProperties(Map<String,Object> additionalProperties)voidsetAdditionalProperty(String name, Object value)voidsetAuditFilePath(String auditFilePath)All requests coming to the apiserver will be logged to this file.voidsetEnabled(Boolean enabled)If this flag is set, audit log will be printed in the logs.voidsetLogFormat(String logFormat)Format of saved audits (legacy or json).voidsetMaximumFileRetentionDays(Integer maximumFileRetentionDays)Maximum number of days to retain old log files based on the timestamp encoded in their filename.voidsetMaximumFileSizeMegabytes(Integer maximumFileSizeMegabytes)Maximum size in megabytes of the log file before it gets rotated.voidsetMaximumRetainedFiles(Integer maximumRetainedFiles)Maximum number of old log files to retain.voidsetPolicyConfiguration(Object policyConfiguration)AuditConfig holds configuration for the audit capabilitiesvoidsetPolicyFile(String policyFile)policyFile is a path to the file that defines the audit policy configuration.voidsetWebHookKubeConfig(String webHookKubeConfig)Path to a .kubeconfig formatted file that defines the audit webhook configuration.voidsetWebHookMode(String webHookMode)Strategy for sending audit events (block or batch).AuditConfigBuildertoBuilder()
-
-
-
Method Detail
-
getAuditFilePath
public String getAuditFilePath()
All requests coming to the apiserver will be logged to this file.
-
setAuditFilePath
public void setAuditFilePath(String auditFilePath)
All requests coming to the apiserver will be logged to this file.
-
getEnabled
public Boolean getEnabled()
If this flag is set, audit log will be printed in the logs. The logs contains, method, user and a requested URL.
-
setEnabled
public void setEnabled(Boolean enabled)
If this flag is set, audit log will be printed in the logs. The logs contains, method, user and a requested URL.
-
getLogFormat
public String getLogFormat()
Format of saved audits (legacy or json).
-
setLogFormat
public void setLogFormat(String logFormat)
Format of saved audits (legacy or json).
-
getMaximumFileRetentionDays
public Integer getMaximumFileRetentionDays()
Maximum number of days to retain old log files based on the timestamp encoded in their filename.
-
setMaximumFileRetentionDays
public void setMaximumFileRetentionDays(Integer maximumFileRetentionDays)
Maximum number of days to retain old log files based on the timestamp encoded in their filename.
-
getMaximumFileSizeMegabytes
public Integer getMaximumFileSizeMegabytes()
Maximum size in megabytes of the log file before it gets rotated. Defaults to 100MB.
-
setMaximumFileSizeMegabytes
public void setMaximumFileSizeMegabytes(Integer maximumFileSizeMegabytes)
Maximum size in megabytes of the log file before it gets rotated. Defaults to 100MB.
-
getMaximumRetainedFiles
public Integer getMaximumRetainedFiles()
Maximum number of old log files to retain.
-
setMaximumRetainedFiles
public void setMaximumRetainedFiles(Integer maximumRetainedFiles)
Maximum number of old log files to retain.
-
getPolicyConfiguration
public Object getPolicyConfiguration()
AuditConfig holds configuration for the audit capabilities
-
setPolicyConfiguration
public void setPolicyConfiguration(Object policyConfiguration)
AuditConfig holds configuration for the audit capabilities
-
getPolicyFile
public String getPolicyFile()
policyFile is a path to the file that defines the audit policy configuration.
-
setPolicyFile
public void setPolicyFile(String policyFile)
policyFile is a path to the file that defines the audit policy configuration.
-
getWebHookKubeConfig
public String getWebHookKubeConfig()
Path to a .kubeconfig formatted file that defines the audit webhook configuration.
-
setWebHookKubeConfig
public void setWebHookKubeConfig(String webHookKubeConfig)
Path to a .kubeconfig formatted file that defines the audit webhook configuration.
-
getWebHookMode
public String getWebHookMode()
Strategy for sending audit events (block or batch).
-
setWebHookMode
public void setWebHookMode(String webHookMode)
Strategy for sending audit events (block or batch).
-
edit
public AuditConfigBuilder edit()
- Specified by:
editin interfaceio.fabric8.kubernetes.api.builder.Editable<AuditConfigBuilder>
-
toBuilder
public AuditConfigBuilder toBuilder()
-
-