QueriedLog.php
1.42 KB
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
<?php
/**
* Copyright (C) Alibaba Cloud Computing
* All rights reserved
*/
/**
* The QueriedLog is a log of the Aliyun_Log_Models_GetLogsResponse which obtained from the log.
*
* @author log service dev
*/
class Aliyun_Log_Models_QueriedLog {
/**
* @var integer log timestamp
*/
private $time;
/**
* @var string log source
*/
private $source;
/**
* @var array log contents, content many key/value pair
*/
private $contents;
/**
* Aliyun_Log_Models_QueriedLog constructor
*
* @param integer $time
* log time stamp
* @param string $source
* log source
* @param array $contents
* log contents, content many key/value pair
*/
public function __construct($time, $source, $contents) {
$this->time = $time;
$this->source = $source;
$this->contents = $contents; // deep copy
}
/**
* Get log source
*
* @return string log source
*/
public function getSource() {
return $this->source;
}
/**
* Get log time
*
* @return integer log time
*/
public function getTime() {
return $this->time;
}
/**
* Get log contents, content many key/value pair.
*
* @return array log contents
*/
public function getContents() {
return $this->contents;
}
}