#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Downsampling {
#[prost(enumeration = "downsampling::GridAggregation", tag = "4")]
pub grid_aggregation: i32,
#[prost(enumeration = "downsampling::GapFilling", tag = "5")]
pub gap_filling: i32,
#[prost(oneof = "downsampling::Mode", tags = "1, 2, 3")]
pub mode: ::core::option::Option<downsampling::Mode>,
}
pub mod downsampling {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum GridAggregation {
Unspecified = 0,
Max = 1,
Min = 2,
Sum = 3,
Avg = 4,
Last = 5,
Count = 6,
}
impl GridAggregation {
pub fn as_str_name(&self) -> &'static str {
match self {
GridAggregation::Unspecified => "GRID_AGGREGATION_UNSPECIFIED",
GridAggregation::Max => "GRID_AGGREGATION_MAX",
GridAggregation::Min => "GRID_AGGREGATION_MIN",
GridAggregation::Sum => "GRID_AGGREGATION_SUM",
GridAggregation::Avg => "GRID_AGGREGATION_AVG",
GridAggregation::Last => "GRID_AGGREGATION_LAST",
GridAggregation::Count => "GRID_AGGREGATION_COUNT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"GRID_AGGREGATION_UNSPECIFIED" => Some(Self::Unspecified),
"GRID_AGGREGATION_MAX" => Some(Self::Max),
"GRID_AGGREGATION_MIN" => Some(Self::Min),
"GRID_AGGREGATION_SUM" => Some(Self::Sum),
"GRID_AGGREGATION_AVG" => Some(Self::Avg),
"GRID_AGGREGATION_LAST" => Some(Self::Last),
"GRID_AGGREGATION_COUNT" => Some(Self::Count),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum GapFilling {
Unspecified = 0,
Null = 1,
None = 2,
Previous = 3,
}
impl GapFilling {
pub fn as_str_name(&self) -> &'static str {
match self {
GapFilling::Unspecified => "GAP_FILLING_UNSPECIFIED",
GapFilling::Null => "GAP_FILLING_NULL",
GapFilling::None => "GAP_FILLING_NONE",
GapFilling::Previous => "GAP_FILLING_PREVIOUS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"GAP_FILLING_UNSPECIFIED" => Some(Self::Unspecified),
"GAP_FILLING_NULL" => Some(Self::Null),
"GAP_FILLING_NONE" => Some(Self::None),
"GAP_FILLING_PREVIOUS" => Some(Self::Previous),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Mode {
#[prost(int64, tag = "1")]
MaxPoints(i64),
#[prost(int64, tag = "2")]
GridInterval(i64),
#[prost(bool, tag = "3")]
Disabled(bool),
}
}
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum UnitFormat {
Unspecified = 0,
UnitNone = 1,
UnitCount = 2,
UnitPercent = 3,
UnitPercentUnit = 4,
UnitNanoseconds = 5,
UnitMicroseconds = 6,
UnitMilliseconds = 7,
UnitSeconds = 8,
UnitMinutes = 9,
UnitHours = 10,
UnitDays = 11,
UnitBitsSi = 12,
UnitBytesSi = 13,
UnitKilobytes = 14,
UnitMegabytes = 15,
UnitGigabytes = 16,
UnitTerabytes = 17,
UnitPetabytes = 18,
UnitExabytes = 19,
UnitBitsIec = 20,
UnitBytesIec = 21,
UnitKibibytes = 22,
UnitMebibytes = 23,
UnitGibibytes = 24,
UnitTebibytes = 25,
UnitPebibytes = 26,
UnitExbibytes = 27,
UnitRequestsPerSecond = 28,
UnitOperationsPerSecond = 29,
UnitWritesPerSecond = 30,
UnitReadsPerSecond = 31,
UnitPacketsPerSecond = 32,
UnitIoOperationsPerSecond = 33,
UnitCountsPerSecond = 34,
UnitBitsSiPerSecond = 35,
UnitBytesSiPerSecond = 36,
UnitKilobitsPerSecond = 37,
UnitKilobytesPerSecond = 38,
UnitMegabitsPerSecond = 39,
UnitMegabytesPerSecond = 40,
UnitGigabitsPerSecond = 41,
UnitGigabytesPerSecond = 42,
UnitTerabitsPerSecond = 43,
UnitTerabytesPerSecond = 44,
UnitPetabitsPerSecond = 45,
UnitPetabytesPerSecond = 46,
UnitBitsIecPerSecond = 47,
UnitBytesIecPerSecond = 48,
UnitKibibitsPerSecond = 49,
UnitKibibytesPerSecond = 50,
UnitMebibitsPerSecond = 51,
UnitMebibytesPerSecond = 52,
UnitGibibitsPerSecond = 53,
UnitGibibytesPerSecond = 54,
UnitTebibitsPerSecond = 55,
UnitTebibytesPerSecond = 56,
UnitPebibitsPerSecond = 57,
UnitPebibytesPerSecond = 58,
UnitDatetimeUtc = 59,
UnitDatetimeLocal = 60,
UnitHertz = 61,
UnitKilohertz = 62,
UnitMegahertz = 63,
UnitGigahertz = 64,
UnitDollar = 65,
UnitEuro = 66,
UnitRouble = 67,
UnitCelsius = 68,
UnitFahrenheit = 69,
UnitKelvin = 70,
UnitFlopPerSecond = 71,
UnitKiloflopPerSecond = 72,
UnitMegaflopPerSecond = 73,
UnitGigaflopPerSecond = 74,
UnitPetaflopPerSecond = 75,
UnitExaflopPerSecond = 76,
UnitMetersPerSecond = 77,
UnitKilometersPerHour = 78,
UnitMilesPerHour = 79,
UnitMillimeter = 80,
UnitCentimeter = 81,
UnitMeter = 82,
UnitKilometer = 83,
UnitMile = 84,
UnitPpm = 85,
UnitEventsPerSecond = 86,
UnitPackets = 87,
UnitDbm = 88,
UnitVirtualCpu = 89,
UnitMessagesPerSecond = 90,
UnitNanocoreCpu = 91,
UnitMicrocoreCpu = 92,
UnitMillicoreCpu = 93,
UnitCoreCpu = 94,
}
impl UnitFormat {
pub fn as_str_name(&self) -> &'static str {
match self {
UnitFormat::Unspecified => "UNIT_FORMAT_UNSPECIFIED",
UnitFormat::UnitNone => "UNIT_NONE",
UnitFormat::UnitCount => "UNIT_COUNT",
UnitFormat::UnitPercent => "UNIT_PERCENT",
UnitFormat::UnitPercentUnit => "UNIT_PERCENT_UNIT",
UnitFormat::UnitNanoseconds => "UNIT_NANOSECONDS",
UnitFormat::UnitMicroseconds => "UNIT_MICROSECONDS",
UnitFormat::UnitMilliseconds => "UNIT_MILLISECONDS",
UnitFormat::UnitSeconds => "UNIT_SECONDS",
UnitFormat::UnitMinutes => "UNIT_MINUTES",
UnitFormat::UnitHours => "UNIT_HOURS",
UnitFormat::UnitDays => "UNIT_DAYS",
UnitFormat::UnitBitsSi => "UNIT_BITS_SI",
UnitFormat::UnitBytesSi => "UNIT_BYTES_SI",
UnitFormat::UnitKilobytes => "UNIT_KILOBYTES",
UnitFormat::UnitMegabytes => "UNIT_MEGABYTES",
UnitFormat::UnitGigabytes => "UNIT_GIGABYTES",
UnitFormat::UnitTerabytes => "UNIT_TERABYTES",
UnitFormat::UnitPetabytes => "UNIT_PETABYTES",
UnitFormat::UnitExabytes => "UNIT_EXABYTES",
UnitFormat::UnitBitsIec => "UNIT_BITS_IEC",
UnitFormat::UnitBytesIec => "UNIT_BYTES_IEC",
UnitFormat::UnitKibibytes => "UNIT_KIBIBYTES",
UnitFormat::UnitMebibytes => "UNIT_MEBIBYTES",
UnitFormat::UnitGibibytes => "UNIT_GIBIBYTES",
UnitFormat::UnitTebibytes => "UNIT_TEBIBYTES",
UnitFormat::UnitPebibytes => "UNIT_PEBIBYTES",
UnitFormat::UnitExbibytes => "UNIT_EXBIBYTES",
UnitFormat::UnitRequestsPerSecond => "UNIT_REQUESTS_PER_SECOND",
UnitFormat::UnitOperationsPerSecond => "UNIT_OPERATIONS_PER_SECOND",
UnitFormat::UnitWritesPerSecond => "UNIT_WRITES_PER_SECOND",
UnitFormat::UnitReadsPerSecond => "UNIT_READS_PER_SECOND",
UnitFormat::UnitPacketsPerSecond => "UNIT_PACKETS_PER_SECOND",
UnitFormat::UnitIoOperationsPerSecond => "UNIT_IO_OPERATIONS_PER_SECOND",
UnitFormat::UnitCountsPerSecond => "UNIT_COUNTS_PER_SECOND",
UnitFormat::UnitBitsSiPerSecond => "UNIT_BITS_SI_PER_SECOND",
UnitFormat::UnitBytesSiPerSecond => "UNIT_BYTES_SI_PER_SECOND",
UnitFormat::UnitKilobitsPerSecond => "UNIT_KILOBITS_PER_SECOND",
UnitFormat::UnitKilobytesPerSecond => "UNIT_KILOBYTES_PER_SECOND",
UnitFormat::UnitMegabitsPerSecond => "UNIT_MEGABITS_PER_SECOND",
UnitFormat::UnitMegabytesPerSecond => "UNIT_MEGABYTES_PER_SECOND",
UnitFormat::UnitGigabitsPerSecond => "UNIT_GIGABITS_PER_SECOND",
UnitFormat::UnitGigabytesPerSecond => "UNIT_GIGABYTES_PER_SECOND",
UnitFormat::UnitTerabitsPerSecond => "UNIT_TERABITS_PER_SECOND",
UnitFormat::UnitTerabytesPerSecond => "UNIT_TERABYTES_PER_SECOND",
UnitFormat::UnitPetabitsPerSecond => "UNIT_PETABITS_PER_SECOND",
UnitFormat::UnitPetabytesPerSecond => "UNIT_PETABYTES_PER_SECOND",
UnitFormat::UnitBitsIecPerSecond => "UNIT_BITS_IEC_PER_SECOND",
UnitFormat::UnitBytesIecPerSecond => "UNIT_BYTES_IEC_PER_SECOND",
UnitFormat::UnitKibibitsPerSecond => "UNIT_KIBIBITS_PER_SECOND",
UnitFormat::UnitKibibytesPerSecond => "UNIT_KIBIBYTES_PER_SECOND",
UnitFormat::UnitMebibitsPerSecond => "UNIT_MEBIBITS_PER_SECOND",
UnitFormat::UnitMebibytesPerSecond => "UNIT_MEBIBYTES_PER_SECOND",
UnitFormat::UnitGibibitsPerSecond => "UNIT_GIBIBITS_PER_SECOND",
UnitFormat::UnitGibibytesPerSecond => "UNIT_GIBIBYTES_PER_SECOND",
UnitFormat::UnitTebibitsPerSecond => "UNIT_TEBIBITS_PER_SECOND",
UnitFormat::UnitTebibytesPerSecond => "UNIT_TEBIBYTES_PER_SECOND",
UnitFormat::UnitPebibitsPerSecond => "UNIT_PEBIBITS_PER_SECOND",
UnitFormat::UnitPebibytesPerSecond => "UNIT_PEBIBYTES_PER_SECOND",
UnitFormat::UnitDatetimeUtc => "UNIT_DATETIME_UTC",
UnitFormat::UnitDatetimeLocal => "UNIT_DATETIME_LOCAL",
UnitFormat::UnitHertz => "UNIT_HERTZ",
UnitFormat::UnitKilohertz => "UNIT_KILOHERTZ",
UnitFormat::UnitMegahertz => "UNIT_MEGAHERTZ",
UnitFormat::UnitGigahertz => "UNIT_GIGAHERTZ",
UnitFormat::UnitDollar => "UNIT_DOLLAR",
UnitFormat::UnitEuro => "UNIT_EURO",
UnitFormat::UnitRouble => "UNIT_ROUBLE",
UnitFormat::UnitCelsius => "UNIT_CELSIUS",
UnitFormat::UnitFahrenheit => "UNIT_FAHRENHEIT",
UnitFormat::UnitKelvin => "UNIT_KELVIN",
UnitFormat::UnitFlopPerSecond => "UNIT_FLOP_PER_SECOND",
UnitFormat::UnitKiloflopPerSecond => "UNIT_KILOFLOP_PER_SECOND",
UnitFormat::UnitMegaflopPerSecond => "UNIT_MEGAFLOP_PER_SECOND",
UnitFormat::UnitGigaflopPerSecond => "UNIT_GIGAFLOP_PER_SECOND",
UnitFormat::UnitPetaflopPerSecond => "UNIT_PETAFLOP_PER_SECOND",
UnitFormat::UnitExaflopPerSecond => "UNIT_EXAFLOP_PER_SECOND",
UnitFormat::UnitMetersPerSecond => "UNIT_METERS_PER_SECOND",
UnitFormat::UnitKilometersPerHour => "UNIT_KILOMETERS_PER_HOUR",
UnitFormat::UnitMilesPerHour => "UNIT_MILES_PER_HOUR",
UnitFormat::UnitMillimeter => "UNIT_MILLIMETER",
UnitFormat::UnitCentimeter => "UNIT_CENTIMETER",
UnitFormat::UnitMeter => "UNIT_METER",
UnitFormat::UnitKilometer => "UNIT_KILOMETER",
UnitFormat::UnitMile => "UNIT_MILE",
UnitFormat::UnitPpm => "UNIT_PPM",
UnitFormat::UnitEventsPerSecond => "UNIT_EVENTS_PER_SECOND",
UnitFormat::UnitPackets => "UNIT_PACKETS",
UnitFormat::UnitDbm => "UNIT_DBM",
UnitFormat::UnitVirtualCpu => "UNIT_VIRTUAL_CPU",
UnitFormat::UnitMessagesPerSecond => "UNIT_MESSAGES_PER_SECOND",
UnitFormat::UnitNanocoreCpu => "UNIT_NANOCORE_CPU",
UnitFormat::UnitMicrocoreCpu => "UNIT_MICROCORE_CPU",
UnitFormat::UnitMillicoreCpu => "UNIT_MILLICORE_CPU",
UnitFormat::UnitCoreCpu => "UNIT_CORE_CPU",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"UNIT_FORMAT_UNSPECIFIED" => Some(Self::Unspecified),
"UNIT_NONE" => Some(Self::UnitNone),
"UNIT_COUNT" => Some(Self::UnitCount),
"UNIT_PERCENT" => Some(Self::UnitPercent),
"UNIT_PERCENT_UNIT" => Some(Self::UnitPercentUnit),
"UNIT_NANOSECONDS" => Some(Self::UnitNanoseconds),
"UNIT_MICROSECONDS" => Some(Self::UnitMicroseconds),
"UNIT_MILLISECONDS" => Some(Self::UnitMilliseconds),
"UNIT_SECONDS" => Some(Self::UnitSeconds),
"UNIT_MINUTES" => Some(Self::UnitMinutes),
"UNIT_HOURS" => Some(Self::UnitHours),
"UNIT_DAYS" => Some(Self::UnitDays),
"UNIT_BITS_SI" => Some(Self::UnitBitsSi),
"UNIT_BYTES_SI" => Some(Self::UnitBytesSi),
"UNIT_KILOBYTES" => Some(Self::UnitKilobytes),
"UNIT_MEGABYTES" => Some(Self::UnitMegabytes),
"UNIT_GIGABYTES" => Some(Self::UnitGigabytes),
"UNIT_TERABYTES" => Some(Self::UnitTerabytes),
"UNIT_PETABYTES" => Some(Self::UnitPetabytes),
"UNIT_EXABYTES" => Some(Self::UnitExabytes),
"UNIT_BITS_IEC" => Some(Self::UnitBitsIec),
"UNIT_BYTES_IEC" => Some(Self::UnitBytesIec),
"UNIT_KIBIBYTES" => Some(Self::UnitKibibytes),
"UNIT_MEBIBYTES" => Some(Self::UnitMebibytes),
"UNIT_GIBIBYTES" => Some(Self::UnitGibibytes),
"UNIT_TEBIBYTES" => Some(Self::UnitTebibytes),
"UNIT_PEBIBYTES" => Some(Self::UnitPebibytes),
"UNIT_EXBIBYTES" => Some(Self::UnitExbibytes),
"UNIT_REQUESTS_PER_SECOND" => Some(Self::UnitRequestsPerSecond),
"UNIT_OPERATIONS_PER_SECOND" => Some(Self::UnitOperationsPerSecond),
"UNIT_WRITES_PER_SECOND" => Some(Self::UnitWritesPerSecond),
"UNIT_READS_PER_SECOND" => Some(Self::UnitReadsPerSecond),
"UNIT_PACKETS_PER_SECOND" => Some(Self::UnitPacketsPerSecond),
"UNIT_IO_OPERATIONS_PER_SECOND" => Some(Self::UnitIoOperationsPerSecond),
"UNIT_COUNTS_PER_SECOND" => Some(Self::UnitCountsPerSecond),
"UNIT_BITS_SI_PER_SECOND" => Some(Self::UnitBitsSiPerSecond),
"UNIT_BYTES_SI_PER_SECOND" => Some(Self::UnitBytesSiPerSecond),
"UNIT_KILOBITS_PER_SECOND" => Some(Self::UnitKilobitsPerSecond),
"UNIT_KILOBYTES_PER_SECOND" => Some(Self::UnitKilobytesPerSecond),
"UNIT_MEGABITS_PER_SECOND" => Some(Self::UnitMegabitsPerSecond),
"UNIT_MEGABYTES_PER_SECOND" => Some(Self::UnitMegabytesPerSecond),
"UNIT_GIGABITS_PER_SECOND" => Some(Self::UnitGigabitsPerSecond),
"UNIT_GIGABYTES_PER_SECOND" => Some(Self::UnitGigabytesPerSecond),
"UNIT_TERABITS_PER_SECOND" => Some(Self::UnitTerabitsPerSecond),
"UNIT_TERABYTES_PER_SECOND" => Some(Self::UnitTerabytesPerSecond),
"UNIT_PETABITS_PER_SECOND" => Some(Self::UnitPetabitsPerSecond),
"UNIT_PETABYTES_PER_SECOND" => Some(Self::UnitPetabytesPerSecond),
"UNIT_BITS_IEC_PER_SECOND" => Some(Self::UnitBitsIecPerSecond),
"UNIT_BYTES_IEC_PER_SECOND" => Some(Self::UnitBytesIecPerSecond),
"UNIT_KIBIBITS_PER_SECOND" => Some(Self::UnitKibibitsPerSecond),
"UNIT_KIBIBYTES_PER_SECOND" => Some(Self::UnitKibibytesPerSecond),
"UNIT_MEBIBITS_PER_SECOND" => Some(Self::UnitMebibitsPerSecond),
"UNIT_MEBIBYTES_PER_SECOND" => Some(Self::UnitMebibytesPerSecond),
"UNIT_GIBIBITS_PER_SECOND" => Some(Self::UnitGibibitsPerSecond),
"UNIT_GIBIBYTES_PER_SECOND" => Some(Self::UnitGibibytesPerSecond),
"UNIT_TEBIBITS_PER_SECOND" => Some(Self::UnitTebibitsPerSecond),
"UNIT_TEBIBYTES_PER_SECOND" => Some(Self::UnitTebibytesPerSecond),
"UNIT_PEBIBITS_PER_SECOND" => Some(Self::UnitPebibitsPerSecond),
"UNIT_PEBIBYTES_PER_SECOND" => Some(Self::UnitPebibytesPerSecond),
"UNIT_DATETIME_UTC" => Some(Self::UnitDatetimeUtc),
"UNIT_DATETIME_LOCAL" => Some(Self::UnitDatetimeLocal),
"UNIT_HERTZ" => Some(Self::UnitHertz),
"UNIT_KILOHERTZ" => Some(Self::UnitKilohertz),
"UNIT_MEGAHERTZ" => Some(Self::UnitMegahertz),
"UNIT_GIGAHERTZ" => Some(Self::UnitGigahertz),
"UNIT_DOLLAR" => Some(Self::UnitDollar),
"UNIT_EURO" => Some(Self::UnitEuro),
"UNIT_ROUBLE" => Some(Self::UnitRouble),
"UNIT_CELSIUS" => Some(Self::UnitCelsius),
"UNIT_FAHRENHEIT" => Some(Self::UnitFahrenheit),
"UNIT_KELVIN" => Some(Self::UnitKelvin),
"UNIT_FLOP_PER_SECOND" => Some(Self::UnitFlopPerSecond),
"UNIT_KILOFLOP_PER_SECOND" => Some(Self::UnitKiloflopPerSecond),
"UNIT_MEGAFLOP_PER_SECOND" => Some(Self::UnitMegaflopPerSecond),
"UNIT_GIGAFLOP_PER_SECOND" => Some(Self::UnitGigaflopPerSecond),
"UNIT_PETAFLOP_PER_SECOND" => Some(Self::UnitPetaflopPerSecond),
"UNIT_EXAFLOP_PER_SECOND" => Some(Self::UnitExaflopPerSecond),
"UNIT_METERS_PER_SECOND" => Some(Self::UnitMetersPerSecond),
"UNIT_KILOMETERS_PER_HOUR" => Some(Self::UnitKilometersPerHour),
"UNIT_MILES_PER_HOUR" => Some(Self::UnitMilesPerHour),
"UNIT_MILLIMETER" => Some(Self::UnitMillimeter),
"UNIT_CENTIMETER" => Some(Self::UnitCentimeter),
"UNIT_METER" => Some(Self::UnitMeter),
"UNIT_KILOMETER" => Some(Self::UnitKilometer),
"UNIT_MILE" => Some(Self::UnitMile),
"UNIT_PPM" => Some(Self::UnitPpm),
"UNIT_EVENTS_PER_SECOND" => Some(Self::UnitEventsPerSecond),
"UNIT_PACKETS" => Some(Self::UnitPackets),
"UNIT_DBM" => Some(Self::UnitDbm),
"UNIT_VIRTUAL_CPU" => Some(Self::UnitVirtualCpu),
"UNIT_MESSAGES_PER_SECOND" => Some(Self::UnitMessagesPerSecond),
"UNIT_NANOCORE_CPU" => Some(Self::UnitNanocoreCpu),
"UNIT_MICROCORE_CPU" => Some(Self::UnitMicrocoreCpu),
"UNIT_MILLICORE_CPU" => Some(Self::UnitMillicoreCpu),
"UNIT_CORE_CPU" => Some(Self::UnitCoreCpu),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ChartWidget {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub queries: ::core::option::Option<chart_widget::Queries>,
#[prost(message, optional, tag = "3")]
pub visualization_settings: ::core::option::Option<
chart_widget::VisualizationSettings,
>,
#[prost(message, repeated, tag = "4")]
pub series_overrides: ::prost::alloc::vec::Vec<chart_widget::SeriesOverrides>,
#[prost(message, optional, tag = "5")]
pub name_hiding_settings: ::core::option::Option<chart_widget::NameHidingSettings>,
#[prost(string, tag = "6")]
pub description: ::prost::alloc::string::String,
#[prost(string, tag = "7")]
pub title: ::prost::alloc::string::String,
#[prost(bool, tag = "8")]
pub display_legend: bool,
#[prost(enumeration = "chart_widget::FreezeDuration", tag = "9")]
pub freeze: i32,
#[prost(message, optional, tag = "10")]
pub repeat: ::core::option::Option<chart_widget::RepeatSettings>,
}
pub mod chart_widget {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Queries {
#[prost(message, repeated, tag = "1")]
pub targets: ::prost::alloc::vec::Vec<queries::Target>,
#[prost(message, optional, tag = "2")]
pub downsampling: ::core::option::Option<super::Downsampling>,
}
pub mod queries {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Target {
#[prost(string, tag = "1")]
pub query: ::prost::alloc::string::String,
#[prost(bool, tag = "2")]
pub text_mode: bool,
#[prost(bool, tag = "3")]
pub hidden: bool,
#[prost(string, tag = "4")]
pub name: ::prost::alloc::string::String,
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VisualizationSettings {
#[prost(enumeration = "visualization_settings::VisualizationType", tag = "1")]
pub r#type: i32,
#[prost(bool, tag = "2")]
pub normalize: bool,
#[prost(enumeration = "visualization_settings::Interpolate", tag = "3")]
pub interpolate: i32,
#[prost(enumeration = "visualization_settings::SeriesAggregation", tag = "4")]
pub aggregation: i32,
#[prost(message, optional, tag = "5")]
pub color_scheme_settings: ::core::option::Option<
visualization_settings::ColorSchemeSettings,
>,
#[prost(message, optional, tag = "6")]
pub heatmap_settings: ::core::option::Option<
visualization_settings::HeatmapSettings,
>,
#[prost(message, optional, tag = "7")]
pub yaxis_settings: ::core::option::Option<
visualization_settings::YaxisSettings,
>,
#[prost(string, tag = "8")]
pub title: ::prost::alloc::string::String,
#[prost(bool, tag = "9")]
pub show_labels: bool,
}
pub mod visualization_settings {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColorSchemeSettings {
#[prost(oneof = "color_scheme_settings::Scheme", tags = "1, 2, 3, 4")]
pub scheme: ::core::option::Option<color_scheme_settings::Scheme>,
}
pub mod color_scheme_settings {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutomaticColorScheme {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StandardColorScheme {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GradientColorScheme {
#[prost(string, tag = "2")]
pub green_value: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub yellow_value: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub red_value: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub violet_value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HashColorScheme {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Scheme {
#[prost(message, tag = "1")]
Automatic(AutomaticColorScheme),
#[prost(message, tag = "2")]
Standard(StandardColorScheme),
#[prost(message, tag = "3")]
Gradient(GradientColorScheme),
#[prost(message, tag = "4")]
Hash(HashColorScheme),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HeatmapSettings {
#[prost(string, tag = "2")]
pub green_value: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub yellow_value: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub red_value: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub violet_value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Yaxis {
#[prost(enumeration = "YaxisType", tag = "1")]
pub r#type: i32,
#[prost(string, tag = "2")]
pub title: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub min: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub max: ::prost::alloc::string::String,
#[prost(enumeration = "super::super::UnitFormat", tag = "5")]
pub unit_format: i32,
#[prost(message, optional, tag = "6")]
pub precision: ::core::option::Option<i64>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct YaxisSettings {
#[prost(message, optional, tag = "1")]
pub left: ::core::option::Option<Yaxis>,
#[prost(message, optional, tag = "2")]
pub right: ::core::option::Option<Yaxis>,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum VisualizationType {
Unspecified = 0,
Line = 1,
Stack = 2,
Column = 3,
Points = 4,
Pie = 5,
Bars = 6,
Distribution = 7,
Heatmap = 8,
}
impl VisualizationType {
pub fn as_str_name(&self) -> &'static str {
match self {
VisualizationType::Unspecified => "VISUALIZATION_TYPE_UNSPECIFIED",
VisualizationType::Line => "VISUALIZATION_TYPE_LINE",
VisualizationType::Stack => "VISUALIZATION_TYPE_STACK",
VisualizationType::Column => "VISUALIZATION_TYPE_COLUMN",
VisualizationType::Points => "VISUALIZATION_TYPE_POINTS",
VisualizationType::Pie => "VISUALIZATION_TYPE_PIE",
VisualizationType::Bars => "VISUALIZATION_TYPE_BARS",
VisualizationType::Distribution => "VISUALIZATION_TYPE_DISTRIBUTION",
VisualizationType::Heatmap => "VISUALIZATION_TYPE_HEATMAP",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"VISUALIZATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"VISUALIZATION_TYPE_LINE" => Some(Self::Line),
"VISUALIZATION_TYPE_STACK" => Some(Self::Stack),
"VISUALIZATION_TYPE_COLUMN" => Some(Self::Column),
"VISUALIZATION_TYPE_POINTS" => Some(Self::Points),
"VISUALIZATION_TYPE_PIE" => Some(Self::Pie),
"VISUALIZATION_TYPE_BARS" => Some(Self::Bars),
"VISUALIZATION_TYPE_DISTRIBUTION" => Some(Self::Distribution),
"VISUALIZATION_TYPE_HEATMAP" => Some(Self::Heatmap),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Interpolate {
Unspecified = 0,
Linear = 1,
Left = 2,
Right = 3,
}
impl Interpolate {
pub fn as_str_name(&self) -> &'static str {
match self {
Interpolate::Unspecified => "INTERPOLATE_UNSPECIFIED",
Interpolate::Linear => "INTERPOLATE_LINEAR",
Interpolate::Left => "INTERPOLATE_LEFT",
Interpolate::Right => "INTERPOLATE_RIGHT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"INTERPOLATE_UNSPECIFIED" => Some(Self::Unspecified),
"INTERPOLATE_LINEAR" => Some(Self::Linear),
"INTERPOLATE_LEFT" => Some(Self::Left),
"INTERPOLATE_RIGHT" => Some(Self::Right),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum YaxisType {
Unspecified = 0,
Linear = 1,
Logarithmic = 2,
}
impl YaxisType {
pub fn as_str_name(&self) -> &'static str {
match self {
YaxisType::Unspecified => "YAXIS_TYPE_UNSPECIFIED",
YaxisType::Linear => "YAXIS_TYPE_LINEAR",
YaxisType::Logarithmic => "YAXIS_TYPE_LOGARITHMIC",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"YAXIS_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"YAXIS_TYPE_LINEAR" => Some(Self::Linear),
"YAXIS_TYPE_LOGARITHMIC" => Some(Self::Logarithmic),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SeriesAggregation {
Unspecified = 0,
Avg = 1,
Min = 2,
Max = 3,
Last = 4,
Sum = 5,
}
impl SeriesAggregation {
pub fn as_str_name(&self) -> &'static str {
match self {
SeriesAggregation::Unspecified => "SERIES_AGGREGATION_UNSPECIFIED",
SeriesAggregation::Avg => "SERIES_AGGREGATION_AVG",
SeriesAggregation::Min => "SERIES_AGGREGATION_MIN",
SeriesAggregation::Max => "SERIES_AGGREGATION_MAX",
SeriesAggregation::Last => "SERIES_AGGREGATION_LAST",
SeriesAggregation::Sum => "SERIES_AGGREGATION_SUM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SERIES_AGGREGATION_UNSPECIFIED" => Some(Self::Unspecified),
"SERIES_AGGREGATION_AVG" => Some(Self::Avg),
"SERIES_AGGREGATION_MIN" => Some(Self::Min),
"SERIES_AGGREGATION_MAX" => Some(Self::Max),
"SERIES_AGGREGATION_LAST" => Some(Self::Last),
"SERIES_AGGREGATION_SUM" => Some(Self::Sum),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SeriesOverrides {
#[prost(message, optional, tag = "3")]
pub settings: ::core::option::Option<series_overrides::SeriesOverrideSettings>,
#[prost(oneof = "series_overrides::Type", tags = "1, 2")]
pub r#type: ::core::option::Option<series_overrides::Type>,
}
pub mod series_overrides {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SeriesOverrideSettings {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub color: ::prost::alloc::string::String,
#[prost(enumeration = "SeriesVisualizationType", tag = "3")]
pub r#type: i32,
#[prost(string, tag = "4")]
pub stack_name: ::prost::alloc::string::String,
#[prost(bool, tag = "5")]
pub grow_down: bool,
#[prost(enumeration = "YaxisPosition", tag = "6")]
pub yaxis_position: i32,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum YaxisPosition {
Unspecified = 0,
Left = 1,
Right = 2,
}
impl YaxisPosition {
pub fn as_str_name(&self) -> &'static str {
match self {
YaxisPosition::Unspecified => "YAXIS_POSITION_UNSPECIFIED",
YaxisPosition::Left => "YAXIS_POSITION_LEFT",
YaxisPosition::Right => "YAXIS_POSITION_RIGHT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"YAXIS_POSITION_UNSPECIFIED" => Some(Self::Unspecified),
"YAXIS_POSITION_LEFT" => Some(Self::Left),
"YAXIS_POSITION_RIGHT" => Some(Self::Right),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SeriesVisualizationType {
Unspecified = 0,
Line = 1,
Stack = 2,
Column = 3,
Points = 4,
}
impl SeriesVisualizationType {
pub fn as_str_name(&self) -> &'static str {
match self {
SeriesVisualizationType::Unspecified => {
"SERIES_VISUALIZATION_TYPE_UNSPECIFIED"
}
SeriesVisualizationType::Line => "SERIES_VISUALIZATION_TYPE_LINE",
SeriesVisualizationType::Stack => "SERIES_VISUALIZATION_TYPE_STACK",
SeriesVisualizationType::Column => "SERIES_VISUALIZATION_TYPE_COLUMN",
SeriesVisualizationType::Points => "SERIES_VISUALIZATION_TYPE_POINTS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SERIES_VISUALIZATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"SERIES_VISUALIZATION_TYPE_LINE" => Some(Self::Line),
"SERIES_VISUALIZATION_TYPE_STACK" => Some(Self::Stack),
"SERIES_VISUALIZATION_TYPE_COLUMN" => Some(Self::Column),
"SERIES_VISUALIZATION_TYPE_POINTS" => Some(Self::Points),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Type {
#[prost(string, tag = "1")]
Name(::prost::alloc::string::String),
#[prost(string, tag = "2")]
TargetIndex(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NameHidingSettings {
#[prost(bool, tag = "1")]
pub positive: bool,
#[prost(string, repeated, tag = "2")]
pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RepeatSettings {
#[prost(string, repeated, tag = "1")]
pub repeat_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(int64, tag = "2")]
pub max_charts_in_row: i64,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum FreezeDuration {
Unspecified = 0,
Hour = 1,
Day = 2,
Week = 3,
Month = 4,
}
impl FreezeDuration {
pub fn as_str_name(&self) -> &'static str {
match self {
FreezeDuration::Unspecified => "FREEZE_DURATION_UNSPECIFIED",
FreezeDuration::Hour => "FREEZE_DURATION_HOUR",
FreezeDuration::Day => "FREEZE_DURATION_DAY",
FreezeDuration::Week => "FREEZE_DURATION_WEEK",
FreezeDuration::Month => "FREEZE_DURATION_MONTH",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"FREEZE_DURATION_UNSPECIFIED" => Some(Self::Unspecified),
"FREEZE_DURATION_HOUR" => Some(Self::Hour),
"FREEZE_DURATION_DAY" => Some(Self::Day),
"FREEZE_DURATION_WEEK" => Some(Self::Week),
"FREEZE_DURATION_MONTH" => Some(Self::Month),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LabelValuesParameter {
#[prost(string, tag = "19")]
pub selectors: ::prost::alloc::string::String,
#[prost(string, tag = "20")]
pub label_key: ::prost::alloc::string::String,
#[prost(bool, tag = "21")]
pub multiselectable: bool,
#[prost(string, repeated, tag = "22")]
pub default_values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(oneof = "label_values_parameter::Container", tags = "2")]
pub container: ::core::option::Option<label_values_parameter::Container>,
}
pub mod label_values_parameter {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Container {
#[prost(string, tag = "2")]
FolderId(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomParameter {
#[prost(string, repeated, tag = "1")]
pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(bool, tag = "2")]
pub multiselectable: bool,
#[prost(string, repeated, tag = "3")]
pub default_values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextParameter {
#[prost(string, tag = "1")]
pub default_value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DoubleParameter {
#[prost(double, tag = "1")]
pub default_value: f64,
#[prost(enumeration = "UnitFormat", tag = "2")]
pub unit_format: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct IntegerParameter {
#[prost(int64, tag = "1")]
pub default_value: i64,
#[prost(enumeration = "UnitFormat", tag = "2")]
pub unit_format: i32,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextValuesParameter {
#[prost(string, repeated, tag = "1")]
pub default_values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Parameter {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub title: ::prost::alloc::string::String,
#[prost(bool, tag = "6")]
pub hidden: bool,
#[prost(string, tag = "10")]
pub description: ::prost::alloc::string::String,
#[prost(oneof = "parameter::Data", tags = "3, 4, 5, 7, 8, 9")]
pub data: ::core::option::Option<parameter::Data>,
}
pub mod parameter {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Data {
#[prost(message, tag = "3")]
LabelValues(super::LabelValuesParameter),
#[prost(message, tag = "4")]
Custom(super::CustomParameter),
#[prost(message, tag = "5")]
Text(super::TextParameter),
#[prost(message, tag = "7")]
IntegerParameter(super::IntegerParameter),
#[prost(message, tag = "8")]
DoubleParameter(super::DoubleParameter),
#[prost(message, tag = "9")]
TextValues(super::TextValuesParameter),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Parametrization {
#[prost(message, repeated, tag = "1")]
pub parameters: ::prost::alloc::vec::Vec<Parameter>,
#[prost(string, tag = "2")]
pub selectors: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TextWidget {
#[prost(string, tag = "1")]
pub text: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct TitleWidget {
#[prost(string, tag = "1")]
pub text: ::prost::alloc::string::String,
#[prost(enumeration = "title_widget::TitleSize", tag = "2")]
pub size: i32,
}
pub mod title_widget {
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum TitleSize {
Unspecified = 0,
Xs = 1,
S = 2,
M = 3,
L = 4,
}
impl TitleSize {
pub fn as_str_name(&self) -> &'static str {
match self {
TitleSize::Unspecified => "TITLE_SIZE_UNSPECIFIED",
TitleSize::Xs => "TITLE_SIZE_XS",
TitleSize::S => "TITLE_SIZE_S",
TitleSize::M => "TITLE_SIZE_M",
TitleSize::L => "TITLE_SIZE_L",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TITLE_SIZE_UNSPECIFIED" => Some(Self::Unspecified),
"TITLE_SIZE_XS" => Some(Self::Xs),
"TITLE_SIZE_S" => Some(Self::S),
"TITLE_SIZE_M" => Some(Self::M),
"TITLE_SIZE_L" => Some(Self::L),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MultiSourceChartWidget {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "2")]
pub targets: ::prost::alloc::vec::Vec<multi_source_chart_widget::Target>,
#[prost(message, repeated, tag = "3")]
pub data_sources: ::prost::alloc::vec::Vec<multi_source_chart_widget::DataSource>,
#[prost(message, optional, tag = "4")]
pub visualization_settings: ::core::option::Option<
multi_source_chart_widget::VisualizationSettings,
>,
#[prost(message, repeated, tag = "5")]
pub series_overrides: ::prost::alloc::vec::Vec<
multi_source_chart_widget::SeriesOverrides,
>,
#[prost(message, optional, tag = "6")]
pub name_hiding_settings: ::core::option::Option<
multi_source_chart_widget::NameHidingSettings,
>,
#[prost(string, tag = "7")]
pub description: ::prost::alloc::string::String,
#[prost(string, tag = "8")]
pub title: ::prost::alloc::string::String,
#[prost(bool, tag = "9")]
pub display_legend: bool,
#[prost(enumeration = "multi_source_chart_widget::FreezeDuration", tag = "10")]
pub freeze: i32,
#[prost(message, optional, tag = "11")]
pub repeat: ::core::option::Option<multi_source_chart_widget::RepeatSettings>,
}
pub mod multi_source_chart_widget {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Target {
#[prost(oneof = "target::Target", tags = "1, 2")]
pub target: ::core::option::Option<target::Target>,
}
pub mod target {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MonitoringTarget {
#[prost(string, tag = "1")]
pub data_source_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub query: ::prost::alloc::string::String,
#[prost(bool, tag = "3")]
pub text_mode: bool,
#[prost(bool, tag = "4")]
pub hidden: bool,
#[prost(string, tag = "5")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrometheusTarget {
#[prost(string, tag = "1")]
pub data_source_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub workspace_id: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub query: ::prost::alloc::string::String,
#[prost(bool, tag = "4")]
pub text_mode: bool,
#[prost(bool, tag = "5")]
pub hidden: bool,
#[prost(string, tag = "6")]
pub name: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Target {
#[prost(message, tag = "1")]
MonitoringTarget(MonitoringTarget),
#[prost(message, tag = "2")]
PrometheusTarget(PrometheusTarget),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DataSource {
#[prost(oneof = "data_source::DataSource", tags = "1, 2")]
pub data_source: ::core::option::Option<data_source::DataSource>,
}
pub mod data_source {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MonitoringDataSource {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "2")]
pub downsampling: ::core::option::Option<super::super::Downsampling>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct PrometheusDataSource {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(int64, tag = "2")]
pub step: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum DataSource {
#[prost(message, tag = "1")]
MonitoringDataSource(MonitoringDataSource),
#[prost(message, tag = "2")]
PrometheusDataSource(PrometheusDataSource),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct VisualizationSettings {
#[prost(enumeration = "visualization_settings::VisualizationType", tag = "1")]
pub r#type: i32,
#[prost(bool, tag = "2")]
pub normalize: bool,
#[prost(enumeration = "visualization_settings::Interpolate", tag = "3")]
pub interpolate: i32,
#[prost(enumeration = "visualization_settings::SeriesAggregation", tag = "4")]
pub aggregation: i32,
#[prost(message, optional, tag = "5")]
pub color_scheme_settings: ::core::option::Option<
visualization_settings::ColorSchemeSettings,
>,
#[prost(message, optional, tag = "6")]
pub heatmap_settings: ::core::option::Option<
visualization_settings::HeatmapSettings,
>,
#[prost(message, optional, tag = "7")]
pub yaxis_settings: ::core::option::Option<
visualization_settings::YaxisSettings,
>,
#[prost(string, tag = "8")]
pub title: ::prost::alloc::string::String,
#[prost(bool, tag = "9")]
pub show_labels: bool,
}
pub mod visualization_settings {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ColorSchemeSettings {
#[prost(oneof = "color_scheme_settings::Scheme", tags = "1, 2, 3, 4")]
pub scheme: ::core::option::Option<color_scheme_settings::Scheme>,
}
pub mod color_scheme_settings {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct AutomaticColorScheme {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StandardColorScheme {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GradientColorScheme {
#[prost(string, tag = "2")]
pub green_value: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub yellow_value: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub red_value: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub violet_value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HashColorScheme {}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Scheme {
#[prost(message, tag = "1")]
Automatic(AutomaticColorScheme),
#[prost(message, tag = "2")]
Standard(StandardColorScheme),
#[prost(message, tag = "3")]
Gradient(GradientColorScheme),
#[prost(message, tag = "4")]
Hash(HashColorScheme),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct HeatmapSettings {
#[prost(string, tag = "2")]
pub green_value: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub yellow_value: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub red_value: ::prost::alloc::string::String,
#[prost(string, tag = "5")]
pub violet_value: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Yaxis {
#[prost(enumeration = "YaxisType", tag = "1")]
pub r#type: i32,
#[prost(string, tag = "2")]
pub title: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub min: ::prost::alloc::string::String,
#[prost(string, tag = "4")]
pub max: ::prost::alloc::string::String,
#[prost(enumeration = "super::super::UnitFormat", tag = "5")]
pub unit_format: i32,
#[prost(message, optional, tag = "6")]
pub precision: ::core::option::Option<i64>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct YaxisSettings {
#[prost(message, optional, tag = "1")]
pub left: ::core::option::Option<Yaxis>,
#[prost(message, optional, tag = "2")]
pub right: ::core::option::Option<Yaxis>,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum VisualizationType {
Unspecified = 0,
Line = 1,
Stack = 2,
Column = 3,
Points = 4,
Pie = 5,
Bars = 6,
Distribution = 7,
Heatmap = 8,
}
impl VisualizationType {
pub fn as_str_name(&self) -> &'static str {
match self {
VisualizationType::Unspecified => "VISUALIZATION_TYPE_UNSPECIFIED",
VisualizationType::Line => "VISUALIZATION_TYPE_LINE",
VisualizationType::Stack => "VISUALIZATION_TYPE_STACK",
VisualizationType::Column => "VISUALIZATION_TYPE_COLUMN",
VisualizationType::Points => "VISUALIZATION_TYPE_POINTS",
VisualizationType::Pie => "VISUALIZATION_TYPE_PIE",
VisualizationType::Bars => "VISUALIZATION_TYPE_BARS",
VisualizationType::Distribution => "VISUALIZATION_TYPE_DISTRIBUTION",
VisualizationType::Heatmap => "VISUALIZATION_TYPE_HEATMAP",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"VISUALIZATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"VISUALIZATION_TYPE_LINE" => Some(Self::Line),
"VISUALIZATION_TYPE_STACK" => Some(Self::Stack),
"VISUALIZATION_TYPE_COLUMN" => Some(Self::Column),
"VISUALIZATION_TYPE_POINTS" => Some(Self::Points),
"VISUALIZATION_TYPE_PIE" => Some(Self::Pie),
"VISUALIZATION_TYPE_BARS" => Some(Self::Bars),
"VISUALIZATION_TYPE_DISTRIBUTION" => Some(Self::Distribution),
"VISUALIZATION_TYPE_HEATMAP" => Some(Self::Heatmap),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum Interpolate {
Unspecified = 0,
Linear = 1,
Left = 2,
Right = 3,
}
impl Interpolate {
pub fn as_str_name(&self) -> &'static str {
match self {
Interpolate::Unspecified => "INTERPOLATE_UNSPECIFIED",
Interpolate::Linear => "INTERPOLATE_LINEAR",
Interpolate::Left => "INTERPOLATE_LEFT",
Interpolate::Right => "INTERPOLATE_RIGHT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"INTERPOLATE_UNSPECIFIED" => Some(Self::Unspecified),
"INTERPOLATE_LINEAR" => Some(Self::Linear),
"INTERPOLATE_LEFT" => Some(Self::Left),
"INTERPOLATE_RIGHT" => Some(Self::Right),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum YaxisType {
Unspecified = 0,
Linear = 1,
Logarithmic = 2,
}
impl YaxisType {
pub fn as_str_name(&self) -> &'static str {
match self {
YaxisType::Unspecified => "YAXIS_TYPE_UNSPECIFIED",
YaxisType::Linear => "YAXIS_TYPE_LINEAR",
YaxisType::Logarithmic => "YAXIS_TYPE_LOGARITHMIC",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"YAXIS_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"YAXIS_TYPE_LINEAR" => Some(Self::Linear),
"YAXIS_TYPE_LOGARITHMIC" => Some(Self::Logarithmic),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SeriesAggregation {
Unspecified = 0,
Avg = 1,
Min = 2,
Max = 3,
Last = 4,
Sum = 5,
}
impl SeriesAggregation {
pub fn as_str_name(&self) -> &'static str {
match self {
SeriesAggregation::Unspecified => "SERIES_AGGREGATION_UNSPECIFIED",
SeriesAggregation::Avg => "SERIES_AGGREGATION_AVG",
SeriesAggregation::Min => "SERIES_AGGREGATION_MIN",
SeriesAggregation::Max => "SERIES_AGGREGATION_MAX",
SeriesAggregation::Last => "SERIES_AGGREGATION_LAST",
SeriesAggregation::Sum => "SERIES_AGGREGATION_SUM",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SERIES_AGGREGATION_UNSPECIFIED" => Some(Self::Unspecified),
"SERIES_AGGREGATION_AVG" => Some(Self::Avg),
"SERIES_AGGREGATION_MIN" => Some(Self::Min),
"SERIES_AGGREGATION_MAX" => Some(Self::Max),
"SERIES_AGGREGATION_LAST" => Some(Self::Last),
"SERIES_AGGREGATION_SUM" => Some(Self::Sum),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SeriesOverrides {
#[prost(message, optional, tag = "3")]
pub settings: ::core::option::Option<series_overrides::SeriesOverrideSettings>,
#[prost(oneof = "series_overrides::Type", tags = "1, 2")]
pub r#type: ::core::option::Option<series_overrides::Type>,
}
pub mod series_overrides {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SeriesOverrideSettings {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub color: ::prost::alloc::string::String,
#[prost(enumeration = "SeriesVisualizationType", tag = "3")]
pub r#type: i32,
#[prost(string, tag = "4")]
pub stack_name: ::prost::alloc::string::String,
#[prost(bool, tag = "5")]
pub grow_down: bool,
#[prost(enumeration = "YaxisPosition", tag = "6")]
pub yaxis_position: i32,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum YaxisPosition {
Unspecified = 0,
Left = 1,
Right = 2,
}
impl YaxisPosition {
pub fn as_str_name(&self) -> &'static str {
match self {
YaxisPosition::Unspecified => "YAXIS_POSITION_UNSPECIFIED",
YaxisPosition::Left => "YAXIS_POSITION_LEFT",
YaxisPosition::Right => "YAXIS_POSITION_RIGHT",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"YAXIS_POSITION_UNSPECIFIED" => Some(Self::Unspecified),
"YAXIS_POSITION_LEFT" => Some(Self::Left),
"YAXIS_POSITION_RIGHT" => Some(Self::Right),
_ => None,
}
}
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum SeriesVisualizationType {
Unspecified = 0,
Line = 1,
Stack = 2,
Column = 3,
Points = 4,
}
impl SeriesVisualizationType {
pub fn as_str_name(&self) -> &'static str {
match self {
SeriesVisualizationType::Unspecified => {
"SERIES_VISUALIZATION_TYPE_UNSPECIFIED"
}
SeriesVisualizationType::Line => "SERIES_VISUALIZATION_TYPE_LINE",
SeriesVisualizationType::Stack => "SERIES_VISUALIZATION_TYPE_STACK",
SeriesVisualizationType::Column => "SERIES_VISUALIZATION_TYPE_COLUMN",
SeriesVisualizationType::Points => "SERIES_VISUALIZATION_TYPE_POINTS",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"SERIES_VISUALIZATION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"SERIES_VISUALIZATION_TYPE_LINE" => Some(Self::Line),
"SERIES_VISUALIZATION_TYPE_STACK" => Some(Self::Stack),
"SERIES_VISUALIZATION_TYPE_COLUMN" => Some(Self::Column),
"SERIES_VISUALIZATION_TYPE_POINTS" => Some(Self::Points),
_ => None,
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Type {
#[prost(string, tag = "1")]
Name(::prost::alloc::string::String),
#[prost(string, tag = "2")]
TargetIndex(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct NameHidingSettings {
#[prost(bool, tag = "1")]
pub positive: bool,
#[prost(string, repeated, tag = "2")]
pub names: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RepeatSettings {
#[prost(string, repeated, tag = "1")]
pub repeat_by: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
#[prost(int64, tag = "2")]
pub max_charts_in_row: i64,
}
#[derive(
Clone,
Copy,
Debug,
PartialEq,
Eq,
Hash,
PartialOrd,
Ord,
::prost::Enumeration
)]
#[repr(i32)]
pub enum FreezeDuration {
Unspecified = 0,
Hour = 1,
Day = 2,
Week = 3,
Month = 4,
}
impl FreezeDuration {
pub fn as_str_name(&self) -> &'static str {
match self {
FreezeDuration::Unspecified => "FREEZE_DURATION_UNSPECIFIED",
FreezeDuration::Hour => "FREEZE_DURATION_HOUR",
FreezeDuration::Day => "FREEZE_DURATION_DAY",
FreezeDuration::Week => "FREEZE_DURATION_WEEK",
FreezeDuration::Month => "FREEZE_DURATION_MONTH",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"FREEZE_DURATION_UNSPECIFIED" => Some(Self::Unspecified),
"FREEZE_DURATION_HOUR" => Some(Self::Hour),
"FREEZE_DURATION_DAY" => Some(Self::Day),
"FREEZE_DURATION_WEEK" => Some(Self::Week),
"FREEZE_DURATION_MONTH" => Some(Self::Month),
_ => None,
}
}
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Widget {
#[prost(message, optional, tag = "1")]
pub position: ::core::option::Option<widget::LayoutPosition>,
#[prost(oneof = "widget::Widget", tags = "2, 3, 5, 10")]
pub widget: ::core::option::Option<widget::Widget>,
}
pub mod widget {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct LayoutPosition {
#[prost(int64, tag = "1")]
pub x: i64,
#[prost(int64, tag = "2")]
pub y: i64,
#[prost(int64, tag = "3")]
pub w: i64,
#[prost(int64, tag = "4")]
pub h: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Widget {
#[prost(message, tag = "2")]
Text(super::TextWidget),
#[prost(message, tag = "3")]
Title(super::TitleWidget),
#[prost(message, tag = "5")]
Chart(super::ChartWidget),
#[prost(message, tag = "10")]
MultiSourceChart(super::MultiSourceChartWidget),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Timeline {
#[prost(string, tag = "1")]
pub period: ::prost::alloc::string::String,
#[prost(int64, tag = "2")]
pub refresh_interval: i64,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Dashboard {
#[prost(string, tag = "1")]
pub id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "20")]
pub created_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(message, optional, tag = "21")]
pub modified_at: ::core::option::Option<::prost_types::Timestamp>,
#[prost(string, tag = "22")]
pub created_by: ::prost::alloc::string::String,
#[prost(string, tag = "23")]
pub modified_by: ::prost::alloc::string::String,
#[prost(string, tag = "24")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "25")]
pub description: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "26")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "27")]
pub title: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "28")]
pub widgets: ::prost::alloc::vec::Vec<Widget>,
#[prost(message, optional, tag = "29")]
pub parametrization: ::core::option::Option<Parametrization>,
#[prost(string, tag = "30")]
pub etag: ::prost::alloc::string::String,
#[prost(string, tag = "32")]
pub managed_by: ::prost::alloc::string::String,
#[prost(string, tag = "33")]
pub managed_link: ::prost::alloc::string::String,
#[prost(message, optional, tag = "34")]
pub timeline: ::core::option::Option<Timeline>,
#[prost(oneof = "dashboard::Container", tags = "3")]
pub container: ::core::option::Option<dashboard::Container>,
}
pub mod dashboard {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Container {
#[prost(string, tag = "3")]
FolderId(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct GetDashboardRequest {
#[prost(string, tag = "1")]
pub dashboard_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDashboardsRequest {
#[prost(int64, tag = "19")]
pub page_size: i64,
#[prost(string, tag = "20")]
pub page_token: ::prost::alloc::string::String,
#[prost(string, tag = "21")]
pub filter: ::prost::alloc::string::String,
#[prost(oneof = "list_dashboards_request::Container", tags = "2")]
pub container: ::core::option::Option<list_dashboards_request::Container>,
}
pub mod list_dashboards_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Container {
#[prost(string, tag = "2")]
FolderId(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDashboardsResponse {
#[prost(message, repeated, tag = "1")]
pub dashboards: ::prost::alloc::vec::Vec<Dashboard>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateDashboardRequest {
#[prost(string, tag = "19")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "20")]
pub description: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "21")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "22")]
pub title: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "23")]
pub widgets: ::prost::alloc::vec::Vec<Widget>,
#[prost(message, optional, tag = "24")]
pub parametrization: ::core::option::Option<Parametrization>,
#[prost(string, tag = "26")]
pub managed_by: ::prost::alloc::string::String,
#[prost(string, tag = "27")]
pub managed_link: ::prost::alloc::string::String,
#[prost(message, optional, tag = "34")]
pub timeline: ::core::option::Option<Timeline>,
#[prost(oneof = "create_dashboard_request::Container", tags = "2")]
pub container: ::core::option::Option<create_dashboard_request::Container>,
}
pub mod create_dashboard_request {
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Oneof)]
pub enum Container {
#[prost(string, tag = "2")]
FolderId(::prost::alloc::string::String),
}
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CreateDashboardMetadata {
#[prost(string, tag = "1")]
pub dashboard_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDashboardRequest {
#[prost(string, tag = "1")]
pub dashboard_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub description: ::prost::alloc::string::String,
#[prost(map = "string, string", tag = "4")]
pub labels: ::std::collections::HashMap<
::prost::alloc::string::String,
::prost::alloc::string::String,
>,
#[prost(string, tag = "5")]
pub title: ::prost::alloc::string::String,
#[prost(message, repeated, tag = "6")]
pub widgets: ::prost::alloc::vec::Vec<Widget>,
#[prost(message, optional, tag = "7")]
pub parametrization: ::core::option::Option<Parametrization>,
#[prost(string, tag = "8")]
pub etag: ::prost::alloc::string::String,
#[prost(string, tag = "26")]
pub managed_by: ::prost::alloc::string::String,
#[prost(string, tag = "27")]
pub managed_link: ::prost::alloc::string::String,
#[prost(message, optional, tag = "34")]
pub timeline: ::core::option::Option<Timeline>,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct UpdateDashboardMetadata {
#[prost(string, tag = "1")]
pub dashboard_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteDashboardRequest {
#[prost(string, tag = "1")]
pub dashboard_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub etag: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct DeleteDashboardMetadata {
#[prost(string, tag = "1")]
pub dashboard_id: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDashboardOperationsRequest {
#[prost(string, tag = "1")]
pub dashboard_id: ::prost::alloc::string::String,
#[prost(int64, tag = "2")]
pub page_size: i64,
#[prost(string, tag = "3")]
pub page_token: ::prost::alloc::string::String,
}
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ListDashboardOperationsResponse {
#[prost(message, repeated, tag = "1")]
pub operations: ::prost::alloc::vec::Vec<super::super::operation::Operation>,
#[prost(string, tag = "2")]
pub next_page_token: ::prost::alloc::string::String,
}
pub mod dashboard_service_client {
#![allow(unused_variables, dead_code, missing_docs, clippy::let_unit_value)]
use tonic::codegen::*;
use tonic::codegen::http::Uri;
#[derive(Debug, Clone)]
pub struct DashboardServiceClient<T> {
inner: tonic::client::Grpc<T>,
}
impl DashboardServiceClient<tonic::transport::Channel> {
pub async fn connect<D>(dst: D) -> Result<Self, tonic::transport::Error>
where
D: TryInto<tonic::transport::Endpoint>,
D::Error: Into<StdError>,
{
let conn = tonic::transport::Endpoint::new(dst)?.connect().await?;
Ok(Self::new(conn))
}
}
impl<T> DashboardServiceClient<T>
where
T: tonic::client::GrpcService<tonic::body::BoxBody>,
T::Error: Into<StdError>,
T::ResponseBody: Body<Data = Bytes> + Send + 'static,
<T::ResponseBody as Body>::Error: Into<StdError> + Send,
{
pub fn new(inner: T) -> Self {
let inner = tonic::client::Grpc::new(inner);
Self { inner }
}
pub fn with_origin(inner: T, origin: Uri) -> Self {
let inner = tonic::client::Grpc::with_origin(inner, origin);
Self { inner }
}
pub fn with_interceptor<F>(
inner: T,
interceptor: F,
) -> DashboardServiceClient<InterceptedService<T, F>>
where
F: tonic::service::Interceptor,
T::ResponseBody: Default,
T: tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
Response = http::Response<
<T as tonic::client::GrpcService<tonic::body::BoxBody>>::ResponseBody,
>,
>,
<T as tonic::codegen::Service<
http::Request<tonic::body::BoxBody>,
>>::Error: Into<StdError> + Send + Sync,
{
DashboardServiceClient::new(InterceptedService::new(inner, interceptor))
}
#[must_use]
pub fn send_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.send_compressed(encoding);
self
}
#[must_use]
pub fn accept_compressed(mut self, encoding: CompressionEncoding) -> Self {
self.inner = self.inner.accept_compressed(encoding);
self
}
#[must_use]
pub fn max_decoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_decoding_message_size(limit);
self
}
#[must_use]
pub fn max_encoding_message_size(mut self, limit: usize) -> Self {
self.inner = self.inner.max_encoding_message_size(limit);
self
}
pub async fn get(
&mut self,
request: impl tonic::IntoRequest<super::GetDashboardRequest>,
) -> std::result::Result<tonic::Response<super::Dashboard>, tonic::Status> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.monitoring.v3.DashboardService/Get",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new("yandex.cloud.monitoring.v3.DashboardService", "Get"),
);
self.inner.unary(req, path, codec).await
}
pub async fn list(
&mut self,
request: impl tonic::IntoRequest<super::ListDashboardsRequest>,
) -> std::result::Result<
tonic::Response<super::ListDashboardsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.monitoring.v3.DashboardService/List",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.monitoring.v3.DashboardService",
"List",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn create(
&mut self,
request: impl tonic::IntoRequest<super::CreateDashboardRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.monitoring.v3.DashboardService/Create",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.monitoring.v3.DashboardService",
"Create",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn update(
&mut self,
request: impl tonic::IntoRequest<super::UpdateDashboardRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.monitoring.v3.DashboardService/Update",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.monitoring.v3.DashboardService",
"Update",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn delete(
&mut self,
request: impl tonic::IntoRequest<super::DeleteDashboardRequest>,
) -> std::result::Result<
tonic::Response<super::super::super::operation::Operation>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.monitoring.v3.DashboardService/Delete",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.monitoring.v3.DashboardService",
"Delete",
),
);
self.inner.unary(req, path, codec).await
}
pub async fn list_operations(
&mut self,
request: impl tonic::IntoRequest<super::ListDashboardOperationsRequest>,
) -> std::result::Result<
tonic::Response<super::ListDashboardOperationsResponse>,
tonic::Status,
> {
self.inner
.ready()
.await
.map_err(|e| {
tonic::Status::new(
tonic::Code::Unknown,
format!("Service was not ready: {}", e.into()),
)
})?;
let codec = tonic::codec::ProstCodec::default();
let path = http::uri::PathAndQuery::from_static(
"/yandex.cloud.monitoring.v3.DashboardService/ListOperations",
);
let mut req = request.into_request();
req.extensions_mut()
.insert(
GrpcMethod::new(
"yandex.cloud.monitoring.v3.DashboardService",
"ListOperations",
),
);
self.inner.unary(req, path, codec).await
}
}
}