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 v1beta 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\u003eThis document provides reference documentation for the \u003ccode\u003eInstance.Types.QueryInsightsInstanceConfig\u003c/code\u003e class within the AlloyDB v1beta API, detailing its structure and functionalities.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryInsightsInstanceConfig\u003c/code\u003e class is a sealed class designed for configuring instance-specific settings for QueryInsights, including how many query execution plans are captured and how long the strings are.\u003c/p\u003e\n"],["\u003cp\u003eIt inherits from the \u003ccode\u003eobject\u003c/code\u003e class and implements several interfaces such as \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, ensuring it's compatibility with the .NET system.\u003c/p\u003e\n"],["\u003cp\u003eThe class allows for the management of instance properties like \u003ccode\u003eQueryPlansPerMinute\u003c/code\u003e, \u003ccode\u003eQueryStringLength\u003c/code\u003e, \u003ccode\u003eRecordApplicationTags\u003c/code\u003e, and \u003ccode\u003eRecordClientAddress\u003c/code\u003e, enabling control over the granularity and scope of query data capture.\u003c/p\u003e\n"],["\u003cp\u003eThere are two versions available \u003ccode\u003e1.0.0-beta09 (latest)\u003c/code\u003e and \u003ccode\u003e1.0.0-beta08\u003c/code\u003e, allowing developers to select based on their needs.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1beta API - Class Instance.Types.QueryInsightsInstanceConfig (1.0.0-beta12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-beta12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types.QueryInsightsInstanceConfig)\n- [1.0.0-beta11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/1.0.0-beta11/Google.Cloud.AlloyDb.V1Beta.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 v1beta 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.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types)[QueryInsightsInstanceConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types.QueryInsightsInstanceConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Instance](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types)[QueryInsightsInstanceConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.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.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.Instance.Types)[QueryInsightsInstanceConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta.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.V1Beta](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Beta/latest/Google.Cloud.AlloyDb.V1Beta)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Beta.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."]]