/
viz.sandesh
2331 lines (2273 loc) · 107 KB
/
viz.sandesh
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
/*
* Copyright (c) 2013 Juniper Networks, Inc. All rights reserved.
*/
/**
* Definitions of structures used internally by contrail daemons
*/
include "database/gendb.sandesh"
const string COLLECTOR_KEYSPACE = "ContrailAnalytics"
const string COLLECTOR_KEYSPACE_CQL = "ContrailAnalyticsCql"
const string COLLECTOR_GLOBAL_TABLE = "MessageTable"
const string UUID_KEY = "UuidKey"
const string SOURCE = "Source"
const string KEYWORD = "Keyword"
const string NAMESPACE = "Namespace"
const string MODULE = "ModuleId"
const string INSTANCE_ID = "InstanceId"
const string NODE_TYPE = "NodeType"
const string TIMESTAMP = "MessageTS"
const string SANDESH_TYPE = "Type"
const string CATEGORY = "Category"
const string LEVEL = "Level"
const string IPADDRESS = "IPAddress"
const string PID = "Pid"
const string MESSAGE_TYPE = "Messagetype"
const string DATA = "Xmlmessage"
const string CONTEXT = "Context"
const string SEQUENCE_NUM = "SequenceNum"
const string VERSION = "VersionSig"
const string MESSAGE_TABLE_SOURCE = "MessageTableSource"
const string MESSAGE_TABLE_MODULE_ID = "MessageTableModuleId"
const string MESSAGE_TABLE_MESSAGE_TYPE = "MessageTableMessageType"
const string MESSAGE_TABLE_CATEGORY = "MessageTableCategory"
const string MESSAGE_TABLE_LEVEL = "MessageTableLevel"
const string MESSAGE_TABLE_TIMESTAMP = "MessageTableTimestamp"
const string MESSAGE_TABLE_KEYWORD = "MessageTableKeyword"
const string OBJECT_ID = "ObjectId"
const string ROWTIMESTAMP = "RowTimeStamp"
const string OBJECT_VALUE_TABLE = "ObjectValueTable"
const string SYSTEM_OBJECT_TABLE = "SystemObjectTable"
const string SYSTEM_OBJECT_ANALYTICS = "SystemObjectAnalytics"
const string SYSTEM_OBJECT_START_TIME = "SystemObjectStartTime"
const string SYSTEM_OBJECT_FLOW_START_TIME = "SystemObjectFlowStartTime"
const string SYSTEM_OBJECT_STAT_START_TIME = "SystemObjectStatStartTime"
const string SYSTEM_OBJECT_MSG_START_TIME = "SystemObjectMsgStartTime"
const string SYSTEM_OBJECT_FLOW_DATA_TTL = "SystemObjectFlowDataTtl"
const string SYSTEM_OBJECT_STATS_DATA_TTL = "SystemObjectStatsDataTtl"
const string SYSTEM_OBJECT_CONFIG_AUDIT_TTL = "SystemObjectConfigAuditTtl"
const string SYSTEM_OBJECT_GLOBAL_DATA_TTL = "SystemObjectGlobalDataTtl"
// Master object table which contains all object tables combined
const string OBJECT_TABLE = "ObjectTable"
//The following are the object tables and some of them are UVEs
const string VN_TABLE = "ObjectVNTable"
const string VM_TABLE = "ObjectVMTable"
const string VMI_TABLE = "ObjectVMITable"
const string SI_TABLE = "ObjectSITable"
const string VROUTER_TABLE = "ObjectVRouter"
const string BGP_PEER_TABLE = "ObjectBgpPeer"
const string BGP_ROUTER_TABLE = "ObjectBgpRouter"
const string XMPP_PEER_INFO_TABLE = "ObjectXmppPeerInfo"
const string ROUTING_INSTANCE_TABLE = "ObjectRoutingInstance"
const string XMPP_CONNECTION_TABLE = "ObjectXmppConnection"
const string COLLECTOR_INFO_TABLE = "ObjectCollectorInfo"
const string DATABASE_INFO_TABLE = "ObjectDatabaseInfo"
const string GENERATOR_INFO_TABLE = "ObjectGeneratorInfo"
const string CONFIG_NODE_TABLE = "ObjectConfigNode"
const string SERVICE_CHAIN = "ServiceChain"
const string DNS_TABLE = "ObjectDns"
const string QUERY_TABLE_OBJECT = "ObjectQueryTable"
const string QUERY_QID_OBJECT = "ObjectQueryQid"
const string CONFIG_OBJECT_TABLE = "ConfigObjectTable"
const string POOL_TABLE = "ObjectPoolTable"
const string OSD_TABLE = "ObjectOsdTable"
const string DISK_TABLE = "ObjectDiskTable"
const string SERVER_TABLE = "ObjectServerTable"
const string PROUTER_TABLE = "ObjectPRouter"
const string CONFIG_OBJECT_TABLE_USER = "ConfigObjectTableByUser"
const string PHYSICAL_IF_TABLE = "ObjectPhysicalInterfaceTable"
const string LOGICAL_IF_TABLE = "ObjectLogicalInterfaceTable"
const string STORAGE_CLUSTER_TABLE = "ObjectStorageClusterTable"
const string VN_DISPLAY_NAME = "Virtual Network"
const string VM_DISPLAY_NAME = "Virtual Machine"
const string VMI_DISPLAY_NAME = "Virtual Machine Interface"
const string SI_DISPLAY_NAME = "Service Instance"
const string VROUTER_DISPLAY_NAME = "vRouter"
const string BGP_PEER_DISPLAY_NAME = "BGP Peer"
const string ROUTING_INSTANCE_DISPLAY_NAME = "Routing Instance"
const string BGP_ROUTER_DISPLAY_NAME = "Control Node"
const string XMPP_PEER_INFO_DISPLAY_NAME = "XMPP Peer"
const string XMPP_CONNECTION_DISPLAY_NAME = "XMPP Connection"
const string COLLECTOR_INFO_DISPLAY_NAME = "Analytics Node"
const string DATABASE_INFO_DISPLAY_NAME = "Database Node"
const string GENERATOR_INFO_DISPLAY_NAME = "Generator"
const string CONFIG_NODE_DISPLAY_NAME = "Config Node"
const string SERVICE_CHAIN_DISPLAY_NAME = "Service Chain"
const string DNS_DISPLAY_NAME = "DNS Node"
const string QUERY_TABLE_DISPLAY_NAME = "Query Object Table"
const string QUERY_QID_DISPLAY_NAME = "Query Object Qid"
const string CONFIG_OBJECT_DISPLAY_NAME = "Config Object Table"
const string STORAGE_POOL_DISPLAY_NAME = "Storage Pool"
const string STORAGE_OSD_DISPLAY_NAME = "Storage Device"
const string STORAGE_DISK_DISPLAY_NAME = "Storage RawDisk"
const string SERVER_TABLE_DISPLAY_NAME = "Server Table Info"
const string PROUTER_DISPLAY_NAME = "pRouter"
const string CONFIG_OBJECT_USER_DISPLAY_NAME = "Config Object by User Table"
const string LOGICAL_IF_DISPLAY_NAME = "Logical Interface"
const string PHYSICAL_IF_DISPLAY_NAME = "Physical Interface"
const string STORAGE_CLUSTER_DISPLAY_NAME = "Storage Cluster"
const string SYSTEM_LOG = "SystemLog"
const string OBJECT_LOG = "ObjectLog"
const string FLOW_TABLE = "FlowRecordTable"
const string FLOW_TABLE_VN2VN = "FlowTableVNtoVN"
const string FLOW_TABLE_VN = "FlowTableVN"
const string FLOW_TABLE_VN_AND_IP = "FlowTableVNandIP"
const string FLOW_TABLE_SVN_SIP = "FlowTableSvnSipVer2"
const string FLOW_TABLE_DVN_DIP = "FlowTableDvnDipVer2"
const string FLOW_TABLE_PROT_SP = "FlowTableProtSpVer2"
const string FLOW_TABLE_PROT_DP = "FlowTableProtDpVer2"
const string FLOW_TABLE_VROUTER = "FlowTableVRouterVer2"
const string FLOW_SERIES_TABLE = "FlowSeriesTable"
const string FLOW_TABLE_INVALID = "Invalid Flow Table"
const string OVERLAY_TO_UNDERLAY_FLOW_MAP = "OverlayToUnderlayFlowMap"
const string STATS_TABLE_BY_STR_STR_TAG = "StatsTableByStrStrTagV3"
const string STATS_TABLE_BY_STR_U64_TAG = "StatsTableByStrU64TagV3"
const string STATS_TABLE_BY_U64_STR_TAG = "StatsTableByU64StrTagV3"
const string STATS_TABLE_BY_U64_U64_TAG = "StatsTableByU64U64TagV3"
const string STATS_TABLE_BY_DBL_TAG = "StatsTableByDblTagV3"
const string STATS_TABLE_BY_STR_TAG = "StatsTableByStrTagV3"
const string STATS_TABLE_BY_U64_TAG = "StatsTableByU64TagV3"
const u16 PARTITION_MIN = 0
const u16 PARTITION_MAX = 16
enum TtlType {
FLOWDATA_TTL,
STATSDATA_TTL,
CONFIGAUDIT_TTL,
GLOBAL_TTL,
}
typedef map<TtlType, u64> TtlMap
const map<TtlType, u64> TtlValuesDefault = {
TtlType.FLOWDATA_TTL : 2,
TtlType.STATSDATA_TTL : 168,
TtlType.CONFIGAUDIT_TTL : 2160,
TtlType.GLOBAL_TTL : 48,
}
const list<string> _FLOW_TABLES = [
FLOW_TABLE_SVN_SIP,
FLOW_TABLE_DVN_DIP,
FLOW_TABLE_PROT_SP,
FLOW_TABLE_PROT_DP,
FLOW_TABLE_VROUTER,
]
const list<string> _STATS_TABLES = [
STATS_TABLE_BY_STR_STR_TAG,
STATS_TABLE_BY_STR_U64_TAG,
STATS_TABLE_BY_U64_STR_TAG,
STATS_TABLE_BY_U64_U64_TAG,
STATS_TABLE_BY_DBL_TAG,
STATS_TABLE_BY_STR_TAG,
STATS_TABLE_BY_U64_TAG,
]
const list<string> _MSG_TABLES = [
MESSAGE_TABLE_SOURCE,
MESSAGE_TABLE_MODULE_ID,
MESSAGE_TABLE_MESSAGE_TYPE,
MESSAGE_TABLE_CATEGORY,
MESSAGE_TABLE_LEVEL,
MESSAGE_TABLE_KEYWORD,
MESSAGE_TABLE_TIMESTAMP,
OBJECT_TABLE
]
const list<string> _NO_AUTO_PURGE_TABLES = [
COLLECTOR_GLOBAL_TABLE,
FLOW_TABLE,
SYSTEM_OBJECT_TABLE
]
// Please keep FlowRecordFields and FlowRecordNames in sync
enum FlowRecordFields {
FLOWREC_FLOWUUID,
FLOWREC_DIRECTION_ING,
FLOWREC_SOURCEVN,
FLOWREC_SOURCEIP,
FLOWREC_DESTVN,
FLOWREC_DESTIP,
FLOWREC_PROTOCOL,
FLOWREC_SPORT,
FLOWREC_DPORT,
FLOWREC_TOS,
FLOWREC_TCP_FLAGS,
FLOWREC_VM,
FLOWREC_INPUT_INTERFACE,
FLOWREC_OUTPUT_INTERFACE,
FLOWREC_MPLS_LABEL,
FLOWREC_REVERSE_UUID,
FLOWREC_SETUP_TIME,
FLOWREC_TEARDOWN_TIME,
FLOWREC_MIN_INTERARRIVAL,
FLOWREC_MAX_INTERARRIVAL,
FLOWREC_MEAN_INTERARRIVAL,
FLOWREC_STDDEV_INTERARRIVAL,
FLOWREC_BYTES,
FLOWREC_PACKETS,
FLOWREC_DATA_SAMPLE,
FLOWREC_VROUTER,
FLOWREC_DIFF_BYTES,
FLOWREC_DIFF_PACKETS,
FLOWREC_SHORT_FLOW,
FLOWREC_JSON,
FLOWREC_ACTION,
FLOWREC_SG_RULE_UUID,
FLOWREC_NW_ACE_UUID,
FLOWREC_VROUTER_IP,
FLOWREC_OTHER_VROUTER_IP,
FLOWREC_UNDERLAY_PROTO,
FLOWREC_UNDERLAY_SPORT,
FLOWREC_VMI_UUID,
FLOWREC_DROP_REASON,
FLOWREC_MAX,
}
const list<string> FlowRecordNames = [
"flowuuid",
"direction_ing",
"sourcevn",
"sourceip",
"destvn",
"destip",
"protocol",
"sport",
"dport",
"tos",
"tcp_flags",
"vm",
"input_interface",
"output_interface",
"mpls_label",
"reverse_uuid",
"setup_time",
"teardown_time",
"min_interarrival",
"max_interarrival",
"mean_interarrival",
"stddev_interarrival",
"bytes",
"packets",
"data_sample",
"vrouter",
"diff_bytes",
"diff_packets",
"short_flow",
"json",
"action",
"sg_rule_uuid",
"nw_ace_uuid",
"vrouter_ip",
"other_vrouter_ip",
"underlay_proto",
"underlay_source_port",
"vmi_uuid",
"drop_reason",
"invalid",
]
// UFlowData fields
const string UFLOW_PROUTER = "name";
const string UFLOW_PIFINDEX = "flow.pifindex";
const string UFLOW_SIP = "flow.sip";
const string UFLOW_DIP = "flow.dip";
const string UFLOW_SPORT = "flow.sport";
const string UFLOW_DPORT = "flow.dport";
const string UFLOW_PROTOCOL = "flow.protocol";
const string UFLOW_VLAN = "flow.vlan";
const string UFLOW_FLOWTYPE = "flow.flowtype";
const string UFLOW_OTHERINFO = "flow.otherinfo";
// OverlayToUnderlayFlowMap fields
const string O_SVN = "o_svn";
const string O_SIP = "o_sip";
const string O_DVN = "o_dvn";
const string O_DIP = "o_dip";
const string O_SPORT = "o_sport";
const string O_DPORT = "o_dport";
const string O_PROTOCOL = "o_protocol";
const string O_VROUTER = "o_vrouter";
const string U_PROUTER = "u_prouter";
const string U_PIFINDEX = "u_pifindex";
const string U_VLAN = "u_vlan";
const string U_SIP = "u_sip";
const string U_DIP = "u_dip";
const string U_SPORT = "u_sport";
const string U_DPORT = "u_dport";
const string U_PROTOCOL = "u_protocol";
const string U_FLOWTYPE = "u_flowtype";
const string U_OTHERINFO = "u_otherinfo"
const map<string, string> OverlayToFlowRecordFields = {
O_SVN : "sourcevn",
O_SIP : "sourceip",
O_DVN : "destvn",
O_DIP : "destip",
O_SPORT : "sport",
O_DPORT : "dport",
O_PROTOCOL : "protocol",
O_VROUTER : "vrouter"
}
const map<string, string> FlowRecordToUFlowDataFields = {
"vrouter_ip" : UFLOW_SIP,
"other_vrouter_ip" : UFLOW_DIP,
"underlay_source_port" : UFLOW_SPORT,
"underlay_proto" : UFLOW_PROTOCOL
}
const map<string, string> UnderlayToUFlowDataFields = {
U_PROUTER : UFLOW_PROUTER,
U_PIFINDEX : UFLOW_PIFINDEX,
U_SIP : UFLOW_SIP,
U_DIP : UFLOW_DIP,
U_SPORT : UFLOW_SPORT,
U_DPORT : UFLOW_DPORT,
U_PROTOCOL : UFLOW_PROTOCOL,
U_VLAN : UFLOW_VLAN,
U_FLOWTYPE : UFLOW_FLOWTYPE,
U_OTHERINFO : UFLOW_OTHERINFO
}
// Flow Table Query Strings
const string FLOW_TABLE_UUID = "UuidKey"
const string FLOW_TABLE_AGG_PKTS = "agg-packets"
const string FLOW_TABLE_AGG_BYTES = "agg-bytes"
/* REDIS RELATED NAMES/CONSTANTS */
const string GENERATORS_SET = "NGENERATORS"
const string ANALYTICS_START = "ANALYTICS_START_TIME"
// each row will have equivalent of 2^23 = 8388608 usec
const i32 RowTimeInBits = 23
const i32 RowTimeInMask = 0x7fffff
enum PartType {
PART_TYPE_INVALID= 0,
PART_TYPE_CNODES = 1,
PART_TYPE_PNODES = 2,
PART_TYPE_VMS = 3,
PART_TYPE_IFS = 4,
PART_TYPE_OTHER = 5,
}
const map<string, PartType> PART_TYPES = {
COLLECTOR_INFO_TABLE: PartType.PART_TYPE_CNODES,
DATABASE_INFO_TABLE: PartType.PART_TYPE_CNODES,
BGP_ROUTER_TABLE: PartType.PART_TYPE_CNODES,
CONFIG_NODE_TABLE: PartType.PART_TYPE_CNODES,
DNS_TABLE: PartType.PART_TYPE_CNODES,
SERVER_TABLE: PartType.PART_TYPE_PNODES,
PROUTER_TABLE: PartType.PART_TYPE_PNODES,
VROUTER_TABLE: PartType.PART_TYPE_PNODES,
VM_TABLE: PartType.PART_TYPE_VMS,
VMI_TABLE: PartType.PART_TYPE_IFS,
PHYSICAL_IF_TABLE: PartType.PART_TYPE_IFS,
LOGICAL_IF_TABLE: PartType.PART_TYPE_IFS,
}
const map<string, string> UVE_MAP = {
"virtual-network" : VN_TABLE,
"virtual-machine" : VM_TABLE,
"virtual-machine-interface" : VMI_TABLE,
"service-instance" : SI_TABLE,
"vrouter" : VROUTER_TABLE,
"control-node" : BGP_ROUTER_TABLE,
"bgp-peer" : BGP_PEER_TABLE,
"routing-instance" : ROUTING_INSTANCE_TABLE,
"xmpp-peer" : XMPP_PEER_INFO_TABLE,
"analytics-node" : COLLECTOR_INFO_TABLE,
"database-node" : DATABASE_INFO_TABLE,
"generator" : GENERATOR_INFO_TABLE
"config-node" : CONFIG_NODE_TABLE,
"service-chain" : SERVICE_CHAIN,
"dns-node" : DNS_TABLE,
"storage-pool" : POOL_TABLE,
"storage-osd" : OSD_TABLE,
"storage-disk" : DISK_TABLE,
"server" : SERVER_TABLE,
"prouter" : PROUTER_TABLE,
"physical-interface" : PHYSICAL_IF_TABLE,
"logical-interface" : LOGICAL_IF_TABLE,
"storage-cluster" : STORAGE_CLUSTER_TABLE
}
struct objtable_info {
1: string objtable_display_name;
2: string log_query_name;
}
const map<string, objtable_info> _OBJECT_TABLES = {
CONFIG_OBJECT_TABLE : {
'objtable_display_name' : CONFIG_OBJECT_DISPLAY_NAME
'log_query_name' : "config"
}
VN_TABLE : {
'objtable_display_name' : VN_DISPLAY_NAME
'log_query_name' : "virtual-network"
}
VM_TABLE : {
'objtable_display_name' : VM_DISPLAY_NAME
'log_query_name' : "virtual-machine"
}
VMI_TABLE : {
'objtable_display_name' : VMI_DISPLAY_NAME
'log_query_name' : "virtual-machine-interface"
}
SI_TABLE : {
'objtable_display_name' : SI_DISPLAY_NAME
'log_query_name' : "service-instance"
}
VROUTER_TABLE : {
'objtable_display_name' : VROUTER_DISPLAY_NAME
'log_query_name' : "vrouter"
}
PROUTER_TABLE : {
'objtable_display_name' : PROUTER_DISPLAY_NAME
'log_query_name' : "prouter"
}
BGP_PEER_TABLE : {
'objtable_display_name' : BGP_PEER_DISPLAY_NAME
'log_query_name' : "bgp-peer"
}
BGP_ROUTER_TABLE : {
'objtable_display_name' : BGP_ROUTER_DISPLAY_NAME
'log_query_name' : "control-node"
}
ROUTING_INSTANCE_TABLE : {
'objtable_display_name' : ROUTING_INSTANCE_DISPLAY_NAME
'log_query_name' : "routing-instance"
}
XMPP_CONNECTION_TABLE : {
'objtable_display_name' : XMPP_CONNECTION_DISPLAY_NAME
'log_query_name' : "xmpp-connection"
}
XMPP_PEER_INFO_TABLE : {
'objtable_display_name' : XMPP_PEER_INFO_DISPLAY_NAME
'log_query_name' : "xmpp-peer"
}
COLLECTOR_INFO_TABLE : {
'objtable_display_name' : COLLECTOR_INFO_DISPLAY_NAME
'log_query_name' : "analytics-node"
}
DATABASE_INFO_TABLE : {
'objtable_display_name' : DATABASE_INFO_DISPLAY_NAME
'log_query_name' : "database-node"
}
GENERATOR_INFO_TABLE : {
'objtable_display_name' : GENERATOR_INFO_DISPLAY_NAME
'log_query_name' : "generator"
}
CONFIG_NODE_TABLE : {
'objtable_display_name' : CONFIG_NODE_DISPLAY_NAME
'log_query_name' : "config-node"
}
SERVICE_CHAIN : {
'objtable_display_name' : SERVICE_CHAIN_DISPLAY_NAME
'log_query_name' : "service-chain"
}
DNS_TABLE : {
'objtable_display_name' : DNS_DISPLAY_NAME
'log_query_name' : "dns-node"
}
QUERY_TABLE_OBJECT : {
'objtable_display_name' : QUERY_TABLE_DISPLAY_NAME
'log_query_name' : "analytics-query"
}
QUERY_QID_OBJECT : {
'objtable_display_name' : QUERY_QID_DISPLAY_NAME
'log_query_name' : "analytics-query-id"
}
POOL_TABLE : {
'objtable_display_name' : STORAGE_POOL_DISPLAY_NAME
'log_query_name' : "storage-pool"
}
OSD_TABLE : {
'objtable_display_name' : STORAGE_OSD_DISPLAY_NAME
'log_query_name' : "storage-osd"
}
DISK_TABLE : {
'objtable_display_name' : STORAGE_DISK_DISPLAY_NAME
'log_query_name' : "storage-disk"
}
SERVER_TABLE : {
'objtable_display_name' : SERVER_TABLE_DISPLAY_NAME
}
CONFIG_OBJECT_TABLE_USER : {
'objtable_display_name' : CONFIG_OBJECT_USER_DISPLAY_NAME
'log_query_name' : "config-user"
}
PHYSICAL_IF_TABLE : {
'objtable_display_name' : PHYSICAL_IF_DISPLAY_NAME
'log_query_name' : "physical-interface"
}
LOGICAL_IF_TABLE : {
'objtable_display_name' : LOGICAL_IF_DISPLAY_NAME
'log_query_name' : "logical-interface"
}
STORAGE_CLUSTER_TABLE : {
'objtable_display_name' : STORAGE_CLUSTER_DISPLAY_NAME
'log_query_name' : "storage-cluster"
}
}
// Analytics table schema defination
// Description of the column
struct schema_column
{
1: string name;
2: gendb.DbDataType datatype;
3: bool key;
}
// Description of the column
struct query_column
{
1: string name;
2: string datatype;
3: bool index;
4: bool select;
5: list<string> suffixes;
}
struct query_schema_type
{
1: string type;
2: list<query_column> columns;
}
struct query_table
{
1: string name;
2: query_schema_type schema;
3: list<string> columnvalues;
4: string display_name;
}
struct stat_query_column
{
1: string name;
2: string datatype;
3: bool index;
4: list<string> suffixes;
}
struct table_schema
{
1: string table_name;
2: bool is_static;
3: bool is_index_table;
4: list<schema_column> columns;
}
struct stat_table
{
6: string display_name;
1: string stat_type;
2: string stat_attr;
3: string obj_table;
5: list<stat_query_column> attributes;
}
const string STAT_OBJECTID_FIELD = "name";
const string STAT_SOURCE_FIELD = SOURCE;
const string STAT_TIME_FIELD = "T";
const string STAT_TIMEBIN_FIELD = "T=";
const string STAT_UUID_FIELD = "UUID";
const string STAT_VT_PREFIX = "StatTable";
const list<table_schema> _VIZD_TABLE_SCHEMA = [
{
'table_name' : MESSAGE_TABLE_SOURCE,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'key2', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.UTF8Type },
{ 'name' : 'column2', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'column3', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : COLLECTOR_GLOBAL_TABLE,
'is_static' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.LexicalUUIDType, 'key'
: true },
{ 'name' : CATEGORY, 'datatype' : GenDb.DbDataType.UTF8Type },
{ 'name' : CONTEXT, 'datatype' : GenDb.DbDataType.UTF8Type },
{ 'name' : IPADDRESS, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : INSTANCE_ID, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : LEVEL, 'datatype' : Gendb.DbDataType.Unsigned32Type },
{ 'name' : TIMESTAMP, 'datatype' : Gendb.DbDataType.Unsigned64Type },
{ 'name' : MESSAGE_TYPE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : MODULE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : NAMESPACE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : NODE_TYPE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : PID, 'datatype' : Gendb.DbDataType.Unsigned32Type },
{ 'name' : SEQUENCE_NUM, 'datatype' : Gendb.DbDataType.Unsigned32Type },
{ 'name' : SOURCE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : SANDESH_TYPE, 'datatype' : Gendb.DbDataType.Unsigned8Type },
{ 'name' : VERSION, 'datatype' : Gendb.DbDataType.Unsigned32Type },
{ 'name' : DATA, 'datatype' : Gendb.DbDataType.UTF8Type },
]
},
{
'table_name' : MESSAGE_TABLE_MODULE_ID,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'key2', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.UTF8Type },
{ 'name' : 'column2', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'column3', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : MESSAGE_TABLE_MESSAGE_TYPE,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'key2', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.UTF8Type },
{ 'name' : 'column2', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'column3', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : MESSAGE_TABLE_CATEGORY,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'key2', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.UTF8Type },
{ 'name' : 'column2', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'column3', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : MESSAGE_TABLE_TIMESTAMP,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key' :
true },
{ 'name' : 'key2', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'column2', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : OBJECT_VALUE_TABLE,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key' :
true },
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.UTF8Type 'key' : true },
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.UTF8Type},
]
},
{
'table_name' : SYSTEM_OBJECT_TABLE,
'is_static' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.UTF8Type, 'key' : true},
{ 'name' : SYSTEM_OBJECT_FLOW_DATA_TTL, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_CONFIG_AUDIT_TTL, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_FLOW_START_TIME, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_GLOBAL_DATA_TTL, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_MSG_START_TIME, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_START_TIME, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_STAT_START_TIME, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_STATS_DATA_TTL, 'datatype' : Gendb.DbDataType.Unsigned64Type},
]
},
{
'table_name' : OBJECT_TABLE,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'key3', 'datatype' : Gendb.DbDataType.UTF8Type, 'key' :
true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : 'column2', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.LexicalUUIDType},
]
},
{
'table_name' : MESSAGE_TABLE_KEYWORD,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : 'column2', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'column3', 'datatype' : Gendb.DbDataType.LexicalUUIDType},
]
},
]
const list<table_schema> _VIZD_THRIFT_TABLE_SCHEMA = [
{
'table_name' : MESSAGE_TABLE_SOURCE,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'key2', 'datatype' : GenDb.DbDataType.UTF8Type, 'key' :
true },
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'value', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : COLLECTOR_GLOBAL_TABLE,
'is_static' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.LexicalUUIDType, 'key'
: true },
{ 'name' : CATEGORY, 'datatype' : GenDb.DbDataType.UTF8Type },
{ 'name' : CONTEXT, 'datatype' : GenDb.DbDataType.UTF8Type },
{ 'name' : IPADDRESS, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : INSTANCE_ID, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : LEVEL, 'datatype' : Gendb.DbDataType.Unsigned32Type },
{ 'name' : TIMESTAMP, 'datatype' : Gendb.DbDataType.Unsigned64Type },
{ 'name' : MESSAGE_TYPE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : MODULE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : NAMESPACE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : NODE_TYPE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : PID, 'datatype' : Gendb.DbDataType.Unsigned32Type },
{ 'name' : SEQUENCE_NUM, 'datatype' : Gendb.DbDataType.Unsigned32Type },
{ 'name' : SOURCE, 'datatype' : Gendb.DbDataType.UTF8Type },
{ 'name' : SANDESH_TYPE, 'datatype' : Gendb.DbDataType.Unsigned8Type },
{ 'name' : VERSION, 'datatype' : Gendb.DbDataType.Unsigned32Type },
{ 'name' : DATA, 'datatype' : Gendb.DbDataType.UTF8Type },
]
},
{
'table_name' : MESSAGE_TABLE_MODULE_ID,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'key2', 'datatype' : GenDb.DbDataType.UTF8Type, 'key' :
true },
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'value', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : MESSAGE_TABLE_MESSAGE_TYPE,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'key2', 'datatype' : GenDb.DbDataType.UTF8Type, 'key' :
true },
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'value', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : MESSAGE_TABLE_CATEGORY,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'key2', 'datatype' : GenDb.DbDataType.UTF8Type, 'key' :
true },
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'value', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : MESSAGE_TABLE_TIMESTAMP,
'is_index_table' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : GenDb.DbDataType.Unsigned32Type, 'key'
: true },
{ 'name' : 'column1', 'datatype' : GenDb.DbDataType.Unsigned32Type },
{ 'name' : 'value', 'datatype' : GenDb.DbDataType.LexicalUUIDType },
]
},
{
'table_name' : OBJECT_VALUE_TABLE,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.UTF8Type, 'key' :
true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.UTF8Type},
]
},
{
'table_name' : SYSTEM_OBJECT_TABLE,
'is_static' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.UTF8Type, 'key' : true},
{ 'name' : SYSTEM_OBJECT_FLOW_DATA_TTL, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_CONFIG_AUDIT_TTL, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_FLOW_START_TIME, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_GLOBAL_DATA_TTL, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_MSG_START_TIME, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_START_TIME, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_STAT_START_TIME, 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : SYSTEM_OBJECT_STATS_DATA_TTL, 'datatype' : Gendb.DbDataType.Unsigned64Type},
]
},
{
'table_name' : OBJECT_TABLE,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'key3', 'datatype' : Gendb.DbDataType.UTF8Type, 'key' :
true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : 'column2', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.LexicalUUIDType},
]
},
{
'table_name' : MESSAGE_TABLE_KEYWORD,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.UTF8Type, 'key' :
true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.LexicalUUIDType},
]
},
]
const list<table_schema> _VIZD_FLOW_TABLE_SCHEMA = [
{
'table_name' : FLOW_TABLE,
'is_static' : true,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.LexicalUUIDType, 'key'
: true},
{ 'name' : "vrouter", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "direction_ing", 'datatype' : Gendb.DbDataType.Unsigned8Type},
{ 'name' : "sourcevn", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "sourceip", 'datatype' : Gendb.DbDataType.InetType},
{ 'name' : "destvn", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "destip", 'datatype' : Gendb.DbDataType.InetType},
{ 'name' : "protocol", 'datatype' : Gendb.DbDataType.Unsigned8Type},
{ 'name' : "sport", 'datatype' : Gendb.DbDataType.Unsigned16Type},
{ 'name' : "dport", 'datatype' : Gendb.DbDataType.Unsigned16Type},
{ 'name' : "tos", 'datatype' : Gendb.DbDataType.Unsigned8Type},
{ 'name' : "tcp_flags", 'datatype' : Gendb.DbDataType.Unsigned8Type},
{ 'name' : "vm", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "input_interface", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "output_interface", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "mpls_label", 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : "reverse_uuid", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "setup_time", 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : "teardown_time", 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : "min_interarrival", 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : "max_interarrival", 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : "mean_interarrival", 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : "stddev_interarrival", 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : "bytes", 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : "packets", 'datatype' : Gendb.DbDataType.Unsigned64Type},
{ 'name' : "data_sample", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "action", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "sg_rule_uuid", 'datatype' : Gendb.DbDataType.LexicalUUIDType},
{ 'name' : "nw_ace_uuid", 'datatype' : Gendb.DbDataType.LexicalUUIDType},
{ 'name' : "vrouter_ip", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "other_vrouter_ip", 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : "underlay_proto", 'datatype' : Gendb.DbDataType.Unsigned16Type},
{ 'name' : "underlay_source_port", 'datatype' : Gendb.DbDataType.Unsigned16Type},
{ 'name' : "vmi_uuid", 'datatype' : Gendb.DbDataType.LexicalUUIDType},
{ 'name' : "drop_reason", 'datatype' : Gendb.DbDataType.UTF8Type},
]
},
{
'table_name' : FLOW_TABLE_SVN_SIP,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key3', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : 'column2', 'datatype' : Gendb.DbDataType.InetType},
{ 'name' : 'column3', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'column4', 'datatype' : Gendb.DbDataType.LexicalUUIDType},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.UTF8Type},
]
},
{
'table_name' : FLOW_TABLE_DVN_DIP,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'key3', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : 'column2', 'datatype' : Gendb.DbDataType.InetType},
{ 'name' : 'column3', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'column4', 'datatype' : Gendb.DbDataType.LexicalUUIDType},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.UTF8Type},
]
},
{
'table_name' : FLOW_TABLE_PROT_SP,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'key3', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.Unsigned8Type},
{ 'name' : 'column2', 'datatype' : Gendb.DbDataType.Unsigned16Type},
{ 'name' : 'column3', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'column4', 'datatype' : Gendb.DbDataType.LexicalUUIDType},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.UTF8Type},
]
},
{
'table_name' : FLOW_TABLE_PROT_DP,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'key3', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.Unsigned8Type},
{ 'name' : 'column2', 'datatype' : Gendb.DbDataType.Unsigned16Type},
{ 'name' : 'column3', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'column4', 'datatype' : Gendb.DbDataType.LexicalUUIDType},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.UTF8Type},
]
},
{
'table_name' : FLOW_TABLE_VROUTER,
'columns' : [
{ 'name' : 'key', 'datatype' : Gendb.DbDataType.Unsigned32Type, 'key'
: true},
{ 'name' : 'key2', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'key3', 'datatype' : Gendb.DbDataType.Unsigned8Type, 'key'
: true},
{ 'name' : 'column1', 'datatype' : Gendb.DbDataType.UTF8Type},
{ 'name' : 'column2', 'datatype' : Gendb.DbDataType.Unsigned32Type},
{ 'name' : 'column3', 'datatype' : Gendb.DbDataType.LexicalUUIDType},
{ 'name' : 'value', 'datatype' : Gendb.DbDataType.UTF8Type},
]
},
]
const list<table_schema> _VIZD_STAT_TABLE_SCHEMA = [
{