public sealed class Instance.Types.QueryInsightsInstanceConfig : IMessage<Instance.Types.QueryInsightsInstanceConfig>, IEquatable<Instance.Types.QueryInsightsInstanceConfig>, IDeepCloneable<Instance.Types.QueryInsightsInstanceConfig>, IBufferMessage, IMessage
Reference documentation and code samples for the AlloyDB v1 API class Instance.Types.QueryInsightsInstanceConfig.
Number of query execution plans captured by Insights per minute
for all queries combined. The default value is 5.
Any integer between 0 and 20 is considered valid.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Missing the information I need","missingTheInformationINeed","thumb-down"],["Too complicated / too many steps","tooComplicatedTooManySteps","thumb-down"],["Out of date","outOfDate","thumb-down"],["Samples / code issue","samplesCodeIssue","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-08-07 UTC."],[[["\u003cp\u003eThe latest version available for \u003ccode\u003eInstance.Types.QueryInsightsInstanceConfig\u003c/code\u003e is 1.9.0, with older versions ranging back to 1.0.0 also accessible.\u003c/p\u003e\n"],["\u003cp\u003e\u003ccode\u003eInstance.Types.QueryInsightsInstanceConfig\u003c/code\u003e is a class in the AlloyDB v1 API, designed for specific configuration settings for query insights.\u003c/p\u003e\n"],["\u003cp\u003eThis class allows setting parameters for the number of query execution plans captured per minute (\u003ccode\u003eQueryPlansPerMinute\u003c/code\u003e), and query string length (\u003ccode\u003eQueryStringLength\u003c/code\u003e), with default values of 5 and 1024 respectively.\u003c/p\u003e\n"],["\u003cp\u003eThe class \u003ccode\u003eInstance.Types.QueryInsightsInstanceConfig\u003c/code\u003e can record application tags (\u003ccode\u003eRecordApplicationTags\u003c/code\u003e) and client addresses (\u003ccode\u003eRecordClientAddress\u003c/code\u003e), which are enabled by default.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eInstance.Types.QueryInsightsInstanceConfig\u003c/code\u003e class implements multiple interfaces, including \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1 API - Class Instance.Types.QueryInsightsInstanceConfig (1.11.0)\n\nVersion latestkeyboard_arrow_down\n\n- [1.11.0 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.10.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.10.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.9.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.9.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.8.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.8.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.7.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.7.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.6.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.6.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.5.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.5.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.4.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.4.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.3.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.3.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.2.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.2.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.1.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.1.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig)\n- [1.0.0](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/1.0.0/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig) \n\n public sealed class Instance.Types.QueryInsightsInstanceConfig : IMessage\u003cInstance.Types.QueryInsightsInstanceConfig\u003e, IEquatable\u003cInstance.Types.QueryInsightsInstanceConfig\u003e, IDeepCloneable\u003cInstance.Types.QueryInsightsInstanceConfig\u003e, IBufferMessage, IMessage\n\nReference documentation and code samples for the AlloyDB v1 API class Instance.Types.QueryInsightsInstanceConfig.\n\nQueryInsights Instance specific configuration. \n\nInheritance\n-----------\n\n[object](https://learn.microsoft.com/dotnet/api/system.object) \\\u003e Instance.Types.QueryInsightsInstanceConfig \n\nImplements\n----------\n\n[IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage-1.html)[Instance](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types)[QueryInsightsInstanceConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Instance](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types)[QueryInsightsInstanceConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig), [IDeepCloneable](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IDeepCloneable-1.html)[Instance](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types)[QueryInsightsInstanceConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1.Instance.Types.QueryInsightsInstanceConfig), [IBufferMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IBufferMessage.html), [IMessage](https://cloud.google.com/dotnet/docs/reference/Google.Protobuf/latest/Google.Protobuf.IMessage.html) \n\nInherited Members\n-----------------\n\n[object.GetHashCode()](https://learn.microsoft.com/dotnet/api/system.object.gethashcode) \n[object.GetType()](https://learn.microsoft.com/dotnet/api/system.object.gettype) \n[object.ToString()](https://learn.microsoft.com/dotnet/api/system.object.tostring)\n\nNamespace\n---------\n\n[Google.Cloud.AlloyDb.V1](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1/latest/Google.Cloud.AlloyDb.V1)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1.dll\n\nConstructors\n------------\n\n### QueryInsightsInstanceConfig()\n\n public QueryInsightsInstanceConfig()\n\n### QueryInsightsInstanceConfig(QueryInsightsInstanceConfig)\n\n public QueryInsightsInstanceConfig(Instance.Types.QueryInsightsInstanceConfig other)\n\nProperties\n----------\n\n### HasQueryPlansPerMinute\n\n public bool HasQueryPlansPerMinute { get; }\n\nGets whether the \"query_plans_per_minute\" field is set\n\n### HasRecordApplicationTags\n\n public bool HasRecordApplicationTags { get; }\n\nGets whether the \"record_application_tags\" field is set\n\n### HasRecordClientAddress\n\n public bool HasRecordClientAddress { get; }\n\nGets whether the \"record_client_address\" field is set\n\n### QueryPlansPerMinute\n\n public uint QueryPlansPerMinute { get; set; }\n\nNumber of query execution plans captured by Insights per minute\nfor all queries combined. The default value is 5.\nAny integer between 0 and 20 is considered valid.\n\n### QueryStringLength\n\n public uint QueryStringLength { get; set; }\n\nQuery string length. The default value is 1024.\nAny integer between 256 and 4500 is considered valid.\n\n### RecordApplicationTags\n\n public bool RecordApplicationTags { get; set; }\n\nRecord application tags for an instance.\nThis flag is turned \"on\" by default.\n\n### RecordClientAddress\n\n public bool RecordClientAddress { get; set; }\n\nRecord client address for an instance. Client address is PII information.\nThis flag is turned \"on\" by default."]]