Copy as Markdown
Other Tools
// -*- mode: C++ -*-
// 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
#ifndef mozilla_GleanDomPushMetrics_h
#define mozilla_GleanDomPushMetrics_h
#include "mozilla/glean/bindings/MetricTypes.h"
namespace mozilla::glean {
namespace web_push {
/**
* generated from web_push.api_notify
* Number of push messages that were successfully decrypted and delivered to a ServiceWorker.
* This metric was generated to correspond to the Legacy Telemetry count histogram PUSH_API_NOTIFY.
*/
constexpr impl::CounterMetric api_notify(3811);
/**
* generated from web_push.content_encoding
*/
enum class ContentEncodingLabel: uint16_t {
eAes128gcm = 0,
eAesgcm = 1,
e__Other__,
};
/**
* Which content encoding is being used for push.
*/
constexpr impl::Labeled<impl::CounterMetric, ContentEncodingLabel> content_encoding(3812);
/**
* generated from web_push.detected_duplicated_message_ids
* Counts the duplicated IDs from the server. The ability to detect depends on the pref `dom.push.maxRecentMessageIDsPerSubscription`.
*/
constexpr impl::CounterMetric detected_duplicated_message_ids(3813);
/**
* generated from web_push.error_code
*/
enum class ErrorCodeLabel: uint16_t {
eDecryptionError = 0,
eNotDelivered = 1,
eUncaughtException = 2,
eUnhandledRejection = 3,
eInternalError = 4,
e__Other__,
};
/**
* The code indicating why the push message couldn't be processed.
*/
constexpr impl::Labeled<impl::CounterMetric, ErrorCodeLabel> error_code(3814);
/**
* generated from web_push.unsubscribed_by_clearing_data
* Counts unsubscriptions triggered by ClearDataService.
*/
constexpr impl::CounterMetric unsubscribed_by_clearing_data(3815);
}
} // namespace mozilla::glean
#endif // mozilla_GleanDomPushMetrics_h