-
Notifications
You must be signed in to change notification settings - Fork 273
/
describe_multi_container_group_metric.go
442 lines (395 loc) · 21.6 KB
/
describe_multi_container_group_metric.go
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
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
//Licensed under the Apache License, Version 2.0 (the "License");
//you may not use this file except in compliance with the License.
//You may obtain a copy of the License at
//
//http://www.apache.org/licenses/LICENSE-2.0
//
//Unless required by applicable law or agreed to in writing, software
//distributed under the License is distributed on an "AS IS" BASIS,
//WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
//See the License for the specific language governing permissions and
//limitations under the License.
//
// Code generated by Alibaba Cloud SDK Code Generator.
// Changes may cause incorrect behavior and will be lost if the code is regenerated.
package eci
import (
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/requests"
"github.com/aliyun/alibaba-cloud-sdk-go/sdk/responses"
)
// DescribeMultiContainerGroupMetric invokes the eci.DescribeMultiContainerGroupMetric API synchronously
// api document: https://help.aliyun.com/api/eci/describemulticontainergroupmetric.html
func (client *Client) DescribeMultiContainerGroupMetric(request *DescribeMultiContainerGroupMetricRequest) (response *DescribeMultiContainerGroupMetricResponse, err error) {
response = CreateDescribeMultiContainerGroupMetricResponse()
err = client.DoAction(request, response)
return
}
// DescribeMultiContainerGroupMetricWithChan invokes the eci.DescribeMultiContainerGroupMetric API asynchronously
// api document: https://help.aliyun.com/api/eci/describemulticontainergroupmetric.html
// asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (client *Client) DescribeMultiContainerGroupMetricWithChan(request *DescribeMultiContainerGroupMetricRequest) (<-chan *DescribeMultiContainerGroupMetricResponse, <-chan error) {
responseChan := make(chan *DescribeMultiContainerGroupMetricResponse, 1)
errChan := make(chan error, 1)
err := client.AddAsyncTask(func() {
defer close(responseChan)
defer close(errChan)
response, err := client.DescribeMultiContainerGroupMetric(request)
if err != nil {
errChan <- err
} else {
responseChan <- response
}
})
if err != nil {
errChan <- err
close(responseChan)
close(errChan)
}
return responseChan, errChan
}
// DescribeMultiContainerGroupMetricWithCallback invokes the eci.DescribeMultiContainerGroupMetric API asynchronously
// api document: https://help.aliyun.com/api/eci/describemulticontainergroupmetric.html
// asynchronous document: https://help.aliyun.com/document_detail/66220.html
func (client *Client) DescribeMultiContainerGroupMetricWithCallback(request *DescribeMultiContainerGroupMetricRequest, callback func(response *DescribeMultiContainerGroupMetricResponse, err error)) <-chan int {
result := make(chan int, 1)
err := client.AddAsyncTask(func() {
var response *DescribeMultiContainerGroupMetricResponse
var err error
defer close(result)
response, err = client.DescribeMultiContainerGroupMetric(request)
callback(response, err)
result <- 1
})
if err != nil {
defer close(result)
callback(nil, err)
result <- 0
}
return result
}
// DescribeMultiContainerGroupMetricRequest is the request struct for api DescribeMultiContainerGroupMetric
type DescribeMultiContainerGroupMetricRequest struct {
*requests.RpcRequest
OwnerId requests.Integer `position:"Query" name:"OwnerId"`
ResourceOwnerAccount string `position:"Query" name:"ResourceOwnerAccount"`
ResourceOwnerId requests.Integer `position:"Query" name:"ResourceOwnerId"`
OwnerAccount string `position:"Query" name:"OwnerAccount"`
RegionId string `position:"Query" name:"RegionId"`
ContainerGroupIds string `position:"Query" name:"ContainerGroupIds"`
ResourceGroupId string `position:"Query" name:"ResourceGroupId"`
MetricType string `position:"Query" name:"MetricType"`
}
// DescribeMultiContainerGroupMetricResponse is the response struct for api DescribeMultiContainerGroupMetric
type DescribeMultiContainerGroupMetricResponse struct {
*responses.BaseResponse
RequestId string `json:"RequestId" xml:"RequestId"`
MonitorDatas []DescribeMultiContainerGroupMetricRecord0 `json:"MonitorDatas" xml:"MonitorDatas"`
}
type DescribeMultiContainerGroupMetricRecord0 struct {
ContainerGroupId string `json:"ContainerGroupId" xml:"ContainerGroupId"`
Records []DescribeMultiContainerGroupMetricPodStat1 `json:"Records" xml:"Records"`
ContainerInfos []DescribeMultiContainerGroupMetricContainerInfo1 `json:"ContainerInfos" xml:"ContainerInfos"`
}
type DescribeMultiContainerGroupMetricPodStat1 struct {
Timestamp string `json:"Timestamp" xml:"Timestamp"`
Containers []DescribeMultiContainerGroupMetricContainer2 `json:"Containers" xml:"Containers"`
CPU DescribeMultiContainerGroupMetricCPU2 `json:"CPU" xml:"CPU"`
Memory DescribeMultiContainerGroupMetricMemory2 `json:"Memory" xml:"Memory"`
Network DescribeMultiContainerGroupMetricNetwork2 `json:"Network" xml:"Network"`
}
type DescribeMultiContainerGroupMetricContainer2 struct {
Name string `json:"Name" xml:"Name"`
CPU DescribeMultiContainerGroupMetricCPU3 `json:"CPU" xml:"CPU"`
Memory DescribeMultiContainerGroupMetricMemory3 `json:"Memory" xml:"Memory"`
}
type DescribeMultiContainerGroupMetricCPU3 struct {
Limit int64 `json:"Limit" xml:"Limit"`
Load int64 `json:"Load" xml:"Load"`
UsageCoreNanoSeconds int64 `json:"UsageCoreNanoSeconds" xml:"UsageCoreNanoSeconds"`
UsageNanoCores int64 `json:"UsageNanoCores" xml:"UsageNanoCores"`
}
type DescribeMultiContainerGroupMetricMemory3 struct {
AvailableBytes int64 `json:"AvailableBytes" xml:"AvailableBytes"`
UsageBytes int64 `json:"UsageBytes" xml:"UsageBytes"`
Cache int64 `json:"Cache" xml:"Cache"`
WorkingSet int64 `json:"WorkingSet" xml:"WorkingSet"`
Rss int64 `json:"Rss" xml:"Rss"`
}
type DescribeMultiContainerGroupMetricCPU2 struct {
Limit int64 `json:"Limit" xml:"Limit"`
Load int64 `json:"Load" xml:"Load"`
UsageCoreNanoSeconds int64 `json:"UsageCoreNanoSeconds" xml:"UsageCoreNanoSeconds"`
UsageNanoCores int64 `json:"UsageNanoCores" xml:"UsageNanoCores"`
}
type DescribeMultiContainerGroupMetricMemory2 struct {
AvailableBytes int64 `json:"AvailableBytes" xml:"AvailableBytes"`
UsageBytes int64 `json:"UsageBytes" xml:"UsageBytes"`
Cache int64 `json:"Cache" xml:"Cache"`
WorkingSet int64 `json:"WorkingSet" xml:"WorkingSet"`
Rss int64 `json:"Rss" xml:"Rss"`
}
type DescribeMultiContainerGroupMetricNetwork2 struct {
Interfaces []DescribeMultiContainerGroupMetricInterface3 `json:"Interfaces" xml:"Interfaces"`
}
type DescribeMultiContainerGroupMetricInterface3 struct {
TxBytes int64 `json:"TxBytes" xml:"TxBytes"`
RxBytes int64 `json:"RxBytes" xml:"RxBytes"`
TxErrors int64 `json:"TxErrors" xml:"TxErrors"`
RxErrors int64 `json:"RxErrors" xml:"RxErrors"`
Name string `json:"Name" xml:"Name"`
}
type DescribeMultiContainerGroupMetricContainerInfo1 struct {
Id string `json:"Id" xml:"Id"`
Name string `json:"Name" xml:"Name"`
Namespace string `json:"Namespace" xml:"Namespace"`
Labels string `json:"Labels" xml:"Labels"`
ContainerStats []DescribeMultiContainerGroupMetricContainerStats2 `json:"ContainerStats" xml:"ContainerStats"`
Aliases []string `json:"Aliases" xml:"Aliases"`
ContainerSpec DescribeMultiContainerGroupMetricContainerSpec2 `json:"ContainerSpec" xml:"ContainerSpec"`
}
type DescribeMultiContainerGroupMetricContainerStats2 struct {
Timestamp string `json:"Timestamp" xml:"Timestamp"`
FsStats []DescribeMultiContainerGroupMetricFsStats3 `json:"FsStats" xml:"FsStats"`
AcceleratorStats []DescribeMultiContainerGroupMetricAcceleratorStats3 `json:"AcceleratorStats" xml:"AcceleratorStats"`
CpuStats DescribeMultiContainerGroupMetricCpuStats3 `json:"CpuStats" xml:"CpuStats"`
DiskIoStats DescribeMultiContainerGroupMetricDiskIoStats3 `json:"DiskIoStats" xml:"DiskIoStats"`
MemoryStats DescribeMultiContainerGroupMetricMemoryStats3 `json:"MemoryStats" xml:"MemoryStats"`
NetworkStats DescribeMultiContainerGroupMetricNetworkStats3 `json:"NetworkStats" xml:"NetworkStats"`
TaskStats DescribeMultiContainerGroupMetricTaskStats3 `json:"TaskStats" xml:"TaskStats"`
}
type DescribeMultiContainerGroupMetricFsStats3 struct {
Device string `json:"Device" xml:"Device"`
Type string `json:"Type" xml:"Type"`
Limit int64 `json:"Limit" xml:"Limit"`
Usage int64 `json:"Usage" xml:"Usage"`
BaseUsage int64 `json:"BaseUsage" xml:"BaseUsage"`
Available int64 `json:"Available" xml:"Available"`
HasInodes bool `json:"HasInodes" xml:"HasInodes"`
Inodes int64 `json:"Inodes" xml:"Inodes"`
InodesFree int64 `json:"InodesFree" xml:"InodesFree"`
ReadsCompleted int64 `json:"ReadsCompleted" xml:"ReadsCompleted"`
ReadsMerged int64 `json:"ReadsMerged" xml:"ReadsMerged"`
SectorsRead int64 `json:"SectorsRead" xml:"SectorsRead"`
ReadTime int64 `json:"ReadTime" xml:"ReadTime"`
WritesCompleted int64 `json:"WritesCompleted" xml:"WritesCompleted"`
WritesMerged int64 `json:"WritesMerged" xml:"WritesMerged"`
SectorsWritten int64 `json:"SectorsWritten" xml:"SectorsWritten"`
WriteTime int64 `json:"WriteTime" xml:"WriteTime"`
IoInProgress int64 `json:"IoInProgress" xml:"IoInProgress"`
IoTime int64 `json:"IoTime" xml:"IoTime"`
WeightedIoTime int64 `json:"WeightedIoTime" xml:"WeightedIoTime"`
}
type DescribeMultiContainerGroupMetricAcceleratorStats3 struct {
Id string `json:"Id" xml:"Id"`
Make string `json:"Make" xml:"Make"`
Model string `json:"Model" xml:"Model"`
MemoryTotal int64 `json:"MemoryTotal" xml:"MemoryTotal"`
MemoryUsed int64 `json:"MemoryUsed" xml:"MemoryUsed"`
DutyCycle int64 `json:"DutyCycle" xml:"DutyCycle"`
}
type DescribeMultiContainerGroupMetricCpuStats3 struct {
LoadAverage int64 `json:"LoadAverage" xml:"LoadAverage"`
CpuUsage DescribeMultiContainerGroupMetricCpuUsage4 `json:"CpuUsage" xml:"CpuUsage"`
CpuCFS DescribeMultiContainerGroupMetricCpuCFS4 `json:"CpuCFS" xml:"CpuCFS"`
}
type DescribeMultiContainerGroupMetricCpuUsage4 struct {
Total int64 `json:"Total" xml:"Total"`
User int64 `json:"User" xml:"User"`
System int64 `json:"System" xml:"System"`
PerCpuUsages []string `json:"PerCpuUsages" xml:"PerCpuUsages"`
}
type DescribeMultiContainerGroupMetricCpuCFS4 struct {
Periods int64 `json:"Periods" xml:"Periods"`
ThrottledPeriods int64 `json:"ThrottledPeriods" xml:"ThrottledPeriods"`
ThrottledTime int64 `json:"ThrottledTime" xml:"ThrottledTime"`
}
type DescribeMultiContainerGroupMetricDiskIoStats3 struct {
IoServiceBytes []DescribeMultiContainerGroupMetricIoServiceByte4 `json:"IoServiceBytes" xml:"IoServiceBytes"`
IoServiced []DescribeMultiContainerGroupMetricIoServiced4 `json:"IoServiced" xml:"IoServiced"`
IoQueued []DescribeMultiContainerGroupMetricIoQueued4 `json:"IoQueued" xml:"IoQueued"`
Sectors []DescribeMultiContainerGroupMetricSector4 `json:"Sectors" xml:"Sectors"`
IoServiceTime []DescribeMultiContainerGroupMetricIoServiceTime4 `json:"IoServiceTime" xml:"IoServiceTime"`
IoWaitTime []DescribeMultiContainerGroupMetricIoWaitTime4 `json:"IoWaitTime" xml:"IoWaitTime"`
IoMerged []DescribeMultiContainerGroupMetricIoMerged4 `json:"IoMerged" xml:"IoMerged"`
IoTime []DescribeMultiContainerGroupMetricIoTime4 `json:"IoTime" xml:"IoTime"`
}
type DescribeMultiContainerGroupMetricIoServiceByte4 struct {
Device string `json:"Device" xml:"Device"`
Major int64 `json:"Major" xml:"Major"`
Minor int64 `json:"Minor" xml:"Minor"`
Stats string `json:"Stats" xml:"Stats"`
}
type DescribeMultiContainerGroupMetricIoServiced4 struct {
Device string `json:"Device" xml:"Device"`
Major int64 `json:"Major" xml:"Major"`
Minor int64 `json:"Minor" xml:"Minor"`
Stats string `json:"Stats" xml:"Stats"`
}
type DescribeMultiContainerGroupMetricIoQueued4 struct {
Device string `json:"Device" xml:"Device"`
Major int64 `json:"Major" xml:"Major"`
Minor int64 `json:"Minor" xml:"Minor"`
Stats string `json:"Stats" xml:"Stats"`
}
type DescribeMultiContainerGroupMetricSector4 struct {
Device string `json:"Device" xml:"Device"`
Major int64 `json:"Major" xml:"Major"`
Minor int64 `json:"Minor" xml:"Minor"`
Stats string `json:"Stats" xml:"Stats"`
}
type DescribeMultiContainerGroupMetricIoServiceTime4 struct {
Device string `json:"Device" xml:"Device"`
Major int64 `json:"Major" xml:"Major"`
Minor int64 `json:"Minor" xml:"Minor"`
Stats string `json:"Stats" xml:"Stats"`
}
type DescribeMultiContainerGroupMetricIoWaitTime4 struct {
Device string `json:"Device" xml:"Device"`
Major int64 `json:"Major" xml:"Major"`
Minor int64 `json:"Minor" xml:"Minor"`
Stats string `json:"Stats" xml:"Stats"`
}
type DescribeMultiContainerGroupMetricIoMerged4 struct {
Device string `json:"Device" xml:"Device"`
Major int64 `json:"Major" xml:"Major"`
Minor int64 `json:"Minor" xml:"Minor"`
Stats string `json:"Stats" xml:"Stats"`
}
type DescribeMultiContainerGroupMetricIoTime4 struct {
Device string `json:"Device" xml:"Device"`
Major int64 `json:"Major" xml:"Major"`
Minor int64 `json:"Minor" xml:"Minor"`
Stats string `json:"Stats" xml:"Stats"`
}
type DescribeMultiContainerGroupMetricMemoryStats3 struct {
Usage int64 `json:"Usage" xml:"Usage"`
MaxUsage int64 `json:"MaxUsage" xml:"MaxUsage"`
Cache int64 `json:"Cache" xml:"Cache"`
Rss int64 `json:"Rss" xml:"Rss"`
Swap int64 `json:"Swap" xml:"Swap"`
WorkingSet int64 `json:"WorkingSet" xml:"WorkingSet"`
FailCnt int64 `json:"FailCnt" xml:"FailCnt"`
ContainerData DescribeMultiContainerGroupMetricContainerData4 `json:"ContainerData" xml:"ContainerData"`
HierarchicalData DescribeMultiContainerGroupMetricHierarchicalData4 `json:"HierarchicalData" xml:"HierarchicalData"`
}
type DescribeMultiContainerGroupMetricContainerData4 struct {
PgFault int64 `json:"PgFault" xml:"PgFault"`
PgmajFault int64 `json:"PgmajFault" xml:"PgmajFault"`
}
type DescribeMultiContainerGroupMetricHierarchicalData4 struct {
PgFault int64 `json:"PgFault" xml:"PgFault"`
PgmajFault int64 `json:"PgmajFault" xml:"PgmajFault"`
}
type DescribeMultiContainerGroupMetricNetworkStats3 struct {
Name string `json:"Name" xml:"Name"`
RxBytes int64 `json:"RxBytes" xml:"RxBytes"`
RxPackets int64 `json:"RxPackets" xml:"RxPackets"`
RxErrors int64 `json:"RxErrors" xml:"RxErrors"`
RxDropped int64 `json:"RxDropped" xml:"RxDropped"`
TxBytes int64 `json:"TxBytes" xml:"TxBytes"`
TxPackets int64 `json:"TxPackets" xml:"TxPackets"`
TxDropped int64 `json:"TxDropped" xml:"TxDropped"`
TxErrors int64 `json:"TxErrors" xml:"TxErrors"`
InterfaceStats []DescribeMultiContainerGroupMetricInterfaceStats4 `json:"InterfaceStats" xml:"InterfaceStats"`
Tcp DescribeMultiContainerGroupMetricTcp4 `json:"Tcp" xml:"Tcp"`
Tcp6 DescribeMultiContainerGroupMetricTcp64 `json:"Tcp6" xml:"Tcp6"`
Udp DescribeMultiContainerGroupMetricUdp4 `json:"Udp" xml:"Udp"`
Udp6 DescribeMultiContainerGroupMetricUdp64 `json:"Udp6" xml:"Udp6"`
}
type DescribeMultiContainerGroupMetricInterfaceStats4 struct {
Name string `json:"Name" xml:"Name"`
RxBytes int64 `json:"RxBytes" xml:"RxBytes"`
RxPackets int64 `json:"RxPackets" xml:"RxPackets"`
RxErrors int64 `json:"RxErrors" xml:"RxErrors"`
RxDropped int64 `json:"RxDropped" xml:"RxDropped"`
TxBytes int64 `json:"TxBytes" xml:"TxBytes"`
TxPackets int64 `json:"TxPackets" xml:"TxPackets"`
TxDropped int64 `json:"TxDropped" xml:"TxDropped"`
TxErrors int64 `json:"TxErrors" xml:"TxErrors"`
}
type DescribeMultiContainerGroupMetricTcp4 struct {
Established int64 `json:"Established" xml:"Established"`
SynSent int64 `json:"SynSent" xml:"SynSent"`
SynRecv int64 `json:"SynRecv" xml:"SynRecv"`
FinWait1 int64 `json:"FinWait1" xml:"FinWait1"`
FinWait2 int64 `json:"FinWait2" xml:"FinWait2"`
TimeWait int64 `json:"TimeWait" xml:"TimeWait"`
Close int64 `json:"Close" xml:"Close"`
CloseWait int64 `json:"CloseWait" xml:"CloseWait"`
LastAck int64 `json:"LastAck" xml:"LastAck"`
Listen int64 `json:"Listen" xml:"Listen"`
Closing int64 `json:"Closing" xml:"Closing"`
}
type DescribeMultiContainerGroupMetricTcp64 struct {
Established int64 `json:"Established" xml:"Established"`
SynSent int64 `json:"SynSent" xml:"SynSent"`
SynRecv int64 `json:"SynRecv" xml:"SynRecv"`
FinWait1 int64 `json:"FinWait1" xml:"FinWait1"`
FinWait2 int64 `json:"FinWait2" xml:"FinWait2"`
TimeWait int64 `json:"TimeWait" xml:"TimeWait"`
Close int64 `json:"Close" xml:"Close"`
CloseWait int64 `json:"CloseWait" xml:"CloseWait"`
LastAck int64 `json:"LastAck" xml:"LastAck"`
Listen int64 `json:"Listen" xml:"Listen"`
Closing int64 `json:"Closing" xml:"Closing"`
}
type DescribeMultiContainerGroupMetricUdp4 struct {
Listen int64 `json:"Listen" xml:"Listen"`
Dropped int64 `json:"Dropped" xml:"Dropped"`
RxQueued int64 `json:"RxQueued" xml:"RxQueued"`
TxQueued int64 `json:"TxQueued" xml:"TxQueued"`
}
type DescribeMultiContainerGroupMetricUdp64 struct {
Listen int64 `json:"Listen" xml:"Listen"`
Dropped int64 `json:"Dropped" xml:"Dropped"`
RxQueued int64 `json:"RxQueued" xml:"RxQueued"`
TxQueued int64 `json:"TxQueued" xml:"TxQueued"`
}
type DescribeMultiContainerGroupMetricTaskStats3 struct {
NrSleeping int64 `json:"NrSleeping" xml:"NrSleeping"`
NrRunning int64 `json:"NrRunning" xml:"NrRunning"`
NrStopped int64 `json:"NrStopped" xml:"NrStopped"`
NrUninterruptible int64 `json:"NrUninterruptible" xml:"NrUninterruptible"`
NrIoWait int64 `json:"NrIoWait" xml:"NrIoWait"`
}
type DescribeMultiContainerGroupMetricContainerSpec2 struct {
CreationTime string `json:"CreationTime" xml:"CreationTime"`
HasCpu bool `json:"HasCpu" xml:"HasCpu"`
HasMemory bool `json:"HasMemory" xml:"HasMemory"`
HasNetwork bool `json:"HasNetwork" xml:"HasNetwork"`
HasFilesystem bool `json:"HasFilesystem" xml:"HasFilesystem"`
HasDiskIo bool `json:"HasDiskIo" xml:"HasDiskIo"`
HasCustomMetrics bool `json:"HasCustomMetrics" xml:"HasCustomMetrics"`
Image string `json:"Image" xml:"Image"`
Labels string `json:"Labels" xml:"Labels"`
Envs string `json:"Envs" xml:"Envs"`
ContainerCpu DescribeMultiContainerGroupMetricContainerCpu3 `json:"ContainerCpu" xml:"ContainerCpu"`
ContainerMemory DescribeMultiContainerGroupMetricContainerMemory3 `json:"ContainerMemory" xml:"ContainerMemory"`
}
type DescribeMultiContainerGroupMetricContainerCpu3 struct {
Limit int64 `json:"Limit" xml:"Limit"`
MaxLimit int64 `json:"MaxLimit" xml:"MaxLimit"`
Mask string `json:"Mask" xml:"Mask"`
Quota int64 `json:"Quota" xml:"Quota"`
Period int64 `json:"Period" xml:"Period"`
}
type DescribeMultiContainerGroupMetricContainerMemory3 struct {
Limit int64 `json:"Limit" xml:"Limit"`
Reservation int64 `json:"Reservation" xml:"Reservation"`
SwapLimit int64 `json:"SwapLimit" xml:"SwapLimit"`
}
// CreateDescribeMultiContainerGroupMetricRequest creates a request to invoke DescribeMultiContainerGroupMetric API
func CreateDescribeMultiContainerGroupMetricRequest() (request *DescribeMultiContainerGroupMetricRequest) {
request = &DescribeMultiContainerGroupMetricRequest{
RpcRequest: &requests.RpcRequest{},
}
request.InitWithApiInfo("Eci", "2018-08-08", "DescribeMultiContainerGroupMetric", "eci", "openAPI")
return
}
// CreateDescribeMultiContainerGroupMetricResponse creates a response to parse from DescribeMultiContainerGroupMetric response
func CreateDescribeMultiContainerGroupMetricResponse() (response *DescribeMultiContainerGroupMetricResponse) {
response = &DescribeMultiContainerGroupMetricResponse{
BaseResponse: &responses.BaseResponse{},
}
return
}