Skip to main content

CommonLibrary/Telemetry/
Tier.rs

1//! Identifier for the calling Element. Tags every emitted event so the
2//! Errors & Reliability dashboard can pivot by `$tier`.
3
4#[derive(Clone, Copy, Debug, PartialEq, Eq)]
5pub enum Tier {
6	Mountain,
7
8	Air,
9
10	Echo,
11
12	Rest,
13
14	Grove,
15
16	Mist,
17
18	SideCar,
19
20	Common,
21}
22
23impl Tier {
24	pub fn AsStr(&self) -> &'static str {
25		match self {
26			Self::Mountain => "mountain",
27
28			Self::Air => "air",
29
30			Self::Echo => "echo",
31
32			Self::Rest => "rest",
33
34			Self::Grove => "grove",
35
36			Self::Mist => "mist",
37
38			Self::SideCar => "sidecar",
39
40			Self::Common => "common",
41		}
42	}
43}