EHPC SDK Auto Released By qianzheng.llc,Version:1.36.21

Signed-off-by: haowei.yao <haowei.yao@alibaba-inc.com>
This commit is contained in:
haowei.yao
2019-04-23 16:55:43 +08:00
parent a4e469e042
commit b3c7c65989
9 changed files with 31 additions and 355 deletions

View File

@@ -66,6 +66,10 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
instanceTypesObject.spotStrategy = value["SpotStrategy"].asString();
if(!value["SpotPriceLimit"].isNull())
instanceTypesObject.spotPriceLimit = std::stof(value["SpotPriceLimit"].asString());
if(!value["ZoneId"].isNull())
instanceTypesObject.zoneId = value["ZoneId"].asString();
if(!value["VSwitchId"].isNull())
instanceTypesObject.vSwitchId = value["VSwitchId"].asString();
queuesObject.instanceTypes.push_back(instanceTypesObject);
}
queues_.push_back(queuesObject);