Generated file

Copy as Markdown

Other Tools

// AUTOGENERATED BY glean_parser. DO NOT EDIT.
/* This Source Code Form is subject to the terms of the Mozilla Public
* License, v. 2.0. If a copy of the MPL was not distributed with this
* file, You can obtain one at http://mozilla.org/MPL/2.0/. */
#ifndef mozilla_GleanToolkitMozappsPushnotificationhelperMetrics_h
#define mozilla_GleanToolkitMozappsPushnotificationhelperMetrics_h
#include "mozilla/glean/bindings/MetricTypes.h"
namespace mozilla::glean {
namespace background_notification_helper {
/**
* generated from background_notification_helper.toggled
*/
enum class ToggledLabel: uint16_t {
eEnabled = 0,
eDisabled = 1,
e__Other__,
};
/**
* Number of times the user turned the background notification helper on or off, labelled with the state it was turned to. This counts the user's own switch only: the Nimbus-owned gate that can withdraw the feature is not a user action and is not counted here, so a client whose helper stops because the gate closed records nothing.
*/
constexpr impl::Labeled<impl::CounterMetric<impl::CounterType::eBaseOrLabeled>, ToggledLabel> toggled(6647);
/**
* generated from background_notification_helper.wake
* Number of times the background notification helper woke Firefox to receive push messages, counted when Firefox is launched with --receive-push-messages.
*/
constexpr impl::CounterMetric<impl::CounterType::eBaseOrLabeled> wake(6648);
/**
* generated from background_notification_helper.wake_messages
* Number of push messages that arrived during a single background notification helper wake, recorded once per wake just before Firefox stops receiving. Only messages that got as far as being dispatched count; ones that failed before that are counted by `web_push.error_code` instead.
*/
constexpr impl::CustomDistributionMetric wake_messages(6649);
/**
* generated from background_notification_helper.wake_notifications
* Number of web notifications shown during a single background notification helper wake, recorded once per wake just before Firefox stops receiving, and counted from the `web-notification-shown` notification. This is not the number of notifications the wake ultimately produced: a service worker shows its notification some time after the push message arrives, and receiving stops on a timer that does not wait for it, so anything shown after that point is missed. Private browsing notifications are never counted, and neither are non-web-content ones.
*/
constexpr impl::CustomDistributionMetric wake_notifications(6650);
}
} // namespace mozilla::glean
#endif // mozilla_GleanToolkitMozappsPushnotificationhelperMetrics_h