1#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct WriteRequest {
4 #[prost(message, repeated, tag = "1")]
5 pub timeseries: ::prost::alloc::vec::Vec<TimeSeries>,
6}
7#[derive(Clone, PartialEq, ::prost::Message)]
8pub struct TimeSeries {
9 #[prost(message, repeated, tag = "1")]
10 pub labels: ::prost::alloc::vec::Vec<Label>,
11 #[prost(message, repeated, tag = "2")]
12 pub samples: ::prost::alloc::vec::Vec<Sample>,
13}
14#[derive(Clone, PartialEq, ::prost::Message)]
15pub struct Label {
16 #[prost(string, tag = "1")]
17 pub name: ::prost::alloc::string::String,
18 #[prost(string, tag = "2")]
19 pub value: ::prost::alloc::string::String,
20}
21#[derive(Clone, Copy, PartialEq, ::prost::Message)]
22pub struct Sample {
23 #[prost(double, tag = "1")]
24 pub value: f64,
25 #[prost(int64, tag = "2")]
26 pub timestamp: i64,
27}
28#[derive(Clone, PartialEq, ::prost::Message)]
29pub struct WriteRequestNominal {
30 #[prost(message, repeated, tag = "1")]
31 pub series: ::prost::alloc::vec::Vec<Series>,
32}
33#[derive(Clone, PartialEq, ::prost::Message)]
34pub struct Series {
35 #[prost(message, optional, tag = "1")]
36 pub channel: ::core::option::Option<Channel>,
37 #[prost(map = "string, string", tag = "2")]
38 pub tags: ::std::collections::HashMap<
39 ::prost::alloc::string::String,
40 ::prost::alloc::string::String,
41 >,
42 #[prost(message, optional, tag = "3")]
43 pub points: ::core::option::Option<Points>,
44}
45#[derive(Clone, PartialEq, ::prost::Message)]
46pub struct Channel {
47 #[prost(string, tag = "1")]
48 pub name: ::prost::alloc::string::String,
49}
50#[derive(Clone, PartialEq, ::prost::Message)]
51pub struct Points {
52 #[prost(oneof = "points::PointsType", tags = "1, 2, 3")]
53 pub points_type: ::core::option::Option<points::PointsType>,
54}
55pub mod points {
57 #[derive(Clone, PartialEq, ::prost::Oneof)]
58 pub enum PointsType {
59 #[prost(message, tag = "1")]
60 DoublePoints(super::DoublePoints),
61 #[prost(message, tag = "2")]
62 StringPoints(super::StringPoints),
63 #[prost(message, tag = "3")]
64 IntegerPoints(super::IntegerPoints),
65 }
66}
67#[derive(Clone, PartialEq, ::prost::Message)]
68pub struct DoublePoints {
69 #[prost(message, repeated, tag = "1")]
70 pub points: ::prost::alloc::vec::Vec<DoublePoint>,
71}
72#[derive(Clone, PartialEq, ::prost::Message)]
73pub struct StringPoints {
74 #[prost(message, repeated, tag = "1")]
75 pub points: ::prost::alloc::vec::Vec<StringPoint>,
76}
77#[derive(Clone, PartialEq, ::prost::Message)]
78pub struct IntegerPoints {
79 #[prost(message, repeated, tag = "1")]
80 pub points: ::prost::alloc::vec::Vec<IntegerPoint>,
81}
82#[derive(Clone, Copy, PartialEq, ::prost::Message)]
83pub struct DoublePoint {
84 #[prost(message, optional, tag = "1")]
85 pub timestamp: ::core::option::Option<
86 super::super::super::super::super::google::protobuf::Timestamp,
87 >,
88 #[prost(double, tag = "2")]
89 pub value: f64,
90}
91#[derive(Clone, PartialEq, ::prost::Message)]
92pub struct StringPoint {
93 #[prost(message, optional, tag = "1")]
94 pub timestamp: ::core::option::Option<
95 super::super::super::super::super::google::protobuf::Timestamp,
96 >,
97 #[prost(string, tag = "2")]
98 pub value: ::prost::alloc::string::String,
99}
100#[derive(Clone, Copy, PartialEq, ::prost::Message)]
101pub struct IntegerPoint {
102 #[prost(message, optional, tag = "1")]
103 pub timestamp: ::core::option::Option<
104 super::super::super::super::super::google::protobuf::Timestamp,
105 >,
106 #[prost(int64, tag = "2")]
107 pub value: i64,
108}