update cdn module

This commit is contained in:
fenglc
2018-02-05 14:51:50 +08:00
parent f747bb02a6
commit 39575fc87a
560 changed files with 30828 additions and 24783 deletions

View File

@@ -40,93 +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 usageDataObject;
usageDataObject.traffic = std::stoi(value["Traffic"].asString());
usageDataObject.acc = std::stoi(value["Acc"].asString());
usageDataObject.path = value["Path"].asString();
usageDataObject.time = value["Time"].asString();
pathDataPerInterval_.push_back(usageDataObject);
}
domainName_ = value["DomainName"].asString();
startTime_ = value["StartTime"].asString();
endTime_ = value["EndTime"].asString();
pageSize_ = std::stoi(value["PageSize"].asString());
pageNumber_ = std::stoi(value["PageNumber"].asString());
dataInterval_ = value["DataInterval"].asString();
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_;
}
void DescribeDomainPathDataResult::setTotalCount(int totalCount)
{
totalCount_ = totalCount;
}
std::string DescribeDomainPathDataResult::getEndTime()const
{
return endTime_;
}
void DescribeDomainPathDataResult::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
}
int DescribeDomainPathDataResult::getPageSize()const
{
return pageSize_;
}
void DescribeDomainPathDataResult::setPageSize(int pageSize)
{
pageSize_ = pageSize;
}
std::string DescribeDomainPathDataResult::getDomainName()const
{
return domainName_;
}
void DescribeDomainPathDataResult::setDomainName(const std::string& domainName)
{
domainName_ = domainName;
}
int DescribeDomainPathDataResult::getPageNumber()const
{
return pageNumber_;
}
void DescribeDomainPathDataResult::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
}
std::string DescribeDomainPathDataResult::getStartTime()const
{
return startTime_;
}
void DescribeDomainPathDataResult::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
}
std::string DescribeDomainPathDataResult::getDataInterval()const
{
return dataInterval_;
}
void DescribeDomainPathDataResult::setDataInterval(const std::string& dataInterval)
{
dataInterval_ = 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_;
}