Source code for jdcloud_sdk.services.ipanti.apis.DescribeDDoSGraphRequest

# coding=utf8

# Copyright 2018 JDCLOUD.COM
#
# 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.
#
# NOTE: This class is auto generated by the jdcloud code generator program.

from jdcloud_sdk.core.jdcloudrequest import JDCloudRequest


[docs]class DescribeDDoSGraphRequest(JDCloudRequest): """ DDos 防护流量报表 参数 serviceIp 优先级大于 instanceId. - 指定 serviceIp 参数时, 忽略 instanceId 参数, 查询 ip 相关报表 - 未指定 serviceIp 时, 查询 instanceId 指定实例相关报表 - serviceIp 和 instanceId 均未指定时, 查询用户所有实例报表 """ def __init__(self, parameters, header=None, version="v1"): super(DescribeDDoSGraphRequest, self).__init__( '/regions/{regionId}/charts:DDoSGraph', 'GET', header, version) self.parameters = parameters
[docs]class DescribeDDoSGraphParameters(object): def __init__(self, regionId,startTime, ): """ :param regionId: 区域 ID, 高防不区分区域, 传 cn-north-1 即可 :param startTime: 开始时间, 只能查询最近 90 天以内的数据, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ """ self.regionId = regionId self.startTime = startTime self.endTime = None self.instanceId = None self.serviceIp = None
[docs] def setEndTime(self, endTime): """ :param endTime: (Optional) 查询的结束时间, UTC 时间, 格式: yyyy-MM-dd'T'HH:mm:ssZ """ self.endTime = endTime
[docs] def setInstanceId(self, instanceId): """ :param instanceId: (Optional) 高防实例 Id 列表 """ self.instanceId = instanceId
[docs] def setServiceIp(self, serviceIp): """ :param serviceIp: (Optional) 高防IP列表. <br>- 使用 <a href='http://docs.jdcloud.com/anti-ddos-pro/api/describeServiceIpList'>describeServiceIpList</a> 接口查询实例的高防 IP """ self.serviceIp = serviceIp