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

Signed-off-by: yixiong.jxy <yixiong.jxy@alibaba-inc.com>
This commit is contained in:
yixiong.jxy
2018-11-14 18:23:57 +08:00
parent 6072a0309b
commit e93d1a7c5c
23 changed files with 774 additions and 3 deletions

View File

@@ -52,6 +52,10 @@ void GetAutoScaleConfigResult::parse(const std::string &payload)
queuesObject.spotStrategy = value["SpotStrategy"].asString();
if(!value["SpotPriceLimit"].isNull())
queuesObject.spotPriceLimit = std::stof(value["SpotPriceLimit"].asString());
if(!value["EnableAutoGrow"].isNull())
queuesObject.enableAutoGrow = value["EnableAutoGrow"].asString() == "true";
if(!value["EnableAutoShrink"].isNull())
queuesObject.enableAutoShrink = value["EnableAutoShrink"].asString() == "true";
queues_.push_back(queuesObject);
}
if(!value["Uid"].isNull())