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: * Returns statistics about the load balancer.
16: *
17: * @link http://docs.rackspace.com/loadbalancers/api/v1.0/clb-devguide/content/List_Load_Balancer_Stats-d1e1524.html
18: */
19: class Stats extends Readonly
20: {
21:
22: /**
23: * Connections closed by this load balancer because the 'connect_timeout'
24: * interval was exceeded.
25: *
26: * @var int
27: */
28: public $connectTimeOut;
29:
30: /**
31: * Number of transaction or protocol errors in this load balancer.
32: *
33: * @var int
34: */
35: public $connectError;
36:
37: /**
38: * Number of connection failures in this load balancer.
39: *
40: * @var int
41: */
42: public $connectFailure;
43:
44: /**
45: * Connections closed by this load balancer because the 'timeout' interval
46: * was exceeded.
47: *
48: * @var int
49: */
50: public $dataTimedOut;
51:
52: /**
53: * Connections closed by this load balancer because the 'keepalive_timeout'
54: * interval was exceeded.
55: *
56: * @var int
57: */
58: public $keepAliveTimedOut;
59:
60: /**
61: * Maximum number of simultaneous TCP connections this load balancer has
62: * processed at any one time.
63: *
64: * @var int
65: */
66: public $maxConn;
67:
68: protected static $json_name = false;
69: protected static $url_resource = 'stats';
70:
71: }
72: