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