Google Cloud AlloyDB for PostgreSQL V1beta Client - Class QueryInsightsInstanceConfig (0.9.0)

Reference documentation and code samples for the Google Cloud AlloyDB for PostgreSQL V1beta Client class QueryInsightsInstanceConfig.

QueryInsights Instance specific configuration.

Generated from protobuf message google.cloud.alloydb.v1beta.Instance.QueryInsightsInstanceConfig

Namespace

Google \ Cloud \ AlloyDb \ V1beta \ Instance

Methods

__construct

Constructor.

Parameters
NameDescription
data array

Optional. Data for populating the Message object.

↳ record_application_tags bool

Record application tags for an instance. This flag is turned "on" by default.

↳ record_client_address bool

Record client address for an instance. Client address is PII information. This flag is turned "on" by default.

↳ query_string_length int

Query string length. The default value is 1024. Any integer between 256 and 4500 is considered valid.

↳ query_plans_per_minute int

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.

getRecordApplicationTags

Record application tags for an instance.

This flag is turned "on" by default.

Returns
TypeDescription
bool

hasRecordApplicationTags

clearRecordApplicationTags

setRecordApplicationTags

Record application tags for an instance.

This flag is turned "on" by default.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getRecordClientAddress

Record client address for an instance. Client address is PII information.

This flag is turned "on" by default.

Returns
TypeDescription
bool

hasRecordClientAddress

clearRecordClientAddress

setRecordClientAddress

Record client address for an instance. Client address is PII information.

This flag is turned "on" by default.

Parameter
NameDescription
var bool
Returns
TypeDescription
$this

getQueryStringLength

Query string length. The default value is 1024.

Any integer between 256 and 4500 is considered valid.

Returns
TypeDescription
int

setQueryStringLength

Query string length. The default value is 1024.

Any integer between 256 and 4500 is considered valid.

Parameter
NameDescription
var int
Returns
TypeDescription
$this

getQueryPlansPerMinute

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.

Returns
TypeDescription
int

hasQueryPlansPerMinute

clearQueryPlansPerMinute

setQueryPlansPerMinute

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.

Parameter
NameDescription
var int
Returns
TypeDescription
$this