Description
This function returns an account's average hourly peak bandwidth use for one year.
Warning:
We removed this function in cPanel & WHM version 11.52. We strongly recommend that you use the following UAPI function instead of this function:
Bandwidth::query
— This function queries an account's bandwidth data and returns a report.
Examples
{
"cpanelresult": {
"apiversion": 2,
"func": "gethourlyaveragebwoveryear",
"data": [
{
"ftp": [
[
0,
0
],
[
3600,
0
],
[
7200,
0
],
[
10800,
0
],
[
14400,
0
],
[
18000,
0
],
[
21600,
0
],
[
25200,
0
],
[
28800,
0
],
[
32400,
0
],
[
36000,
0
],
[
39600,
0
],
[
43200,
0
],
[
46800,
0
],
[
50400,
0
],
[
54000,
0
],
[
57600,
0
],
[
61200,
0
],
[
64800,
0
],
[
68400,
0
],
[
72000,
0
],
[
75600,
0
],
[
79200,
0
],
[
82800,
0
]
],
"smtp": [
[
0,
0
],
[
3600,
0
],
[
7200,
0
],
[
10800,
0
],
[
14400,
0
],
[
18000,
0
],
[
21600,
0
],
[
25200,
0
],
[
28800,
0
],
[
32400,
0
],
[
36000,
0
],
[
39600,
0
],
[
43200,
0
],
[
46800,
0
],
[
50400,
0
],
[
54000,
0
],
[
57600,
0
],
[
61200,
0
],
[
64800,
0
],
[
68400,
0
],
[
72000,
0
],
[
75600,
0
],
[
79200,
0
],
[
82800,
0
]
],
"http": [
[
0,
0
],
[
3600,
0
],
[
7200,
0
],
[
10800,
0
],
[
14400,
0
],
[
18000,
0
],
[
21600,
0
],
[
25200,
0
],
[
28800,
0
],
[
32400,
0
],
[
36000,
0
],
[
39600,
0
],
[
43200,
0
],
[
46800,
0
],
[
50400,
0
],
[
54000,
0
],
[
57600,
0
],
[
61200,
0
],
[
64800,
0
],
[
68400,
0
],
[
72000,
0
],
[
75600,
0
],
[
79200,
0
],
[
82800,
0
]
],
"pop3": [
[
0,
0
],
[
3600,
0
],
[
7200,
0
],
[
10800,
0
],
[
14400,
0
],
[
18000,
0
],
[
21600,
0
],
[
25200,
0
],
[
28800,
0
],
[
32400,
0
],
[
36000,
0
],
[
39600,
0
],
[
43200,
0
],
[
46800,
0
],
[
50400,
0
],
[
54000,
0
],
[
57600,
0
],
[
61200,
0
],
[
64800,
0
],
[
68400,
0
],
[
72000,
0
],
[
75600,
0
],
[
79200,
0
],
[
82800,
0
]
],
"imap": [
[
0,
0
],
[
3600,
0
],