#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct BarChart {
#[prost(message, optional, tag = "1")]
pub query: ::core::option::Option<bar_chart::Query>,
#[prost(message, optional, tag = "2")]
pub max_bars_per_chart: ::core::option::Option<i32>,
#[prost(message, optional, tag = "3")]
pub group_name_template: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub stack_definition: ::core::option::Option<bar_chart::StackDefinition>,
#[prost(enumeration = "common::ScaleType", tag = "5")]
pub scale_type: i32,
#[prost(message, optional, tag = "6")]
pub colors_by: ::core::option::Option<common::ColorsBy>,
#[prost(message, optional, tag = "7")]
pub x_axis: ::core::option::Option<bar_chart::XAxis>,
#[prost(enumeration = "common::Unit", tag = "8")]
pub unit: i32,
#[prost(enumeration = "common::SortByType", tag = "9")]
pub sort_by: i32,
#[prost(message, optional, tag = "10")]
pub color_scheme: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "common::DataModeType", tag = "11")]
pub data_mode_type: i32,
#[prost(enumeration = "BarValueDisplay", tag = "12")]
pub bar_value_display: i32,
#[prost(message, optional, tag = "13")]
pub custom_unit: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "14")]
pub decimal: ::core::option::Option<i32>,
#[prost(message, optional, tag = "15")]
pub legend: ::core::option::Option<common::Legend>,
}
pub mod bar_chart {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Query {
#[prost(oneof = "query::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<query::Value>,
}
pub mod query {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Logs(super::LogsQuery),
#[prost(message, tag = "2")]
Spans(super::SpansQuery),
#[prost(message, tag = "3")]
Metrics(super::MetricsQuery),
#[prost(message, tag = "4")]
Dataprime(super::DataprimeQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StackDefinition {
#[prost(message, optional, tag = "1")]
pub max_slices_per_bar: ::core::option::Option<i32>,
#[prost(message, optional, tag = "2")]
pub stack_name_template: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct XAxis {
#[prost(oneof = "x_axis::Type", tags = "1, 2")]
pub r#type: ::core::option::Option<x_axis::Type>,
}
pub mod x_axis {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct XAxisByValue {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct XAxisByTime {
#[prost(message, optional, tag = "1")]
pub interval: ::core::option::Option<::prost_wkt_types::Duration>,
#[prost(message, optional, tag = "2")]
pub buckets_presented: ::core::option::Option<i32>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum Type {
#[prost(message, tag = "1")]
Value(XAxisByValue),
#[prost(message, tag = "2")]
Time(XAxisByTime),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub aggregation: ::core::option::Option<
super::super::super::common::LogsAggregation,
>,
#[prost(message, repeated, tag = "3")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::LogsFilter>,
#[prost(message, repeated, tag = "4")]
pub group_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub stacked_group_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "6")]
pub group_names_fields: ::prost::alloc::vec::Vec<
super::super::super::common::ObservationField,
>,
#[prost(message, optional, tag = "7")]
pub stacked_group_name_field: ::core::option::Option<
super::super::super::common::ObservationField,
>,
#[prost(message, optional, tag = "8")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpansQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub aggregation: ::core::option::Option<
super::super::super::common::SpansAggregation,
>,
#[prost(message, repeated, tag = "3")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::SpansFilter>,
#[prost(message, repeated, tag = "4")]
pub group_names: ::prost::alloc::vec::Vec<
super::super::super::common::SpanField,
>,
#[prost(message, optional, tag = "5")]
pub stacked_group_name: ::core::option::Option<
super::super::super::common::SpanField,
>,
#[prost(message, optional, tag = "6")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricsQuery {
#[prost(message, optional, tag = "1")]
pub promql_query: ::core::option::Option<super::common::PromQlQuery>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::MetricsFilter>,
#[prost(message, repeated, tag = "3")]
pub group_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub stacked_group_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "super::common::MetricsQueryEditorMode", tag = "5")]
pub editor_mode: i32,
#[prost(message, optional, tag = "6")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataprimeQuery {
#[prost(message, optional, tag = "1")]
pub dataprime_query: ::core::option::Option<
super::super::super::common::DataprimeQuery,
>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::Source>,
#[prost(message, repeated, tag = "3")]
pub group_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub stacked_group_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
}
#[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 BarValueDisplay {
Unspecified = 0,
Top = 1,
Inside = 2,
Both = 3,
}
impl BarValueDisplay {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "BAR_VALUE_DISPLAY_UNSPECIFIED",
Self::Top => "BAR_VALUE_DISPLAY_TOP",
Self::Inside => "BAR_VALUE_DISPLAY_INSIDE",
Self::Both => "BAR_VALUE_DISPLAY_BOTH",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"BAR_VALUE_DISPLAY_UNSPECIFIED" => Some(Self::Unspecified),
"BAR_VALUE_DISPLAY_TOP" => Some(Self::Top),
"BAR_VALUE_DISPLAY_INSIDE" => Some(Self::Inside),
"BAR_VALUE_DISPLAY_BOTH" => Some(Self::Both),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataTable {
#[prost(message, optional, tag = "1")]
pub query: ::core::option::Option<data_table::Query>,
#[prost(message, optional, tag = "2")]
pub results_per_page: ::core::option::Option<i32>,
#[prost(enumeration = "RowStyle", tag = "3")]
pub row_style: i32,
#[prost(message, repeated, tag = "4")]
pub columns: ::prost::alloc::vec::Vec<data_table::Column>,
#[prost(message, optional, tag = "5")]
pub order_by: ::core::option::Option<super::super::common::OrderingField>,
#[prost(enumeration = "common::DataModeType", tag = "11")]
pub data_mode_type: i32,
}
pub mod data_table {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Query {
#[prost(oneof = "query::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<query::Value>,
}
pub mod query {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Logs(super::LogsQuery),
#[prost(message, tag = "2")]
Spans(super::SpansQuery),
#[prost(message, tag = "3")]
Metrics(super::MetricsQuery),
#[prost(message, tag = "4")]
Dataprime(super::DataprimeQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::LogsFilter>,
#[prost(message, optional, tag = "3")]
pub grouping: ::core::option::Option<logs_query::Grouping>,
#[prost(message, optional, tag = "4")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
pub mod logs_query {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Grouping {
#[prost(message, repeated, tag = "1")]
pub group_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "2")]
pub aggregations: ::prost::alloc::vec::Vec<Aggregation>,
#[prost(message, repeated, tag = "3")]
pub group_bys: ::prost::alloc::vec::Vec<
super::super::super::super::common::ObservationField,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Aggregation {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub is_visible: ::core::option::Option<bool>,
#[prost(message, optional, tag = "4")]
pub aggregation: ::core::option::Option<
super::super::super::super::common::LogsAggregation,
>,
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpansQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::SpansFilter>,
#[prost(message, optional, tag = "3")]
pub grouping: ::core::option::Option<spans_query::Grouping>,
#[prost(message, optional, tag = "4")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
pub mod spans_query {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Grouping {
#[prost(message, repeated, tag = "1")]
pub group_by: ::prost::alloc::vec::Vec<
super::super::super::super::common::SpanField,
>,
#[prost(message, repeated, tag = "2")]
pub aggregations: ::prost::alloc::vec::Vec<Aggregation>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Aggregation {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "3")]
pub is_visible: ::core::option::Option<bool>,
#[prost(message, optional, tag = "4")]
pub aggregation: ::core::option::Option<
super::super::super::super::common::SpansAggregation,
>,
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricsQuery {
#[prost(message, optional, tag = "1")]
pub promql_query: ::core::option::Option<super::common::PromQlQuery>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::MetricsFilter>,
#[prost(enumeration = "super::common::MetricsQueryEditorMode", tag = "3")]
pub editor_mode: i32,
#[prost(message, optional, tag = "4")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
#[prost(enumeration = "super::super::super::common::PromQlQueryType", tag = "5")]
pub promql_query_type: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataprimeQuery {
#[prost(message, optional, tag = "1")]
pub dataprime_query: ::core::option::Option<
super::super::super::common::DataprimeQuery,
>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::Source>,
#[prost(message, optional, tag = "3")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Column {
#[prost(message, optional, tag = "1")]
pub field: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub width: ::core::option::Option<i32>,
}
}
#[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 RowStyle {
Unspecified = 0,
OneLine = 1,
TwoLine = 2,
Condensed = 3,
Json = 4,
List = 5,
}
impl RowStyle {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "ROW_STYLE_UNSPECIFIED",
Self::OneLine => "ROW_STYLE_ONE_LINE",
Self::TwoLine => "ROW_STYLE_TWO_LINE",
Self::Condensed => "ROW_STYLE_CONDENSED",
Self::Json => "ROW_STYLE_JSON",
Self::List => "ROW_STYLE_LIST",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"ROW_STYLE_UNSPECIFIED" => Some(Self::Unspecified),
"ROW_STYLE_ONE_LINE" => Some(Self::OneLine),
"ROW_STYLE_TWO_LINE" => Some(Self::TwoLine),
"ROW_STYLE_CONDENSED" => Some(Self::Condensed),
"ROW_STYLE_JSON" => Some(Self::Json),
"ROW_STYLE_LIST" => Some(Self::List),
_ => None,
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Gauge {
#[prost(message, optional, tag = "1")]
pub query: ::core::option::Option<gauge::Query>,
#[prost(message, optional, tag = "2")]
pub min: ::core::option::Option<f64>,
#[prost(message, optional, tag = "3")]
pub max: ::core::option::Option<f64>,
#[prost(message, optional, tag = "4")]
pub show_inner_arc: ::core::option::Option<bool>,
#[prost(message, optional, tag = "5")]
pub show_outer_arc: ::core::option::Option<bool>,
#[prost(enumeration = "gauge::Unit", tag = "6")]
pub unit: i32,
#[prost(message, repeated, tag = "7")]
pub thresholds: ::prost::alloc::vec::Vec<gauge::Threshold>,
#[prost(enumeration = "common::DataModeType", tag = "8")]
pub data_mode_type: i32,
#[prost(enumeration = "gauge::ThresholdBy", tag = "9")]
pub threshold_by: i32,
#[prost(message, optional, tag = "10")]
pub custom_unit: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "11")]
pub decimal: ::core::option::Option<i32>,
#[prost(enumeration = "common::ThresholdType", tag = "12")]
pub threshold_type: i32,
#[prost(message, optional, tag = "13")]
pub legend: ::core::option::Option<common::Legend>,
#[prost(enumeration = "common::LegendBy", tag = "14")]
pub legend_by: i32,
}
pub mod gauge {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Query {
#[prost(oneof = "query::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<query::Value>,
}
pub mod query {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Metrics(super::MetricsQuery),
#[prost(message, tag = "2")]
Logs(super::LogsQuery),
#[prost(message, tag = "3")]
Spans(super::SpansQuery),
#[prost(message, tag = "4")]
Dataprime(super::DataprimeQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricsQuery {
#[prost(message, optional, tag = "1")]
pub promql_query: ::core::option::Option<super::common::PromQlQuery>,
#[prost(enumeration = "Aggregation", tag = "2")]
pub aggregation: i32,
#[prost(message, repeated, tag = "3")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::MetricsFilter>,
#[prost(enumeration = "super::common::MetricsQueryEditorMode", tag = "4")]
pub editor_mode: i32,
#[prost(message, optional, tag = "5")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub logs_aggregation: ::core::option::Option<
super::super::super::common::LogsAggregation,
>,
#[deprecated]
#[prost(enumeration = "Aggregation", tag = "3")]
pub aggregation: i32,
#[prost(message, repeated, tag = "4")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::LogsFilter>,
#[prost(message, repeated, tag = "5")]
pub group_by: ::prost::alloc::vec::Vec<
super::super::super::common::ObservationField,
>,
#[prost(message, optional, tag = "6")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpansQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub spans_aggregation: ::core::option::Option<
super::super::super::common::SpansAggregation,
>,
#[deprecated]
#[prost(enumeration = "Aggregation", tag = "3")]
pub aggregation: i32,
#[prost(message, repeated, tag = "4")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::SpansFilter>,
#[prost(message, repeated, tag = "5")]
pub group_by: ::prost::alloc::vec::Vec<super::super::super::common::SpanField>,
#[prost(message, optional, tag = "6")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataprimeQuery {
#[prost(message, optional, tag = "1")]
pub dataprime_query: ::core::option::Option<
super::super::super::common::DataprimeQuery,
>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::Source>,
#[prost(message, optional, tag = "3")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[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 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,
}
}
}
#[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,
Number = 1,
Percent = 2,
Microseconds = 3,
Milliseconds = 4,
Seconds = 5,
Bytes = 6,
Kbytes = 7,
Mbytes = 8,
Gbytes = 9,
BytesIec = 10,
Kibytes = 11,
Mibytes = 12,
Gibytes = 13,
EurCents = 14,
Eur = 15,
UsdCents = 16,
Usd = 17,
Custom = 18,
PercentZeroOne = 19,
PercentZeroHundred = 20,
Nanoseconds = 21,
}
impl Unit {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "UNIT_UNSPECIFIED",
Self::Number => "UNIT_NUMBER",
Self::Percent => "UNIT_PERCENT",
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::Custom => "UNIT_CUSTOM",
Self::PercentZeroOne => "UNIT_PERCENT_ZERO_ONE",
Self::PercentZeroHundred => "UNIT_PERCENT_ZERO_HUNDRED",
Self::Nanoseconds => "UNIT_NANOSECONDS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNIT_UNSPECIFIED" => Some(Self::Unspecified),
"UNIT_NUMBER" => Some(Self::Number),
"UNIT_PERCENT" => Some(Self::Percent),
"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_CUSTOM" => Some(Self::Custom),
"UNIT_PERCENT_ZERO_ONE" => Some(Self::PercentZeroOne),
"UNIT_PERCENT_ZERO_HUNDRED" => Some(Self::PercentZeroHundred),
"UNIT_NANOSECONDS" => Some(Self::Nanoseconds),
_ => 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, PartialEq, ::prost::Message)]
pub struct HorizontalBarChart {
#[prost(message, optional, tag = "1")]
pub query: ::core::option::Option<horizontal_bar_chart::Query>,
#[prost(message, optional, tag = "2")]
pub max_bars_per_chart: ::core::option::Option<i32>,
#[prost(message, optional, tag = "3")]
pub group_name_template: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub stack_definition: ::core::option::Option<horizontal_bar_chart::StackDefinition>,
#[prost(enumeration = "common::ScaleType", tag = "5")]
pub scale_type: i32,
#[prost(message, optional, tag = "6")]
pub colors_by: ::core::option::Option<common::ColorsBy>,
#[prost(enumeration = "common::Unit", tag = "8")]
pub unit: i32,
#[prost(message, optional, tag = "9")]
pub display_on_bar: ::core::option::Option<bool>,
#[prost(message, optional, tag = "10")]
pub y_axis_view_by: ::core::option::Option<horizontal_bar_chart::YAxisViewBy>,
#[prost(enumeration = "common::SortByType", tag = "11")]
pub sort_by: i32,
#[prost(message, optional, tag = "12")]
pub color_scheme: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "common::DataModeType", tag = "13")]
pub data_mode_type: i32,
#[prost(message, optional, tag = "14")]
pub custom_unit: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "15")]
pub decimal: ::core::option::Option<i32>,
#[prost(message, optional, tag = "16")]
pub legend: ::core::option::Option<common::Legend>,
}
pub mod horizontal_bar_chart {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Query {
#[prost(oneof = "query::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<query::Value>,
}
pub mod query {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Logs(super::LogsQuery),
#[prost(message, tag = "2")]
Spans(super::SpansQuery),
#[prost(message, tag = "3")]
Metrics(super::MetricsQuery),
#[prost(message, tag = "4")]
Dataprime(super::DataprimeQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StackDefinition {
#[prost(message, optional, tag = "1")]
pub max_slices_per_bar: ::core::option::Option<i32>,
#[prost(message, optional, tag = "2")]
pub stack_name_template: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct YAxisViewBy {
#[prost(oneof = "y_axis_view_by::YAxisView", tags = "1, 2")]
pub y_axis_view: ::core::option::Option<y_axis_view_by::YAxisView>,
}
pub mod y_axis_view_by {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct YAxisViewByCategory {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct YAxisViewByValue {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
pub enum YAxisView {
#[prost(message, tag = "1")]
Category(YAxisViewByCategory),
#[prost(message, tag = "2")]
Value(YAxisViewByValue),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub aggregation: ::core::option::Option<
super::super::super::common::LogsAggregation,
>,
#[prost(message, repeated, tag = "3")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::LogsFilter>,
#[prost(message, repeated, tag = "4")]
pub group_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub stacked_group_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "6")]
pub group_names_fields: ::prost::alloc::vec::Vec<
super::super::super::common::ObservationField,
>,
#[prost(message, optional, tag = "7")]
pub stacked_group_name_field: ::core::option::Option<
super::super::super::common::ObservationField,
>,
#[prost(message, optional, tag = "8")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpansQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub aggregation: ::core::option::Option<
super::super::super::common::SpansAggregation,
>,
#[prost(message, repeated, tag = "3")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::SpansFilter>,
#[prost(message, repeated, tag = "4")]
pub group_names: ::prost::alloc::vec::Vec<
super::super::super::common::SpanField,
>,
#[prost(message, optional, tag = "5")]
pub stacked_group_name: ::core::option::Option<
super::super::super::common::SpanField,
>,
#[prost(message, optional, tag = "6")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricsQuery {
#[prost(message, optional, tag = "1")]
pub promql_query: ::core::option::Option<super::common::PromQlQuery>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::MetricsFilter>,
#[prost(message, repeated, tag = "3")]
pub group_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub stacked_group_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "super::common::MetricsQueryEditorMode", tag = "5")]
pub editor_mode: i32,
#[prost(message, optional, tag = "6")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataprimeQuery {
#[prost(message, optional, tag = "1")]
pub dataprime_query: ::core::option::Option<
super::super::super::common::DataprimeQuery,
>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::Source>,
#[prost(message, repeated, tag = "3")]
pub group_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub stacked_group_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LineChart {
#[prost(message, optional, tag = "2")]
pub legend: ::core::option::Option<common::Legend>,
#[prost(message, optional, tag = "6")]
pub tooltip: ::core::option::Option<line_chart::Tooltip>,
#[prost(message, repeated, tag = "7")]
pub query_definitions: ::prost::alloc::vec::Vec<line_chart::QueryDefinition>,
#[prost(enumeration = "line_chart::StackedLine", tag = "9")]
pub stacked_line: i32,
}
pub mod line_chart {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct QueryDefinition {
#[prost(message, optional, tag = "1")]
pub id: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub query: ::core::option::Option<Query>,
#[prost(message, optional, tag = "3")]
pub series_name_template: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub series_count_limit: ::core::option::Option<i64>,
#[prost(enumeration = "super::common::Unit", tag = "5")]
pub unit: i32,
#[prost(enumeration = "super::common::ScaleType", tag = "6")]
pub scale_type: i32,
#[prost(message, optional, tag = "7")]
pub name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "8")]
pub is_visible: ::core::option::Option<bool>,
#[prost(message, optional, tag = "9")]
pub color_scheme: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "10")]
pub resolution: ::core::option::Option<Resolution>,
#[prost(enumeration = "super::common::DataModeType", tag = "11")]
pub data_mode_type: i32,
#[prost(message, optional, tag = "12")]
pub custom_unit: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "13")]
pub decimal: ::core::option::Option<i32>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Query {
#[prost(oneof = "query::Value", tags = "1, 2, 3, 5")]
pub value: ::core::option::Option<query::Value>,
}
pub mod query {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Logs(super::LogsQuery),
#[prost(message, tag = "2")]
Metrics(super::MetricsQuery),
#[prost(message, tag = "3")]
Spans(super::SpansQuery),
#[prost(message, tag = "5")]
Dataprime(super::DataprimeQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Tooltip {
#[prost(message, optional, tag = "1")]
pub show_labels: ::core::option::Option<bool>,
#[prost(enumeration = "TooltipType", tag = "2")]
pub r#type: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, repeated, tag = "2")]
pub group_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "3")]
pub aggregations: ::prost::alloc::vec::Vec<
super::super::super::common::LogsAggregation,
>,
#[prost(message, repeated, tag = "4")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::LogsFilter>,
#[prost(message, repeated, tag = "5")]
pub group_bys: ::prost::alloc::vec::Vec<
super::super::super::common::ObservationField,
>,
#[prost(message, optional, tag = "6")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricsQuery {
#[prost(message, optional, tag = "1")]
pub promql_query: ::core::option::Option<super::common::PromQlQuery>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::MetricsFilter>,
#[prost(enumeration = "super::common::MetricsQueryEditorMode", tag = "3")]
pub editor_mode: i32,
#[prost(message, optional, tag = "4")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpansQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, repeated, tag = "2")]
pub group_by: ::prost::alloc::vec::Vec<super::super::super::common::SpanField>,
#[prost(message, repeated, tag = "3")]
pub aggregations: ::prost::alloc::vec::Vec<
super::super::super::common::SpansAggregation,
>,
#[prost(message, repeated, tag = "4")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::SpansFilter>,
#[prost(message, optional, tag = "5")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataprimeQuery {
#[prost(message, optional, tag = "1")]
pub dataprime_query: ::core::option::Option<
super::super::super::common::DataprimeQuery,
>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::Source>,
#[prost(message, optional, tag = "3")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct Resolution {
#[prost(message, optional, tag = "1")]
pub interval: ::core::option::Option<::prost_wkt_types::Duration>,
#[prost(message, optional, tag = "2")]
pub buckets_presented: ::core::option::Option<i32>,
}
#[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 TooltipType {
Unspecified = 0,
All = 1,
Single = 2,
}
impl TooltipType {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "TOOLTIP_TYPE_UNSPECIFIED",
Self::All => "TOOLTIP_TYPE_ALL",
Self::Single => "TOOLTIP_TYPE_SINGLE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TOOLTIP_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"TOOLTIP_TYPE_ALL" => Some(Self::All),
"TOOLTIP_TYPE_SINGLE" => Some(Self::Single),
_ => 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 StackedLine {
Unspecified = 0,
Absolute = 1,
Relative = 2,
}
impl StackedLine {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "STACKED_LINE_UNSPECIFIED",
Self::Absolute => "STACKED_LINE_ABSOLUTE",
Self::Relative => "STACKED_LINE_RELATIVE",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"STACKED_LINE_UNSPECIFIED" => Some(Self::Unspecified),
"STACKED_LINE_ABSOLUTE" => Some(Self::Absolute),
"STACKED_LINE_RELATIVE" => Some(Self::Relative),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Markdown {
#[prost(message, optional, tag = "1")]
pub markdown_text: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "2")]
pub tooltip_text: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PieChart {
#[prost(message, optional, tag = "1")]
pub query: ::core::option::Option<pie_chart::Query>,
#[prost(message, optional, tag = "2")]
pub max_slices_per_chart: ::core::option::Option<i32>,
#[prost(message, optional, tag = "3")]
pub min_slice_percentage: ::core::option::Option<i32>,
#[prost(message, optional, tag = "4")]
pub stack_definition: ::core::option::Option<pie_chart::StackDefinition>,
#[prost(message, optional, tag = "5")]
pub label_definition: ::core::option::Option<pie_chart::LabelDefinition>,
#[prost(message, optional, tag = "6")]
pub show_legend: ::core::option::Option<bool>,
#[prost(message, optional, tag = "7")]
pub group_name_template: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "common::Unit", tag = "8")]
pub unit: i32,
#[prost(message, optional, tag = "9")]
pub color_scheme: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "common::DataModeType", tag = "10")]
pub data_mode_type: i32,
#[prost(message, optional, tag = "11")]
pub custom_unit: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "12")]
pub decimal: ::core::option::Option<i32>,
#[prost(message, optional, tag = "13")]
pub legend: ::core::option::Option<common::Legend>,
}
pub mod pie_chart {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Query {
#[prost(oneof = "query::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<query::Value>,
}
pub mod query {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Logs(super::LogsQuery),
#[prost(message, tag = "2")]
Spans(super::SpansQuery),
#[prost(message, tag = "3")]
Metrics(super::MetricsQuery),
#[prost(message, tag = "4")]
Dataprime(super::DataprimeQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StackDefinition {
#[prost(message, optional, tag = "1")]
pub max_slices_per_stack: ::core::option::Option<i32>,
#[prost(message, optional, tag = "2")]
pub stack_name_template: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct LabelDefinition {
#[prost(enumeration = "LabelSource", tag = "1")]
pub label_source: i32,
#[prost(message, optional, tag = "2")]
pub is_visible: ::core::option::Option<bool>,
#[prost(message, optional, tag = "3")]
pub show_name: ::core::option::Option<bool>,
#[prost(message, optional, tag = "4")]
pub show_value: ::core::option::Option<bool>,
#[prost(message, optional, tag = "5")]
pub show_percentage: ::core::option::Option<bool>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub aggregation: ::core::option::Option<
super::super::super::common::LogsAggregation,
>,
#[prost(message, repeated, tag = "3")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::LogsFilter>,
#[prost(message, repeated, tag = "4")]
pub group_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub stacked_group_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, repeated, tag = "6")]
pub group_names_fields: ::prost::alloc::vec::Vec<
super::super::super::common::ObservationField,
>,
#[prost(message, optional, tag = "7")]
pub stacked_group_name_field: ::core::option::Option<
super::super::super::common::ObservationField,
>,
#[prost(message, optional, tag = "8")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpansQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub aggregation: ::core::option::Option<
super::super::super::common::SpansAggregation,
>,
#[prost(message, repeated, tag = "3")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::SpansFilter>,
#[prost(message, repeated, tag = "4")]
pub group_names: ::prost::alloc::vec::Vec<
super::super::super::common::SpanField,
>,
#[prost(message, optional, tag = "5")]
pub stacked_group_name: ::core::option::Option<
super::super::super::common::SpanField,
>,
#[prost(message, optional, tag = "6")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricsQuery {
#[prost(message, optional, tag = "1")]
pub promql_query: ::core::option::Option<super::common::PromQlQuery>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::MetricsFilter>,
#[prost(message, repeated, tag = "3")]
pub group_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub stacked_group_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "super::common::MetricsQueryEditorMode", tag = "5")]
pub editor_mode: i32,
#[prost(message, optional, tag = "6")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataprimeQuery {
#[prost(message, optional, tag = "1")]
pub dataprime_query: ::core::option::Option<
super::super::super::common::DataprimeQuery,
>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::Source>,
#[prost(message, repeated, tag = "3")]
pub group_names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(message, optional, tag = "4")]
pub stacked_group_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "5")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[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 LabelSource {
Unspecified = 0,
Inner = 1,
Stack = 2,
}
impl LabelSource {
pub fn as_str_name(&self) -> &'static str {
match self {
Self::Unspecified => "LABEL_SOURCE_UNSPECIFIED",
Self::Inner => "LABEL_SOURCE_INNER",
Self::Stack => "LABEL_SOURCE_STACK",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"LABEL_SOURCE_UNSPECIFIED" => Some(Self::Unspecified),
"LABEL_SOURCE_INNER" => Some(Self::Inner),
"LABEL_SOURCE_STACK" => Some(Self::Stack),
_ => None,
}
}
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Hexagon {
#[prost(message, optional, tag = "1")]
pub query: ::core::option::Option<hexagon::Query>,
#[prost(message, optional, tag = "2")]
pub min: ::core::option::Option<f64>,
#[prost(message, optional, tag = "3")]
pub max: ::core::option::Option<f64>,
#[prost(enumeration = "common::Unit", tag = "6")]
pub unit: i32,
#[prost(message, repeated, tag = "7")]
pub thresholds: ::prost::alloc::vec::Vec<common::Threshold>,
#[prost(enumeration = "common::DataModeType", tag = "8")]
pub data_mode_type: i32,
#[prost(message, optional, tag = "10")]
pub custom_unit: ::core::option::Option<::prost::alloc::string::String>,
#[prost(message, optional, tag = "11")]
pub decimal: ::core::option::Option<i32>,
#[prost(enumeration = "common::ThresholdType", tag = "12")]
pub threshold_type: i32,
#[prost(message, optional, tag = "13")]
pub legend: ::core::option::Option<common::Legend>,
#[prost(enumeration = "common::LegendBy", tag = "14")]
pub legend_by: i32,
}
pub mod hexagon {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Query {
#[prost(oneof = "query::Value", tags = "1, 2, 3, 4")]
pub value: ::core::option::Option<query::Value>,
}
pub mod query {
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Value {
#[prost(message, tag = "1")]
Metrics(super::MetricsQuery),
#[prost(message, tag = "2")]
Logs(super::LogsQuery),
#[prost(message, tag = "3")]
Spans(super::SpansQuery),
#[prost(message, tag = "4")]
Dataprime(super::DataprimeQuery),
}
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetricsQuery {
#[prost(message, optional, tag = "1")]
pub promql_query: ::core::option::Option<super::common::PromQlQuery>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::MetricsFilter>,
#[prost(enumeration = "super::common::MetricsQueryEditorMode", tag = "3")]
pub editor_mode: i32,
#[prost(message, optional, tag = "4")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
#[prost(enumeration = "super::common::Aggregation", tag = "5")]
pub aggregation: i32,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LogsQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub logs_aggregation: ::core::option::Option<
super::super::super::common::LogsAggregation,
>,
#[prost(message, repeated, tag = "3")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::LogsFilter>,
#[prost(message, repeated, tag = "4")]
pub group_by: ::prost::alloc::vec::Vec<
super::super::super::common::ObservationField,
>,
#[prost(message, optional, tag = "5")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SpansQuery {
#[prost(message, optional, tag = "1")]
pub lucene_query: ::core::option::Option<super::common::LuceneQuery>,
#[prost(message, optional, tag = "2")]
pub spans_aggregation: ::core::option::Option<
super::super::super::common::SpansAggregation,
>,
#[prost(message, repeated, tag = "3")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::SpansFilter>,
#[prost(message, repeated, tag = "4")]
pub group_by: ::prost::alloc::vec::Vec<super::super::super::common::SpanField>,
#[prost(message, optional, tag = "5")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataprimeQuery {
#[prost(message, optional, tag = "1")]
pub dataprime_query: ::core::option::Option<
super::super::super::common::DataprimeQuery,
>,
#[prost(message, repeated, tag = "2")]
pub filters: ::prost::alloc::vec::Vec<super::super::filter::Source>,
#[prost(message, optional, tag = "3")]
pub time_frame: ::core::option::Option<
super::super::super::common::TimeFrameSelect,
>,
}
}