You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: cmd/gnmi_cli/gnmi_cli.go
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -101,6 +101,9 @@ func init() {
101
101
flag.StringVar(&cfg.Timestamp, "timestamp", "", "Specify timestamp formatting in output. One of (<empty string>, on, raw, <FORMAT>) where <empty string> is disabled, on is human readable, raw is int64 nanos since epoch, and <FORMAT> is according to golang time.Format(<FORMAT>)")
102
102
flag.BoolVar(&cfg.DisplaySize, "display_size", false, "Display the total size of query response.")
103
103
flag.BoolVar(&cfg.Latency, "latency", false, "Display the latency for receiving each update (Now - update timestamp).")
104
+
flag.DurationVar(&cfg.FilterMinLatency, "filter_min_latency", 0, "Filter out results with latency < the specified minium latency. No filtering if 0. Works with single display type only.")
105
+
flag.BoolVar(&cfg.FilterDeletes, "filter_deletes", false, "Filter out delete results. Works with single display type only.")
106
+
flag.BoolVar(&cfg.FilterUpdates, "filter_updates", false, "Filter out update results. Works with single display type only.")
104
107
flag.StringVar(&q.TLS.ServerName, "server_name", "", "When set, CLI will use this hostname to verify server certificate during TLS handshake.")
105
108
flag.BoolVar(&q.TLS.InsecureSkipVerify, "tls_skip_verify", false, "When set, CLI will not verify the server certificate during TLS handshake.")
106
109
@@ -118,6 +121,9 @@ func init() {
118
121
flag.DurationVar(&cfg.PollingInterval, "pi", cfg.PollingInterval, "Short for polling_interval.")
119
122
flag.BoolVar(&cfg.DisplaySize, "ds", cfg.DisplaySize, "Short for display_size.")
120
123
flag.BoolVar(&cfg.Latency, "l", cfg.Latency, "Short for latency.")
124
+
flag.DurationVar(&cfg.FilterMinLatency, "flml", 0, "Short for filter_min_latency.")
125
+
flag.BoolVar(&cfg.FilterDeletes, "fld", false, "Short for filter_deletes.")
126
+
flag.BoolVar(&cfg.FilterUpdates, "flu", false, "Short for filter_updates.")
121
127
flag.StringVar(reqProto, "p", *reqProto, "Short for request proto.")
0 commit comments