1#[derive(Clone, PartialEq, ::prost::Message)]
3pub struct WriteRequestNominal {
4 #[prost(message, repeated, tag = "1")]
5 pub series: ::prost::alloc::vec::Vec<Series>,
6}
7#[derive(Clone, PartialEq, ::prost::Message)]
8pub struct Series {
9 #[prost(message, optional, tag = "1")]
10 pub channel: ::core::option::Option<Channel>,
11 #[prost(map = "string, string", tag = "2")]
12 pub tags: ::std::collections::HashMap<
13 ::prost::alloc::string::String,
14 ::prost::alloc::string::String,
15 >,
16 #[prost(message, optional, tag = "3")]
17 pub points: ::core::option::Option<Points>,
18}
19#[derive(Clone, PartialEq, ::prost::Message)]
20pub struct Channel {
21 #[prost(string, tag = "1")]
22 pub name: ::prost::alloc::string::String,
23}
24#[derive(Clone, PartialEq, ::prost::Message)]
25pub struct Points {
26 #[prost(oneof = "points::PointsType", tags = "1, 2, 3, 4")]
27 pub points_type: ::core::option::Option<points::PointsType>,
28}
29pub mod points {
31 #[derive(Clone, PartialEq, ::prost::Oneof)]
32 pub enum PointsType {
33 #[prost(message, tag = "1")]
34 DoublePoints(super::DoublePoints),
35 #[prost(message, tag = "2")]
36 StringPoints(super::StringPoints),
37 #[prost(message, tag = "3")]
38 IntegerPoints(super::IntegerPoints),
39 #[prost(message, tag = "4")]
40 ArrayPoints(super::ArrayPoints),
41 }
42}
43#[derive(Clone, PartialEq, ::prost::Message)]
44pub struct DoublePoints {
45 #[prost(message, repeated, tag = "1")]
46 pub points: ::prost::alloc::vec::Vec<DoublePoint>,
47}
48#[derive(Clone, PartialEq, ::prost::Message)]
49pub struct StringPoints {
50 #[prost(message, repeated, tag = "1")]
51 pub points: ::prost::alloc::vec::Vec<StringPoint>,
52}
53#[derive(Clone, PartialEq, ::prost::Message)]
54pub struct IntegerPoints {
55 #[prost(message, repeated, tag = "1")]
56 pub points: ::prost::alloc::vec::Vec<IntegerPoint>,
57}
58#[derive(Clone, Copy, PartialEq, ::prost::Message)]
59pub struct DoublePoint {
60 #[prost(message, optional, tag = "1")]
61 pub timestamp: ::core::option::Option<
62 super::super::super::super::super::google::protobuf::Timestamp,
63 >,
64 #[prost(double, tag = "2")]
65 pub value: f64,
66}
67#[derive(Clone, PartialEq, ::prost::Message)]
68pub struct StringPoint {
69 #[prost(message, optional, tag = "1")]
70 pub timestamp: ::core::option::Option<
71 super::super::super::super::super::google::protobuf::Timestamp,
72 >,
73 #[prost(string, tag = "2")]
74 pub value: ::prost::alloc::string::String,
75}
76#[derive(Clone, Copy, PartialEq, ::prost::Message)]
77pub struct IntegerPoint {
78 #[prost(message, optional, tag = "1")]
79 pub timestamp: ::core::option::Option<
80 super::super::super::super::super::google::protobuf::Timestamp,
81 >,
82 #[prost(int64, tag = "2")]
83 pub value: i64,
84}
85#[derive(Clone, PartialEq, ::prost::Message)]
86pub struct ArrayPoints {
87 #[prost(oneof = "array_points::ArrayType", tags = "1, 2")]
88 pub array_type: ::core::option::Option<array_points::ArrayType>,
89}
90pub mod array_points {
92 #[derive(Clone, PartialEq, ::prost::Oneof)]
93 pub enum ArrayType {
94 #[prost(message, tag = "1")]
95 DoubleArrayPoints(super::DoubleArrayPoints),
96 #[prost(message, tag = "2")]
97 StringArrayPoints(super::StringArrayPoints),
98 }
99}
100#[derive(Clone, PartialEq, ::prost::Message)]
101pub struct DoubleArrayPoints {
102 #[prost(message, repeated, tag = "1")]
103 pub points: ::prost::alloc::vec::Vec<DoubleArrayPoint>,
104}
105#[derive(Clone, PartialEq, ::prost::Message)]
106pub struct StringArrayPoints {
107 #[prost(message, repeated, tag = "1")]
108 pub points: ::prost::alloc::vec::Vec<StringArrayPoint>,
109}
110#[derive(Clone, PartialEq, ::prost::Message)]
111pub struct DoubleArrayPoint {
112 #[prost(message, optional, tag = "1")]
113 pub timestamp: ::core::option::Option<
114 super::super::super::super::super::google::protobuf::Timestamp,
115 >,
116 #[prost(double, repeated, tag = "2")]
117 pub value: ::prost::alloc::vec::Vec<f64>,
118}
119#[derive(Clone, PartialEq, ::prost::Message)]
120pub struct StringArrayPoint {
121 #[prost(message, optional, tag = "1")]
122 pub timestamp: ::core::option::Option<
123 super::super::super::super::super::google::protobuf::Timestamp,
124 >,
125 #[prost(string, repeated, tag = "2")]
126 pub value: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
127}
128#[derive(Clone, PartialEq, ::prost::Message)]
129pub struct WriteRequest {
130 #[prost(message, repeated, tag = "1")]
131 pub timeseries: ::prost::alloc::vec::Vec<TimeSeries>,
132}
133#[derive(Clone, PartialEq, ::prost::Message)]
134pub struct TimeSeries {
135 #[prost(message, repeated, tag = "1")]
136 pub labels: ::prost::alloc::vec::Vec<Label>,
137 #[prost(message, repeated, tag = "2")]
138 pub samples: ::prost::alloc::vec::Vec<Sample>,
139}
140#[derive(Clone, PartialEq, ::prost::Message)]
141pub struct Label {
142 #[prost(string, tag = "1")]
143 pub name: ::prost::alloc::string::String,
144 #[prost(string, tag = "2")]
145 pub value: ::prost::alloc::string::String,
146}
147#[derive(Clone, Copy, PartialEq, ::prost::Message)]
148pub struct Sample {
149 #[prost(double, tag = "1")]
150 pub value: f64,
151 #[prost(int64, tag = "2")]
152 pub timestamp: i64,
153}