Skip to main content

CommonLibrary/Telemetry/
Tier.rs

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