|
| 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 QueryAdminStatisticsRequest(JDCloudRequest): |
| 23 | + """ |
| 24 | + 设备基本数据统计,包括设备数,激活数,在线数 |
| 25 | + """ |
| 26 | + |
| 27 | + def __init__(self, parameters, header=None, version="v2"): |
| 28 | + super(QueryAdminStatisticsRequest, self).__init__( |
| 29 | + '/regions/{regionId}/instances/{instanceId}/device:queryAdminStatistics', 'GET', header, version) |
| 30 | + self.parameters = parameters |
| 31 | + |
| 32 | + |
| 33 | +class QueryAdminStatisticsParameters(object): |
| 34 | + |
| 35 | + def __init__(self, instanceId, regionId, ): |
| 36 | + """ |
| 37 | + :param instanceId: 设备归属的实例ID |
| 38 | + :param regionId: 设备归属的实例所在区域 |
| 39 | + """ |
| 40 | + |
| 41 | + self.instanceId = instanceId |
| 42 | + self.regionId = regionId |
| 43 | + self.productKey = None |
| 44 | + self.parentId = None |
| 45 | + self.deviceCollectorType = None |
| 46 | + |
| 47 | + def setProductKey(self, productKey): |
| 48 | + """ |
| 49 | + :param productKey: (Optional) 过滤条件,产品Key |
| 50 | + """ |
| 51 | + self.productKey = productKey |
| 52 | + |
| 53 | + def setParentId(self, parentId): |
| 54 | + """ |
| 55 | + :param parentId: (Optional) 针对parentId下的子设备进行统计 |
| 56 | + """ |
| 57 | + self.parentId = parentId |
| 58 | + |
| 59 | + def setDeviceCollectorType(self, deviceCollectorType): |
| 60 | + """ |
| 61 | + :param deviceCollectorType: (Optional) 采集器类型 |
| 62 | + """ |
| 63 | + self.deviceCollectorType = deviceCollectorType |
| 64 | + |
0 commit comments