Debian Codegraph @

proto/types/v1/query.proto

raw
1 syntax = "proto3";
2
3 package types.v1;
4
5 import "google/protobuf/timestamp.proto";
6 import "types/v1/logevent.proto";
7 import "types/v1/logquery.proto";
8 import "types/v1/types.proto";
9
10 option go_package = "types/v1;typesv1";
11
12 message Data {
13 message SubQueries {
14 repeated types.v1.LogQuery queries = 1;
15 }
16
17 oneof shape {
18 // SubQueries need to be further queried to obtain actual data.
19 SubQueries subqueries = 101;
20 // tabular is data that has a table header, followed by rows that match the
21 // header
22 Tabular tabular = 201;
23 // single_value is a single value
24 Val single_value = 301;
25 // scalar timeseries data is a list of [ts, scalar] where scalar is usually
26 // a numeric value
27 ScalarTimeseries scalar_timeseries = 401;
28 // vector timeseries data is a list of [ts, [scalar0, ..., scalarN]] where
29 // scalar is usually a numeric value
30 VectorTimeseries vector_timeseries = 402;
31 }
32 }
33
34 message Tabular {
35 oneof shape {
36 LogEvents log_events = 201;
37 Table free_form = 202;
38 }
39 }
40
41 message ScalarTimeseries {
42 // scalars will contain only this type of value
43 VarType type = 2;
44 repeated ScalarTimestamp scalars = 3;
45 }
46
47 message LogEvents {
48 repeated IngestedLogEvent events = 1;
49 }
50
51 message ScalarTimestamp {
52 google.protobuf.Timestamp ts = 1;
53 Scalar scalar = 2;
54 }
55
56 message VectorTimeseries {
57 Obj context = 1;
58 // vectors will contain only this type of value
59 VarType type = 2;
60 repeated VectorTimestamp vectors = 3;
61 }
62
63 message VectorTimestamp {
64 google.protobuf.Timestamp ts = 1;
65 repeated Scalar vector = 2;
66 }