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
+88Lines changed: 88 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -720,6 +720,94 @@ class EventsServerEventLogger {
720
720
event,
721
721
});
722
722
}
723
+
/**
724
+
* Record and submit a inactive_account_deletion_deletion_skipped event:
725
+
* The scheduled deletion of an inactive account was skipped.
726
+
* Event is logged using internal mozlog logger.
727
+
*
728
+
* @param {string} user_agent - The user agent.
729
+
* @param {string} ip_address - The IP address. Will be used to decode Geo
730
+
* information and scrubbed at ingestion.
731
+
* @param {string} account_user_id - The firefox/mozilla account id.
732
+
* @param {string} account_user_id_sha256 - A hex string of a sha256 hash of the account's uid.
733
+
* @param {string} relying_party_oauth_client_id - The client id of the relying party.
734
+
* @param {string} relying_party_service - The service name of the relying party.
735
+
* @param {string} session_device_type - one of 'mobile', 'tablet', or ''.
736
+
* @param {string} session_entrypoint - Entrypoint to the service.
737
+
* @param {string} session_entrypoint_experiment - Identifier for the experiment the user is part of at the entrypoint.
738
+
* @param {string} session_entrypoint_variation - Identifier for the experiment variation the user is part of at the entrypoint.
739
+
* @param {string} session_flow_id - an ID generated by FxA for its flow metrics.
740
+
* @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..
741
+
* @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..
742
+
* @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..
743
+
* @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..
744
+
* @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..
745
+
* @param {string} reason - The reason the deletion was skipped..
746
+
*/
747
+
recordInactiveAccountDeletionDeletionSkipped({
748
+
user_agent,
749
+
ip_address,
750
+
account_user_id,
751
+
account_user_id_sha256,
752
+
relying_party_oauth_client_id,
753
+
relying_party_service,
754
+
session_device_type,
755
+
session_entrypoint,
756
+
session_entrypoint_experiment,
757
+
session_entrypoint_variation,
758
+
session_flow_id,
759
+
utm_campaign,
760
+
utm_content,
761
+
utm_medium,
762
+
utm_source,
763
+
utm_term,
764
+
reason,
765
+
}: {
766
+
user_agent: string;
767
+
ip_address: string;
768
+
account_user_id: string;
769
+
account_user_id_sha256: string;
770
+
relying_party_oauth_client_id: string;
771
+
relying_party_service: string;
772
+
session_device_type: string;
773
+
session_entrypoint: string;
774
+
session_entrypoint_experiment: string;
775
+
session_entrypoint_variation: string;
776
+
session_flow_id: string;
777
+
utm_campaign: string;
778
+
utm_content: string;
779
+
utm_medium: string;
780
+
utm_source: string;
781
+
utm_term: string;
782
+
reason: string;
783
+
}){
784
+
constevent={
785
+
category: 'inactive_account_deletion',
786
+
name: 'deletion_skipped',
787
+
extra: {
788
+
reason: String(reason),
789
+
},
790
+
};
791
+
this.#record({
792
+
user_agent,
793
+
ip_address,
794
+
account_user_id,
795
+
account_user_id_sha256,
796
+
relying_party_oauth_client_id,
797
+
relying_party_service,
798
+
session_device_type,
799
+
session_entrypoint,
800
+
session_entrypoint_experiment,
801
+
session_entrypoint_variation,
802
+
session_flow_id,
803
+
utm_campaign,
804
+
utm_content,
805
+
utm_medium,
806
+
utm_source,
807
+
utm_term,
808
+
event,
809
+
});
810
+
}
723
811
/**
724
812
* Record and submit a inactive_account_deletion_final_email_skipped event:
0 commit comments