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 ( dad625...61b6be )
by
unknown
07:16
created

QueryMetric::withFilters()   A

Complexity

Conditions 2
Paths 2

Size

Total Lines 9
Code Lines 5

Duplication

Lines 0
Ratio 0 %

Importance

Changes 1
Bugs 0 Features 0
Metric Value
eloc 5
c 1
b 0
f 0
dl 0
loc 9
rs 10
cc 2
nc 2
nop 1
1
<?php
2
3
namespace AlibabaCloud\ARMS\V20190808;
4
5
use AlibabaCloud\Client\Resolver\ApiResolver;
6
7
/**
8
 * @method CreateRetcodeApp createRetcodeApp(array $options = [])
9
 * @method DeleteRetcodeApp deleteRetcodeApp(array $options = [])
10
 * @method QueryDataset queryDataset(array $options = [])
11
 * @method QueryMetric queryMetric(array $options = [])
12
 * @method CreateAlertContact createAlertContact(array $options = [])
13
 * @method CreateAlertContactGroup createAlertContactGroup(array $options = [])
14
 * @method SearchAlertContact searchAlertContact(array $options = [])
15
 * @method SearchAlertContactGroup searchAlertContactGroup(array $options = [])
16
 * @method ImportAppAlertRules importAppAlertRules(array $options = [])
17
 * @method SearchRetcodeAppByPage searchRetcodeAppByPage(array $options = [])
18
 * @method SearchTraceAppByName searchTraceAppByName(array $options = [])
19
 * @method SearchTraceAppByPage searchTraceAppByPage(array $options = [])
20
 * @method ListRetcodeApps listRetcodeApps(array $options = [])
21
 * @method ListTraceApps listTraceApps(array $options = [])
22
 */
23
class ARMSApiResolver extends ApiResolver
24
{
25
}
26
27
class Rpc extends \AlibabaCloud\Client\Resolver\Rpc
28
{
29
    /** @var string */
30
    public $product = 'ARMS';
31
32
    /** @var string */
33
    public $version = '2019-08-08';
34
35
    /** @var string */
36
    public $method = 'POST';
37
38
    /** @var string */
39
    public $serviceCode = 'arms';
40
}
41
42
/**
43
 * @method string getRetcodeAppName()
44
 * @method $this withRetcodeAppName($value)
45
 * @method string getRetcodeAppType()
46
 * @method $this withRetcodeAppType($value)
47
 */
48
class CreateRetcodeApp extends Rpc
49
{
50
}
51
52
/**
53
 * @method string getAppId()
54
 * @method $this withAppId($value)
55
 */
56
class DeleteRetcodeApp extends Rpc
57
{
58
}
59
60
/**
61
 * @method string getDateStr()
62
 * @method $this withDateStr($value)
63
 * @method string getMinTime()
64
 * @method $this withMinTime($value)
65
 * @method string getReduceTail()
66
 * @method $this withReduceTail($value)
67
 * @method string getMaxTime()
68
 * @method $this withMaxTime($value)
69
 * @method array getOptionalDims()
70
 * @method array getMeasures()
71
 * @method string getIntervalInSec()
72
 * @method $this withIntervalInSec($value)
73
 * @method string getIsDrillDown()
74
 * @method $this withIsDrillDown($value)
75
 * @method string getHungryMode()
76
 * @method $this withHungryMode($value)
77
 * @method string getOrderByKey()
78
 * @method $this withOrderByKey($value)
79
 * @method string getLimit()
80
 * @method $this withLimit($value)
81
 * @method string getDatasetId()
82
 * @method $this withDatasetId($value)
83
 * @method array getRequiredDims()
84
 * @method array getDimensions()
85
 */
86
class QueryDataset extends Rpc
87
{
88
89
    /**
90
     * @param array $optionalDims
91
     *
92
     * @return $this
93
     */
94
    public function withOptionalDims(array $optionalDims)
95
    {
96
        $this->data['OptionalDims'] = $optionalDims;
97
        foreach ($optionalDims as $depth1 => $depth1Value) {
98
            $this->options['query']['OptionalDims.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type'];
99
            $this->options['query']['OptionalDims.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
100
            $this->options['query']['OptionalDims.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
101
        }
102
103
        return $this;
104
    }
105
106
    /**
107
     * @param array $measures
108
     *
109
     * @return $this
110
     */
111
    public function withMeasures(array $measures)
112
    {
113
        $this->data['Measures'] = $measures;
114
        foreach ($measures as $i => $iValue) {
115
            $this->options['query']['Measures.' . ($i + 1)] = $iValue;
116
        }
117
118
        return $this;
119
    }
120
121
    /**
122
     * @param array $requiredDims
123
     *
124
     * @return $this
125
     */
126
    public function withRequiredDims(array $requiredDims)
127
    {
128
        $this->data['RequiredDims'] = $requiredDims;
129
        foreach ($requiredDims as $depth1 => $depth1Value) {
130
            $this->options['query']['RequiredDims.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type'];
131
            $this->options['query']['RequiredDims.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
132
            $this->options['query']['RequiredDims.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
133
        }
134
135
        return $this;
136
    }
137
138
    /**
139
     * @param array $dimensions
140
     *
141
     * @return $this
142
     */
143
    public function withDimensions(array $dimensions)
144
    {
145
        $this->data['Dimensions'] = $dimensions;
146
        foreach ($dimensions as $depth1 => $depth1Value) {
147
            $this->options['query']['Dimensions.' . ($depth1 + 1) . '.Type'] = $depth1Value['Type'];
148
            $this->options['query']['Dimensions.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
149
            $this->options['query']['Dimensions.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
150
        }
151
152
        return $this;
153
    }
154
}
155
156
/**
157
 * @method array getMeasures()
158
 * @method string getIntervalInSec()
159
 * @method $this withIntervalInSec($value)
160
 * @method string getMetric()
161
 * @method $this withMetric($value)
162
 * @method string getLimit()
163
 * @method $this withLimit($value)
164
 * @method string getEndTime()
165
 * @method $this withEndTime($value)
166
 * @method string getOrderBy()
167
 * @method $this withOrderBy($value)
168
 * @method string getStartTime()
169
 * @method $this withStartTime($value)
170
 * @method array getFilters()
171
 * @method array getDimensions()
172
 * @method string getOrder()
173
 * @method $this withOrder($value)
174
 */
175
class QueryMetric extends Rpc
176
{
177
178
    /**
179
     * @param array $measures
180
     *
181
     * @return $this
182
     */
183
    public function withMeasures(array $measures)
184
    {
185
        $this->data['Measures'] = $measures;
186
        foreach ($measures as $i => $iValue) {
187
            $this->options['query']['Measures.' . ($i + 1)] = $iValue;
188
        }
189
190
        return $this;
191
    }
192
193
    /**
194
     * @param array $filters
195
     *
196
     * @return $this
197
     */
198
    public function withFilters(array $filters)
199
    {
200
        $this->data['Filters'] = $filters;
201
        foreach ($filters as $depth1 => $depth1Value) {
202
            $this->options['query']['Filters.' . ($depth1 + 1) . '.Value'] = $depth1Value['Value'];
203
            $this->options['query']['Filters.' . ($depth1 + 1) . '.Key'] = $depth1Value['Key'];
204
        }
205
206
        return $this;
207
    }
208
209
    /**
210
     * @param array $dimensions
211
     *
212
     * @return $this
213
     */
214
    public function withDimensions(array $dimensions)
215
    {
216
        $this->data['Dimensions'] = $dimensions;
217
        foreach ($dimensions as $i => $iValue) {
218
            $this->options['query']['Dimensions.' . ($i + 1)] = $iValue;
219
        }
220
221
        return $this;
222
    }
223
}
224
225
/**
226
 * @method string getContactName()
227
 * @method $this withContactName($value)
228
 * @method string getPhoneNum()
229
 * @method $this withPhoneNum($value)
230
 * @method string getDingRobotWebhookUrl()
231
 * @method $this withDingRobotWebhookUrl($value)
232
 * @method string getEmail()
233
 * @method $this withEmail($value)
234
 * @method string getSystemNoc()
235
 * @method $this withSystemNoc($value)
236
 */
237
class CreateAlertContact extends Rpc
238
{
239
}
240
241
/**
242
 * @method string getContactGroupName()
243
 * @method $this withContactGroupName($value)
244
 * @method string getContactIds()
245
 * @method $this withContactIds($value)
246
 */
247
class CreateAlertContactGroup extends Rpc
248
{
249
}
250
251
/**
252
 * @method string getContactName()
253
 * @method $this withContactName($value)
254
 * @method string getPhone()
255
 * @method $this withPhone($value)
256
 * @method string getPageSize()
257
 * @method $this withPageSize($value)
258
 * @method string getCurrentPage()
259
 * @method $this withCurrentPage($value)
260
 * @method string getEmail()
261
 * @method $this withEmail($value)
262
 */
263
class SearchAlertContact extends Rpc
264
{
265
}
266
267
/**
268
 * @method string getContactGroupName()
269
 * @method $this withContactGroupName($value)
270
 */
271
class SearchAlertContactGroup extends Rpc
272
{
273
}
274
275
/**
276
 * @method string getIsAutoStart()
277
 * @method $this withIsAutoStart($value)
278
 * @method string getContactGroupIds()
279
 * @method $this withContactGroupIds($value)
280
 * @method string getPids()
281
 * @method $this withPids($value)
282
 * @method string getTemplateAlertId()
283
 * @method $this withTemplateAlertId($value)
284
 */
285
class ImportAppAlertRules extends Rpc
286
{
287
}
288
289
/**
290
 * @method string getRetcodeAppName()
291
 * @method $this withRetcodeAppName($value)
292
 * @method string getPageSize()
293
 * @method $this withPageSize($value)
294
 * @method string getPageNumber()
295
 * @method $this withPageNumber($value)
296
 */
297
class SearchRetcodeAppByPage extends Rpc
298
{
299
}
300
301
/**
302
 * @method string getTraceAppName()
303
 * @method $this withTraceAppName($value)
304
 */
305
class SearchTraceAppByName extends Rpc
306
{
307
}
308
309
/**
310
 * @method string getTraceAppName()
311
 * @method $this withTraceAppName($value)
312
 * @method string getPageSize()
313
 * @method $this withPageSize($value)
314
 * @method string getPageNumber()
315
 * @method $this withPageNumber($value)
316
 */
317
class SearchTraceAppByPage extends Rpc
318
{
319
}
320
321
/**
322
 * @method string getSecurityToken()
323
 * @method $this withSecurityToken($value)
324
 */
325
class ListRetcodeApps extends Rpc
326
{
327
}
328
329
class ListTraceApps extends Rpc
330
{
331
}
332