summaryrefslogtreecommitdiffstats
path: root/modules-available/statistics/inc/machine.inc.php
blob: 8605749ba0452b88481194e22d7ce5f4dd2d0945 (plain) (blame)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
<?php

class Machine
{
	const NO_DATA = 0;
	const RAW_DATA = 1;

	/**
	 * @var string UUID
	 */
	public $machineuuid;

	/**
	 * @var int|null locationid machine belongs to
	 */
	public $locationid;

	/**
	 * @var string mac address
	 */
	public $macaddr;

	/**
	 * @var string client's ip address
	 */
	public $clientip;

	/**
	 * @var string client's host name
	 */
	public $hostname;

	/**
	 * @var int timestamp of when this machine booted from this server for the first time
	 */
	public $firstseen;

	/**
	 * @var int last time this machine was seen active
	 */
	public $lastseen;

	/**
	 * @var int timestamp of when the machine was booted, 0 if machine is powered off
	 */
	public $lastboot;

	/**
	 * @var int timestamp of when the current user logged in, 0 if machine is idle
	 */
	public $logintime;

	/**
	 * @var string state of machine (OFFLINE, IDLE, OCCUPIED, STANDBY)
	 */
	public $state;

	/**
	 * @var string json data of position inside room (if any), null/empty otherwise
	 */
	public $position;

	/**
	 * @var string|null UUID or name of currently running lecture/session
	 */
	public $currentsession;

	/**
	 * @var string|null name of currently logged in user
	 */
	public $currentuser;

	/**
	 * @var string|null raw data of machine, if requested
	 */
	public $data;

}