1: <?php
2: /**
3: * Copyright 2012-2014 Rackspace US, Inc.
4: *
5: * Licensed under the Apache License, Version 2.0 (the "License");
6: * you may not use this file except in compliance with the License.
7: * You may obtain a copy of the License at
8: *
9: * http://www.apache.org/licenses/LICENSE-2.0
10: *
11: * Unless required by applicable law or agreed to in writing, software
12: * distributed under the License is distributed on an "AS IS" BASIS,
13: * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14: * See the License for the specific language governing permissions and
15: * limitations under the License.
16: */
17:
18: namespace OpenCloud\LoadBalancer\Resource;
19:
20: /**
21: * Returns statistics about the load balancer.
22: *
23: * @link http://docs.rackspace.com/loadbalancers/api/v1.0/clb-devguide/content/List_Load_Balancer_Stats-d1e1524.html
24: */
25: class Stats extends ReadOnlyResource
26: {
27: /**
28: * Connections closed by this load balancer because the 'connect_timeout'
29: * interval was exceeded.
30: *
31: * @var int
32: */
33: public $connectTimeOut;
34:
35: /**
36: * Number of transaction or protocol errors in this load balancer.
37: *
38: * @var int
39: */
40: public $connectError;
41:
42: /**
43: * Number of connection failures in this load balancer.
44: *
45: * @var int
46: */
47: public $connectFailure;
48:
49: /**
50: * Connections closed by this load balancer because the 'timeout' interval
51: * was exceeded.
52: *
53: * @var int
54: */
55: public $dataTimedOut;
56:
57: /**
58: * Connections closed by this load balancer because the 'keepalive_timeout'
59: * interval was exceeded.
60: *
61: * @var int
62: */
63: public $keepAliveTimedOut;
64:
65: /**
66: * Maximum number of simultaneous TCP connections this load balancer has
67: * processed at any one time.
68: *
69: * @var int
70: */
71: public $maxConn;
72:
73: protected static $json_name = false;
74: protected static $url_resource = 'stats';
75:
76: public function refresh($id = null, $url = null)
77: {
78: return $this->refreshFromParent();
79: }
80: }
81: