Hugo Benichi | a85c0db | 2021-11-01 14:20:37 +0900 | [diff] [blame^] | 1 | // Copyright 2021 The Chromium OS Authors. All rights reserved. |
| 2 | // Use of this source code is governed by a BSD-style license that can be |
| 3 | // found in the LICENSE file. |
| 4 | |
| 5 | #ifndef PATCHPANEL_METRICS_H_ |
| 6 | #define PATCHPANEL_METRICS_H_ |
| 7 | |
| 8 | namespace patchpanel { |
| 9 | |
| 10 | // UMA metrics name for patchpanel Manager Dbus API calls. |
| 11 | constexpr char kDbusUmaEventMetrics[] = "Network.Patchpanel.Dbus"; |
| 12 | |
| 13 | // UMA metrics events for |kDbusUmaEventMetrics|; |
| 14 | enum class DbusUmaEvent { |
| 15 | kUnknown = 0, |
| 16 | kArcStartup = 1, |
| 17 | kArcStartupSuccess = 2, |
| 18 | kArcShutdown = 3, |
| 19 | kArcShutdownSuccess = 4, |
| 20 | kArcVmStartup = 5, |
| 21 | kArcVmStartupSuccess = 6, |
| 22 | kArcVmShutdown = 7, |
| 23 | kArcVmShutdownSuccess = 8, |
| 24 | kTerminaVmStartup = 9, |
| 25 | kTerminaVmStartupSuccess = 10, |
| 26 | kTerminaVmShutdown = 11, |
| 27 | kTerminaVmShutdownSuccess = 12, |
| 28 | kPluginVmStartup = 13, |
| 29 | kPluginVmStartupSuccess = 14, |
| 30 | kPluginVmShutdown = 15, |
| 31 | kPluginVmShutdownSuccess = 16, |
| 32 | kSetVpnIntent = 17, |
| 33 | kSetVpnIntentSuccess = 18, |
| 34 | kConnectNamespace = 19, |
| 35 | kConnectNamespaceSuccess = 20, |
| 36 | kGetTrafficCounters = 21, |
| 37 | kGetTrafficCountersSuccess = 22, |
| 38 | kModifyPortRule = 23, |
| 39 | kModifyPortRuleSuccess = 24, |
| 40 | kGetDevices = 25, |
| 41 | kGetDevicesSuccess = 26, |
| 42 | kSetVpnLockdown = 27, |
| 43 | kSetVpnLockdownSuccess = 28, |
| 44 | kSetDnsRedirectionRule = 29, |
| 45 | kSetDnsRedirectionRuleSuccess = 30, |
| 46 | |
| 47 | kMaxValue, |
| 48 | }; |
| 49 | |
| 50 | } // namespace patchpanel |
| 51 | |
| 52 | #endif // PATCHPANEL_METRICS_H_ |