yandex-cloud 2025.4.14

Generated gRPC clients for the Yandex Cloud API
Documentation
/// Statistical data aggregated by predefined set of quantiles.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Quantiles {
    /// 50 percentile (median).
    #[prost(double, tag = "1")]
    pub q50: f64,
    /// 75 percentile.
    #[prost(double, tag = "2")]
    pub q75: f64,
    /// 80 percentile.
    #[prost(double, tag = "3")]
    pub q80: f64,
    /// 85 percentile.
    #[prost(double, tag = "4")]
    pub q85: f64,
    /// 90 percentile.
    #[prost(double, tag = "5")]
    pub q90: f64,
    /// 95 percentile.
    #[prost(double, tag = "6")]
    pub q95: f64,
    /// 98 percentile.
    #[prost(double, tag = "7")]
    pub q98: f64,
    /// 99 percentile.
    #[prost(double, tag = "8")]
    pub q99: f64,
    /// 100 percentile (maximum or minimum).
    #[prost(double, tag = "9")]
    pub q100: f64,
}
/// Quantiles (percentiles).
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum QuantileType {
    /// Unspecified percentile.
    Unspecified = 0,
    /// 50 percentile (median).
    QuantileType50 = 1,
    /// 75 percentile.
    QuantileType75 = 2,
    /// 80 percentile.
    QuantileType80 = 3,
    /// 85 percentile.
    QuantileType85 = 4,
    /// 90 percentile.
    QuantileType90 = 5,
    /// 95 percentile.
    QuantileType95 = 6,
    /// 98 percentile.
    QuantileType98 = 7,
    /// 99 percentile.
    QuantileType99 = 8,
    /// 100 percentile (maximum or minimum).
    QuantileType100 = 9,
}
impl QuantileType {
    /// 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 {
            QuantileType::Unspecified => "QUANTILE_TYPE_UNSPECIFIED",
            QuantileType::QuantileType50 => "QUANTILE_TYPE_50",
            QuantileType::QuantileType75 => "QUANTILE_TYPE_75",
            QuantileType::QuantileType80 => "QUANTILE_TYPE_80",
            QuantileType::QuantileType85 => "QUANTILE_TYPE_85",
            QuantileType::QuantileType90 => "QUANTILE_TYPE_90",
            QuantileType::QuantileType95 => "QUANTILE_TYPE_95",
            QuantileType::QuantileType98 => "QUANTILE_TYPE_98",
            QuantileType::QuantileType99 => "QUANTILE_TYPE_99",
            QuantileType::QuantileType100 => "QUANTILE_TYPE_100",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "QUANTILE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "QUANTILE_TYPE_50" => Some(Self::QuantileType50),
            "QUANTILE_TYPE_75" => Some(Self::QuantileType75),
            "QUANTILE_TYPE_80" => Some(Self::QuantileType80),
            "QUANTILE_TYPE_85" => Some(Self::QuantileType85),
            "QUANTILE_TYPE_90" => Some(Self::QuantileType90),
            "QUANTILE_TYPE_95" => Some(Self::QuantileType95),
            "QUANTILE_TYPE_98" => Some(Self::QuantileType98),
            "QUANTILE_TYPE_99" => Some(Self::QuantileType99),
            "QUANTILE_TYPE_100" => Some(Self::QuantileType100),
            _ => None,
        }
    }
}
/// Tag attached to some entity.
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Tag {
    /// Key of the tag.
    #[prost(string, tag = "1")]
    pub key: ::prost::alloc::string::String,
    /// Value of the tag.
    #[prost(string, tag = "2")]
    pub value: ::prost::alloc::string::String,
}