ServerHistory::setMemoryUsage()   A
last analyzed

Complexity

Conditions 1
Paths 1

Size

Total Lines 4
Code Lines 2

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 1
Metric Value
c 1
b 0
f 1
dl 0
loc 4
rs 10
cc 1
eloc 2
nc 1
nop 1
1
<?php
2
namespace Monitor\Model;
3
4
/**
5
 * @Entity @Table(name="servers_history")
6
 **/
7
class ServerHistory
8
{
9
    /**
10
     * @Id @Column(type="integer") @GeneratedValue
11
     **/
12
    private $id;
0 ignored issues
show
Unused Code introduced by
The property $id is not used and could be removed.

This check marks private properties in classes that are never used. Those properties can be removed.

Loading history...
13
    /**
14
     * @Column(type="integer")
15
     **/
16
    private $server_id;
17
    /**
18
     * @Column(type="string")
19
     **/
20
    private $hostname;
21
    /**
22
     * @Column(type="string")
23
     **/
24
    private $status;
25
    /**
26
     * @Column(type="float")
27
     **/
28
    private $sys_load;
29
    /**
30
     * @Column(type="integer")
31
     **/
32
    private $cpu_cores;
33
    /**
34
     * @Column(type="bigint")
35
     **/
36
    private $memory_usage;
37
    /**
38
     * @Column(type="bigint")
39
     **/
40
    private $memory_total;
41
    /**;
42
     * @Column(type="bigint")
43
     **/
44
    private $memory_free;
45
    /**
46
     * @Column(type="bigint")
47
     **/
48
    private $disk_free;
49
    /**
50
     * @Column(type="bigint")
51
     **/
52
    private $disk_total;
53
    /**
54
     * @Column(type="bigint")
55
     **/
56
    private $disk_usage;
57
    /**
58
     * @Column(type="integer")
59
     **/
60
    private $ping;
61
    /**
62
     * @Column(type="integer")
63
     **/
64
    private $mysql_slow_query;
65
    /**
66
     * @Column(type="integer")
67
     **/
68
    private $mysql_query_avg;
69
    /**
70
     * @Column(type="integer")
71
     **/
72
    private $memcache_hits;
73
    /**
74
     * @Column(type="integer")
75
     **/
76
    private $memcache_miss;
77
    /**
78
     * @Column(type="integer")
79
     **/
80
    private $memcache_get;
81
    /**
82
     * @Column(type="integer")
83
     **/
84
    private $memcache_cmd;
85
    /**
86
     * @Column(type="integer")
87
     **/
88
    private $memcache_bytes;
89
    /**
90
     * @Column(type="integer")
91
     **/
92
    private $memcache_max_bytes;
93
    /**
94
     * @Column(type="integer")
95
     **/
96
    private $time;
97
98
    public function setServerId($id)
99
    {
100
        $this->server_id = $id;
101
    }
102
103
    public function setHostname($hostname)
104
    {
105
        $this->hostname = $hostname;
106
    }
107
108
    public function setStatus($status)
109
    {
110
        $this->status = $status;
111
    }
112
113
    public function setSysLoad($sysload)
114
    {
115
        $this->sys_load = $sysload;
116
    }
117
118
    public function setCpuCores($cpuCores)
119
    {
120
        $this->cpu_cores = $cpuCores;
121
    }
122
123
    public function setMemoryUsage($memoryUsage)
124
    {
125
        $this->memory_usage = $memoryUsage;
126
    }
127
128
    public function setMemoryTotal($memoryTotal)
129
    {
130
        $this->memory_total = $memoryTotal;
131
    }
132
133
    public function setMemoryFree($memoryFree)
134
    {
135
        $this->memory_free = $memoryFree;
136
    }
137
138
    public function setDiskUsage($diskUsage)
139
    {
140
        $this->disk_usage = $diskUsage;
141
    }
142
143
    public function setDiskTotal($diskTotal)
144
    {
145
        $this->disk_total = $diskTotal;
146
    }
147
148
    public function setDiskFree($diskFree)
149
    {
150
        $this->disk_free = $diskFree;
151
    }
152
153
    public function setPing($ping)
154
    {
155
        $this->ping = $ping;
156
    }
157
158
    public function setMysqlSlowQuery($msq)
159
    {
160
        $this->mysql_slow_query = $msq;
161
    }
162
163
    public function setMysqlQueryAvg($mqv)
164
    {
165
        $this->mysql_query_avg = $mqv;
166
    }
167
168
    public function setMemcacheHits($hits)
169
    {
170
        $this->memcache_hits = $hits;
171
    }
172
173
    public function setMemcacheMiss($miss)
174
    {
175
        $this->memcache_miss = $miss;
176
    }
177
178
    public function setMemcacheGet($get)
179
    {
180
        $this->memcache_get = $get;
181
    }
182
183
    public function setMemcacheCmd($cmd)
184
    {
185
        $this->memcache_cmd = $cmd;
186
    }
187
188
    public function setMemcacheBytes($bytes)
189
    {
190
        $this->memcache_bytes = $bytes;
191
    }
192
193
    public function setMemcacheMaxBytes($maxBytes)
194
    {
195
        $this->memcache_max_bytes = $maxBytes;
196
    }
197
198
    public function setTime($time)
199
    {
200
        $this->time = $time;
201
    }
202
}
203