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.
Number of query execution plans captured by Insights per minute for all queries combined. Default is 5.
getQueryInsightsEnabled
Whether Query Insights feature is enabled.
Returns
Type
Description
bool
setQueryInsightsEnabled
Whether Query Insights feature is enabled.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getRecordClientAddress
Whether Query Insights will record client address when enabled.
Returns
Type
Description
bool
setRecordClientAddress
Whether Query Insights will record client address when enabled.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
getRecordApplicationTags
Whether Query Insights will record application tags from query when
enabled.
Returns
Type
Description
bool
setRecordApplicationTags
Whether Query Insights will record application tags from query when
enabled.
Parameter
Name
Description
var
bool
Returns
Type
Description
$this
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 the unboxed value fromgetQueryStringLength()
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
Type
Description
int|null
setQueryStringLength
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.
Sets the field by wrapping a primitive type in a Google\Protobuf\Int32Value object.
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.
Parameter
Name
Description
var
int|null
Returns
Type
Description
$this
getQueryPlansPerMinute
Number of query execution plans captured by Insights per minute
for all queries combined. Default is 5.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Google Cloud Sql Admin V1 Client - Class InsightsConfig (1.2.6)\n\nVersion latestkeyboard_arrow_down\n\n- [1.2.6 (latest)](/php/docs/reference/cloud-sql-admin/latest/V1.InsightsConfig)\n- [1.2.5](/php/docs/reference/cloud-sql-admin/1.2.5/V1.InsightsConfig)\n- [1.1.0](/php/docs/reference/cloud-sql-admin/1.1.0/V1.InsightsConfig)\n- [1.0.0](/php/docs/reference/cloud-sql-admin/1.0.0/V1.InsightsConfig)\n- [0.19.0](/php/docs/reference/cloud-sql-admin/0.19.0/V1.InsightsConfig)\n- [0.18.0](/php/docs/reference/cloud-sql-admin/0.18.0/V1.InsightsConfig)\n- [0.17.1](/php/docs/reference/cloud-sql-admin/0.17.1/V1.InsightsConfig)\n- [0.16.1](/php/docs/reference/cloud-sql-admin/0.16.1/V1.InsightsConfig)\n- [0.12.0](/php/docs/reference/cloud-sql-admin/0.12.0/V1.InsightsConfig)\n- [0.11.0](/php/docs/reference/cloud-sql-admin/0.11.0/V1.InsightsConfig)\n- [0.10.0](/php/docs/reference/cloud-sql-admin/0.10.0/V1.InsightsConfig)\n- [0.9.0](/php/docs/reference/cloud-sql-admin/0.9.0/V1.InsightsConfig)\n- [0.8.0](/php/docs/reference/cloud-sql-admin/0.8.0/V1.InsightsConfig)\n- [0.7.0](/php/docs/reference/cloud-sql-admin/0.7.0/V1.InsightsConfig)\n- [0.6.0](/php/docs/reference/cloud-sql-admin/0.6.0/V1.InsightsConfig)\n- [0.5.0](/php/docs/reference/cloud-sql-admin/0.5.0/V1.InsightsConfig)\n- [0.4.1](/php/docs/reference/cloud-sql-admin/0.4.1/V1.InsightsConfig)\n- [0.3.1](/php/docs/reference/cloud-sql-admin/0.3.1/V1.InsightsConfig)\n- [0.2.12](/php/docs/reference/cloud-sql-admin/0.2.12/V1.InsightsConfig) \nReference documentation and code samples for the Google Cloud Sql Admin V1 Client class InsightsConfig.\n\nInsights configuration. This specifies when Cloud SQL Insights feature is\nenabled and optional configuration.\n\nGenerated from protobuf message `google.cloud.sql.v1.InsightsConfig`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Sql \\\\ V1\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getQueryInsightsEnabled\n\nWhether Query Insights feature is enabled.\n\n### setQueryInsightsEnabled\n\nWhether Query Insights feature is enabled.\n\n### getRecordClientAddress\n\nWhether Query Insights will record client address when enabled.\n\n### setRecordClientAddress\n\nWhether Query Insights will record client address when enabled.\n\n### getRecordApplicationTags\n\nWhether Query Insights will record application tags from query when\nenabled.\n\n### setRecordApplicationTags\n\nWhether Query Insights will record application tags from query when\nenabled.\n\n### getQueryStringLength\n\nMaximum query length stored in bytes. Default value: 1024 bytes.\n\nRange: 256-4500 bytes. Query length more than this field value will be\ntruncated to this value. When unset, query length will be the default\nvalue. Changing query length will restart the database.\n\n### hasQueryStringLength\n\n### clearQueryStringLength\n\n### getQueryStringLengthUnwrapped\n\nReturns the unboxed value from `getQueryStringLength()`\n\nMaximum query length stored in bytes. Default value: 1024 bytes.\nRange: 256-4500 bytes. Query length more than this field value will be\ntruncated to this value. When unset, query length will be the default\nvalue. Changing query length will restart the database.\n\n### setQueryStringLength\n\nMaximum query length stored in bytes. Default value: 1024 bytes.\n\nRange: 256-4500 bytes. Query length more than this field value will be\ntruncated to this value. When unset, query length will be the default\nvalue. Changing query length will restart the database.\n\n### setQueryStringLengthUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int32Value object.\n\nMaximum query length stored in bytes. Default value: 1024 bytes.\nRange: 256-4500 bytes. Query length more than this field value will be\ntruncated to this value. When unset, query length will be the default\nvalue. Changing query length will restart the database.\n\n### getQueryPlansPerMinute\n\nNumber of query execution plans captured by Insights per minute\nfor all queries combined. Default is 5.\n\n### hasQueryPlansPerMinute\n\n### clearQueryPlansPerMinute\n\n### getQueryPlansPerMinuteUnwrapped\n\nReturns the unboxed value from `getQueryPlansPerMinute()`\n\nNumber of query execution plans captured by Insights per minute\nfor all queries combined. Default is 5.\n\n### setQueryPlansPerMinute\n\nNumber of query execution plans captured by Insights per minute\nfor all queries combined. Default is 5.\n\n### setQueryPlansPerMinuteUnwrapped\n\nSets the field by wrapping a primitive type in a Google\\\\Protobuf\\\\Int32Value object.\n\nNumber of query execution plans captured by Insights per minute\nfor all queries combined. Default is 5."]]