You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: packages/fxa-auth-server/lib/metrics/glean/server_events.ts
+82Lines changed: 82 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -638,6 +638,88 @@ class EventsServerEventLogger {
638
638
event,
639
639
});
640
640
}
641
+
/**
642
+
* Record and submit a inactive_account_deletion_deletion_scheduled event:
643
+
* The cloud task to delete the account was scheduled.
644
+
* Event is logged using internal mozlog logger.
645
+
*
646
+
* @param {string} user_agent - The user agent.
647
+
* @param {string} ip_address - The IP address. Will be used to decode Geo
648
+
* information and scrubbed at ingestion.
649
+
* @param {string} account_user_id - The firefox/mozilla account id.
650
+
* @param {string} account_user_id_sha256 - A hex string of a sha256 hash of the account's uid.
651
+
* @param {string} relying_party_oauth_client_id - The client id of the relying party.
652
+
* @param {string} relying_party_service - The service name of the relying party.
653
+
* @param {string} session_device_type - one of 'mobile', 'tablet', or ''.
654
+
* @param {string} session_entrypoint - Entrypoint to the service.
655
+
* @param {string} session_entrypoint_experiment - Identifier for the experiment the user is part of at the entrypoint.
656
+
* @param {string} session_entrypoint_variation - Identifier for the experiment variation the user is part of at the entrypoint.
657
+
* @param {string} session_flow_id - an ID generated by FxA for its flow metrics.
658
+
* @param {string} utm_campaign - A marketing campaign. For example, if a user signs into FxA from selecting a Mozilla VPN plan on Mozilla VPN's product site, then the value of this metric could be 'vpn-product-page'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters. The special value of 'page+referral+-+not+part+of+a+campaign' is also allowed..
659
+
* @param {string} utm_content - The content on which the user acted. For example, if the user clicked on the (previously available) "Get started here" link in "Looking for Firefox Sync? Get started here", then the value for this metric would be 'fx-sync-get-started'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
660
+
* @param {string} utm_medium - The "medium" on which the user acted. For example, if the user clicked on a link in an email, then the value of this metric would be 'email'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
661
+
* @param {string} utm_source - The source from where the user started. For example, if the user clicked on a link on the Mozilla accounts web site, this value could be 'fx-website'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
662
+
* @param {string} utm_term - This metric is similar to the `utm.source`; it is used in the Firefox browser. For example, if the user started from about:welcome, then the value could be 'aboutwelcome-default-screen'. The value has a max length of 128 characters with the alphanumeric characters, _ (underscore), forward slash (/), . (period), % (percentage sign), and - (hyphen) in the allowed set of characters..
663
+
*/
664
+
recordInactiveAccountDeletionDeletionScheduled({
665
+
user_agent,
666
+
ip_address,
667
+
account_user_id,
668
+
account_user_id_sha256,
669
+
relying_party_oauth_client_id,
670
+
relying_party_service,
671
+
session_device_type,
672
+
session_entrypoint,
673
+
session_entrypoint_experiment,
674
+
session_entrypoint_variation,
675
+
session_flow_id,
676
+
utm_campaign,
677
+
utm_content,
678
+
utm_medium,
679
+
utm_source,
680
+
utm_term,
681
+
}: {
682
+
user_agent: string;
683
+
ip_address: string;
684
+
account_user_id: string;
685
+
account_user_id_sha256: string;
686
+
relying_party_oauth_client_id: string;
687
+
relying_party_service: string;
688
+
session_device_type: string;
689
+
session_entrypoint: string;
690
+
session_entrypoint_experiment: string;
691
+
session_entrypoint_variation: string;
692
+
session_flow_id: string;
693
+
utm_campaign: string;
694
+
utm_content: string;
695
+
utm_medium: string;
696
+
utm_source: string;
697
+
utm_term: string;
698
+
}){
699
+
constevent={
700
+
category: 'inactive_account_deletion',
701
+
name: 'deletion_scheduled',
702
+
};
703
+
this.#record({
704
+
user_agent,
705
+
ip_address,
706
+
account_user_id,
707
+
account_user_id_sha256,
708
+
relying_party_oauth_client_id,
709
+
relying_party_service,
710
+
session_device_type,
711
+
session_entrypoint,
712
+
session_entrypoint_experiment,
713
+
session_entrypoint_variation,
714
+
session_flow_id,
715
+
utm_campaign,
716
+
utm_content,
717
+
utm_medium,
718
+
utm_source,
719
+
utm_term,
720
+
event,
721
+
});
722
+
}
641
723
/**
642
724
* Record and submit a inactive_account_deletion_final_email_skipped event:
0 commit comments