2020-05-26 11:08:17 -04:00
|
|
|
/* eslint-disable @gitlab/require-i18n-strings */
|
2019-10-17 20:07:45 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Tracks snowplow event when User clicks on error link to Sentry
|
|
|
|
* @param {String} externalUrl that will be send as a property for the event
|
|
|
|
*/
|
|
|
|
export const trackClickErrorLinkToSentryOptions = url => ({
|
|
|
|
category: 'Error Tracking',
|
|
|
|
action: 'click_error_link_to_sentry',
|
|
|
|
label: 'Error Link',
|
|
|
|
property: url,
|
|
|
|
});
|
2020-05-26 11:08:17 -04:00
|
|
|
|
|
|
|
/**
|
|
|
|
* Tracks snowplow event when user views error list
|
|
|
|
*/
|
|
|
|
export const trackErrorListViewsOptions = {
|
|
|
|
category: 'Error Tracking',
|
|
|
|
action: 'view_errors_list',
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Tracks snowplow event when user views error details
|
|
|
|
*/
|
|
|
|
export const trackErrorDetailsViewsOptions = {
|
|
|
|
category: 'Error Tracking',
|
|
|
|
action: 'view_error_details',
|
|
|
|
};
|
|
|
|
|
|
|
|
/**
|
|
|
|
* Tracks snowplow event when error status is updated
|
|
|
|
*/
|
2020-06-04 05:08:01 -04:00
|
|
|
export const trackErrorStatusUpdateOptions = status => ({
|
2020-05-26 11:08:17 -04:00
|
|
|
category: 'Error Tracking',
|
2020-06-04 05:08:01 -04:00
|
|
|
action: `update_${status}_status`,
|
|
|
|
});
|