mirror of
https://github.com/percona/percona-toolkit.git
synced 2025-10-21 01:54:44 +00:00
Add --output json-anon that excludes query examples.
This commit is contained in:
@@ -228,10 +228,12 @@ override query_report => sub {
|
||||
distillate => $distill,
|
||||
attribute => $groupby,
|
||||
query_count => $times_seen,
|
||||
example => {
|
||||
query => substr($sample->{arg}, 0, $self->max_query_length),
|
||||
ts => $sample->{ts} ? parse_timestamp($sample->{ts}) : undef,
|
||||
},
|
||||
$args{anon} ? () : (
|
||||
example => {
|
||||
query => substr($sample->{arg}, 0, $self->max_query_length),
|
||||
ts => $sample->{ts} ? parse_timestamp($sample->{ts}) : undef,
|
||||
},
|
||||
),
|
||||
};
|
||||
|
||||
my %metrics;
|
||||
|
Reference in New Issue
Block a user