Google Analytics Admin V1alpha Client - Class DataRetentionSettings (0.24.2)

Reference documentation and code samples for the Google Analytics Admin V1alpha Client class DataRetentionSettings.

Settings values for data retention. This is a singleton resource.

Generated from protobuf message google.analytics.admin.v1alpha.DataRetentionSettings

Namespace

Google \ Analytics \ Admin \ V1alpha

Methods

__construct

Constructor.

Parameters
NameDescription
dataarray

Optional. Data for populating the Message object.

↳ namestring

Output only. Resource name for this DataRetentionSetting resource. Format: properties/{property}/dataRetentionSettings

↳ event_data_retentionint

The length of time that event-level data is retained.

↳ reset_user_data_on_new_activitybool

If true, reset the retention period for the user identifier with every event from that user.

getName

Output only. Resource name for this DataRetentionSetting resource.

Format: properties/{property}/dataRetentionSettings

Returns
TypeDescription
string

setName

Output only. Resource name for this DataRetentionSetting resource.

Format: properties/{property}/dataRetentionSettings

Parameter
NameDescription
varstring
Returns
TypeDescription
$this

getEventDataRetention

The length of time that event-level data is retained.

Returns
TypeDescription
int

setEventDataRetention

The length of time that event-level data is retained.

Parameter
NameDescription
varint
Returns
TypeDescription
$this

getResetUserDataOnNewActivity

If true, reset the retention period for the user identifier with every event from that user.

Returns
TypeDescription
bool

setResetUserDataOnNewActivity

If true, reset the retention period for the user identifier with every event from that user.

Parameter
NameDescription
varbool
Returns
TypeDescription
$this