|
| 1 | +# coding=utf8 |
| 2 | + |
| 3 | +# Copyright 2018 JDCLOUD.COM |
| 4 | +# |
| 5 | +# Licensed under the Apache License, Version 2.0 (the "License"); |
| 6 | +# you may not use this file except in compliance with the License. |
| 7 | +# You may obtain a copy of the License at |
| 8 | +# |
| 9 | +# http://www.apache.org/licenses/LICENSE-2.0 |
| 10 | +# |
| 11 | +# Unless required by applicable law or agreed to in writing, software |
| 12 | +# distributed under the License is distributed on an "AS IS" BASIS, |
| 13 | +# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. |
| 14 | +# See the License for the specific language governing permissions and |
| 15 | +# limitations under the License. |
| 16 | +# |
| 17 | +# NOTE: This class is auto generated by the jdcloud code generator program. |
| 18 | + |
| 19 | +from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest |
| 20 | + |
| 21 | + |
| 22 | +class QueryJBoxAvgBandwidthRequest(JDCloudRequest): |
| 23 | + """ |
| 24 | + 查询平均带宽 |
| 25 | + """ |
| 26 | + |
| 27 | + def __init__(self, parameters, header=None, version="v1"): |
| 28 | + super(QueryJBoxAvgBandwidthRequest, self).__init__( |
| 29 | + '/jdbox:queryAvgBandwidth', 'GET', header, version) |
| 30 | + self.parameters = parameters |
| 31 | + |
| 32 | + |
| 33 | +class QueryJBoxAvgBandwidthParameters(object): |
| 34 | + |
| 35 | + def __init__(self, starttime, stoptime, pluginPin, ): |
| 36 | + """ |
| 37 | + :param starttime: 指定查询开始时间(格式:201906011000),返回数据包含该时间点。 |
| 38 | + :param stoptime: 指定查询结束时间(格式:201906011100),返回数据不包含该时间点 |
| 39 | + :param pluginPin: 插件pin,多个用,隔开 |
| 40 | + """ |
| 41 | + |
| 42 | + self.starttime = starttime |
| 43 | + self.stoptime = stoptime |
| 44 | + self.pluginPin = pluginPin |
| 45 | + self.clientid = None |
| 46 | + self.page = None |
| 47 | + self.size = None |
| 48 | + |
| 49 | + def setClientid(self, clientid): |
| 50 | + """ |
| 51 | + :param clientid: (Optional) 按照设备ID查询设备带宽,即macaddr,多个用,隔开 |
| 52 | + """ |
| 53 | + self.clientid = clientid |
| 54 | + |
| 55 | + def setPage(self, page): |
| 56 | + """ |
| 57 | + :param page: (Optional) 用于支持分页查询,默认为1,表示第几页。 |
| 58 | + """ |
| 59 | + self.page = page |
| 60 | + |
| 61 | + def setSize(self, size): |
| 62 | + """ |
| 63 | + :param size: (Optional) 用于支持分页查询,表示每页返回多少条数据,默认每页返回10条数据,size必须是10的整数倍,并且最大值是100。 |
| 64 | + """ |
| 65 | + self.size = size |
| 66 | + |
0 commit comments