autopush_common/
metric_name.rs1use strum::{AsRefStr, Display, EnumString};
7use strum_macros::IntoStaticStr;
8
9#[derive(Debug, Clone, IntoStaticStr, AsRefStr, Display, EnumString)]
11#[strum(serialize_all = "snake_case")]
12pub enum MetricName {
13 #[strum(serialize = "ua.already_connected")]
18 UaAlreadyConnected,
19
20 #[strum(serialize = "ua.command.hello")]
22 UaCommandHello,
23
24 #[strum(serialize = "ua.command.register")]
26 UaCommandRegister,
27
28 #[strum(serialize = "ua.command.unregister")]
30 UaCommandUnregister,
31
32 #[strum(serialize = "ua.command.ack")]
34 UaCommandAck,
35
36 #[strum(serialize = "ua.command.nack")]
38 UaCommandNack,
39
40 #[strum(serialize = "ua.connection.check")]
42 UaConnectionCheck,
43
44 #[strum(serialize = "ua.connection.channel_count")]
46 UaConnectionChannelCount,
47
48 #[strum(serialize = "ua.notification.sent")]
50 UaNotificationSent,
51
52 #[strum(serialize = "ua.expiration")]
54 UaExpiration,
55
56 #[strum(serialize = "notification.auth")]
61 NotificationAuth,
62
63 #[strum(serialize = "notification.auth.bad_vapid.json")]
65 NotificationAuthBadVapidJson,
66
67 #[strum(serialize = "notification.auth.bad_vapid.other")]
69 NotificationAuthBadVapidOther,
70
71 #[strum(serialize = "notification.auth.ok")]
73 NotificationAuthOk,
74
75 #[strum(serialize = "notification.auth.error")]
77 NotificationAuthError,
78
79 #[strum(serialize = "notification.message.expired")]
81 NotificationMessageExpired,
82
83 #[strum(serialize = "notification.bridge.error")]
85 NotificationBridgeError,
86
87 #[strum(serialize = "notification.bridge.sent")]
89 NotificationBridgeSent,
90
91 #[strum(serialize = "notification.total_request_time")]
93 NotificationTotalRequestTime,
94
95 #[strum(serialize = "notification.message_data")]
97 NotificationMessageData,
98
99 #[strum(serialize = "notification.message.stored")]
101 NotificationMessageStored,
102
103 #[strum(serialize = "notification.message.deleted")]
105 NotificationMessageDeleted,
106
107 #[strum(serialize = "error.node.timeout")]
112 ErrorNodeTimeout,
113
114 #[strum(serialize = "error.node.connect")]
116 ErrorNodeConnect,
117
118 #[strum(serialize = "updates.drop_user")]
123 UpdatesDropUser,
124
125 #[strum(serialize = "updates.vapid.draft")]
127 UpdatesVapidDraft,
128
129 #[strum(serialize = "updates.client.host_gone")]
131 UpdatesClientHostGone,
132
133 #[strum(serialize = "updates.vapid")]
135 UpdatesVapid,
136
137 #[strum(serialize = "megaphone.updater.ok")]
142 MegaphoneUpdaterOk,
143
144 #[strum(serialize = "megaphone.updater.error")]
146 MegaphoneUpdaterError,
147
148 #[strum(serialize = "reliability.error.redis_unavailable")]
153 ReliabilityErrorRedisUnavailable,
154
155 #[strum(serialize = "error.redis.unavailable")]
159 ErrorRedisUnavailable,
160
161 #[strum(serialize = "database.retry")]
166 DatabaseRetry,
167
168 #[strum(serialize = "database.drop_user")]
170 DatabaseDropUser,
171
172 #[strum(serialize = "reliability.gc")]
177 ReliabilityGc,
178}