GitHub Access Token became invalid

It seems like the GitHub access token used for retrieving details about this repository from GitHub became invalid. This might prevent certain types of inspections from being run (in particular, everything related to pull requests).
Please ask an admin of your repository to re-new the access token on this website.
Test Failed
Push — master ( 4072ed...7c6d5d )
by
unknown
09:36
created

QueryMetric   A

Complexity

Total Complexity 6

Size/Duplication

Total Lines 47
Duplicated Lines 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
wmc 6
eloc 14
c 1
b 0
f 0
dl 0
loc 47
rs 10

3 Methods

Rating   Name   Duplication   Size   Complexity  
A withDimensions() 0 8 2
A withFilters() 0 9 2
A withMeasures() 0 8 2
1
<?php
2
3
namespace AlibabaCloud\Xtrace\V20190808;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method GetTagKey getTagKey(array $options = [])
9
 * @method GetTagVal getTagVal(array $options = [])
10
 * @method GetToken getToken(array $options = [])
11
 * @method GetTrace getTrace(array $options = [])
12
 * @method ListIpOrHosts listIpOrHosts(array $options = [])
13
 * @method ListServices listServices(array $options = [])
14
 * @method ListSpanNames listSpanNames(array $options = [])
15
 * @method QueryMetric queryMetric(array $options = [])
16
 * @method SearchTraces searchTraces(array $options = [])
17
 */
18
class XtraceApiResolver extends ApiResolver
19
{
20
}
21
22
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
23
{
24
    /** @var string */
25
    public $product = 'xtrace';
26
27
    /** @var string */
28
    public $version = '2019-08-08';
29
30
    /** @var string */
31
    public $method = 'POST';
32
33
    /** @var string */
34
    public $serviceCode = 'xtrace';
35
}
36
37
/**
38
 * @method string getEndTime()
39
 * @method $this withEndTime($value)
40
 * @method string getServiceName()
41
 * @method $this withServiceName($value)
42
 * @method string getStartTime()
43
 * @method $this withStartTime($value)
44
 * @method string getSpanName()
45
 * @method $this withSpanName($value)
46
 */
47
class GetTagKey extends Rpc
48
{
49
}
50
51
/**
52
 * @method string getEndTime()
53
 * @method $this withEndTime($value)
54
 * @method string getServiceName()
55
 * @method $this withServiceName($value)
56
 * @method string getStartTime()
57
 * @method $this withStartTime($value)
58
 * @method string getTagKey()
59
 * @method $this withTagKey($value)
60
 * @method string getSpanName()
61
 * @method $this withSpanName($value)
62
 */
63
class GetTagVal extends Rpc
64
{
65
}
66
67
/**
68
 * @method string getAppType()
69
 * @method $this withAppType($value)
70
 */
71
class GetToken extends Rpc
72
{
73
}
74
75
/**
76
 * @method string getTraceID()
77
 * @method $this withTraceID($value)
78
 * @method string getAppType()
79
 * @method $this withAppType($value)
80
 */
81
class GetTrace extends Rpc
82
{
83
}
84
85
/**
86
 * @method string getEndTime()
87
 * @method $this withEndTime($value)
88
 * @method string getServiceName()
89
 * @method $this withServiceName($value)
90
 * @method string getStartTime()
91
 * @method $this withStartTime($value)
92
 */
93
class ListIpOrHosts extends Rpc
94
{
95
}
96
97
/**
98
 * @method string getAppType()
99
 * @method $this withAppType($value)
100
 */
101
class ListServices extends Rpc
102
{
103
}
104
105
/**
106
 * @method string getEndTime()
107
 * @method $this withEndTime($value)
108
 * @method string getServiceName()
109
 * @method $this withServiceName($value)
110
 * @method string getStartTime()
111
 * @method $this withStartTime($value)
112
 */
113
class ListSpanNames extends Rpc
114
{
115
}
116
117
/**
118
 * @method string getEndTime()
119
 * @method $this withEndTime($value)
120
 * @method string getOrderBy()
121
 * @method $this withOrderBy($value)
122
 * @method string getStartTime()
123
 * @method $this withStartTime($value)
124
 * @method array getFilters()
125
 * @method array getMeasures()
126
 * @method string getIntervalInSec()
127
 * @method $this withIntervalInSec($value)
128
 * @method string getMetric()
129
 * @method $this withMetric($value)
130
 * @method string getLimit()
131
 * @method $this withLimit($value)
132
 * @method array getDimensions()
133
 * @method string getOrder()
134
 * @method $this withOrder($value)
135
 */
136
class QueryMetric extends Rpc
137
{
138
139
    /**
140
     * @param array $filters
141
     *
142
     * @return $this
143
     */
144
	public function withFilters(array $filters)
145
	{
146
	    $this->data['Filters'] = $filters;
147
		foreach ($filters as $depth1 => $depth1Value) {
148
			$this->options['query']['Filters.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
149
			$this->options['query']['Filters.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
150
		}
151
152
		return $this;
153
    }
154
155
    /**
156
     * @param array $measures
157
     *
158
     * @return $this
159
     */
160
	public function withMeasures(array $measures)
161
	{
162
	    $this->data['Measures'] = $measures;
163
		foreach ($measures as $i => $iValue) {
164
			$this->options['query']['Measures.' . ($i + 1)] = $iValue;
165
		}
166
167
		return $this;
168
    }
169
170
    /**
171
     * @param array $dimensions
172
     *
173
     * @return $this
174
     */
175
	public function withDimensions(array $dimensions)
176
	{
177
	    $this->data['Dimensions'] = $dimensions;
178
		foreach ($dimensions as $i => $iValue) {
179
			$this->options['query']['Dimensions.' . ($i + 1)] = $iValue;
180
		}
181
182
		return $this;
183
    }
184
}
185
186
/**
187
 * @method string getAppType()
188
 * @method $this withAppType($value)
189
 * @method string getEndTime()
190
 * @method $this withEndTime($value)
191
 * @method string getStartTime()
192
 * @method $this withStartTime($value)
193
 * @method string getReverse()
194
 * @method $this withReverse($value)
195
 * @method string getMinDuration()
196
 * @method $this withMinDuration($value)
197
 * @method string getPageNumber()
198
 * @method $this withPageNumber($value)
199
 * @method string getServiceIp()
200
 * @method $this withServiceIp($value)
201
 * @method string getOperationName()
202
 * @method $this withOperationName($value)
203
 * @method string getPageSize()
204
 * @method $this withPageSize($value)
205
 * @method string getServiceName()
206
 * @method $this withServiceName($value)
207
 * @method array getTag()
208
 */
209
class SearchTraces extends Rpc
210
{
211
212
    /**
213
     * @param array $tag
214
     *
215
     * @return $this
216
     */
217
	public function withTag(array $tag)
218
	{
219
	    $this->data['Tag'] = $tag;
220
		foreach ($tag as $depth1 => $depth1Value) {
221
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
222
			$this->options['query']['Tag.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
223
		}
224
225
		return $this;
226
    }
227
}
228