Skip to content

Commit 7b5061d

Browse files
author
Marcin Przepiorowski
committed
v2.4.21.1
2 parents 88be9d3 + 5b4ed8a commit 7b5061d

File tree

5 files changed

+30
-8
lines changed

5 files changed

+30
-8
lines changed

.github/workflows/build.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -316,7 +316,7 @@ jobs:
316316
#brew install cpanminus
317317
CELL=`brew --prefix perl`
318318
$CELL/bin/perl -MCPAN -e 'install App::cpanminus'
319-
brew install [email protected]
319+
#brew install [email protected]
320320
$CELL/bin/cpanm Crypt::[email protected]
321321
$CELL/bin/cpanm Crypt::Blowfish
322322
# export OPENSSL_PREFIX=`brew --prefix [email protected]`
@@ -332,7 +332,7 @@ jobs:
332332
$CELL/bin/cpanm DateTime::Format::DateParse
333333
$CELL/bin/cpanm Text::CSV
334334
$CELL/bin/cpanm LWP::UserAgent
335-
$CELL/bin/cpanm Net::SSLeay
335+
$CELL/bin/cpanm --force Net::SSLeay
336336
$CELL/bin/cpanm Mozilla::CA@20180117
337337
$CELL/bin/cpanm -f IO::Socket::[email protected]
338338
$CELL/bin/cpanm LWP::Protocol::https
@@ -346,7 +346,7 @@ jobs:
346346
run: |
347347
#CELL=`brew --prefix pioro/repo/[email protected]`
348348
CELL=`brew --prefix perl`
349-
OPENLIB=`brew --prefix openssl@1.1`
349+
OPENLIB=`brew --prefix openssl@3`
350350
CDIR=`pwd`
351351
export PP=${CELL}/bin/pp
352352
export LIBS="-l ${OPENLIB}/lib/libssl.dylib -l ${OPENLIB}/lib/libcrypto.dylib"

.github/workflows/develop.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -390,7 +390,7 @@ jobs:
390390
# eval $(perl -I ~/perl5/lib/perl5/ -Mlocal::lib)
391391
# echo $PERL_MB_OPT
392392
#brew uninstall --ignore-dependencies [email protected]
393-
curl https://raw.githubusercontent.com/Homebrew/homebrew-core/ffa0f6655cbbbecaafb5334cefaae4c3eb1ffb8a/Formula/openssl%401.1.rb -o openssl\@1.1.rb
393+
#curl https://raw.githubusercontent.com/Homebrew/homebrew-core/ffa0f6655cbbbecaafb5334cefaae4c3eb1ffb8a/Formula/openssl%401.1.rb -o openssl\@1.1.rb
394394
#cat ./openssl\@1.1.rb
395395
#brew install --build-from-source ./openssl\@1.1.rb
396396
$CELL/bin/cpanm Crypt::[email protected]
@@ -408,7 +408,7 @@ jobs:
408408
$CELL/bin/cpanm DateTime::Format::DateParse
409409
$CELL/bin/cpanm Text::CSV
410410
$CELL/bin/cpanm LWP::UserAgent
411-
$CELL/bin/cpanm Net::SSLeay
411+
$CELL/bin/cpanm --force Net::SSLeay
412412
$CELL/bin/cpanm Mozilla::CA@20180117
413413
$CELL/bin/cpanm -f IO::Socket::[email protected]
414414
$CELL/bin/cpanm LWP::Protocol::https
@@ -428,7 +428,7 @@ jobs:
428428
run: |
429429
#CELL=`brew --prefix pioro/repo/[email protected]`
430430
CELL=`brew --prefix perl`
431-
OPENLIB=`brew --prefix openssl@1.1`
431+
OPENLIB=`brew --prefix openssl@3`
432432
CDIR=`pwd`
433433
export PP=${CELL}/bin/pp
434434
export LIBS="-l ${OPENLIB}/lib/libssl.dylib -l ${OPENLIB}/lib/libcrypto.dylib"

CHANGELOG.md

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,8 @@
1+
## 2.4.21.1
2+
3+
### Changes:
4+
- group name added to dx_get_vdbthroughput - new parameter fullname
5+
16
## 2.4.21
27

38
### Added

bin/dx_get_vdbthroughput.pl

Lines changed: 18 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,6 +36,7 @@
3636
use Toolkit_helpers;
3737
use PerfHistory_obj;
3838
use Databases;
39+
use Group_obj;
3940

4041
my $version = $Toolkit_helpers::version;
4142
my $interval = 60;
@@ -49,6 +50,7 @@
4950
'i=s' => \($interval),
5051
'outdir=s' => \(my $outdir),
5152
'format=s' => \($format),
53+
'fullname' => \(my $fullname),
5254
'all' => (\my $all),
5355
'dever=s' => \(my $dever),
5456
'version' => \(my $print_version),
@@ -136,6 +138,11 @@
136138

137139
my $perfdata = $perfhist->returndata();
138140

141+
my $groups;
142+
143+
if (defined($fullname)) {
144+
$groups = new Group_obj($engine_obj, $debug);
145+
}
139146

140147
# check if no data returned
141148
my $firstts = (keys(%{$perfdata}))[0];
@@ -145,9 +152,15 @@
145152
my @dbnamelist;
146153
push(@dbnamelist, {'timestamp', '30'});
147154

155+
my $fulldbname;
148156
for my $dbref (sort(keys(%{$perfdata->{$firstts}}))) {
149157
$dbobj = $db->getDB($dbref);
150-
push(@dbnamelist, {$dbobj->getName(), '30'});
158+
if (defined($fullname)) {
159+
$fulldbname = $groups->getName($dbobj->getGroup()) . "/" . $dbobj->getName();
160+
} else {
161+
$fulldbname = $dbobj->getName();
162+
}
163+
push(@dbnamelist, {$fulldbname, '30'});
151164
}
152165

153166
$output->addHeader(
@@ -188,6 +201,7 @@ =head1 SYNOPSIS
188201
dx_get_vdbthroughput [ -engine|d <delphix identifier> | -all ] [ -configfile file ]
189202
[-st timestamp]
190203
[-et timestamp]
204+
[-fullname]
191205
[-i 1|60|3600]
192206
[-outdir path]
193207
[ --help|? ]
@@ -237,6 +251,9 @@ =head1 OPTIONS
237251
Use the specified interval for export. Allowed values are:
238252
1, 60, 3600
239253
254+
=item B<-fullname>
255+
Add groupname to the output. Full name is printed as "group name/database name"
256+
240257
=item B<-help>
241258
Print this screen
242259

lib/Toolkit_helpers.pm

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@ use File::Spec;
2929

3030
use lib '../lib';
3131

32-
our $version = '2.4.21';
32+
our $version = '2.4.21.1';
3333

3434
my $tz = new Date::Manip::TZ;
3535
my $dt = new Date::Manip::Date;

0 commit comments

Comments
 (0)