class ProjectsLocationsCatalogsEventStoresUserEvents extends Resource (View source)

The "userEvents" collection of methods.

Typical usage is:

 $recommendationengineService = new Google\Service\RecommendationsAI(...);
 $userEvents = $recommendationengineService->projects_locations_catalogs_eventStores_userEvents;

Methods

collect(string $parent, array $optParams = [])

Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Recommendations AI JavaScript pixel. Users should not call this method directly. (userEvents.collect)

import(string $parent, GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest $postBody, array $optParams = [])

Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted.

listProjectsLocationsCatalogsEventStoresUserEvents(string $parent, array $optParams = [])

Gets a list of user events within a time range, with potential filtering. The method does not list unjoined user events. Unjoined user event definition: when a user event is ingested from Recommendations AI User Event APIs, the catalog item included in the user event is connected with the current catalog. If a catalog item of the ingested event is not in the current catalog, it could lead to degraded model quality. This is called an unjoined event. (userEvents.listProjectsLocationsCatalogsEventStoresUserEvents)

purge(string $parent, GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest $postBody, array $optParams = [])

Deletes permanently all user events specified by the filter provided.

rejoin(string $parent, GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest $postBody, array $optParams = [])

Triggers a user event rejoin operation with latest catalog data. Events will not be annotated with detailed catalog information if catalog item is missing at the time the user event is ingested, and these events are stored as unjoined events with a limited usage on training and serving. This API can be used to trigger a 'join' operation on specified events with latest version of catalog items. It can also be used to correct events joined with wrong catalog items. (userEvents.rejoin)

write(string $parent, GoogleCloudRecommendationengineV1beta1UserEvent $postBody, array $optParams = [])

Writes a single user event. (userEvents.write)

Details

GoogleApiHttpBody collect(string $parent, array $optParams = [])

Writes a single user event from the browser. This uses a GET request to due to browser restriction of POST-ing to a 3rd party domain. This method is used only by the Recommendations AI JavaScript pixel. Users should not call this method directly. (userEvents.collect)

Parameters

string $parent

Required. The parent eventStore name, such as projects /1234/locations/global/catalogs/default_catalog/eventStores/default_event_sto re.

array $optParams

Optional parameters.

Return Value

GoogleApiHttpBody

Exceptions

Exception

GoogleLongrunningOperation import(string $parent, GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest $postBody, array $optParams = [])

Bulk import of User events. Request processing might be synchronous. Events that already exist are skipped. Use this method for backfilling historical user events. Operation.response is of type ImportResponse. Note that it is possible for a subset of the items to be successfully inserted.

Operation.metadata is of type ImportMetadata. (userEvents.import)

Parameters

string $parent

Required. projects/1234/locations/global/catalogs/defa ult_catalog/eventStores/default_event_store

GoogleCloudRecommendationengineV1beta1ImportUserEventsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudRecommendationengineV1beta1ListUserEventsResponse listProjectsLocationsCatalogsEventStoresUserEvents(string $parent, array $optParams = [])

Gets a list of user events within a time range, with potential filtering. The method does not list unjoined user events. Unjoined user event definition: when a user event is ingested from Recommendations AI User Event APIs, the catalog item included in the user event is connected with the current catalog. If a catalog item of the ingested event is not in the current catalog, it could lead to degraded model quality. This is called an unjoined event. (userEvents.listProjectsLocationsCatalogsEventStoresUserEvents)

Parameters

string $parent

Required. The parent eventStore resource name, such as projects/locations/catalogs/default_catalog/eventStores/default_event_store .

array $optParams

Optional parameters.

Return Value

GoogleCloudRecommendationengineV1beta1ListUserEventsResponse

Exceptions

Exception

GoogleLongrunningOperation purge(string $parent, GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest $postBody, array $optParams = [])

Deletes permanently all user events specified by the filter provided.

Depending on the number of events specified by the filter, this operation could take hours or days to complete. To test a filter, use the list command first. (userEvents.purge)

Parameters

string $parent

Required. The resource name of the event_store under which the events are created. The format is projects/${projectId}/locations/ global/catalogs/${catalogId}/eventStores/${eventStoreId}

GoogleCloudRecommendationengineV1beta1PurgeUserEventsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleLongrunningOperation rejoin(string $parent, GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest $postBody, array $optParams = [])

Triggers a user event rejoin operation with latest catalog data. Events will not be annotated with detailed catalog information if catalog item is missing at the time the user event is ingested, and these events are stored as unjoined events with a limited usage on training and serving. This API can be used to trigger a 'join' operation on specified events with latest version of catalog items. It can also be used to correct events joined with wrong catalog items. (userEvents.rejoin)

Parameters

string $parent

Required. Full resource name of user event, such as pr ojects/locations/catalogs/default_catalog/eventStores/default_event_store.

GoogleCloudRecommendationengineV1beta1RejoinUserEventsRequest $postBody
array $optParams

Optional parameters.

Return Value

GoogleLongrunningOperation

Exceptions

Exception

GoogleCloudRecommendationengineV1beta1UserEvent write(string $parent, GoogleCloudRecommendationengineV1beta1UserEvent $postBody, array $optParams = [])

Writes a single user event. (userEvents.write)

Parameters

string $parent

Required. The parent eventStore resource name, such as "projects/1234/locations/global/catalogs/defaultcatalog/eventStores/default event_store".

GoogleCloudRecommendationengineV1beta1UserEvent $postBody
array $optParams

Optional parameters.

Return Value

GoogleCloudRecommendationengineV1beta1UserEvent

Exceptions

Exception