Package com.exoscale.sdk.model
Class JsonSchemaPgaudit
java.lang.Object
com.exoscale.sdk.model.JsonSchemaPgaudit
@Generated(value="org.openapitools.codegen.languages.JavaClientCodegen",
comments="Generator version: 7.4.0")
public class JsonSchemaPgaudit
extends Object
System-wide settings for the pgaudit extension.
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic enumGets or Sets logstatic enumSpecifies the log level that will be used for log entries. -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionaddLogItem(JsonSchemaPgaudit.LogEnum logItem) booleanReturn true if this json-schema-pgaudit object is equal to o.featureEnabled(Boolean featureEnabled) Enable pgaudit extension.getLog()Specifies which classes of statements will be logged by session audit logging.Specifies that session logging should be enabled in the case where all relations in a statement are in pg_catalog.Specifies whether log messages will be visible to a client process such as psql.Specifies the log level that will be used for log entries.Crop parameters representation and whole statements if they exceed this threshold.This GUC allows to turn off logging nested statements, that is, statements that are executed as part of another ExecutorRun.Specifies that audit logging should include the parameters that were passed with the statement.Specifies that parameter values longer than this setting (in bytes) should not be logged, but replaced with <long param suppressed>.Specifies whether session audit logging should create a separate log entry for each relation (TABLE, VIEW, etc.) referenced in a SELECT or DML statement.Get logRowsSpecifies whether logging will include the statement text and parameters (if enabled).Specifies whether logging will include the statement text and parameters with the first log entry for a statement/substatement combination or with every entry.getRole()Specifies the master role to use for object audit logging.inthashCode()log(List<JsonSchemaPgaudit.LogEnum> log) logCatalog(Boolean logCatalog) logLevel(JsonSchemaPgaudit.LogLevelEnum logLevel) logMaxStringLength(Integer logMaxStringLength) logNestedStatements(Boolean logNestedStatements) logParameter(Boolean logParameter) logParameterMaxSize(Integer logParameterMaxSize) logRelation(Boolean logRelation) logStatement(Boolean logStatement) logStatementOnce(Boolean logStatementOnce) voidsetFeatureEnabled(Boolean featureEnabled) voidvoidsetLogCatalog(Boolean logCatalog) voidsetLogClient(Boolean logClient) voidsetLogLevel(JsonSchemaPgaudit.LogLevelEnum logLevel) voidsetLogMaxStringLength(Integer logMaxStringLength) voidsetLogNestedStatements(Boolean logNestedStatements) voidsetLogParameter(Boolean logParameter) voidsetLogParameterMaxSize(Integer logParameterMaxSize) voidsetLogRelation(Boolean logRelation) voidsetLogRows(Boolean logRows) voidsetLogStatement(Boolean logStatement) voidsetLogStatementOnce(Boolean logStatementOnce) voidtoString()Convert the instance into URL query string.toUrlQueryString(String prefix) Convert the instance into URL query string.
-
Field Details
-
JSON_PROPERTY_ROLE
- See Also:
-
JSON_PROPERTY_LOG_PARAMETER
- See Also:
-
JSON_PROPERTY_LOG_ROWS
- See Also:
-
JSON_PROPERTY_LOG_LEVEL
- See Also:
-
JSON_PROPERTY_LOG_RELATION
- See Also:
-
JSON_PROPERTY_LOG_STATEMENT_ONCE
- See Also:
-
JSON_PROPERTY_LOG_MAX_STRING_LENGTH
- See Also:
-
JSON_PROPERTY_LOG_CATALOG
- See Also:
-
JSON_PROPERTY_LOG_NESTED_STATEMENTS
- See Also:
-
JSON_PROPERTY_LOG_STATEMENT
- See Also:
-
JSON_PROPERTY_LOG_CLIENT
- See Also:
-
JSON_PROPERTY_FEATURE_ENABLED
- See Also:
-
JSON_PROPERTY_LOG
- See Also:
-
JSON_PROPERTY_LOG_PARAMETER_MAX_SIZE
- See Also:
-
-
Constructor Details
-
JsonSchemaPgaudit
public JsonSchemaPgaudit()
-
-
Method Details
-
role
-
getRole
Specifies the master role to use for object audit logging.- Returns:
- role
-
setRole
-
logParameter
-
getLogParameter
Specifies that audit logging should include the parameters that were passed with the statement.- Returns:
- logParameter
-
setLogParameter
-
logRows
-
getLogRows
Get logRows- Returns:
- logRows
-
setLogRows
-
logLevel
-
getLogLevel
Specifies the log level that will be used for log entries.- Returns:
- logLevel
-
setLogLevel
-
logRelation
-
getLogRelation
Specifies whether session audit logging should create a separate log entry for each relation (TABLE, VIEW, etc.) referenced in a SELECT or DML statement.- Returns:
- logRelation
-
setLogRelation
-
logStatementOnce
-
getLogStatementOnce
Specifies whether logging will include the statement text and parameters with the first log entry for a statement/substatement combination or with every entry.- Returns:
- logStatementOnce
-
setLogStatementOnce
-
logMaxStringLength
-
getLogMaxStringLength
Crop parameters representation and whole statements if they exceed this threshold. A (default) value of -1 disable the truncation. minimum: -1 maximum: 102400- Returns:
- logMaxStringLength
-
setLogMaxStringLength
-
logCatalog
-
getLogCatalog
Specifies that session logging should be enabled in the case where all relations in a statement are in pg_catalog.- Returns:
- logCatalog
-
setLogCatalog
-
logNestedStatements
-
getLogNestedStatements
This GUC allows to turn off logging nested statements, that is, statements that are executed as part of another ExecutorRun.- Returns:
- logNestedStatements
-
setLogNestedStatements
-
logStatement
-
getLogStatement
Specifies whether logging will include the statement text and parameters (if enabled).- Returns:
- logStatement
-
setLogStatement
-
logClient
-
getLogClient
Specifies whether log messages will be visible to a client process such as psql.- Returns:
- logClient
-
setLogClient
-
featureEnabled
-
getFeatureEnabled
Enable pgaudit extension. When enabled, pgaudit extension will be automatically installed.Otherwise, extension will be uninstalled but auditing configurations will be preserved.- Returns:
- featureEnabled
-
setFeatureEnabled
-
log
-
addLogItem
-
getLog
Specifies which classes of statements will be logged by session audit logging.- Returns:
- log
-
setLog
-
logParameterMaxSize
-
getLogParameterMaxSize
Specifies that parameter values longer than this setting (in bytes) should not be logged, but replaced with <long param suppressed>.- Returns:
- logParameterMaxSize
-
setLogParameterMaxSize
-
equals
Return true if this json-schema-pgaudit object is equal to o. -
hashCode
public int hashCode() -
toString
-
toUrlQueryString
Convert the instance into URL query string.- Returns:
- URL query string
-
toUrlQueryString
Convert the instance into URL query string.- Parameters:
prefix- prefix of the query string- Returns:
- URL query string
-