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.received")]
60 NotificationReceived,
61
62 #[strum(serialize = "notification.auth")]
64 NotificationAuth,
65
66 #[strum(serialize = "notification.auth.bad_vapid.json")]
68 NotificationAuthBadVapidJson,
69
70 #[strum(serialize = "notification.auth.bad_vapid.other")]
72 NotificationAuthBadVapidOther,
73
74 #[strum(serialize = "notification.auth.ok")]
76 NotificationAuthOk,
77
78 #[strum(serialize = "notification.auth.error")]
80 NotificationAuthError,
81
82 #[strum(serialize = "notification.message.expired")]
86 NotificationMessageExpired,
87
88 #[strum(serialize = "notification.bridge.error")]
90 NotificationBridgeError,
91
92 #[strum(serialize = "notification.bridge.sent")]
94 NotificationBridgeSent,
95
96 #[strum(serialize = "notification.total_request_time")]
98 NotificationTotalRequestTime,
99
100 #[strum(serialize = "notification.message_data")]
102 NotificationMessageData,
103
104 #[strum(serialize = "notification.message.stored")]
106 NotificationMessageStored,
107
108 #[strum(serialize = "notification.message.deleted")]
110 NotificationMessageDeleted,
111
112 #[strum(serialize = "notification.storage.time")]
116 NotificationStorageTime,
117
118 #[strum(serialize = "error.node.timeout")]
123 ErrorNodeTimeout,
124
125 #[strum(serialize = "error.node.connect")]
127 ErrorNodeConnect,
128
129 #[strum(serialize = "error.disconnect.semaphore_full")]
131 ErrorDisconnectSemaphoreFull,
132
133 #[strum(serialize = "updates.drop_user")]
138 UpdatesDropUser,
139
140 #[strum(serialize = "updates.vapid.draft")]
142 UpdatesVapidDraft,
143
144 #[strum(serialize = "updates.client.host_gone")]
146 UpdatesClientHostGone,
147
148 #[strum(serialize = "updates.vapid")]
150 UpdatesVapid,
151
152 #[strum(serialize = "megaphone.updater.ok")]
157 MegaphoneUpdaterOk,
158
159 #[strum(serialize = "megaphone.updater.error")]
161 MegaphoneUpdaterError,
162
163 #[strum(serialize = "reliability.error.redis_unavailable")]
168 ReliabilityErrorRedisUnavailable,
169
170 #[strum(serialize = "error.redis.unavailable")]
174 ErrorRedisUnavailable,
175
176 #[strum(serialize = "database.retry")]
181 DatabaseRetry,
182
183 #[strum(serialize = "database.drop_user")]
185 DatabaseDropUser,
186
187 #[strum(serialize = "reliability.gc")]
192 ReliabilityGc,
193
194 #[strum(serialize = "request.in_flight")]
199 InFlightNodeRequests,
200
201 #[strum(serialize = "notification.route_time")]
203 NotificationRouteTime,
204
205 #[strum(serialize = "notification.storage.save_time")]
207 StorageSaveTime,
208
209 #[strum(serialize = "notification.direct.delivery_time")]
211 DirectDeliveryTime,
212
213 #[strum(serialize = "notification.direct.delivery_status")]
215 DirectDeliveryStatus,
216}