#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ColorsBy {
#[prost(oneof = "colors_by::Value", tags = "1, 2, 3")]
pub value: ::core::option::Option<colors_by::Value>,
}
pub mod colors_by {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ColorsByStack {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ColorsByGroupBy {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct ColorsByAggregation {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Stack(ColorsByStack),
#[prost(message, tag = "2")]
GroupBy(ColorsByGroupBy),
#[prost(message, tag = "3")]
Aggregation(ColorsByAggregation),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum DataModeType {
HighUnspecified = 0,
Archive = 1,
}
impl DataModeType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::HighUnspecified => "DATA_MODE_TYPE_HIGH_UNSPECIFIED",
Self::Archive => "DATA_MODE_TYPE_ARCHIVE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"DATA_MODE_TYPE_HIGH_UNSPECIFIED" => Some(Self::HighUnspecified),
"DATA_MODE_TYPE_ARCHIVE" => Some(Self::Archive),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Legend {
#[prost(message, optional, tag = "1")]
pub is_visible: ::core::option::Option<bool>,
#[prost(enumeration = "legend::LegendColumn", repeated, tag = "2")]
pub columns: ::prost::alloc::vec::Vec<i32>,
#[prost(message, optional, tag = "3")]
pub group_by_query: ::core::option::Option<bool>,
#[prost(enumeration = "legend::LegendPlacement", tag = "4")]
pub placement: i32,
}
pub mod legend {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LegendColumn {
Unspecified = 0,
Min = 1,
Max = 2,
Sum = 3,
Avg = 4,
Last = 5,
Name = 6,
}
impl LegendColumn {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "LEGEND_COLUMN_UNSPECIFIED",
Self::Min => "LEGEND_COLUMN_MIN",
Self::Max => "LEGEND_COLUMN_MAX",
Self::Sum => "LEGEND_COLUMN_SUM",
Self::Avg => "LEGEND_COLUMN_AVG",
Self::Last => "LEGEND_COLUMN_LAST",
Self::Name => "LEGEND_COLUMN_NAME",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"LEGEND_COLUMN_UNSPECIFIED" => Some(Self::Unspecified),
"LEGEND_COLUMN_MIN" => Some(Self::Min),
"LEGEND_COLUMN_MAX" => Some(Self::Max),
"LEGEND_COLUMN_SUM" => Some(Self::Sum),
"LEGEND_COLUMN_AVG" => Some(Self::Avg),
"LEGEND_COLUMN_LAST" => Some(Self::Last),
"LEGEND_COLUMN_NAME" => Some(Self::Name),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum LegendPlacement {
Unspecified = 0,
Auto = 1,
Bottom = 2,
Side = 3,
Hidden = 4,
}
impl LegendPlacement {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "LEGEND_PLACEMENT_UNSPECIFIED",
Self::Auto => "LEGEND_PLACEMENT_AUTO",
Self::Bottom => "LEGEND_PLACEMENT_BOTTOM",
Self::Side => "LEGEND_PLACEMENT_SIDE",
Self::Hidden => "LEGEND_PLACEMENT_HIDDEN",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"LEGEND_PLACEMENT_UNSPECIFIED" => Some(Self::Unspecified),
"LEGEND_PLACEMENT_AUTO" => Some(Self::Auto),
"LEGEND_PLACEMENT_BOTTOM" => Some(Self::Bottom),
"LEGEND_PLACEMENT_SIDE" => Some(Self::Side),
"LEGEND_PLACEMENT_HIDDEN" => Some(Self::Hidden),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum LegendBy {
Unspecified = 0,
Thresholds = 1,
Groups = 2,
}
impl LegendBy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "LEGEND_BY_UNSPECIFIED",
Self::Thresholds => "LEGEND_BY_THRESHOLDS",
Self::Groups => "LEGEND_BY_GROUPS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"LEGEND_BY_UNSPECIFIED" => Some(Self::Unspecified),
"LEGEND_BY_THRESHOLDS" => Some(Self::Thresholds),
"LEGEND_BY_GROUPS" => Some(Self::Groups),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MetricsQueryEditorMode {
Unspecified = 0,
Text = 1,
Builder = 2,
}
impl MetricsQueryEditorMode {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "METRICS_QUERY_EDITOR_MODE_UNSPECIFIED",
Self::Text => "METRICS_QUERY_EDITOR_MODE_TEXT",
Self::Builder => "METRICS_QUERY_EDITOR_MODE_BUILDER",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"METRICS_QUERY_EDITOR_MODE_UNSPECIFIED" => Some(Self::Unspecified),
"METRICS_QUERY_EDITOR_MODE_TEXT" => Some(Self::Text),
"METRICS_QUERY_EDITOR_MODE_BUILDER" => Some(Self::Builder),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PromQlQuery {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LuceneQuery {
#[prost(message, optional, tag = "1")]
pub value: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ScaleType {
Unspecified = 0,
Linear = 1,
Logarithmic = 2,
}
impl ScaleType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SCALE_TYPE_UNSPECIFIED",
Self::Linear => "SCALE_TYPE_LINEAR",
Self::Logarithmic => "SCALE_TYPE_LOGARITHMIC",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SCALE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"SCALE_TYPE_LINEAR" => Some(Self::Linear),
"SCALE_TYPE_LOGARITHMIC" => Some(Self::Logarithmic),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SortByType {
Unspecified = 0,
Value = 1,
Name = 2,
}
impl SortByType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "SORT_BY_TYPE_UNSPECIFIED",
Self::Value => "SORT_BY_TYPE_VALUE",
Self::Name => "SORT_BY_TYPE_NAME",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SORT_BY_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"SORT_BY_TYPE_VALUE" => Some(Self::Value),
"SORT_BY_TYPE_NAME" => Some(Self::Name),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Unit {
Unspecified = 0,
Microseconds = 1,
Milliseconds = 2,
Seconds = 3,
Bytes = 4,
Kbytes = 5,
Mbytes = 6,
Gbytes = 7,
BytesIec = 8,
Kibytes = 9,
Mibytes = 10,
Gibytes = 11,
EurCents = 12,
Eur = 13,
UsdCents = 14,
Usd = 15,
Nanoseconds = 16,
Custom = 17,
PercentZeroOne = 18,
PercentZeroHundred = 19,
Percent = 20,
}
impl Unit {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "UNIT_UNSPECIFIED",
Self::Microseconds => "UNIT_MICROSECONDS",
Self::Milliseconds => "UNIT_MILLISECONDS",
Self::Seconds => "UNIT_SECONDS",
Self::Bytes => "UNIT_BYTES",
Self::Kbytes => "UNIT_KBYTES",
Self::Mbytes => "UNIT_MBYTES",
Self::Gbytes => "UNIT_GBYTES",
Self::BytesIec => "UNIT_BYTES_IEC",
Self::Kibytes => "UNIT_KIBYTES",
Self::Mibytes => "UNIT_MIBYTES",
Self::Gibytes => "UNIT_GIBYTES",
Self::EurCents => "UNIT_EUR_CENTS",
Self::Eur => "UNIT_EUR",
Self::UsdCents => "UNIT_USD_CENTS",
Self::Usd => "UNIT_USD",
Self::Nanoseconds => "UNIT_NANOSECONDS",
Self::Custom => "UNIT_CUSTOM",
Self::PercentZeroOne => "UNIT_PERCENT_ZERO_ONE",
Self::PercentZeroHundred => "UNIT_PERCENT_ZERO_HUNDRED",
Self::Percent => "UNIT_PERCENT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNIT_UNSPECIFIED" => Some(Self::Unspecified),
"UNIT_MICROSECONDS" => Some(Self::Microseconds),
"UNIT_MILLISECONDS" => Some(Self::Milliseconds),
"UNIT_SECONDS" => Some(Self::Seconds),
"UNIT_BYTES" => Some(Self::Bytes),
"UNIT_KBYTES" => Some(Self::Kbytes),
"UNIT_MBYTES" => Some(Self::Mbytes),
"UNIT_GBYTES" => Some(Self::Gbytes),
"UNIT_BYTES_IEC" => Some(Self::BytesIec),
"UNIT_KIBYTES" => Some(Self::Kibytes),
"UNIT_MIBYTES" => Some(Self::Mibytes),
"UNIT_GIBYTES" => Some(Self::Gibytes),
"UNIT_EUR_CENTS" => Some(Self::EurCents),
"UNIT_EUR" => Some(Self::Eur),
"UNIT_USD_CENTS" => Some(Self::UsdCents),
"UNIT_USD" => Some(Self::Usd),
"UNIT_NANOSECONDS" => Some(Self::Nanoseconds),
"UNIT_CUSTOM" => Some(Self::Custom),
"UNIT_PERCENT_ZERO_ONE" => Some(Self::PercentZeroOne),
"UNIT_PERCENT_ZERO_HUNDRED" => Some(Self::PercentZeroHundred),
"UNIT_PERCENT" => Some(Self::Percent),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Threshold {
#[prost(message, optional, tag = "1")]
pub from: ::core::option::Option<f64>,
#[prost(message, optional, tag = "2")]
pub color: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub label: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ThresholdType {
Unspecified = 0,
Relative = 1,
Absolute = 2,
}
impl ThresholdType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "THRESHOLD_TYPE_UNSPECIFIED",
Self::Relative => "THRESHOLD_TYPE_RELATIVE",
Self::Absolute => "THRESHOLD_TYPE_ABSOLUTE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"THRESHOLD_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"THRESHOLD_TYPE_RELATIVE" => Some(Self::Relative),
"THRESHOLD_TYPE_ABSOLUTE" => Some(Self::Absolute),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum ThresholdBy {
Unspecified = 0,
Value = 1,
Background = 2,
}
impl ThresholdBy {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "THRESHOLD_BY_UNSPECIFIED",
Self::Value => "THRESHOLD_BY_VALUE",
Self::Background => "THRESHOLD_BY_BACKGROUND",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"THRESHOLD_BY_UNSPECIFIED" => Some(Self::Unspecified),
"THRESHOLD_BY_VALUE" => Some(Self::Value),
"THRESHOLD_BY_BACKGROUND" => Some(Self::Background),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum Aggregation {
Unspecified = 0,
Last = 1,
Min = 2,
Max = 3,
Avg = 4,
Sum = 5,
}
impl Aggregation {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "AGGREGATION_UNSPECIFIED",
Self::Last => "AGGREGATION_LAST",
Self::Min => "AGGREGATION_MIN",
Self::Max => "AGGREGATION_MAX",
Self::Avg => "AGGREGATION_AVG",
Self::Sum => "AGGREGATION_SUM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"AGGREGATION_UNSPECIFIED" => Some(Self::Unspecified),
"AGGREGATION_LAST" => Some(Self::Last),
"AGGREGATION_MIN" => Some(Self::Min),
"AGGREGATION_MAX" => Some(Self::Max),
"AGGREGATION_AVG" => Some(Self::Avg),
"AGGREGATION_SUM" => Some(Self::Sum),
_ => None,
}
}
}