Class QueryLoggingConfig
java.lang.Object
co.elastic.clients.elasticsearch.xpack.usage.QueryLoggingConfig
- All Implemented Interfaces:
JsonpSerializable
- See Also:
-
Nested Class Summary
Nested Classes -
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final JsonpDeserializer<QueryLoggingConfig>Json deserializer forQueryLoggingConfig -
Method Summary
Modifier and TypeMethodDescriptionfinal booleanenabled()Required - Whether query logging is enabled.static QueryLoggingConfigrebuild()voidserialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) Serialize this object to JSON.protected voidserializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper) protected static voidfinal booleansystem()Required - Whether system queries are included in the query log.final TimeThe configured logging threshold, if any.toString()final booleanuser()Required - Whether user information is included in the query log.
-
Field Details
-
_DESERIALIZER
Json deserializer forQueryLoggingConfig
-
-
Method Details
-
of
public static QueryLoggingConfig of(Function<QueryLoggingConfig.Builder, ObjectBuilder<QueryLoggingConfig>> fn) -
enabled
public final boolean enabled()Required - Whether query logging is enabled.API name:
enabled -
user
public final boolean user()Required - Whether user information is included in the query log.API name:
user -
system
public final boolean system()Required - Whether system queries are included in the query log.API name:
system -
threshold
The configured logging threshold, if any.API name:
threshold -
serialize
Serialize this object to JSON.- Specified by:
serializein interfaceJsonpSerializable
-
serializeInternal
-
toString
-
rebuild
- Returns:
- New
QueryLoggingConfig.Builderinitialized with field values of this instance
-
setupQueryLoggingConfigDeserializer
protected static void setupQueryLoggingConfigDeserializer(ObjectDeserializer<QueryLoggingConfig.Builder> op)
-