由智久发起的CDN SDK自动发布, 版本号:1.9.1
Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
313
cdn/src/model/AddFCTriggerRequest.cc
Normal file
313
cdn/src/model/AddFCTriggerRequest.cc
Normal file
@@ -0,0 +1,313 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/AddFCTriggerRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::AddFCTriggerRequest;
|
||||
|
||||
AddFCTriggerRequest::AddFCTriggerRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "AddFCTrigger")
|
||||
{}
|
||||
|
||||
AddFCTriggerRequest::~AddFCTriggerRequest()
|
||||
{}
|
||||
|
||||
std::string AddFCTriggerRequest::getNotes()const
|
||||
{
|
||||
return notes_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setNotes(const std::string& notes)
|
||||
{
|
||||
notes_ = notes;
|
||||
setParameter("Notes", notes);
|
||||
}
|
||||
|
||||
long AddFCTriggerRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getEventMetaVersion()const
|
||||
{
|
||||
return eventMetaVersion_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setEventMetaVersion(const std::string& eventMetaVersion)
|
||||
{
|
||||
eventMetaVersion_ = eventMetaVersion;
|
||||
setParameter("EventMetaVersion", eventMetaVersion);
|
||||
}
|
||||
|
||||
bool AddFCTriggerRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long AddFCTriggerRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getTriggerARN()const
|
||||
{
|
||||
return triggerARN_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setTriggerARN(const std::string& triggerARN)
|
||||
{
|
||||
triggerARN_ = triggerARN;
|
||||
setParameter("TriggerARN", triggerARN);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getSourceARN()const
|
||||
{
|
||||
return sourceARN_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setSourceARN(const std::string& sourceARN)
|
||||
{
|
||||
sourceARN_ = sourceARN;
|
||||
setParameter("SourceARN", sourceARN);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long AddFCTriggerRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
bool AddFCTriggerRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool AddFCTriggerRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
bool AddFCTriggerRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getRoleARN()const
|
||||
{
|
||||
return roleARN_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setRoleARN(const std::string& roleARN)
|
||||
{
|
||||
roleARN_ = roleARN;
|
||||
setParameter("RoleARN", roleARN);
|
||||
}
|
||||
|
||||
std::string AddFCTriggerRequest::getEventMetaName()const
|
||||
{
|
||||
return eventMetaName_;
|
||||
}
|
||||
|
||||
void AddFCTriggerRequest::setEventMetaName(const std::string& eventMetaName)
|
||||
{
|
||||
eventMetaName_ = eventMetaName;
|
||||
setParameter("EventMetaName", eventMetaName);
|
||||
}
|
||||
|
||||
45
cdn/src/model/AddFCTriggerResult.cc
Normal file
45
cdn/src/model/AddFCTriggerResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/AddFCTriggerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
AddFCTriggerResult::AddFCTriggerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
AddFCTriggerResult::AddFCTriggerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
AddFCTriggerResult::~AddFCTriggerResult()
|
||||
{}
|
||||
|
||||
void AddFCTriggerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -40,48 +40,48 @@ void BatchDescribeDomainBpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBpsDatas = value["BpsDatas"]["DataModule"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DataModule bpsDatasObject;
|
||||
if(!value["Timestamp"].isNull())
|
||||
bpsDatasObject.timestamp = value["Timestamp"].asString();
|
||||
if(!value["L1Bps"].isNull())
|
||||
bpsDatasObject.l1Bps = std::stof(value["L1Bps"].asString());
|
||||
if(!value["L1InnerBps"].isNull())
|
||||
bpsDatasObject.l1InnerBps = std::stof(value["L1InnerBps"].asString());
|
||||
if(!value["L1OutBps"].isNull())
|
||||
bpsDatasObject.l1OutBps = std::stof(value["L1OutBps"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
bpsDatasObject.domainName = value["DomainName"].asString();
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
auto allBpsDatas = value["BpsDatas"]["DataModule"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DataModule bpsDatasObject;
|
||||
if(!value["Timestamp"].isNull())
|
||||
bpsDatasObject.timestamp = value["Timestamp"].asString();
|
||||
if(!value["L1Bps"].isNull())
|
||||
bpsDatasObject.l1Bps = std::stof(value["L1Bps"].asString());
|
||||
if(!value["L1InnerBps"].isNull())
|
||||
bpsDatasObject.l1InnerBps = std::stof(value["L1InnerBps"].asString());
|
||||
if(!value["L1OutBps"].isNull())
|
||||
bpsDatasObject.l1OutBps = std::stof(value["L1OutBps"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
bpsDatasObject.domainName = value["DomainName"].asString();
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int BatchDescribeDomainBpsDataResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<BatchDescribeDomainBpsDataResult::DataModule> BatchDescribeDomainBpsDataResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
int BatchDescribeDomainBpsDataResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int BatchDescribeDomainBpsDataResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int BatchDescribeDomainBpsDataResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::vector<BatchDescribeDomainBpsDataResult::DataModule> BatchDescribeDomainBpsDataResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
int BatchDescribeDomainBpsDataResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int BatchDescribeDomainBpsDataResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,29 +40,24 @@ void CreateLiveStreamRecordIndexFilesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRecordInfo = value["RecordInfo"];
|
||||
for (auto value : allRecordInfo)
|
||||
{
|
||||
RecordInfo recordInfoObject;
|
||||
if(!value["RecordId"].isNull())
|
||||
recordInfoObject.recordId = value["RecordId"].asString();
|
||||
if(!value["RecordUrl"].isNull())
|
||||
recordInfoObject.recordUrl = value["RecordUrl"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
recordInfoObject.duration = std::stof(value["Duration"].asString());
|
||||
if(!value["Height"].isNull())
|
||||
recordInfoObject.height = std::stoi(value["Height"].asString());
|
||||
if(!value["Width"].isNull())
|
||||
recordInfoObject.width = std::stoi(value["Width"].asString());
|
||||
if(!value["CreateTime"].isNull())
|
||||
recordInfoObject.createTime = value["CreateTime"].asString();
|
||||
recordInfo_.push_back(recordInfoObject);
|
||||
}
|
||||
auto recordInfoNode = value["RecordInfo"];
|
||||
if(!recordInfoNode["RecordId"].isNull())
|
||||
recordInfo_.recordId = recordInfoNode["RecordId"].asString();
|
||||
if(!recordInfoNode["RecordUrl"].isNull())
|
||||
recordInfo_.recordUrl = recordInfoNode["RecordUrl"].asString();
|
||||
if(!recordInfoNode["Duration"].isNull())
|
||||
recordInfo_.duration = std::stof(recordInfoNode["Duration"].asString());
|
||||
if(!recordInfoNode["Height"].isNull())
|
||||
recordInfo_.height = std::stoi(recordInfoNode["Height"].asString());
|
||||
if(!recordInfoNode["Width"].isNull())
|
||||
recordInfo_.width = std::stoi(recordInfoNode["Width"].asString());
|
||||
if(!recordInfoNode["CreateTime"].isNull())
|
||||
recordInfo_.createTime = recordInfoNode["CreateTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<CreateLiveStreamRecordIndexFilesResult::RecordInfo> CreateLiveStreamRecordIndexFilesResult::getRecordInfo()const
|
||||
{
|
||||
return recordInfo_;
|
||||
}
|
||||
|
||||
CreateLiveStreamRecordIndexFilesResult::RecordInfo CreateLiveStreamRecordIndexFilesResult::getRecordInfo()const
|
||||
{
|
||||
return recordInfo_;
|
||||
}
|
||||
|
||||
|
||||
258
cdn/src/model/DeleteFCTriggerRequest.cc
Normal file
258
cdn/src/model/DeleteFCTriggerRequest.cc
Normal file
@@ -0,0 +1,258 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DeleteFCTriggerRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DeleteFCTriggerRequest;
|
||||
|
||||
DeleteFCTriggerRequest::DeleteFCTriggerRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DeleteFCTrigger")
|
||||
{}
|
||||
|
||||
DeleteFCTriggerRequest::~DeleteFCTriggerRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getTriggerARN()const
|
||||
{
|
||||
return triggerARN_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setTriggerARN(const std::string& triggerARN)
|
||||
{
|
||||
triggerARN_ = triggerARN;
|
||||
setParameter("TriggerARN", triggerARN);
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
long DeleteFCTriggerRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DeleteFCTriggerRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DeleteFCTriggerRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DeleteFCTriggerRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DeleteFCTriggerRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DeleteFCTriggerRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DeleteFCTriggerRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DeleteFCTriggerRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DeleteFCTriggerRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
45
cdn/src/model/DeleteFCTriggerResult.cc
Normal file
45
cdn/src/model/DeleteFCTriggerResult.cc
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DeleteFCTriggerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DeleteFCTriggerResult::DeleteFCTriggerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteFCTriggerResult::DeleteFCTriggerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteFCTriggerResult::~DeleteFCTriggerResult()
|
||||
{}
|
||||
|
||||
void DeleteFCTriggerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
|
||||
}
|
||||
|
||||
@@ -40,38 +40,33 @@ void DescribeCdnDomainBaseDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainBaseDetailModel = value["DomainBaseDetailModel"];
|
||||
for (auto value : allDomainBaseDetailModel)
|
||||
{
|
||||
DomainBaseDetailModel domainBaseDetailModelObject;
|
||||
if(!value["Cname"].isNull())
|
||||
domainBaseDetailModelObject.cname = value["Cname"].asString();
|
||||
if(!value["CdnType"].isNull())
|
||||
domainBaseDetailModelObject.cdnType = value["CdnType"].asString();
|
||||
if(!value["DomainStatus"].isNull())
|
||||
domainBaseDetailModelObject.domainStatus = value["DomainStatus"].asString();
|
||||
if(!value["SourceType"].isNull())
|
||||
domainBaseDetailModelObject.sourceType = value["SourceType"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
domainBaseDetailModelObject.region = value["Region"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
domainBaseDetailModelObject.domainName = value["DomainName"].asString();
|
||||
if(!value["Remark"].isNull())
|
||||
domainBaseDetailModelObject.remark = value["Remark"].asString();
|
||||
if(!value["GmtModified"].isNull())
|
||||
domainBaseDetailModelObject.gmtModified = value["GmtModified"].asString();
|
||||
if(!value["GmtCreated"].isNull())
|
||||
domainBaseDetailModelObject.gmtCreated = value["GmtCreated"].asString();
|
||||
auto allSources = value["Sources"]["Source"];
|
||||
for (auto value : allSources)
|
||||
domainBaseDetailModelObject.sources.push_back(value.asString());
|
||||
domainBaseDetailModel_.push_back(domainBaseDetailModelObject);
|
||||
}
|
||||
auto domainBaseDetailModelNode = value["DomainBaseDetailModel"];
|
||||
if(!domainBaseDetailModelNode["Cname"].isNull())
|
||||
domainBaseDetailModel_.cname = domainBaseDetailModelNode["Cname"].asString();
|
||||
if(!domainBaseDetailModelNode["CdnType"].isNull())
|
||||
domainBaseDetailModel_.cdnType = domainBaseDetailModelNode["CdnType"].asString();
|
||||
if(!domainBaseDetailModelNode["DomainStatus"].isNull())
|
||||
domainBaseDetailModel_.domainStatus = domainBaseDetailModelNode["DomainStatus"].asString();
|
||||
if(!domainBaseDetailModelNode["SourceType"].isNull())
|
||||
domainBaseDetailModel_.sourceType = domainBaseDetailModelNode["SourceType"].asString();
|
||||
if(!domainBaseDetailModelNode["Region"].isNull())
|
||||
domainBaseDetailModel_.region = domainBaseDetailModelNode["Region"].asString();
|
||||
if(!domainBaseDetailModelNode["DomainName"].isNull())
|
||||
domainBaseDetailModel_.domainName = domainBaseDetailModelNode["DomainName"].asString();
|
||||
if(!domainBaseDetailModelNode["Remark"].isNull())
|
||||
domainBaseDetailModel_.remark = domainBaseDetailModelNode["Remark"].asString();
|
||||
if(!domainBaseDetailModelNode["GmtModified"].isNull())
|
||||
domainBaseDetailModel_.gmtModified = domainBaseDetailModelNode["GmtModified"].asString();
|
||||
if(!domainBaseDetailModelNode["GmtCreated"].isNull())
|
||||
domainBaseDetailModel_.gmtCreated = domainBaseDetailModelNode["GmtCreated"].asString();
|
||||
auto allSources = domainBaseDetailModelNode["Sources"]["Source"];
|
||||
for (auto value : allSources)
|
||||
domainBaseDetailModel_.sources.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnDomainBaseDetailResult::DomainBaseDetailModel> DescribeCdnDomainBaseDetailResult::getDomainBaseDetailModel()const
|
||||
{
|
||||
return domainBaseDetailModel_;
|
||||
}
|
||||
|
||||
DescribeCdnDomainBaseDetailResult::DomainBaseDetailModel DescribeCdnDomainBaseDetailResult::getDomainBaseDetailModel()const
|
||||
{
|
||||
return domainBaseDetailModel_;
|
||||
}
|
||||
|
||||
|
||||
82
cdn/src/model/DescribeCdnDomainConfigsRequest.cc
Normal file
82
cdn/src/model/DescribeCdnDomainConfigsRequest.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnDomainConfigsRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeCdnDomainConfigsRequest;
|
||||
|
||||
DescribeCdnDomainConfigsRequest::DescribeCdnDomainConfigsRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DescribeCdnDomainConfigs")
|
||||
{}
|
||||
|
||||
DescribeCdnDomainConfigsRequest::~DescribeCdnDomainConfigsRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeCdnDomainConfigsRequest::getFunctionNames()const
|
||||
{
|
||||
return functionNames_;
|
||||
}
|
||||
|
||||
void DescribeCdnDomainConfigsRequest::setFunctionNames(const std::string& functionNames)
|
||||
{
|
||||
functionNames_ = functionNames;
|
||||
setParameter("FunctionNames", functionNames);
|
||||
}
|
||||
|
||||
std::string DescribeCdnDomainConfigsRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeCdnDomainConfigsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeCdnDomainConfigsRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeCdnDomainConfigsRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
long DescribeCdnDomainConfigsRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeCdnDomainConfigsRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeCdnDomainConfigsRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeCdnDomainConfigsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
72
cdn/src/model/DescribeCdnDomainConfigsResult.cc
Normal file
72
cdn/src/model/DescribeCdnDomainConfigsResult.cc
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeCdnDomainConfigsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeCdnDomainConfigsResult::DescribeCdnDomainConfigsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeCdnDomainConfigsResult::DescribeCdnDomainConfigsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeCdnDomainConfigsResult::~DescribeCdnDomainConfigsResult()
|
||||
{}
|
||||
|
||||
void DescribeCdnDomainConfigsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainConfigs = value["DomainConfigs"]["DomainConfig"];
|
||||
for (auto value : allDomainConfigs)
|
||||
{
|
||||
DomainConfig domainConfigsObject;
|
||||
if(!value["FunctionName"].isNull())
|
||||
domainConfigsObject.functionName = value["FunctionName"].asString();
|
||||
if(!value["ConfigId"].isNull())
|
||||
domainConfigsObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
domainConfigsObject.status = value["Status"].asString();
|
||||
auto allFunctionArgs = value["FunctionArgs"]["FunctionArg"];
|
||||
for (auto value : allFunctionArgs)
|
||||
{
|
||||
DomainConfig::FunctionArg functionArgsObject;
|
||||
if(!value["ArgName"].isNull())
|
||||
functionArgsObject.argName = value["ArgName"].asString();
|
||||
if(!value["ArgValue"].isNull())
|
||||
functionArgsObject.argValue = value["ArgValue"].asString();
|
||||
domainConfigsObject.functionArgs.push_back(functionArgsObject);
|
||||
}
|
||||
domainConfigs_.push_back(domainConfigsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnDomainConfigsResult::DomainConfig> DescribeCdnDomainConfigsResult::getDomainConfigs()const
|
||||
{
|
||||
return domainConfigs_;
|
||||
}
|
||||
|
||||
@@ -40,68 +40,63 @@ void DescribeCdnDomainDetailResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allGetDomainDetailModel = value["GetDomainDetailModel"];
|
||||
for (auto value : allGetDomainDetailModel)
|
||||
{
|
||||
GetDomainDetailModel getDomainDetailModelObject;
|
||||
if(!value["GmtCreated"].isNull())
|
||||
getDomainDetailModelObject.gmtCreated = value["GmtCreated"].asString();
|
||||
if(!value["GmtModified"].isNull())
|
||||
getDomainDetailModelObject.gmtModified = value["GmtModified"].asString();
|
||||
if(!value["SourceType"].isNull())
|
||||
getDomainDetailModelObject.sourceType = value["SourceType"].asString();
|
||||
if(!value["DomainStatus"].isNull())
|
||||
getDomainDetailModelObject.domainStatus = value["DomainStatus"].asString();
|
||||
if(!value["SourcePort"].isNull())
|
||||
getDomainDetailModelObject.sourcePort = std::stoi(value["SourcePort"].asString());
|
||||
if(!value["CdnType"].isNull())
|
||||
getDomainDetailModelObject.cdnType = value["CdnType"].asString();
|
||||
if(!value["Cname"].isNull())
|
||||
getDomainDetailModelObject.cname = value["Cname"].asString();
|
||||
if(!value["HttpsCname"].isNull())
|
||||
getDomainDetailModelObject.httpsCname = value["HttpsCname"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
getDomainDetailModelObject.domainName = value["DomainName"].asString();
|
||||
if(!value["Description"].isNull())
|
||||
getDomainDetailModelObject.description = value["Description"].asString();
|
||||
if(!value["ServerCertificateStatus"].isNull())
|
||||
getDomainDetailModelObject.serverCertificateStatus = value["ServerCertificateStatus"].asString();
|
||||
if(!value["ServerCertificate"].isNull())
|
||||
getDomainDetailModelObject.serverCertificate = value["ServerCertificate"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
getDomainDetailModelObject.region = value["Region"].asString();
|
||||
if(!value["Scope"].isNull())
|
||||
getDomainDetailModelObject.scope = value["Scope"].asString();
|
||||
if(!value["CertificateName"].isNull())
|
||||
getDomainDetailModelObject.certificateName = value["CertificateName"].asString();
|
||||
if(!value["ResourceGroupId"].isNull())
|
||||
getDomainDetailModelObject.resourceGroupId = value["ResourceGroupId"].asString();
|
||||
auto allSourceModels = value["SourceModels"]["SourceModel"];
|
||||
for (auto value : allSourceModels)
|
||||
{
|
||||
GetDomainDetailModel::SourceModel sourceModelObject;
|
||||
if(!value["Content"].isNull())
|
||||
sourceModelObject.content = value["Content"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
sourceModelObject.type = value["Type"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
sourceModelObject.port = std::stoi(value["Port"].asString());
|
||||
if(!value["Enabled"].isNull())
|
||||
sourceModelObject.enabled = value["Enabled"].asString();
|
||||
if(!value["Priority"].isNull())
|
||||
sourceModelObject.priority = value["Priority"].asString();
|
||||
getDomainDetailModelObject.sourceModels.push_back(sourceModelObject);
|
||||
}
|
||||
auto allSources = value["Sources"]["Source"];
|
||||
for (auto value : allSources)
|
||||
getDomainDetailModelObject.sources.push_back(value.asString());
|
||||
getDomainDetailModel_.push_back(getDomainDetailModelObject);
|
||||
}
|
||||
auto getDomainDetailModelNode = value["GetDomainDetailModel"];
|
||||
if(!getDomainDetailModelNode["GmtCreated"].isNull())
|
||||
getDomainDetailModel_.gmtCreated = getDomainDetailModelNode["GmtCreated"].asString();
|
||||
if(!getDomainDetailModelNode["GmtModified"].isNull())
|
||||
getDomainDetailModel_.gmtModified = getDomainDetailModelNode["GmtModified"].asString();
|
||||
if(!getDomainDetailModelNode["SourceType"].isNull())
|
||||
getDomainDetailModel_.sourceType = getDomainDetailModelNode["SourceType"].asString();
|
||||
if(!getDomainDetailModelNode["DomainStatus"].isNull())
|
||||
getDomainDetailModel_.domainStatus = getDomainDetailModelNode["DomainStatus"].asString();
|
||||
if(!getDomainDetailModelNode["SourcePort"].isNull())
|
||||
getDomainDetailModel_.sourcePort = std::stoi(getDomainDetailModelNode["SourcePort"].asString());
|
||||
if(!getDomainDetailModelNode["CdnType"].isNull())
|
||||
getDomainDetailModel_.cdnType = getDomainDetailModelNode["CdnType"].asString();
|
||||
if(!getDomainDetailModelNode["Cname"].isNull())
|
||||
getDomainDetailModel_.cname = getDomainDetailModelNode["Cname"].asString();
|
||||
if(!getDomainDetailModelNode["HttpsCname"].isNull())
|
||||
getDomainDetailModel_.httpsCname = getDomainDetailModelNode["HttpsCname"].asString();
|
||||
if(!getDomainDetailModelNode["DomainName"].isNull())
|
||||
getDomainDetailModel_.domainName = getDomainDetailModelNode["DomainName"].asString();
|
||||
if(!getDomainDetailModelNode["Description"].isNull())
|
||||
getDomainDetailModel_.description = getDomainDetailModelNode["Description"].asString();
|
||||
if(!getDomainDetailModelNode["ServerCertificateStatus"].isNull())
|
||||
getDomainDetailModel_.serverCertificateStatus = getDomainDetailModelNode["ServerCertificateStatus"].asString();
|
||||
if(!getDomainDetailModelNode["ServerCertificate"].isNull())
|
||||
getDomainDetailModel_.serverCertificate = getDomainDetailModelNode["ServerCertificate"].asString();
|
||||
if(!getDomainDetailModelNode["Region"].isNull())
|
||||
getDomainDetailModel_.region = getDomainDetailModelNode["Region"].asString();
|
||||
if(!getDomainDetailModelNode["Scope"].isNull())
|
||||
getDomainDetailModel_.scope = getDomainDetailModelNode["Scope"].asString();
|
||||
if(!getDomainDetailModelNode["CertificateName"].isNull())
|
||||
getDomainDetailModel_.certificateName = getDomainDetailModelNode["CertificateName"].asString();
|
||||
if(!getDomainDetailModelNode["ResourceGroupId"].isNull())
|
||||
getDomainDetailModel_.resourceGroupId = getDomainDetailModelNode["ResourceGroupId"].asString();
|
||||
auto allSourceModels = value["SourceModels"]["SourceModel"];
|
||||
for (auto value : allSourceModels)
|
||||
{
|
||||
GetDomainDetailModel::SourceModel sourceModelObject;
|
||||
if(!value["Content"].isNull())
|
||||
sourceModelObject.content = value["Content"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
sourceModelObject.type = value["Type"].asString();
|
||||
if(!value["Port"].isNull())
|
||||
sourceModelObject.port = std::stoi(value["Port"].asString());
|
||||
if(!value["Enabled"].isNull())
|
||||
sourceModelObject.enabled = value["Enabled"].asString();
|
||||
if(!value["Priority"].isNull())
|
||||
sourceModelObject.priority = value["Priority"].asString();
|
||||
getDomainDetailModel_.sourceModels.push_back(sourceModelObject);
|
||||
}
|
||||
auto allSources = getDomainDetailModelNode["Sources"]["Source"];
|
||||
for (auto value : allSources)
|
||||
getDomainDetailModel_.sources.push_back(value.asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnDomainDetailResult::GetDomainDetailModel> DescribeCdnDomainDetailResult::getGetDomainDetailModel()const
|
||||
{
|
||||
return getDomainDetailModel_;
|
||||
}
|
||||
|
||||
DescribeCdnDomainDetailResult::GetDomainDetailModel DescribeCdnDomainDetailResult::getGetDomainDetailModel()const
|
||||
{
|
||||
return getDomainDetailModel_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,56 +40,51 @@ void DescribeCdnDomainLogsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainLogModel = value["DomainLogModel"];
|
||||
for (auto value : allDomainLogModel)
|
||||
{
|
||||
DomainLogModel domainLogModelObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
domainLogModelObject.domainName = value["DomainName"].asString();
|
||||
auto allDomainLogDetails = value["DomainLogDetails"]["DomainLogDetail"];
|
||||
for (auto value : allDomainLogDetails)
|
||||
{
|
||||
DomainLogModel::DomainLogDetail domainLogDetailObject;
|
||||
if(!value["LogName"].isNull())
|
||||
domainLogDetailObject.logName = value["LogName"].asString();
|
||||
if(!value["LogPath"].isNull())
|
||||
domainLogDetailObject.logPath = value["LogPath"].asString();
|
||||
if(!value["LogSize"].isNull())
|
||||
domainLogDetailObject.logSize = std::stol(value["LogSize"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
domainLogDetailObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
domainLogDetailObject.endTime = value["EndTime"].asString();
|
||||
domainLogModelObject.domainLogDetails.push_back(domainLogDetailObject);
|
||||
}
|
||||
domainLogModel_.push_back(domainLogModelObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
auto domainLogModelNode = value["DomainLogModel"];
|
||||
if(!domainLogModelNode["DomainName"].isNull())
|
||||
domainLogModel_.domainName = domainLogModelNode["DomainName"].asString();
|
||||
auto allDomainLogDetails = value["DomainLogDetails"]["DomainLogDetail"];
|
||||
for (auto value : allDomainLogDetails)
|
||||
{
|
||||
DomainLogModel::DomainLogDetail domainLogDetailObject;
|
||||
if(!value["LogName"].isNull())
|
||||
domainLogDetailObject.logName = value["LogName"].asString();
|
||||
if(!value["LogPath"].isNull())
|
||||
domainLogDetailObject.logPath = value["LogPath"].asString();
|
||||
if(!value["LogSize"].isNull())
|
||||
domainLogDetailObject.logSize = std::stol(value["LogSize"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
domainLogDetailObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
domainLogDetailObject.endTime = value["EndTime"].asString();
|
||||
domainLogModel_.domainLogDetails.push_back(domainLogDetailObject);
|
||||
}
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stol(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stol(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeCdnDomainLogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeCdnDomainLogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnDomainLogsResult::DomainLogModel> DescribeCdnDomainLogsResult::getDomainLogModel()const
|
||||
{
|
||||
return domainLogModel_;
|
||||
}
|
||||
|
||||
long DescribeCdnDomainLogsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeCdnDomainLogsResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
long DescribeCdnDomainLogsResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
DescribeCdnDomainLogsResult::DomainLogModel DescribeCdnDomainLogsResult::getDomainLogModel()const
|
||||
{
|
||||
return domainLogModel_;
|
||||
}
|
||||
|
||||
long DescribeCdnDomainLogsResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,57 +40,57 @@ void DescribeCdnMonitorDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allMonitorDatas = value["MonitorDatas"]["CDNMonitorData"];
|
||||
for (auto value : allMonitorDatas)
|
||||
{
|
||||
CDNMonitorData monitorDatasObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
monitorDatasObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["QueryPerSecond"].isNull())
|
||||
monitorDatasObject.queryPerSecond = value["QueryPerSecond"].asString();
|
||||
if(!value["BytesPerSecond"].isNull())
|
||||
monitorDatasObject.bytesPerSecond = value["BytesPerSecond"].asString();
|
||||
if(!value["BytesHitRate"].isNull())
|
||||
monitorDatasObject.bytesHitRate = value["BytesHitRate"].asString();
|
||||
if(!value["RequestHitRate"].isNull())
|
||||
monitorDatasObject.requestHitRate = value["RequestHitRate"].asString();
|
||||
if(!value["AverageObjectSize"].isNull())
|
||||
monitorDatasObject.averageObjectSize = value["AverageObjectSize"].asString();
|
||||
monitorDatas_.push_back(monitorDatasObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["MonitorInterval"].isNull())
|
||||
monitorInterval_ = std::stol(value["MonitorInterval"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allMonitorDatas = value["MonitorDatas"]["CDNMonitorData"];
|
||||
for (auto value : allMonitorDatas)
|
||||
{
|
||||
CDNMonitorData monitorDatasObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
monitorDatasObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["QueryPerSecond"].isNull())
|
||||
monitorDatasObject.queryPerSecond = value["QueryPerSecond"].asString();
|
||||
if(!value["BytesPerSecond"].isNull())
|
||||
monitorDatasObject.bytesPerSecond = value["BytesPerSecond"].asString();
|
||||
if(!value["BytesHitRate"].isNull())
|
||||
monitorDatasObject.bytesHitRate = value["BytesHitRate"].asString();
|
||||
if(!value["RequestHitRate"].isNull())
|
||||
monitorDatasObject.requestHitRate = value["RequestHitRate"].asString();
|
||||
if(!value["AverageObjectSize"].isNull())
|
||||
monitorDatasObject.averageObjectSize = value["AverageObjectSize"].asString();
|
||||
monitorDatas_.push_back(monitorDatasObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["MonitorInterval"].isNull())
|
||||
monitorInterval_ = std::stol(value["MonitorInterval"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
long DescribeCdnMonitorDataResult::getMonitorInterval()const
|
||||
{
|
||||
return monitorInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnMonitorDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnMonitorDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnMonitorDataResult::CDNMonitorData> DescribeCdnMonitorDataResult::getMonitorDatas()const
|
||||
{
|
||||
return monitorDatas_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnMonitorDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
long DescribeCdnMonitorDataResult::getMonitorInterval()const
|
||||
{
|
||||
return monitorInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnMonitorDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnMonitorDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnMonitorDataResult::CDNMonitorData> DescribeCdnMonitorDataResult::getMonitorDatas()const
|
||||
{
|
||||
return monitorDatas_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnMonitorDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,36 +40,36 @@ void DescribeCdnRegionAndIspResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRegions = value["Regions"]["Region"];
|
||||
for (auto value : allRegions)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!value["NameZh"].isNull())
|
||||
regionsObject.nameZh = value["NameZh"].asString();
|
||||
if(!value["NameEn"].isNull())
|
||||
regionsObject.nameEn = value["NameEn"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
auto allIsps = value["Isps"]["Isp"];
|
||||
for (auto value : allIsps)
|
||||
{
|
||||
Isp ispsObject;
|
||||
if(!value["NameZh"].isNull())
|
||||
ispsObject.nameZh = value["NameZh"].asString();
|
||||
if(!value["NameEn"].isNull())
|
||||
ispsObject.nameEn = value["NameEn"].asString();
|
||||
isps_.push_back(ispsObject);
|
||||
}
|
||||
auto allRegions = value["Regions"]["Region"];
|
||||
for (auto value : allRegions)
|
||||
{
|
||||
Region regionsObject;
|
||||
if(!value["NameZh"].isNull())
|
||||
regionsObject.nameZh = value["NameZh"].asString();
|
||||
if(!value["NameEn"].isNull())
|
||||
regionsObject.nameEn = value["NameEn"].asString();
|
||||
regions_.push_back(regionsObject);
|
||||
}
|
||||
auto allIsps = value["Isps"]["Isp"];
|
||||
for (auto value : allIsps)
|
||||
{
|
||||
Isp ispsObject;
|
||||
if(!value["NameZh"].isNull())
|
||||
ispsObject.nameZh = value["NameZh"].asString();
|
||||
if(!value["NameEn"].isNull())
|
||||
ispsObject.nameEn = value["NameEn"].asString();
|
||||
isps_.push_back(ispsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnRegionAndIspResult::Region> DescribeCdnRegionAndIspResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnRegionAndIspResult::Isp> DescribeCdnRegionAndIspResult::getIsps()const
|
||||
{
|
||||
return isps_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnRegionAndIspResult::Region> DescribeCdnRegionAndIspResult::getRegions()const
|
||||
{
|
||||
return regions_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnRegionAndIspResult::Isp> DescribeCdnRegionAndIspResult::getIsps()const
|
||||
{
|
||||
return isps_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,54 +40,54 @@ void DescribeCdnServiceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOperationLocks = value["OperationLocks"]["LockReason"];
|
||||
for (auto value : allOperationLocks)
|
||||
{
|
||||
LockReason operationLocksObject;
|
||||
if(!value["LockReason"].isNull())
|
||||
operationLocksObject.lockReason = value["LockReason"].asString();
|
||||
operationLocks_.push_back(operationLocksObject);
|
||||
}
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
internetChargeType_ = value["InternetChargeType"].asString();
|
||||
if(!value["OpeningTime"].isNull())
|
||||
openingTime_ = value["OpeningTime"].asString();
|
||||
if(!value["ChangingChargeType"].isNull())
|
||||
changingChargeType_ = value["ChangingChargeType"].asString();
|
||||
if(!value["ChangingAffectTime"].isNull())
|
||||
changingAffectTime_ = value["ChangingAffectTime"].asString();
|
||||
auto allOperationLocks = value["OperationLocks"]["LockReason"];
|
||||
for (auto value : allOperationLocks)
|
||||
{
|
||||
LockReason operationLocksObject;
|
||||
if(!value["LockReason"].isNull())
|
||||
operationLocksObject.lockReason = value["LockReason"].asString();
|
||||
operationLocks_.push_back(operationLocksObject);
|
||||
}
|
||||
if(!value["InstanceId"].isNull())
|
||||
instanceId_ = value["InstanceId"].asString();
|
||||
if(!value["InternetChargeType"].isNull())
|
||||
internetChargeType_ = value["InternetChargeType"].asString();
|
||||
if(!value["OpeningTime"].isNull())
|
||||
openingTime_ = value["OpeningTime"].asString();
|
||||
if(!value["ChangingChargeType"].isNull())
|
||||
changingChargeType_ = value["ChangingChargeType"].asString();
|
||||
if(!value["ChangingAffectTime"].isNull())
|
||||
changingAffectTime_ = value["ChangingAffectTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getChangingChargeType()const
|
||||
{
|
||||
return changingChargeType_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getOpeningTime()const
|
||||
{
|
||||
return openingTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnServiceResult::LockReason> DescribeCdnServiceResult::getOperationLocks()const
|
||||
{
|
||||
return operationLocks_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getChangingAffectTime()const
|
||||
{
|
||||
return changingAffectTime_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getChangingChargeType()const
|
||||
{
|
||||
return changingChargeType_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getInstanceId()const
|
||||
{
|
||||
return instanceId_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getOpeningTime()const
|
||||
{
|
||||
return openingTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnServiceResult::LockReason> DescribeCdnServiceResult::getOperationLocks()const
|
||||
{
|
||||
return operationLocks_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getChangingAffectTime()const
|
||||
{
|
||||
return changingAffectTime_;
|
||||
}
|
||||
|
||||
std::string DescribeCdnServiceResult::getInternetChargeType()const
|
||||
{
|
||||
return internetChargeType_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeCdnTypesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCdnTypes = value["CdnTypes"]["CdnType"];
|
||||
for (auto value : allCdnTypes)
|
||||
{
|
||||
CdnType cdnTypesObject;
|
||||
if(!value["Type"].isNull())
|
||||
cdnTypesObject.type = value["Type"].asString();
|
||||
if(!value["Desc"].isNull())
|
||||
cdnTypesObject.desc = value["Desc"].asString();
|
||||
cdnTypes_.push_back(cdnTypesObject);
|
||||
}
|
||||
auto allCdnTypes = value["CdnTypes"]["CdnType"];
|
||||
for (auto value : allCdnTypes)
|
||||
{
|
||||
CdnType cdnTypesObject;
|
||||
if(!value["Type"].isNull())
|
||||
cdnTypesObject.type = value["Type"].asString();
|
||||
if(!value["Desc"].isNull())
|
||||
cdnTypesObject.desc = value["Desc"].asString();
|
||||
cdnTypes_.push_back(cdnTypesObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnTypesResult::CdnType> DescribeCdnTypesResult::getCdnTypes()const
|
||||
{
|
||||
return cdnTypes_;
|
||||
}
|
||||
|
||||
std::vector<DescribeCdnTypesResult::CdnType> DescribeCdnTypesResult::getCdnTypes()const
|
||||
{
|
||||
return cdnTypes_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,27 +40,27 @@ void DescribeCustomLogConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Remark"].isNull())
|
||||
remark_ = value["Remark"].asString();
|
||||
if(!value["Sample"].isNull())
|
||||
sample_ = value["Sample"].asString();
|
||||
if(!value["Tag"].isNull())
|
||||
tag_ = value["Tag"].asString();
|
||||
if(!value["Remark"].isNull())
|
||||
remark_ = value["Remark"].asString();
|
||||
if(!value["Sample"].isNull())
|
||||
sample_ = value["Sample"].asString();
|
||||
if(!value["Tag"].isNull())
|
||||
tag_ = value["Tag"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeCustomLogConfigResult::getSample()const
|
||||
{
|
||||
return sample_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomLogConfigResult::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomLogConfigResult::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomLogConfigResult::getSample()const
|
||||
{
|
||||
return sample_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomLogConfigResult::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
std::string DescribeCustomLogConfigResult::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void DescribeDomainAverageResponseTimeResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAvgRTPerInterval = value["AvgRTPerInterval"]["DataModule"];
|
||||
for (auto value : allAvgRTPerInterval)
|
||||
{
|
||||
DataModule avgRTPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
avgRTPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
avgRTPerIntervalObject.value = value["Value"].asString();
|
||||
avgRTPerInterval_.push_back(avgRTPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allAvgRTPerInterval = value["AvgRTPerInterval"]["DataModule"];
|
||||
for (auto value : allAvgRTPerInterval)
|
||||
{
|
||||
DataModule avgRTPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
avgRTPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
avgRTPerIntervalObject.value = value["Value"].asString();
|
||||
avgRTPerInterval_.push_back(avgRTPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainAverageResponseTimeResult::DataModule> DescribeDomainAverageResponseTimeResult::getAvgRTPerInterval()const
|
||||
{
|
||||
return avgRTPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainAverageResponseTimeResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainAverageResponseTimeResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainAverageResponseTimeResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainAverageResponseTimeResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainAverageResponseTimeResult::DataModule> DescribeDomainAverageResponseTimeResult::getAvgRTPerInterval()const
|
||||
{
|
||||
return avgRTPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainAverageResponseTimeResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainAverageResponseTimeResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainAverageResponseTimeResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainAverageResponseTimeResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,37 +40,37 @@ void DescribeDomainBpsDataByTimeStampResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBpsDataList = value["BpsDataList"]["BpsDataModel"];
|
||||
for (auto value : allBpsDataList)
|
||||
{
|
||||
BpsDataModel bpsDataListObject;
|
||||
if(!value["LocationName"].isNull())
|
||||
bpsDataListObject.locationName = value["LocationName"].asString();
|
||||
if(!value["IspName"].isNull())
|
||||
bpsDataListObject.ispName = value["IspName"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDataListObject.bps = std::stol(value["Bps"].asString());
|
||||
bpsDataList_.push_back(bpsDataListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["TimeStamp"].isNull())
|
||||
timeStamp_ = value["TimeStamp"].asString();
|
||||
auto allBpsDataList = value["BpsDataList"]["BpsDataModel"];
|
||||
for (auto value : allBpsDataList)
|
||||
{
|
||||
BpsDataModel bpsDataListObject;
|
||||
if(!value["LocationName"].isNull())
|
||||
bpsDataListObject.locationName = value["LocationName"].asString();
|
||||
if(!value["IspName"].isNull())
|
||||
bpsDataListObject.ispName = value["IspName"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDataListObject.bps = std::stol(value["Bps"].asString());
|
||||
bpsDataList_.push_back(bpsDataListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["TimeStamp"].isNull())
|
||||
timeStamp_ = value["TimeStamp"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainBpsDataByTimeStampResult::BpsDataModel> DescribeDomainBpsDataByTimeStampResult::getBpsDataList()const
|
||||
{
|
||||
return bpsDataList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataByTimeStampResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataByTimeStampResult::getTimeStamp()const
|
||||
{
|
||||
return timeStamp_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainBpsDataByTimeStampResult::BpsDataModel> DescribeDomainBpsDataByTimeStampResult::getBpsDataList()const
|
||||
{
|
||||
return bpsDataList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataByTimeStampResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataByTimeStampResult::getTimeStamp()const
|
||||
{
|
||||
return timeStamp_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,114 +40,114 @@ void DescribeDomainBpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"];
|
||||
for (auto value : allBpsDataPerInterval)
|
||||
{
|
||||
DataModule bpsDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
bpsDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
bpsDataPerIntervalObject.value = value["Value"].asString();
|
||||
if(!value["DomesticValue"].isNull())
|
||||
bpsDataPerIntervalObject.domesticValue = value["DomesticValue"].asString();
|
||||
if(!value["OverseasValue"].isNull())
|
||||
bpsDataPerIntervalObject.overseasValue = value["OverseasValue"].asString();
|
||||
if(!value["DynamicValue"].isNull())
|
||||
bpsDataPerIntervalObject.dynamicValue = value["DynamicValue"].asString();
|
||||
if(!value["DynamicDomesticValue"].isNull())
|
||||
bpsDataPerIntervalObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
|
||||
if(!value["DynamicOverseasValue"].isNull())
|
||||
bpsDataPerIntervalObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
|
||||
if(!value["StaticValue"].isNull())
|
||||
bpsDataPerIntervalObject.staticValue = value["StaticValue"].asString();
|
||||
if(!value["StaticDomesticValue"].isNull())
|
||||
bpsDataPerIntervalObject.staticDomesticValue = value["StaticDomesticValue"].asString();
|
||||
if(!value["StaticOverseasValue"].isNull())
|
||||
bpsDataPerIntervalObject.staticOverseasValue = value["StaticOverseasValue"].asString();
|
||||
if(!value["L2Value"].isNull())
|
||||
bpsDataPerIntervalObject.l2Value = value["L2Value"].asString();
|
||||
if(!value["DomesticL2Value"].isNull())
|
||||
bpsDataPerIntervalObject.domesticL2Value = value["DomesticL2Value"].asString();
|
||||
if(!value["OverseasL2Value"].isNull())
|
||||
bpsDataPerIntervalObject.overseasL2Value = value["OverseasL2Value"].asString();
|
||||
bpsDataPerInterval_.push_back(bpsDataPerIntervalObject);
|
||||
}
|
||||
auto allSupplyBpsDatas = value["SupplyBpsDatas"]["DataModule"];
|
||||
for (auto value : allSupplyBpsDatas)
|
||||
{
|
||||
DataModule1 supplyBpsDatasObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
supplyBpsDatasObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
supplyBpsDatasObject.value = value["Value"].asString();
|
||||
supplyBpsDatas_.push_back(supplyBpsDatasObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["LocationNameEn"].isNull())
|
||||
locationNameEn_ = value["LocationNameEn"].asString();
|
||||
if(!value["IspNameEn"].isNull())
|
||||
ispNameEn_ = value["IspNameEn"].asString();
|
||||
if(!value["LocationName"].isNull())
|
||||
locationName_ = value["LocationName"].asString();
|
||||
if(!value["IspName"].isNull())
|
||||
ispName_ = value["IspName"].asString();
|
||||
auto allBpsDataPerInterval = value["BpsDataPerInterval"]["DataModule"];
|
||||
for (auto value : allBpsDataPerInterval)
|
||||
{
|
||||
DataModule bpsDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
bpsDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
bpsDataPerIntervalObject.value = value["Value"].asString();
|
||||
if(!value["DomesticValue"].isNull())
|
||||
bpsDataPerIntervalObject.domesticValue = value["DomesticValue"].asString();
|
||||
if(!value["OverseasValue"].isNull())
|
||||
bpsDataPerIntervalObject.overseasValue = value["OverseasValue"].asString();
|
||||
if(!value["DynamicValue"].isNull())
|
||||
bpsDataPerIntervalObject.dynamicValue = value["DynamicValue"].asString();
|
||||
if(!value["DynamicDomesticValue"].isNull())
|
||||
bpsDataPerIntervalObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
|
||||
if(!value["DynamicOverseasValue"].isNull())
|
||||
bpsDataPerIntervalObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
|
||||
if(!value["StaticValue"].isNull())
|
||||
bpsDataPerIntervalObject.staticValue = value["StaticValue"].asString();
|
||||
if(!value["StaticDomesticValue"].isNull())
|
||||
bpsDataPerIntervalObject.staticDomesticValue = value["StaticDomesticValue"].asString();
|
||||
if(!value["StaticOverseasValue"].isNull())
|
||||
bpsDataPerIntervalObject.staticOverseasValue = value["StaticOverseasValue"].asString();
|
||||
if(!value["L2Value"].isNull())
|
||||
bpsDataPerIntervalObject.l2Value = value["L2Value"].asString();
|
||||
if(!value["DomesticL2Value"].isNull())
|
||||
bpsDataPerIntervalObject.domesticL2Value = value["DomesticL2Value"].asString();
|
||||
if(!value["OverseasL2Value"].isNull())
|
||||
bpsDataPerIntervalObject.overseasL2Value = value["OverseasL2Value"].asString();
|
||||
bpsDataPerInterval_.push_back(bpsDataPerIntervalObject);
|
||||
}
|
||||
auto allSupplyBpsDatas = value["SupplyBpsDatas"]["DataModule"];
|
||||
for (auto value : allSupplyBpsDatas)
|
||||
{
|
||||
DataModule1 supplyBpsDatasObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
supplyBpsDatasObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
supplyBpsDatasObject.value = value["Value"].asString();
|
||||
supplyBpsDatas_.push_back(supplyBpsDatasObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["LocationNameEn"].isNull())
|
||||
locationNameEn_ = value["LocationNameEn"].asString();
|
||||
if(!value["IspNameEn"].isNull())
|
||||
ispNameEn_ = value["IspNameEn"].asString();
|
||||
if(!value["LocationName"].isNull())
|
||||
locationName_ = value["LocationName"].asString();
|
||||
if(!value["IspName"].isNull())
|
||||
ispName_ = value["IspName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getIspNameEn()const
|
||||
{
|
||||
return ispNameEn_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getIspName()const
|
||||
{
|
||||
return ispName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainBpsDataResult::DataModule1> DescribeDomainBpsDataResult::getSupplyBpsDatas()const
|
||||
{
|
||||
return supplyBpsDatas_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getLocationNameEn()const
|
||||
{
|
||||
return locationNameEn_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainBpsDataResult::DataModule> DescribeDomainBpsDataResult::getBpsDataPerInterval()const
|
||||
{
|
||||
return bpsDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getLocationName()const
|
||||
{
|
||||
return locationName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getIspNameEn()const
|
||||
{
|
||||
return ispNameEn_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getIspName()const
|
||||
{
|
||||
return ispName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainBpsDataResult::DataModule1> DescribeDomainBpsDataResult::getSupplyBpsDatas()const
|
||||
{
|
||||
return supplyBpsDatas_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getLocationNameEn()const
|
||||
{
|
||||
return locationNameEn_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainBpsDataResult::DataModule> DescribeDomainBpsDataResult::getBpsDataPerInterval()const
|
||||
{
|
||||
return bpsDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainBpsDataResult::getLocationName()const
|
||||
{
|
||||
return locationName_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,61 +40,61 @@ void DescribeDomainCCAttackInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAttackIpDataList = value["AttackIpDataList"]["AttackIpDatas"];
|
||||
for (auto value : allAttackIpDataList)
|
||||
{
|
||||
AttackIpDatas attackIpDataListObject;
|
||||
if(!value["Ip"].isNull())
|
||||
attackIpDataListObject.ip = value["Ip"].asString();
|
||||
if(!value["AttackCount"].isNull())
|
||||
attackIpDataListObject.attackCount = value["AttackCount"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
attackIpDataListObject.result = value["Result"].asString();
|
||||
attackIpDataList_.push_back(attackIpDataListObject);
|
||||
}
|
||||
auto allAttackedUrlDataList = value["AttackedUrlDataList"]["AttackedUrlDatas"];
|
||||
for (auto value : allAttackedUrlDataList)
|
||||
{
|
||||
AttackedUrlDatas attackedUrlDataListObject;
|
||||
if(!value["Url"].isNull())
|
||||
attackedUrlDataListObject.url = value["Url"].asString();
|
||||
if(!value["AttackCount"].isNull())
|
||||
attackedUrlDataListObject.attackCount = value["AttackCount"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
attackedUrlDataListObject.result = value["Result"].asString();
|
||||
attackedUrlDataList_.push_back(attackedUrlDataListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allAttackIpDataList = value["AttackIpDataList"]["AttackIpDatas"];
|
||||
for (auto value : allAttackIpDataList)
|
||||
{
|
||||
AttackIpDatas attackIpDataListObject;
|
||||
if(!value["Ip"].isNull())
|
||||
attackIpDataListObject.ip = value["Ip"].asString();
|
||||
if(!value["AttackCount"].isNull())
|
||||
attackIpDataListObject.attackCount = value["AttackCount"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
attackIpDataListObject.result = value["Result"].asString();
|
||||
attackIpDataList_.push_back(attackIpDataListObject);
|
||||
}
|
||||
auto allAttackedUrlDataList = value["AttackedUrlDataList"]["AttackedUrlDatas"];
|
||||
for (auto value : allAttackedUrlDataList)
|
||||
{
|
||||
AttackedUrlDatas attackedUrlDataListObject;
|
||||
if(!value["Url"].isNull())
|
||||
attackedUrlDataListObject.url = value["Url"].asString();
|
||||
if(!value["AttackCount"].isNull())
|
||||
attackedUrlDataListObject.attackCount = value["AttackCount"].asString();
|
||||
if(!value["Result"].isNull())
|
||||
attackedUrlDataListObject.result = value["Result"].asString();
|
||||
attackedUrlDataList_.push_back(attackedUrlDataListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCAttackInfoResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCAttackInfoResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCCAttackInfoResult::AttackIpDatas> DescribeDomainCCAttackInfoResult::getAttackIpDataList()const
|
||||
{
|
||||
return attackIpDataList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCAttackInfoResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCCAttackInfoResult::AttackedUrlDatas> DescribeDomainCCAttackInfoResult::getAttackedUrlDataList()const
|
||||
{
|
||||
return attackedUrlDataList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCAttackInfoResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCAttackInfoResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCCAttackInfoResult::AttackIpDatas> DescribeDomainCCAttackInfoResult::getAttackIpDataList()const
|
||||
{
|
||||
return attackIpDataList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCAttackInfoResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCCAttackInfoResult::AttackedUrlDatas> DescribeDomainCCAttackInfoResult::getAttackedUrlDataList()const
|
||||
{
|
||||
return attackedUrlDataList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void DescribeDomainCCDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCCDataList = value["CCDataList"]["CCDatas"];
|
||||
for (auto value : allCCDataList)
|
||||
{
|
||||
CCDatas cCDataListObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
cCDataListObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
cCDataListObject.count = value["Count"].asString();
|
||||
cCDataList_.push_back(cCDataListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allCCDataList = value["CCDataList"]["CCDatas"];
|
||||
for (auto value : allCCDataList)
|
||||
{
|
||||
CCDatas cCDataListObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
cCDataListObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
cCDataListObject.count = value["Count"].asString();
|
||||
cCDataList_.push_back(cCDataListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCCDataResult::CCDatas> DescribeDomainCCDataResult::getCCDataList()const
|
||||
{
|
||||
return cCDataList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCCDataResult::CCDatas> DescribeDomainCCDataResult::getCCDataList()const
|
||||
{
|
||||
return cCDataList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCCDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
258
cdn/src/model/DescribeDomainCertificateInfoRequest.cc
Normal file
258
cdn/src/model/DescribeDomainCertificateInfoRequest.cc
Normal file
@@ -0,0 +1,258 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeDomainCertificateInfoRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeDomainCertificateInfoRequest;
|
||||
|
||||
DescribeDomainCertificateInfoRequest::DescribeDomainCertificateInfoRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DescribeDomainCertificateInfo")
|
||||
{}
|
||||
|
||||
DescribeDomainCertificateInfoRequest::~DescribeDomainCertificateInfoRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
long DescribeDomainCertificateInfoRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setDomainName(const std::string& domainName)
|
||||
{
|
||||
domainName_ = domainName;
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
bool DescribeDomainCertificateInfoRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeDomainCertificateInfoRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeDomainCertificateInfoRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DescribeDomainCertificateInfoRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeDomainCertificateInfoRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeDomainCertificateInfoRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeDomainCertificateInfoRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeDomainCertificateInfoRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
74
cdn/src/model/DescribeDomainCertificateInfoResult.cc
Normal file
74
cdn/src/model/DescribeDomainCertificateInfoResult.cc
Normal file
@@ -0,0 +1,74 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeDomainCertificateInfoResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeDomainCertificateInfoResult::DescribeDomainCertificateInfoResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeDomainCertificateInfoResult::DescribeDomainCertificateInfoResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeDomainCertificateInfoResult::~DescribeDomainCertificateInfoResult()
|
||||
{}
|
||||
|
||||
void DescribeDomainCertificateInfoResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCertInfos = value["CertInfos"]["CertInfo"];
|
||||
for (auto value : allCertInfos)
|
||||
{
|
||||
CertInfo certInfosObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
certInfosObject.domainName = value["DomainName"].asString();
|
||||
if(!value["CertName"].isNull())
|
||||
certInfosObject.certName = value["CertName"].asString();
|
||||
if(!value["CertDomainName"].isNull())
|
||||
certInfosObject.certDomainName = value["CertDomainName"].asString();
|
||||
if(!value["CertExpireTime"].isNull())
|
||||
certInfosObject.certExpireTime = value["CertExpireTime"].asString();
|
||||
if(!value["CertLife"].isNull())
|
||||
certInfosObject.certLife = value["CertLife"].asString();
|
||||
if(!value["CertOrg"].isNull())
|
||||
certInfosObject.certOrg = value["CertOrg"].asString();
|
||||
if(!value["CertType"].isNull())
|
||||
certInfosObject.certType = value["CertType"].asString();
|
||||
if(!value["ServerCertificateStatus"].isNull())
|
||||
certInfosObject.serverCertificateStatus = value["ServerCertificateStatus"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
certInfosObject.status = value["Status"].asString();
|
||||
certInfos_.push_back(certInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCertificateInfoResult::CertInfo> DescribeDomainCertificateInfoResult::getCertInfos()const
|
||||
{
|
||||
return certInfos_;
|
||||
}
|
||||
|
||||
@@ -40,23 +40,23 @@ void DescribeDomainCnameResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCnameDatas = value["CnameDatas"]["Data"];
|
||||
for (auto value : allCnameDatas)
|
||||
{
|
||||
Data cnameDatasObject;
|
||||
if(!value["Domain"].isNull())
|
||||
cnameDatasObject.domain = value["Domain"].asString();
|
||||
if(!value["Cname"].isNull())
|
||||
cnameDatasObject.cname = value["Cname"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
cnameDatasObject.status = std::stoi(value["Status"].asString());
|
||||
cnameDatas_.push_back(cnameDatasObject);
|
||||
}
|
||||
auto allCnameDatas = value["CnameDatas"]["Data"];
|
||||
for (auto value : allCnameDatas)
|
||||
{
|
||||
Data cnameDatasObject;
|
||||
if(!value["Domain"].isNull())
|
||||
cnameDatasObject.domain = value["Domain"].asString();
|
||||
if(!value["Cname"].isNull())
|
||||
cnameDatasObject.cname = value["Cname"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
cnameDatasObject.status = std::stoi(value["Status"].asString());
|
||||
cnameDatas_.push_back(cnameDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCnameResult::Data> DescribeDomainCnameResult::getCnameDatas()const
|
||||
{
|
||||
return cnameDatas_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainCnameResult::Data> DescribeDomainCnameResult::getCnameDatas()const
|
||||
{
|
||||
return cnameDatas_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,399 +40,291 @@ void DescribeDomainConfigsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainConfigs = value["DomainConfigs"];
|
||||
for (auto value : allDomainConfigs)
|
||||
{
|
||||
DomainConfigs domainConfigsObject;
|
||||
auto allCacheExpiredConfigs = value["CacheExpiredConfigs"]["CacheExpiredConfig"];
|
||||
for (auto value : allCacheExpiredConfigs)
|
||||
{
|
||||
DomainConfigs::CacheExpiredConfig cacheExpiredConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
cacheExpiredConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["CacheType"].isNull())
|
||||
cacheExpiredConfigObject.cacheType = value["CacheType"].asString();
|
||||
if(!value["CacheContent"].isNull())
|
||||
cacheExpiredConfigObject.cacheContent = value["CacheContent"].asString();
|
||||
if(!value["TTL"].isNull())
|
||||
cacheExpiredConfigObject.tTL = value["TTL"].asString();
|
||||
if(!value["Weight"].isNull())
|
||||
cacheExpiredConfigObject.weight = value["Weight"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
cacheExpiredConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.cacheExpiredConfigs.push_back(cacheExpiredConfigObject);
|
||||
}
|
||||
auto allHttpErrorPageConfigs = value["HttpErrorPageConfigs"]["HttpErrorPageConfig"];
|
||||
for (auto value : allHttpErrorPageConfigs)
|
||||
{
|
||||
DomainConfigs::HttpErrorPageConfig httpErrorPageConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
httpErrorPageConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
httpErrorPageConfigObject.errorCode = value["ErrorCode"].asString();
|
||||
if(!value["PageUrl"].isNull())
|
||||
httpErrorPageConfigObject.pageUrl = value["PageUrl"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
httpErrorPageConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.httpErrorPageConfigs.push_back(httpErrorPageConfigObject);
|
||||
}
|
||||
auto allHttpHeaderConfigs = value["HttpHeaderConfigs"]["HttpHeaderConfig"];
|
||||
for (auto value : allHttpHeaderConfigs)
|
||||
{
|
||||
DomainConfigs::HttpHeaderConfig httpHeaderConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
httpHeaderConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["HeaderKey"].isNull())
|
||||
httpHeaderConfigObject.headerKey = value["HeaderKey"].asString();
|
||||
if(!value["HeaderValue"].isNull())
|
||||
httpHeaderConfigObject.headerValue = value["HeaderValue"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
httpHeaderConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.httpHeaderConfigs.push_back(httpHeaderConfigObject);
|
||||
}
|
||||
auto allDynamicConfigs = value["DynamicConfigs"]["DynamicConfig"];
|
||||
for (auto value : allDynamicConfigs)
|
||||
{
|
||||
DomainConfigs::DynamicConfig dynamicConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
dynamicConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["DynamicOrigin"].isNull())
|
||||
dynamicConfigObject.dynamicOrigin = value["DynamicOrigin"].asString();
|
||||
if(!value["StaticType"].isNull())
|
||||
dynamicConfigObject.staticType = value["StaticType"].asString();
|
||||
if(!value["StaticUri"].isNull())
|
||||
dynamicConfigObject.staticUri = value["StaticUri"].asString();
|
||||
if(!value["StaticPath"].isNull())
|
||||
dynamicConfigObject.staticPath = value["StaticPath"].asString();
|
||||
if(!value["DynamicCacheControl"].isNull())
|
||||
dynamicConfigObject.dynamicCacheControl = value["DynamicCacheControl"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
dynamicConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.dynamicConfigs.push_back(dynamicConfigObject);
|
||||
}
|
||||
auto allReqHeaderConfigs = value["ReqHeaderConfigs"]["ReqHeaderConfig"];
|
||||
for (auto value : allReqHeaderConfigs)
|
||||
{
|
||||
DomainConfigs::ReqHeaderConfig reqHeaderConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
reqHeaderConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Key"].isNull())
|
||||
reqHeaderConfigObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
reqHeaderConfigObject.value = value["Value"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
reqHeaderConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.reqHeaderConfigs.push_back(reqHeaderConfigObject);
|
||||
}
|
||||
auto allSetVarsConfigs = value["SetVarsConfigs"]["SetVarsConfig"];
|
||||
for (auto value : allSetVarsConfigs)
|
||||
{
|
||||
DomainConfigs::SetVarsConfig setVarsConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
setVarsConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["VarName"].isNull())
|
||||
setVarsConfigObject.varName = value["VarName"].asString();
|
||||
if(!value["VarValue"].isNull())
|
||||
setVarsConfigObject.varValue = value["VarValue"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
setVarsConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.setVarsConfigs.push_back(setVarsConfigObject);
|
||||
}
|
||||
auto allCcConfig = value["CcConfig"];
|
||||
for (auto value : allCcConfig)
|
||||
{
|
||||
DomainConfigs::CcConfig ccConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
ccConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
ccConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["AllowIps"].isNull())
|
||||
ccConfigObject.allowIps = value["AllowIps"].asString();
|
||||
if(!value["BlockIps"].isNull())
|
||||
ccConfigObject.blockIps = value["BlockIps"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
ccConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.ccConfig.push_back(ccConfigObject);
|
||||
}
|
||||
auto allErrorPageConfig = value["ErrorPageConfig"];
|
||||
for (auto value : allErrorPageConfig)
|
||||
{
|
||||
DomainConfigs::ErrorPageConfig errorPageConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
errorPageConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
errorPageConfigObject.errorCode = value["ErrorCode"].asString();
|
||||
if(!value["PageType"].isNull())
|
||||
errorPageConfigObject.pageType = value["PageType"].asString();
|
||||
if(!value["CustomPageUrl"].isNull())
|
||||
errorPageConfigObject.customPageUrl = value["CustomPageUrl"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
errorPageConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.errorPageConfig.push_back(errorPageConfigObject);
|
||||
}
|
||||
auto allOptimizeConfig = value["OptimizeConfig"];
|
||||
for (auto value : allOptimizeConfig)
|
||||
{
|
||||
DomainConfigs::OptimizeConfig optimizeConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
optimizeConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
optimizeConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
optimizeConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.optimizeConfig.push_back(optimizeConfigObject);
|
||||
}
|
||||
auto allPageCompressConfig = value["PageCompressConfig"];
|
||||
for (auto value : allPageCompressConfig)
|
||||
{
|
||||
DomainConfigs::PageCompressConfig pageCompressConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
pageCompressConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
pageCompressConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
pageCompressConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.pageCompressConfig.push_back(pageCompressConfigObject);
|
||||
}
|
||||
auto allIgnoreQueryStringConfig = value["IgnoreQueryStringConfig"];
|
||||
for (auto value : allIgnoreQueryStringConfig)
|
||||
{
|
||||
DomainConfigs::IgnoreQueryStringConfig ignoreQueryStringConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
ignoreQueryStringConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["HashKeyArgs"].isNull())
|
||||
ignoreQueryStringConfigObject.hashKeyArgs = value["HashKeyArgs"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
ignoreQueryStringConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
ignoreQueryStringConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.ignoreQueryStringConfig.push_back(ignoreQueryStringConfigObject);
|
||||
}
|
||||
auto allRangeConfig = value["RangeConfig"];
|
||||
for (auto value : allRangeConfig)
|
||||
{
|
||||
DomainConfigs::RangeConfig rangeConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
rangeConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
rangeConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
rangeConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.rangeConfig.push_back(rangeConfigObject);
|
||||
}
|
||||
auto allRefererConfig = value["RefererConfig"];
|
||||
for (auto value : allRefererConfig)
|
||||
{
|
||||
DomainConfigs::RefererConfig refererConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
refererConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["ReferType"].isNull())
|
||||
refererConfigObject.referType = value["ReferType"].asString();
|
||||
if(!value["ReferList"].isNull())
|
||||
refererConfigObject.referList = value["ReferList"].asString();
|
||||
if(!value["AllowEmpty"].isNull())
|
||||
refererConfigObject.allowEmpty = value["AllowEmpty"].asString();
|
||||
if(!value["DisableAst"].isNull())
|
||||
refererConfigObject.disableAst = value["DisableAst"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
refererConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.refererConfig.push_back(refererConfigObject);
|
||||
}
|
||||
auto allReqAuthConfig = value["ReqAuthConfig"];
|
||||
for (auto value : allReqAuthConfig)
|
||||
{
|
||||
DomainConfigs::ReqAuthConfig reqAuthConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
reqAuthConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["AuthType"].isNull())
|
||||
reqAuthConfigObject.authType = value["AuthType"].asString();
|
||||
if(!value["Key1"].isNull())
|
||||
reqAuthConfigObject.key1 = value["Key1"].asString();
|
||||
if(!value["Key2"].isNull())
|
||||
reqAuthConfigObject.key2 = value["Key2"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
reqAuthConfigObject.status = value["Status"].asString();
|
||||
if(!value["AliAuthWhiteList"].isNull())
|
||||
reqAuthConfigObject.aliAuthWhiteList = value["AliAuthWhiteList"].asString();
|
||||
if(!value["AuthM3u8"].isNull())
|
||||
reqAuthConfigObject.authM3u8 = value["AuthM3u8"].asString();
|
||||
if(!value["AuthAddr"].isNull())
|
||||
reqAuthConfigObject.authAddr = value["AuthAddr"].asString();
|
||||
if(!value["AuthRemoteDesc"].isNull())
|
||||
reqAuthConfigObject.authRemoteDesc = value["AuthRemoteDesc"].asString();
|
||||
if(!value["TimeOut"].isNull())
|
||||
reqAuthConfigObject.timeOut = value["TimeOut"].asString();
|
||||
domainConfigsObject.reqAuthConfig.push_back(reqAuthConfigObject);
|
||||
}
|
||||
auto allSrcHostConfig = value["SrcHostConfig"];
|
||||
for (auto value : allSrcHostConfig)
|
||||
{
|
||||
DomainConfigs::SrcHostConfig srcHostConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
srcHostConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
srcHostConfigObject.domainName = value["DomainName"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
srcHostConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.srcHostConfig.push_back(srcHostConfigObject);
|
||||
}
|
||||
auto allVideoSeekConfig = value["VideoSeekConfig"];
|
||||
for (auto value : allVideoSeekConfig)
|
||||
{
|
||||
DomainConfigs::VideoSeekConfig videoSeekConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
videoSeekConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
videoSeekConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
videoSeekConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.videoSeekConfig.push_back(videoSeekConfigObject);
|
||||
}
|
||||
auto allWafConfig = value["WafConfig"];
|
||||
for (auto value : allWafConfig)
|
||||
{
|
||||
DomainConfigs::WafConfig wafConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
wafConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
wafConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
wafConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.wafConfig.push_back(wafConfigObject);
|
||||
}
|
||||
auto allNotifyUrlConfig = value["NotifyUrlConfig"];
|
||||
for (auto value : allNotifyUrlConfig)
|
||||
{
|
||||
DomainConfigs::NotifyUrlConfig notifyUrlConfigObject;
|
||||
if(!value["Enable"].isNull())
|
||||
notifyUrlConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["NotifyUrl"].isNull())
|
||||
notifyUrlConfigObject.notifyUrl = value["NotifyUrl"].asString();
|
||||
domainConfigsObject.notifyUrlConfig.push_back(notifyUrlConfigObject);
|
||||
}
|
||||
auto allRedirectTypeConfig = value["RedirectTypeConfig"];
|
||||
for (auto value : allRedirectTypeConfig)
|
||||
{
|
||||
DomainConfigs::RedirectTypeConfig redirectTypeConfigObject;
|
||||
if(!value["RedirectType"].isNull())
|
||||
redirectTypeConfigObject.redirectType = value["RedirectType"].asString();
|
||||
domainConfigsObject.redirectTypeConfig.push_back(redirectTypeConfigObject);
|
||||
}
|
||||
auto allForwardSchemeConfig = value["ForwardSchemeConfig"];
|
||||
for (auto value : allForwardSchemeConfig)
|
||||
{
|
||||
DomainConfigs::ForwardSchemeConfig forwardSchemeConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
forwardSchemeConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
forwardSchemeConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["SchemeOrigin"].isNull())
|
||||
forwardSchemeConfigObject.schemeOrigin = value["SchemeOrigin"].asString();
|
||||
if(!value["SchemeOriginPort"].isNull())
|
||||
forwardSchemeConfigObject.schemeOriginPort = value["SchemeOriginPort"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
forwardSchemeConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.forwardSchemeConfig.push_back(forwardSchemeConfigObject);
|
||||
}
|
||||
auto allRemoveQueryStringConfig = value["RemoveQueryStringConfig"];
|
||||
for (auto value : allRemoveQueryStringConfig)
|
||||
{
|
||||
DomainConfigs::RemoveQueryStringConfig removeQueryStringConfigObject;
|
||||
if(!value["AliRemoveArgs"].isNull())
|
||||
removeQueryStringConfigObject.aliRemoveArgs = value["AliRemoveArgs"].asString();
|
||||
if(!value["ConfigId"].isNull())
|
||||
removeQueryStringConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
removeQueryStringConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.removeQueryStringConfig.push_back(removeQueryStringConfigObject);
|
||||
}
|
||||
auto allL2OssKeyConfig = value["L2OssKeyConfig"];
|
||||
for (auto value : allL2OssKeyConfig)
|
||||
{
|
||||
DomainConfigs::L2OssKeyConfig l2OssKeyConfigObject;
|
||||
if(!value["PrivateOssAuth"].isNull())
|
||||
l2OssKeyConfigObject.privateOssAuth = value["PrivateOssAuth"].asString();
|
||||
if(!value["ConfigId"].isNull())
|
||||
l2OssKeyConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
l2OssKeyConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.l2OssKeyConfig.push_back(l2OssKeyConfigObject);
|
||||
}
|
||||
auto allMacServiceConfig = value["MacServiceConfig"];
|
||||
for (auto value : allMacServiceConfig)
|
||||
{
|
||||
DomainConfigs::MacServiceConfig macServiceConfigObject;
|
||||
if(!value["AppList"].isNull())
|
||||
macServiceConfigObject.appList = value["AppList"].asString();
|
||||
if(!value["Enabled"].isNull())
|
||||
macServiceConfigObject.enabled = value["Enabled"].asString();
|
||||
if(!value["ProcessResult"].isNull())
|
||||
macServiceConfigObject.processResult = value["ProcessResult"].asString();
|
||||
if(!value["ConfigId"].isNull())
|
||||
macServiceConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
macServiceConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.macServiceConfig.push_back(macServiceConfigObject);
|
||||
}
|
||||
auto allGreenManagerConfig = value["GreenManagerConfig"];
|
||||
for (auto value : allGreenManagerConfig)
|
||||
{
|
||||
DomainConfigs::GreenManagerConfig greenManagerConfigObject;
|
||||
if(!value["Enabled"].isNull())
|
||||
greenManagerConfigObject.enabled = value["Enabled"].asString();
|
||||
if(!value["ConfigId"].isNull())
|
||||
greenManagerConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
greenManagerConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.greenManagerConfig.push_back(greenManagerConfigObject);
|
||||
}
|
||||
auto allHttpsOptionConfig = value["HttpsOptionConfig"];
|
||||
for (auto value : allHttpsOptionConfig)
|
||||
{
|
||||
DomainConfigs::HttpsOptionConfig httpsOptionConfigObject;
|
||||
if(!value["Http2"].isNull())
|
||||
httpsOptionConfigObject.http2 = value["Http2"].asString();
|
||||
if(!value["ConfigId"].isNull())
|
||||
httpsOptionConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
httpsOptionConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.httpsOptionConfig.push_back(httpsOptionConfigObject);
|
||||
}
|
||||
auto allAliBusinessConfig = value["AliBusinessConfig"];
|
||||
for (auto value : allAliBusinessConfig)
|
||||
{
|
||||
DomainConfigs::AliBusinessConfig aliBusinessConfigObject;
|
||||
if(!value["AliBusinessTable"].isNull())
|
||||
aliBusinessConfigObject.aliBusinessTable = value["AliBusinessTable"].asString();
|
||||
if(!value["AliBusinessType"].isNull())
|
||||
aliBusinessConfigObject.aliBusinessType = value["AliBusinessType"].asString();
|
||||
if(!value["ConfigId"].isNull())
|
||||
aliBusinessConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
aliBusinessConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.aliBusinessConfig.push_back(aliBusinessConfigObject);
|
||||
}
|
||||
auto allIpAllowListConfig = value["IpAllowListConfig"];
|
||||
for (auto value : allIpAllowListConfig)
|
||||
{
|
||||
DomainConfigs::IpAllowListConfig ipAllowListConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
ipAllowListConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["IpList"].isNull())
|
||||
ipAllowListConfigObject.ipList = value["IpList"].asString();
|
||||
if(!value["IpAclXfwd"].isNull())
|
||||
ipAllowListConfigObject.ipAclXfwd = value["IpAclXfwd"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
ipAllowListConfigObject.status = value["Status"].asString();
|
||||
domainConfigsObject.ipAllowListConfig.push_back(ipAllowListConfigObject);
|
||||
}
|
||||
domainConfigs_.push_back(domainConfigsObject);
|
||||
}
|
||||
auto domainConfigsNode = value["DomainConfigs"];
|
||||
auto allCacheExpiredConfigs = value["CacheExpiredConfigs"]["CacheExpiredConfig"];
|
||||
for (auto value : allCacheExpiredConfigs)
|
||||
{
|
||||
DomainConfigs::CacheExpiredConfig cacheExpiredConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
cacheExpiredConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["CacheType"].isNull())
|
||||
cacheExpiredConfigObject.cacheType = value["CacheType"].asString();
|
||||
if(!value["CacheContent"].isNull())
|
||||
cacheExpiredConfigObject.cacheContent = value["CacheContent"].asString();
|
||||
if(!value["TTL"].isNull())
|
||||
cacheExpiredConfigObject.tTL = value["TTL"].asString();
|
||||
if(!value["Weight"].isNull())
|
||||
cacheExpiredConfigObject.weight = value["Weight"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
cacheExpiredConfigObject.status = value["Status"].asString();
|
||||
domainConfigs_.cacheExpiredConfigs.push_back(cacheExpiredConfigObject);
|
||||
}
|
||||
auto allHttpErrorPageConfigs = value["HttpErrorPageConfigs"]["HttpErrorPageConfig"];
|
||||
for (auto value : allHttpErrorPageConfigs)
|
||||
{
|
||||
DomainConfigs::HttpErrorPageConfig httpErrorPageConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
httpErrorPageConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["ErrorCode"].isNull())
|
||||
httpErrorPageConfigObject.errorCode = value["ErrorCode"].asString();
|
||||
if(!value["PageUrl"].isNull())
|
||||
httpErrorPageConfigObject.pageUrl = value["PageUrl"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
httpErrorPageConfigObject.status = value["Status"].asString();
|
||||
domainConfigs_.httpErrorPageConfigs.push_back(httpErrorPageConfigObject);
|
||||
}
|
||||
auto allHttpHeaderConfigs = value["HttpHeaderConfigs"]["HttpHeaderConfig"];
|
||||
for (auto value : allHttpHeaderConfigs)
|
||||
{
|
||||
DomainConfigs::HttpHeaderConfig httpHeaderConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
httpHeaderConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["HeaderKey"].isNull())
|
||||
httpHeaderConfigObject.headerKey = value["HeaderKey"].asString();
|
||||
if(!value["HeaderValue"].isNull())
|
||||
httpHeaderConfigObject.headerValue = value["HeaderValue"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
httpHeaderConfigObject.status = value["Status"].asString();
|
||||
domainConfigs_.httpHeaderConfigs.push_back(httpHeaderConfigObject);
|
||||
}
|
||||
auto allDynamicConfigs = value["DynamicConfigs"]["DynamicConfig"];
|
||||
for (auto value : allDynamicConfigs)
|
||||
{
|
||||
DomainConfigs::DynamicConfig dynamicConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
dynamicConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Enable"].isNull())
|
||||
dynamicConfigObject.enable = value["Enable"].asString();
|
||||
if(!value["DynamicOrigin"].isNull())
|
||||
dynamicConfigObject.dynamicOrigin = value["DynamicOrigin"].asString();
|
||||
if(!value["StaticType"].isNull())
|
||||
dynamicConfigObject.staticType = value["StaticType"].asString();
|
||||
if(!value["StaticUri"].isNull())
|
||||
dynamicConfigObject.staticUri = value["StaticUri"].asString();
|
||||
if(!value["StaticPath"].isNull())
|
||||
dynamicConfigObject.staticPath = value["StaticPath"].asString();
|
||||
if(!value["DynamicCacheControl"].isNull())
|
||||
dynamicConfigObject.dynamicCacheControl = value["DynamicCacheControl"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
dynamicConfigObject.status = value["Status"].asString();
|
||||
domainConfigs_.dynamicConfigs.push_back(dynamicConfigObject);
|
||||
}
|
||||
auto allReqHeaderConfigs = value["ReqHeaderConfigs"]["ReqHeaderConfig"];
|
||||
for (auto value : allReqHeaderConfigs)
|
||||
{
|
||||
DomainConfigs::ReqHeaderConfig reqHeaderConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
reqHeaderConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["Key"].isNull())
|
||||
reqHeaderConfigObject.key = value["Key"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
reqHeaderConfigObject.value = value["Value"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
reqHeaderConfigObject.status = value["Status"].asString();
|
||||
domainConfigs_.reqHeaderConfigs.push_back(reqHeaderConfigObject);
|
||||
}
|
||||
auto allSetVarsConfigs = value["SetVarsConfigs"]["SetVarsConfig"];
|
||||
for (auto value : allSetVarsConfigs)
|
||||
{
|
||||
DomainConfigs::SetVarsConfig setVarsConfigObject;
|
||||
if(!value["ConfigId"].isNull())
|
||||
setVarsConfigObject.configId = value["ConfigId"].asString();
|
||||
if(!value["VarName"].isNull())
|
||||
setVarsConfigObject.varName = value["VarName"].asString();
|
||||
if(!value["VarValue"].isNull())
|
||||
setVarsConfigObject.varValue = value["VarValue"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
setVarsConfigObject.status = value["Status"].asString();
|
||||
domainConfigs_.setVarsConfigs.push_back(setVarsConfigObject);
|
||||
}
|
||||
auto ccConfigNode = domainConfigsNode["CcConfig"];
|
||||
if(!ccConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.ccConfig.configId = ccConfigNode["ConfigId"].asString();
|
||||
if(!ccConfigNode["Enable"].isNull())
|
||||
domainConfigs_.ccConfig.enable = ccConfigNode["Enable"].asString();
|
||||
if(!ccConfigNode["AllowIps"].isNull())
|
||||
domainConfigs_.ccConfig.allowIps = ccConfigNode["AllowIps"].asString();
|
||||
if(!ccConfigNode["BlockIps"].isNull())
|
||||
domainConfigs_.ccConfig.blockIps = ccConfigNode["BlockIps"].asString();
|
||||
if(!ccConfigNode["Status"].isNull())
|
||||
domainConfigs_.ccConfig.status = ccConfigNode["Status"].asString();
|
||||
auto errorPageConfigNode = domainConfigsNode["ErrorPageConfig"];
|
||||
if(!errorPageConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.errorPageConfig.configId = errorPageConfigNode["ConfigId"].asString();
|
||||
if(!errorPageConfigNode["ErrorCode"].isNull())
|
||||
domainConfigs_.errorPageConfig.errorCode = errorPageConfigNode["ErrorCode"].asString();
|
||||
if(!errorPageConfigNode["PageType"].isNull())
|
||||
domainConfigs_.errorPageConfig.pageType = errorPageConfigNode["PageType"].asString();
|
||||
if(!errorPageConfigNode["CustomPageUrl"].isNull())
|
||||
domainConfigs_.errorPageConfig.customPageUrl = errorPageConfigNode["CustomPageUrl"].asString();
|
||||
if(!errorPageConfigNode["Status"].isNull())
|
||||
domainConfigs_.errorPageConfig.status = errorPageConfigNode["Status"].asString();
|
||||
auto optimizeConfigNode = domainConfigsNode["OptimizeConfig"];
|
||||
if(!optimizeConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.optimizeConfig.configId = optimizeConfigNode["ConfigId"].asString();
|
||||
if(!optimizeConfigNode["Enable"].isNull())
|
||||
domainConfigs_.optimizeConfig.enable = optimizeConfigNode["Enable"].asString();
|
||||
if(!optimizeConfigNode["Status"].isNull())
|
||||
domainConfigs_.optimizeConfig.status = optimizeConfigNode["Status"].asString();
|
||||
auto pageCompressConfigNode = domainConfigsNode["PageCompressConfig"];
|
||||
if(!pageCompressConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.pageCompressConfig.configId = pageCompressConfigNode["ConfigId"].asString();
|
||||
if(!pageCompressConfigNode["Enable"].isNull())
|
||||
domainConfigs_.pageCompressConfig.enable = pageCompressConfigNode["Enable"].asString();
|
||||
if(!pageCompressConfigNode["Status"].isNull())
|
||||
domainConfigs_.pageCompressConfig.status = pageCompressConfigNode["Status"].asString();
|
||||
auto ignoreQueryStringConfigNode = domainConfigsNode["IgnoreQueryStringConfig"];
|
||||
if(!ignoreQueryStringConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.ignoreQueryStringConfig.configId = ignoreQueryStringConfigNode["ConfigId"].asString();
|
||||
if(!ignoreQueryStringConfigNode["HashKeyArgs"].isNull())
|
||||
domainConfigs_.ignoreQueryStringConfig.hashKeyArgs = ignoreQueryStringConfigNode["HashKeyArgs"].asString();
|
||||
if(!ignoreQueryStringConfigNode["Enable"].isNull())
|
||||
domainConfigs_.ignoreQueryStringConfig.enable = ignoreQueryStringConfigNode["Enable"].asString();
|
||||
if(!ignoreQueryStringConfigNode["Status"].isNull())
|
||||
domainConfigs_.ignoreQueryStringConfig.status = ignoreQueryStringConfigNode["Status"].asString();
|
||||
auto rangeConfigNode = domainConfigsNode["RangeConfig"];
|
||||
if(!rangeConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.rangeConfig.configId = rangeConfigNode["ConfigId"].asString();
|
||||
if(!rangeConfigNode["Enable"].isNull())
|
||||
domainConfigs_.rangeConfig.enable = rangeConfigNode["Enable"].asString();
|
||||
if(!rangeConfigNode["Status"].isNull())
|
||||
domainConfigs_.rangeConfig.status = rangeConfigNode["Status"].asString();
|
||||
auto refererConfigNode = domainConfigsNode["RefererConfig"];
|
||||
if(!refererConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.refererConfig.configId = refererConfigNode["ConfigId"].asString();
|
||||
if(!refererConfigNode["ReferType"].isNull())
|
||||
domainConfigs_.refererConfig.referType = refererConfigNode["ReferType"].asString();
|
||||
if(!refererConfigNode["ReferList"].isNull())
|
||||
domainConfigs_.refererConfig.referList = refererConfigNode["ReferList"].asString();
|
||||
if(!refererConfigNode["AllowEmpty"].isNull())
|
||||
domainConfigs_.refererConfig.allowEmpty = refererConfigNode["AllowEmpty"].asString();
|
||||
if(!refererConfigNode["DisableAst"].isNull())
|
||||
domainConfigs_.refererConfig.disableAst = refererConfigNode["DisableAst"].asString();
|
||||
if(!refererConfigNode["Status"].isNull())
|
||||
domainConfigs_.refererConfig.status = refererConfigNode["Status"].asString();
|
||||
auto reqAuthConfigNode = domainConfigsNode["ReqAuthConfig"];
|
||||
if(!reqAuthConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.reqAuthConfig.configId = reqAuthConfigNode["ConfigId"].asString();
|
||||
if(!reqAuthConfigNode["AuthType"].isNull())
|
||||
domainConfigs_.reqAuthConfig.authType = reqAuthConfigNode["AuthType"].asString();
|
||||
if(!reqAuthConfigNode["Key1"].isNull())
|
||||
domainConfigs_.reqAuthConfig.key1 = reqAuthConfigNode["Key1"].asString();
|
||||
if(!reqAuthConfigNode["Key2"].isNull())
|
||||
domainConfigs_.reqAuthConfig.key2 = reqAuthConfigNode["Key2"].asString();
|
||||
if(!reqAuthConfigNode["Status"].isNull())
|
||||
domainConfigs_.reqAuthConfig.status = reqAuthConfigNode["Status"].asString();
|
||||
if(!reqAuthConfigNode["AliAuthWhiteList"].isNull())
|
||||
domainConfigs_.reqAuthConfig.aliAuthWhiteList = reqAuthConfigNode["AliAuthWhiteList"].asString();
|
||||
if(!reqAuthConfigNode["AuthM3u8"].isNull())
|
||||
domainConfigs_.reqAuthConfig.authM3u8 = reqAuthConfigNode["AuthM3u8"].asString();
|
||||
if(!reqAuthConfigNode["AuthAddr"].isNull())
|
||||
domainConfigs_.reqAuthConfig.authAddr = reqAuthConfigNode["AuthAddr"].asString();
|
||||
if(!reqAuthConfigNode["AuthRemoteDesc"].isNull())
|
||||
domainConfigs_.reqAuthConfig.authRemoteDesc = reqAuthConfigNode["AuthRemoteDesc"].asString();
|
||||
if(!reqAuthConfigNode["TimeOut"].isNull())
|
||||
domainConfigs_.reqAuthConfig.timeOut = reqAuthConfigNode["TimeOut"].asString();
|
||||
auto srcHostConfigNode = domainConfigsNode["SrcHostConfig"];
|
||||
if(!srcHostConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.srcHostConfig.configId = srcHostConfigNode["ConfigId"].asString();
|
||||
if(!srcHostConfigNode["DomainName"].isNull())
|
||||
domainConfigs_.srcHostConfig.domainName = srcHostConfigNode["DomainName"].asString();
|
||||
if(!srcHostConfigNode["Status"].isNull())
|
||||
domainConfigs_.srcHostConfig.status = srcHostConfigNode["Status"].asString();
|
||||
auto videoSeekConfigNode = domainConfigsNode["VideoSeekConfig"];
|
||||
if(!videoSeekConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.videoSeekConfig.configId = videoSeekConfigNode["ConfigId"].asString();
|
||||
if(!videoSeekConfigNode["Enable"].isNull())
|
||||
domainConfigs_.videoSeekConfig.enable = videoSeekConfigNode["Enable"].asString();
|
||||
if(!videoSeekConfigNode["Status"].isNull())
|
||||
domainConfigs_.videoSeekConfig.status = videoSeekConfigNode["Status"].asString();
|
||||
auto wafConfigNode = domainConfigsNode["WafConfig"];
|
||||
if(!wafConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.wafConfig.configId = wafConfigNode["ConfigId"].asString();
|
||||
if(!wafConfigNode["Enable"].isNull())
|
||||
domainConfigs_.wafConfig.enable = wafConfigNode["Enable"].asString();
|
||||
if(!wafConfigNode["Status"].isNull())
|
||||
domainConfigs_.wafConfig.status = wafConfigNode["Status"].asString();
|
||||
auto notifyUrlConfigNode = domainConfigsNode["NotifyUrlConfig"];
|
||||
if(!notifyUrlConfigNode["Enable"].isNull())
|
||||
domainConfigs_.notifyUrlConfig.enable = notifyUrlConfigNode["Enable"].asString();
|
||||
if(!notifyUrlConfigNode["NotifyUrl"].isNull())
|
||||
domainConfigs_.notifyUrlConfig.notifyUrl = notifyUrlConfigNode["NotifyUrl"].asString();
|
||||
auto redirectTypeConfigNode = domainConfigsNode["RedirectTypeConfig"];
|
||||
if(!redirectTypeConfigNode["RedirectType"].isNull())
|
||||
domainConfigs_.redirectTypeConfig.redirectType = redirectTypeConfigNode["RedirectType"].asString();
|
||||
auto forwardSchemeConfigNode = domainConfigsNode["ForwardSchemeConfig"];
|
||||
if(!forwardSchemeConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.forwardSchemeConfig.configId = forwardSchemeConfigNode["ConfigId"].asString();
|
||||
if(!forwardSchemeConfigNode["Enable"].isNull())
|
||||
domainConfigs_.forwardSchemeConfig.enable = forwardSchemeConfigNode["Enable"].asString();
|
||||
if(!forwardSchemeConfigNode["SchemeOrigin"].isNull())
|
||||
domainConfigs_.forwardSchemeConfig.schemeOrigin = forwardSchemeConfigNode["SchemeOrigin"].asString();
|
||||
if(!forwardSchemeConfigNode["SchemeOriginPort"].isNull())
|
||||
domainConfigs_.forwardSchemeConfig.schemeOriginPort = forwardSchemeConfigNode["SchemeOriginPort"].asString();
|
||||
if(!forwardSchemeConfigNode["Status"].isNull())
|
||||
domainConfigs_.forwardSchemeConfig.status = forwardSchemeConfigNode["Status"].asString();
|
||||
auto removeQueryStringConfigNode = domainConfigsNode["RemoveQueryStringConfig"];
|
||||
if(!removeQueryStringConfigNode["AliRemoveArgs"].isNull())
|
||||
domainConfigs_.removeQueryStringConfig.aliRemoveArgs = removeQueryStringConfigNode["AliRemoveArgs"].asString();
|
||||
if(!removeQueryStringConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.removeQueryStringConfig.configId = removeQueryStringConfigNode["ConfigId"].asString();
|
||||
if(!removeQueryStringConfigNode["Status"].isNull())
|
||||
domainConfigs_.removeQueryStringConfig.status = removeQueryStringConfigNode["Status"].asString();
|
||||
auto l2OssKeyConfigNode = domainConfigsNode["L2OssKeyConfig"];
|
||||
if(!l2OssKeyConfigNode["PrivateOssAuth"].isNull())
|
||||
domainConfigs_.l2OssKeyConfig.privateOssAuth = l2OssKeyConfigNode["PrivateOssAuth"].asString();
|
||||
if(!l2OssKeyConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.l2OssKeyConfig.configId = l2OssKeyConfigNode["ConfigId"].asString();
|
||||
if(!l2OssKeyConfigNode["Status"].isNull())
|
||||
domainConfigs_.l2OssKeyConfig.status = l2OssKeyConfigNode["Status"].asString();
|
||||
auto macServiceConfigNode = domainConfigsNode["MacServiceConfig"];
|
||||
if(!macServiceConfigNode["AppList"].isNull())
|
||||
domainConfigs_.macServiceConfig.appList = macServiceConfigNode["AppList"].asString();
|
||||
if(!macServiceConfigNode["Enabled"].isNull())
|
||||
domainConfigs_.macServiceConfig.enabled = macServiceConfigNode["Enabled"].asString();
|
||||
if(!macServiceConfigNode["ProcessResult"].isNull())
|
||||
domainConfigs_.macServiceConfig.processResult = macServiceConfigNode["ProcessResult"].asString();
|
||||
if(!macServiceConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.macServiceConfig.configId = macServiceConfigNode["ConfigId"].asString();
|
||||
if(!macServiceConfigNode["Status"].isNull())
|
||||
domainConfigs_.macServiceConfig.status = macServiceConfigNode["Status"].asString();
|
||||
auto greenManagerConfigNode = domainConfigsNode["GreenManagerConfig"];
|
||||
if(!greenManagerConfigNode["Enabled"].isNull())
|
||||
domainConfigs_.greenManagerConfig.enabled = greenManagerConfigNode["Enabled"].asString();
|
||||
if(!greenManagerConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.greenManagerConfig.configId = greenManagerConfigNode["ConfigId"].asString();
|
||||
if(!greenManagerConfigNode["Status"].isNull())
|
||||
domainConfigs_.greenManagerConfig.status = greenManagerConfigNode["Status"].asString();
|
||||
auto httpsOptionConfigNode = domainConfigsNode["HttpsOptionConfig"];
|
||||
if(!httpsOptionConfigNode["Http2"].isNull())
|
||||
domainConfigs_.httpsOptionConfig.http2 = httpsOptionConfigNode["Http2"].asString();
|
||||
if(!httpsOptionConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.httpsOptionConfig.configId = httpsOptionConfigNode["ConfigId"].asString();
|
||||
if(!httpsOptionConfigNode["Status"].isNull())
|
||||
domainConfigs_.httpsOptionConfig.status = httpsOptionConfigNode["Status"].asString();
|
||||
auto aliBusinessConfigNode = domainConfigsNode["AliBusinessConfig"];
|
||||
if(!aliBusinessConfigNode["AliBusinessTable"].isNull())
|
||||
domainConfigs_.aliBusinessConfig.aliBusinessTable = aliBusinessConfigNode["AliBusinessTable"].asString();
|
||||
if(!aliBusinessConfigNode["AliBusinessType"].isNull())
|
||||
domainConfigs_.aliBusinessConfig.aliBusinessType = aliBusinessConfigNode["AliBusinessType"].asString();
|
||||
if(!aliBusinessConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.aliBusinessConfig.configId = aliBusinessConfigNode["ConfigId"].asString();
|
||||
if(!aliBusinessConfigNode["Status"].isNull())
|
||||
domainConfigs_.aliBusinessConfig.status = aliBusinessConfigNode["Status"].asString();
|
||||
auto ipAllowListConfigNode = domainConfigsNode["IpAllowListConfig"];
|
||||
if(!ipAllowListConfigNode["ConfigId"].isNull())
|
||||
domainConfigs_.ipAllowListConfig.configId = ipAllowListConfigNode["ConfigId"].asString();
|
||||
if(!ipAllowListConfigNode["IpList"].isNull())
|
||||
domainConfigs_.ipAllowListConfig.ipList = ipAllowListConfigNode["IpList"].asString();
|
||||
if(!ipAllowListConfigNode["IpAclXfwd"].isNull())
|
||||
domainConfigs_.ipAllowListConfig.ipAclXfwd = ipAllowListConfigNode["IpAclXfwd"].asString();
|
||||
if(!ipAllowListConfigNode["Status"].isNull())
|
||||
domainConfigs_.ipAllowListConfig.status = ipAllowListConfigNode["Status"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainConfigsResult::DomainConfigs> DescribeDomainConfigsResult::getDomainConfigs()const
|
||||
{
|
||||
return domainConfigs_;
|
||||
}
|
||||
|
||||
DescribeDomainConfigsResult::DomainConfigs DescribeDomainConfigsResult::getDomainConfigs()const
|
||||
{
|
||||
return domainConfigs_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,34 +40,34 @@ void DescribeDomainCustomLogConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ConfigId"].isNull())
|
||||
configId_ = value["ConfigId"].asString();
|
||||
if(!value["Remark"].isNull())
|
||||
remark_ = value["Remark"].asString();
|
||||
if(!value["Sample"].isNull())
|
||||
sample_ = value["Sample"].asString();
|
||||
if(!value["Tag"].isNull())
|
||||
tag_ = value["Tag"].asString();
|
||||
if(!value["ConfigId"].isNull())
|
||||
configId_ = value["ConfigId"].asString();
|
||||
if(!value["Remark"].isNull())
|
||||
remark_ = value["Remark"].asString();
|
||||
if(!value["Sample"].isNull())
|
||||
sample_ = value["Sample"].asString();
|
||||
if(!value["Tag"].isNull())
|
||||
tag_ = value["Tag"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainCustomLogConfigResult::getSample()const
|
||||
{
|
||||
return sample_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCustomLogConfigResult::getConfigId()const
|
||||
{
|
||||
return configId_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCustomLogConfigResult::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCustomLogConfigResult::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCustomLogConfigResult::getSample()const
|
||||
{
|
||||
return sample_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCustomLogConfigResult::getConfigId()const
|
||||
{
|
||||
return configId_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCustomLogConfigResult::getTag()const
|
||||
{
|
||||
return tag_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainCustomLogConfigResult::getRemark()const
|
||||
{
|
||||
return remark_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeDomainDownstreamBpsOfEdgeResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBpsDatas = value["BpsDatas"]["DomainBpsModel"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DomainBpsModel bpsDatasObject;
|
||||
if(!value["Time"].isNull())
|
||||
bpsDatasObject.time = value["Time"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDatasObject.bps = std::stof(value["Bps"].asString());
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
auto allBpsDatas = value["BpsDatas"]["DomainBpsModel"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DomainBpsModel bpsDatasObject;
|
||||
if(!value["Time"].isNull())
|
||||
bpsDatasObject.time = value["Time"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDatasObject.bps = std::stof(value["Bps"].asString());
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainDownstreamBpsOfEdgeResult::DomainBpsModel> DescribeDomainDownstreamBpsOfEdgeResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainDownstreamBpsOfEdgeResult::DomainBpsModel> DescribeDomainDownstreamBpsOfEdgeResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,57 +40,57 @@ void DescribeDomainFileSizeProportionDataResult::parse(const std::string &payloa
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFileSizeProportionDataInterval = value["FileSizeProportionDataInterval"]["UsageData"];
|
||||
for (auto value : allFileSizeProportionDataInterval)
|
||||
{
|
||||
UsageData fileSizeProportionDataIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
fileSizeProportionDataIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
auto allValue = value["Value"]["FileSizeProportionData"];
|
||||
for (auto value : allValue)
|
||||
{
|
||||
UsageData::FileSizeProportionData valueObject;
|
||||
if(!value["FileSize"].isNull())
|
||||
valueObject.fileSize = value["FileSize"].asString();
|
||||
if(!value["Proportion"].isNull())
|
||||
valueObject.proportion = value["Proportion"].asString();
|
||||
fileSizeProportionDataIntervalObject.value.push_back(valueObject);
|
||||
}
|
||||
fileSizeProportionDataInterval_.push_back(fileSizeProportionDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allFileSizeProportionDataInterval = value["FileSizeProportionDataInterval"]["UsageData"];
|
||||
for (auto value : allFileSizeProportionDataInterval)
|
||||
{
|
||||
UsageData fileSizeProportionDataIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
fileSizeProportionDataIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
auto allValue = value["Value"]["FileSizeProportionData"];
|
||||
for (auto value : allValue)
|
||||
{
|
||||
UsageData::FileSizeProportionData valueObject;
|
||||
if(!value["FileSize"].isNull())
|
||||
valueObject.fileSize = value["FileSize"].asString();
|
||||
if(!value["Proportion"].isNull())
|
||||
valueObject.proportion = value["Proportion"].asString();
|
||||
fileSizeProportionDataIntervalObject.value.push_back(valueObject);
|
||||
}
|
||||
fileSizeProportionDataInterval_.push_back(fileSizeProportionDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainFileSizeProportionDataResult::UsageData> DescribeDomainFileSizeProportionDataResult::getFileSizeProportionDataInterval()const
|
||||
{
|
||||
return fileSizeProportionDataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFileSizeProportionDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFileSizeProportionDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFileSizeProportionDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFileSizeProportionDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainFileSizeProportionDataResult::UsageData> DescribeDomainFileSizeProportionDataResult::getFileSizeProportionDataInterval()const
|
||||
{
|
||||
return fileSizeProportionDataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFileSizeProportionDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFileSizeProportionDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFileSizeProportionDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFileSizeProportionDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,65 +40,65 @@ void DescribeDomainFlowDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFlowDataPerInterval = value["FlowDataPerInterval"]["DataModule"];
|
||||
for (auto value : allFlowDataPerInterval)
|
||||
{
|
||||
DataModule flowDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
flowDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
flowDataPerIntervalObject.value = value["Value"].asString();
|
||||
if(!value["DomesticValue"].isNull())
|
||||
flowDataPerIntervalObject.domesticValue = value["DomesticValue"].asString();
|
||||
if(!value["OverseasValue"].isNull())
|
||||
flowDataPerIntervalObject.overseasValue = value["OverseasValue"].asString();
|
||||
if(!value["DynamicValue"].isNull())
|
||||
flowDataPerIntervalObject.dynamicValue = value["DynamicValue"].asString();
|
||||
if(!value["DynamicDomesticValue"].isNull())
|
||||
flowDataPerIntervalObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
|
||||
if(!value["DynamicOverseasValue"].isNull())
|
||||
flowDataPerIntervalObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
|
||||
if(!value["StaticValue"].isNull())
|
||||
flowDataPerIntervalObject.staticValue = value["StaticValue"].asString();
|
||||
if(!value["StaticDomesticValue"].isNull())
|
||||
flowDataPerIntervalObject.staticDomesticValue = value["StaticDomesticValue"].asString();
|
||||
if(!value["StaticOverseasValue"].isNull())
|
||||
flowDataPerIntervalObject.staticOverseasValue = value["StaticOverseasValue"].asString();
|
||||
flowDataPerInterval_.push_back(flowDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allFlowDataPerInterval = value["FlowDataPerInterval"]["DataModule"];
|
||||
for (auto value : allFlowDataPerInterval)
|
||||
{
|
||||
DataModule flowDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
flowDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
flowDataPerIntervalObject.value = value["Value"].asString();
|
||||
if(!value["DomesticValue"].isNull())
|
||||
flowDataPerIntervalObject.domesticValue = value["DomesticValue"].asString();
|
||||
if(!value["OverseasValue"].isNull())
|
||||
flowDataPerIntervalObject.overseasValue = value["OverseasValue"].asString();
|
||||
if(!value["DynamicValue"].isNull())
|
||||
flowDataPerIntervalObject.dynamicValue = value["DynamicValue"].asString();
|
||||
if(!value["DynamicDomesticValue"].isNull())
|
||||
flowDataPerIntervalObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
|
||||
if(!value["DynamicOverseasValue"].isNull())
|
||||
flowDataPerIntervalObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
|
||||
if(!value["StaticValue"].isNull())
|
||||
flowDataPerIntervalObject.staticValue = value["StaticValue"].asString();
|
||||
if(!value["StaticDomesticValue"].isNull())
|
||||
flowDataPerIntervalObject.staticDomesticValue = value["StaticDomesticValue"].asString();
|
||||
if(!value["StaticOverseasValue"].isNull())
|
||||
flowDataPerIntervalObject.staticOverseasValue = value["StaticOverseasValue"].asString();
|
||||
flowDataPerInterval_.push_back(flowDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainFlowDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFlowDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainFlowDataResult::DataModule> DescribeDomainFlowDataResult::getFlowDataPerInterval()const
|
||||
{
|
||||
return flowDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFlowDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFlowDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFlowDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFlowDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainFlowDataResult::DataModule> DescribeDomainFlowDataResult::getFlowDataPerInterval()const
|
||||
{
|
||||
return flowDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFlowDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainFlowDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void DescribeDomainHitRateDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHitRateInterval = value["HitRateInterval"]["DataModule"];
|
||||
for (auto value : allHitRateInterval)
|
||||
{
|
||||
DataModule hitRateIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
hitRateIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
hitRateIntervalObject.value = value["Value"].asString();
|
||||
hitRateInterval_.push_back(hitRateIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allHitRateInterval = value["HitRateInterval"]["DataModule"];
|
||||
for (auto value : allHitRateInterval)
|
||||
{
|
||||
DataModule hitRateIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
hitRateIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
hitRateIntervalObject.value = value["Value"].asString();
|
||||
hitRateInterval_.push_back(hitRateIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainHitRateDataResult::DataModule> DescribeDomainHitRateDataResult::getHitRateInterval()const
|
||||
{
|
||||
return hitRateInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHitRateDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHitRateDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHitRateDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHitRateDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainHitRateDataResult::DataModule> DescribeDomainHitRateDataResult::getHitRateInterval()const
|
||||
{
|
||||
return hitRateInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHitRateDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHitRateDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHitRateDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHitRateDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,59 +40,59 @@ void DescribeDomainHttpCodeDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHttpCodeData = value["HttpCodeData"]["UsageData"];
|
||||
for (auto value : allHttpCodeData)
|
||||
{
|
||||
UsageData httpCodeDataObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
httpCodeDataObject.timeStamp = value["TimeStamp"].asString();
|
||||
auto allValue = value["Value"]["CodeProportionData"];
|
||||
for (auto value : allValue)
|
||||
{
|
||||
UsageData::CodeProportionData valueObject;
|
||||
if(!value["Code"].isNull())
|
||||
valueObject.code = value["Code"].asString();
|
||||
if(!value["Proportion"].isNull())
|
||||
valueObject.proportion = value["Proportion"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
valueObject.count = value["Count"].asString();
|
||||
httpCodeDataObject.value.push_back(valueObject);
|
||||
}
|
||||
httpCodeData_.push_back(httpCodeDataObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allHttpCodeData = value["HttpCodeData"]["UsageData"];
|
||||
for (auto value : allHttpCodeData)
|
||||
{
|
||||
UsageData httpCodeDataObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
httpCodeDataObject.timeStamp = value["TimeStamp"].asString();
|
||||
auto allValue = value["Value"]["CodeProportionData"];
|
||||
for (auto value : allValue)
|
||||
{
|
||||
UsageData::CodeProportionData valueObject;
|
||||
if(!value["Code"].isNull())
|
||||
valueObject.code = value["Code"].asString();
|
||||
if(!value["Proportion"].isNull())
|
||||
valueObject.proportion = value["Proportion"].asString();
|
||||
if(!value["Count"].isNull())
|
||||
valueObject.count = value["Count"].asString();
|
||||
httpCodeDataObject.value.push_back(valueObject);
|
||||
}
|
||||
httpCodeData_.push_back(httpCodeDataObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpCodeDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpCodeDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpCodeDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpCodeDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainHttpCodeDataResult::UsageData> DescribeDomainHttpCodeDataResult::getHttpCodeData()const
|
||||
{
|
||||
return httpCodeData_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpCodeDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpCodeDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpCodeDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpCodeDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainHttpCodeDataResult::UsageData> DescribeDomainHttpCodeDataResult::getHttpCodeData()const
|
||||
{
|
||||
return httpCodeData_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,115 +40,115 @@ void DescribeDomainHttpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allHttpsStatisticsInfos = value["HttpsStatisticsInfos"]["HttpsStatisticsInfo"];
|
||||
for (auto value : allHttpsStatisticsInfos)
|
||||
{
|
||||
HttpsStatisticsInfo httpsStatisticsInfosObject;
|
||||
if(!value["Time"].isNull())
|
||||
httpsStatisticsInfosObject.time = value["Time"].asString();
|
||||
if(!value["L1HttpsBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsBps = std::stof(value["L1HttpsBps"].asString());
|
||||
if(!value["L1HttpsInnerBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsInnerBps = std::stof(value["L1HttpsInnerBps"].asString());
|
||||
if(!value["L1HttpsOutBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsOutBps = std::stof(value["L1HttpsOutBps"].asString());
|
||||
if(!value["L1HttpsQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsQps = std::stol(value["L1HttpsQps"].asString());
|
||||
if(!value["L1HttpsInnerQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsInnerQps = std::stol(value["L1HttpsInnerQps"].asString());
|
||||
if(!value["L1HttpsOutQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsOutQps = std::stol(value["L1HttpsOutQps"].asString());
|
||||
if(!value["L1HttpsTtraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsTtraf = std::stol(value["L1HttpsTtraf"].asString());
|
||||
if(!value["HttpsSrcBps"].isNull())
|
||||
httpsStatisticsInfosObject.httpsSrcBps = std::stol(value["HttpsSrcBps"].asString());
|
||||
if(!value["HttpsSrcTraf"].isNull())
|
||||
httpsStatisticsInfosObject.httpsSrcTraf = std::stol(value["HttpsSrcTraf"].asString());
|
||||
if(!value["L1HttpsInnerTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsInnerTraf = std::stol(value["L1HttpsInnerTraf"].asString());
|
||||
if(!value["L1HttpsOutTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsOutTraf = std::stol(value["L1HttpsOutTraf"].asString());
|
||||
if(!value["HttpsByteHitRate"].isNull())
|
||||
httpsStatisticsInfosObject.httpsByteHitRate = std::stof(value["HttpsByteHitRate"].asString());
|
||||
if(!value["HttpsReqHitRate"].isNull())
|
||||
httpsStatisticsInfosObject.httpsReqHitRate = std::stof(value["HttpsReqHitRate"].asString());
|
||||
if(!value["L1HttpsHitRate"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsHitRate = std::stof(value["L1HttpsHitRate"].asString());
|
||||
if(!value["L1HttpsInner_acc"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsInner_acc = std::stof(value["L1HttpsInner_acc"].asString());
|
||||
if(!value["L1HttpsOut_acc"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsOut_acc = std::stof(value["L1HttpsOut_acc"].asString());
|
||||
if(!value["L1HttpsTacc"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsTacc = std::stof(value["L1HttpsTacc"].asString());
|
||||
if(!value["L1DyHttpsBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsBps = std::stof(value["L1DyHttpsBps"].asString());
|
||||
if(!value["L1DyHttpsInnerBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsInnerBps = std::stof(value["L1DyHttpsInnerBps"].asString());
|
||||
if(!value["L1DyHttpsOutBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsOutBps = std::stof(value["L1DyHttpsOutBps"].asString());
|
||||
if(!value["L1StHttpsBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsBps = std::stof(value["L1StHttpsBps"].asString());
|
||||
if(!value["L1StHttpsInnerBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsInnerBps = std::stof(value["L1StHttpsInnerBps"].asString());
|
||||
if(!value["L1StHttpsOutBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsOutBps = std::stof(value["L1StHttpsOutBps"].asString());
|
||||
if(!value["l1DyHttpsTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsTraf = std::stof(value["l1DyHttpsTraf"].asString());
|
||||
if(!value["L1DyHttpsInnerTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsInnerTraf = std::stof(value["L1DyHttpsInnerTraf"].asString());
|
||||
if(!value["L1DyHttpsOutTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsOutTraf = std::stof(value["L1DyHttpsOutTraf"].asString());
|
||||
if(!value["L1StHttpsTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsTraf = std::stof(value["L1StHttpsTraf"].asString());
|
||||
if(!value["L1StHttpsInnerTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsInnerTraf = std::stof(value["L1StHttpsInnerTraf"].asString());
|
||||
if(!value["L1StHttpsOutTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsOutTraf = std::stof(value["L1StHttpsOutTraf"].asString());
|
||||
if(!value["L1DyHttpsQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsQps = std::stof(value["L1DyHttpsQps"].asString());
|
||||
if(!value["L1DyHttpsInnerQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsInnerQps = std::stof(value["L1DyHttpsInnerQps"].asString());
|
||||
if(!value["L1DyHttpsOutQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsOutQps = std::stof(value["L1DyHttpsOutQps"].asString());
|
||||
if(!value["L1StHttpsQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsQps = std::stof(value["L1StHttpsQps"].asString());
|
||||
if(!value["L1StHttpsInnerQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsInnerQps = std::stof(value["L1StHttpsInnerQps"].asString());
|
||||
if(!value["L1StHttpsOutQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsOutQps = std::stof(value["L1StHttpsOutQps"].asString());
|
||||
if(!value["L1DyHttpsAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsAcc = std::stof(value["L1DyHttpsAcc"].asString());
|
||||
if(!value["L1DyHttpsInnerAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsInnerAcc = std::stof(value["L1DyHttpsInnerAcc"].asString());
|
||||
if(!value["L1DyHttpsOutAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsOutAcc = std::stof(value["L1DyHttpsOutAcc"].asString());
|
||||
if(!value["L1StHttpsAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsAcc = std::stof(value["L1StHttpsAcc"].asString());
|
||||
if(!value["L1StHttpsInnerAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsInnerAcc = std::stof(value["L1StHttpsInnerAcc"].asString());
|
||||
if(!value["L1StHttpsOutAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsOutAcc = std::stof(value["L1StHttpsOutAcc"].asString());
|
||||
httpsStatisticsInfos_.push_back(httpsStatisticsInfosObject);
|
||||
}
|
||||
if(!value["DomainNames"].isNull())
|
||||
domainNames_ = value["DomainNames"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
auto allHttpsStatisticsInfos = value["HttpsStatisticsInfos"]["HttpsStatisticsInfo"];
|
||||
for (auto value : allHttpsStatisticsInfos)
|
||||
{
|
||||
HttpsStatisticsInfo httpsStatisticsInfosObject;
|
||||
if(!value["Time"].isNull())
|
||||
httpsStatisticsInfosObject.time = value["Time"].asString();
|
||||
if(!value["L1HttpsBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsBps = std::stof(value["L1HttpsBps"].asString());
|
||||
if(!value["L1HttpsInnerBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsInnerBps = std::stof(value["L1HttpsInnerBps"].asString());
|
||||
if(!value["L1HttpsOutBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsOutBps = std::stof(value["L1HttpsOutBps"].asString());
|
||||
if(!value["L1HttpsQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsQps = std::stol(value["L1HttpsQps"].asString());
|
||||
if(!value["L1HttpsInnerQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsInnerQps = std::stol(value["L1HttpsInnerQps"].asString());
|
||||
if(!value["L1HttpsOutQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsOutQps = std::stol(value["L1HttpsOutQps"].asString());
|
||||
if(!value["L1HttpsTtraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsTtraf = std::stol(value["L1HttpsTtraf"].asString());
|
||||
if(!value["HttpsSrcBps"].isNull())
|
||||
httpsStatisticsInfosObject.httpsSrcBps = std::stol(value["HttpsSrcBps"].asString());
|
||||
if(!value["HttpsSrcTraf"].isNull())
|
||||
httpsStatisticsInfosObject.httpsSrcTraf = std::stol(value["HttpsSrcTraf"].asString());
|
||||
if(!value["L1HttpsInnerTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsInnerTraf = std::stol(value["L1HttpsInnerTraf"].asString());
|
||||
if(!value["L1HttpsOutTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsOutTraf = std::stol(value["L1HttpsOutTraf"].asString());
|
||||
if(!value["HttpsByteHitRate"].isNull())
|
||||
httpsStatisticsInfosObject.httpsByteHitRate = std::stof(value["HttpsByteHitRate"].asString());
|
||||
if(!value["HttpsReqHitRate"].isNull())
|
||||
httpsStatisticsInfosObject.httpsReqHitRate = std::stof(value["HttpsReqHitRate"].asString());
|
||||
if(!value["L1HttpsHitRate"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsHitRate = std::stof(value["L1HttpsHitRate"].asString());
|
||||
if(!value["L1HttpsInner_acc"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsInner_acc = std::stof(value["L1HttpsInner_acc"].asString());
|
||||
if(!value["L1HttpsOut_acc"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsOut_acc = std::stof(value["L1HttpsOut_acc"].asString());
|
||||
if(!value["L1HttpsTacc"].isNull())
|
||||
httpsStatisticsInfosObject.l1HttpsTacc = std::stof(value["L1HttpsTacc"].asString());
|
||||
if(!value["L1DyHttpsBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsBps = std::stof(value["L1DyHttpsBps"].asString());
|
||||
if(!value["L1DyHttpsInnerBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsInnerBps = std::stof(value["L1DyHttpsInnerBps"].asString());
|
||||
if(!value["L1DyHttpsOutBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsOutBps = std::stof(value["L1DyHttpsOutBps"].asString());
|
||||
if(!value["L1StHttpsBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsBps = std::stof(value["L1StHttpsBps"].asString());
|
||||
if(!value["L1StHttpsInnerBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsInnerBps = std::stof(value["L1StHttpsInnerBps"].asString());
|
||||
if(!value["L1StHttpsOutBps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsOutBps = std::stof(value["L1StHttpsOutBps"].asString());
|
||||
if(!value["l1DyHttpsTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsTraf = std::stof(value["l1DyHttpsTraf"].asString());
|
||||
if(!value["L1DyHttpsInnerTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsInnerTraf = std::stof(value["L1DyHttpsInnerTraf"].asString());
|
||||
if(!value["L1DyHttpsOutTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsOutTraf = std::stof(value["L1DyHttpsOutTraf"].asString());
|
||||
if(!value["L1StHttpsTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsTraf = std::stof(value["L1StHttpsTraf"].asString());
|
||||
if(!value["L1StHttpsInnerTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsInnerTraf = std::stof(value["L1StHttpsInnerTraf"].asString());
|
||||
if(!value["L1StHttpsOutTraf"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsOutTraf = std::stof(value["L1StHttpsOutTraf"].asString());
|
||||
if(!value["L1DyHttpsQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsQps = std::stof(value["L1DyHttpsQps"].asString());
|
||||
if(!value["L1DyHttpsInnerQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsInnerQps = std::stof(value["L1DyHttpsInnerQps"].asString());
|
||||
if(!value["L1DyHttpsOutQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsOutQps = std::stof(value["L1DyHttpsOutQps"].asString());
|
||||
if(!value["L1StHttpsQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsQps = std::stof(value["L1StHttpsQps"].asString());
|
||||
if(!value["L1StHttpsInnerQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsInnerQps = std::stof(value["L1StHttpsInnerQps"].asString());
|
||||
if(!value["L1StHttpsOutQps"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsOutQps = std::stof(value["L1StHttpsOutQps"].asString());
|
||||
if(!value["L1DyHttpsAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsAcc = std::stof(value["L1DyHttpsAcc"].asString());
|
||||
if(!value["L1DyHttpsInnerAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsInnerAcc = std::stof(value["L1DyHttpsInnerAcc"].asString());
|
||||
if(!value["L1DyHttpsOutAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1DyHttpsOutAcc = std::stof(value["L1DyHttpsOutAcc"].asString());
|
||||
if(!value["L1StHttpsAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsAcc = std::stof(value["L1StHttpsAcc"].asString());
|
||||
if(!value["L1StHttpsInnerAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsInnerAcc = std::stof(value["L1StHttpsInnerAcc"].asString());
|
||||
if(!value["L1StHttpsOutAcc"].isNull())
|
||||
httpsStatisticsInfosObject.l1StHttpsOutAcc = std::stof(value["L1StHttpsOutAcc"].asString());
|
||||
httpsStatisticsInfos_.push_back(httpsStatisticsInfosObject);
|
||||
}
|
||||
if(!value["DomainNames"].isNull())
|
||||
domainNames_ = value["DomainNames"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpsDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpsDataResult::getDomainNames()const
|
||||
{
|
||||
return domainNames_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainHttpsDataResult::HttpsStatisticsInfo> DescribeDomainHttpsDataResult::getHttpsStatisticsInfos()const
|
||||
{
|
||||
return httpsStatisticsInfos_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpsDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainHttpsDataResult::getDomainNames()const
|
||||
{
|
||||
return domainNames_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainHttpsDataResult::HttpsStatisticsInfo> DescribeDomainHttpsDataResult::getHttpsStatisticsInfos()const
|
||||
{
|
||||
return httpsStatisticsInfos_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,73 +40,73 @@ void DescribeDomainISPDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allValue = value["Value"]["ISPProportionData"];
|
||||
for (auto value : allValue)
|
||||
{
|
||||
ISPProportionData valueObject;
|
||||
if(!value["ISP"].isNull())
|
||||
valueObject.iSP = value["ISP"].asString();
|
||||
if(!value["Proportion"].isNull())
|
||||
valueObject.proportion = value["Proportion"].asString();
|
||||
if(!value["IspEname"].isNull())
|
||||
valueObject.ispEname = value["IspEname"].asString();
|
||||
if(!value["AvgObjectSize"].isNull())
|
||||
valueObject.avgObjectSize = value["AvgObjectSize"].asString();
|
||||
if(!value["AvgResponseTime"].isNull())
|
||||
valueObject.avgResponseTime = value["AvgResponseTime"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
valueObject.bps = value["Bps"].asString();
|
||||
if(!value["ByteHitRate"].isNull())
|
||||
valueObject.byteHitRate = value["ByteHitRate"].asString();
|
||||
if(!value["Qps"].isNull())
|
||||
valueObject.qps = value["Qps"].asString();
|
||||
if(!value["ReqErrRate"].isNull())
|
||||
valueObject.reqErrRate = value["ReqErrRate"].asString();
|
||||
if(!value["ReqHitRate"].isNull())
|
||||
valueObject.reqHitRate = value["ReqHitRate"].asString();
|
||||
if(!value["AvgResponseRate"].isNull())
|
||||
valueObject.avgResponseRate = value["AvgResponseRate"].asString();
|
||||
if(!value["TotalBytes"].isNull())
|
||||
valueObject.totalBytes = value["TotalBytes"].asString();
|
||||
if(!value["BytesProportion"].isNull())
|
||||
valueObject.bytesProportion = value["BytesProportion"].asString();
|
||||
if(!value["TotalQuery"].isNull())
|
||||
valueObject.totalQuery = value["TotalQuery"].asString();
|
||||
value_.push_back(valueObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allValue = value["Value"]["ISPProportionData"];
|
||||
for (auto value : allValue)
|
||||
{
|
||||
ISPProportionData valueObject;
|
||||
if(!value["ISP"].isNull())
|
||||
valueObject.iSP = value["ISP"].asString();
|
||||
if(!value["Proportion"].isNull())
|
||||
valueObject.proportion = value["Proportion"].asString();
|
||||
if(!value["IspEname"].isNull())
|
||||
valueObject.ispEname = value["IspEname"].asString();
|
||||
if(!value["AvgObjectSize"].isNull())
|
||||
valueObject.avgObjectSize = value["AvgObjectSize"].asString();
|
||||
if(!value["AvgResponseTime"].isNull())
|
||||
valueObject.avgResponseTime = value["AvgResponseTime"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
valueObject.bps = value["Bps"].asString();
|
||||
if(!value["ByteHitRate"].isNull())
|
||||
valueObject.byteHitRate = value["ByteHitRate"].asString();
|
||||
if(!value["Qps"].isNull())
|
||||
valueObject.qps = value["Qps"].asString();
|
||||
if(!value["ReqErrRate"].isNull())
|
||||
valueObject.reqErrRate = value["ReqErrRate"].asString();
|
||||
if(!value["ReqHitRate"].isNull())
|
||||
valueObject.reqHitRate = value["ReqHitRate"].asString();
|
||||
if(!value["AvgResponseRate"].isNull())
|
||||
valueObject.avgResponseRate = value["AvgResponseRate"].asString();
|
||||
if(!value["TotalBytes"].isNull())
|
||||
valueObject.totalBytes = value["TotalBytes"].asString();
|
||||
if(!value["BytesProportion"].isNull())
|
||||
valueObject.bytesProportion = value["BytesProportion"].asString();
|
||||
if(!value["TotalQuery"].isNull())
|
||||
valueObject.totalQuery = value["TotalQuery"].asString();
|
||||
value_.push_back(valueObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainISPDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainISPDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainISPDataResult::ISPProportionData> DescribeDomainISPDataResult::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainISPDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainISPDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainISPDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainISPDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainISPDataResult::ISPProportionData> DescribeDomainISPDataResult::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainISPDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainISPDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,48 +40,48 @@ void DescribeDomainMax95BpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Max95Bps"].isNull())
|
||||
max95Bps_ = value["Max95Bps"].asString();
|
||||
if(!value["DomesticMax95Bps"].isNull())
|
||||
domesticMax95Bps_ = value["DomesticMax95Bps"].asString();
|
||||
if(!value["OverseasMax95Bps"].isNull())
|
||||
overseasMax95Bps_ = value["OverseasMax95Bps"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Max95Bps"].isNull())
|
||||
max95Bps_ = value["Max95Bps"].asString();
|
||||
if(!value["DomesticMax95Bps"].isNull())
|
||||
domesticMax95Bps_ = value["DomesticMax95Bps"].asString();
|
||||
if(!value["OverseasMax95Bps"].isNull())
|
||||
overseasMax95Bps_ = value["OverseasMax95Bps"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getDomesticMax95Bps()const
|
||||
{
|
||||
return domesticMax95Bps_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getMax95Bps()const
|
||||
{
|
||||
return max95Bps_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getOverseasMax95Bps()const
|
||||
{
|
||||
return overseasMax95Bps_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getDomesticMax95Bps()const
|
||||
{
|
||||
return domesticMax95Bps_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getMax95Bps()const
|
||||
{
|
||||
return max95Bps_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMax95BpsDataResult::getOverseasMax95Bps()const
|
||||
{
|
||||
return overseasMax95Bps_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,90 +40,90 @@ void DescribeDomainMonthBillingBpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Bandwidth95Bps"].isNull())
|
||||
bandwidth95Bps_ = std::stof(value["Bandwidth95Bps"].asString());
|
||||
if(!value["DomesticBandwidth95Bps"].isNull())
|
||||
domesticBandwidth95Bps_ = std::stof(value["DomesticBandwidth95Bps"].asString());
|
||||
if(!value["OverseasBandwidth95Bps"].isNull())
|
||||
overseasBandwidth95Bps_ = std::stof(value["OverseasBandwidth95Bps"].asString());
|
||||
if(!value["MonthavgBps"].isNull())
|
||||
monthavgBps_ = std::stof(value["MonthavgBps"].asString());
|
||||
if(!value["DomesticMonthavgBps"].isNull())
|
||||
domesticMonthavgBps_ = std::stof(value["DomesticMonthavgBps"].asString());
|
||||
if(!value["OverseasMonthavgBps"].isNull())
|
||||
overseasMonthavgBps_ = std::stof(value["OverseasMonthavgBps"].asString());
|
||||
if(!value["Month4thBps"].isNull())
|
||||
month4thBps_ = std::stof(value["Month4thBps"].asString());
|
||||
if(!value["DomesticMonth4thBps"].isNull())
|
||||
domesticMonth4thBps_ = std::stof(value["DomesticMonth4thBps"].asString());
|
||||
if(!value["OverseasMonth4thBps"].isNull())
|
||||
overseasMonth4thBps_ = std::stof(value["OverseasMonth4thBps"].asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Bandwidth95Bps"].isNull())
|
||||
bandwidth95Bps_ = std::stof(value["Bandwidth95Bps"].asString());
|
||||
if(!value["DomesticBandwidth95Bps"].isNull())
|
||||
domesticBandwidth95Bps_ = std::stof(value["DomesticBandwidth95Bps"].asString());
|
||||
if(!value["OverseasBandwidth95Bps"].isNull())
|
||||
overseasBandwidth95Bps_ = std::stof(value["OverseasBandwidth95Bps"].asString());
|
||||
if(!value["MonthavgBps"].isNull())
|
||||
monthavgBps_ = std::stof(value["MonthavgBps"].asString());
|
||||
if(!value["DomesticMonthavgBps"].isNull())
|
||||
domesticMonthavgBps_ = std::stof(value["DomesticMonthavgBps"].asString());
|
||||
if(!value["OverseasMonthavgBps"].isNull())
|
||||
overseasMonthavgBps_ = std::stof(value["OverseasMonthavgBps"].asString());
|
||||
if(!value["Month4thBps"].isNull())
|
||||
month4thBps_ = std::stof(value["Month4thBps"].asString());
|
||||
if(!value["DomesticMonth4thBps"].isNull())
|
||||
domesticMonth4thBps_ = std::stof(value["DomesticMonth4thBps"].asString());
|
||||
if(!value["OverseasMonth4thBps"].isNull())
|
||||
overseasMonth4thBps_ = std::stof(value["OverseasMonth4thBps"].asString());
|
||||
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getOverseasBandwidth95Bps()const
|
||||
{
|
||||
return overseasBandwidth95Bps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getDomesticMonth4thBps()const
|
||||
{
|
||||
return domesticMonth4thBps_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMonthBillingBpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMonthBillingBpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getOverseasMonthavgBps()const
|
||||
{
|
||||
return overseasMonthavgBps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getMonth4thBps()const
|
||||
{
|
||||
return month4thBps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getDomesticMonthavgBps()const
|
||||
{
|
||||
return domesticMonthavgBps_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMonthBillingBpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getBandwidth95Bps()const
|
||||
{
|
||||
return bandwidth95Bps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getMonthavgBps()const
|
||||
{
|
||||
return monthavgBps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getOverseasMonth4thBps()const
|
||||
{
|
||||
return overseasMonth4thBps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getDomesticBandwidth95Bps()const
|
||||
{
|
||||
return domesticBandwidth95Bps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getOverseasBandwidth95Bps()const
|
||||
{
|
||||
return overseasBandwidth95Bps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getDomesticMonth4thBps()const
|
||||
{
|
||||
return domesticMonth4thBps_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMonthBillingBpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMonthBillingBpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getOverseasMonthavgBps()const
|
||||
{
|
||||
return overseasMonthavgBps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getMonth4thBps()const
|
||||
{
|
||||
return month4thBps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getDomesticMonthavgBps()const
|
||||
{
|
||||
return domesticMonthavgBps_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainMonthBillingBpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getBandwidth95Bps()const
|
||||
{
|
||||
return bandwidth95Bps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getMonthavgBps()const
|
||||
{
|
||||
return monthavgBps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getOverseasMonth4thBps()const
|
||||
{
|
||||
return overseasMonth4thBps_;
|
||||
}
|
||||
|
||||
float DescribeDomainMonthBillingBpsDataResult::getDomesticBandwidth95Bps()const
|
||||
{
|
||||
return domesticBandwidth95Bps_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeDomainOnlineUserNumberResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLiveStreamOnlineUserNumInfos = value["LiveStreamOnlineUserNumInfos"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allLiveStreamOnlineUserNumInfos)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo liveStreamOnlineUserNumInfosObject;
|
||||
if(!value["Time"].isNull())
|
||||
liveStreamOnlineUserNumInfosObject.time = value["Time"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
liveStreamOnlineUserNumInfosObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
liveStreamOnlineUserNumInfos_.push_back(liveStreamOnlineUserNumInfosObject);
|
||||
}
|
||||
auto allLiveStreamOnlineUserNumInfos = value["LiveStreamOnlineUserNumInfos"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allLiveStreamOnlineUserNumInfos)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo liveStreamOnlineUserNumInfosObject;
|
||||
if(!value["Time"].isNull())
|
||||
liveStreamOnlineUserNumInfosObject.time = value["Time"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
liveStreamOnlineUserNumInfosObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
liveStreamOnlineUserNumInfos_.push_back(liveStreamOnlineUserNumInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainOnlineUserNumberResult::LiveStreamOnlineUserNumInfo> DescribeDomainOnlineUserNumberResult::getLiveStreamOnlineUserNumInfos()const
|
||||
{
|
||||
return liveStreamOnlineUserNumInfos_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainOnlineUserNumberResult::LiveStreamOnlineUserNumInfo> DescribeDomainOnlineUserNumberResult::getLiveStreamOnlineUserNumInfos()const
|
||||
{
|
||||
return liveStreamOnlineUserNumInfos_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,74 +40,74 @@ void DescribeDomainPathDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPathDataPerInterval = value["PathDataPerInterval"]["UsageData"];
|
||||
for (auto value : allPathDataPerInterval)
|
||||
{
|
||||
UsageData pathDataPerIntervalObject;
|
||||
if(!value["Traffic"].isNull())
|
||||
pathDataPerIntervalObject.traffic = std::stoi(value["Traffic"].asString());
|
||||
if(!value["Acc"].isNull())
|
||||
pathDataPerIntervalObject.acc = std::stoi(value["Acc"].asString());
|
||||
if(!value["Path"].isNull())
|
||||
pathDataPerIntervalObject.path = value["Path"].asString();
|
||||
if(!value["Time"].isNull())
|
||||
pathDataPerIntervalObject.time = value["Time"].asString();
|
||||
pathDataPerInterval_.push_back(pathDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
auto allPathDataPerInterval = value["PathDataPerInterval"]["UsageData"];
|
||||
for (auto value : allPathDataPerInterval)
|
||||
{
|
||||
UsageData pathDataPerIntervalObject;
|
||||
if(!value["Traffic"].isNull())
|
||||
pathDataPerIntervalObject.traffic = std::stoi(value["Traffic"].asString());
|
||||
if(!value["Acc"].isNull())
|
||||
pathDataPerIntervalObject.acc = std::stoi(value["Acc"].asString());
|
||||
if(!value["Path"].isNull())
|
||||
pathDataPerIntervalObject.path = value["Path"].asString();
|
||||
if(!value["Time"].isNull())
|
||||
pathDataPerIntervalObject.time = value["Time"].asString();
|
||||
pathDataPerInterval_.push_back(pathDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
|
||||
}
|
||||
|
||||
int DescribeDomainPathDataResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPathDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
int DescribeDomainPathDataResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPathDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
int DescribeDomainPathDataResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainPathDataResult::UsageData> DescribeDomainPathDataResult::getPathDataPerInterval()const
|
||||
{
|
||||
return pathDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPathDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPathDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
int DescribeDomainPathDataResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPathDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
int DescribeDomainPathDataResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPathDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
int DescribeDomainPathDataResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainPathDataResult::UsageData> DescribeDomainPathDataResult::getPathDataPerInterval()const
|
||||
{
|
||||
return pathDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPathDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPathDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void DescribeDomainPvDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPvDataInterval = value["PvDataInterval"]["UsageData"];
|
||||
for (auto value : allPvDataInterval)
|
||||
{
|
||||
UsageData pvDataIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
pvDataIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
pvDataIntervalObject.value = value["Value"].asString();
|
||||
pvDataInterval_.push_back(pvDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allPvDataInterval = value["PvDataInterval"]["UsageData"];
|
||||
for (auto value : allPvDataInterval)
|
||||
{
|
||||
UsageData pvDataIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
pvDataIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
pvDataIntervalObject.value = value["Value"].asString();
|
||||
pvDataInterval_.push_back(pvDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainPvDataResult::UsageData> DescribeDomainPvDataResult::getPvDataInterval()const
|
||||
{
|
||||
return pvDataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainPvDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainPvDataResult::UsageData> DescribeDomainPvDataResult::getPvDataInterval()const
|
||||
{
|
||||
return pvDataInterval_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,51 +40,51 @@ void DescribeDomainQoSRtResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContent = value["Content"]["Data"];
|
||||
for (auto value : allContent)
|
||||
{
|
||||
Data contentObject;
|
||||
if(!value["More5s"].isNull())
|
||||
contentObject.more5s = value["More5s"].asString();
|
||||
if(!value["Time"].isNull())
|
||||
contentObject.time = value["Time"].asString();
|
||||
if(!value["More3s"].isNull())
|
||||
contentObject.more3s = value["More3s"].asString();
|
||||
content_.push_back(contentObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Ip"].isNull())
|
||||
ip_ = value["Ip"].asString();
|
||||
auto allContent = value["Content"]["Data"];
|
||||
for (auto value : allContent)
|
||||
{
|
||||
Data contentObject;
|
||||
if(!value["More5s"].isNull())
|
||||
contentObject.more5s = value["More5s"].asString();
|
||||
if(!value["Time"].isNull())
|
||||
contentObject.time = value["Time"].asString();
|
||||
if(!value["More3s"].isNull())
|
||||
contentObject.more3s = value["More3s"].asString();
|
||||
content_.push_back(contentObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["Ip"].isNull())
|
||||
ip_ = value["Ip"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainQoSRtResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQoSRtResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainQoSRtResult::Data> DescribeDomainQoSRtResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQoSRtResult::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQoSRtResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQoSRtResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQoSRtResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainQoSRtResult::Data> DescribeDomainQoSRtResult::getContent()const
|
||||
{
|
||||
return content_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQoSRtResult::getIp()const
|
||||
{
|
||||
return ip_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQoSRtResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,71 +40,71 @@ void DescribeDomainQpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allQpsDataInterval = value["QpsDataInterval"]["DataModule"];
|
||||
for (auto value : allQpsDataInterval)
|
||||
{
|
||||
DataModule qpsDataIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
qpsDataIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
qpsDataIntervalObject.value = value["Value"].asString();
|
||||
if(!value["DomesticValue"].isNull())
|
||||
qpsDataIntervalObject.domesticValue = value["DomesticValue"].asString();
|
||||
if(!value["OverseasValue"].isNull())
|
||||
qpsDataIntervalObject.overseasValue = value["OverseasValue"].asString();
|
||||
if(!value["AccValue"].isNull())
|
||||
qpsDataIntervalObject.accValue = value["AccValue"].asString();
|
||||
if(!value["AccDomesticValue"].isNull())
|
||||
qpsDataIntervalObject.accDomesticValue = value["AccDomesticValue"].asString();
|
||||
if(!value["AccOverseasValue"].isNull())
|
||||
qpsDataIntervalObject.accOverseasValue = value["AccOverseasValue"].asString();
|
||||
if(!value["DynamicValue"].isNull())
|
||||
qpsDataIntervalObject.dynamicValue = value["DynamicValue"].asString();
|
||||
if(!value["DynamicDomesticValue"].isNull())
|
||||
qpsDataIntervalObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
|
||||
if(!value["DynamicOverseasValue"].isNull())
|
||||
qpsDataIntervalObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
|
||||
if(!value["StaticValue"].isNull())
|
||||
qpsDataIntervalObject.staticValue = value["StaticValue"].asString();
|
||||
if(!value["StaticDomesticValue"].isNull())
|
||||
qpsDataIntervalObject.staticDomesticValue = value["StaticDomesticValue"].asString();
|
||||
if(!value["StaticOverseasValue"].isNull())
|
||||
qpsDataIntervalObject.staticOverseasValue = value["StaticOverseasValue"].asString();
|
||||
qpsDataInterval_.push_back(qpsDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allQpsDataInterval = value["QpsDataInterval"]["DataModule"];
|
||||
for (auto value : allQpsDataInterval)
|
||||
{
|
||||
DataModule qpsDataIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
qpsDataIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
qpsDataIntervalObject.value = value["Value"].asString();
|
||||
if(!value["DomesticValue"].isNull())
|
||||
qpsDataIntervalObject.domesticValue = value["DomesticValue"].asString();
|
||||
if(!value["OverseasValue"].isNull())
|
||||
qpsDataIntervalObject.overseasValue = value["OverseasValue"].asString();
|
||||
if(!value["AccValue"].isNull())
|
||||
qpsDataIntervalObject.accValue = value["AccValue"].asString();
|
||||
if(!value["AccDomesticValue"].isNull())
|
||||
qpsDataIntervalObject.accDomesticValue = value["AccDomesticValue"].asString();
|
||||
if(!value["AccOverseasValue"].isNull())
|
||||
qpsDataIntervalObject.accOverseasValue = value["AccOverseasValue"].asString();
|
||||
if(!value["DynamicValue"].isNull())
|
||||
qpsDataIntervalObject.dynamicValue = value["DynamicValue"].asString();
|
||||
if(!value["DynamicDomesticValue"].isNull())
|
||||
qpsDataIntervalObject.dynamicDomesticValue = value["DynamicDomesticValue"].asString();
|
||||
if(!value["DynamicOverseasValue"].isNull())
|
||||
qpsDataIntervalObject.dynamicOverseasValue = value["DynamicOverseasValue"].asString();
|
||||
if(!value["StaticValue"].isNull())
|
||||
qpsDataIntervalObject.staticValue = value["StaticValue"].asString();
|
||||
if(!value["StaticDomesticValue"].isNull())
|
||||
qpsDataIntervalObject.staticDomesticValue = value["StaticDomesticValue"].asString();
|
||||
if(!value["StaticOverseasValue"].isNull())
|
||||
qpsDataIntervalObject.staticOverseasValue = value["StaticOverseasValue"].asString();
|
||||
qpsDataInterval_.push_back(qpsDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainQpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQpsDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainQpsDataResult::DataModule> DescribeDomainQpsDataResult::getQpsDataInterval()const
|
||||
{
|
||||
return qpsDataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQpsDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainQpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainQpsDataResult::DataModule> DescribeDomainQpsDataResult::getQpsDataInterval()const
|
||||
{
|
||||
return qpsDataInterval_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeDomainRealTimeBpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["BpsModel"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
BpsModel dataObject;
|
||||
if(!value["Bps"].isNull())
|
||||
dataObject.bps = std::stof(value["Bps"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataObject.timeStamp = value["TimeStamp"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
auto allData = value["Data"]["BpsModel"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
BpsModel dataObject;
|
||||
if(!value["Bps"].isNull())
|
||||
dataObject.bps = std::stof(value["Bps"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataObject.timeStamp = value["TimeStamp"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeBpsDataResult::BpsModel> DescribeDomainRealTimeBpsDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeBpsDataResult::BpsModel> DescribeDomainRealTimeBpsDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeDomainRealTimeByteHitRateDataResult::parse(const std::string &paylo
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["ByteHitRateDataModel"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
ByteHitRateDataModel dataObject;
|
||||
if(!value["ByteHitRate"].isNull())
|
||||
dataObject.byteHitRate = std::stof(value["ByteHitRate"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataObject.timeStamp = value["TimeStamp"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
auto allData = value["Data"]["ByteHitRateDataModel"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
ByteHitRateDataModel dataObject;
|
||||
if(!value["ByteHitRate"].isNull())
|
||||
dataObject.byteHitRate = std::stof(value["ByteHitRate"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataObject.timeStamp = value["TimeStamp"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeByteHitRateDataResult::ByteHitRateDataModel> DescribeDomainRealTimeByteHitRateDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeByteHitRateDataResult::ByteHitRateDataModel> DescribeDomainRealTimeByteHitRateDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void DescribeDomainRealTimeDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataPerInterval = value["DataPerInterval"]["DataModule"];
|
||||
for (auto value : allDataPerInterval)
|
||||
{
|
||||
DataModule dataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
dataPerIntervalObject.value = value["Value"].asString();
|
||||
dataPerInterval_.push_back(dataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["Field"].isNull())
|
||||
field_ = value["Field"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allDataPerInterval = value["DataPerInterval"]["DataModule"];
|
||||
for (auto value : allDataPerInterval)
|
||||
{
|
||||
DataModule dataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
dataPerIntervalObject.value = value["Value"].asString();
|
||||
dataPerInterval_.push_back(dataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["Field"].isNull())
|
||||
field_ = value["Field"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainRealTimeDataResult::getField()const
|
||||
{
|
||||
return field_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRealTimeDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRealTimeDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRealTimeDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeDataResult::DataModule> DescribeDomainRealTimeDataResult::getDataPerInterval()const
|
||||
{
|
||||
return dataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRealTimeDataResult::getField()const
|
||||
{
|
||||
return field_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRealTimeDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRealTimeDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRealTimeDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeDataResult::DataModule> DescribeDomainRealTimeDataResult::getDataPerInterval()const
|
||||
{
|
||||
return dataPerInterval_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeDomainRealTimeQpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["QpsModel"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
QpsModel dataObject;
|
||||
if(!value["Qps"].isNull())
|
||||
dataObject.qps = std::stof(value["Qps"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataObject.timeStamp = value["TimeStamp"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
auto allData = value["Data"]["QpsModel"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
QpsModel dataObject;
|
||||
if(!value["Qps"].isNull())
|
||||
dataObject.qps = std::stof(value["Qps"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataObject.timeStamp = value["TimeStamp"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeQpsDataResult::QpsModel> DescribeDomainRealTimeQpsDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeQpsDataResult::QpsModel> DescribeDomainRealTimeQpsDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeDomainRealTimeReqHitRateDataResult::parse(const std::string &payloa
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allData = value["Data"]["ReqHitRateDataModel"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
ReqHitRateDataModel dataObject;
|
||||
if(!value["ReqHitRate"].isNull())
|
||||
dataObject.reqHitRate = std::stof(value["ReqHitRate"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataObject.timeStamp = value["TimeStamp"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
auto allData = value["Data"]["ReqHitRateDataModel"];
|
||||
for (auto value : allData)
|
||||
{
|
||||
ReqHitRateDataModel dataObject;
|
||||
if(!value["ReqHitRate"].isNull())
|
||||
dataObject.reqHitRate = std::stof(value["ReqHitRate"].asString());
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataObject.timeStamp = value["TimeStamp"].asString();
|
||||
data_.push_back(dataObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeReqHitRateDataResult::ReqHitRateDataModel> DescribeDomainRealTimeReqHitRateDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRealTimeReqHitRateDataResult::ReqHitRateDataModel> DescribeDomainRealTimeReqHitRateDataResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,73 +40,73 @@ void DescribeDomainRegionDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allValue = value["Value"]["RegionProportionData"];
|
||||
for (auto value : allValue)
|
||||
{
|
||||
RegionProportionData valueObject;
|
||||
if(!value["Region"].isNull())
|
||||
valueObject.region = value["Region"].asString();
|
||||
if(!value["Proportion"].isNull())
|
||||
valueObject.proportion = value["Proportion"].asString();
|
||||
if(!value["RegionEname"].isNull())
|
||||
valueObject.regionEname = value["RegionEname"].asString();
|
||||
if(!value["AvgObjectSize"].isNull())
|
||||
valueObject.avgObjectSize = value["AvgObjectSize"].asString();
|
||||
if(!value["AvgResponseTime"].isNull())
|
||||
valueObject.avgResponseTime = value["AvgResponseTime"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
valueObject.bps = value["Bps"].asString();
|
||||
if(!value["ByteHitRate"].isNull())
|
||||
valueObject.byteHitRate = value["ByteHitRate"].asString();
|
||||
if(!value["Qps"].isNull())
|
||||
valueObject.qps = value["Qps"].asString();
|
||||
if(!value["ReqErrRate"].isNull())
|
||||
valueObject.reqErrRate = value["ReqErrRate"].asString();
|
||||
if(!value["ReqHitRate"].isNull())
|
||||
valueObject.reqHitRate = value["ReqHitRate"].asString();
|
||||
if(!value["AvgResponseRate"].isNull())
|
||||
valueObject.avgResponseRate = value["AvgResponseRate"].asString();
|
||||
if(!value["TotalBytes"].isNull())
|
||||
valueObject.totalBytes = value["TotalBytes"].asString();
|
||||
if(!value["BytesProportion"].isNull())
|
||||
valueObject.bytesProportion = value["BytesProportion"].asString();
|
||||
if(!value["TotalQuery"].isNull())
|
||||
valueObject.totalQuery = value["TotalQuery"].asString();
|
||||
value_.push_back(valueObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allValue = value["Value"]["RegionProportionData"];
|
||||
for (auto value : allValue)
|
||||
{
|
||||
RegionProportionData valueObject;
|
||||
if(!value["Region"].isNull())
|
||||
valueObject.region = value["Region"].asString();
|
||||
if(!value["Proportion"].isNull())
|
||||
valueObject.proportion = value["Proportion"].asString();
|
||||
if(!value["RegionEname"].isNull())
|
||||
valueObject.regionEname = value["RegionEname"].asString();
|
||||
if(!value["AvgObjectSize"].isNull())
|
||||
valueObject.avgObjectSize = value["AvgObjectSize"].asString();
|
||||
if(!value["AvgResponseTime"].isNull())
|
||||
valueObject.avgResponseTime = value["AvgResponseTime"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
valueObject.bps = value["Bps"].asString();
|
||||
if(!value["ByteHitRate"].isNull())
|
||||
valueObject.byteHitRate = value["ByteHitRate"].asString();
|
||||
if(!value["Qps"].isNull())
|
||||
valueObject.qps = value["Qps"].asString();
|
||||
if(!value["ReqErrRate"].isNull())
|
||||
valueObject.reqErrRate = value["ReqErrRate"].asString();
|
||||
if(!value["ReqHitRate"].isNull())
|
||||
valueObject.reqHitRate = value["ReqHitRate"].asString();
|
||||
if(!value["AvgResponseRate"].isNull())
|
||||
valueObject.avgResponseRate = value["AvgResponseRate"].asString();
|
||||
if(!value["TotalBytes"].isNull())
|
||||
valueObject.totalBytes = value["TotalBytes"].asString();
|
||||
if(!value["BytesProportion"].isNull())
|
||||
valueObject.bytesProportion = value["BytesProportion"].asString();
|
||||
if(!value["TotalQuery"].isNull())
|
||||
valueObject.totalQuery = value["TotalQuery"].asString();
|
||||
value_.push_back(valueObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainRegionDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRegionDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRegionDataResult::RegionProportionData> DescribeDomainRegionDataResult::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRegionDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRegionDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRegionDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRegionDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainRegionDataResult::RegionProportionData> DescribeDomainRegionDataResult::getValue()const
|
||||
{
|
||||
return value_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRegionDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainRegionDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void DescribeDomainReqHitRateDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allReqHitRateInterval = value["ReqHitRateInterval"]["DataModule"];
|
||||
for (auto value : allReqHitRateInterval)
|
||||
{
|
||||
DataModule reqHitRateIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
reqHitRateIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
reqHitRateIntervalObject.value = value["Value"].asString();
|
||||
reqHitRateInterval_.push_back(reqHitRateIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allReqHitRateInterval = value["ReqHitRateInterval"]["DataModule"];
|
||||
for (auto value : allReqHitRateInterval)
|
||||
{
|
||||
DataModule reqHitRateIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
reqHitRateIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
reqHitRateIntervalObject.value = value["Value"].asString();
|
||||
reqHitRateInterval_.push_back(reqHitRateIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainReqHitRateDataResult::DataModule> DescribeDomainReqHitRateDataResult::getReqHitRateInterval()const
|
||||
{
|
||||
return reqHitRateInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainReqHitRateDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainReqHitRateDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainReqHitRateDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainReqHitRateDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainReqHitRateDataResult::DataModule> DescribeDomainReqHitRateDataResult::getReqHitRateInterval()const
|
||||
{
|
||||
return reqHitRateInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainReqHitRateDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainReqHitRateDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainReqHitRateDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainReqHitRateDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,75 +40,75 @@ void DescribeDomainSlowRatioResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSlowRatioDataPerInterval = value["SlowRatioDataPerInterval"]["SlowRatioData"];
|
||||
for (auto value : allSlowRatioDataPerInterval)
|
||||
{
|
||||
SlowRatioData slowRatioDataPerIntervalObject;
|
||||
if(!value["TotalUsers"].isNull())
|
||||
slowRatioDataPerIntervalObject.totalUsers = std::stoi(value["TotalUsers"].asString());
|
||||
if(!value["SlowUsers"].isNull())
|
||||
slowRatioDataPerIntervalObject.slowUsers = std::stoi(value["SlowUsers"].asString());
|
||||
if(!value["SlowRatio"].isNull())
|
||||
slowRatioDataPerIntervalObject.slowRatio = std::stof(value["SlowRatio"].asString());
|
||||
if(!value["RegionNameZh"].isNull())
|
||||
slowRatioDataPerIntervalObject.regionNameZh = value["RegionNameZh"].asString();
|
||||
if(!value["RegionNameEn"].isNull())
|
||||
slowRatioDataPerIntervalObject.regionNameEn = value["RegionNameEn"].asString();
|
||||
if(!value["IspNameZh"].isNull())
|
||||
slowRatioDataPerIntervalObject.ispNameZh = value["IspNameZh"].asString();
|
||||
if(!value["IspNameEn"].isNull())
|
||||
slowRatioDataPerIntervalObject.ispNameEn = value["IspNameEn"].asString();
|
||||
if(!value["Time"].isNull())
|
||||
slowRatioDataPerIntervalObject.time = value["Time"].asString();
|
||||
slowRatioDataPerInterval_.push_back(slowRatioDataPerIntervalObject);
|
||||
}
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = std::stoi(value["DataInterval"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
auto allSlowRatioDataPerInterval = value["SlowRatioDataPerInterval"]["SlowRatioData"];
|
||||
for (auto value : allSlowRatioDataPerInterval)
|
||||
{
|
||||
SlowRatioData slowRatioDataPerIntervalObject;
|
||||
if(!value["TotalUsers"].isNull())
|
||||
slowRatioDataPerIntervalObject.totalUsers = std::stoi(value["TotalUsers"].asString());
|
||||
if(!value["SlowUsers"].isNull())
|
||||
slowRatioDataPerIntervalObject.slowUsers = std::stoi(value["SlowUsers"].asString());
|
||||
if(!value["SlowRatio"].isNull())
|
||||
slowRatioDataPerIntervalObject.slowRatio = std::stof(value["SlowRatio"].asString());
|
||||
if(!value["RegionNameZh"].isNull())
|
||||
slowRatioDataPerIntervalObject.regionNameZh = value["RegionNameZh"].asString();
|
||||
if(!value["RegionNameEn"].isNull())
|
||||
slowRatioDataPerIntervalObject.regionNameEn = value["RegionNameEn"].asString();
|
||||
if(!value["IspNameZh"].isNull())
|
||||
slowRatioDataPerIntervalObject.ispNameZh = value["IspNameZh"].asString();
|
||||
if(!value["IspNameEn"].isNull())
|
||||
slowRatioDataPerIntervalObject.ispNameEn = value["IspNameEn"].asString();
|
||||
if(!value["Time"].isNull())
|
||||
slowRatioDataPerIntervalObject.time = value["Time"].asString();
|
||||
slowRatioDataPerInterval_.push_back(slowRatioDataPerIntervalObject);
|
||||
}
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = std::stoi(value["DataInterval"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = std::stoi(value["TotalCount"].asString());
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
int DescribeDomainSlowRatioResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSlowRatioResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
int DescribeDomainSlowRatioResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDomainSlowRatioResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeDomainSlowRatioResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSlowRatioResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainSlowRatioResult::SlowRatioData> DescribeDomainSlowRatioResult::getSlowRatioDataPerInterval()const
|
||||
{
|
||||
return slowRatioDataPerInterval_;
|
||||
}
|
||||
|
||||
int DescribeDomainSlowRatioResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSlowRatioResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
int DescribeDomainSlowRatioResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeDomainSlowRatioResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeDomainSlowRatioResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSlowRatioResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainSlowRatioResult::SlowRatioData> DescribeDomainSlowRatioResult::getSlowRatioDataPerInterval()const
|
||||
{
|
||||
return slowRatioDataPerInterval_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void DescribeDomainSrcBpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSrcBpsDataPerInterval = value["SrcBpsDataPerInterval"]["DataModule"];
|
||||
for (auto value : allSrcBpsDataPerInterval)
|
||||
{
|
||||
DataModule srcBpsDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
srcBpsDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
srcBpsDataPerIntervalObject.value = value["Value"].asString();
|
||||
srcBpsDataPerInterval_.push_back(srcBpsDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
auto allSrcBpsDataPerInterval = value["SrcBpsDataPerInterval"]["DataModule"];
|
||||
for (auto value : allSrcBpsDataPerInterval)
|
||||
{
|
||||
DataModule srcBpsDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
srcBpsDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
srcBpsDataPerIntervalObject.value = value["Value"].asString();
|
||||
srcBpsDataPerInterval_.push_back(srcBpsDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainSrcBpsDataResult::DataModule> DescribeDomainSrcBpsDataResult::getSrcBpsDataPerInterval()const
|
||||
{
|
||||
return srcBpsDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcBpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcBpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcBpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcBpsDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainSrcBpsDataResult::DataModule> DescribeDomainSrcBpsDataResult::getSrcBpsDataPerInterval()const
|
||||
{
|
||||
return srcBpsDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcBpsDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcBpsDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcBpsDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcBpsDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void DescribeDomainSrcFlowDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allSrcFlowDataPerInterval = value["SrcFlowDataPerInterval"]["DataModule"];
|
||||
for (auto value : allSrcFlowDataPerInterval)
|
||||
{
|
||||
DataModule srcFlowDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
srcFlowDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
srcFlowDataPerIntervalObject.value = value["Value"].asString();
|
||||
srcFlowDataPerInterval_.push_back(srcFlowDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
auto allSrcFlowDataPerInterval = value["SrcFlowDataPerInterval"]["DataModule"];
|
||||
for (auto value : allSrcFlowDataPerInterval)
|
||||
{
|
||||
DataModule srcFlowDataPerIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
srcFlowDataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
srcFlowDataPerIntervalObject.value = value["Value"].asString();
|
||||
srcFlowDataPerInterval_.push_back(srcFlowDataPerIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcFlowDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcFlowDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcFlowDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcFlowDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainSrcFlowDataResult::DataModule> DescribeDomainSrcFlowDataResult::getSrcFlowDataPerInterval()const
|
||||
{
|
||||
return srcFlowDataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcFlowDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcFlowDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcFlowDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainSrcFlowDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainSrcFlowDataResult::DataModule> DescribeDomainSrcFlowDataResult::getSrcFlowDataPerInterval()const
|
||||
{
|
||||
return srcFlowDataPerInterval_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,41 +40,41 @@ void DescribeDomainTopReferVisitResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allTopReferList = value["TopReferList"]["ReferList"];
|
||||
for (auto value : allTopReferList)
|
||||
{
|
||||
ReferList topReferListObject;
|
||||
if(!value["ReferDetail"].isNull())
|
||||
topReferListObject.referDetail = value["ReferDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
topReferListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
topReferListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
topReferListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
topReferListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
topReferList_.push_back(topReferListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
auto allTopReferList = value["TopReferList"]["ReferList"];
|
||||
for (auto value : allTopReferList)
|
||||
{
|
||||
ReferList topReferListObject;
|
||||
if(!value["ReferDetail"].isNull())
|
||||
topReferListObject.referDetail = value["ReferDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
topReferListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
topReferListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
topReferListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
topReferListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
topReferList_.push_back(topReferListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeDomainTopReferVisitResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainTopReferVisitResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopReferVisitResult::ReferList> DescribeDomainTopReferVisitResult::getTopReferList()const
|
||||
{
|
||||
return topReferList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainTopReferVisitResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainTopReferVisitResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopReferVisitResult::ReferList> DescribeDomainTopReferVisitResult::getTopReferList()const
|
||||
{
|
||||
return topReferList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,125 +40,125 @@ void DescribeDomainTopUrlVisitResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAllUrlList = value["AllUrlList"]["UrlList"];
|
||||
for (auto value : allAllUrlList)
|
||||
{
|
||||
UrlList allUrlListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
allUrlListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
allUrlListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
allUrlListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
allUrlListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
allUrlListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
allUrlList_.push_back(allUrlListObject);
|
||||
}
|
||||
auto allUrl200List = value["Url200List"]["UrlList"];
|
||||
for (auto value : allUrl200List)
|
||||
{
|
||||
UrlList url200ListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
url200ListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
url200ListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
url200ListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
url200ListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
url200ListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
url200List_.push_back(url200ListObject);
|
||||
}
|
||||
auto allUrl300List = value["Url300List"]["UrlList"];
|
||||
for (auto value : allUrl300List)
|
||||
{
|
||||
UrlList url300ListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
url300ListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
url300ListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
url300ListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
url300ListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
url300ListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
url300List_.push_back(url300ListObject);
|
||||
}
|
||||
auto allUrl400List = value["Url400List"]["UrlList"];
|
||||
for (auto value : allUrl400List)
|
||||
{
|
||||
UrlList url400ListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
url400ListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
url400ListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
url400ListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
url400ListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
url400ListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
url400List_.push_back(url400ListObject);
|
||||
}
|
||||
auto allUrl500List = value["Url500List"]["UrlList"];
|
||||
for (auto value : allUrl500List)
|
||||
{
|
||||
UrlList url500ListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
url500ListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
url500ListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
url500ListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
url500ListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
url500ListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
url500List_.push_back(url500ListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
auto allAllUrlList = value["AllUrlList"]["UrlList"];
|
||||
for (auto value : allAllUrlList)
|
||||
{
|
||||
UrlList allUrlListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
allUrlListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
allUrlListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
allUrlListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
allUrlListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
allUrlListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
allUrlList_.push_back(allUrlListObject);
|
||||
}
|
||||
auto allUrl200List = value["Url200List"]["UrlList"];
|
||||
for (auto value : allUrl200List)
|
||||
{
|
||||
UrlList url200ListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
url200ListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
url200ListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
url200ListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
url200ListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
url200ListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
url200List_.push_back(url200ListObject);
|
||||
}
|
||||
auto allUrl300List = value["Url300List"]["UrlList"];
|
||||
for (auto value : allUrl300List)
|
||||
{
|
||||
UrlList url300ListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
url300ListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
url300ListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
url300ListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
url300ListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
url300ListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
url300List_.push_back(url300ListObject);
|
||||
}
|
||||
auto allUrl400List = value["Url400List"]["UrlList"];
|
||||
for (auto value : allUrl400List)
|
||||
{
|
||||
UrlList url400ListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
url400ListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
url400ListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
url400ListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
url400ListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
url400ListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
url400List_.push_back(url400ListObject);
|
||||
}
|
||||
auto allUrl500List = value["Url500List"]["UrlList"];
|
||||
for (auto value : allUrl500List)
|
||||
{
|
||||
UrlList url500ListObject;
|
||||
if(!value["UrlDetail"].isNull())
|
||||
url500ListObject.urlDetail = value["UrlDetail"].asString();
|
||||
if(!value["VisitData"].isNull())
|
||||
url500ListObject.visitData = value["VisitData"].asString();
|
||||
if(!value["VisitProportion"].isNull())
|
||||
url500ListObject.visitProportion = std::stof(value["VisitProportion"].asString());
|
||||
if(!value["Flow"].isNull())
|
||||
url500ListObject.flow = value["Flow"].asString();
|
||||
if(!value["FlowProportion"].isNull())
|
||||
url500ListObject.flowProportion = std::stof(value["FlowProportion"].asString());
|
||||
url500List_.push_back(url500ListObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getUrl200List()const
|
||||
{
|
||||
return url200List_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getUrl500List()const
|
||||
{
|
||||
return url500List_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getUrl400List()const
|
||||
{
|
||||
return url400List_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainTopUrlVisitResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainTopUrlVisitResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getUrl300List()const
|
||||
{
|
||||
return url300List_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getAllUrlList()const
|
||||
{
|
||||
return allUrlList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getUrl200List()const
|
||||
{
|
||||
return url200List_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getUrl500List()const
|
||||
{
|
||||
return url500List_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getUrl400List()const
|
||||
{
|
||||
return url400List_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainTopUrlVisitResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainTopUrlVisitResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getUrl300List()const
|
||||
{
|
||||
return url300List_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainTopUrlVisitResult::UrlList> DescribeDomainTopUrlVisitResult::getAllUrlList()const
|
||||
{
|
||||
return allUrlList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeDomainUpstreamBpsOfEdgeResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBpsDatas = value["BpsDatas"]["DomainBpsModel"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DomainBpsModel bpsDatasObject;
|
||||
if(!value["Time"].isNull())
|
||||
bpsDatasObject.time = value["Time"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDatasObject.bps = std::stof(value["Bps"].asString());
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
auto allBpsDatas = value["BpsDatas"]["DomainBpsModel"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DomainBpsModel bpsDatasObject;
|
||||
if(!value["Time"].isNull())
|
||||
bpsDatasObject.time = value["Time"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDatasObject.bps = std::stof(value["Bps"].asString());
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainUpstreamBpsOfEdgeResult::DomainBpsModel> DescribeDomainUpstreamBpsOfEdgeResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainUpstreamBpsOfEdgeResult::DomainBpsModel> DescribeDomainUpstreamBpsOfEdgeResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeDomainUpstreamOfCenterResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBpsDatas = value["BpsDatas"]["DomainBpsModel"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DomainBpsModel bpsDatasObject;
|
||||
if(!value["Time"].isNull())
|
||||
bpsDatasObject.time = value["Time"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDatasObject.bps = std::stof(value["Bps"].asString());
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
auto allBpsDatas = value["BpsDatas"]["DomainBpsModel"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DomainBpsModel bpsDatasObject;
|
||||
if(!value["Time"].isNull())
|
||||
bpsDatasObject.time = value["Time"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDatasObject.bps = std::stof(value["Bps"].asString());
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainUpstreamOfCenterResult::DomainBpsModel> DescribeDomainUpstreamOfCenterResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainUpstreamOfCenterResult::DomainBpsModel> DescribeDomainUpstreamOfCenterResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,49 +40,49 @@ void DescribeDomainUvDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUvDataInterval = value["UvDataInterval"]["UsageData"];
|
||||
for (auto value : allUvDataInterval)
|
||||
{
|
||||
UsageData uvDataIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
uvDataIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
uvDataIntervalObject.value = value["Value"].asString();
|
||||
uvDataInterval_.push_back(uvDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allUvDataInterval = value["UvDataInterval"]["UsageData"];
|
||||
for (auto value : allUvDataInterval)
|
||||
{
|
||||
UsageData uvDataIntervalObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
uvDataIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Value"].isNull())
|
||||
uvDataIntervalObject.value = value["Value"].asString();
|
||||
uvDataInterval_.push_back(uvDataIntervalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainUvDataResult::UsageData> DescribeDomainUvDataResult::getUvDataInterval()const
|
||||
{
|
||||
return uvDataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainUvDataResult::UsageData> DescribeDomainUvDataResult::getUvDataInterval()const
|
||||
{
|
||||
return uvDataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainUvDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,45 +40,45 @@ void DescribeDomainsBySourceResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainsList = value["DomainsList"]["DomainsData"];
|
||||
for (auto value : allDomainsList)
|
||||
{
|
||||
DomainsData domainsListObject;
|
||||
if(!value["Source"].isNull())
|
||||
domainsListObject.source = value["Source"].asString();
|
||||
auto allDomainInfos = value["DomainInfos"]["domainInfo"];
|
||||
for (auto value : allDomainInfos)
|
||||
{
|
||||
DomainsData::DomainInfo domainInfosObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
domainInfosObject.domainName = value["DomainName"].asString();
|
||||
if(!value["DomainCname"].isNull())
|
||||
domainInfosObject.domainCname = value["DomainCname"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
domainInfosObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
domainInfosObject.updateTime = value["UpdateTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
domainInfosObject.status = value["Status"].asString();
|
||||
domainsListObject.domainInfos.push_back(domainInfosObject);
|
||||
}
|
||||
auto allDomains = value["Domains"]["domainNames"];
|
||||
for (auto value : allDomains)
|
||||
domainsListObject.domains.push_back(value.asString());
|
||||
domainsList_.push_back(domainsListObject);
|
||||
}
|
||||
if(!value["Sources"].isNull())
|
||||
sources_ = value["Sources"].asString();
|
||||
auto allDomainsList = value["DomainsList"]["DomainsData"];
|
||||
for (auto value : allDomainsList)
|
||||
{
|
||||
DomainsData domainsListObject;
|
||||
if(!value["Source"].isNull())
|
||||
domainsListObject.source = value["Source"].asString();
|
||||
auto allDomainInfos = value["DomainInfos"]["domainInfo"];
|
||||
for (auto value : allDomainInfos)
|
||||
{
|
||||
DomainsData::DomainInfo domainInfosObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
domainInfosObject.domainName = value["DomainName"].asString();
|
||||
if(!value["DomainCname"].isNull())
|
||||
domainInfosObject.domainCname = value["DomainCname"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
domainInfosObject.createTime = value["CreateTime"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
domainInfosObject.updateTime = value["UpdateTime"].asString();
|
||||
if(!value["Status"].isNull())
|
||||
domainInfosObject.status = value["Status"].asString();
|
||||
domainsListObject.domainInfos.push_back(domainInfosObject);
|
||||
}
|
||||
auto allDomains = value["Domains"]["domainNames"];
|
||||
for (auto value : allDomains)
|
||||
domainsListObject.domains.push_back(value.asString());
|
||||
domainsList_.push_back(domainsListObject);
|
||||
}
|
||||
if(!value["Sources"].isNull())
|
||||
sources_ = value["Sources"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainsBySourceResult::DomainsData> DescribeDomainsBySourceResult::getDomainsList()const
|
||||
{
|
||||
return domainsList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsBySourceResult::getSources()const
|
||||
{
|
||||
return sources_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainsBySourceResult::DomainsData> DescribeDomainsBySourceResult::getDomainsList()const
|
||||
{
|
||||
return domainsList_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsBySourceResult::getSources()const
|
||||
{
|
||||
return sources_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,92 +40,87 @@ void DescribeDomainsUsageByDayResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUsageByDays = value["UsageByDays"]["UsageByDay"];
|
||||
for (auto value : allUsageByDays)
|
||||
{
|
||||
UsageByDay usageByDaysObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
usageByDaysObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Qps"].isNull())
|
||||
usageByDaysObject.qps = value["Qps"].asString();
|
||||
if(!value["BytesHitRate"].isNull())
|
||||
usageByDaysObject.bytesHitRate = value["BytesHitRate"].asString();
|
||||
if(!value["RequestHitRate"].isNull())
|
||||
usageByDaysObject.requestHitRate = value["RequestHitRate"].asString();
|
||||
if(!value["MaxBps"].isNull())
|
||||
usageByDaysObject.maxBps = value["MaxBps"].asString();
|
||||
if(!value["MaxBpsTime"].isNull())
|
||||
usageByDaysObject.maxBpsTime = value["MaxBpsTime"].asString();
|
||||
if(!value["MaxSrcBps"].isNull())
|
||||
usageByDaysObject.maxSrcBps = value["MaxSrcBps"].asString();
|
||||
if(!value["MaxSrcBpsTime"].isNull())
|
||||
usageByDaysObject.maxSrcBpsTime = value["MaxSrcBpsTime"].asString();
|
||||
if(!value["TotalAccess"].isNull())
|
||||
usageByDaysObject.totalAccess = value["TotalAccess"].asString();
|
||||
if(!value["TotalTraffic"].isNull())
|
||||
usageByDaysObject.totalTraffic = value["TotalTraffic"].asString();
|
||||
usageByDays_.push_back(usageByDaysObject);
|
||||
}
|
||||
auto allUsageTotal = value["UsageTotal"];
|
||||
for (auto value : allUsageTotal)
|
||||
{
|
||||
UsageTotal usageTotalObject;
|
||||
if(!value["BytesHitRate"].isNull())
|
||||
usageTotalObject.bytesHitRate = value["BytesHitRate"].asString();
|
||||
if(!value["RequestHitRate"].isNull())
|
||||
usageTotalObject.requestHitRate = value["RequestHitRate"].asString();
|
||||
if(!value["MaxBps"].isNull())
|
||||
usageTotalObject.maxBps = value["MaxBps"].asString();
|
||||
if(!value["MaxBpsTime"].isNull())
|
||||
usageTotalObject.maxBpsTime = value["MaxBpsTime"].asString();
|
||||
if(!value["MaxSrcBps"].isNull())
|
||||
usageTotalObject.maxSrcBps = value["MaxSrcBps"].asString();
|
||||
if(!value["MaxSrcBpsTime"].isNull())
|
||||
usageTotalObject.maxSrcBpsTime = value["MaxSrcBpsTime"].asString();
|
||||
if(!value["TotalAccess"].isNull())
|
||||
usageTotalObject.totalAccess = value["TotalAccess"].asString();
|
||||
if(!value["TotalTraffic"].isNull())
|
||||
usageTotalObject.totalTraffic = value["TotalTraffic"].asString();
|
||||
usageTotal_.push_back(usageTotalObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
auto allUsageByDays = value["UsageByDays"]["UsageByDay"];
|
||||
for (auto value : allUsageByDays)
|
||||
{
|
||||
UsageByDay usageByDaysObject;
|
||||
if(!value["TimeStamp"].isNull())
|
||||
usageByDaysObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Qps"].isNull())
|
||||
usageByDaysObject.qps = value["Qps"].asString();
|
||||
if(!value["BytesHitRate"].isNull())
|
||||
usageByDaysObject.bytesHitRate = value["BytesHitRate"].asString();
|
||||
if(!value["RequestHitRate"].isNull())
|
||||
usageByDaysObject.requestHitRate = value["RequestHitRate"].asString();
|
||||
if(!value["MaxBps"].isNull())
|
||||
usageByDaysObject.maxBps = value["MaxBps"].asString();
|
||||
if(!value["MaxBpsTime"].isNull())
|
||||
usageByDaysObject.maxBpsTime = value["MaxBpsTime"].asString();
|
||||
if(!value["MaxSrcBps"].isNull())
|
||||
usageByDaysObject.maxSrcBps = value["MaxSrcBps"].asString();
|
||||
if(!value["MaxSrcBpsTime"].isNull())
|
||||
usageByDaysObject.maxSrcBpsTime = value["MaxSrcBpsTime"].asString();
|
||||
if(!value["TotalAccess"].isNull())
|
||||
usageByDaysObject.totalAccess = value["TotalAccess"].asString();
|
||||
if(!value["TotalTraffic"].isNull())
|
||||
usageByDaysObject.totalTraffic = value["TotalTraffic"].asString();
|
||||
usageByDays_.push_back(usageByDaysObject);
|
||||
}
|
||||
auto usageTotalNode = value["UsageTotal"];
|
||||
if(!usageTotalNode["BytesHitRate"].isNull())
|
||||
usageTotal_.bytesHitRate = usageTotalNode["BytesHitRate"].asString();
|
||||
if(!usageTotalNode["RequestHitRate"].isNull())
|
||||
usageTotal_.requestHitRate = usageTotalNode["RequestHitRate"].asString();
|
||||
if(!usageTotalNode["MaxBps"].isNull())
|
||||
usageTotal_.maxBps = usageTotalNode["MaxBps"].asString();
|
||||
if(!usageTotalNode["MaxBpsTime"].isNull())
|
||||
usageTotal_.maxBpsTime = usageTotalNode["MaxBpsTime"].asString();
|
||||
if(!usageTotalNode["MaxSrcBps"].isNull())
|
||||
usageTotal_.maxSrcBps = usageTotalNode["MaxSrcBps"].asString();
|
||||
if(!usageTotalNode["MaxSrcBpsTime"].isNull())
|
||||
usageTotal_.maxSrcBpsTime = usageTotalNode["MaxSrcBpsTime"].asString();
|
||||
if(!usageTotalNode["TotalAccess"].isNull())
|
||||
usageTotal_.totalAccess = usageTotalNode["TotalAccess"].asString();
|
||||
if(!usageTotalNode["TotalTraffic"].isNull())
|
||||
usageTotal_.totalTraffic = usageTotalNode["TotalTraffic"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainsUsageByDayResult::UsageTotal> DescribeDomainsUsageByDayResult::getUsageTotal()const
|
||||
{
|
||||
return usageTotal_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsUsageByDayResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsUsageByDayResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsUsageByDayResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsUsageByDayResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainsUsageByDayResult::UsageByDay> DescribeDomainsUsageByDayResult::getUsageByDays()const
|
||||
{
|
||||
return usageByDays_;
|
||||
}
|
||||
|
||||
DescribeDomainsUsageByDayResult::UsageTotal DescribeDomainsUsageByDayResult::getUsageTotal()const
|
||||
{
|
||||
return usageTotal_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsUsageByDayResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsUsageByDayResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsUsageByDayResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeDomainsUsageByDayResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeDomainsUsageByDayResult::UsageByDay> DescribeDomainsUsageByDayResult::getUsageByDays()const
|
||||
{
|
||||
return usageByDays_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,74 +40,74 @@ void DescribeExtensiveDomainDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDataPerInterval = value["DataPerInterval"]["UsageData"];
|
||||
for (auto value : allDataPerInterval)
|
||||
{
|
||||
UsageData dataPerIntervalObject;
|
||||
if(!value["ExactDomain"].isNull())
|
||||
dataPerIntervalObject.exactDomain = value["ExactDomain"].asString();
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Acc"].isNull())
|
||||
dataPerIntervalObject.acc = value["Acc"].asString();
|
||||
if(!value["Flow"].isNull())
|
||||
dataPerIntervalObject.flow = value["Flow"].asString();
|
||||
dataPerInterval_.push_back(dataPerIntervalObject);
|
||||
}
|
||||
if(!value["ExtensiveDomain"].isNull())
|
||||
extensiveDomain_ = value["ExtensiveDomain"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
auto allDataPerInterval = value["DataPerInterval"]["UsageData"];
|
||||
for (auto value : allDataPerInterval)
|
||||
{
|
||||
UsageData dataPerIntervalObject;
|
||||
if(!value["ExactDomain"].isNull())
|
||||
dataPerIntervalObject.exactDomain = value["ExactDomain"].asString();
|
||||
if(!value["TimeStamp"].isNull())
|
||||
dataPerIntervalObject.timeStamp = value["TimeStamp"].asString();
|
||||
if(!value["Acc"].isNull())
|
||||
dataPerIntervalObject.acc = value["Acc"].asString();
|
||||
if(!value["Flow"].isNull())
|
||||
dataPerIntervalObject.flow = value["Flow"].asString();
|
||||
dataPerInterval_.push_back(dataPerIntervalObject);
|
||||
}
|
||||
if(!value["ExtensiveDomain"].isNull())
|
||||
extensiveDomain_ = value["ExtensiveDomain"].asString();
|
||||
if(!value["DataInterval"].isNull())
|
||||
dataInterval_ = value["DataInterval"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
startTime_ = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
endTime_ = value["EndTime"].asString();
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = value["PageNumber"].asString();
|
||||
if(!value["TotalCount"].isNull())
|
||||
totalCount_ = value["TotalCount"].asString();
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = value["PageSize"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeExtensiveDomainDataResult::UsageData> DescribeExtensiveDomainDataResult::getDataPerInterval()const
|
||||
{
|
||||
return dataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getExtensiveDomain()const
|
||||
{
|
||||
return extensiveDomain_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getTotalCount()const
|
||||
{
|
||||
return totalCount_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getDataInterval()const
|
||||
{
|
||||
return dataInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeExtensiveDomainDataResult::UsageData> DescribeExtensiveDomainDataResult::getDataPerInterval()const
|
||||
{
|
||||
return dataPerInterval_;
|
||||
}
|
||||
|
||||
std::string DescribeExtensiveDomainDataResult::getExtensiveDomain()const
|
||||
{
|
||||
return extensiveDomain_;
|
||||
}
|
||||
|
||||
|
||||
258
cdn/src/model/DescribeFCTriggerRequest.cc
Normal file
258
cdn/src/model/DescribeFCTriggerRequest.cc
Normal file
@@ -0,0 +1,258 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeFCTriggerRequest.h>
|
||||
|
||||
using AlibabaCloud::Cdn::Model::DescribeFCTriggerRequest;
|
||||
|
||||
DescribeFCTriggerRequest::DescribeFCTriggerRequest() :
|
||||
RpcServiceRequest("cdn", "2014-11-11", "DescribeFCTrigger")
|
||||
{}
|
||||
|
||||
DescribeFCTriggerRequest::~DescribeFCTriggerRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getTriggerARN()const
|
||||
{
|
||||
return triggerARN_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setTriggerARN(const std::string& triggerARN)
|
||||
{
|
||||
triggerARN_ = triggerARN;
|
||||
setParameter("TriggerARN", triggerARN);
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getApp_ip()const
|
||||
{
|
||||
return app_ip_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setApp_ip(const std::string& app_ip)
|
||||
{
|
||||
app_ip_ = app_ip;
|
||||
setParameter("App_ip", app_ip);
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
long DescribeFCTriggerRequest::getCallerParentId()const
|
||||
{
|
||||
return callerParentId_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setCallerParentId(long callerParentId)
|
||||
{
|
||||
callerParentId_ = callerParentId;
|
||||
setParameter("CallerParentId", std::to_string(callerParentId));
|
||||
}
|
||||
|
||||
bool DescribeFCTriggerRequest::getProxy_original_security_transport()const
|
||||
{
|
||||
return proxy_original_security_transport_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setProxy_original_security_transport(bool proxy_original_security_transport)
|
||||
{
|
||||
proxy_original_security_transport_ = proxy_original_security_transport;
|
||||
setParameter("Proxy_original_security_transport", std::to_string(proxy_original_security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getCallerBid()const
|
||||
{
|
||||
return callerBid_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setCallerBid(const std::string& callerBid)
|
||||
{
|
||||
callerBid_ = callerBid;
|
||||
setParameter("CallerBid", callerBid);
|
||||
}
|
||||
|
||||
long DescribeFCTriggerRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setOwnerId(long ownerId)
|
||||
{
|
||||
ownerId_ = ownerId;
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getProxy_original_source_ip()const
|
||||
{
|
||||
return proxy_original_source_ip_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setProxy_original_source_ip(const std::string& proxy_original_source_ip)
|
||||
{
|
||||
proxy_original_source_ip_ = proxy_original_source_ip;
|
||||
setParameter("Proxy_original_source_ip", proxy_original_source_ip);
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getVersion()const
|
||||
{
|
||||
return version_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setVersion(const std::string& version)
|
||||
{
|
||||
version_ = version;
|
||||
setParameter("Version", version);
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getOwnerIdLoginEmail()const
|
||||
{
|
||||
return ownerIdLoginEmail_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setOwnerIdLoginEmail(const std::string& ownerIdLoginEmail)
|
||||
{
|
||||
ownerIdLoginEmail_ = ownerIdLoginEmail;
|
||||
setParameter("OwnerIdLoginEmail", ownerIdLoginEmail);
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getCallerType()const
|
||||
{
|
||||
return callerType_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setCallerType(const std::string& callerType)
|
||||
{
|
||||
callerType_ = callerType;
|
||||
setParameter("CallerType", callerType);
|
||||
}
|
||||
|
||||
bool DescribeFCTriggerRequest::getProxy_trust_transport_info()const
|
||||
{
|
||||
return proxy_trust_transport_info_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setProxy_trust_transport_info(bool proxy_trust_transport_info)
|
||||
{
|
||||
proxy_trust_transport_info_ = proxy_trust_transport_info;
|
||||
setParameter("Proxy_trust_transport_info", std::to_string(proxy_trust_transport_info));
|
||||
}
|
||||
|
||||
bool DescribeFCTriggerRequest::getAk_mfa_present()const
|
||||
{
|
||||
return ak_mfa_present_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setAk_mfa_present(bool ak_mfa_present)
|
||||
{
|
||||
ak_mfa_present_ = ak_mfa_present;
|
||||
setParameter("Ak_mfa_present", std::to_string(ak_mfa_present));
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
bool DescribeFCTriggerRequest::getSecurity_transport()const
|
||||
{
|
||||
return security_transport_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setSecurity_transport(bool security_transport)
|
||||
{
|
||||
security_transport_ = security_transport;
|
||||
setParameter("Security_transport", std::to_string(security_transport));
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getSecurityToken()const
|
||||
{
|
||||
return securityToken_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getRequestId()const
|
||||
{
|
||||
return requestId_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setRequestId(const std::string& requestId)
|
||||
{
|
||||
requestId_ = requestId;
|
||||
setParameter("RequestId", requestId);
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getRequestContent()const
|
||||
{
|
||||
return requestContent_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setRequestContent(const std::string& requestContent)
|
||||
{
|
||||
requestContent_ = requestContent;
|
||||
setParameter("RequestContent", requestContent);
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getCallerBidEmail()const
|
||||
{
|
||||
return callerBidEmail_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setCallerBidEmail(const std::string& callerBidEmail)
|
||||
{
|
||||
callerBidEmail_ = callerBidEmail;
|
||||
setParameter("CallerBidEmail", callerBidEmail);
|
||||
}
|
||||
|
||||
std::string DescribeFCTriggerRequest::getCallerUidEmail()const
|
||||
{
|
||||
return callerUidEmail_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setCallerUidEmail(const std::string& callerUidEmail)
|
||||
{
|
||||
callerUidEmail_ = callerUidEmail;
|
||||
setParameter("CallerUidEmail", callerUidEmail);
|
||||
}
|
||||
|
||||
long DescribeFCTriggerRequest::getCallerUid()const
|
||||
{
|
||||
return callerUid_;
|
||||
}
|
||||
|
||||
void DescribeFCTriggerRequest::setCallerUid(long callerUid)
|
||||
{
|
||||
callerUid_ = callerUid;
|
||||
setParameter("CallerUid", std::to_string(callerUid));
|
||||
}
|
||||
|
||||
63
cdn/src/model/DescribeFCTriggerResult.cc
Normal file
63
cdn/src/model/DescribeFCTriggerResult.cc
Normal file
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cdn/model/DescribeFCTriggerResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cdn;
|
||||
using namespace AlibabaCloud::Cdn::Model;
|
||||
|
||||
DescribeFCTriggerResult::DescribeFCTriggerResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeFCTriggerResult::DescribeFCTriggerResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeFCTriggerResult::~DescribeFCTriggerResult()
|
||||
{}
|
||||
|
||||
void DescribeFCTriggerResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto fCTriggerNode = value["FCTrigger"];
|
||||
if(!fCTriggerNode["EventMetaName"].isNull())
|
||||
fCTrigger_.eventMetaName = fCTriggerNode["EventMetaName"].asString();
|
||||
if(!fCTriggerNode["EventMetaVersion"].isNull())
|
||||
fCTrigger_.eventMetaVersion = fCTriggerNode["EventMetaVersion"].asString();
|
||||
if(!fCTriggerNode["TriggerARN"].isNull())
|
||||
fCTrigger_.triggerARN = fCTriggerNode["TriggerARN"].asString();
|
||||
if(!fCTriggerNode["RoleARN"].isNull())
|
||||
fCTrigger_.roleARN = fCTriggerNode["RoleARN"].asString();
|
||||
if(!fCTriggerNode["SourceArn"].isNull())
|
||||
fCTrigger_.sourceArn = fCTriggerNode["SourceArn"].asString();
|
||||
if(!fCTriggerNode["Notes"].isNull())
|
||||
fCTrigger_.notes = fCTriggerNode["Notes"].asString();
|
||||
|
||||
}
|
||||
|
||||
DescribeFCTriggerResult::FCTrigger DescribeFCTriggerResult::getFCTrigger()const
|
||||
{
|
||||
return fCTrigger_;
|
||||
}
|
||||
|
||||
@@ -40,41 +40,41 @@ void DescribeIpInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["CdnIp"].isNull())
|
||||
cdnIp_ = value["CdnIp"].asString();
|
||||
if(!value["ISP"].isNull())
|
||||
iSP_ = value["ISP"].asString();
|
||||
if(!value["IspEname"].isNull())
|
||||
ispEname_ = value["IspEname"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
region_ = value["Region"].asString();
|
||||
if(!value["RegionEname"].isNull())
|
||||
regionEname_ = value["RegionEname"].asString();
|
||||
if(!value["CdnIp"].isNull())
|
||||
cdnIp_ = value["CdnIp"].asString();
|
||||
if(!value["ISP"].isNull())
|
||||
iSP_ = value["ISP"].asString();
|
||||
if(!value["IspEname"].isNull())
|
||||
ispEname_ = value["IspEname"].asString();
|
||||
if(!value["Region"].isNull())
|
||||
region_ = value["Region"].asString();
|
||||
if(!value["RegionEname"].isNull())
|
||||
regionEname_ = value["RegionEname"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getISP()const
|
||||
{
|
||||
return iSP_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIspEname()const
|
||||
{
|
||||
return ispEname_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getCdnIp()const
|
||||
{
|
||||
return cdnIp_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getRegionEname()const
|
||||
{
|
||||
return regionEname_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getISP()const
|
||||
{
|
||||
return iSP_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getRegion()const
|
||||
{
|
||||
return region_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getIspEname()const
|
||||
{
|
||||
return ispEname_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getCdnIp()const
|
||||
{
|
||||
return cdnIp_;
|
||||
}
|
||||
|
||||
std::string DescribeIpInfoResult::getRegionEname()const
|
||||
{
|
||||
return regionEname_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeL2VipsByDomainResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allVips = value["Vips"]["Vip"];
|
||||
for (const auto &item : allVips)
|
||||
vips_.push_back(item.asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
auto allVips = value["Vips"]["Vip"];
|
||||
for (const auto &item : allVips)
|
||||
vips_.push_back(item.asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeL2VipsByDomainResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeL2VipsByDomainResult::getVips()const
|
||||
{
|
||||
return vips_;
|
||||
}
|
||||
|
||||
std::string DescribeL2VipsByDomainResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeL2VipsByDomainResult::getVips()const
|
||||
{
|
||||
return vips_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,29 +40,24 @@ void DescribeLiveAppRecordConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLiveAppRecord = value["LiveAppRecord"];
|
||||
for (auto value : allLiveAppRecord)
|
||||
{
|
||||
LiveAppRecord liveAppRecordObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
liveAppRecordObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
liveAppRecordObject.appName = value["AppName"].asString();
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
liveAppRecordObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
liveAppRecordObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OssObjectPrefix"].isNull())
|
||||
liveAppRecordObject.ossObjectPrefix = value["OssObjectPrefix"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
liveAppRecordObject.createTime = value["CreateTime"].asString();
|
||||
liveAppRecord_.push_back(liveAppRecordObject);
|
||||
}
|
||||
auto liveAppRecordNode = value["LiveAppRecord"];
|
||||
if(!liveAppRecordNode["DomainName"].isNull())
|
||||
liveAppRecord_.domainName = liveAppRecordNode["DomainName"].asString();
|
||||
if(!liveAppRecordNode["AppName"].isNull())
|
||||
liveAppRecord_.appName = liveAppRecordNode["AppName"].asString();
|
||||
if(!liveAppRecordNode["OssEndpoint"].isNull())
|
||||
liveAppRecord_.ossEndpoint = liveAppRecordNode["OssEndpoint"].asString();
|
||||
if(!liveAppRecordNode["OssBucket"].isNull())
|
||||
liveAppRecord_.ossBucket = liveAppRecordNode["OssBucket"].asString();
|
||||
if(!liveAppRecordNode["OssObjectPrefix"].isNull())
|
||||
liveAppRecord_.ossObjectPrefix = liveAppRecordNode["OssObjectPrefix"].asString();
|
||||
if(!liveAppRecordNode["CreateTime"].isNull())
|
||||
liveAppRecord_.createTime = liveAppRecordNode["CreateTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveAppRecordConfigResult::LiveAppRecord> DescribeLiveAppRecordConfigResult::getLiveAppRecord()const
|
||||
{
|
||||
return liveAppRecord_;
|
||||
}
|
||||
|
||||
DescribeLiveAppRecordConfigResult::LiveAppRecord DescribeLiveAppRecordConfigResult::getLiveAppRecord()const
|
||||
{
|
||||
return liveAppRecord_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,27 +40,27 @@ void DescribeLivePullStreamConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLiveAppRecordList = value["LiveAppRecordList"]["LiveAppRecord"];
|
||||
for (auto value : allLiveAppRecordList)
|
||||
{
|
||||
LiveAppRecord liveAppRecordListObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
liveAppRecordListObject.domainName = value["DomainName"].asString();
|
||||
if(!value["StreamName"].isNull())
|
||||
liveAppRecordListObject.streamName = value["StreamName"].asString();
|
||||
if(!value["SourceUrl"].isNull())
|
||||
liveAppRecordListObject.sourceUrl = value["SourceUrl"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
liveAppRecordListObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
liveAppRecordListObject.endTime = value["EndTime"].asString();
|
||||
liveAppRecordList_.push_back(liveAppRecordListObject);
|
||||
}
|
||||
auto allLiveAppRecordList = value["LiveAppRecordList"]["LiveAppRecord"];
|
||||
for (auto value : allLiveAppRecordList)
|
||||
{
|
||||
LiveAppRecord liveAppRecordListObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
liveAppRecordListObject.domainName = value["DomainName"].asString();
|
||||
if(!value["StreamName"].isNull())
|
||||
liveAppRecordListObject.streamName = value["StreamName"].asString();
|
||||
if(!value["SourceUrl"].isNull())
|
||||
liveAppRecordListObject.sourceUrl = value["SourceUrl"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
liveAppRecordListObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
liveAppRecordListObject.endTime = value["EndTime"].asString();
|
||||
liveAppRecordList_.push_back(liveAppRecordListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLivePullStreamConfigResult::LiveAppRecord> DescribeLivePullStreamConfigResult::getLiveAppRecordList()const
|
||||
{
|
||||
return liveAppRecordList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLivePullStreamConfigResult::LiveAppRecord> DescribeLivePullStreamConfigResult::getLiveAppRecordList()const
|
||||
{
|
||||
return liveAppRecordList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,29 +40,29 @@ void DescribeLiveRecordConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLiveAppRecordList = value["LiveAppRecordList"]["LiveAppRecord"];
|
||||
for (auto value : allLiveAppRecordList)
|
||||
{
|
||||
LiveAppRecord liveAppRecordListObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
liveAppRecordListObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
liveAppRecordListObject.appName = value["AppName"].asString();
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
liveAppRecordListObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
liveAppRecordListObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OssObjectPrefix"].isNull())
|
||||
liveAppRecordListObject.ossObjectPrefix = value["OssObjectPrefix"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
liveAppRecordListObject.createTime = value["CreateTime"].asString();
|
||||
liveAppRecordList_.push_back(liveAppRecordListObject);
|
||||
}
|
||||
auto allLiveAppRecordList = value["LiveAppRecordList"]["LiveAppRecord"];
|
||||
for (auto value : allLiveAppRecordList)
|
||||
{
|
||||
LiveAppRecord liveAppRecordListObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
liveAppRecordListObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
liveAppRecordListObject.appName = value["AppName"].asString();
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
liveAppRecordListObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
liveAppRecordListObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OssObjectPrefix"].isNull())
|
||||
liveAppRecordListObject.ossObjectPrefix = value["OssObjectPrefix"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
liveAppRecordListObject.createTime = value["CreateTime"].asString();
|
||||
liveAppRecordList_.push_back(liveAppRecordListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveRecordConfigResult::LiveAppRecord> DescribeLiveRecordConfigResult::getLiveAppRecordList()const
|
||||
{
|
||||
return liveAppRecordList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveRecordConfigResult::LiveAppRecord> DescribeLiveRecordConfigResult::getLiveAppRecordList()const
|
||||
{
|
||||
return liveAppRecordList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,68 +40,68 @@ void DescribeLiveSnapshotConfigResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLiveStreamSnapshotConfigList = value["LiveStreamSnapshotConfigList"]["LiveStreamSnapshotConfig"];
|
||||
for (auto value : allLiveStreamSnapshotConfigList)
|
||||
{
|
||||
LiveStreamSnapshotConfig liveStreamSnapshotConfigListObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
liveStreamSnapshotConfigListObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
liveStreamSnapshotConfigListObject.appName = value["AppName"].asString();
|
||||
if(!value["TimeInterval"].isNull())
|
||||
liveStreamSnapshotConfigListObject.timeInterval = std::stoi(value["TimeInterval"].asString());
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
liveStreamSnapshotConfigListObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
liveStreamSnapshotConfigListObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OverwriteOssObject"].isNull())
|
||||
liveStreamSnapshotConfigListObject.overwriteOssObject = value["OverwriteOssObject"].asString();
|
||||
if(!value["SequenceOssObject"].isNull())
|
||||
liveStreamSnapshotConfigListObject.sequenceOssObject = value["SequenceOssObject"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
liveStreamSnapshotConfigListObject.createTime = value["CreateTime"].asString();
|
||||
liveStreamSnapshotConfigList_.push_back(liveStreamSnapshotConfigListObject);
|
||||
}
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Order"].isNull())
|
||||
order_ = value["Order"].asString();
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
auto allLiveStreamSnapshotConfigList = value["LiveStreamSnapshotConfigList"]["LiveStreamSnapshotConfig"];
|
||||
for (auto value : allLiveStreamSnapshotConfigList)
|
||||
{
|
||||
LiveStreamSnapshotConfig liveStreamSnapshotConfigListObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
liveStreamSnapshotConfigListObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
liveStreamSnapshotConfigListObject.appName = value["AppName"].asString();
|
||||
if(!value["TimeInterval"].isNull())
|
||||
liveStreamSnapshotConfigListObject.timeInterval = std::stoi(value["TimeInterval"].asString());
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
liveStreamSnapshotConfigListObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
liveStreamSnapshotConfigListObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OverwriteOssObject"].isNull())
|
||||
liveStreamSnapshotConfigListObject.overwriteOssObject = value["OverwriteOssObject"].asString();
|
||||
if(!value["SequenceOssObject"].isNull())
|
||||
liveStreamSnapshotConfigListObject.sequenceOssObject = value["SequenceOssObject"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
liveStreamSnapshotConfigListObject.createTime = value["CreateTime"].asString();
|
||||
liveStreamSnapshotConfigList_.push_back(liveStreamSnapshotConfigListObject);
|
||||
}
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["Order"].isNull())
|
||||
order_ = value["Order"].asString();
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveSnapshotConfigResult::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
int DescribeLiveSnapshotConfigResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
int DescribeLiveSnapshotConfigResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeLiveSnapshotConfigResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeLiveSnapshotConfigResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveSnapshotConfigResult::LiveStreamSnapshotConfig> DescribeLiveSnapshotConfigResult::getLiveStreamSnapshotConfigList()const
|
||||
{
|
||||
return liveStreamSnapshotConfigList_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveSnapshotConfigResult::getOrder()const
|
||||
{
|
||||
return order_;
|
||||
}
|
||||
|
||||
int DescribeLiveSnapshotConfigResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
int DescribeLiveSnapshotConfigResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeLiveSnapshotConfigResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeLiveSnapshotConfigResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveSnapshotConfigResult::LiveStreamSnapshotConfig> DescribeLiveSnapshotConfigResult::getLiveStreamSnapshotConfigList()const
|
||||
{
|
||||
return liveStreamSnapshotConfigList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeLiveSpecificDomainMappingResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainMappingModels = value["DomainMappingModels"]["DomainMappingModel"];
|
||||
for (auto value : allDomainMappingModels)
|
||||
{
|
||||
DomainMappingModel domainMappingModelsObject;
|
||||
if(!value["PushDomain"].isNull())
|
||||
domainMappingModelsObject.pushDomain = value["PushDomain"].asString();
|
||||
if(!value["PullDomain"].isNull())
|
||||
domainMappingModelsObject.pullDomain = value["PullDomain"].asString();
|
||||
domainMappingModels_.push_back(domainMappingModelsObject);
|
||||
}
|
||||
auto allDomainMappingModels = value["DomainMappingModels"]["DomainMappingModel"];
|
||||
for (auto value : allDomainMappingModels)
|
||||
{
|
||||
DomainMappingModel domainMappingModelsObject;
|
||||
if(!value["PushDomain"].isNull())
|
||||
domainMappingModelsObject.pushDomain = value["PushDomain"].asString();
|
||||
if(!value["PullDomain"].isNull())
|
||||
domainMappingModelsObject.pullDomain = value["PullDomain"].asString();
|
||||
domainMappingModels_.push_back(domainMappingModelsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveSpecificDomainMappingResult::DomainMappingModel> DescribeLiveSpecificDomainMappingResult::getDomainMappingModels()const
|
||||
{
|
||||
return domainMappingModels_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveSpecificDomainMappingResult::DomainMappingModel> DescribeLiveSpecificDomainMappingResult::getDomainMappingModels()const
|
||||
{
|
||||
return domainMappingModels_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,27 +40,27 @@ void DescribeLiveStreamBitRateDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
|
||||
for (auto value : allFrameRateAndBitRateInfos)
|
||||
{
|
||||
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(value["VideoFrameRate"].asString());
|
||||
if(!value["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(value["AudioFrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = value["Time"].asString();
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
|
||||
for (auto value : allFrameRateAndBitRateInfos)
|
||||
{
|
||||
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(value["VideoFrameRate"].asString());
|
||||
if(!value["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(value["AudioFrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = value["Time"].asString();
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamBitRateDataResult::FrameRateAndBitRateInfo> DescribeLiveStreamBitRateDataResult::getFrameRateAndBitRateInfos()const
|
||||
{
|
||||
return frameRateAndBitRateInfos_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamBitRateDataResult::FrameRateAndBitRateInfo> DescribeLiveStreamBitRateDataResult::getFrameRateAndBitRateInfos()const
|
||||
{
|
||||
return frameRateAndBitRateInfos_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeLiveStreamBpsDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allBpsDatas = value["BpsDatas"]["DomainBpsModel"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DomainBpsModel bpsDatasObject;
|
||||
if(!value["Time"].isNull())
|
||||
bpsDatasObject.time = value["Time"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDatasObject.bps = std::stof(value["Bps"].asString());
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
auto allBpsDatas = value["BpsDatas"]["DomainBpsModel"];
|
||||
for (auto value : allBpsDatas)
|
||||
{
|
||||
DomainBpsModel bpsDatasObject;
|
||||
if(!value["Time"].isNull())
|
||||
bpsDatasObject.time = value["Time"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bpsDatasObject.bps = std::stof(value["Bps"].asString());
|
||||
bpsDatas_.push_back(bpsDatasObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamBpsDataResult::DomainBpsModel> DescribeLiveStreamBpsDataResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamBpsDataResult::DomainBpsModel> DescribeLiveStreamBpsDataResult::getBpsDatas()const
|
||||
{
|
||||
return bpsDatas_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,33 +40,33 @@ void DescribeLiveStreamDomainAppInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainAppList = value["DomainAppList"]["DomainAppInfo"];
|
||||
for (auto value : allDomainAppList)
|
||||
{
|
||||
DomainAppInfo domainAppListObject;
|
||||
if(!value["AppDomain"].isNull())
|
||||
domainAppListObject.appDomain = value["AppDomain"].asString();
|
||||
if(!value["AppId"].isNull())
|
||||
domainAppListObject.appId = value["AppId"].asString();
|
||||
if(!value["AppKey"].isNull())
|
||||
domainAppListObject.appKey = value["AppKey"].asString();
|
||||
if(!value["AppOssBucket"].isNull())
|
||||
domainAppListObject.appOssBucket = value["AppOssBucket"].asString();
|
||||
if(!value["AppOssHost"].isNull())
|
||||
domainAppListObject.appOssHost = value["AppOssHost"].asString();
|
||||
if(!value["AppOwnerId"].isNull())
|
||||
domainAppListObject.appOwnerId = value["AppOwnerId"].asString();
|
||||
if(!value["AppSecret"].isNull())
|
||||
domainAppListObject.appSecret = value["AppSecret"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
domainAppListObject.updateTime = value["UpdateTime"].asString();
|
||||
domainAppList_.push_back(domainAppListObject);
|
||||
}
|
||||
auto allDomainAppList = value["DomainAppList"]["DomainAppInfo"];
|
||||
for (auto value : allDomainAppList)
|
||||
{
|
||||
DomainAppInfo domainAppListObject;
|
||||
if(!value["AppDomain"].isNull())
|
||||
domainAppListObject.appDomain = value["AppDomain"].asString();
|
||||
if(!value["AppId"].isNull())
|
||||
domainAppListObject.appId = value["AppId"].asString();
|
||||
if(!value["AppKey"].isNull())
|
||||
domainAppListObject.appKey = value["AppKey"].asString();
|
||||
if(!value["AppOssBucket"].isNull())
|
||||
domainAppListObject.appOssBucket = value["AppOssBucket"].asString();
|
||||
if(!value["AppOssHost"].isNull())
|
||||
domainAppListObject.appOssHost = value["AppOssHost"].asString();
|
||||
if(!value["AppOwnerId"].isNull())
|
||||
domainAppListObject.appOwnerId = value["AppOwnerId"].asString();
|
||||
if(!value["AppSecret"].isNull())
|
||||
domainAppListObject.appSecret = value["AppSecret"].asString();
|
||||
if(!value["UpdateTime"].isNull())
|
||||
domainAppListObject.updateTime = value["UpdateTime"].asString();
|
||||
domainAppList_.push_back(domainAppListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamDomainAppInfoResult::DomainAppInfo> DescribeLiveStreamDomainAppInfoResult::getDomainAppList()const
|
||||
{
|
||||
return domainAppList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamDomainAppInfoResult::DomainAppInfo> DescribeLiveStreamDomainAppInfoResult::getDomainAppList()const
|
||||
{
|
||||
return domainAppList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,48 +40,48 @@ void DescribeLiveStreamFrameAndBitRateByDomainResult::parse(const std::string &p
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
|
||||
for (auto value : allFrameRateAndBitRateInfos)
|
||||
{
|
||||
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(value["VideoFrameRate"].asString());
|
||||
if(!value["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(value["AudioFrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = value["Time"].asString();
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stol(value["Count"].asString());
|
||||
if(!value["pageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["pageNumber"].asString());
|
||||
if(!value["pageSize"].isNull())
|
||||
pageSize_ = std::stol(value["pageSize"].asString());
|
||||
auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
|
||||
for (auto value : allFrameRateAndBitRateInfos)
|
||||
{
|
||||
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(value["VideoFrameRate"].asString());
|
||||
if(!value["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(value["AudioFrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = value["Time"].asString();
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stol(value["Count"].asString());
|
||||
if(!value["pageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["pageNumber"].asString());
|
||||
if(!value["pageSize"].isNull())
|
||||
pageSize_ = std::stol(value["pageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeLiveStreamFrameAndBitRateByDomainResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamFrameAndBitRateByDomainResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamFrameAndBitRateByDomainResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamFrameAndBitRateByDomainResult::FrameRateAndBitRateInfo> DescribeLiveStreamFrameAndBitRateByDomainResult::getFrameRateAndBitRateInfos()const
|
||||
{
|
||||
return frameRateAndBitRateInfos_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamFrameAndBitRateByDomainResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamFrameAndBitRateByDomainResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamFrameAndBitRateByDomainResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamFrameAndBitRateByDomainResult::FrameRateAndBitRateInfo> DescribeLiveStreamFrameAndBitRateByDomainResult::getFrameRateAndBitRateInfos()const
|
||||
{
|
||||
return frameRateAndBitRateInfos_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,33 +40,33 @@ void DescribeLiveStreamFrameInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFrameDataInfos = value["FrameDataInfos"]["FrameDataModel"];
|
||||
for (auto value : allFrameDataInfos)
|
||||
{
|
||||
FrameDataModel frameDataInfosObject;
|
||||
if(!value["Time"].isNull())
|
||||
frameDataInfosObject.time = value["Time"].asString();
|
||||
if(!value["Stream"].isNull())
|
||||
frameDataInfosObject.stream = value["Stream"].asString();
|
||||
if(!value["ClientAddr"].isNull())
|
||||
frameDataInfosObject.clientAddr = value["ClientAddr"].asString();
|
||||
if(!value["Server"].isNull())
|
||||
frameDataInfosObject.server = value["Server"].asString();
|
||||
if(!value["AudioRate"].isNull())
|
||||
frameDataInfosObject.audioRate = std::stof(value["AudioRate"].asString());
|
||||
if(!value["AudioByte"].isNull())
|
||||
frameDataInfosObject.audioByte = std::stof(value["AudioByte"].asString());
|
||||
if(!value["FrameRate"].isNull())
|
||||
frameDataInfosObject.frameRate = std::stof(value["FrameRate"].asString());
|
||||
if(!value["FrameByte"].isNull())
|
||||
frameDataInfosObject.frameByte = std::stof(value["FrameByte"].asString());
|
||||
frameDataInfos_.push_back(frameDataInfosObject);
|
||||
}
|
||||
auto allFrameDataInfos = value["FrameDataInfos"]["FrameDataModel"];
|
||||
for (auto value : allFrameDataInfos)
|
||||
{
|
||||
FrameDataModel frameDataInfosObject;
|
||||
if(!value["Time"].isNull())
|
||||
frameDataInfosObject.time = value["Time"].asString();
|
||||
if(!value["Stream"].isNull())
|
||||
frameDataInfosObject.stream = value["Stream"].asString();
|
||||
if(!value["ClientAddr"].isNull())
|
||||
frameDataInfosObject.clientAddr = value["ClientAddr"].asString();
|
||||
if(!value["Server"].isNull())
|
||||
frameDataInfosObject.server = value["Server"].asString();
|
||||
if(!value["AudioRate"].isNull())
|
||||
frameDataInfosObject.audioRate = std::stof(value["AudioRate"].asString());
|
||||
if(!value["AudioByte"].isNull())
|
||||
frameDataInfosObject.audioByte = std::stof(value["AudioByte"].asString());
|
||||
if(!value["FrameRate"].isNull())
|
||||
frameDataInfosObject.frameRate = std::stof(value["FrameRate"].asString());
|
||||
if(!value["FrameByte"].isNull())
|
||||
frameDataInfosObject.frameByte = std::stof(value["FrameByte"].asString());
|
||||
frameDataInfos_.push_back(frameDataInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamFrameInfoResult::FrameDataModel> DescribeLiveStreamFrameInfoResult::getFrameDataInfos()const
|
||||
{
|
||||
return frameDataInfos_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamFrameInfoResult::FrameDataModel> DescribeLiveStreamFrameInfoResult::getFrameDataInfos()const
|
||||
{
|
||||
return frameDataInfos_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,23 +40,23 @@ void DescribeLiveStreamFrameLossRatioResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFrameLossRatioInfos = value["FrameLossRatioInfos"]["FrameLossRatioInfo"];
|
||||
for (auto value : allFrameLossRatioInfos)
|
||||
{
|
||||
FrameLossRatioInfo frameLossRatioInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameLossRatioInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["FrameLossRatio"].isNull())
|
||||
frameLossRatioInfosObject.frameLossRatio = std::stof(value["FrameLossRatio"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameLossRatioInfosObject.time = value["Time"].asString();
|
||||
frameLossRatioInfos_.push_back(frameLossRatioInfosObject);
|
||||
}
|
||||
auto allFrameLossRatioInfos = value["FrameLossRatioInfos"]["FrameLossRatioInfo"];
|
||||
for (auto value : allFrameLossRatioInfos)
|
||||
{
|
||||
FrameLossRatioInfo frameLossRatioInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameLossRatioInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["FrameLossRatio"].isNull())
|
||||
frameLossRatioInfosObject.frameLossRatio = std::stof(value["FrameLossRatio"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameLossRatioInfosObject.time = value["Time"].asString();
|
||||
frameLossRatioInfos_.push_back(frameLossRatioInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamFrameLossRatioResult::FrameLossRatioInfo> DescribeLiveStreamFrameLossRatioResult::getFrameLossRatioInfos()const
|
||||
{
|
||||
return frameLossRatioInfos_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamFrameLossRatioResult::FrameLossRatioInfo> DescribeLiveStreamFrameLossRatioResult::getFrameLossRatioInfos()const
|
||||
{
|
||||
return frameLossRatioInfos_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,51 +40,51 @@ void DescribeLiveStreamHlsOnlineUserNumByDomainResult::parse(const std::string &
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allOnlineUserInfo)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
onlineUserInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
onlineUserInfoObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
onlineUserInfoObject.time = value["Time"].asString();
|
||||
onlineUserInfo_.push_back(onlineUserInfoObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stol(value["Count"].asString());
|
||||
if(!value["pageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["pageNumber"].asString());
|
||||
if(!value["pageSize"].isNull())
|
||||
pageSize_ = std::stol(value["pageSize"].asString());
|
||||
auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allOnlineUserInfo)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
onlineUserInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
onlineUserInfoObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
onlineUserInfoObject.time = value["Time"].asString();
|
||||
onlineUserInfo_.push_back(onlineUserInfoObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stol(value["Count"].asString());
|
||||
if(!value["pageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["pageNumber"].asString());
|
||||
if(!value["pageSize"].isNull())
|
||||
pageSize_ = std::stol(value["pageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamHlsOnlineUserNumByDomainResult::LiveStreamOnlineUserNumInfo> DescribeLiveStreamHlsOnlineUserNumByDomainResult::getOnlineUserInfo()const
|
||||
{
|
||||
return onlineUserInfo_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamHlsOnlineUserNumByDomainResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamHlsOnlineUserNumByDomainResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamHlsOnlineUserNumByDomainResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamHlsOnlineUserNumByDomainResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamHlsOnlineUserNumByDomainResult::LiveStreamOnlineUserNumInfo> DescribeLiveStreamHlsOnlineUserNumByDomainResult::getOnlineUserInfo()const
|
||||
{
|
||||
return onlineUserInfo_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamHlsOnlineUserNumByDomainResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamHlsOnlineUserNumByDomainResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamHlsOnlineUserNumByDomainResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamHlsOnlineUserNumByDomainResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,23 +40,23 @@ void DescribeLiveStreamLimitInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allUserLimitLists = value["UserLimitLists"]["UserLimitMode"];
|
||||
for (auto value : allUserLimitLists)
|
||||
{
|
||||
UserLimitMode userLimitListsObject;
|
||||
if(!value["LimitDomain"].isNull())
|
||||
userLimitListsObject.limitDomain = value["LimitDomain"].asString();
|
||||
if(!value["LimitNum"].isNull())
|
||||
userLimitListsObject.limitNum = value["LimitNum"].asString();
|
||||
if(!value["LimitTranscodeNum"].isNull())
|
||||
userLimitListsObject.limitTranscodeNum = value["LimitTranscodeNum"].asString();
|
||||
userLimitLists_.push_back(userLimitListsObject);
|
||||
}
|
||||
auto allUserLimitLists = value["UserLimitLists"]["UserLimitMode"];
|
||||
for (auto value : allUserLimitLists)
|
||||
{
|
||||
UserLimitMode userLimitListsObject;
|
||||
if(!value["LimitDomain"].isNull())
|
||||
userLimitListsObject.limitDomain = value["LimitDomain"].asString();
|
||||
if(!value["LimitNum"].isNull())
|
||||
userLimitListsObject.limitNum = value["LimitNum"].asString();
|
||||
if(!value["LimitTranscodeNum"].isNull())
|
||||
userLimitListsObject.limitTranscodeNum = value["LimitTranscodeNum"].asString();
|
||||
userLimitLists_.push_back(userLimitListsObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamLimitInfoResult::UserLimitMode> DescribeLiveStreamLimitInfoResult::getUserLimitLists()const
|
||||
{
|
||||
return userLimitLists_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamLimitInfoResult::UserLimitMode> DescribeLiveStreamLimitInfoResult::getUserLimitLists()const
|
||||
{
|
||||
return userLimitLists_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,28 +40,28 @@ void DescribeLiveStreamNumberListResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStreamNumberInfos = value["StreamNumberInfos"]["StreamNumberInfo"];
|
||||
for (auto value : allStreamNumberInfos)
|
||||
{
|
||||
StreamNumberInfo streamNumberInfosObject;
|
||||
if(!value["Number"].isNull())
|
||||
streamNumberInfosObject.number = std::stoi(value["Number"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
streamNumberInfosObject.time = value["Time"].asString();
|
||||
streamNumberInfos_.push_back(streamNumberInfosObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
auto allStreamNumberInfos = value["StreamNumberInfos"]["StreamNumberInfo"];
|
||||
for (auto value : allStreamNumberInfos)
|
||||
{
|
||||
StreamNumberInfo streamNumberInfosObject;
|
||||
if(!value["Number"].isNull())
|
||||
streamNumberInfosObject.number = std::stoi(value["Number"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
streamNumberInfosObject.time = value["Time"].asString();
|
||||
streamNumberInfos_.push_back(streamNumberInfosObject);
|
||||
}
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamNumberListResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamNumberListResult::StreamNumberInfo> DescribeLiveStreamNumberListResult::getStreamNumberInfos()const
|
||||
{
|
||||
return streamNumberInfos_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamNumberListResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamNumberListResult::StreamNumberInfo> DescribeLiveStreamNumberListResult::getStreamNumberInfos()const
|
||||
{
|
||||
return streamNumberInfos_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,46 +40,46 @@ void DescribeLiveStreamOnlineBpsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLiveStreamOnlineBpsInfos = value["LiveStreamOnlineBpsInfos"]["LiveStreamOnlineBpsInfo"];
|
||||
for (auto value : allLiveStreamOnlineBpsInfos)
|
||||
{
|
||||
LiveStreamOnlineBpsInfo liveStreamOnlineBpsInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
liveStreamOnlineBpsInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UpBps"].isNull())
|
||||
liveStreamOnlineBpsInfosObject.upBps = std::stof(value["UpBps"].asString());
|
||||
if(!value["DownBps"].isNull())
|
||||
liveStreamOnlineBpsInfosObject.downBps = std::stof(value["DownBps"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
liveStreamOnlineBpsInfosObject.time = value["Time"].asString();
|
||||
liveStreamOnlineBpsInfos_.push_back(liveStreamOnlineBpsInfosObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
if(!value["FlvBps"].isNull())
|
||||
flvBps_ = std::stof(value["FlvBps"].asString());
|
||||
if(!value["HlsBps"].isNull())
|
||||
hlsBps_ = std::stof(value["HlsBps"].asString());
|
||||
auto allLiveStreamOnlineBpsInfos = value["LiveStreamOnlineBpsInfos"]["LiveStreamOnlineBpsInfo"];
|
||||
for (auto value : allLiveStreamOnlineBpsInfos)
|
||||
{
|
||||
LiveStreamOnlineBpsInfo liveStreamOnlineBpsInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
liveStreamOnlineBpsInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UpBps"].isNull())
|
||||
liveStreamOnlineBpsInfosObject.upBps = std::stof(value["UpBps"].asString());
|
||||
if(!value["DownBps"].isNull())
|
||||
liveStreamOnlineBpsInfosObject.downBps = std::stof(value["DownBps"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
liveStreamOnlineBpsInfosObject.time = value["Time"].asString();
|
||||
liveStreamOnlineBpsInfos_.push_back(liveStreamOnlineBpsInfosObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
if(!value["FlvBps"].isNull())
|
||||
flvBps_ = std::stof(value["FlvBps"].asString());
|
||||
if(!value["HlsBps"].isNull())
|
||||
hlsBps_ = std::stof(value["HlsBps"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamOnlineBpsResult::LiveStreamOnlineBpsInfo> DescribeLiveStreamOnlineBpsResult::getLiveStreamOnlineBpsInfos()const
|
||||
{
|
||||
return liveStreamOnlineBpsInfos_;
|
||||
}
|
||||
|
||||
float DescribeLiveStreamOnlineBpsResult::getHlsBps()const
|
||||
{
|
||||
return hlsBps_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineBpsResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
float DescribeLiveStreamOnlineBpsResult::getFlvBps()const
|
||||
{
|
||||
return flvBps_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamOnlineBpsResult::LiveStreamOnlineBpsInfo> DescribeLiveStreamOnlineBpsResult::getLiveStreamOnlineBpsInfos()const
|
||||
{
|
||||
return liveStreamOnlineBpsInfos_;
|
||||
}
|
||||
|
||||
float DescribeLiveStreamOnlineBpsResult::getHlsBps()const
|
||||
{
|
||||
return hlsBps_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineBpsResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
float DescribeLiveStreamOnlineBpsResult::getFlvBps()const
|
||||
{
|
||||
return flvBps_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,51 +40,51 @@ void DescribeLiveStreamOnlineUserNumByDomainResult::parse(const std::string &pay
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allOnlineUserInfo)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
onlineUserInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
onlineUserInfoObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
onlineUserInfoObject.time = value["Time"].asString();
|
||||
onlineUserInfo_.push_back(onlineUserInfoObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stol(value["Count"].asString());
|
||||
if(!value["pageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["pageNumber"].asString());
|
||||
if(!value["pageSize"].isNull())
|
||||
pageSize_ = std::stol(value["pageSize"].asString());
|
||||
auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allOnlineUserInfo)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
onlineUserInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
onlineUserInfoObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
onlineUserInfoObject.time = value["Time"].asString();
|
||||
onlineUserInfo_.push_back(onlineUserInfoObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
if(!value["Count"].isNull())
|
||||
count_ = std::stol(value["Count"].asString());
|
||||
if(!value["pageNumber"].isNull())
|
||||
pageNumber_ = std::stol(value["pageNumber"].asString());
|
||||
if(!value["pageSize"].isNull())
|
||||
pageSize_ = std::stol(value["pageSize"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamOnlineUserNumByDomainResult::LiveStreamOnlineUserNumInfo> DescribeLiveStreamOnlineUserNumByDomainResult::getOnlineUserInfo()const
|
||||
{
|
||||
return onlineUserInfo_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumByDomainResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumByDomainResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumByDomainResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumByDomainResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamOnlineUserNumByDomainResult::LiveStreamOnlineUserNumInfo> DescribeLiveStreamOnlineUserNumByDomainResult::getOnlineUserInfo()const
|
||||
{
|
||||
return onlineUserInfo_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumByDomainResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumByDomainResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumByDomainResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumByDomainResult::getCount()const
|
||||
{
|
||||
return count_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,30 +40,30 @@ void DescribeLiveStreamOnlineUserNumResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allOnlineUserInfo)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
onlineUserInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
onlineUserInfoObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
onlineUserInfoObject.time = value["Time"].asString();
|
||||
onlineUserInfo_.push_back(onlineUserInfoObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allOnlineUserInfo)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
onlineUserInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
onlineUserInfoObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
onlineUserInfoObject.time = value["Time"].asString();
|
||||
onlineUserInfo_.push_back(onlineUserInfoObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamOnlineUserNumResult::LiveStreamOnlineUserNumInfo> DescribeLiveStreamOnlineUserNumResult::getOnlineUserInfo()const
|
||||
{
|
||||
return onlineUserInfo_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamOnlineUserNumResult::LiveStreamOnlineUserNumInfo> DescribeLiveStreamOnlineUserNumResult::getOnlineUserInfo()const
|
||||
{
|
||||
return onlineUserInfo_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamOnlineUserNumResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,31 +40,31 @@ void DescribeLiveStreamPushDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPushStreamModelList = value["PushStreamModelList"]["PushStreamModel"];
|
||||
for (auto value : allPushStreamModelList)
|
||||
{
|
||||
PushStreamModel pushStreamModelListObject;
|
||||
if(!value["Time"].isNull())
|
||||
pushStreamModelListObject.time = value["Time"].asString();
|
||||
if(!value["Stream"].isNull())
|
||||
pushStreamModelListObject.stream = value["Stream"].asString();
|
||||
if(!value["FrameRate"].isNull())
|
||||
pushStreamModelListObject.frameRate = std::stof(value["FrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
pushStreamModelListObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["FrameLossRate"].isNull())
|
||||
pushStreamModelListObject.frameLossRate = std::stof(value["FrameLossRate"].asString());
|
||||
if(!value["ServerAddr"].isNull())
|
||||
pushStreamModelListObject.serverAddr = value["ServerAddr"].asString();
|
||||
if(!value["ClientAddr"].isNull())
|
||||
pushStreamModelListObject.clientAddr = value["ClientAddr"].asString();
|
||||
pushStreamModelList_.push_back(pushStreamModelListObject);
|
||||
}
|
||||
auto allPushStreamModelList = value["PushStreamModelList"]["PushStreamModel"];
|
||||
for (auto value : allPushStreamModelList)
|
||||
{
|
||||
PushStreamModel pushStreamModelListObject;
|
||||
if(!value["Time"].isNull())
|
||||
pushStreamModelListObject.time = value["Time"].asString();
|
||||
if(!value["Stream"].isNull())
|
||||
pushStreamModelListObject.stream = value["Stream"].asString();
|
||||
if(!value["FrameRate"].isNull())
|
||||
pushStreamModelListObject.frameRate = std::stof(value["FrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
pushStreamModelListObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["FrameLossRate"].isNull())
|
||||
pushStreamModelListObject.frameLossRate = std::stof(value["FrameLossRate"].asString());
|
||||
if(!value["ServerAddr"].isNull())
|
||||
pushStreamModelListObject.serverAddr = value["ServerAddr"].asString();
|
||||
if(!value["ClientAddr"].isNull())
|
||||
pushStreamModelListObject.clientAddr = value["ClientAddr"].asString();
|
||||
pushStreamModelList_.push_back(pushStreamModelListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamPushDataResult::PushStreamModel> DescribeLiveStreamPushDataResult::getPushStreamModelList()const
|
||||
{
|
||||
return pushStreamModelList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamPushDataResult::PushStreamModel> DescribeLiveStreamPushDataResult::getPushStreamModelList()const
|
||||
{
|
||||
return pushStreamModelList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,19 +40,19 @@ void DescribeLiveStreamPushErrorsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPushErrorsModelList = value["PushErrorsModelList"]["PushErrorsModel"];
|
||||
for (auto value : allPushErrorsModelList)
|
||||
{
|
||||
PushErrorsModel pushErrorsModelListObject;
|
||||
if(!value["ErrorCode"].isNull())
|
||||
pushErrorsModelListObject.errorCode = value["ErrorCode"].asString();
|
||||
pushErrorsModelList_.push_back(pushErrorsModelListObject);
|
||||
}
|
||||
auto allPushErrorsModelList = value["PushErrorsModelList"]["PushErrorsModel"];
|
||||
for (auto value : allPushErrorsModelList)
|
||||
{
|
||||
PushErrorsModel pushErrorsModelListObject;
|
||||
if(!value["ErrorCode"].isNull())
|
||||
pushErrorsModelListObject.errorCode = value["ErrorCode"].asString();
|
||||
pushErrorsModelList_.push_back(pushErrorsModelListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamPushErrorsResult::PushErrorsModel> DescribeLiveStreamPushErrorsResult::getPushErrorsModelList()const
|
||||
{
|
||||
return pushErrorsModelList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamPushErrorsResult::PushErrorsModel> DescribeLiveStreamPushErrorsResult::getPushErrorsModelList()const
|
||||
{
|
||||
return pushErrorsModelList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,29 +40,29 @@ void DescribeLiveStreamRecordContentResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRecordContentInfoList = value["RecordContentInfoList"]["RecordContentInfo"];
|
||||
for (auto value : allRecordContentInfoList)
|
||||
{
|
||||
RecordContentInfo recordContentInfoListObject;
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
recordContentInfoListObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
recordContentInfoListObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OssObjectPrefix"].isNull())
|
||||
recordContentInfoListObject.ossObjectPrefix = value["OssObjectPrefix"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
recordContentInfoListObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
recordContentInfoListObject.endTime = value["EndTime"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
recordContentInfoListObject.duration = std::stof(value["Duration"].asString());
|
||||
recordContentInfoList_.push_back(recordContentInfoListObject);
|
||||
}
|
||||
auto allRecordContentInfoList = value["RecordContentInfoList"]["RecordContentInfo"];
|
||||
for (auto value : allRecordContentInfoList)
|
||||
{
|
||||
RecordContentInfo recordContentInfoListObject;
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
recordContentInfoListObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
recordContentInfoListObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OssObjectPrefix"].isNull())
|
||||
recordContentInfoListObject.ossObjectPrefix = value["OssObjectPrefix"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
recordContentInfoListObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
recordContentInfoListObject.endTime = value["EndTime"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
recordContentInfoListObject.duration = std::stof(value["Duration"].asString());
|
||||
recordContentInfoList_.push_back(recordContentInfoListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRecordContentResult::RecordContentInfo> DescribeLiveStreamRecordContentResult::getRecordContentInfoList()const
|
||||
{
|
||||
return recordContentInfoList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRecordContentResult::RecordContentInfo> DescribeLiveStreamRecordContentResult::getRecordContentInfoList()const
|
||||
{
|
||||
return recordContentInfoList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,41 +40,36 @@ void DescribeLiveStreamRecordIndexFileResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRecordIndexInfo = value["RecordIndexInfo"];
|
||||
for (auto value : allRecordIndexInfo)
|
||||
{
|
||||
RecordIndexInfo recordIndexInfoObject;
|
||||
if(!value["RecordId"].isNull())
|
||||
recordIndexInfoObject.recordId = value["RecordId"].asString();
|
||||
if(!value["RecordUrl"].isNull())
|
||||
recordIndexInfoObject.recordUrl = value["RecordUrl"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
recordIndexInfoObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
recordIndexInfoObject.appName = value["AppName"].asString();
|
||||
if(!value["StreamName"].isNull())
|
||||
recordIndexInfoObject.streamName = value["StreamName"].asString();
|
||||
if(!value["OssObject"].isNull())
|
||||
recordIndexInfoObject.ossObject = value["OssObject"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
recordIndexInfoObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
recordIndexInfoObject.endTime = value["EndTime"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
recordIndexInfoObject.duration = std::stof(value["Duration"].asString());
|
||||
if(!value["Height"].isNull())
|
||||
recordIndexInfoObject.height = std::stoi(value["Height"].asString());
|
||||
if(!value["Width"].isNull())
|
||||
recordIndexInfoObject.width = std::stoi(value["Width"].asString());
|
||||
if(!value["CreateTime"].isNull())
|
||||
recordIndexInfoObject.createTime = value["CreateTime"].asString();
|
||||
recordIndexInfo_.push_back(recordIndexInfoObject);
|
||||
}
|
||||
auto recordIndexInfoNode = value["RecordIndexInfo"];
|
||||
if(!recordIndexInfoNode["RecordId"].isNull())
|
||||
recordIndexInfo_.recordId = recordIndexInfoNode["RecordId"].asString();
|
||||
if(!recordIndexInfoNode["RecordUrl"].isNull())
|
||||
recordIndexInfo_.recordUrl = recordIndexInfoNode["RecordUrl"].asString();
|
||||
if(!recordIndexInfoNode["DomainName"].isNull())
|
||||
recordIndexInfo_.domainName = recordIndexInfoNode["DomainName"].asString();
|
||||
if(!recordIndexInfoNode["AppName"].isNull())
|
||||
recordIndexInfo_.appName = recordIndexInfoNode["AppName"].asString();
|
||||
if(!recordIndexInfoNode["StreamName"].isNull())
|
||||
recordIndexInfo_.streamName = recordIndexInfoNode["StreamName"].asString();
|
||||
if(!recordIndexInfoNode["OssObject"].isNull())
|
||||
recordIndexInfo_.ossObject = recordIndexInfoNode["OssObject"].asString();
|
||||
if(!recordIndexInfoNode["StartTime"].isNull())
|
||||
recordIndexInfo_.startTime = recordIndexInfoNode["StartTime"].asString();
|
||||
if(!recordIndexInfoNode["EndTime"].isNull())
|
||||
recordIndexInfo_.endTime = recordIndexInfoNode["EndTime"].asString();
|
||||
if(!recordIndexInfoNode["Duration"].isNull())
|
||||
recordIndexInfo_.duration = std::stof(recordIndexInfoNode["Duration"].asString());
|
||||
if(!recordIndexInfoNode["Height"].isNull())
|
||||
recordIndexInfo_.height = std::stoi(recordIndexInfoNode["Height"].asString());
|
||||
if(!recordIndexInfoNode["Width"].isNull())
|
||||
recordIndexInfo_.width = std::stoi(recordIndexInfoNode["Width"].asString());
|
||||
if(!recordIndexInfoNode["CreateTime"].isNull())
|
||||
recordIndexInfo_.createTime = recordIndexInfoNode["CreateTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRecordIndexFileResult::RecordIndexInfo> DescribeLiveStreamRecordIndexFileResult::getRecordIndexInfo()const
|
||||
{
|
||||
return recordIndexInfo_;
|
||||
}
|
||||
|
||||
DescribeLiveStreamRecordIndexFileResult::RecordIndexInfo DescribeLiveStreamRecordIndexFileResult::getRecordIndexInfo()const
|
||||
{
|
||||
return recordIndexInfo_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,41 +40,41 @@ void DescribeLiveStreamRecordIndexFilesResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRecordIndexInfoList = value["RecordIndexInfoList"]["RecordIndexInfo"];
|
||||
for (auto value : allRecordIndexInfoList)
|
||||
{
|
||||
RecordIndexInfo recordIndexInfoListObject;
|
||||
if(!value["RecordId"].isNull())
|
||||
recordIndexInfoListObject.recordId = value["RecordId"].asString();
|
||||
if(!value["RecordUrl"].isNull())
|
||||
recordIndexInfoListObject.recordUrl = value["RecordUrl"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
recordIndexInfoListObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
recordIndexInfoListObject.appName = value["AppName"].asString();
|
||||
if(!value["StreamName"].isNull())
|
||||
recordIndexInfoListObject.streamName = value["StreamName"].asString();
|
||||
if(!value["OssObject"].isNull())
|
||||
recordIndexInfoListObject.ossObject = value["OssObject"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
recordIndexInfoListObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
recordIndexInfoListObject.endTime = value["EndTime"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
recordIndexInfoListObject.duration = std::stof(value["Duration"].asString());
|
||||
if(!value["Height"].isNull())
|
||||
recordIndexInfoListObject.height = std::stoi(value["Height"].asString());
|
||||
if(!value["Width"].isNull())
|
||||
recordIndexInfoListObject.width = std::stoi(value["Width"].asString());
|
||||
if(!value["CreateTime"].isNull())
|
||||
recordIndexInfoListObject.createTime = value["CreateTime"].asString();
|
||||
recordIndexInfoList_.push_back(recordIndexInfoListObject);
|
||||
}
|
||||
auto allRecordIndexInfoList = value["RecordIndexInfoList"]["RecordIndexInfo"];
|
||||
for (auto value : allRecordIndexInfoList)
|
||||
{
|
||||
RecordIndexInfo recordIndexInfoListObject;
|
||||
if(!value["RecordId"].isNull())
|
||||
recordIndexInfoListObject.recordId = value["RecordId"].asString();
|
||||
if(!value["RecordUrl"].isNull())
|
||||
recordIndexInfoListObject.recordUrl = value["RecordUrl"].asString();
|
||||
if(!value["DomainName"].isNull())
|
||||
recordIndexInfoListObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
recordIndexInfoListObject.appName = value["AppName"].asString();
|
||||
if(!value["StreamName"].isNull())
|
||||
recordIndexInfoListObject.streamName = value["StreamName"].asString();
|
||||
if(!value["OssObject"].isNull())
|
||||
recordIndexInfoListObject.ossObject = value["OssObject"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
recordIndexInfoListObject.startTime = value["StartTime"].asString();
|
||||
if(!value["EndTime"].isNull())
|
||||
recordIndexInfoListObject.endTime = value["EndTime"].asString();
|
||||
if(!value["Duration"].isNull())
|
||||
recordIndexInfoListObject.duration = std::stof(value["Duration"].asString());
|
||||
if(!value["Height"].isNull())
|
||||
recordIndexInfoListObject.height = std::stoi(value["Height"].asString());
|
||||
if(!value["Width"].isNull())
|
||||
recordIndexInfoListObject.width = std::stoi(value["Width"].asString());
|
||||
if(!value["CreateTime"].isNull())
|
||||
recordIndexInfoListObject.createTime = value["CreateTime"].asString();
|
||||
recordIndexInfoList_.push_back(recordIndexInfoListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRecordIndexFilesResult::RecordIndexInfo> DescribeLiveStreamRecordIndexFilesResult::getRecordIndexInfoList()const
|
||||
{
|
||||
return recordIndexInfoList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRecordIndexFilesResult::RecordIndexInfo> DescribeLiveStreamRecordIndexFilesResult::getRecordIndexInfoList()const
|
||||
{
|
||||
return recordIndexInfoList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,29 +40,29 @@ void DescribeLiveStreamRelayPushBitRateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRelayPushBitRateModelList = value["RelayPushBitRateModelList"]["RelayPushBitRateModel"];
|
||||
for (auto value : allRelayPushBitRateModelList)
|
||||
{
|
||||
RelayPushBitRateModel relayPushBitRateModelListObject;
|
||||
if(!value["Time"].isNull())
|
||||
relayPushBitRateModelListObject.time = value["Time"].asString();
|
||||
if(!value["VedioFrame"].isNull())
|
||||
relayPushBitRateModelListObject.vedioFrame = value["VedioFrame"].asString();
|
||||
if(!value["VedioTimstamp"].isNull())
|
||||
relayPushBitRateModelListObject.vedioTimstamp = value["VedioTimstamp"].asString();
|
||||
if(!value["AudioFrame"].isNull())
|
||||
relayPushBitRateModelListObject.audioFrame = value["AudioFrame"].asString();
|
||||
if(!value["AudioTimstamp"].isNull())
|
||||
relayPushBitRateModelListObject.audioTimstamp = value["AudioTimstamp"].asString();
|
||||
if(!value["RelayDomain"].isNull())
|
||||
relayPushBitRateModelListObject.relayDomain = value["RelayDomain"].asString();
|
||||
relayPushBitRateModelList_.push_back(relayPushBitRateModelListObject);
|
||||
}
|
||||
auto allRelayPushBitRateModelList = value["RelayPushBitRateModelList"]["RelayPushBitRateModel"];
|
||||
for (auto value : allRelayPushBitRateModelList)
|
||||
{
|
||||
RelayPushBitRateModel relayPushBitRateModelListObject;
|
||||
if(!value["Time"].isNull())
|
||||
relayPushBitRateModelListObject.time = value["Time"].asString();
|
||||
if(!value["VedioFrame"].isNull())
|
||||
relayPushBitRateModelListObject.vedioFrame = value["VedioFrame"].asString();
|
||||
if(!value["VedioTimstamp"].isNull())
|
||||
relayPushBitRateModelListObject.vedioTimstamp = value["VedioTimstamp"].asString();
|
||||
if(!value["AudioFrame"].isNull())
|
||||
relayPushBitRateModelListObject.audioFrame = value["AudioFrame"].asString();
|
||||
if(!value["AudioTimstamp"].isNull())
|
||||
relayPushBitRateModelListObject.audioTimstamp = value["AudioTimstamp"].asString();
|
||||
if(!value["RelayDomain"].isNull())
|
||||
relayPushBitRateModelListObject.relayDomain = value["RelayDomain"].asString();
|
||||
relayPushBitRateModelList_.push_back(relayPushBitRateModelListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRelayPushBitRateResult::RelayPushBitRateModel> DescribeLiveStreamRelayPushBitRateResult::getRelayPushBitRateModelList()const
|
||||
{
|
||||
return relayPushBitRateModelList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRelayPushBitRateResult::RelayPushBitRateModel> DescribeLiveStreamRelayPushBitRateResult::getRelayPushBitRateModelList()const
|
||||
{
|
||||
return relayPushBitRateModelList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,31 +40,31 @@ void DescribeLiveStreamRelayPushDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRelayPushDetailModelList = value["RelayPushDetailModelList"]["RelayPushDetailModel"];
|
||||
for (auto value : allRelayPushDetailModelList)
|
||||
{
|
||||
RelayPushDetailModel relayPushDetailModelListObject;
|
||||
if(!value["Time"].isNull())
|
||||
relayPushDetailModelListObject.time = value["Time"].asString();
|
||||
if(!value["Stream"].isNull())
|
||||
relayPushDetailModelListObject.stream = value["Stream"].asString();
|
||||
if(!value["FrameRate"].isNull())
|
||||
relayPushDetailModelListObject.frameRate = std::stof(value["FrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
relayPushDetailModelListObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["FrameLossRate"].isNull())
|
||||
relayPushDetailModelListObject.frameLossRate = std::stof(value["FrameLossRate"].asString());
|
||||
if(!value["ServerAddr"].isNull())
|
||||
relayPushDetailModelListObject.serverAddr = value["ServerAddr"].asString();
|
||||
if(!value["ClientAddr"].isNull())
|
||||
relayPushDetailModelListObject.clientAddr = value["ClientAddr"].asString();
|
||||
relayPushDetailModelList_.push_back(relayPushDetailModelListObject);
|
||||
}
|
||||
auto allRelayPushDetailModelList = value["RelayPushDetailModelList"]["RelayPushDetailModel"];
|
||||
for (auto value : allRelayPushDetailModelList)
|
||||
{
|
||||
RelayPushDetailModel relayPushDetailModelListObject;
|
||||
if(!value["Time"].isNull())
|
||||
relayPushDetailModelListObject.time = value["Time"].asString();
|
||||
if(!value["Stream"].isNull())
|
||||
relayPushDetailModelListObject.stream = value["Stream"].asString();
|
||||
if(!value["FrameRate"].isNull())
|
||||
relayPushDetailModelListObject.frameRate = std::stof(value["FrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
relayPushDetailModelListObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["FrameLossRate"].isNull())
|
||||
relayPushDetailModelListObject.frameLossRate = std::stof(value["FrameLossRate"].asString());
|
||||
if(!value["ServerAddr"].isNull())
|
||||
relayPushDetailModelListObject.serverAddr = value["ServerAddr"].asString();
|
||||
if(!value["ClientAddr"].isNull())
|
||||
relayPushDetailModelListObject.clientAddr = value["ClientAddr"].asString();
|
||||
relayPushDetailModelList_.push_back(relayPushDetailModelListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRelayPushDataResult::RelayPushDetailModel> DescribeLiveStreamRelayPushDataResult::getRelayPushDetailModelList()const
|
||||
{
|
||||
return relayPushDetailModelList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRelayPushDataResult::RelayPushDetailModel> DescribeLiveStreamRelayPushDataResult::getRelayPushDetailModelList()const
|
||||
{
|
||||
return relayPushDetailModelList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,19 +40,19 @@ void DescribeLiveStreamRelayPushErrorsResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allRelayPushErrorsModelList = value["RelayPushErrorsModelList"]["RelayPushErrorsModel"];
|
||||
for (auto value : allRelayPushErrorsModelList)
|
||||
{
|
||||
RelayPushErrorsModel relayPushErrorsModelListObject;
|
||||
if(!value["ErrorCode"].isNull())
|
||||
relayPushErrorsModelListObject.errorCode = value["ErrorCode"].asString();
|
||||
relayPushErrorsModelList_.push_back(relayPushErrorsModelListObject);
|
||||
}
|
||||
auto allRelayPushErrorsModelList = value["RelayPushErrorsModelList"]["RelayPushErrorsModel"];
|
||||
for (auto value : allRelayPushErrorsModelList)
|
||||
{
|
||||
RelayPushErrorsModel relayPushErrorsModelListObject;
|
||||
if(!value["ErrorCode"].isNull())
|
||||
relayPushErrorsModelListObject.errorCode = value["ErrorCode"].asString();
|
||||
relayPushErrorsModelList_.push_back(relayPushErrorsModelListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRelayPushErrorsResult::RelayPushErrorsModel> DescribeLiveStreamRelayPushErrorsResult::getRelayPushErrorsModelList()const
|
||||
{
|
||||
return relayPushErrorsModelList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRelayPushErrorsResult::RelayPushErrorsModel> DescribeLiveStreamRelayPushErrorsResult::getRelayPushErrorsModelList()const
|
||||
{
|
||||
return relayPushErrorsModelList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,27 +40,27 @@ void DescribeLiveStreamRoomBitRateResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
|
||||
for (auto value : allFrameRateAndBitRateInfos)
|
||||
{
|
||||
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(value["VideoFrameRate"].asString());
|
||||
if(!value["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(value["AudioFrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = value["Time"].asString();
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
|
||||
for (auto value : allFrameRateAndBitRateInfos)
|
||||
{
|
||||
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(value["VideoFrameRate"].asString());
|
||||
if(!value["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(value["AudioFrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = value["Time"].asString();
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRoomBitRateResult::FrameRateAndBitRateInfo> DescribeLiveStreamRoomBitRateResult::getFrameRateAndBitRateInfos()const
|
||||
{
|
||||
return frameRateAndBitRateInfos_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRoomBitRateResult::FrameRateAndBitRateInfo> DescribeLiveStreamRoomBitRateResult::getFrameRateAndBitRateInfos()const
|
||||
{
|
||||
return frameRateAndBitRateInfos_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,30 +40,30 @@ void DescribeLiveStreamRoomUserNumberResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allOnlineUserInfo)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
onlineUserInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
onlineUserInfoObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
onlineUserInfoObject.time = value["Time"].asString();
|
||||
onlineUserInfo_.push_back(onlineUserInfoObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
auto allOnlineUserInfo = value["OnlineUserInfo"]["LiveStreamOnlineUserNumInfo"];
|
||||
for (auto value : allOnlineUserInfo)
|
||||
{
|
||||
LiveStreamOnlineUserNumInfo onlineUserInfoObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
onlineUserInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["UserNumber"].isNull())
|
||||
onlineUserInfoObject.userNumber = std::stol(value["UserNumber"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
onlineUserInfoObject.time = value["Time"].asString();
|
||||
onlineUserInfo_.push_back(onlineUserInfoObject);
|
||||
}
|
||||
if(!value["TotalUserNumber"].isNull())
|
||||
totalUserNumber_ = std::stol(value["TotalUserNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRoomUserNumberResult::LiveStreamOnlineUserNumInfo> DescribeLiveStreamRoomUserNumberResult::getOnlineUserInfo()const
|
||||
{
|
||||
return onlineUserInfo_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamRoomUserNumberResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamRoomUserNumberResult::LiveStreamOnlineUserNumInfo> DescribeLiveStreamRoomUserNumberResult::getOnlineUserInfo()const
|
||||
{
|
||||
return onlineUserInfo_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamRoomUserNumberResult::getTotalUserNumber()const
|
||||
{
|
||||
return totalUserNumber_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,32 +40,32 @@ void DescribeLiveStreamSnapshotInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allLiveStreamSnapshotInfoList = value["LiveStreamSnapshotInfoList"]["LiveStreamSnapshotInfo"];
|
||||
for (auto value : allLiveStreamSnapshotInfoList)
|
||||
{
|
||||
LiveStreamSnapshotInfo liveStreamSnapshotInfoListObject;
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
liveStreamSnapshotInfoListObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
liveStreamSnapshotInfoListObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OssObject"].isNull())
|
||||
liveStreamSnapshotInfoListObject.ossObject = value["OssObject"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
liveStreamSnapshotInfoListObject.createTime = value["CreateTime"].asString();
|
||||
liveStreamSnapshotInfoList_.push_back(liveStreamSnapshotInfoListObject);
|
||||
}
|
||||
if(!value["NextStartTime"].isNull())
|
||||
nextStartTime_ = value["NextStartTime"].asString();
|
||||
auto allLiveStreamSnapshotInfoList = value["LiveStreamSnapshotInfoList"]["LiveStreamSnapshotInfo"];
|
||||
for (auto value : allLiveStreamSnapshotInfoList)
|
||||
{
|
||||
LiveStreamSnapshotInfo liveStreamSnapshotInfoListObject;
|
||||
if(!value["OssEndpoint"].isNull())
|
||||
liveStreamSnapshotInfoListObject.ossEndpoint = value["OssEndpoint"].asString();
|
||||
if(!value["OssBucket"].isNull())
|
||||
liveStreamSnapshotInfoListObject.ossBucket = value["OssBucket"].asString();
|
||||
if(!value["OssObject"].isNull())
|
||||
liveStreamSnapshotInfoListObject.ossObject = value["OssObject"].asString();
|
||||
if(!value["CreateTime"].isNull())
|
||||
liveStreamSnapshotInfoListObject.createTime = value["CreateTime"].asString();
|
||||
liveStreamSnapshotInfoList_.push_back(liveStreamSnapshotInfoListObject);
|
||||
}
|
||||
if(!value["NextStartTime"].isNull())
|
||||
nextStartTime_ = value["NextStartTime"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamSnapshotInfoResult::LiveStreamSnapshotInfo> DescribeLiveStreamSnapshotInfoResult::getLiveStreamSnapshotInfoList()const
|
||||
{
|
||||
return liveStreamSnapshotInfoList_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamSnapshotInfoResult::getNextStartTime()const
|
||||
{
|
||||
return nextStartTime_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamSnapshotInfoResult::LiveStreamSnapshotInfo> DescribeLiveStreamSnapshotInfoResult::getLiveStreamSnapshotInfoList()const
|
||||
{
|
||||
return liveStreamSnapshotInfoList_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamSnapshotInfoResult::getNextStartTime()const
|
||||
{
|
||||
return nextStartTime_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,13 +40,13 @@ void DescribeLiveStreamStreamStatusResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["StreamStatus"].isNull())
|
||||
streamStatus_ = value["StreamStatus"].asString();
|
||||
if(!value["StreamStatus"].isNull())
|
||||
streamStatus_ = value["StreamStatus"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamStreamStatusResult::getStreamStatus()const
|
||||
{
|
||||
return streamStatus_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamStreamStatusResult::getStreamStatus()const
|
||||
{
|
||||
return streamStatus_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,29 +40,29 @@ void DescribeLiveStreamTranscodeInfoResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDomainTranscodeList = value["DomainTranscodeList"]["DomainTranscodeInfo"];
|
||||
for (auto value : allDomainTranscodeList)
|
||||
{
|
||||
DomainTranscodeInfo domainTranscodeListObject;
|
||||
if(!value["TranscodeApp"].isNull())
|
||||
domainTranscodeListObject.transcodeApp = value["TranscodeApp"].asString();
|
||||
if(!value["TranscodeId"].isNull())
|
||||
domainTranscodeListObject.transcodeId = value["TranscodeId"].asString();
|
||||
if(!value["TranscodeName"].isNull())
|
||||
domainTranscodeListObject.transcodeName = value["TranscodeName"].asString();
|
||||
if(!value["TranscodeRecord"].isNull())
|
||||
domainTranscodeListObject.transcodeRecord = value["TranscodeRecord"].asString();
|
||||
if(!value["TranscodeSnapshot"].isNull())
|
||||
domainTranscodeListObject.transcodeSnapshot = value["TranscodeSnapshot"].asString();
|
||||
if(!value["TranscodeTemplate"].isNull())
|
||||
domainTranscodeListObject.transcodeTemplate = value["TranscodeTemplate"].asString();
|
||||
domainTranscodeList_.push_back(domainTranscodeListObject);
|
||||
}
|
||||
auto allDomainTranscodeList = value["DomainTranscodeList"]["DomainTranscodeInfo"];
|
||||
for (auto value : allDomainTranscodeList)
|
||||
{
|
||||
DomainTranscodeInfo domainTranscodeListObject;
|
||||
if(!value["TranscodeApp"].isNull())
|
||||
domainTranscodeListObject.transcodeApp = value["TranscodeApp"].asString();
|
||||
if(!value["TranscodeId"].isNull())
|
||||
domainTranscodeListObject.transcodeId = value["TranscodeId"].asString();
|
||||
if(!value["TranscodeName"].isNull())
|
||||
domainTranscodeListObject.transcodeName = value["TranscodeName"].asString();
|
||||
if(!value["TranscodeRecord"].isNull())
|
||||
domainTranscodeListObject.transcodeRecord = value["TranscodeRecord"].asString();
|
||||
if(!value["TranscodeSnapshot"].isNull())
|
||||
domainTranscodeListObject.transcodeSnapshot = value["TranscodeSnapshot"].asString();
|
||||
if(!value["TranscodeTemplate"].isNull())
|
||||
domainTranscodeListObject.transcodeTemplate = value["TranscodeTemplate"].asString();
|
||||
domainTranscodeList_.push_back(domainTranscodeListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamTranscodeInfoResult::DomainTranscodeInfo> DescribeLiveStreamTranscodeInfoResult::getDomainTranscodeList()const
|
||||
{
|
||||
return domainTranscodeList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamTranscodeInfoResult::DomainTranscodeInfo> DescribeLiveStreamTranscodeInfoResult::getDomainTranscodeList()const
|
||||
{
|
||||
return domainTranscodeList_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,27 +40,27 @@ void DescribeLiveStreamTranscodeStreamNumResult::parse(const std::string &payloa
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
if(!value["TranscodedNumber"].isNull())
|
||||
transcodedNumber_ = std::stol(value["TranscodedNumber"].asString());
|
||||
if(!value["UntranscodeNumber"].isNull())
|
||||
untranscodeNumber_ = std::stol(value["UntranscodeNumber"].asString());
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stol(value["Total"].asString());
|
||||
if(!value["TranscodedNumber"].isNull())
|
||||
transcodedNumber_ = std::stol(value["TranscodedNumber"].asString());
|
||||
if(!value["UntranscodeNumber"].isNull())
|
||||
untranscodeNumber_ = std::stol(value["UntranscodeNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
long DescribeLiveStreamTranscodeStreamNumResult::getUntranscodeNumber()const
|
||||
{
|
||||
return untranscodeNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamTranscodeStreamNumResult::getTranscodedNumber()const
|
||||
{
|
||||
return transcodedNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamTranscodeStreamNumResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamTranscodeStreamNumResult::getUntranscodeNumber()const
|
||||
{
|
||||
return untranscodeNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamTranscodeStreamNumResult::getTranscodedNumber()const
|
||||
{
|
||||
return transcodedNumber_;
|
||||
}
|
||||
|
||||
long DescribeLiveStreamTranscodeStreamNumResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,21 +40,21 @@ void DescribeLiveStreamsBlockListResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allStreamUrls = value["StreamUrls"]["StreamUrl"];
|
||||
for (const auto &item : allStreamUrls)
|
||||
streamUrls_.push_back(item.asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
auto allStreamUrls = value["StreamUrls"]["StreamUrl"];
|
||||
for (const auto &item : allStreamUrls)
|
||||
streamUrls_.push_back(item.asString());
|
||||
if(!value["DomainName"].isNull())
|
||||
domainName_ = value["DomainName"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsBlockListResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeLiveStreamsBlockListResult::getStreamUrls()const
|
||||
{
|
||||
return streamUrls_;
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsBlockListResult::getDomainName()const
|
||||
{
|
||||
return domainName_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeLiveStreamsBlockListResult::getStreamUrls()const
|
||||
{
|
||||
return streamUrls_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,25 +40,25 @@ void DescribeLiveStreamsControlHistoryResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allControlInfo = value["ControlInfo"]["LiveStreamControlInfo"];
|
||||
for (auto value : allControlInfo)
|
||||
{
|
||||
LiveStreamControlInfo controlInfoObject;
|
||||
if(!value["StreamName"].isNull())
|
||||
controlInfoObject.streamName = value["StreamName"].asString();
|
||||
if(!value["ClientIP"].isNull())
|
||||
controlInfoObject.clientIP = value["ClientIP"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
controlInfoObject.action = value["Action"].asString();
|
||||
if(!value["TimeStamp"].isNull())
|
||||
controlInfoObject.timeStamp = value["TimeStamp"].asString();
|
||||
controlInfo_.push_back(controlInfoObject);
|
||||
}
|
||||
auto allControlInfo = value["ControlInfo"]["LiveStreamControlInfo"];
|
||||
for (auto value : allControlInfo)
|
||||
{
|
||||
LiveStreamControlInfo controlInfoObject;
|
||||
if(!value["StreamName"].isNull())
|
||||
controlInfoObject.streamName = value["StreamName"].asString();
|
||||
if(!value["ClientIP"].isNull())
|
||||
controlInfoObject.clientIP = value["ClientIP"].asString();
|
||||
if(!value["Action"].isNull())
|
||||
controlInfoObject.action = value["Action"].asString();
|
||||
if(!value["TimeStamp"].isNull())
|
||||
controlInfoObject.timeStamp = value["TimeStamp"].asString();
|
||||
controlInfo_.push_back(controlInfoObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamsControlHistoryResult::LiveStreamControlInfo> DescribeLiveStreamsControlHistoryResult::getControlInfo()const
|
||||
{
|
||||
return controlInfo_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamsControlHistoryResult::LiveStreamControlInfo> DescribeLiveStreamsControlHistoryResult::getControlInfo()const
|
||||
{
|
||||
return controlInfo_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,27 +40,27 @@ void DescribeLiveStreamsFrameRateAndBitRateDataResult::parse(const std::string &
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
|
||||
for (auto value : allFrameRateAndBitRateInfos)
|
||||
{
|
||||
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(value["VideoFrameRate"].asString());
|
||||
if(!value["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(value["AudioFrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = value["Time"].asString();
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
auto allFrameRateAndBitRateInfos = value["FrameRateAndBitRateInfos"]["FrameRateAndBitRateInfo"];
|
||||
for (auto value : allFrameRateAndBitRateInfos)
|
||||
{
|
||||
FrameRateAndBitRateInfo frameRateAndBitRateInfosObject;
|
||||
if(!value["StreamUrl"].isNull())
|
||||
frameRateAndBitRateInfosObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["VideoFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.videoFrameRate = std::stof(value["VideoFrameRate"].asString());
|
||||
if(!value["AudioFrameRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.audioFrameRate = std::stof(value["AudioFrameRate"].asString());
|
||||
if(!value["BitRate"].isNull())
|
||||
frameRateAndBitRateInfosObject.bitRate = std::stof(value["BitRate"].asString());
|
||||
if(!value["Time"].isNull())
|
||||
frameRateAndBitRateInfosObject.time = value["Time"].asString();
|
||||
frameRateAndBitRateInfos_.push_back(frameRateAndBitRateInfosObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamsFrameRateAndBitRateDataResult::FrameRateAndBitRateInfo> DescribeLiveStreamsFrameRateAndBitRateDataResult::getFrameRateAndBitRateInfos()const
|
||||
{
|
||||
return frameRateAndBitRateInfos_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamsFrameRateAndBitRateDataResult::FrameRateAndBitRateInfo> DescribeLiveStreamsFrameRateAndBitRateDataResult::getFrameRateAndBitRateInfos()const
|
||||
{
|
||||
return frameRateAndBitRateInfos_;
|
||||
}
|
||||
|
||||
|
||||
@@ -25,6 +25,17 @@ DescribeLiveStreamsOnlineListRequest::DescribeLiveStreamsOnlineListRequest() :
|
||||
DescribeLiveStreamsOnlineListRequest::~DescribeLiveStreamsOnlineListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeLiveStreamsOnlineListRequest::getStreamType()const
|
||||
{
|
||||
return streamType_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsOnlineListRequest::setStreamType(const std::string& streamType)
|
||||
{
|
||||
streamType_ = streamType;
|
||||
setParameter("StreamType", streamType);
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsOnlineListRequest::getAppName()const
|
||||
{
|
||||
return appName_;
|
||||
@@ -58,6 +69,17 @@ void DescribeLiveStreamsOnlineListRequest::setDomainName(const std::string& doma
|
||||
setParameter("DomainName", domainName);
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsOnlineListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsOnlineListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long DescribeLiveStreamsOnlineListRequest::getOwnerId()const
|
||||
{
|
||||
return ownerId_;
|
||||
@@ -69,6 +91,17 @@ void DescribeLiveStreamsOnlineListRequest::setOwnerId(long ownerId)
|
||||
setParameter("OwnerId", std::to_string(ownerId));
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsOnlineListRequest::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
void DescribeLiveStreamsOnlineListRequest::setPageNum(int pageNum)
|
||||
{
|
||||
pageNum_ = pageNum;
|
||||
setParameter("PageNum", std::to_string(pageNum));
|
||||
}
|
||||
|
||||
std::string DescribeLiveStreamsOnlineListRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
|
||||
@@ -40,27 +40,55 @@ void DescribeLiveStreamsOnlineListResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allOnlineInfo = value["OnlineInfo"]["LiveStreamOnlineInfo"];
|
||||
for (auto value : allOnlineInfo)
|
||||
{
|
||||
LiveStreamOnlineInfo onlineInfoObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
onlineInfoObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
onlineInfoObject.appName = value["AppName"].asString();
|
||||
if(!value["StreamName"].isNull())
|
||||
onlineInfoObject.streamName = value["StreamName"].asString();
|
||||
if(!value["PublishTime"].isNull())
|
||||
onlineInfoObject.publishTime = value["PublishTime"].asString();
|
||||
if(!value["PublishUrl"].isNull())
|
||||
onlineInfoObject.publishUrl = value["PublishUrl"].asString();
|
||||
onlineInfo_.push_back(onlineInfoObject);
|
||||
}
|
||||
auto allOnlineInfo = value["OnlineInfo"]["LiveStreamOnlineInfo"];
|
||||
for (auto value : allOnlineInfo)
|
||||
{
|
||||
LiveStreamOnlineInfo onlineInfoObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
onlineInfoObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
onlineInfoObject.appName = value["AppName"].asString();
|
||||
if(!value["StreamName"].isNull())
|
||||
onlineInfoObject.streamName = value["StreamName"].asString();
|
||||
if(!value["PublishTime"].isNull())
|
||||
onlineInfoObject.publishTime = value["PublishTime"].asString();
|
||||
if(!value["PublishUrl"].isNull())
|
||||
onlineInfoObject.publishUrl = value["PublishUrl"].asString();
|
||||
onlineInfo_.push_back(onlineInfoObject);
|
||||
}
|
||||
if(!value["PageNum"].isNull())
|
||||
pageNum_ = std::stoi(value["PageNum"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["TotalNum"].isNull())
|
||||
totalNum_ = std::stoi(value["TotalNum"].asString());
|
||||
if(!value["TotalPage"].isNull())
|
||||
totalPage_ = std::stoi(value["TotalPage"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamsOnlineListResult::LiveStreamOnlineInfo> DescribeLiveStreamsOnlineListResult::getOnlineInfo()const
|
||||
{
|
||||
return onlineInfo_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsOnlineListResult::getTotalNum()const
|
||||
{
|
||||
return totalNum_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsOnlineListResult::getPageNum()const
|
||||
{
|
||||
return pageNum_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsOnlineListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeLiveStreamsOnlineListResult::getTotalPage()const
|
||||
{
|
||||
return totalPage_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamsOnlineListResult::LiveStreamOnlineInfo> DescribeLiveStreamsOnlineListResult::getOnlineInfo()const
|
||||
{
|
||||
return onlineInfo_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,35 +40,35 @@ void DescribeLiveStreamsPublishListResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPublishInfo = value["PublishInfo"]["LiveStreamPublishInfo"];
|
||||
for (auto value : allPublishInfo)
|
||||
{
|
||||
LiveStreamPublishInfo publishInfoObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
publishInfoObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
publishInfoObject.appName = value["AppName"].asString();
|
||||
if(!value["StreamName"].isNull())
|
||||
publishInfoObject.streamName = value["StreamName"].asString();
|
||||
if(!value["StreamUrl"].isNull())
|
||||
publishInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["PublishTime"].isNull())
|
||||
publishInfoObject.publishTime = value["PublishTime"].asString();
|
||||
if(!value["StopTime"].isNull())
|
||||
publishInfoObject.stopTime = value["StopTime"].asString();
|
||||
if(!value["PublishUrl"].isNull())
|
||||
publishInfoObject.publishUrl = value["PublishUrl"].asString();
|
||||
if(!value["ClientAddr"].isNull())
|
||||
publishInfoObject.clientAddr = value["ClientAddr"].asString();
|
||||
if(!value["EdgeNodeAddr"].isNull())
|
||||
publishInfoObject.edgeNodeAddr = value["EdgeNodeAddr"].asString();
|
||||
publishInfo_.push_back(publishInfoObject);
|
||||
}
|
||||
auto allPublishInfo = value["PublishInfo"]["LiveStreamPublishInfo"];
|
||||
for (auto value : allPublishInfo)
|
||||
{
|
||||
LiveStreamPublishInfo publishInfoObject;
|
||||
if(!value["DomainName"].isNull())
|
||||
publishInfoObject.domainName = value["DomainName"].asString();
|
||||
if(!value["AppName"].isNull())
|
||||
publishInfoObject.appName = value["AppName"].asString();
|
||||
if(!value["StreamName"].isNull())
|
||||
publishInfoObject.streamName = value["StreamName"].asString();
|
||||
if(!value["StreamUrl"].isNull())
|
||||
publishInfoObject.streamUrl = value["StreamUrl"].asString();
|
||||
if(!value["PublishTime"].isNull())
|
||||
publishInfoObject.publishTime = value["PublishTime"].asString();
|
||||
if(!value["StopTime"].isNull())
|
||||
publishInfoObject.stopTime = value["StopTime"].asString();
|
||||
if(!value["PublishUrl"].isNull())
|
||||
publishInfoObject.publishUrl = value["PublishUrl"].asString();
|
||||
if(!value["ClientAddr"].isNull())
|
||||
publishInfoObject.clientAddr = value["ClientAddr"].asString();
|
||||
if(!value["EdgeNodeAddr"].isNull())
|
||||
publishInfoObject.edgeNodeAddr = value["EdgeNodeAddr"].asString();
|
||||
publishInfo_.push_back(publishInfoObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamsPublishListResult::LiveStreamPublishInfo> DescribeLiveStreamsPublishListResult::getPublishInfo()const
|
||||
{
|
||||
return publishInfo_;
|
||||
}
|
||||
|
||||
std::vector<DescribeLiveStreamsPublishListResult::LiveStreamPublishInfo> DescribeLiveStreamsPublishListResult::getPublishInfo()const
|
||||
{
|
||||
return publishInfo_;
|
||||
}
|
||||
|
||||
|
||||
@@ -40,20 +40,20 @@ void DescribeOneMinuteDataResult::parse(const std::string &payload)
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Bps"].isNull())
|
||||
bps_ = value["Bps"].asString();
|
||||
if(!value["Qps"].isNull())
|
||||
qps_ = value["Qps"].asString();
|
||||
if(!value["Bps"].isNull())
|
||||
bps_ = value["Bps"].asString();
|
||||
if(!value["Qps"].isNull())
|
||||
qps_ = value["Qps"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeOneMinuteDataResult::getBps()const
|
||||
{
|
||||
return bps_;
|
||||
}
|
||||
|
||||
std::string DescribeOneMinuteDataResult::getQps()const
|
||||
{
|
||||
return qps_;
|
||||
}
|
||||
|
||||
std::string DescribeOneMinuteDataResult::getBps()const
|
||||
{
|
||||
return bps_;
|
||||
}
|
||||
|
||||
std::string DescribeOneMinuteDataResult::getQps()const
|
||||
{
|
||||
return qps_;
|
||||
}
|
||||
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user