Skip to content

Commit 328cd1e

Browse files
authored
tables fixed (#1133)
1 parent 7e877f1 commit 328cd1e

File tree

1 file changed

+109
-37
lines changed

1 file changed

+109
-37
lines changed

windows-observ-lib/panels.libsonnet

Lines changed: 109 additions & 37 deletions
Original file line numberDiff line numberDiff line change
@@ -593,6 +593,71 @@ local utils = commonlib.utils;
593593
value: 'bind_method',
594594
},
595595
},
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+
},
596661
{
597662
id: 'filterFieldsByName',
598663
options: {
@@ -606,29 +671,19 @@ local utils = commonlib.utils;
606671
options: {
607672
renameByName:
608673
{
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',
619684
},
620685
},
621686
},
622-
{
623-
id: 'reduce',
624-
options: {
625-
includeTimeField: false,
626-
mode: 'reduceFields',
627-
reducers: [
628-
'last',
629-
],
630-
},
631-
},
632687
]
633688
),
634689
intrasiteReplicationTraffic: commonlib.panels.network.timeSeries.traffic.new(
@@ -728,10 +783,37 @@ local utils = commonlib.utils;
728783
},
729784
},
730785
{
731-
id: 'filterFieldsByName',
786+
id: 'groupBy',
732787
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+
},
735817
},
736818
},
737819
},
@@ -740,23 +822,13 @@ local utils = commonlib.utils;
740822
options: {
741823
renameByName:
742824
{
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',
747829
},
748830
},
749831
},
750-
{
751-
id: 'reduce',
752-
options: {
753-
includeTimeField: false,
754-
mode: 'reduceFields',
755-
reducers: [
756-
'last',
757-
],
758-
},
759-
},
760832
]
761833
),
762834
databaseOperations: commonlib.panels.generic.timeSeries.base.new(

0 commit comments

Comments
 (0)