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