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.command")]
15 UaCommand(String),
16 #[strum(serialize = "ua.already_connected")]
21 UaAlreadyConnected,
22
23 #[strum(serialize = "ua.command.register")]
25 UaCommandRegister,
26
27 #[strum(serialize = "ua.command.unregister")]
29 UaCommandUnregister,
30
31 #[strum(serialize = "ua.connection.check")]
33 UaConnectionCheck,
34
35 #[strum(serialize = "ua.connection.channel_count")]
37 UaConnectionChannelCount,
38
39 #[strum(serialize = "ua.notification.sent")]
41 UaNotificationSent,
42
43 #[strum(serialize = "ua.expiration")]
45 UaExpiration,
46
47 #[strum(serialize = "notification.auth")]
52 NotificationAuth,
53
54 #[strum(serialize = "notification.auth.bad_vapid.json")]
56 NotificationAuthBadVapidJson,
57
58 #[strum(serialize = "notification.auth.bad_vapid.other")]
60 NotificationAuthBadVapidOther,
61
62 #[strum(serialize = "notification.auth.ok")]
64 NotificationAuthOk,
65
66 #[strum(serialize = "notification.auth.error")]
68 NotificationAuthError,
69
70 #[strum(serialize = "notification.message.expired")]
72 NotificationMessageExpired,
73
74 #[strum(serialize = "notification.bridge.error")]
76 NotificationBridgeError,
77
78 #[strum(serialize = "notification.bridge.sent")]
80 NotificationBridgeSent,
81
82 #[strum(serialize = "notification.total_request_time")]
84 NotificationTotalRequestTime,
85
86 #[strum(serialize = "notification.message_data")]
88 NotificationMessageData,
89
90 #[strum(serialize = "notification.message.stored")]
92 NotificationMessageStored,
93
94 #[strum(serialize = "notification.message.deleted")]
96 NotificationMessageDeleted,
97
98 #[strum(serialize = "error.node.timeout")]
103 ErrorNodeTimeout,
104
105 #[strum(serialize = "error.node.connect")]
107 ErrorNodeConnect,
108
109 #[strum(serialize = "updates.drop_user")]
114 UpdatesDropUser,
115
116 #[strum(serialize = "updates.vapid.draft")]
118 UpdatesVapidDraft,
119
120 #[strum(serialize = "updates.client.host_gone")]
122 UpdatesClientHostGone,
123
124 #[strum(serialize = "updates.vapid")]
126 UpdatesVapid,
127
128 #[strum(serialize = "megaphone.updater.ok")]
133 MegaphoneUpdaterOk,
134
135 #[strum(serialize = "megaphone.updater.error")]
137 MegaphoneUpdaterError,
138
139 #[strum(serialize = "reliability.error.redis_unavailable")]
144 ReliabilityErrorRedisUnavailable,
145
146 #[strum(serialize = "error.redis.unavailable")]
150 ErrorRedisUnavailable,
151
152 #[strum(serialize = "database.retry")]
157 DatabaseRetry,
158
159 #[strum(serialize = "database.drop_user")]
161 DatabaseDropUser,
162
163 #[strum(serialize = "reliability.gc")]
168 ReliabilityGc,
169}