-
Notifications
You must be signed in to change notification settings - Fork 192
/
Copy pathClientStats.php
142 lines (133 loc) · 4.19 KB
/
ClientStats.php
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
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
<?php
namespace Jaeger\Thrift;
/**
* Autogenerated by Thrift Compiler (0.13.0)
*
* DO NOT EDIT UNLESS YOU ARE SURE THAT YOU KNOW WHAT YOU ARE DOING
* @generated
*/
use Thrift\Base\TBase;
use Thrift\Type\TType;
use Thrift\Type\TMessageType;
use Thrift\Exception\TException;
use Thrift\Exception\TProtocolException;
use Thrift\Protocol\TProtocol;
use Thrift\Protocol\TBinaryProtocolAccelerated;
use Thrift\Exception\TApplicationException;
class ClientStats
{
static public $isValidate = false;
static public $_TSPEC = array(
1 => array(
'var' => 'fullQueueDroppedSpans',
'isRequired' => true,
'type' => TType::I64,
),
2 => array(
'var' => 'tooLargeDroppedSpans',
'isRequired' => true,
'type' => TType::I64,
),
3 => array(
'var' => 'failedToEmitSpans',
'isRequired' => true,
'type' => TType::I64,
),
);
/**
* @var int
*/
public $fullQueueDroppedSpans = null;
/**
* @var int
*/
public $tooLargeDroppedSpans = null;
/**
* @var int
*/
public $failedToEmitSpans = null;
public function __construct($vals = null)
{
if (is_array($vals)) {
if (isset($vals['fullQueueDroppedSpans'])) {
$this->fullQueueDroppedSpans = $vals['fullQueueDroppedSpans'];
}
if (isset($vals['tooLargeDroppedSpans'])) {
$this->tooLargeDroppedSpans = $vals['tooLargeDroppedSpans'];
}
if (isset($vals['failedToEmitSpans'])) {
$this->failedToEmitSpans = $vals['failedToEmitSpans'];
}
}
}
public function getName()
{
return 'ClientStats';
}
public function read($input)
{
$xfer = 0;
$fname = null;
$ftype = 0;
$fid = 0;
$xfer += $input->readStructBegin($fname);
while (true) {
$xfer += $input->readFieldBegin($fname, $ftype, $fid);
if ($ftype == TType::STOP) {
break;
}
switch ($fid) {
case 1:
if ($ftype == TType::I64) {
$xfer += $input->readI64($this->fullQueueDroppedSpans);
} else {
$xfer += $input->skip($ftype);
}
break;
case 2:
if ($ftype == TType::I64) {
$xfer += $input->readI64($this->tooLargeDroppedSpans);
} else {
$xfer += $input->skip($ftype);
}
break;
case 3:
if ($ftype == TType::I64) {
$xfer += $input->readI64($this->failedToEmitSpans);
} else {
$xfer += $input->skip($ftype);
}
break;
default:
$xfer += $input->skip($ftype);
break;
}
$xfer += $input->readFieldEnd();
}
$xfer += $input->readStructEnd();
return $xfer;
}
public function write($output)
{
$xfer = 0;
$xfer += $output->writeStructBegin('ClientStats');
if ($this->fullQueueDroppedSpans !== null) {
$xfer += $output->writeFieldBegin('fullQueueDroppedSpans', TType::I64, 1);
$xfer += $output->writeI64($this->fullQueueDroppedSpans);
$xfer += $output->writeFieldEnd();
}
if ($this->tooLargeDroppedSpans !== null) {
$xfer += $output->writeFieldBegin('tooLargeDroppedSpans', TType::I64, 2);
$xfer += $output->writeI64($this->tooLargeDroppedSpans);
$xfer += $output->writeFieldEnd();
}
if ($this->failedToEmitSpans !== null) {
$xfer += $output->writeFieldBegin('failedToEmitSpans', TType::I64, 3);
$xfer += $output->writeI64($this->failedToEmitSpans);
$xfer += $output->writeFieldEnd();
}
$xfer += $output->writeFieldStop();
$xfer += $output->writeStructEnd();
return $xfer;
}
}