#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SystemMemory {
#[prost(uint64, tag = "1")]
pub used: u64,
#[prost(uint64, tag = "2")]
pub total: u64,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SystemOs {
#[prost(string, tag = "1")]
pub name: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub version: ::prost::alloc::string::String,
#[prost(string, tag = "3")]
pub kernel_version: ::prost::alloc::string::String,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SystemCpu {
#[prost(float, tag = "1")]
pub available: f32,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SystemData {
#[prost(message, optional, tag = "1")]
pub memory: ::core::option::Option<SystemMemory>,
#[prost(message, optional, tag = "2")]
pub os: ::core::option::Option<SystemOs>,
#[prost(message, optional, tag = "3")]
pub cpu: ::core::option::Option<SystemCpu>,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct NodeCount {
#[prost(uint32, tag = "1")]
pub meta: u32,
#[prost(uint32, tag = "2")]
pub compute: u32,
#[prost(uint32, tag = "3")]
pub frontend: u32,
#[prost(uint32, tag = "4")]
pub compactor: u32,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct RwVersion {
#[prost(string, tag = "1")]
pub rw_version: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub git_sha: ::prost::alloc::string::String,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ReportBase {
#[prost(string, tag = "1")]
pub tracking_id: ::prost::alloc::string::String,
#[prost(string, tag = "2")]
pub session_id: ::prost::alloc::string::String,
#[prost(message, optional, tag = "3")]
pub system_data: ::core::option::Option<SystemData>,
#[prost(uint64, tag = "4")]
pub up_time: u64,
#[prost(uint64, tag = "5")]
pub report_time: u64,
#[prost(enumeration = "TelemetryNodeType", tag = "6")]
pub node_type: i32,
#[prost(bool, tag = "7")]
pub is_test: bool,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MetaReport {
#[prost(message, optional, tag = "1")]
pub base: ::core::option::Option<ReportBase>,
#[prost(enumeration = "MetaBackend", tag = "2")]
pub meta_backend: i32,
#[prost(message, optional, tag = "3")]
pub node_count: ::core::option::Option<NodeCount>,
#[prost(message, optional, tag = "4")]
pub rw_version: ::core::option::Option<RwVersion>,
#[prost(uint32, tag = "5")]
pub stream_job_count: u32,
#[prost(message, repeated, tag = "6")]
pub stream_jobs: ::prost::alloc::vec::Vec<StreamJobDesc>,
#[prost(enumeration = "TelemetryClusterType", tag = "7")]
pub cluster_type: i32,
#[prost(string, tag = "8")]
pub object_store_media_type: ::prost::alloc::string::String,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct StreamJobDesc {
#[prost(int32, tag = "1")]
pub table_id: i32,
#[prost(string, optional, tag = "2")]
pub connector_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "PlanOptimization", repeated, tag = "3")]
pub plan_optimizations: ::prost::alloc::vec::Vec<i32>,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct ComputeReport {
#[prost(message, optional, tag = "1")]
pub base: ::core::option::Option<ReportBase>,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FrontendReport {
#[prost(message, optional, tag = "1")]
pub base: ::core::option::Option<ReportBase>,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CompactorReport {
#[prost(message, optional, tag = "1")]
pub base: ::core::option::Option<ReportBase>,
}
#[derive(prost_helpers::AnyPB)]
#[allow(clippy::derive_partial_eq_without_eq)]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct EventMessage {
#[prost(string, tag = "1")]
pub tracking_id: ::prost::alloc::string::String,
#[prost(uint64, tag = "3")]
pub event_time_sec: u64,
#[prost(enumeration = "TelemetryEventStage", tag = "4")]
pub event_stage: i32,
#[prost(string, tag = "5")]
pub event_name: ::prost::alloc::string::String,
#[prost(string, optional, tag = "6")]
pub connector_name: ::core::option::Option<::prost::alloc::string::String>,
#[prost(enumeration = "TelemetryDatabaseObject", optional, tag = "10")]
pub object: ::core::option::Option<i32>,
#[prost(int64, tag = "7")]
pub catalog_id: i64,
#[prost(string, optional, tag = "8")]
pub attributes: ::core::option::Option<::prost::alloc::string::String>,
#[prost(string, tag = "9")]
pub node: ::prost::alloc::string::String,
#[prost(bool, tag = "11")]
pub is_test: bool,
}
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum MetaBackend {
Unspecified = 0,
Memory = 1,
Rdb = 3,
}
impl MetaBackend {
pub fn as_str_name(&self) -> &'static str {
match self {
MetaBackend::Unspecified => "META_BACKEND_UNSPECIFIED",
MetaBackend::Memory => "META_BACKEND_MEMORY",
MetaBackend::Rdb => "META_BACKEND_RDB",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"META_BACKEND_UNSPECIFIED" => Some(Self::Unspecified),
"META_BACKEND_MEMORY" => Some(Self::Memory),
"META_BACKEND_RDB" => Some(Self::Rdb),
_ => None,
}
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TelemetryNodeType {
Unspecified = 0,
Meta = 1,
Compute = 2,
Frontend = 3,
Compactor = 4,
}
impl TelemetryNodeType {
pub fn as_str_name(&self) -> &'static str {
match self {
TelemetryNodeType::Unspecified => "TELEMETRY_NODE_TYPE_UNSPECIFIED",
TelemetryNodeType::Meta => "TELEMETRY_NODE_TYPE_META",
TelemetryNodeType::Compute => "TELEMETRY_NODE_TYPE_COMPUTE",
TelemetryNodeType::Frontend => "TELEMETRY_NODE_TYPE_FRONTEND",
TelemetryNodeType::Compactor => "TELEMETRY_NODE_TYPE_COMPACTOR",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TELEMETRY_NODE_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"TELEMETRY_NODE_TYPE_META" => Some(Self::Meta),
"TELEMETRY_NODE_TYPE_COMPUTE" => Some(Self::Compute),
"TELEMETRY_NODE_TYPE_FRONTEND" => Some(Self::Frontend),
"TELEMETRY_NODE_TYPE_COMPACTOR" => Some(Self::Compactor),
_ => None,
}
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TelemetryClusterType {
Unspecified = 0,
SingleNode = 1,
DockerCompose = 2,
Kubernetes = 3,
CloudHosted = 4,
}
impl TelemetryClusterType {
pub fn as_str_name(&self) -> &'static str {
match self {
TelemetryClusterType::Unspecified => "TELEMETRY_CLUSTER_TYPE_UNSPECIFIED",
TelemetryClusterType::SingleNode => "TELEMETRY_CLUSTER_TYPE_SINGLE_NODE",
TelemetryClusterType::DockerCompose => {
"TELEMETRY_CLUSTER_TYPE_DOCKER_COMPOSE"
}
TelemetryClusterType::Kubernetes => "TELEMETRY_CLUSTER_TYPE_KUBERNETES",
TelemetryClusterType::CloudHosted => "TELEMETRY_CLUSTER_TYPE_CLOUD_HOSTED",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TELEMETRY_CLUSTER_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
"TELEMETRY_CLUSTER_TYPE_SINGLE_NODE" => Some(Self::SingleNode),
"TELEMETRY_CLUSTER_TYPE_DOCKER_COMPOSE" => Some(Self::DockerCompose),
"TELEMETRY_CLUSTER_TYPE_KUBERNETES" => Some(Self::Kubernetes),
"TELEMETRY_CLUSTER_TYPE_CLOUD_HOSTED" => Some(Self::CloudHosted),
_ => None,
}
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum PlanOptimization {
TableOptimizationUnspecified = 0,
}
impl PlanOptimization {
pub fn as_str_name(&self) -> &'static str {
match self {
PlanOptimization::TableOptimizationUnspecified => {
"TABLE_OPTIMIZATION_UNSPECIFIED"
}
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TABLE_OPTIMIZATION_UNSPECIFIED" => Some(Self::TableOptimizationUnspecified),
_ => None,
}
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TelemetryEventStage {
Unspecified = 0,
CreateStreamJob = 1,
UpdateStreamJob = 2,
DropStreamJob = 3,
Query = 4,
Recovery = 5,
}
impl TelemetryEventStage {
pub fn as_str_name(&self) -> &'static str {
match self {
TelemetryEventStage::Unspecified => "TELEMETRY_EVENT_STAGE_UNSPECIFIED",
TelemetryEventStage::CreateStreamJob => {
"TELEMETRY_EVENT_STAGE_CREATE_STREAM_JOB"
}
TelemetryEventStage::UpdateStreamJob => {
"TELEMETRY_EVENT_STAGE_UPDATE_STREAM_JOB"
}
TelemetryEventStage::DropStreamJob => "TELEMETRY_EVENT_STAGE_DROP_STREAM_JOB",
TelemetryEventStage::Query => "TELEMETRY_EVENT_STAGE_QUERY",
TelemetryEventStage::Recovery => "TELEMETRY_EVENT_STAGE_RECOVERY",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TELEMETRY_EVENT_STAGE_UNSPECIFIED" => Some(Self::Unspecified),
"TELEMETRY_EVENT_STAGE_CREATE_STREAM_JOB" => Some(Self::CreateStreamJob),
"TELEMETRY_EVENT_STAGE_UPDATE_STREAM_JOB" => Some(Self::UpdateStreamJob),
"TELEMETRY_EVENT_STAGE_DROP_STREAM_JOB" => Some(Self::DropStreamJob),
"TELEMETRY_EVENT_STAGE_QUERY" => Some(Self::Query),
"TELEMETRY_EVENT_STAGE_RECOVERY" => Some(Self::Recovery),
_ => None,
}
}
}
#[derive(prost_helpers::AnyPB)]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum TelemetryDatabaseObject {
Unspecified = 0,
Source = 1,
Mv = 2,
Table = 3,
Sink = 4,
Index = 5,
}
impl TelemetryDatabaseObject {
pub fn as_str_name(&self) -> &'static str {
match self {
TelemetryDatabaseObject::Unspecified => {
"TELEMETRY_DATABASE_OBJECT_UNSPECIFIED"
}
TelemetryDatabaseObject::Source => "TELEMETRY_DATABASE_OBJECT_SOURCE",
TelemetryDatabaseObject::Mv => "TELEMETRY_DATABASE_OBJECT_MV",
TelemetryDatabaseObject::Table => "TELEMETRY_DATABASE_OBJECT_TABLE",
TelemetryDatabaseObject::Sink => "TELEMETRY_DATABASE_OBJECT_SINK",
TelemetryDatabaseObject::Index => "TELEMETRY_DATABASE_OBJECT_INDEX",
}
}
pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
match value {
"TELEMETRY_DATABASE_OBJECT_UNSPECIFIED" => Some(Self::Unspecified),
"TELEMETRY_DATABASE_OBJECT_SOURCE" => Some(Self::Source),
"TELEMETRY_DATABASE_OBJECT_MV" => Some(Self::Mv),
"TELEMETRY_DATABASE_OBJECT_TABLE" => Some(Self::Table),
"TELEMETRY_DATABASE_OBJECT_SINK" => Some(Self::Sink),
"TELEMETRY_DATABASE_OBJECT_INDEX" => Some(Self::Index),
_ => None,
}
}
}