1: <?php
2: /**
3: * PHP OpenCloud library.
4: *
5: * @copyright Copyright 2013 Rackspace US, Inc. See COPYING for licensing information.
6: * @license https://www.apache.org/licenses/LICENSE-2.0 Apache 2.0
7: * @version 1.6.0
8: * @author Glen Campbell <glen.campbell@rackspace.com>
9: * @author Jamie Hannaford <jamie.hannaford@rackspace.com>
10: */
11:
12: namespace OpenCloud\LoadBalancer\Resources;
13:
14: /**
15: * Reports all usage for a Load Balancer recorded within the preceding 24 hours.
16: */
17: class Usage extends Readonly
18: {
19:
20: public $id;
21: public $averageNumConnections;
22:
23: /**
24: * Incoming transfer in bytes.
25: *
26: * @var int
27: */
28: public $incomingTransfer;
29:
30: /**
31: * Outgoing transfer in bytes.
32: *
33: * @var int
34: */
35: public $outgoingTransfer;
36: public $averageNumConnectionsSsl;
37: public $incomingTransferSsl;
38: public $outgoingTransferSsl;
39: public $numVips;
40: public $numPolls;
41: public $startTime;
42: public $endTime;
43: public $vipType;
44: public $sslMode;
45: public $eventType;
46:
47: protected static $json_name = 'loadBalancerUsageRecord';
48: protected static $url_resource = 'usage';
49:
50: }
51: