| 
 | 1 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 2 | +pub struct LabelPair {  | 
 | 3 | +    #[prost(string, optional, tag="1")]  | 
 | 4 | +    pub name: ::core::option::Option<::prost::alloc::string::String>,  | 
 | 5 | +    #[prost(string, optional, tag="2")]  | 
 | 6 | +    pub value: ::core::option::Option<::prost::alloc::string::String>,  | 
 | 7 | +}  | 
 | 8 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 9 | +pub struct Gauge {  | 
 | 10 | +    #[prost(double, optional, tag="1")]  | 
 | 11 | +    pub value: ::core::option::Option<f64>,  | 
 | 12 | +}  | 
 | 13 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 14 | +pub struct Counter {  | 
 | 15 | +    #[prost(double, optional, tag="1")]  | 
 | 16 | +    pub value: ::core::option::Option<f64>,  | 
 | 17 | +}  | 
 | 18 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 19 | +pub struct Quantile {  | 
 | 20 | +    #[prost(double, optional, tag="1")]  | 
 | 21 | +    pub quantile: ::core::option::Option<f64>,  | 
 | 22 | +    #[prost(double, optional, tag="2")]  | 
 | 23 | +    pub value: ::core::option::Option<f64>,  | 
 | 24 | +}  | 
 | 25 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 26 | +pub struct Summary {  | 
 | 27 | +    #[prost(uint64, optional, tag="1")]  | 
 | 28 | +    pub sample_count: ::core::option::Option<u64>,  | 
 | 29 | +    #[prost(double, optional, tag="2")]  | 
 | 30 | +    pub sample_sum: ::core::option::Option<f64>,  | 
 | 31 | +    #[prost(message, repeated, tag="3")]  | 
 | 32 | +    pub quantile: ::prost::alloc::vec::Vec<Quantile>,  | 
 | 33 | +}  | 
 | 34 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 35 | +pub struct Untyped {  | 
 | 36 | +    #[prost(double, optional, tag="1")]  | 
 | 37 | +    pub value: ::core::option::Option<f64>,  | 
 | 38 | +}  | 
 | 39 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 40 | +pub struct Histogram {  | 
 | 41 | +    #[prost(uint64, optional, tag="1")]  | 
 | 42 | +    pub sample_count: ::core::option::Option<u64>,  | 
 | 43 | +    #[prost(double, optional, tag="2")]  | 
 | 44 | +    pub sample_sum: ::core::option::Option<f64>,  | 
 | 45 | +    /// Ordered in increasing order of upper_bound, +Inf bucket is optional.  | 
 | 46 | +    #[prost(message, repeated, tag="3")]  | 
 | 47 | +    pub bucket: ::prost::alloc::vec::Vec<Bucket>,  | 
 | 48 | +}  | 
 | 49 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 50 | +pub struct Bucket {  | 
 | 51 | +    /// Cumulative in increasing order.  | 
 | 52 | +    #[prost(uint64, optional, tag="1")]  | 
 | 53 | +    pub cumulative_count: ::core::option::Option<u64>,  | 
 | 54 | +    /// Inclusive.  | 
 | 55 | +    #[prost(double, optional, tag="2")]  | 
 | 56 | +    pub upper_bound: ::core::option::Option<f64>,  | 
 | 57 | +}  | 
 | 58 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 59 | +pub struct Metric {  | 
 | 60 | +    #[prost(message, repeated, tag="1")]  | 
 | 61 | +    pub label: ::prost::alloc::vec::Vec<LabelPair>,  | 
 | 62 | +    #[prost(message, optional, tag="2")]  | 
 | 63 | +    pub gauge: ::core::option::Option<Gauge>,  | 
 | 64 | +    #[prost(message, optional, tag="3")]  | 
 | 65 | +    pub counter: ::core::option::Option<Counter>,  | 
 | 66 | +    #[prost(message, optional, tag="4")]  | 
 | 67 | +    pub summary: ::core::option::Option<Summary>,  | 
 | 68 | +    #[prost(message, optional, tag="5")]  | 
 | 69 | +    pub untyped: ::core::option::Option<Untyped>,  | 
 | 70 | +    #[prost(message, optional, tag="7")]  | 
 | 71 | +    pub histogram: ::core::option::Option<Histogram>,  | 
 | 72 | +    #[prost(int64, optional, tag="6")]  | 
 | 73 | +    pub timestamp_ms: ::core::option::Option<i64>,  | 
 | 74 | +}  | 
 | 75 | +#[derive(Clone, PartialEq, ::prost::Message)]  | 
 | 76 | +pub struct MetricFamily {  | 
 | 77 | +    #[prost(string, optional, tag="1")]  | 
 | 78 | +    pub name: ::core::option::Option<::prost::alloc::string::String>,  | 
 | 79 | +    #[prost(string, optional, tag="2")]  | 
 | 80 | +    pub help: ::core::option::Option<::prost::alloc::string::String>,  | 
 | 81 | +    #[prost(enumeration="MetricType", optional, tag="3")]  | 
 | 82 | +    pub r#type: ::core::option::Option<i32>,  | 
 | 83 | +    #[prost(message, repeated, tag="4")]  | 
 | 84 | +    pub metric: ::prost::alloc::vec::Vec<Metric>,  | 
 | 85 | +}  | 
 | 86 | +#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]  | 
 | 87 | +#[repr(i32)]  | 
 | 88 | +pub enum MetricType {  | 
 | 89 | +    Counter = 0,  | 
 | 90 | +    Gauge = 1,  | 
 | 91 | +    Summary = 2,  | 
 | 92 | +    Untyped = 3,  | 
 | 93 | +    Histogram = 4,  | 
 | 94 | +}  | 
0 commit comments