target.apidocs.com.google.api.services.sqladmin.model.InsightsConfig.html Maven / Gradle / Ivy
The newest version!
InsightsConfig (Cloud SQL Admin API v1-rev20241108-2.0.0)
com.google.api.services.sqladmin.model
Class InsightsConfig
- java.lang.Object
-
- java.util.AbstractMap<String,Object>
-
- com.google.api.client.util.GenericData
-
- com.google.api.client.json.GenericJson
-
- com.google.api.services.sqladmin.model.InsightsConfig
-
public final class InsightsConfig
extends com.google.api.client.json.GenericJson
Insights configuration. This specifies when Cloud SQL Insights feature is enabled and optional
configuration.
This is the Java data model class that specifies how to parse/serialize into the JSON that is
transmitted over HTTP when working with the Cloud SQL Admin API. For a detailed explanation see:
https://developers.google.com/api-client-library/java/google-http-java-client/json
- Author:
- Google, Inc.
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from class com.google.api.client.util.GenericData
com.google.api.client.util.GenericData.Flags
-
Nested classes/interfaces inherited from class java.util.AbstractMap
AbstractMap.SimpleEntry<K,V>, AbstractMap.SimpleImmutableEntry<K,V>
-
Constructor Summary
Constructors
Constructor and Description
InsightsConfig()
-
Method Summary
All Methods Instance Methods Concrete Methods
Modifier and Type
Method and Description
InsightsConfig
clone()
Boolean
getQueryInsightsEnabled()
Whether Query Insights feature is enabled.
Integer
getQueryPlansPerMinute()
Number of query execution plans captured by Insights per minute for all queries combined.
Integer
getQueryStringLength()
Maximum query length stored in bytes.
Boolean
getRecordApplicationTags()
Whether Query Insights will record application tags from query when enabled.
Boolean
getRecordClientAddress()
Whether Query Insights will record client address when enabled.
InsightsConfig
set(String fieldName,
Object value)
InsightsConfig
setQueryInsightsEnabled(Boolean queryInsightsEnabled)
Whether Query Insights feature is enabled.
InsightsConfig
setQueryPlansPerMinute(Integer queryPlansPerMinute)
Number of query execution plans captured by Insights per minute for all queries combined.
InsightsConfig
setQueryStringLength(Integer queryStringLength)
Maximum query length stored in bytes.
InsightsConfig
setRecordApplicationTags(Boolean recordApplicationTags)
Whether Query Insights will record application tags from query when enabled.
InsightsConfig
setRecordClientAddress(Boolean recordClientAddress)
Whether Query Insights will record client address when enabled.
-
Methods inherited from class com.google.api.client.json.GenericJson
getFactory, setFactory, toPrettyString, toString
-
Methods inherited from class com.google.api.client.util.GenericData
entrySet, equals, get, getClassInfo, getUnknownKeys, hashCode, put, putAll, remove, setUnknownKeys
-
Methods inherited from class java.util.AbstractMap
clear, containsKey, containsValue, isEmpty, keySet, size, values
-
Methods inherited from class java.lang.Object
finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface java.util.Map
compute, computeIfAbsent, computeIfPresent, forEach, getOrDefault, merge, putIfAbsent, remove, replace, replace, replaceAll
-
-
Method Detail
-
getQueryInsightsEnabled
public Boolean getQueryInsightsEnabled()
Whether Query Insights feature is enabled.
- Returns:
- value or
null
for none
-
setQueryInsightsEnabled
public InsightsConfig setQueryInsightsEnabled(Boolean queryInsightsEnabled)
Whether Query Insights feature is enabled.
- Parameters:
queryInsightsEnabled
- queryInsightsEnabled or null
for none
-
getQueryPlansPerMinute
public Integer getQueryPlansPerMinute()
Number of query execution plans captured by Insights per minute for all queries combined.
Default is 5.
- Returns:
- value or
null
for none
-
setQueryPlansPerMinute
public InsightsConfig setQueryPlansPerMinute(Integer queryPlansPerMinute)
Number of query execution plans captured by Insights per minute for all queries combined.
Default is 5.
- Parameters:
queryPlansPerMinute
- queryPlansPerMinute or null
for none
-
getQueryStringLength
public Integer getQueryStringLength()
Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query
length more than this field value will be truncated to this value. When unset, query length
will be the default value. Changing query length will restart the database.
- Returns:
- value or
null
for none
-
setQueryStringLength
public InsightsConfig setQueryStringLength(Integer queryStringLength)
Maximum query length stored in bytes. Default value: 1024 bytes. Range: 256-4500 bytes. Query
length more than this field value will be truncated to this value. When unset, query length
will be the default value. Changing query length will restart the database.
- Parameters:
queryStringLength
- queryStringLength or null
for none
-
getRecordApplicationTags
public Boolean getRecordApplicationTags()
Whether Query Insights will record application tags from query when enabled.
- Returns:
- value or
null
for none
-
setRecordApplicationTags
public InsightsConfig setRecordApplicationTags(Boolean recordApplicationTags)
Whether Query Insights will record application tags from query when enabled.
- Parameters:
recordApplicationTags
- recordApplicationTags or null
for none
-
getRecordClientAddress
public Boolean getRecordClientAddress()
Whether Query Insights will record client address when enabled.
- Returns:
- value or
null
for none
-
setRecordClientAddress
public InsightsConfig setRecordClientAddress(Boolean recordClientAddress)
Whether Query Insights will record client address when enabled.
- Parameters:
recordClientAddress
- recordClientAddress or null
for none
-
set
public InsightsConfig set(String fieldName,
Object value)
- Overrides:
set
in class com.google.api.client.json.GenericJson
-
clone
public InsightsConfig clone()
- Overrides:
clone
in class com.google.api.client.json.GenericJson
Copyright © 2011–2024 Google. All rights reserved.
© 2015 - 2024 Weber Informatics LLC | Privacy Policy