This commit was generated by cvs2svn to compensate for changes in r11022,
[freeside.git] / FS / FS / part_pkg / torrus_bw_percentile.pm
1 package FS::part_pkg::torrus_bw_percentile;
2
3 use strict;
4 use base qw( FS::part_pkg::torrus_Common );
5 use List::Util qw(max);
6
7 our %info = (
8   'name'      => '95th percentile billing based on the integrated Torrus NMS',
9   'shortname' => 'Bandwidth (95th percentile)',
10   'weight'    => 54.5, #:/
11   'inherit_fields' => [ 'flat', 'global_Mixin' ],
12   'fields' => {
13     'recur_temporality' => { 'disabled' => 1 },
14     'sync_bill_date'    => { 'disabled' => 1 },
15     'cutoff_day'        => { 'disabled' => 1 },
16     'base_mbps'         => { 'name'    => 'Included megabytes/sec (95th percentile)',
17                              'default' => 0,
18                            },
19     'mbps_rate'         => { 'name'    => 'Charge per megabyte/sec (95th percentile)',
20                              'default' => 0,
21                            },
22   },
23   'fieldorder' => [ qw( base_mbps mbps_rate ) ],
24   'freq' => 'm',
25 );
26
27 sub _torrus_name  { '95TH_PERCENTILE'; }
28 sub _torrus_base  { 'base_mbps'; }
29 sub _torrus_rate  { 'mbps_rate'; }
30 sub _torrus_label { 'mbps'; };
31
32 1;