cx_api/generated/
com.coralogixapis.dashboards.v1.ast.rs

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
1001
1002
1003
1004
1005
1006
1007
1008
1009
1010
1011
1012
1013
1014
1015
1016
1017
1018
1019
1020
1021
1022
1023
1024
1025
1026
1027
1028
1029
1030
1031
1032
1033
1034
1035
1036
1037
1038
1039
1040
1041
1042
1043
1044
1045
1046
1047
1048
1049
1050
1051
1052
1053
1054
1055
1056
1057
1058
1059
1060
1061
1062
1063
1064
1065
1066
1067
1068
1069
1070
1071
1072
1073
1074
1075
1076
1077
1078
1079
1080
1081
1082
1083
1084
1085
1086
1087
1088
1089
1090
1091
1092
1093
1094
1095
1096
1097
1098
1099
1100
1101
1102
1103
1104
1105
1106
1107
1108
1109
1110
1111
1112
1113
1114
1115
1116
1117
1118
1119
1120
1121
1122
1123
1124
1125
1126
1127
1128
1129
1130
1131
1132
1133
1134
1135
1136
1137
1138
1139
1140
1141
1142
1143
1144
1145
1146
1147
1148
1149
1150
1151
1152
1153
1154
1155
1156
1157
1158
1159
1160
1161
1162
1163
1164
1165
1166
1167
1168
1169
1170
1171
1172
1173
1174
1175
1176
1177
1178
1179
1180
1181
1182
1183
1184
1185
1186
1187
1188
1189
1190
1191
1192
1193
1194
1195
1196
1197
1198
1199
1200
1201
1202
1203
1204
1205
1206
1207
1208
1209
1210
1211
1212
1213
1214
1215
1216
1217
1218
1219
1220
1221
1222
1223
1224
1225
1226
1227
1228
1229
1230
1231
1232
1233
1234
1235
1236
1237
1238
1239
1240
1241
1242
1243
1244
1245
1246
1247
1248
1249
1250
1251
1252
1253
1254
1255
1256
1257
1258
1259
1260
1261
1262
1263
1264
1265
1266
1267
1268
1269
1270
1271
1272
1273
1274
1275
1276
1277
1278
1279
1280
1281
1282
1283
1284
1285
1286
1287
1288
// This file is @generated by prost-build.
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Annotation {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "2")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub enabled: ::core::option::Option<bool>,
    #[prost(message, optional, tag = "4")]
    pub source: ::core::option::Option<annotation::Source>,
}
/// Nested message and enum types in `Annotation`.
pub mod annotation {
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Source {
        #[prost(oneof = "source::Value", tags = "1, 2, 3")]
        pub value: ::core::option::Option<source::Value>,
    }
    /// Nested message and enum types in `Source`.
    pub mod source {
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Value {
            #[prost(message, tag = "1")]
            Metrics(super::MetricsSource),
            #[prost(message, tag = "2")]
            Logs(super::LogsSource),
            #[prost(message, tag = "3")]
            Spans(super::SpansSource),
        }
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MetricsSource {
        #[prost(message, optional, tag = "1")]
        pub promql_query: ::core::option::Option<super::super::common::PromQlQuery>,
        #[prost(message, optional, tag = "2")]
        pub strategy: ::core::option::Option<metrics_source::Strategy>,
        #[prost(message, optional, tag = "3")]
        pub message_template: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(message, repeated, tag = "4")]
        pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    }
    /// Nested message and enum types in `MetricsSource`.
    pub mod metrics_source {
        /// Strategy for turning metrics data into annotations
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, Copy, PartialEq, ::prost::Message)]
        pub struct Strategy {
            #[prost(oneof = "strategy::Value", tags = "1")]
            pub value: ::core::option::Option<strategy::Value>,
        }
        /// Nested message and enum types in `Strategy`.
        pub mod strategy {
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
            pub enum Value {
                /// Take first data point and use its value as annotation timestamp (instead of point own timestamp)
                #[prost(message, tag = "1")]
                StartTimeMetric(super::StartTimeMetric),
            }
        }
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, Copy, PartialEq, ::prost::Message)]
        pub struct StartTimeMetric {}
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct LogsSource {
        #[prost(message, optional, tag = "1")]
        pub lucene_query: ::core::option::Option<super::super::common::LuceneQuery>,
        #[prost(message, optional, tag = "2")]
        pub strategy: ::core::option::Option<logs_source::Strategy>,
        #[prost(message, optional, tag = "3")]
        pub message_template: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(message, repeated, tag = "4")]
        pub label_fields: ::prost::alloc::vec::Vec<
            super::super::common::ObservationField,
        >,
    }
    /// Nested message and enum types in `LogsSource`.
    pub mod logs_source {
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct Strategy {
            #[prost(oneof = "strategy::Value", tags = "1, 2, 3")]
            pub value: ::core::option::Option<strategy::Value>,
        }
        /// Nested message and enum types in `Strategy`.
        pub mod strategy {
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Instant {
                #[prost(message, optional, tag = "1")]
                pub timestamp_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Range {
                #[prost(message, optional, tag = "1")]
                pub start_timestamp_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
                #[prost(message, optional, tag = "2")]
                pub end_timestamp_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Duration {
                #[prost(message, optional, tag = "1")]
                pub start_timestamp_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
                #[prost(message, optional, tag = "2")]
                pub duration_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Oneof)]
            pub enum Value {
                #[prost(message, tag = "1")]
                Instant(Instant),
                #[prost(message, tag = "2")]
                Range(Range),
                #[prost(message, tag = "3")]
                Duration(Duration),
            }
        }
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SpansSource {
        #[prost(message, optional, tag = "1")]
        pub lucene_query: ::core::option::Option<super::super::common::LuceneQuery>,
        #[prost(message, optional, tag = "2")]
        pub strategy: ::core::option::Option<spans_source::Strategy>,
        #[prost(message, optional, tag = "3")]
        pub message_template: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(message, repeated, tag = "4")]
        pub label_fields: ::prost::alloc::vec::Vec<
            super::super::common::ObservationField,
        >,
    }
    /// Nested message and enum types in `SpansSource`.
    pub mod spans_source {
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct Strategy {
            #[prost(oneof = "strategy::Value", tags = "1, 2, 3")]
            pub value: ::core::option::Option<strategy::Value>,
        }
        /// Nested message and enum types in `Strategy`.
        pub mod strategy {
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Instant {
                #[prost(message, optional, tag = "1")]
                pub timestamp_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Range {
                #[prost(message, optional, tag = "1")]
                pub start_timestamp_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
                #[prost(message, optional, tag = "2")]
                pub end_timestamp_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Duration {
                #[prost(message, optional, tag = "1")]
                pub start_timestamp_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
                #[prost(message, optional, tag = "2")]
                pub duration_field: ::core::option::Option<
                    super::super::super::super::common::ObservationField,
                >,
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Oneof)]
            pub enum Value {
                #[prost(message, tag = "1")]
                Instant(Instant),
                #[prost(message, tag = "2")]
                Range(Range),
                #[prost(message, tag = "3")]
                Duration(Duration),
            }
        }
    }
}
/// Filter represents the configuration for filtering data on the dashboard.
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Filter {
    /// Source of the filter, which can be logs, spans, or metrics.
    #[prost(message, optional, tag = "1")]
    pub source: ::core::option::Option<filter::Source>,
    /// Indicates if the filter is currently enabled or not.
    #[prost(message, optional, tag = "2")]
    pub enabled: ::core::option::Option<bool>,
    /// Indicates if the filter's UI representation should be collapsed or expanded.
    #[prost(message, optional, tag = "3")]
    pub collapsed: ::core::option::Option<bool>,
}
/// Nested message and enum types in `Filter`.
pub mod filter {
    /// Source defines the type of data the filter applies to.
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Source {
        /// Specifies the type of data for the filter.
        #[prost(oneof = "source::Value", tags = "1, 2, 3")]
        pub value: ::core::option::Option<source::Value>,
    }
    /// Nested message and enum types in `Source`.
    pub mod source {
        /// Specifies the type of data for the filter.
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Value {
            /// Filter configuration for logs.
            #[prost(message, tag = "1")]
            Logs(super::LogsFilter),
            /// Filter configuration for spans.
            #[prost(message, tag = "2")]
            Spans(super::SpansFilter),
            /// Filter configuration for metrics.
            #[prost(message, tag = "3")]
            Metrics(super::MetricsFilter),
        }
    }
    /// LogsFilter represents the filter criteria for logs.
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct LogsFilter {
        /// Field in the logs to apply the filter on.
        #[prost(message, optional, tag = "1")]
        pub field: ::core::option::Option<::prost::alloc::string::String>,
        /// Operator to use for filtering the logs.
        #[prost(message, optional, tag = "2")]
        pub operator: ::core::option::Option<Operator>,
        #[prost(message, optional, tag = "3")]
        pub observation_field: ::core::option::Option<
            super::super::common::ObservationField,
        >,
    }
    /// SpansFilter represents the filter criteria for spans.
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SpansFilter {
        /// Field in the spans to apply the filter on.
        #[prost(message, optional, tag = "1")]
        pub field: ::core::option::Option<super::super::common::SpanField>,
        /// Operator to use for filtering the spans.
        #[prost(message, optional, tag = "2")]
        pub operator: ::core::option::Option<Operator>,
    }
    /// MetricsFilter represents the filter criteria for metrics.
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MetricsFilter {
        /// Metric name to apply the filter on.
        #[prost(message, optional, tag = "1")]
        pub metric: ::core::option::Option<::prost::alloc::string::String>,
        /// Label associated with the metric.
        #[prost(message, optional, tag = "2")]
        pub label: ::core::option::Option<::prost::alloc::string::String>,
        /// Operator to use for filtering the metrics.
        #[prost(message, optional, tag = "3")]
        pub operator: ::core::option::Option<Operator>,
    }
    /// Operator defines the comparison operation for the filter.
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Operator {
        /// Specifies the type of comparison operation.
        #[prost(oneof = "operator::Value", tags = "1, 2")]
        pub value: ::core::option::Option<operator::Value>,
    }
    /// Nested message and enum types in `Operator`.
    pub mod operator {
        /// Specifies the type of comparison operation.
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Value {
            /// Equality comparison.
            #[prost(message, tag = "1")]
            Equals(super::Equals),
            /// Non-equality comparison.
            #[prost(message, tag = "2")]
            NotEquals(super::NotEquals),
        }
    }
    /// Equals represents an equality comparison operation.
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Equals {
        /// Selection criteria for the equality comparison.
        #[prost(message, optional, tag = "1")]
        pub selection: ::core::option::Option<equals::Selection>,
    }
    /// Nested message and enum types in `Equals`.
    pub mod equals {
        /// Selection defines the values for the equality comparison.
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct Selection {
            /// Specifies the type of selection for the equality comparison.
            #[prost(oneof = "selection::Value", tags = "1, 2")]
            pub value: ::core::option::Option<selection::Value>,
        }
        /// Nested message and enum types in `Selection`.
        pub mod selection {
            /// AllSelection indicates that all values are selected.
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, Copy, PartialEq, ::prost::Message)]
            pub struct AllSelection {}
            /// ListSelection represents a selection from a list of specific values.
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct ListSelection {
                /// List of values for the selection.
                #[prost(message, repeated, tag = "1")]
                pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
            }
            /// Specifies the type of selection for the equality comparison.
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Oneof)]
            pub enum Value {
                /// Represents a selection of all values.
                #[prost(message, tag = "1")]
                All(AllSelection),
                /// Represents a selection from a list of values.
                #[prost(message, tag = "2")]
                List(ListSelection),
            }
        }
    }
    /// NotEquals represents a non-equality comparison operation.
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct NotEquals {
        /// Selection criteria for the non-equality comparison.
        #[prost(message, optional, tag = "1")]
        pub selection: ::core::option::Option<not_equals::Selection>,
    }
    /// Nested message and enum types in `NotEquals`.
    pub mod not_equals {
        /// Selection defines the values for the non-equality comparison.
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct Selection {
            /// Specifies the type of selection for the non-equality comparison.
            #[prost(oneof = "selection::Value", tags = "1")]
            pub value: ::core::option::Option<selection::Value>,
        }
        /// Nested message and enum types in `Selection`.
        pub mod selection {
            /// ListSelection represents a selection from a list of specific values.
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct ListSelection {
                /// List of values for the selection.
                #[prost(message, repeated, tag = "1")]
                pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
            }
            /// Specifies the type of selection for the non-equality comparison.
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Oneof)]
            pub enum Value {
                /// Represents a selection from a list of values.
                #[prost(message, tag = "1")]
                List(ListSelection),
            }
        }
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct FolderPath {
    #[prost(string, repeated, tag = "1")]
    pub segments: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Widget {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<super::Uuid>,
    #[prost(message, optional, tag = "2")]
    pub title: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "4")]
    pub definition: ::core::option::Option<widget::Definition>,
    #[deprecated]
    #[prost(message, optional, tag = "5")]
    pub appearance: ::core::option::Option<widget::Appearance>,
    #[prost(message, optional, tag = "6")]
    pub created_at: ::core::option::Option<::prost_wkt_types::Timestamp>,
    #[prost(message, optional, tag = "7")]
    pub updated_at: ::core::option::Option<::prost_wkt_types::Timestamp>,
}
/// Nested message and enum types in `Widget`.
pub mod widget {
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Definition {
        #[prost(oneof = "definition::Value", tags = "1, 2, 3, 4, 5, 6, 7, 8")]
        pub value: ::core::option::Option<definition::Value>,
    }
    /// Nested message and enum types in `Definition`.
    pub mod definition {
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Value {
            #[prost(message, tag = "1")]
            LineChart(super::super::widgets::LineChart),
            #[prost(message, tag = "2")]
            DataTable(super::super::widgets::DataTable),
            #[prost(message, tag = "3")]
            Gauge(super::super::widgets::Gauge),
            #[prost(message, tag = "4")]
            PieChart(super::super::widgets::PieChart),
            #[prost(message, tag = "5")]
            BarChart(super::super::widgets::BarChart),
            #[prost(message, tag = "6")]
            HorizontalBarChart(super::super::widgets::HorizontalBarChart),
            #[prost(message, tag = "7")]
            Markdown(super::super::widgets::Markdown),
            #[prost(message, tag = "8")]
            Hexagon(super::super::widgets::Hexagon),
        }
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct Appearance {
        #[prost(message, optional, tag = "1")]
        pub width: ::core::option::Option<i32>,
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Layout {
    #[prost(message, repeated, tag = "1")]
    pub sections: ::prost::alloc::vec::Vec<Section>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Section {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<super::Uuid>,
    #[prost(message, repeated, tag = "2")]
    pub rows: ::prost::alloc::vec::Vec<Row>,
    #[prost(message, optional, tag = "3")]
    pub options: ::core::option::Option<SectionOptions>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Row {
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<super::Uuid>,
    #[prost(message, optional, tag = "2")]
    pub appearance: ::core::option::Option<row::Appearance>,
    #[prost(message, repeated, tag = "3")]
    pub widgets: ::prost::alloc::vec::Vec<Widget>,
}
/// Nested message and enum types in `Row`.
pub mod row {
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct Appearance {
        #[prost(message, optional, tag = "1")]
        pub height: ::core::option::Option<i32>,
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct SectionOptions {
    #[prost(oneof = "section_options::Value", tags = "1, 2")]
    pub value: ::core::option::Option<section_options::Value>,
}
/// Nested message and enum types in `SectionOptions`.
pub mod section_options {
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Value {
        #[prost(message, tag = "1")]
        Internal(super::InternalSectionOptions),
        #[prost(message, tag = "2")]
        Custom(super::CustomSectionOptions),
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct InternalSectionOptions {}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct CustomSectionOptions {
    #[prost(message, optional, tag = "1")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "2")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "3")]
    pub collapsed: ::core::option::Option<bool>,
    #[prost(message, optional, tag = "4")]
    pub color: ::core::option::Option<SectionColor>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, PartialEq, ::prost::Message)]
pub struct SectionColor {
    #[prost(oneof = "section_color::Value", tags = "1")]
    pub value: ::core::option::Option<section_color::Value>,
}
/// Nested message and enum types in `SectionColor`.
pub mod section_color {
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum Value {
        #[prost(enumeration = "super::SectionPredefinedColor", tag = "1")]
        Predefined(i32),
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum SectionPredefinedColor {
    Unspecified = 0,
    Cyan = 1,
    Green = 2,
    Blue = 3,
    Purple = 4,
    Magenta = 5,
    Pink = 6,
    Orange = 7,
}
impl SectionPredefinedColor {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "SECTION_PREDEFINED_COLOR_UNSPECIFIED",
            Self::Cyan => "SECTION_PREDEFINED_COLOR_CYAN",
            Self::Green => "SECTION_PREDEFINED_COLOR_GREEN",
            Self::Blue => "SECTION_PREDEFINED_COLOR_BLUE",
            Self::Purple => "SECTION_PREDEFINED_COLOR_PURPLE",
            Self::Magenta => "SECTION_PREDEFINED_COLOR_MAGENTA",
            Self::Pink => "SECTION_PREDEFINED_COLOR_PINK",
            Self::Orange => "SECTION_PREDEFINED_COLOR_ORANGE",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "SECTION_PREDEFINED_COLOR_UNSPECIFIED" => Some(Self::Unspecified),
            "SECTION_PREDEFINED_COLOR_CYAN" => Some(Self::Cyan),
            "SECTION_PREDEFINED_COLOR_GREEN" => Some(Self::Green),
            "SECTION_PREDEFINED_COLOR_BLUE" => Some(Self::Blue),
            "SECTION_PREDEFINED_COLOR_PURPLE" => Some(Self::Purple),
            "SECTION_PREDEFINED_COLOR_MAGENTA" => Some(Self::Magenta),
            "SECTION_PREDEFINED_COLOR_PINK" => Some(Self::Pink),
            "SECTION_PREDEFINED_COLOR_ORANGE" => Some(Self::Orange),
            _ => None,
        }
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Variable {
    #[prost(message, optional, tag = "1")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "2")]
    pub definition: ::core::option::Option<variable::Definition>,
    #[prost(message, optional, tag = "3")]
    pub display_name: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "4")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    #[prost(enumeration = "VariableDisplayType", tag = "5")]
    pub display_type: i32,
}
/// Nested message and enum types in `Variable`.
pub mod variable {
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Definition {
        #[prost(oneof = "definition::Value", tags = "1, 2")]
        pub value: ::core::option::Option<definition::Value>,
    }
    /// Nested message and enum types in `Definition`.
    pub mod definition {
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Value {
            #[prost(message, tag = "1")]
            Constant(super::super::Constant),
            #[prost(message, tag = "2")]
            MultiSelect(super::super::MultiSelect),
        }
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Constant {
    #[prost(message, optional, tag = "1")]
    pub value: ::core::option::Option<::prost::alloc::string::String>,
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct MultiSelect {
    #[deprecated]
    #[prost(message, repeated, tag = "1")]
    pub selected: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    #[prost(message, optional, tag = "2")]
    pub source: ::core::option::Option<multi_select::Source>,
    #[prost(message, optional, tag = "3")]
    pub selection: ::core::option::Option<multi_select::Selection>,
    #[prost(enumeration = "super::common::OrderDirection", tag = "4")]
    pub values_order_direction: i32,
    #[prost(message, optional, tag = "5")]
    pub selection_options: ::core::option::Option<
        multi_select::VariableSelectionOptions,
    >,
}
/// Nested message and enum types in `MultiSelect`.
pub mod multi_select {
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Source {
        #[prost(oneof = "source::Value", tags = "1, 2, 3, 4, 5")]
        pub value: ::core::option::Option<source::Value>,
    }
    /// Nested message and enum types in `Source`.
    pub mod source {
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Value {
            #[prost(message, tag = "1")]
            LogsPath(super::LogsPathSource),
            #[prost(message, tag = "2")]
            MetricLabel(super::MetricLabelSource),
            #[prost(message, tag = "3")]
            ConstantList(super::ConstantListSource),
            #[prost(message, tag = "4")]
            SpanField(super::SpanFieldSource),
            #[prost(message, tag = "5")]
            Query(super::QuerySource),
        }
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct LogsPathSource {
        #[prost(message, optional, tag = "1")]
        pub value: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(message, optional, tag = "3")]
        pub observation_field: ::core::option::Option<
            super::super::common::ObservationField,
        >,
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct MetricLabelSource {
        #[prost(message, optional, tag = "1")]
        pub metric_name: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(message, optional, tag = "2")]
        pub label: ::core::option::Option<::prost::alloc::string::String>,
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct SpanFieldSource {
        #[prost(message, optional, tag = "1")]
        pub value: ::core::option::Option<super::super::common::SpanField>,
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ConstantListSource {
        #[prost(message, repeated, tag = "1")]
        pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct QuerySource {
        #[prost(message, optional, tag = "1")]
        pub query: ::core::option::Option<Query>,
        #[prost(enumeration = "RefreshStrategy", tag = "2")]
        pub refresh_strategy: i32,
        #[prost(message, optional, tag = "3")]
        pub value_display_options: ::core::option::Option<ValueDisplayOptions>,
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Query {
        #[prost(oneof = "query::Value", tags = "1, 2, 3")]
        pub value: ::core::option::Option<query::Value>,
    }
    /// Nested message and enum types in `Query`.
    pub mod query {
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct LogsQuery {
            #[prost(message, optional, tag = "1")]
            pub r#type: ::core::option::Option<logs_query::Type>,
        }
        /// Nested message and enum types in `LogsQuery`.
        pub mod logs_query {
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Type {
                #[prost(oneof = "r#type::Value", tags = "1, 2")]
                pub value: ::core::option::Option<r#type::Value>,
            }
            /// Nested message and enum types in `Type`.
            pub mod r#type {
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Message)]
                pub struct FieldName {
                    #[prost(message, optional, tag = "1")]
                    pub log_regex: ::core::option::Option<
                        ::prost::alloc::string::String,
                    >,
                }
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Message)]
                pub struct FieldValue {
                    #[prost(message, optional, tag = "3")]
                    pub observation_field: ::core::option::Option<
                        super::super::super::super::super::common::ObservationField,
                    >,
                }
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Oneof)]
                pub enum Value {
                    #[prost(message, tag = "1")]
                    FieldName(FieldName),
                    #[prost(message, tag = "2")]
                    FieldValue(FieldValue),
                }
            }
        }
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct SpansQuery {
            #[prost(message, optional, tag = "1")]
            pub r#type: ::core::option::Option<spans_query::Type>,
        }
        /// Nested message and enum types in `SpansQuery`.
        pub mod spans_query {
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Type {
                #[prost(oneof = "r#type::Value", tags = "1, 2")]
                pub value: ::core::option::Option<r#type::Value>,
            }
            /// Nested message and enum types in `Type`.
            pub mod r#type {
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Message)]
                pub struct FieldName {
                    #[prost(message, optional, tag = "1")]
                    pub span_regex: ::core::option::Option<
                        ::prost::alloc::string::String,
                    >,
                }
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Message)]
                pub struct FieldValue {
                    #[prost(message, optional, tag = "1")]
                    pub value: ::core::option::Option<
                        super::super::super::super::super::common::SpanField,
                    >,
                }
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Oneof)]
                pub enum Value {
                    #[prost(message, tag = "1")]
                    FieldName(FieldName),
                    #[prost(message, tag = "2")]
                    FieldValue(FieldValue),
                }
            }
        }
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct MetricsQuery {
            #[prost(message, optional, tag = "1")]
            pub r#type: ::core::option::Option<metrics_query::Type>,
        }
        /// Nested message and enum types in `MetricsQuery`.
        pub mod metrics_query {
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Type {
                #[prost(oneof = "r#type::Value", tags = "1, 2, 3")]
                pub value: ::core::option::Option<r#type::Value>,
            }
            /// Nested message and enum types in `Type`.
            pub mod r#type {
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Message)]
                pub struct MetricName {
                    #[prost(message, optional, tag = "1")]
                    pub metric_regex: ::core::option::Option<
                        ::prost::alloc::string::String,
                    >,
                }
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Message)]
                pub struct LabelName {
                    #[prost(message, optional, tag = "1")]
                    pub metric_regex: ::core::option::Option<
                        ::prost::alloc::string::String,
                    >,
                }
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Message)]
                pub struct LabelValue {
                    #[prost(message, optional, tag = "1")]
                    pub metric_name: ::core::option::Option<super::StringOrVariable>,
                    #[prost(message, optional, tag = "2")]
                    pub label_name: ::core::option::Option<super::StringOrVariable>,
                    #[prost(message, repeated, tag = "3")]
                    pub label_filters: ::prost::alloc::vec::Vec<
                        super::MetricsLabelFilter,
                    >,
                }
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Oneof)]
                pub enum Value {
                    #[prost(message, tag = "1")]
                    MetricName(MetricName),
                    #[prost(message, tag = "2")]
                    LabelName(LabelName),
                    #[prost(message, tag = "3")]
                    LabelValue(LabelValue),
                }
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct StringOrVariable {
                #[prost(oneof = "string_or_variable::Value", tags = "1, 2")]
                pub value: ::core::option::Option<string_or_variable::Value>,
            }
            /// Nested message and enum types in `StringOrVariable`.
            pub mod string_or_variable {
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Oneof)]
                pub enum Value {
                    #[prost(message, tag = "1")]
                    StringValue(::prost::alloc::string::String),
                    #[prost(message, tag = "2")]
                    VariableName(::prost::alloc::string::String),
                }
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct MetricsLabelFilter {
                #[prost(message, optional, tag = "1")]
                pub metric: ::core::option::Option<StringOrVariable>,
                #[prost(message, optional, tag = "2")]
                pub label: ::core::option::Option<StringOrVariable>,
                #[prost(message, optional, tag = "3")]
                pub operator: ::core::option::Option<Operator>,
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Operator {
                #[prost(oneof = "operator::Value", tags = "1, 2")]
                pub value: ::core::option::Option<operator::Value>,
            }
            /// Nested message and enum types in `Operator`.
            pub mod operator {
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Oneof)]
                pub enum Value {
                    #[prost(message, tag = "1")]
                    Equals(super::Equals),
                    #[prost(message, tag = "2")]
                    NotEquals(super::NotEquals),
                }
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Equals {
                #[prost(message, optional, tag = "1")]
                pub selection: ::core::option::Option<Selection>,
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct NotEquals {
                #[prost(message, optional, tag = "1")]
                pub selection: ::core::option::Option<Selection>,
            }
            #[derive(serde::Serialize, serde::Deserialize)]
            #[serde(rename_all = "snake_case")]
            #[derive(Clone, PartialEq, ::prost::Message)]
            pub struct Selection {
                #[prost(oneof = "selection::Value", tags = "1")]
                pub value: ::core::option::Option<selection::Value>,
            }
            /// Nested message and enum types in `Selection`.
            pub mod selection {
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Message)]
                pub struct ListSelection {
                    #[prost(message, repeated, tag = "1")]
                    pub values: ::prost::alloc::vec::Vec<super::StringOrVariable>,
                }
                #[derive(serde::Serialize, serde::Deserialize)]
                #[serde(rename_all = "snake_case")]
                #[derive(Clone, PartialEq, ::prost::Oneof)]
                pub enum Value {
                    #[prost(message, tag = "1")]
                    List(ListSelection),
                }
            }
        }
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Value {
            #[prost(message, tag = "1")]
            LogsQuery(LogsQuery),
            #[prost(message, tag = "2")]
            MetricsQuery(MetricsQuery),
            #[prost(message, tag = "3")]
            SpansQuery(SpansQuery),
        }
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct ValueDisplayOptions {
        #[prost(message, optional, tag = "1")]
        pub value_regex: ::core::option::Option<::prost::alloc::string::String>,
        #[prost(message, optional, tag = "2")]
        pub label_regex: ::core::option::Option<::prost::alloc::string::String>,
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Message)]
    pub struct Selection {
        #[prost(oneof = "selection::Value", tags = "1, 2")]
        pub value: ::core::option::Option<selection::Value>,
    }
    /// Nested message and enum types in `Selection`.
    pub mod selection {
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, Copy, PartialEq, ::prost::Message)]
        pub struct AllSelection {}
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Message)]
        pub struct ListSelection {
            #[prost(message, repeated, tag = "1")]
            pub values: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
            #[prost(message, repeated, tag = "2")]
            pub labels: ::prost::alloc::vec::Vec<::prost::alloc::string::String>,
        }
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(Clone, PartialEq, ::prost::Oneof)]
        pub enum Value {
            #[prost(message, tag = "1")]
            All(AllSelection),
            #[prost(message, tag = "2")]
            List(ListSelection),
        }
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct VariableSelectionOptions {
        #[prost(enumeration = "variable_selection_options::SelectionType", tag = "1")]
        pub selection_type: i32,
    }
    /// Nested message and enum types in `VariableSelectionOptions`.
    pub mod variable_selection_options {
        #[derive(serde::Serialize, serde::Deserialize)]
        #[serde(rename_all = "snake_case")]
        #[derive(
            Clone,
            Copy,
            Debug,
            PartialEq,
            Eq,
            Hash,
            PartialOrd,
            Ord,
            ::prost::Enumeration
        )]
        #[repr(i32)]
        pub enum SelectionType {
            Unspecified = 0,
            MultiAll = 1,
            Multi = 2,
            Single = 3,
        }
        impl SelectionType {
            /// String value of the enum field names used in the ProtoBuf definition.
            ///
            /// The values are not transformed in any way and thus are considered stable
            /// (if the ProtoBuf definition does not change) and safe for programmatic use.
            pub fn as_str_name(&self) -> &'static str {
                match self {
                    Self::Unspecified => "SELECTION_TYPE_UNSPECIFIED",
                    Self::MultiAll => "SELECTION_TYPE_MULTI_ALL",
                    Self::Multi => "SELECTION_TYPE_MULTI",
                    Self::Single => "SELECTION_TYPE_SINGLE",
                }
            }
            /// Creates an enum from field names used in the ProtoBuf definition.
            pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
                match value {
                    "SELECTION_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
                    "SELECTION_TYPE_MULTI_ALL" => Some(Self::MultiAll),
                    "SELECTION_TYPE_MULTI" => Some(Self::Multi),
                    "SELECTION_TYPE_SINGLE" => Some(Self::Single),
                    _ => None,
                }
            }
        }
    }
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(
        Clone,
        Copy,
        Debug,
        PartialEq,
        Eq,
        Hash,
        PartialOrd,
        Ord,
        ::prost::Enumeration
    )]
    #[repr(i32)]
    pub enum RefreshStrategy {
        Unspecified = 0,
        OnDashboardLoad = 1,
        OnTimeFrameChange = 2,
    }
    impl RefreshStrategy {
        /// String value of the enum field names used in the ProtoBuf definition.
        ///
        /// The values are not transformed in any way and thus are considered stable
        /// (if the ProtoBuf definition does not change) and safe for programmatic use.
        pub fn as_str_name(&self) -> &'static str {
            match self {
                Self::Unspecified => "REFRESH_STRATEGY_UNSPECIFIED",
                Self::OnDashboardLoad => "REFRESH_STRATEGY_ON_DASHBOARD_LOAD",
                Self::OnTimeFrameChange => "REFRESH_STRATEGY_ON_TIME_FRAME_CHANGE",
            }
        }
        /// Creates an enum from field names used in the ProtoBuf definition.
        pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
            match value {
                "REFRESH_STRATEGY_UNSPECIFIED" => Some(Self::Unspecified),
                "REFRESH_STRATEGY_ON_DASHBOARD_LOAD" => Some(Self::OnDashboardLoad),
                "REFRESH_STRATEGY_ON_TIME_FRAME_CHANGE" => Some(Self::OnTimeFrameChange),
                _ => None,
            }
        }
    }
}
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, Copy, Debug, PartialEq, Eq, Hash, PartialOrd, Ord, ::prost::Enumeration)]
#[repr(i32)]
pub enum VariableDisplayType {
    Unspecified = 0,
    LabelValue = 1,
    Value = 2,
    Nothing = 3,
}
impl VariableDisplayType {
    /// String value of the enum field names used in the ProtoBuf definition.
    ///
    /// The values are not transformed in any way and thus are considered stable
    /// (if the ProtoBuf definition does not change) and safe for programmatic use.
    pub fn as_str_name(&self) -> &'static str {
        match self {
            Self::Unspecified => "VARIABLE_DISPLAY_TYPE_UNSPECIFIED",
            Self::LabelValue => "VARIABLE_DISPLAY_TYPE_LABEL_VALUE",
            Self::Value => "VARIABLE_DISPLAY_TYPE_VALUE",
            Self::Nothing => "VARIABLE_DISPLAY_TYPE_NOTHING",
        }
    }
    /// Creates an enum from field names used in the ProtoBuf definition.
    pub fn from_str_name(value: &str) -> ::core::option::Option<Self> {
        match value {
            "VARIABLE_DISPLAY_TYPE_UNSPECIFIED" => Some(Self::Unspecified),
            "VARIABLE_DISPLAY_TYPE_LABEL_VALUE" => Some(Self::LabelValue),
            "VARIABLE_DISPLAY_TYPE_VALUE" => Some(Self::Value),
            "VARIABLE_DISPLAY_TYPE_NOTHING" => Some(Self::Nothing),
            _ => None,
        }
    }
}
/// Dashboard represents the structure and configuration of a Coralogix Custom Dashboard.
#[derive(serde::Serialize, serde::Deserialize)]
#[serde(rename_all = "snake_case")]
#[derive(Clone, PartialEq, ::prost::Message)]
pub struct Dashboard {
    /// Unique identifier for the dashboard.
    #[prost(message, optional, tag = "1")]
    pub id: ::core::option::Option<::prost::alloc::string::String>,
    /// Display name of the dashboard.
    #[prost(message, optional, tag = "2")]
    pub name: ::core::option::Option<::prost::alloc::string::String>,
    /// Brief description or summary of the dashboard's purpose or content.
    #[prost(message, optional, tag = "3")]
    pub description: ::core::option::Option<::prost::alloc::string::String>,
    /// Layout configuration for the dashboard's visual elements.
    #[prost(message, optional, tag = "4")]
    pub layout: ::core::option::Option<Layout>,
    /// List of variables that can be used within the dashboard for dynamic content.
    #[prost(message, repeated, tag = "5")]
    pub variables: ::prost::alloc::vec::Vec<Variable>,
    /// List of filters that can be applied to the dashboard's data.
    #[prost(message, repeated, tag = "6")]
    pub filters: ::prost::alloc::vec::Vec<Filter>,
    #[prost(message, repeated, tag = "11")]
    pub annotations: ::prost::alloc::vec::Vec<Annotation>,
    /// Specifies the time frame for the dashboard's data. Can be either absolute or relative.
    #[prost(oneof = "dashboard::TimeFrame", tags = "7, 8")]
    pub time_frame: ::core::option::Option<dashboard::TimeFrame>,
    /// polymorphic field for the dashboard's folder. We accept either a folder ID or a folder path
    #[prost(oneof = "dashboard::Folder", tags = "9, 10")]
    pub folder: ::core::option::Option<dashboard::Folder>,
    /// Specifies the auto refresh interval for the dashboard.
    #[prost(oneof = "dashboard::AutoRefresh", tags = "12, 13, 14")]
    pub auto_refresh: ::core::option::Option<dashboard::AutoRefresh>,
}
/// Nested message and enum types in `Dashboard`.
pub mod dashboard {
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct AutoRefreshOff {}
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct AutoRefreshTwoMinutes {}
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, Copy, PartialEq, ::prost::Message)]
    pub struct AutoRefreshFiveMinutes {}
    /// Specifies the time frame for the dashboard's data. Can be either absolute or relative.
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum TimeFrame {
        /// Absolute time frame specifying a fixed start and end time.
        #[prost(message, tag = "7")]
        AbsoluteTimeFrame(super::super::common::TimeFrame),
        /// Relative time frame specifying a duration from the current time.
        #[prost(message, tag = "8")]
        RelativeTimeFrame(::prost_wkt_types::Duration),
    }
    /// polymorphic field for the dashboard's folder. We accept either a folder ID or a folder path
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, PartialEq, ::prost::Oneof)]
    pub enum Folder {
        #[prost(message, tag = "9")]
        FolderId(super::super::Uuid),
        #[prost(message, tag = "10")]
        FolderPath(super::FolderPath),
    }
    /// Specifies the auto refresh interval for the dashboard.
    #[derive(serde::Serialize, serde::Deserialize)]
    #[serde(rename_all = "snake_case")]
    #[derive(Clone, Copy, PartialEq, ::prost::Oneof)]
    pub enum AutoRefresh {
        #[prost(message, tag = "12")]
        Off(AutoRefreshOff),
        #[prost(message, tag = "13")]
        TwoMinutes(AutoRefreshTwoMinutes),
        #[prost(message, tag = "14")]
        FiveMinutes(AutoRefreshFiveMinutes),
    }
}