Google Cloud AlloyDB for PostgreSQL V1 Client - Class QueryInsightsInstanceConfig (1.0.0)

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

QueryInsights Instance specific configuration.

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

Namespace

Google \ Cloud \ AlloyDb \ V1 \ Instance

Methods

__construct

Constructor.

Parameters
Name Description
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
Type Description
bool

hasRecordApplicationTags

clearRecordApplicationTags

setRecordApplicationTags

Record application tags for an instance.

This flag is turned "on" by default.

Parameter
Name Description
var bool
Returns
Type Description
$this

getRecordClientAddress

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

This flag is turned "on" by default.

Returns
Type Description
bool

hasRecordClientAddress

clearRecordClientAddress

setRecordClientAddress

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

This flag is turned "on" by default.

Parameter
Name Description
var bool
Returns
Type Description
$this

getQueryStringLength

Query string length. The default value is 1024.

Any integer between 256 and 4500 is considered valid.

Returns
Type Description
int

setQueryStringLength

Query string length. The default value is 1024.

Any integer between 256 and 4500 is considered valid.

Parameter
Name Description
var int
Returns
Type Description
$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
Type Description
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
Name Description
var int
Returns
Type Description
$this