canic_core/ids/
metrics.rs

1use candid::CandidType;
2use serde::{Deserialize, Serialize};
3
4///
5/// AccessMetricKind
6/// Enumerates the access-control stage that rejected the call.
7///
8
9#[derive(
10    CandidType, Clone, Copy, Debug, Deserialize, Eq, Hash, Ord, PartialEq, PartialOrd, Serialize,
11)]
12#[remain::sorted]
13pub enum AccessMetricKind {
14    Auth,
15    Env,
16    Guard,
17    Rule,
18}
19
20///
21/// SystemMetricKind
22///
23
24#[derive(Clone, Copy, Debug, Eq, Hash, Ord, PartialEq, PartialOrd)]
25#[remain::sorted]
26pub enum SystemMetricKind {
27    CanisterCall,
28    CanisterStatus,
29    CreateCanister,
30    DeleteCanister,
31    DepositCycles,
32    HttpOutcall,
33    InstallCode,
34    RawRand,
35    ReinstallCode,
36    TimerScheduled,
37    UninstallCode,
38    UpdateSettings,
39    UpgradeCode,
40}