@@ -593,6 +593,71 @@ local utils = commonlib.utils;
593
593
value: 'bind_method' ,
594
594
},
595
595
},
596
+ {
597
+ id: 'groupBy' ,
598
+ options: {
599
+ fields: {
600
+ instance: {
601
+ aggregations: [],
602
+ operation: 'groupby' ,
603
+ },
604
+ digest: {
605
+ aggregations: [
606
+ 'lastNotNull' ,
607
+ ],
608
+ operation: 'aggregate' ,
609
+ },
610
+ ds_client: {
611
+ aggregations: [
612
+ 'lastNotNull' ,
613
+ ],
614
+ operation: 'aggregate' ,
615
+ },
616
+ ds_server: {
617
+ aggregations: [
618
+ 'lastNotNull' ,
619
+ ],
620
+ operation: 'aggregate' ,
621
+ },
622
+ external: {
623
+ aggregations: [
624
+ 'lastNotNull' ,
625
+ ],
626
+ operation: 'aggregate' ,
627
+ },
628
+ fast: {
629
+ aggregations: [
630
+ 'lastNotNull' ,
631
+ ],
632
+ operation: 'aggregate' ,
633
+ },
634
+ ldap: {
635
+ aggregations: [
636
+ 'lastNotNull' ,
637
+ ],
638
+ operation: 'aggregate' ,
639
+ },
640
+ negotiate: {
641
+ aggregations: [
642
+ 'lastNotNull' ,
643
+ ],
644
+ operation: 'aggregate' ,
645
+ },
646
+ ntlm: {
647
+ aggregations: [
648
+ 'lastNotNull' ,
649
+ ],
650
+ operation: 'aggregate' ,
651
+ },
652
+ simple: {
653
+ aggregations: [
654
+ 'lastNotNull' ,
655
+ ],
656
+ operation: 'aggregate' ,
657
+ },
658
+ },
659
+ },
660
+ },
596
661
{
597
662
id: 'filterFieldsByName' ,
598
663
options: {
@@ -606,29 +671,19 @@ local utils = commonlib.utils;
606
671
options: {
607
672
renameByName:
608
673
{
609
- instance: 'Instance' ,
610
- digest: 'Digest' ,
611
- ds_client: 'DS_client' ,
612
- ds_server: 'DS_server' ,
613
- external: 'External' ,
614
- fast: 'Fast' ,
615
- ldap: 'LDAP' ,
616
- negotiate: 'Negotiate' ,
617
- ntlm: 'NTLM' ,
618
- simple: 'Simple' ,
674
+ ' instance (lastNotNull)' : 'Instance' ,
675
+ ' digest (lastNotNull)' : 'Digest' ,
676
+ ' ds_client (lastNotNull)' : 'DS_client' ,
677
+ ' ds_server (lastNotNull)' : 'DS_server' ,
678
+ ' external (lastNotNull)' : 'External' ,
679
+ ' fast (lastNotNull)' : 'Fast' ,
680
+ ' ldap (lastNotNull)' : 'LDAP' ,
681
+ ' negotiate (lastNotNull)' : 'Negotiate' ,
682
+ ' ntlm (lastNotNull)' : 'NTLM' ,
683
+ ' simple (lastNotNull)' : 'Simple' ,
619
684
},
620
685
},
621
686
},
622
- {
623
- id: 'reduce' ,
624
- options: {
625
- includeTimeField: false ,
626
- mode: 'reduceFields' ,
627
- reducers: [
628
- 'last' ,
629
- ],
630
- },
631
- },
632
687
]
633
688
),
634
689
intrasiteReplicationTraffic: commonlib.panels.network.timeSeries.traffic.new(
@@ -728,10 +783,37 @@ local utils = commonlib.utils;
728
783
},
729
784
},
730
785
{
731
- id: 'filterFieldsByName ' ,
786
+ id: 'groupBy ' ,
732
787
options: {
733
- include: {
734
- pattern: 'instance|add|delete|modify|recycle' ,
788
+ fields: {
789
+ instance: {
790
+ aggregations: [],
791
+ operation: 'groupby' ,
792
+ },
793
+ add: {
794
+ aggregations: [
795
+ 'lastNotNull' ,
796
+ ],
797
+ operation: 'aggregate' ,
798
+ },
799
+ delete: {
800
+ aggregations: [
801
+ 'lastNotNull' ,
802
+ ],
803
+ operation: 'aggregate' ,
804
+ },
805
+ modify: {
806
+ aggregations: [
807
+ 'lastNotNull' ,
808
+ ],
809
+ operation: 'aggregate' ,
810
+ },
811
+ recycle: {
812
+ aggregations: [
813
+ 'lastNotNull' ,
814
+ ],
815
+ operation: 'aggregate' ,
816
+ },
735
817
},
736
818
},
737
819
},
@@ -740,23 +822,13 @@ local utils = commonlib.utils;
740
822
options: {
741
823
renameByName:
742
824
{
743
- add: 'Add' ,
744
- delete: 'Delete' ,
745
- modify: 'Modify' ,
746
- recycle: 'Recycle' ,
825
+ ' add (lastNotNull)' : 'Add' ,
826
+ ' delete (lastNotNull)' : 'Delete' ,
827
+ ' modify (lastNotNull)' : 'Modify' ,
828
+ ' recycle (lastNotNull)' : 'Recycle' ,
747
829
},
748
830
},
749
831
},
750
- {
751
- id: 'reduce' ,
752
- options: {
753
- includeTimeField: false ,
754
- mode: 'reduceFields' ,
755
- reducers: [
756
- 'last' ,
757
- ],
758
- },
759
- },
760
832
]
761
833
),
762
834
databaseOperations: commonlib.panels.generic.timeSeries.base.new(
0 commit comments