summaryrefslogtreecommitdiff
path: root/src/rpc/envoy.extensions.resource_monitors.cpu_utilization.v3.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/rpc/envoy.extensions.resource_monitors.cpu_utilization.v3.rs')
-rw-r--r--src/rpc/envoy.extensions.resource_monitors.cpu_utilization.v3.rs44
1 files changed, 0 insertions, 44 deletions
diff --git a/src/rpc/envoy.extensions.resource_monitors.cpu_utilization.v3.rs b/src/rpc/envoy.extensions.resource_monitors.cpu_utilization.v3.rs
deleted file mode 100644
index 4de87d42..00000000
--- a/src/rpc/envoy.extensions.resource_monitors.cpu_utilization.v3.rs
+++ /dev/null
@@ -1,44 +0,0 @@
-// @generated
-// This file is @generated by prost-build.
-// \[#protodoc-title: CPU utilization\]
-// \[#extension: envoy.resource_monitors.cpu_utilization\]
-
-/// The CPU utilization resource monitor reports the Envoy process the CPU Utilization across different platforms.
-#[allow(clippy::derive_partial_eq_without_eq)]
-#[derive(Clone, Copy, PartialEq, ::prost::Message)]
-pub struct CpuUtilizationConfig {
- #[prost(enumeration="cpu_utilization_config::UtilizationComputeStrategy", tag="1")]
- pub mode: i32,
-}
-/// Nested message and enum types in `CpuUtilizationConfig`.
-pub mod cpu_utilization_config {
- #[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
- #[repr(i32)]
- pub enum UtilizationComputeStrategy {
- /// Reports CPU Utilization of the entire Linux Host machine
- Host = 0,
- /// Reports CPU Utilization of Envoy Container using CGROUP stats in Linux K8s environment
- Container = 1,
- }
- impl UtilizationComputeStrategy {
- /// String value of the enum field names used in the ProtoBuf definition.
- ///
- /// The values are not transformed in any way and thus are considered stable
- /// (if the ProtoBuf definition does not change) and safe for programmatic use.
- pub fn as_str_name(&self) -> &'static str {
- match self {
- UtilizationComputeStrategy::Host => "HOST",
- UtilizationComputeStrategy::Container => "CONTAINER",
- }
- }
- /// Creates an enum from field names used in the ProtoBuf definition.
- pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
- match value {
- "HOST" => Some(Self::Host),
- "CONTAINER" => Some(Self::Container),
- _ => None,
- }
- }
- }
-}
-// @@protoc_insertion_point(module)