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 #[prost(string, optional, tag = "2")]
34 pub session_name: ::core::option::Option<::prost::alloc::string::String>,
35}
36#[derive(Clone, PartialEq, ::prost::Message)]
37pub struct Series {
38 #[prost(message, optional, tag = "1")]
39 pub channel: ::core::option::Option<Channel>,
40 #[prost(map = "string, string", tag = "2")]
41 pub tags: ::std::collections::HashMap<
42 ::prost::alloc::string::String,
43 ::prost::alloc::string::String,
44 >,
45 #[prost(message, optional, tag = "3")]
46 pub points: ::core::option::Option<Points>,
47}
48#[derive(Clone, PartialEq, ::prost::Message)]
49pub struct Channel {
50 #[prost(string, tag = "1")]
51 pub name: ::prost::alloc::string::String,
52}
53#[derive(Clone, PartialEq, ::prost::Message)]
54pub struct Points {
55 #[prost(oneof = "points::PointsType", tags = "1, 2, 3, 4, 5, 6")]
56 pub points_type: ::core::option::Option<points::PointsType>,
57}
58pub mod points {
60 #[derive(Clone, PartialEq, ::prost::Oneof)]
61 pub enum PointsType {
62 #[prost(message, tag = "1")]
63 DoublePoints(super::DoublePoints),
64 #[prost(message, tag = "2")]
65 StringPoints(super::StringPoints),
66 #[prost(message, tag = "3")]
67 IntegerPoints(super::IntegerPoints),
68 #[prost(message, tag = "4")]
69 ArrayPoints(super::ArrayPoints),
70 #[prost(message, tag = "5")]
71 StructPoints(super::StructPoints),
72 #[prost(message, tag = "6")]
73 Uint64Points(super::Uint64Points),
74 }
75}
76#[derive(Clone, PartialEq, ::prost::Message)]
77pub struct DoublePoints {
78 #[prost(message, repeated, tag = "1")]
79 pub points: ::prost::alloc::vec::Vec<DoublePoint>,
80}
81#[derive(Clone, PartialEq, ::prost::Message)]
82pub struct StringPoints {
83 #[prost(message, repeated, tag = "1")]
84 pub points: ::prost::alloc::vec::Vec<StringPoint>,
85}
86#[derive(Clone, PartialEq, ::prost::Message)]
87pub struct IntegerPoints {
88 #[prost(message, repeated, tag = "1")]
89 pub points: ::prost::alloc::vec::Vec<IntegerPoint>,
90}
91#[derive(Clone, PartialEq, ::prost::Message)]
92pub struct Uint64Points {
93 #[prost(message, repeated, tag = "1")]
94 pub points: ::prost::alloc::vec::Vec<Uint64Point>,
95}
96#[derive(Clone, PartialEq, ::prost::Message)]
97pub struct StructPoints {
98 #[prost(message, repeated, tag = "1")]
99 pub points: ::prost::alloc::vec::Vec<StructPoint>,
100}
101#[derive(Clone, Copy, PartialEq, ::prost::Message)]
102pub struct DoublePoint {
103 #[prost(message, optional, tag = "1")]
104 pub timestamp: ::core::option::Option<
105 super::super::super::super::super::google::protobuf::Timestamp,
106 >,
107 #[prost(double, tag = "2")]
108 pub value: f64,
109}
110#[derive(Clone, PartialEq, ::prost::Message)]
111pub struct StringPoint {
112 #[prost(message, optional, tag = "1")]
113 pub timestamp: ::core::option::Option<
114 super::super::super::super::super::google::protobuf::Timestamp,
115 >,
116 #[prost(string, tag = "2")]
117 pub value: ::prost::alloc::string::String,
118}
119#[derive(Clone, Copy, PartialEq, ::prost::Message)]
120pub struct IntegerPoint {
121 #[prost(message, optional, tag = "1")]
122 pub timestamp: ::core::option::Option<
123 super::super::super::super::super::google::protobuf::Timestamp,
124 >,
125 #[prost(int64, tag = "2")]
126 pub value: i64,
127}
128#[derive(Clone, Copy, PartialEq, ::prost::Message)]
129pub struct Uint64Point {
130 #[prost(message, optional, tag = "1")]
131 pub timestamp: ::core::option::Option<
132 super::super::super::super::super::google::protobuf::Timestamp,
133 >,
134 #[prost(uint64, tag = "2")]
135 pub value: u64,
136}
137#[derive(Clone, PartialEq, ::prost::Message)]
138pub struct StructPoint {
139 #[prost(message, optional, tag = "1")]
140 pub timestamp: ::core::option::Option<
141 super::super::super::super::super::google::protobuf::Timestamp,
142 >,
143 #[prost(string, tag = "2")]
144 pub json_string: ::prost::alloc::string::String,
145}
146#[derive(Clone, PartialEq, ::prost::Message)]
147pub struct ArrayPoints {
148 #[prost(oneof = "array_points::ArrayType", tags = "1, 2")]
149 pub array_type: ::core::option::Option<array_points::ArrayType>,
150}
151pub mod array_points {
153 #[derive(Clone, PartialEq, ::prost::Oneof)]
154 pub enum ArrayType {
155 #[prost(message, tag = "1")]
156 DoubleArrayPoints(super::DoubleArrayPoints),
157 #[prost(message, tag = "2")]
158 StringArrayPoints(super::StringArrayPoints),
159 }
160}
161#[derive(Clone, PartialEq, ::prost::Message)]
162pub struct DoubleArrayPoints {
163 #[prost(message, repeated, tag = "1")]
164 pub points: ::prost::alloc::vec::Vec<DoubleArrayPoint>,
165}
166#[derive(Clone, PartialEq, ::prost::Message)]
167pub struct StringArrayPoints {
168 #[prost(message, repeated, tag = "1")]
169 pub points: ::prost::alloc::vec::Vec<StringArrayPoint>,
170}
171#[derive(Clone, PartialEq, ::prost::Message)]
172pub struct DoubleArrayPoint {
173 #[prost(message, optional, tag = "1")]
174 pub timestamp: ::core::option::Option<
175 super::super::super::super::super::google::protobuf::Timestamp,
176 >,
177 #[prost(double, repeated, tag = "2")]
178 pub value: ::prost::alloc::vec::Vec<f64>,
179}
180#[derive(Clone, PartialEq, ::prost::Message)]
181pub struct StringArrayPoint {
182 #[prost(message, optional, tag = "1")]
183 pub timestamp: ::core::option::Option<
184 super::super::super::super::super::google::protobuf::Timestamp,
185 >,
186 #[prost(string, repeated, tag = "2")]
187 pub value: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
188}