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 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")]
27    pub points_type: ::core::option::Option<points::PointsType>,
28}
29/// Nested message and enum types in `Points`.
30pub 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    }
40}
41#[derive(Clone, PartialEq, ::prost::Message)]
42pub struct DoublePoints {
43    #[prost(message, repeated, tag = "1")]
44    pub points: ::prost::alloc::vec::Vec<DoublePoint>,
45}
46#[derive(Clone, PartialEq, ::prost::Message)]
47pub struct StringPoints {
48    #[prost(message, repeated, tag = "1")]
49    pub points: ::prost::alloc::vec::Vec<StringPoint>,
50}
51#[derive(Clone, PartialEq, ::prost::Message)]
52pub struct IntegerPoints {
53    #[prost(message, repeated, tag = "1")]
54    pub points: ::prost::alloc::vec::Vec<IntegerPoint>,
55}
56#[derive(Clone, Copy, PartialEq, ::prost::Message)]
57pub struct DoublePoint {
58    #[prost(message, optional, tag = "1")]
59    pub timestamp: ::core::option::Option<
60        super::super::super::super::super::google::protobuf::Timestamp,
61    >,
62    #[prost(double, tag = "2")]
63    pub value: f64,
64}
65#[derive(Clone, PartialEq, ::prost::Message)]
66pub struct StringPoint {
67    #[prost(message, optional, tag = "1")]
68    pub timestamp: ::core::option::Option<
69        super::super::super::super::super::google::protobuf::Timestamp,
70    >,
71    #[prost(string, tag = "2")]
72    pub value: ::prost::alloc::string::String,
73}
74#[derive(Clone, Copy, PartialEq, ::prost::Message)]
75pub struct IntegerPoint {
76    #[prost(message, optional, tag = "1")]
77    pub timestamp: ::core::option::Option<
78        super::super::super::super::super::google::protobuf::Timestamp,
79    >,
80    #[prost(int64, tag = "2")]
81    pub value: i64,
82}
83#[derive(Clone, PartialEq, ::prost::Message)]
84pub struct WriteRequest {
85    #[prost(message, repeated, tag = "1")]
86    pub timeseries: ::prost::alloc::vec::Vec<TimeSeries>,
87}
88#[derive(Clone, PartialEq, ::prost::Message)]
89pub struct TimeSeries {
90    #[prost(message, repeated, tag = "1")]
91    pub labels: ::prost::alloc::vec::Vec<Label>,
92    #[prost(message, repeated, tag = "2")]
93    pub samples: ::prost::alloc::vec::Vec<Sample>,
94}
95#[derive(Clone, PartialEq, ::prost::Message)]
96pub struct Label {
97    #[prost(string, tag = "1")]
98    pub name: ::prost::alloc::string::String,
99    #[prost(string, tag = "2")]
100    pub value: ::prost::alloc::string::String,
101}
102#[derive(Clone, Copy, PartialEq, ::prost::Message)]
103pub struct Sample {
104    #[prost(double, tag = "1")]
105    pub value: f64,
106    #[prost(int64, tag = "2")]
107    pub timestamp: i64,
108}