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, 4, 5")]
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 #[prost(message, tag = "4")]
66 ArrayPoints(super::ArrayPoints),
67 #[prost(message, tag = "5")]
68 StructPoints(super::StructPoints),
69 }
70}
71#[derive(Clone, PartialEq, ::prost::Message)]
72pub struct DoublePoints {
73 #[prost(message, repeated, tag = "1")]
74 pub points: ::prost::alloc::vec::Vec<DoublePoint>,
75}
76#[derive(Clone, PartialEq, ::prost::Message)]
77pub struct StringPoints {
78 #[prost(message, repeated, tag = "1")]
79 pub points: ::prost::alloc::vec::Vec<StringPoint>,
80}
81#[derive(Clone, PartialEq, ::prost::Message)]
82pub struct IntegerPoints {
83 #[prost(message, repeated, tag = "1")]
84 pub points: ::prost::alloc::vec::Vec<IntegerPoint>,
85}
86#[derive(Clone, PartialEq, ::prost::Message)]
87pub struct StructPoints {
88 #[prost(message, repeated, tag = "1")]
89 pub points: ::prost::alloc::vec::Vec<StructPoint>,
90}
91#[derive(Clone, Copy, PartialEq, ::prost::Message)]
92pub struct DoublePoint {
93 #[prost(message, optional, tag = "1")]
94 pub timestamp: ::core::option::Option<
95 super::super::super::super::super::google::protobuf::Timestamp,
96 >,
97 #[prost(double, tag = "2")]
98 pub value: f64,
99}
100#[derive(Clone, PartialEq, ::prost::Message)]
101pub struct StringPoint {
102 #[prost(message, optional, tag = "1")]
103 pub timestamp: ::core::option::Option<
104 super::super::super::super::super::google::protobuf::Timestamp,
105 >,
106 #[prost(string, tag = "2")]
107 pub value: ::prost::alloc::string::String,
108}
109#[derive(Clone, Copy, PartialEq, ::prost::Message)]
110pub struct IntegerPoint {
111 #[prost(message, optional, tag = "1")]
112 pub timestamp: ::core::option::Option<
113 super::super::super::super::super::google::protobuf::Timestamp,
114 >,
115 #[prost(int64, tag = "2")]
116 pub value: i64,
117}
118#[derive(Clone, PartialEq, ::prost::Message)]
119pub struct StructPoint {
120 #[prost(message, optional, tag = "1")]
121 pub timestamp: ::core::option::Option<
122 super::super::super::super::super::google::protobuf::Timestamp,
123 >,
124 #[prost(string, tag = "2")]
125 pub json_string: ::prost::alloc::string::String,
126}
127#[derive(Clone, PartialEq, ::prost::Message)]
128pub struct ArrayPoints {
129 #[prost(oneof = "array_points::ArrayType", tags = "1, 2")]
130 pub array_type: ::core::option::Option<array_points::ArrayType>,
131}
132pub mod array_points {
134 #[derive(Clone, PartialEq, ::prost::Oneof)]
135 pub enum ArrayType {
136 #[prost(message, tag = "1")]
137 DoubleArrayPoints(super::DoubleArrayPoints),
138 #[prost(message, tag = "2")]
139 StringArrayPoints(super::StringArrayPoints),
140 }
141}
142#[derive(Clone, PartialEq, ::prost::Message)]
143pub struct DoubleArrayPoints {
144 #[prost(message, repeated, tag = "1")]
145 pub points: ::prost::alloc::vec::Vec<DoubleArrayPoint>,
146}
147#[derive(Clone, PartialEq, ::prost::Message)]
148pub struct StringArrayPoints {
149 #[prost(message, repeated, tag = "1")]
150 pub points: ::prost::alloc::vec::Vec<StringArrayPoint>,
151}
152#[derive(Clone, PartialEq, ::prost::Message)]
153pub struct DoubleArrayPoint {
154 #[prost(message, optional, tag = "1")]
155 pub timestamp: ::core::option::Option<
156 super::super::super::super::super::google::protobuf::Timestamp,
157 >,
158 #[prost(double, repeated, tag = "2")]
159 pub value: ::prost::alloc::vec::Vec<f64>,
160}
161#[derive(Clone, PartialEq, ::prost::Message)]
162pub struct StringArrayPoint {
163 #[prost(message, optional, tag = "1")]
164 pub timestamp: ::core::option::Option<
165 super::super::super::super::super::google::protobuf::Timestamp,
166 >,
167 #[prost(string, repeated, tag = "2")]
168 pub value: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
169}