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")]
84 NotificationMessageExpired,
85
86 #[strum(serialize = "notification.bridge.error")]
88 NotificationBridgeError,
89
90 #[strum(serialize = "notification.bridge.sent")]
92 NotificationBridgeSent,
93
94 #[strum(serialize = "notification.total_request_time")]
96 NotificationTotalRequestTime,
97
98 #[strum(serialize = "notification.message_data")]
100 NotificationMessageData,
101
102 #[strum(serialize = "notification.message.stored")]
104 NotificationMessageStored,
105
106 #[strum(serialize = "notification.message.deleted")]
108 NotificationMessageDeleted,
109
110 #[strum(serialize = "error.node.timeout")]
115 ErrorNodeTimeout,
116
117 #[strum(serialize = "error.node.connect")]
119 ErrorNodeConnect,
120
121 #[strum(serialize = "error.disconnect.semaphore_full")]
123 ErrorDisconnectSemaphoreFull,
124
125 #[strum(serialize = "updates.drop_user")]
130 UpdatesDropUser,
131
132 #[strum(serialize = "updates.vapid.draft")]
134 UpdatesVapidDraft,
135
136 #[strum(serialize = "updates.client.host_gone")]
138 UpdatesClientHostGone,
139
140 #[strum(serialize = "updates.vapid")]
142 UpdatesVapid,
143
144 #[strum(serialize = "megaphone.updater.ok")]
149 MegaphoneUpdaterOk,
150
151 #[strum(serialize = "megaphone.updater.error")]
153 MegaphoneUpdaterError,
154
155 #[strum(serialize = "reliability.error.redis_unavailable")]
160 ReliabilityErrorRedisUnavailable,
161
162 #[strum(serialize = "error.redis.unavailable")]
166 ErrorRedisUnavailable,
167
168 #[strum(serialize = "database.retry")]
173 DatabaseRetry,
174
175 #[strum(serialize = "database.drop_user")]
177 DatabaseDropUser,
178
179 #[strum(serialize = "reliability.gc")]
184 ReliabilityGc,
185
186 #[strum(serialize = "request.in_flight")]
191 InFlightNodeRequests,
192
193 #[strum(serialize = "notification.route_time")]
195 NotificationRouteTime,
196
197 #[strum(serialize = "notification.storage.save_time")]
199 StorageSaveTime,
200
201 #[strum(serialize = "notification.direct.delivery_time")]
203 DirectDeliveryTime,
204
205 #[strum(serialize = "notification.direct.delivery_status")]
207 DirectDeliveryStatus,
208}