diff options
author | ivan <ivan> | 2011-01-08 00:56:06 +0000 |
---|---|---|
committer | ivan <ivan> | 2011-01-08 00:56:06 +0000 |
commit | f7e5e7625b04164ce2e0aac77a85bc03a7d48a6f (patch) | |
tree | 76a3babc6b46af009d4eb2405410d8272adcf120 /FS/FS/part_pkg/torrus_bw_percentile.pm | |
parent | 8fad52859c516d8657653007f0fa602f7c857651 (diff) |
torrus, RT#10574
Diffstat (limited to 'FS/FS/part_pkg/torrus_bw_percentile.pm')
-rw-r--r-- | FS/FS/part_pkg/torrus_bw_percentile.pm | 32 |
1 files changed, 32 insertions, 0 deletions
diff --git a/FS/FS/part_pkg/torrus_bw_percentile.pm b/FS/FS/part_pkg/torrus_bw_percentile.pm new file mode 100644 index 0000000..7cf254a --- /dev/null +++ b/FS/FS/part_pkg/torrus_bw_percentile.pm @@ -0,0 +1,32 @@ +package FS::part_pkg::torrus_bw_percentile; + +use strict; +use base qw( FS::part_pkg::torrus_Common ); +use List::Util qw(max); + +our %info = ( + 'name' => '95th percentile billing based on the integrated Torrus NMS', + 'shortname' => 'Bandwidth (95th percentile)', + 'weight' => 54.5, #:/ + 'inherit_fields' => [ 'flat', 'global_Mixin' ], + 'fields' => { + #'recur_temporality' => { 'hidden' => 1, 'value' => 'preceding' }, #XXX do + 'recur_temporality' => { 'disabled' => 1 }, + 'sync_bill_date' => { 'disabled' => 1 }, + 'cutoff_day' => { 'disabled' => 1 }, + 'base_mbps' => { 'name' => 'Included megabytes/sec (95th percentile)', + 'default' => 0, + }, + 'mbps_rate' => { 'name' => 'Charge per megabyte/sec (95th percentile)', + 'default' => 0, + }, + }, + 'fieldorder' => [ qw( base_mbps mbps_rate ) ], + 'freq' => 'm', +); + +sub _torrus_name { '95TH_PERCENTILE'; } +sub _torrus_base { 'base_mbps'; } +sub _torrus_rate { 'mbps_rate'; } + +1; |