nominal_api/proto/
io.nominal.scout.api.proto.rs

1// This file is @generated by prost-build.
2#[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")]
53    pub points_type: ::core::option::Option<points::PointsType>,
54}
55/// Nested message and enum types in `Points`.
56pub 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    }
68}
69#[derive(Clone, PartialEq, ::prost::Message)]
70pub struct DoublePoints {
71    #[prost(message, repeated, tag = "1")]
72    pub points: ::prost::alloc::vec::Vec<DoublePoint>,
73}
74#[derive(Clone, PartialEq, ::prost::Message)]
75pub struct StringPoints {
76    #[prost(message, repeated, tag = "1")]
77    pub points: ::prost::alloc::vec::Vec<StringPoint>,
78}
79#[derive(Clone, PartialEq, ::prost::Message)]
80pub struct IntegerPoints {
81    #[prost(message, repeated, tag = "1")]
82    pub points: ::prost::alloc::vec::Vec<IntegerPoint>,
83}
84#[derive(Clone, Copy, PartialEq, ::prost::Message)]
85pub struct DoublePoint {
86    #[prost(message, optional, tag = "1")]
87    pub timestamp: ::core::option::Option<
88        super::super::super::super::super::google::protobuf::Timestamp,
89    >,
90    #[prost(double, tag = "2")]
91    pub value: f64,
92}
93#[derive(Clone, PartialEq, ::prost::Message)]
94pub struct StringPoint {
95    #[prost(message, optional, tag = "1")]
96    pub timestamp: ::core::option::Option<
97        super::super::super::super::super::google::protobuf::Timestamp,
98    >,
99    #[prost(string, tag = "2")]
100    pub value: ::prost::alloc::string::String,
101}
102#[derive(Clone, Copy, PartialEq, ::prost::Message)]
103pub struct IntegerPoint {
104    #[prost(message, optional, tag = "1")]
105    pub timestamp: ::core::option::Option<
106        super::super::super::super::super::google::protobuf::Timestamp,
107    >,
108    #[prost(int64, tag = "2")]
109    pub value: i64,
110}
111#[derive(Clone, PartialEq, ::prost::Message)]
112pub struct ArrayPoints {
113    #[prost(oneof = "array_points::ArrayType", tags = "1, 2")]
114    pub array_type: ::core::option::Option<array_points::ArrayType>,
115}
116/// Nested message and enum types in `ArrayPoints`.
117pub mod array_points {
118    #[derive(Clone, PartialEq, ::prost::Oneof)]
119    pub enum ArrayType {
120        #[prost(message, tag = "1")]
121        DoubleArrayPoints(super::DoubleArrayPoints),
122        #[prost(message, tag = "2")]
123        StringArrayPoints(super::StringArrayPoints),
124    }
125}
126#[derive(Clone, PartialEq, ::prost::Message)]
127pub struct DoubleArrayPoints {
128    #[prost(message, repeated, tag = "1")]
129    pub points: ::prost::alloc::vec::Vec<DoubleArrayPoint>,
130}
131#[derive(Clone, PartialEq, ::prost::Message)]
132pub struct StringArrayPoints {
133    #[prost(message, repeated, tag = "1")]
134    pub points: ::prost::alloc::vec::Vec<StringArrayPoint>,
135}
136#[derive(Clone, PartialEq, ::prost::Message)]
137pub struct DoubleArrayPoint {
138    #[prost(message, optional, tag = "1")]
139    pub timestamp: ::core::option::Option<
140        super::super::super::super::super::google::protobuf::Timestamp,
141    >,
142    #[prost(double, repeated, tag = "2")]
143    pub value: ::prost::alloc::vec::Vec<f64>,
144}
145#[derive(Clone, PartialEq, ::prost::Message)]
146pub struct StringArrayPoint {
147    #[prost(message, optional, tag = "1")]
148    pub timestamp: ::core::option::Option<
149        super::super::super::super::super::google::protobuf::Timestamp,
150    >,
151    #[prost(string, repeated, tag = "2")]
152    pub value: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
153}