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 v1alpha 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 Google Cloud AlloyDB v1alpha API, specifically for .NET developers.\u003c/p\u003e\n"],["\u003cp\u003eThe \u003ccode\u003eQueryInsightsInstanceConfig\u003c/code\u003e class is used to define instance-specific configurations for QueryInsights, such as the number of query plans captured per minute, query string length, and whether to record application tags and client addresses.\u003c/p\u003e\n"],["\u003cp\u003eThe class implements interfaces like \u003ccode\u003eIMessage\u003c/code\u003e, \u003ccode\u003eIEquatable\u003c/code\u003e, \u003ccode\u003eIDeepCloneable\u003c/code\u003e, and \u003ccode\u003eIBufferMessage\u003c/code\u003e, and inherits from the \u003ccode\u003eobject\u003c/code\u003e class, enabling it to function as a message, support equality comparisons, deep cloning, and buffer messaging.\u003c/p\u003e\n"],["\u003cp\u003eThe class includes properties that can be set, such as \u003ccode\u003eQueryPlansPerMinute\u003c/code\u003e (default: 5, range 0-20), \u003ccode\u003eQueryStringLength\u003c/code\u003e (default: 1024, range 256-4500), \u003ccode\u003eRecordApplicationTags\u003c/code\u003e, and \u003ccode\u003eRecordClientAddress\u003c/code\u003e (both on by default), offering customizable parameters for configuring QueryInsights.\u003c/p\u003e\n"],["\u003cp\u003eTwo constructors are available for creating new instances of \u003ccode\u003eQueryInsightsInstanceConfig\u003c/code\u003e, one default constructor, and another that accepts another \u003ccode\u003eQueryInsightsInstanceConfig\u003c/code\u003e object as an argument.\u003c/p\u003e\n"]]],[],null,["# AlloyDB v1alpha API - Class Instance.Types.QueryInsightsInstanceConfig (1.0.0-alpha12)\n\nVersion latestkeyboard_arrow_down\n\n- [1.0.0-alpha12 (latest)](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Instance.Types.QueryInsightsInstanceConfig)\n- [1.0.0-alpha11](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/1.0.0-alpha11/Google.Cloud.AlloyDb.V1Alpha.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 v1alpha 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.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Instance.Types)[QueryInsightsInstanceConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Instance.Types.QueryInsightsInstanceConfig), [IEquatable](https://learn.microsoft.com/dotnet/api/system.iequatable-1)[Instance](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Instance.Types)[QueryInsightsInstanceConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.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.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Instance)[Types](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.Instance.Types)[QueryInsightsInstanceConfig](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha.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.V1Alpha](/dotnet/docs/reference/Google.Cloud.AlloyDb.V1Alpha/latest/Google.Cloud.AlloyDb.V1Alpha)\n\nAssembly\n--------\n\nGoogle.Cloud.AlloyDb.V1Alpha.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."]]