Add tag API.

This commit is contained in:
sdk-team
2019-12-11 11:39:38 +08:00
parent 3e1cf87389
commit e73100b250
653 changed files with 22331 additions and 21725 deletions

File diff suppressed because it is too large Load Diff

View File

@@ -1,38 +0,0 @@
/*
* 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/cms/model/AccessKeyGetRequest.h>
using AlibabaCloud::Cms::Model::AccessKeyGetRequest;
AccessKeyGetRequest::AccessKeyGetRequest() :
RpcServiceRequest("cms", "2018-03-08", "AccessKeyGet")
{}
AccessKeyGetRequest::~AccessKeyGetRequest()
{}
long AccessKeyGetRequest::getUserId()const
{
return userId_;
}
void AccessKeyGetRequest::setUserId(long userId)
{
userId_ = userId;
setCoreParameter("UserId", std::to_string(userId));
}

View File

@@ -1,49 +0,0 @@
/*
* 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/cms/model/AddMyGroupInstancesRequest.h>
using AlibabaCloud::Cms::Model::AddMyGroupInstancesRequest;
AddMyGroupInstancesRequest::AddMyGroupInstancesRequest() :
RpcServiceRequest("cms", "2018-03-08", "AddMyGroupInstances")
{}
AddMyGroupInstancesRequest::~AddMyGroupInstancesRequest()
{}
std::string AddMyGroupInstancesRequest::getInstances()const
{
return instances_;
}
void AddMyGroupInstancesRequest::setInstances(const std::string& instances)
{
instances_ = instances;
setCoreParameter("Instances", instances);
}
long AddMyGroupInstancesRequest::getGroupId()const
{
return groupId_;
}
void AddMyGroupInstancesRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}

View File

@@ -1,65 +0,0 @@
/*
* 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/cms/model/AddMyGroupInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
AddMyGroupInstancesResult::AddMyGroupInstancesResult() :
ServiceResult()
{}
AddMyGroupInstancesResult::AddMyGroupInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
AddMyGroupInstancesResult::~AddMyGroupInstancesResult()
{}
void AddMyGroupInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
int AddMyGroupInstancesResult::getErrorCode()const
{
return errorCode_;
}
std::string AddMyGroupInstancesResult::getErrorMessage()const
{
return errorMessage_;
}
bool AddMyGroupInstancesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,58 @@
/*
* 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/cms/model/AddTagsRequest.h>
using AlibabaCloud::Cms::Model::AddTagsRequest;
AddTagsRequest::AddTagsRequest() :
RpcServiceRequest("cms", "2019-01-01", "AddTags")
{
setMethod(HttpRequest::Method::Post);
}
AddTagsRequest::~AddTagsRequest()
{}
std::vector<std::string> AddTagsRequest::getGroupIds()const
{
return groupIds_;
}
void AddTagsRequest::setGroupIds(const std::vector<std::string>& groupIds)
{
groupIds_ = groupIds;
for(int dep1 = 0; dep1!= groupIds.size(); dep1++) {
setCoreParameter("GroupIds."+ std::to_string(dep1), groupIds.at(dep1));
}
}
std::vector<AddTagsRequest::Tag> AddTagsRequest::getTag()const
{
return tag_;
}
void AddTagsRequest::setTag(const std::vector<Tag>& tag)
{
tag_ = tag;
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
auto tagObj = tag.at(dep1);
std::string tagObjStr = "Tag." + std::to_string(dep1);
setCoreParameter(tagObjStr + ".Value", tagObj.value);
setCoreParameter(tagObjStr + ".Key", tagObj.key);
}
}

View File

@@ -14,51 +14,51 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/UpdateAlarmResult.h>
#include <alibabacloud/cms/model/AddTagsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
UpdateAlarmResult::UpdateAlarmResult() :
AddTagsResult::AddTagsResult() :
ServiceResult()
{}
UpdateAlarmResult::UpdateAlarmResult(const std::string &payload) :
AddTagsResult::AddTagsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
UpdateAlarmResult::~UpdateAlarmResult()
AddTagsResult::~AddTagsResult()
{}
void UpdateAlarmResult::parse(const std::string &payload)
void AddTagsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string UpdateAlarmResult::getMessage()const
std::string AddTagsResult::getMessage()const
{
return message_;
}
std::string UpdateAlarmResult::getCode()const
std::string AddTagsResult::getCode()const
{
return code_;
}
bool UpdateAlarmResult::getSuccess()const
bool AddTagsResult::getSuccess()const
{
return success_;
}

View File

@@ -14,100 +14,102 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/ApplyMonitoringTemplateRequest.h>
#include <alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h>
using AlibabaCloud::Cms::Model::ApplyMonitoringTemplateRequest;
using AlibabaCloud::Cms::Model::ApplyMetricRuleTemplateRequest;
ApplyMonitoringTemplateRequest::ApplyMonitoringTemplateRequest() :
RpcServiceRequest("cms", "2018-03-08", "ApplyMonitoringTemplate")
ApplyMetricRuleTemplateRequest::ApplyMetricRuleTemplateRequest() :
RpcServiceRequest("cms", "2019-01-01", "ApplyMetricRuleTemplate")
{
setMethod(HttpRequest::Method::Post);
}
ApplyMetricRuleTemplateRequest::~ApplyMetricRuleTemplateRequest()
{}
ApplyMonitoringTemplateRequest::~ApplyMonitoringTemplateRequest()
{}
std::string ApplyMonitoringTemplateRequest::getApplyMode()const
std::string ApplyMetricRuleTemplateRequest::getApplyMode()const
{
return applyMode_;
}
void ApplyMonitoringTemplateRequest::setApplyMode(const std::string& applyMode)
void ApplyMetricRuleTemplateRequest::setApplyMode(const std::string& applyMode)
{
applyMode_ = applyMode;
setCoreParameter("ApplyMode", applyMode);
}
std::string ApplyMonitoringTemplateRequest::getWebhook()const
std::string ApplyMetricRuleTemplateRequest::getWebhook()const
{
return webhook_;
}
void ApplyMonitoringTemplateRequest::setWebhook(const std::string& webhook)
void ApplyMetricRuleTemplateRequest::setWebhook(const std::string& webhook)
{
webhook_ = webhook;
setCoreParameter("Webhook", webhook);
}
std::string ApplyMonitoringTemplateRequest::getTemplateIds()const
std::string ApplyMetricRuleTemplateRequest::getTemplateIds()const
{
return templateIds_;
}
void ApplyMonitoringTemplateRequest::setTemplateIds(const std::string& templateIds)
void ApplyMetricRuleTemplateRequest::setTemplateIds(const std::string& templateIds)
{
templateIds_ = templateIds;
setCoreParameter("TemplateIds", templateIds);
}
long ApplyMonitoringTemplateRequest::getEnableEndTime()const
long ApplyMetricRuleTemplateRequest::getEnableEndTime()const
{
return enableEndTime_;
}
void ApplyMonitoringTemplateRequest::setEnableEndTime(long enableEndTime)
void ApplyMetricRuleTemplateRequest::setEnableEndTime(long enableEndTime)
{
enableEndTime_ = enableEndTime;
setCoreParameter("EnableEndTime", std::to_string(enableEndTime));
}
long ApplyMonitoringTemplateRequest::getGroupId()const
long ApplyMetricRuleTemplateRequest::getGroupId()const
{
return groupId_;
}
void ApplyMonitoringTemplateRequest::setGroupId(long groupId)
void ApplyMetricRuleTemplateRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
long ApplyMonitoringTemplateRequest::getNotifyLevel()const
long ApplyMetricRuleTemplateRequest::getNotifyLevel()const
{
return notifyLevel_;
}
void ApplyMonitoringTemplateRequest::setNotifyLevel(long notifyLevel)
void ApplyMetricRuleTemplateRequest::setNotifyLevel(long notifyLevel)
{
notifyLevel_ = notifyLevel;
setCoreParameter("NotifyLevel", std::to_string(notifyLevel));
}
long ApplyMonitoringTemplateRequest::getEnableStartTime()const
long ApplyMetricRuleTemplateRequest::getEnableStartTime()const
{
return enableStartTime_;
}
void ApplyMonitoringTemplateRequest::setEnableStartTime(long enableStartTime)
void ApplyMetricRuleTemplateRequest::setEnableStartTime(long enableStartTime)
{
enableStartTime_ = enableStartTime;
setCoreParameter("EnableStartTime", std::to_string(enableStartTime));
}
long ApplyMonitoringTemplateRequest::getSilenceTime()const
long ApplyMetricRuleTemplateRequest::getSilenceTime()const
{
return silenceTime_;
}
void ApplyMonitoringTemplateRequest::setSilenceTime(long silenceTime)
void ApplyMetricRuleTemplateRequest::setSilenceTime(long silenceTime)
{
silenceTime_ = silenceTime;
setCoreParameter("SilenceTime", std::to_string(silenceTime));

View File

@@ -0,0 +1,91 @@
/*
* 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/cms/model/ApplyMetricRuleTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
ApplyMetricRuleTemplateResult::ApplyMetricRuleTemplateResult() :
ServiceResult()
{}
ApplyMetricRuleTemplateResult::ApplyMetricRuleTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyMetricRuleTemplateResult::~ApplyMetricRuleTemplateResult()
{}
void ApplyMetricRuleTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceNode = value["Resource"];
if(!resourceNode["GroupId"].isNull())
resource_.groupId = std::stol(resourceNode["GroupId"].asString());
auto allAlertResultsNode = resourceNode["AlertResults"]["Result"];
for (auto resourceNodeAlertResultsResult : allAlertResultsNode)
{
Resource::Result resultObject;
if(!resourceNodeAlertResultsResult["GroupId"].isNull())
resultObject.groupId = std::stol(resourceNodeAlertResultsResult["GroupId"].asString());
if(!resourceNodeAlertResultsResult["RuleId"].isNull())
resultObject.ruleId = resourceNodeAlertResultsResult["RuleId"].asString();
if(!resourceNodeAlertResultsResult["Message"].isNull())
resultObject.message = resourceNodeAlertResultsResult["Message"].asString();
if(!resourceNodeAlertResultsResult["RuleName"].isNull())
resultObject.ruleName = resourceNodeAlertResultsResult["RuleName"].asString();
if(!resourceNodeAlertResultsResult["Code"].isNull())
resultObject.code = resourceNodeAlertResultsResult["Code"].asString();
if(!resourceNodeAlertResultsResult["Success"].isNull())
resultObject.success = resourceNodeAlertResultsResult["Success"].asString() == "true";
resource_.alertResults.push_back(resultObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string ApplyMetricRuleTemplateResult::getMessage()const
{
return message_;
}
ApplyMetricRuleTemplateResult::Resource ApplyMetricRuleTemplateResult::getResource()const
{
return resource_;
}
int ApplyMetricRuleTemplateResult::getCode()const
{
return code_;
}
bool ApplyMetricRuleTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -1,109 +0,0 @@
/*
* 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/cms/model/ApplyMonitoringTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
ApplyMonitoringTemplateResult::ApplyMonitoringTemplateResult() :
ServiceResult()
{}
ApplyMonitoringTemplateResult::ApplyMonitoringTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyMonitoringTemplateResult::~ApplyMonitoringTemplateResult()
{}
void ApplyMonitoringTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceNode = value["Resource"];
if(!resourceNode["GroupId"].isNull())
resource_.groupId = std::stol(resourceNode["GroupId"].asString());
auto allEventResultsNode = resourceNode["EventResults"]["Result"];
for (auto resourceNodeEventResultsResult : allEventResultsNode)
{
Resource::Result resultObject;
if(!resourceNodeEventResultsResult["GroupId"].isNull())
resultObject.groupId = std::stol(resourceNodeEventResultsResult["GroupId"].asString());
if(!resourceNodeEventResultsResult["Name"].isNull())
resultObject.name = resourceNodeEventResultsResult["Name"].asString();
if(!resourceNodeEventResultsResult["Message"].isNull())
resultObject.message = resourceNodeEventResultsResult["Message"].asString();
if(!resourceNodeEventResultsResult["DisplayName"].isNull())
resultObject.displayName = resourceNodeEventResultsResult["DisplayName"].asString();
if(!resourceNodeEventResultsResult["Code"].isNull())
resultObject.code = std::stoi(resourceNodeEventResultsResult["Code"].asString());
if(!resourceNodeEventResultsResult["Success"].isNull())
resultObject.success = resourceNodeEventResultsResult["Success"].asString() == "true";
resource_.eventResults.push_back(resultObject);
}
auto allAlertResultsNode = resourceNode["AlertResults"]["Result"];
for (auto resourceNodeAlertResultsResult : allAlertResultsNode)
{
Resource::Result resultObject;
if(!resourceNodeAlertResultsResult["GroupId"].isNull())
resultObject.groupId = std::stol(resourceNodeAlertResultsResult["GroupId"].asString());
if(!resourceNodeAlertResultsResult["Name"].isNull())
resultObject.name = resourceNodeAlertResultsResult["Name"].asString();
if(!resourceNodeAlertResultsResult["Message"].isNull())
resultObject.message = resourceNodeAlertResultsResult["Message"].asString();
if(!resourceNodeAlertResultsResult["DisplayName"].isNull())
resultObject.displayName = resourceNodeAlertResultsResult["DisplayName"].asString();
if(!resourceNodeAlertResultsResult["Code"].isNull())
resultObject.code = std::stoi(resourceNodeAlertResultsResult["Code"].asString());
if(!resourceNodeAlertResultsResult["Success"].isNull())
resultObject.success = resourceNodeAlertResultsResult["Success"].asString() == "true";
resource_.alertResults.push_back(resultObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
ApplyMonitoringTemplateResult::Resource ApplyMonitoringTemplateResult::getResource()const
{
return resource_;
}
int ApplyMonitoringTemplateResult::getErrorCode()const
{
return errorCode_;
}
std::string ApplyMonitoringTemplateResult::getErrorMessage()const
{
return errorMessage_;
}
bool ApplyMonitoringTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -1,104 +0,0 @@
/*
* 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/cms/model/ApplyTemplateRequest.h>
using AlibabaCloud::Cms::Model::ApplyTemplateRequest;
ApplyTemplateRequest::ApplyTemplateRequest() :
RpcServiceRequest("cms", "2018-03-08", "ApplyTemplate")
{}
ApplyTemplateRequest::~ApplyTemplateRequest()
{}
std::string ApplyTemplateRequest::getApplyMode()const
{
return applyMode_;
}
void ApplyTemplateRequest::setApplyMode(const std::string& applyMode)
{
applyMode_ = applyMode;
setCoreParameter("ApplyMode", applyMode);
}
std::string ApplyTemplateRequest::getTemplateIds()const
{
return templateIds_;
}
void ApplyTemplateRequest::setTemplateIds(const std::string& templateIds)
{
templateIds_ = templateIds;
setCoreParameter("TemplateIds", templateIds);
}
long ApplyTemplateRequest::getEnableEndTime()const
{
return enableEndTime_;
}
void ApplyTemplateRequest::setEnableEndTime(long enableEndTime)
{
enableEndTime_ = enableEndTime;
setCoreParameter("EnableEndTime", std::to_string(enableEndTime));
}
long ApplyTemplateRequest::getGroupId()const
{
return groupId_;
}
void ApplyTemplateRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
long ApplyTemplateRequest::getNotifyLevel()const
{
return notifyLevel_;
}
void ApplyTemplateRequest::setNotifyLevel(long notifyLevel)
{
notifyLevel_ = notifyLevel;
setCoreParameter("NotifyLevel", std::to_string(notifyLevel));
}
long ApplyTemplateRequest::getEnableStartTime()const
{
return enableStartTime_;
}
void ApplyTemplateRequest::setEnableStartTime(long enableStartTime)
{
enableStartTime_ = enableStartTime;
setCoreParameter("EnableStartTime", std::to_string(enableStartTime));
}
long ApplyTemplateRequest::getSilenceTime()const
{
return silenceTime_;
}
void ApplyTemplateRequest::setSilenceTime(long silenceTime)
{
silenceTime_ = silenceTime;
setCoreParameter("SilenceTime", std::to_string(silenceTime));
}

View File

@@ -1,89 +0,0 @@
/*
* 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/cms/model/ApplyTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
ApplyTemplateResult::ApplyTemplateResult() :
ServiceResult()
{}
ApplyTemplateResult::ApplyTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ApplyTemplateResult::~ApplyTemplateResult()
{}
void ApplyTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceNode = value["Resource"];
auto allCreateAlertResultsNode = resourceNode["CreateAlertResults"]["AlertResult"];
for (auto resourceNodeCreateAlertResultsAlertResult : allCreateAlertResultsNode)
{
Resource::AlertResult alertResultObject;
if(!resourceNodeCreateAlertResultsAlertResult["Name"].isNull())
alertResultObject.name = resourceNodeCreateAlertResultsAlertResult["Name"].asString();
if(!resourceNodeCreateAlertResultsAlertResult["DisplayName"].isNull())
alertResultObject.displayName = resourceNodeCreateAlertResultsAlertResult["DisplayName"].asString();
if(!resourceNodeCreateAlertResultsAlertResult["MetricNamespace"].isNull())
alertResultObject.metricNamespace = resourceNodeCreateAlertResultsAlertResult["MetricNamespace"].asString();
if(!resourceNodeCreateAlertResultsAlertResult["MetricName"].isNull())
alertResultObject.metricName = resourceNodeCreateAlertResultsAlertResult["MetricName"].asString();
if(!resourceNodeCreateAlertResultsAlertResult["Message"].isNull())
alertResultObject.message = resourceNodeCreateAlertResultsAlertResult["Message"].asString();
if(!resourceNodeCreateAlertResultsAlertResult["Success"].isNull())
alertResultObject.success = resourceNodeCreateAlertResultsAlertResult["Success"].asString();
resource_.createAlertResults.push_back(alertResultObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
ApplyTemplateResult::Resource ApplyTemplateResult::getResource()const
{
return resource_;
}
int ApplyTemplateResult::getErrorCode()const
{
return errorCode_;
}
std::string ApplyTemplateResult::getErrorMessage()const
{
return errorMessage_;
}
bool ApplyTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -1,203 +0,0 @@
/*
* 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/cms/model/CreateAlarmRequest.h>
using AlibabaCloud::Cms::Model::CreateAlarmRequest;
CreateAlarmRequest::CreateAlarmRequest() :
RpcServiceRequest("cms", "2018-03-08", "CreateAlarm")
{}
CreateAlarmRequest::~CreateAlarmRequest()
{}
std::string CreateAlarmRequest::getWebhook()const
{
return webhook_;
}
void CreateAlarmRequest::setWebhook(const std::string& webhook)
{
webhook_ = webhook;
setCoreParameter("Webhook", webhook);
}
std::string CreateAlarmRequest::getThreshold()const
{
return threshold_;
}
void CreateAlarmRequest::setThreshold(const std::string& threshold)
{
threshold_ = threshold;
setCoreParameter("Threshold", threshold);
}
int CreateAlarmRequest::getStartTime()const
{
return startTime_;
}
void CreateAlarmRequest::setStartTime(int startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", std::to_string(startTime));
}
int CreateAlarmRequest::getEvaluationCount()const
{
return evaluationCount_;
}
void CreateAlarmRequest::setEvaluationCount(int evaluationCount)
{
evaluationCount_ = evaluationCount;
setCoreParameter("EvaluationCount", std::to_string(evaluationCount));
}
int CreateAlarmRequest::getSilenceTime()const
{
return silenceTime_;
}
void CreateAlarmRequest::setSilenceTime(int silenceTime)
{
silenceTime_ = silenceTime;
setCoreParameter("SilenceTime", std::to_string(silenceTime));
}
std::string CreateAlarmRequest::getMetricName()const
{
return metricName_;
}
void CreateAlarmRequest::setMetricName(const std::string& metricName)
{
metricName_ = metricName;
setCoreParameter("MetricName", metricName);
}
int CreateAlarmRequest::getNotifyType()const
{
return notifyType_;
}
void CreateAlarmRequest::setNotifyType(int notifyType)
{
notifyType_ = notifyType;
setCoreParameter("NotifyType", std::to_string(notifyType));
}
int CreateAlarmRequest::getPeriod()const
{
return period_;
}
void CreateAlarmRequest::setPeriod(int period)
{
period_ = period;
setCoreParameter("Period", std::to_string(period));
}
bool CreateAlarmRequest::getDryRun()const
{
return dryRun_;
}
void CreateAlarmRequest::setDryRun(bool dryRun)
{
dryRun_ = dryRun;
setCoreParameter("DryRun", dryRun ? "true" : "false");
}
std::string CreateAlarmRequest::getContactGroups()const
{
return contactGroups_;
}
void CreateAlarmRequest::setContactGroups(const std::string& contactGroups)
{
contactGroups_ = contactGroups;
setCoreParameter("ContactGroups", contactGroups);
}
int CreateAlarmRequest::getEndTime()const
{
return endTime_;
}
void CreateAlarmRequest::setEndTime(int endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", std::to_string(endTime));
}
std::string CreateAlarmRequest::getName()const
{
return name_;
}
void CreateAlarmRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
std::string CreateAlarmRequest::get_Namespace()const
{
return _namespace_;
}
void CreateAlarmRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setCoreParameter("_Namespace", _namespace);
}
std::string CreateAlarmRequest::getComparisonOperator()const
{
return comparisonOperator_;
}
void CreateAlarmRequest::setComparisonOperator(const std::string& comparisonOperator)
{
comparisonOperator_ = comparisonOperator;
setCoreParameter("ComparisonOperator", comparisonOperator);
}
std::string CreateAlarmRequest::getDimensions()const
{
return dimensions_;
}
void CreateAlarmRequest::setDimensions(const std::string& dimensions)
{
dimensions_ = dimensions;
setCoreParameter("Dimensions", dimensions);
}
std::string CreateAlarmRequest::getStatistics()const
{
return statistics_;
}
void CreateAlarmRequest::setStatistics(const std::string& statistics)
{
statistics_ = statistics;
setCoreParameter("Statistics", statistics);
}

View File

@@ -0,0 +1,79 @@
/*
* 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/cms/model/CreateGroupMetricRulesRequest.h>
using AlibabaCloud::Cms::Model::CreateGroupMetricRulesRequest;
CreateGroupMetricRulesRequest::CreateGroupMetricRulesRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateGroupMetricRules")
{
setMethod(HttpRequest::Method::Post);
}
CreateGroupMetricRulesRequest::~CreateGroupMetricRulesRequest()
{}
long CreateGroupMetricRulesRequest::getGroupId()const
{
return groupId_;
}
void CreateGroupMetricRulesRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
std::vector<CreateGroupMetricRulesRequest::GroupMetricRules> CreateGroupMetricRulesRequest::getGroupMetricRules()const
{
return groupMetricRules_;
}
void CreateGroupMetricRulesRequest::setGroupMetricRules(const std::vector<GroupMetricRules>& groupMetricRules)
{
groupMetricRules_ = groupMetricRules;
for(int dep1 = 0; dep1!= groupMetricRules.size(); dep1++) {
auto groupMetricRulesObj = groupMetricRules.at(dep1);
std::string groupMetricRulesObjStr = "GroupMetricRules." + std::to_string(dep1);
setCoreParameter(groupMetricRulesObjStr + ".Webhook", groupMetricRulesObj.webhook);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnComparisonOperator", groupMetricRulesObj.escalationsWarnComparisonOperator);
setCoreParameter(groupMetricRulesObjStr + ".RuleName", groupMetricRulesObj.ruleName);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoStatistics", groupMetricRulesObj.escalationsInfoStatistics);
setCoreParameter(groupMetricRulesObjStr + ".EffectiveInterval", groupMetricRulesObj.effectiveInterval);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoComparisonOperator", groupMetricRulesObj.escalationsInfoComparisonOperator);
setCoreParameter(groupMetricRulesObjStr + ".NoEffectiveInterval", groupMetricRulesObj.noEffectiveInterval);
setCoreParameter(groupMetricRulesObjStr + ".EmailSubject", groupMetricRulesObj.emailSubject);
setCoreParameter(groupMetricRulesObjStr + ".SilenceTime", std::to_string(groupMetricRulesObj.silenceTime));
setCoreParameter(groupMetricRulesObjStr + ".MetricName", groupMetricRulesObj.metricName);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnTimes", std::to_string(groupMetricRulesObj.escalationsWarnTimes));
setCoreParameter(groupMetricRulesObjStr + ".Period", groupMetricRulesObj.period);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnThreshold", groupMetricRulesObj.escalationsWarnThreshold);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalStatistics", groupMetricRulesObj.escalationsCriticalStatistics);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoTimes", std::to_string(groupMetricRulesObj.escalationsInfoTimes));
setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalTimes", std::to_string(groupMetricRulesObj.escalationsCriticalTimes));
setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnStatistics", groupMetricRulesObj.escalationsWarnStatistics);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoThreshold", groupMetricRulesObj.escalationsInfoThreshold);
setCoreParameter(groupMetricRulesObjStr + "._Namespace", groupMetricRulesObj._namespace);
setCoreParameter(groupMetricRulesObjStr + ".Interval", groupMetricRulesObj.interval);
setCoreParameter(groupMetricRulesObjStr + ".Category", groupMetricRulesObj.category);
setCoreParameter(groupMetricRulesObjStr + ".RuleId", groupMetricRulesObj.ruleId);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalComparisonOperator", groupMetricRulesObj.escalationsCriticalComparisonOperator);
setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalThreshold", groupMetricRulesObj.escalationsCriticalThreshold);
setCoreParameter(groupMetricRulesObjStr + ".Dimensions", groupMetricRulesObj.dimensions);
}
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/CreateMyGroupAlertBatchResult.h>
#include <alibabacloud/cms/model/CreateGroupMetricRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateMyGroupAlertBatchResult::CreateMyGroupAlertBatchResult() :
CreateGroupMetricRulesResult::CreateGroupMetricRulesResult() :
ServiceResult()
{}
CreateMyGroupAlertBatchResult::CreateMyGroupAlertBatchResult(const std::string &payload) :
CreateGroupMetricRulesResult::CreateGroupMetricRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMyGroupAlertBatchResult::~CreateMyGroupAlertBatchResult()
CreateGroupMetricRulesResult::~CreateGroupMetricRulesResult()
{}
void CreateMyGroupAlertBatchResult::parse(const std::string &payload)
void CreateGroupMetricRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -43,49 +43,43 @@ void CreateMyGroupAlertBatchResult::parse(const std::string &payload)
for (auto valueResourcesAlertResult : allResourcesNode)
{
AlertResult resourcesObject;
if(!valueResourcesAlertResult["AlertName"].isNull())
resourcesObject.alertName = valueResourcesAlertResult["AlertName"].asString();
if(!valueResourcesAlertResult["DisplayName"].isNull())
resourcesObject.displayName = valueResourcesAlertResult["DisplayName"].asString();
if(!valueResourcesAlertResult["MetricNamespace"].isNull())
resourcesObject.metricNamespace = valueResourcesAlertResult["MetricNamespace"].asString();
if(!valueResourcesAlertResult["MetricName"].isNull())
resourcesObject.metricName = valueResourcesAlertResult["MetricName"].asString();
if(!valueResourcesAlertResult["RuleId"].isNull())
resourcesObject.ruleId = valueResourcesAlertResult["RuleId"].asString();
if(!valueResourcesAlertResult["RuleName"].isNull())
resourcesObject.ruleName = valueResourcesAlertResult["RuleName"].asString();
if(!valueResourcesAlertResult["Message"].isNull())
resourcesObject.message = valueResourcesAlertResult["Message"].asString();
if(!valueResourcesAlertResult["Code"].isNull())
resourcesObject.code = std::stoi(valueResourcesAlertResult["Code"].asString());
if(!valueResourcesAlertResult["Success"].isNull())
resourcesObject.success = valueResourcesAlertResult["Success"].asString() == "true";
if(!valueResourcesAlertResult["GroupId"].isNull())
resourcesObject.groupId = std::stol(valueResourcesAlertResult["GroupId"].asString());
resources_.push_back(resourcesObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::vector<CreateMyGroupAlertBatchResult::AlertResult> CreateMyGroupAlertBatchResult::getResources()const
std::string CreateGroupMetricRulesResult::getMessage()const
{
return message_;
}
std::vector<CreateGroupMetricRulesResult::AlertResult> CreateGroupMetricRulesResult::getResources()const
{
return resources_;
}
int CreateMyGroupAlertBatchResult::getErrorCode()const
int CreateGroupMetricRulesResult::getCode()const
{
return errorCode_;
return code_;
}
std::string CreateMyGroupAlertBatchResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateMyGroupAlertBatchResult::getSuccess()const
bool CreateGroupMetricRulesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,102 @@
/*
* 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/cms/model/CreateGroupMonitoringAgentProcessRequest.h>
using AlibabaCloud::Cms::Model::CreateGroupMonitoringAgentProcessRequest;
CreateGroupMonitoringAgentProcessRequest::CreateGroupMonitoringAgentProcessRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateGroupMonitoringAgentProcess")
{
setMethod(HttpRequest::Method::Post);
}
CreateGroupMonitoringAgentProcessRequest::~CreateGroupMonitoringAgentProcessRequest()
{}
std::vector<CreateGroupMonitoringAgentProcessRequest::AlertConfig> CreateGroupMonitoringAgentProcessRequest::getAlertConfig()const
{
return alertConfig_;
}
void CreateGroupMonitoringAgentProcessRequest::setAlertConfig(const std::vector<AlertConfig>& alertConfig)
{
alertConfig_ = alertConfig;
for(int dep1 = 0; dep1!= alertConfig.size(); dep1++) {
auto alertConfigObj = alertConfig.at(dep1);
std::string alertConfigObjStr = "AlertConfig." + std::to_string(dep1);
setCoreParameter(alertConfigObjStr + ".Times", alertConfigObj.times);
setCoreParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval);
setCoreParameter(alertConfigObjStr + ".Webhook", alertConfigObj.webhook);
setCoreParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime);
setCoreParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold);
setCoreParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval);
setCoreParameter(alertConfigObjStr + ".ComparisonOperator", alertConfigObj.comparisonOperator);
setCoreParameter(alertConfigObjStr + ".EscalationsLevel", alertConfigObj.escalationsLevel);
setCoreParameter(alertConfigObjStr + ".Statistics", alertConfigObj.statistics);
}
}
std::string CreateGroupMonitoringAgentProcessRequest::getGroupId()const
{
return groupId_;
}
void CreateGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string CreateGroupMonitoringAgentProcessRequest::getProcessName()const
{
return processName_;
}
void CreateGroupMonitoringAgentProcessRequest::setProcessName(const std::string& processName)
{
processName_ = processName;
setCoreParameter("ProcessName", processName);
}
std::string CreateGroupMonitoringAgentProcessRequest::getMatchExpressFilterRelation()const
{
return matchExpressFilterRelation_;
}
void CreateGroupMonitoringAgentProcessRequest::setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation)
{
matchExpressFilterRelation_ = matchExpressFilterRelation;
setCoreParameter("MatchExpressFilterRelation", matchExpressFilterRelation);
}
std::vector<CreateGroupMonitoringAgentProcessRequest::MatchExpress> CreateGroupMonitoringAgentProcessRequest::getMatchExpress()const
{
return matchExpress_;
}
void CreateGroupMonitoringAgentProcessRequest::setMatchExpress(const std::vector<MatchExpress>& matchExpress)
{
matchExpress_ = matchExpress;
for(int dep1 = 0; dep1!= matchExpress.size(); dep1++) {
auto matchExpressObj = matchExpress.at(dep1);
std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1);
setCoreParameter(matchExpressObjStr + ".Function", matchExpressObj.function);
setCoreParameter(matchExpressObjStr + ".Name", matchExpressObj.name);
setCoreParameter(matchExpressObjStr + ".Value", matchExpressObj.value);
}
}

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/CreateGroupMonitoringAgentProcessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateGroupMonitoringAgentProcessResult::CreateGroupMonitoringAgentProcessResult() :
ServiceResult()
{}
CreateGroupMonitoringAgentProcessResult::CreateGroupMonitoringAgentProcessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateGroupMonitoringAgentProcessResult::~CreateGroupMonitoringAgentProcessResult()
{}
void CreateGroupMonitoringAgentProcessResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string CreateGroupMonitoringAgentProcessResult::getMessage()const
{
return message_;
}
std::string CreateGroupMonitoringAgentProcessResult::getCode()const
{
return code_;
}
bool CreateGroupMonitoringAgentProcessResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,226 @@
/*
* 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/cms/model/CreateHostAvailabilityRequest.h>
using AlibabaCloud::Cms::Model::CreateHostAvailabilityRequest;
CreateHostAvailabilityRequest::CreateHostAvailabilityRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateHostAvailability")
{
setMethod(HttpRequest::Method::Post);
}
CreateHostAvailabilityRequest::~CreateHostAvailabilityRequest()
{}
std::string CreateHostAvailabilityRequest::getTaskOptionHttpMethod()const
{
return taskOptionHttpMethod_;
}
void CreateHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod)
{
taskOptionHttpMethod_ = taskOptionHttpMethod;
setCoreParameter("TaskOptionHttpMethod", taskOptionHttpMethod);
}
std::vector<CreateHostAvailabilityRequest::AlertConfigEscalationList> CreateHostAvailabilityRequest::getAlertConfigEscalationList()const
{
return alertConfigEscalationList_;
}
void CreateHostAvailabilityRequest::setAlertConfigEscalationList(const std::vector<AlertConfigEscalationList>& alertConfigEscalationList)
{
alertConfigEscalationList_ = alertConfigEscalationList;
for(int dep1 = 0; dep1!= alertConfigEscalationList.size(); dep1++) {
auto alertConfigEscalationListObj = alertConfigEscalationList.at(dep1);
std::string alertConfigEscalationListObjStr = "AlertConfigEscalationList." + std::to_string(dep1);
setCoreParameter(alertConfigEscalationListObjStr + ".Times", std::to_string(alertConfigEscalationListObj.times));
setCoreParameter(alertConfigEscalationListObjStr + ".MetricName", alertConfigEscalationListObj.metricName);
setCoreParameter(alertConfigEscalationListObjStr + ".Value", alertConfigEscalationListObj.value);
setCoreParameter(alertConfigEscalationListObjStr + "._Operator", alertConfigEscalationListObj._operator);
setCoreParameter(alertConfigEscalationListObjStr + ".Aggregate", alertConfigEscalationListObj.aggregate);
}
}
std::string CreateHostAvailabilityRequest::getTaskName()const
{
return taskName_;
}
void CreateHostAvailabilityRequest::setTaskName(const std::string& taskName)
{
taskName_ = taskName;
setCoreParameter("TaskName", taskName);
}
int CreateHostAvailabilityRequest::getAlertConfigSilenceTime()const
{
return alertConfigSilenceTime_;
}
void CreateHostAvailabilityRequest::setAlertConfigSilenceTime(int alertConfigSilenceTime)
{
alertConfigSilenceTime_ = alertConfigSilenceTime;
setCoreParameter("AlertConfigSilenceTime", std::to_string(alertConfigSilenceTime));
}
std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseCharset()const
{
return taskOptionHttpResponseCharset_;
}
void CreateHostAvailabilityRequest::setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset)
{
taskOptionHttpResponseCharset_ = taskOptionHttpResponseCharset;
setCoreParameter("TaskOptionHttpResponseCharset", taskOptionHttpResponseCharset);
}
bool CreateHostAvailabilityRequest::getTaskOptionHttpNegative()const
{
return taskOptionHttpNegative_;
}
void CreateHostAvailabilityRequest::setTaskOptionHttpNegative(bool taskOptionHttpNegative)
{
taskOptionHttpNegative_ = taskOptionHttpNegative;
setCoreParameter("TaskOptionHttpNegative", taskOptionHttpNegative ? "true" : "false");
}
int CreateHostAvailabilityRequest::getAlertConfigNotifyType()const
{
return alertConfigNotifyType_;
}
void CreateHostAvailabilityRequest::setAlertConfigNotifyType(int alertConfigNotifyType)
{
alertConfigNotifyType_ = alertConfigNotifyType;
setCoreParameter("AlertConfigNotifyType", std::to_string(alertConfigNotifyType));
}
std::string CreateHostAvailabilityRequest::getTaskOptionTelnetOrPingHost()const
{
return taskOptionTelnetOrPingHost_;
}
void CreateHostAvailabilityRequest::setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost)
{
taskOptionTelnetOrPingHost_ = taskOptionTelnetOrPingHost;
setCoreParameter("TaskOptionTelnetOrPingHost", taskOptionTelnetOrPingHost);
}
std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseMatchContent()const
{
return taskOptionHttpResponseMatchContent_;
}
void CreateHostAvailabilityRequest::setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent)
{
taskOptionHttpResponseMatchContent_ = taskOptionHttpResponseMatchContent;
setCoreParameter("TaskOptionHttpResponseMatchContent", taskOptionHttpResponseMatchContent);
}
std::vector<std::string> CreateHostAvailabilityRequest::getInstanceList()const
{
return instanceList_;
}
void CreateHostAvailabilityRequest::setInstanceList(const std::vector<std::string>& instanceList)
{
instanceList_ = instanceList;
for(int dep1 = 0; dep1!= instanceList.size(); dep1++) {
setCoreParameter("InstanceList."+ std::to_string(dep1), instanceList.at(dep1));
}
}
std::string CreateHostAvailabilityRequest::getTaskType()const
{
return taskType_;
}
void CreateHostAvailabilityRequest::setTaskType(const std::string& taskType)
{
taskType_ = taskType;
setCoreParameter("TaskType", taskType);
}
long CreateHostAvailabilityRequest::getGroupId()const
{
return groupId_;
}
void CreateHostAvailabilityRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
int CreateHostAvailabilityRequest::getAlertConfigEndTime()const
{
return alertConfigEndTime_;
}
void CreateHostAvailabilityRequest::setAlertConfigEndTime(int alertConfigEndTime)
{
alertConfigEndTime_ = alertConfigEndTime;
setCoreParameter("AlertConfigEndTime", std::to_string(alertConfigEndTime));
}
std::string CreateHostAvailabilityRequest::getTaskOptionHttpURI()const
{
return taskOptionHttpURI_;
}
void CreateHostAvailabilityRequest::setTaskOptionHttpURI(const std::string& taskOptionHttpURI)
{
taskOptionHttpURI_ = taskOptionHttpURI;
setCoreParameter("TaskOptionHttpURI", taskOptionHttpURI);
}
std::string CreateHostAvailabilityRequest::getTaskScope()const
{
return taskScope_;
}
void CreateHostAvailabilityRequest::setTaskScope(const std::string& taskScope)
{
taskScope_ = taskScope;
setCoreParameter("TaskScope", taskScope);
}
int CreateHostAvailabilityRequest::getAlertConfigStartTime()const
{
return alertConfigStartTime_;
}
void CreateHostAvailabilityRequest::setAlertConfigStartTime(int alertConfigStartTime)
{
alertConfigStartTime_ = alertConfigStartTime;
setCoreParameter("AlertConfigStartTime", std::to_string(alertConfigStartTime));
}
std::string CreateHostAvailabilityRequest::getAlertConfigWebHook()const
{
return alertConfigWebHook_;
}
void CreateHostAvailabilityRequest::setAlertConfigWebHook(const std::string& alertConfigWebHook)
{
alertConfigWebHook_ = alertConfigWebHook;
setCoreParameter("AlertConfigWebHook", alertConfigWebHook);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/QueryCustomEventCountResult.h>
#include <alibabacloud/cms/model/CreateHostAvailabilityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
QueryCustomEventCountResult::QueryCustomEventCountResult() :
CreateHostAvailabilityResult::CreateHostAvailabilityResult() :
ServiceResult()
{}
QueryCustomEventCountResult::QueryCustomEventCountResult(const std::string &payload) :
CreateHostAvailabilityResult::CreateHostAvailabilityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCustomEventCountResult::~QueryCustomEventCountResult()
CreateHostAvailabilityResult::~CreateHostAvailabilityResult()
{}
void QueryCustomEventCountResult::parse(const std::string &payload)
void CreateHostAvailabilityResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -43,29 +43,29 @@ void QueryCustomEventCountResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["TaskId"].isNull())
taskId_ = std::stol(value["TaskId"].asString());
}
std::string QueryCustomEventCountResult::getMessage()const
long CreateHostAvailabilityResult::getTaskId()const
{
return taskId_;
}
std::string CreateHostAvailabilityResult::getMessage()const
{
return message_;
}
std::string QueryCustomEventCountResult::getData()const
{
return data_;
}
std::string QueryCustomEventCountResult::getCode()const
std::string CreateHostAvailabilityResult::getCode()const
{
return code_;
}
bool QueryCustomEventCountResult::getSuccess()const
bool CreateHostAvailabilityResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/cms/model/CreateMetricRuleResourcesRequest.h>
using AlibabaCloud::Cms::Model::CreateMetricRuleResourcesRequest;
CreateMetricRuleResourcesRequest::CreateMetricRuleResourcesRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateMetricRuleResources")
{
setMethod(HttpRequest::Method::Put);
}
CreateMetricRuleResourcesRequest::~CreateMetricRuleResourcesRequest()
{}
std::string CreateMetricRuleResourcesRequest::getResources()const
{
return resources_;
}
void CreateMetricRuleResourcesRequest::setResources(const std::string& resources)
{
resources_ = resources;
setCoreParameter("Resources", resources);
}
std::string CreateMetricRuleResourcesRequest::getRuleId()const
{
return ruleId_;
}
void CreateMetricRuleResourcesRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", ruleId);
}
std::string CreateMetricRuleResourcesRequest::getOverwrite()const
{
return overwrite_;
}
void CreateMetricRuleResourcesRequest::setOverwrite(const std::string& overwrite)
{
overwrite_ = overwrite;
setCoreParameter("Overwrite", overwrite);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/CreateMetricRuleResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateMetricRuleResourcesResult::CreateMetricRuleResourcesResult() :
ServiceResult()
{}
CreateMetricRuleResourcesResult::CreateMetricRuleResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMetricRuleResourcesResult::~CreateMetricRuleResourcesResult()
{}
void CreateMetricRuleResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateMetricRuleResourcesResult::getMessage()const
{
return message_;
}
std::string CreateMetricRuleResourcesResult::getCode()const
{
return code_;
}
bool CreateMetricRuleResourcesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,84 @@
/*
* 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/cms/model/CreateMetricRuleTemplateRequest.h>
using AlibabaCloud::Cms::Model::CreateMetricRuleTemplateRequest;
CreateMetricRuleTemplateRequest::CreateMetricRuleTemplateRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateMetricRuleTemplate")
{
setMethod(HttpRequest::Method::Post);
}
CreateMetricRuleTemplateRequest::~CreateMetricRuleTemplateRequest()
{}
std::string CreateMetricRuleTemplateRequest::getDescription()const
{
return description_;
}
void CreateMetricRuleTemplateRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateMetricRuleTemplateRequest::getName()const
{
return name_;
}
void CreateMetricRuleTemplateRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
std::vector<CreateMetricRuleTemplateRequest::AlertTemplates> CreateMetricRuleTemplateRequest::getAlertTemplates()const
{
return alertTemplates_;
}
void CreateMetricRuleTemplateRequest::setAlertTemplates(const std::vector<AlertTemplates>& alertTemplates)
{
alertTemplates_ = alertTemplates;
for(int dep1 = 0; dep1!= alertTemplates.size(); dep1++) {
auto alertTemplatesObj = alertTemplates.at(dep1);
std::string alertTemplatesObjStr = "AlertTemplates." + std::to_string(dep1);
setCoreParameter(alertTemplatesObjStr + ".Period", std::to_string(alertTemplatesObj.period));
setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnThreshold", alertTemplatesObj.escalationsWarnThreshold);
setCoreParameter(alertTemplatesObjStr + ".Webhook", alertTemplatesObj.webhook);
setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnComparisonOperator", alertTemplatesObj.escalationsWarnComparisonOperator);
setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalStatistics", alertTemplatesObj.escalationsCriticalStatistics);
setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoTimes", std::to_string(alertTemplatesObj.escalationsInfoTimes));
setCoreParameter(alertTemplatesObjStr + ".RuleName", alertTemplatesObj.ruleName);
setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoStatistics", alertTemplatesObj.escalationsInfoStatistics);
setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalTimes", std::to_string(alertTemplatesObj.escalationsCriticalTimes));
setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoComparisonOperator", alertTemplatesObj.escalationsInfoComparisonOperator);
setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnStatistics", alertTemplatesObj.escalationsWarnStatistics);
setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoThreshold", alertTemplatesObj.escalationsInfoThreshold);
setCoreParameter(alertTemplatesObjStr + "._Namespace", alertTemplatesObj._namespace);
setCoreParameter(alertTemplatesObjStr + ".Selector", alertTemplatesObj.selector);
setCoreParameter(alertTemplatesObjStr + ".MetricName", alertTemplatesObj.metricName);
setCoreParameter(alertTemplatesObjStr + ".Category", alertTemplatesObj.category);
setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalComparisonOperator", alertTemplatesObj.escalationsCriticalComparisonOperator);
setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnTimes", std::to_string(alertTemplatesObj.escalationsWarnTimes));
setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalThreshold", alertTemplatesObj.escalationsCriticalThreshold);
}
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/ListProductOfActiveAlertResult.h>
#include <alibabacloud/cms/model/CreateMetricRuleTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
ListProductOfActiveAlertResult::ListProductOfActiveAlertResult() :
CreateMetricRuleTemplateResult::CreateMetricRuleTemplateResult() :
ServiceResult()
{}
ListProductOfActiveAlertResult::ListProductOfActiveAlertResult(const std::string &payload) :
CreateMetricRuleTemplateResult::CreateMetricRuleTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListProductOfActiveAlertResult::~ListProductOfActiveAlertResult()
CreateMetricRuleTemplateResult::~CreateMetricRuleTemplateResult()
{}
void ListProductOfActiveAlertResult::parse(const std::string &payload)
void CreateMetricRuleTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -45,27 +45,27 @@ void ListProductOfActiveAlertResult::parse(const std::string &payload)
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Datapoints"].isNull())
datapoints_ = value["Datapoints"].asString();
if(!value["Id"].isNull())
id_ = std::stol(value["Id"].asString());
}
std::string ListProductOfActiveAlertResult::getMessage()const
std::string CreateMetricRuleTemplateResult::getMessage()const
{
return message_;
}
std::string ListProductOfActiveAlertResult::getDatapoints()const
long CreateMetricRuleTemplateResult::getId()const
{
return datapoints_;
return id_;
}
int ListProductOfActiveAlertResult::getCode()const
int CreateMetricRuleTemplateResult::getCode()const
{
return code_;
}
bool ListProductOfActiveAlertResult::getSuccess()const
bool CreateMetricRuleTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/cms/model/CreateMonitorAgentProcessRequest.h>
using AlibabaCloud::Cms::Model::CreateMonitorAgentProcessRequest;
CreateMonitorAgentProcessRequest::CreateMonitorAgentProcessRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateMonitorAgentProcess")
{
setMethod(HttpRequest::Method::Post);
}
CreateMonitorAgentProcessRequest::~CreateMonitorAgentProcessRequest()
{}
std::string CreateMonitorAgentProcessRequest::getProcessName()const
{
return processName_;
}
void CreateMonitorAgentProcessRequest::setProcessName(const std::string& processName)
{
processName_ = processName;
setCoreParameter("ProcessName", processName);
}
std::string CreateMonitorAgentProcessRequest::getInstanceId()const
{
return instanceId_;
}
void CreateMonitorAgentProcessRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string CreateMonitorAgentProcessRequest::getProcessUser()const
{
return processUser_;
}
void CreateMonitorAgentProcessRequest::setProcessUser(const std::string& processUser)
{
processUser_ = processUser;
setCoreParameter("ProcessUser", processUser);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/QueryCustomEventHistogramResult.h>
#include <alibabacloud/cms/model/CreateMonitorAgentProcessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
QueryCustomEventHistogramResult::QueryCustomEventHistogramResult() :
CreateMonitorAgentProcessResult::CreateMonitorAgentProcessResult() :
ServiceResult()
{}
QueryCustomEventHistogramResult::QueryCustomEventHistogramResult(const std::string &payload) :
CreateMonitorAgentProcessResult::CreateMonitorAgentProcessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
QueryCustomEventHistogramResult::~QueryCustomEventHistogramResult()
CreateMonitorAgentProcessResult::~CreateMonitorAgentProcessResult()
{}
void QueryCustomEventHistogramResult::parse(const std::string &payload)
void CreateMonitorAgentProcessResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -43,29 +43,29 @@ void QueryCustomEventHistogramResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
success_ = value["Success"].asString() == "true";
if(!value["Id"].isNull())
id_ = std::stol(value["Id"].asString());
}
std::string QueryCustomEventHistogramResult::getMessage()const
std::string CreateMonitorAgentProcessResult::getMessage()const
{
return message_;
}
std::string QueryCustomEventHistogramResult::getData()const
long CreateMonitorAgentProcessResult::getId()const
{
return data_;
return id_;
}
std::string QueryCustomEventHistogramResult::getCode()const
std::string CreateMonitorAgentProcessResult::getCode()const
{
return code_;
}
std::string QueryCustomEventHistogramResult::getSuccess()const
bool CreateMonitorAgentProcessResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,58 @@
/*
* 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/cms/model/CreateMonitorGroupInstancesRequest.h>
using AlibabaCloud::Cms::Model::CreateMonitorGroupInstancesRequest;
CreateMonitorGroupInstancesRequest::CreateMonitorGroupInstancesRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupInstances")
{
setMethod(HttpRequest::Method::Post);
}
CreateMonitorGroupInstancesRequest::~CreateMonitorGroupInstancesRequest()
{}
std::vector<CreateMonitorGroupInstancesRequest::Instances> CreateMonitorGroupInstancesRequest::getInstances()const
{
return instances_;
}
void CreateMonitorGroupInstancesRequest::setInstances(const std::vector<Instances>& instances)
{
instances_ = instances;
for(int dep1 = 0; dep1!= instances.size(); dep1++) {
auto instancesObj = instances.at(dep1);
std::string instancesObjStr = "Instances." + std::to_string(dep1);
setCoreParameter(instancesObjStr + ".InstanceId", instancesObj.instanceId);
setCoreParameter(instancesObjStr + ".InstanceName", instancesObj.instanceName);
setCoreParameter(instancesObjStr + ".RegionId", instancesObj.regionId);
setCoreParameter(instancesObjStr + ".Category", instancesObj.category);
}
}
long CreateMonitorGroupInstancesRequest::getGroupId()const
{
return groupId_;
}
void CreateMonitorGroupInstancesRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/CreateMonitorGroupInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateMonitorGroupInstancesResult::CreateMonitorGroupInstancesResult() :
ServiceResult()
{}
CreateMonitorGroupInstancesResult::CreateMonitorGroupInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMonitorGroupInstancesResult::~CreateMonitorGroupInstancesResult()
{}
void CreateMonitorGroupInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string CreateMonitorGroupInstancesResult::getMessage()const
{
return message_;
}
int CreateMonitorGroupInstancesResult::getCode()const
{
return code_;
}
bool CreateMonitorGroupInstancesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,73 @@
/*
* 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/cms/model/CreateMonitorGroupNotifyPolicyRequest.h>
using AlibabaCloud::Cms::Model::CreateMonitorGroupNotifyPolicyRequest;
CreateMonitorGroupNotifyPolicyRequest::CreateMonitorGroupNotifyPolicyRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupNotifyPolicy")
{
setMethod(HttpRequest::Method::Post);
}
CreateMonitorGroupNotifyPolicyRequest::~CreateMonitorGroupNotifyPolicyRequest()
{}
std::string CreateMonitorGroupNotifyPolicyRequest::getPolicyType()const
{
return policyType_;
}
void CreateMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setCoreParameter("PolicyType", policyType);
}
std::string CreateMonitorGroupNotifyPolicyRequest::getGroupId()const
{
return groupId_;
}
void CreateMonitorGroupNotifyPolicyRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
long CreateMonitorGroupNotifyPolicyRequest::getEndTime()const
{
return endTime_;
}
void CreateMonitorGroupNotifyPolicyRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", std::to_string(endTime));
}
long CreateMonitorGroupNotifyPolicyRequest::getStartTime()const
{
return startTime_;
}
void CreateMonitorGroupNotifyPolicyRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", std::to_string(startTime));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DeleteNotifyPolicyResult.h>
#include <alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteNotifyPolicyResult::DeleteNotifyPolicyResult() :
CreateMonitorGroupNotifyPolicyResult::CreateMonitorGroupNotifyPolicyResult() :
ServiceResult()
{}
DeleteNotifyPolicyResult::DeleteNotifyPolicyResult(const std::string &payload) :
CreateMonitorGroupNotifyPolicyResult::CreateMonitorGroupNotifyPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteNotifyPolicyResult::~DeleteNotifyPolicyResult()
CreateMonitorGroupNotifyPolicyResult::~CreateMonitorGroupNotifyPolicyResult()
{}
void DeleteNotifyPolicyResult::parse(const std::string &payload)
void CreateMonitorGroupNotifyPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -50,22 +50,22 @@ void DeleteNotifyPolicyResult::parse(const std::string &payload)
}
std::string DeleteNotifyPolicyResult::getMessage()const
std::string CreateMonitorGroupNotifyPolicyResult::getMessage()const
{
return message_;
}
std::string DeleteNotifyPolicyResult::getCode()const
std::string CreateMonitorGroupNotifyPolicyResult::getCode()const
{
return code_;
}
std::string DeleteNotifyPolicyResult::getSuccess()const
std::string CreateMonitorGroupNotifyPolicyResult::getSuccess()const
{
return success_;
}
int DeleteNotifyPolicyResult::getResult()const
int CreateMonitorGroupNotifyPolicyResult::getResult()const
{
return result_;
}

View File

@@ -14,78 +14,80 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/CreateMyGroupsRequest.h>
#include <alibabacloud/cms/model/CreateMonitorGroupRequest.h>
using AlibabaCloud::Cms::Model::CreateMyGroupsRequest;
using AlibabaCloud::Cms::Model::CreateMonitorGroupRequest;
CreateMyGroupsRequest::CreateMyGroupsRequest() :
RpcServiceRequest("cms", "2018-03-08", "CreateMyGroups")
CreateMonitorGroupRequest::CreateMonitorGroupRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroup")
{
setMethod(HttpRequest::Method::Post);
}
CreateMonitorGroupRequest::~CreateMonitorGroupRequest()
{}
CreateMyGroupsRequest::~CreateMyGroupsRequest()
{}
std::string CreateMyGroupsRequest::getContactGroups()const
std::string CreateMonitorGroupRequest::getContactGroups()const
{
return contactGroups_;
}
void CreateMyGroupsRequest::setContactGroups(const std::string& contactGroups)
void CreateMonitorGroupRequest::setContactGroups(const std::string& contactGroups)
{
contactGroups_ = contactGroups;
setCoreParameter("ContactGroups", contactGroups);
}
std::string CreateMyGroupsRequest::getType()const
std::string CreateMonitorGroupRequest::getType()const
{
return type_;
}
void CreateMyGroupsRequest::setType(const std::string& type)
void CreateMonitorGroupRequest::setType(const std::string& type)
{
type_ = type;
setCoreParameter("Type", type);
}
std::string CreateMyGroupsRequest::getGroupName()const
std::string CreateMonitorGroupRequest::getGroupName()const
{
return groupName_;
}
void CreateMyGroupsRequest::setGroupName(const std::string& groupName)
void CreateMonitorGroupRequest::setGroupName(const std::string& groupName)
{
groupName_ = groupName;
setCoreParameter("GroupName", groupName);
}
std::string CreateMyGroupsRequest::getOptions()const
std::string CreateMonitorGroupRequest::getOptions()const
{
return options_;
}
void CreateMyGroupsRequest::setOptions(const std::string& options)
void CreateMonitorGroupRequest::setOptions(const std::string& options)
{
options_ = options;
setCoreParameter("Options", options);
}
long CreateMyGroupsRequest::getServiceId()const
long CreateMonitorGroupRequest::getServiceId()const
{
return serviceId_;
}
void CreateMyGroupsRequest::setServiceId(long serviceId)
void CreateMonitorGroupRequest::setServiceId(long serviceId)
{
serviceId_ = serviceId;
setCoreParameter("ServiceId", std::to_string(serviceId));
}
std::string CreateMyGroupsRequest::getBindUrl()const
std::string CreateMonitorGroupRequest::getBindUrl()const
{
return bindUrl_;
}
void CreateMyGroupsRequest::setBindUrl(const std::string& bindUrl)
void CreateMonitorGroupRequest::setBindUrl(const std::string& bindUrl)
{
bindUrl_ = bindUrl;
setCoreParameter("BindUrl", bindUrl);

View 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/cms/model/CreateMonitorGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateMonitorGroupResult::CreateMonitorGroupResult() :
ServiceResult()
{}
CreateMonitorGroupResult::CreateMonitorGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMonitorGroupResult::~CreateMonitorGroupResult()
{}
void CreateMonitorGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["GroupId"].isNull())
groupId_ = std::stol(value["GroupId"].asString());
}
std::string CreateMonitorGroupResult::getMessage()const
{
return message_;
}
int CreateMonitorGroupResult::getCode()const
{
return code_;
}
bool CreateMonitorGroupResult::getSuccess()const
{
return success_;
}
long CreateMonitorGroupResult::getGroupId()const
{
return groupId_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/cms/model/CreateMonitoringAgentProcessRequest.h>
using AlibabaCloud::Cms::Model::CreateMonitoringAgentProcessRequest;
CreateMonitoringAgentProcessRequest::CreateMonitoringAgentProcessRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateMonitoringAgentProcess")
{
setMethod(HttpRequest::Method::Post);
}
CreateMonitoringAgentProcessRequest::~CreateMonitoringAgentProcessRequest()
{}
std::string CreateMonitoringAgentProcessRequest::getProcessName()const
{
return processName_;
}
void CreateMonitoringAgentProcessRequest::setProcessName(const std::string& processName)
{
processName_ = processName;
setCoreParameter("ProcessName", processName);
}
std::string CreateMonitoringAgentProcessRequest::getInstanceId()const
{
return instanceId_;
}
void CreateMonitoringAgentProcessRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string CreateMonitoringAgentProcessRequest::getProcessUser()const
{
return processUser_;
}
void CreateMonitoringAgentProcessRequest::setProcessUser(const std::string& processUser)
{
processUser_ = processUser;
setCoreParameter("ProcessUser", processUser);
}

View 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/cms/model/CreateMonitoringAgentProcessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateMonitoringAgentProcessResult::CreateMonitoringAgentProcessResult() :
ServiceResult()
{}
CreateMonitoringAgentProcessResult::CreateMonitoringAgentProcessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMonitoringAgentProcessResult::~CreateMonitoringAgentProcessResult()
{}
void CreateMonitoringAgentProcessResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Id"].isNull())
id_ = std::stol(value["Id"].asString());
}
std::string CreateMonitoringAgentProcessResult::getMessage()const
{
return message_;
}
long CreateMonitoringAgentProcessResult::getId()const
{
return id_;
}
std::string CreateMonitoringAgentProcessResult::getCode()const
{
return code_;
}
bool CreateMonitoringAgentProcessResult::getSuccess()const
{
return success_;
}

View File

@@ -1,82 +0,0 @@
/*
* 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/cms/model/CreateMonitoringTemplateRequest.h>
using AlibabaCloud::Cms::Model::CreateMonitoringTemplateRequest;
CreateMonitoringTemplateRequest::CreateMonitoringTemplateRequest() :
RpcServiceRequest("cms", "2018-03-08", "CreateMonitoringTemplate")
{}
CreateMonitoringTemplateRequest::~CreateMonitoringTemplateRequest()
{}
std::string CreateMonitoringTemplateRequest::getEventRuleTemplatesJson()const
{
return eventRuleTemplatesJson_;
}
void CreateMonitoringTemplateRequest::setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson)
{
eventRuleTemplatesJson_ = eventRuleTemplatesJson;
setCoreParameter("EventRuleTemplatesJson", eventRuleTemplatesJson);
}
std::string CreateMonitoringTemplateRequest::getName()const
{
return name_;
}
void CreateMonitoringTemplateRequest::setName(const std::string& name)
{
name_ = name;
setCoreParameter("Name", name);
}
std::string CreateMonitoringTemplateRequest::get_Namespace()const
{
return _namespace_;
}
void CreateMonitoringTemplateRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setCoreParameter("_Namespace", _namespace);
}
std::string CreateMonitoringTemplateRequest::getDescription()const
{
return description_;
}
void CreateMonitoringTemplateRequest::setDescription(const std::string& description)
{
description_ = description;
setCoreParameter("Description", description);
}
std::string CreateMonitoringTemplateRequest::getAlertTemplatesJson()const
{
return alertTemplatesJson_;
}
void CreateMonitoringTemplateRequest::setAlertTemplatesJson(const std::string& alertTemplatesJson)
{
alertTemplatesJson_ = alertTemplatesJson;
setCoreParameter("AlertTemplatesJson", alertTemplatesJson);
}

View File

@@ -1,72 +0,0 @@
/*
* 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/cms/model/CreateMonitoringTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateMonitoringTemplateResult::CreateMonitoringTemplateResult() :
ServiceResult()
{}
CreateMonitoringTemplateResult::CreateMonitoringTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMonitoringTemplateResult::~CreateMonitoringTemplateResult()
{}
void CreateMonitoringTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Id"].isNull())
id_ = std::stol(value["Id"].asString());
}
int CreateMonitoringTemplateResult::getErrorCode()const
{
return errorCode_;
}
long CreateMonitoringTemplateResult::getId()const
{
return id_;
}
std::string CreateMonitoringTemplateResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateMonitoringTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -1,49 +0,0 @@
/*
* 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/cms/model/CreateMyGroupAlertBatchRequest.h>
using AlibabaCloud::Cms::Model::CreateMyGroupAlertBatchRequest;
CreateMyGroupAlertBatchRequest::CreateMyGroupAlertBatchRequest() :
RpcServiceRequest("cms", "2018-03-08", "CreateMyGroupAlertBatch")
{}
CreateMyGroupAlertBatchRequest::~CreateMyGroupAlertBatchRequest()
{}
long CreateMyGroupAlertBatchRequest::getGroupId()const
{
return groupId_;
}
void CreateMyGroupAlertBatchRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
std::string CreateMyGroupAlertBatchRequest::getGroupAlertJsonArray()const
{
return groupAlertJsonArray_;
}
void CreateMyGroupAlertBatchRequest::setGroupAlertJsonArray(const std::string& groupAlertJsonArray)
{
groupAlertJsonArray_ = groupAlertJsonArray;
setCoreParameter("GroupAlertJsonArray", groupAlertJsonArray);
}

View File

@@ -1,72 +0,0 @@
/*
* 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/cms/model/CreateMyGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateMyGroupsResult::CreateMyGroupsResult() :
ServiceResult()
{}
CreateMyGroupsResult::CreateMyGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateMyGroupsResult::~CreateMyGroupsResult()
{}
void CreateMyGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["GroupId"].isNull())
groupId_ = std::stol(value["GroupId"].asString());
}
int CreateMyGroupsResult::getErrorCode()const
{
return errorCode_;
}
std::string CreateMyGroupsResult::getErrorMessage()const
{
return errorMessage_;
}
bool CreateMyGroupsResult::getSuccess()const
{
return success_;
}
long CreateMyGroupsResult::getGroupId()const
{
return groupId_;
}

View File

@@ -1,104 +0,0 @@
/*
* 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/cms/model/CreateNotifyPolicyRequest.h>
using AlibabaCloud::Cms::Model::CreateNotifyPolicyRequest;
CreateNotifyPolicyRequest::CreateNotifyPolicyRequest() :
RpcServiceRequest("cms", "2018-03-08", "CreateNotifyPolicy")
{}
CreateNotifyPolicyRequest::~CreateNotifyPolicyRequest()
{}
std::string CreateNotifyPolicyRequest::getPolicyType()const
{
return policyType_;
}
void CreateNotifyPolicyRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setCoreParameter("PolicyType", policyType);
}
std::string CreateNotifyPolicyRequest::getAlertName()const
{
return alertName_;
}
void CreateNotifyPolicyRequest::setAlertName(const std::string& alertName)
{
alertName_ = alertName;
setCoreParameter("AlertName", alertName);
}
std::string CreateNotifyPolicyRequest::getGroupId()const
{
return groupId_;
}
void CreateNotifyPolicyRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
long CreateNotifyPolicyRequest::getEndTime()const
{
return endTime_;
}
void CreateNotifyPolicyRequest::setEndTime(long endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", std::to_string(endTime));
}
long CreateNotifyPolicyRequest::getStartTime()const
{
return startTime_;
}
void CreateNotifyPolicyRequest::setStartTime(long startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", std::to_string(startTime));
}
std::string CreateNotifyPolicyRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void CreateNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string CreateNotifyPolicyRequest::getDimensions()const
{
return dimensions_;
}
void CreateNotifyPolicyRequest::setDimensions(const std::string& dimensions)
{
dimensions_ = dimensions;
setCoreParameter("Dimensions", dimensions);
}

View File

@@ -0,0 +1,106 @@
/*
* 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/cms/model/CreateSiteMonitorRequest.h>
using AlibabaCloud::Cms::Model::CreateSiteMonitorRequest;
CreateSiteMonitorRequest::CreateSiteMonitorRequest() :
RpcServiceRequest("cms", "2019-01-01", "CreateSiteMonitor")
{
setMethod(HttpRequest::Method::Post);
}
CreateSiteMonitorRequest::~CreateSiteMonitorRequest()
{}
std::string CreateSiteMonitorRequest::getAddress()const
{
return address_;
}
void CreateSiteMonitorRequest::setAddress(const std::string& address)
{
address_ = address;
setCoreParameter("Address", address);
}
std::string CreateSiteMonitorRequest::getTaskType()const
{
return taskType_;
}
void CreateSiteMonitorRequest::setTaskType(const std::string& taskType)
{
taskType_ = taskType;
setCoreParameter("TaskType", taskType);
}
std::string CreateSiteMonitorRequest::getTaskName()const
{
return taskName_;
}
void CreateSiteMonitorRequest::setTaskName(const std::string& taskName)
{
taskName_ = taskName;
setCoreParameter("TaskName", taskName);
}
std::string CreateSiteMonitorRequest::getIspCities()const
{
return ispCities_;
}
void CreateSiteMonitorRequest::setIspCities(const std::string& ispCities)
{
ispCities_ = ispCities;
setCoreParameter("IspCities", ispCities);
}
std::string CreateSiteMonitorRequest::getOptionsJson()const
{
return optionsJson_;
}
void CreateSiteMonitorRequest::setOptionsJson(const std::string& optionsJson)
{
optionsJson_ = optionsJson;
setCoreParameter("OptionsJson", optionsJson);
}
std::string CreateSiteMonitorRequest::getAlertIds()const
{
return alertIds_;
}
void CreateSiteMonitorRequest::setAlertIds(const std::string& alertIds)
{
alertIds_ = alertIds;
setCoreParameter("AlertIds", alertIds);
}
std::string CreateSiteMonitorRequest::getInterval()const
{
return interval_;
}
void CreateSiteMonitorRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setCoreParameter("Interval", interval);
}

View File

@@ -0,0 +1,94 @@
/*
* 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/cms/model/CreateSiteMonitorResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateSiteMonitorResult::CreateSiteMonitorResult() :
ServiceResult()
{}
CreateSiteMonitorResult::CreateSiteMonitorResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateSiteMonitorResult::~CreateSiteMonitorResult()
{}
void CreateSiteMonitorResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto dataNode = value["Data"];
auto allAttachAlertResultNode = dataNode["AttachAlertResult"]["Contact"];
for (auto dataNodeAttachAlertResultContact : allAttachAlertResultNode)
{
Data::Contact contactObject;
if(!dataNodeAttachAlertResultContact["Message"].isNull())
contactObject.message = dataNodeAttachAlertResultContact["Message"].asString();
if(!dataNodeAttachAlertResultContact["RequestId"].isNull())
contactObject.requestId = dataNodeAttachAlertResultContact["RequestId"].asString();
if(!dataNodeAttachAlertResultContact["Code"].isNull())
contactObject.code = dataNodeAttachAlertResultContact["Code"].asString();
if(!dataNodeAttachAlertResultContact["Success"].isNull())
contactObject.success = dataNodeAttachAlertResultContact["Success"].asString();
if(!dataNodeAttachAlertResultContact["RuleId"].isNull())
contactObject.ruleId = dataNodeAttachAlertResultContact["RuleId"].asString();
data_.attachAlertResult.push_back(contactObject);
}
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["AlertRule"].isNull())
alertRule_ = value["AlertRule"].asString();
}
std::string CreateSiteMonitorResult::getMessage()const
{
return message_;
}
CreateSiteMonitorResult::Data CreateSiteMonitorResult::getData()const
{
return data_;
}
std::string CreateSiteMonitorResult::getCode()const
{
return code_;
}
std::string CreateSiteMonitorResult::getSuccess()const
{
return success_;
}
std::string CreateSiteMonitorResult::getAlertRule()const
{
return alertRule_;
}

View File

@@ -1,126 +0,0 @@
/*
* 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/cms/model/CreateTaskRequest.h>
using AlibabaCloud::Cms::Model::CreateTaskRequest;
CreateTaskRequest::CreateTaskRequest() :
RpcServiceRequest("cms", "2018-03-08", "CreateTask")
{}
CreateTaskRequest::~CreateTaskRequest()
{}
std::string CreateTaskRequest::getTaskName()const
{
return taskName_;
}
void CreateTaskRequest::setTaskName(const std::string& taskName)
{
taskName_ = taskName;
setCoreParameter("TaskName", taskName);
}
std::string CreateTaskRequest::getAlertIds()const
{
return alertIds_;
}
void CreateTaskRequest::setAlertIds(const std::string& alertIds)
{
alertIds_ = alertIds;
setCoreParameter("AlertIds", alertIds);
}
std::string CreateTaskRequest::getOptions()const
{
return options_;
}
void CreateTaskRequest::setOptions(const std::string& options)
{
options_ = options;
setCoreParameter("Options", options);
}
std::string CreateTaskRequest::getAddress()const
{
return address_;
}
void CreateTaskRequest::setAddress(const std::string& address)
{
address_ = address;
setCoreParameter("Address", address);
}
std::string CreateTaskRequest::getTaskType()const
{
return taskType_;
}
void CreateTaskRequest::setTaskType(const std::string& taskType)
{
taskType_ = taskType;
setCoreParameter("TaskType", taskType);
}
std::string CreateTaskRequest::getCaller()const
{
return caller_;
}
void CreateTaskRequest::setCaller(const std::string& caller)
{
caller_ = caller;
setCoreParameter("Caller", caller);
}
std::string CreateTaskRequest::getIspCity()const
{
return ispCity_;
}
void CreateTaskRequest::setIspCity(const std::string& ispCity)
{
ispCity_ = ispCity;
setCoreParameter("IspCity", ispCity);
}
std::string CreateTaskRequest::getInterval()const
{
return interval_;
}
void CreateTaskRequest::setInterval(const std::string& interval)
{
interval_ = interval;
setCoreParameter("Interval", interval);
}
std::string CreateTaskRequest::getAlertRule()const
{
return alertRule_;
}
void CreateTaskRequest::setAlertRule(const std::string& alertRule)
{
alertRule_ = alertRule;
setCoreParameter("AlertRule", alertRule);
}

View File

@@ -14,25 +14,27 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/QueryCustomEventHistogramRequest.h>
#include <alibabacloud/cms/model/DeleteContactGroupRequest.h>
using AlibabaCloud::Cms::Model::QueryCustomEventHistogramRequest;
using AlibabaCloud::Cms::Model::DeleteContactGroupRequest;
QueryCustomEventHistogramRequest::QueryCustomEventHistogramRequest() :
RpcServiceRequest("cms", "2018-03-08", "QueryCustomEventHistogram")
DeleteContactGroupRequest::DeleteContactGroupRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteContactGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteContactGroupRequest::~DeleteContactGroupRequest()
{}
QueryCustomEventHistogramRequest::~QueryCustomEventHistogramRequest()
{}
std::string QueryCustomEventHistogramRequest::getQueryJson()const
std::string DeleteContactGroupRequest::getContactGroupName()const
{
return queryJson_;
return contactGroupName_;
}
void QueryCustomEventHistogramRequest::setQueryJson(const std::string& queryJson)
void DeleteContactGroupRequest::setContactGroupName(const std::string& contactGroupName)
{
queryJson_ = queryJson;
setCoreParameter("QueryJson", queryJson);
contactGroupName_ = contactGroupName;
setCoreParameter("ContactGroupName", contactGroupName);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DisableActiveAlertResult.h>
#include <alibabacloud/cms/model/DeleteContactGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DisableActiveAlertResult::DisableActiveAlertResult() :
DeleteContactGroupResult::DeleteContactGroupResult() :
ServiceResult()
{}
DisableActiveAlertResult::DisableActiveAlertResult(const std::string &payload) :
DeleteContactGroupResult::DeleteContactGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableActiveAlertResult::~DisableActiveAlertResult()
DeleteContactGroupResult::~DeleteContactGroupResult()
{}
void DisableActiveAlertResult::parse(const std::string &payload)
void DeleteContactGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -48,17 +48,17 @@ void DisableActiveAlertResult::parse(const std::string &payload)
}
std::string DisableActiveAlertResult::getMessage()const
std::string DeleteContactGroupResult::getMessage()const
{
return message_;
}
std::string DisableActiveAlertResult::getCode()const
std::string DeleteContactGroupResult::getCode()const
{
return code_;
}
bool DisableActiveAlertResult::getSuccess()const
bool DeleteContactGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -14,23 +14,25 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DescribeContactRequest.h>
#include <alibabacloud/cms/model/DeleteContactRequest.h>
using AlibabaCloud::Cms::Model::DescribeContactRequest;
using AlibabaCloud::Cms::Model::DeleteContactRequest;
DescribeContactRequest::DescribeContactRequest() :
RpcServiceRequest("cms", "2018-03-08", "DescribeContact")
DeleteContactRequest::DeleteContactRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteContact")
{
setMethod(HttpRequest::Method::Post);
}
DeleteContactRequest::~DeleteContactRequest()
{}
DescribeContactRequest::~DescribeContactRequest()
{}
std::string DescribeContactRequest::getContactName()const
std::string DeleteContactRequest::getContactName()const
{
return contactName_;
}
void DescribeContactRequest::setContactName(const std::string& contactName)
void DeleteContactRequest::setContactName(const std::string& contactName)
{
contactName_ = contactName;
setCoreParameter("ContactName", contactName);

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DisableAlarmResult.h>
#include <alibabacloud/cms/model/DeleteContactResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DisableAlarmResult::DisableAlarmResult() :
DeleteContactResult::DeleteContactResult() :
ServiceResult()
{}
DisableAlarmResult::DisableAlarmResult(const std::string &payload) :
DeleteContactResult::DeleteContactResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableAlarmResult::~DisableAlarmResult()
DeleteContactResult::~DeleteContactResult()
{}
void DisableAlarmResult::parse(const std::string &payload)
void DeleteContactResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -48,17 +48,17 @@ void DisableAlarmResult::parse(const std::string &payload)
}
std::string DisableAlarmResult::getMessage()const
std::string DeleteContactResult::getMessage()const
{
return message_;
}
std::string DisableAlarmResult::getCode()const
std::string DeleteContactResult::getCode()const
{
return code_;
}
bool DisableAlarmResult::getSuccess()const
bool DeleteContactResult::getSuccess()const
{
return success_;
}

View File

@@ -19,8 +19,10 @@
using AlibabaCloud::Cms::Model::DeleteCustomMetricRequest;
DeleteCustomMetricRequest::DeleteCustomMetricRequest() :
RpcServiceRequest("cms", "2018-03-08", "DeleteCustomMetric")
{}
RpcServiceRequest("cms", "2019-01-01", "DeleteCustomMetric")
{
setMethod(HttpRequest::Method::Post);
}
DeleteCustomMetricRequest::~DeleteCustomMetricRequest()
{}

View File

@@ -43,8 +43,6 @@ void DeleteCustomMetricResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Result"].isNull())
result_ = value["Result"].asString();
}
@@ -58,8 +56,3 @@ std::string DeleteCustomMetricResult::getCode()const
return code_;
}
std::string DeleteCustomMetricResult::getResult()const
{
return result_;
}

View File

@@ -1,50 +0,0 @@
/*
* 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/cms/model/DeleteEventRuleRequest.h>
using AlibabaCloud::Cms::Model::DeleteEventRuleRequest;
DeleteEventRuleRequest::DeleteEventRuleRequest() :
RpcServiceRequest("cms", "2018-03-08", "DeleteEventRule")
{}
DeleteEventRuleRequest::~DeleteEventRuleRequest()
{}
std::string DeleteEventRuleRequest::getRuleName()const
{
return ruleName_;
}
void DeleteEventRuleRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setCoreParameter("RuleName", ruleName);
}
std::vector<std::string> DeleteEventRuleRequest::getRuleNames()const
{
return ruleNames_;
}
void DeleteEventRuleRequest::setRuleNames(const std::vector<std::string>& ruleNames)
{
ruleNames_ = ruleNames;
for(int i = 0; i!= ruleNames.size(); i++)
setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i));
}

View File

@@ -0,0 +1,53 @@
/*
* 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/cms/model/DeleteEventRuleTargetsRequest.h>
using AlibabaCloud::Cms::Model::DeleteEventRuleTargetsRequest;
DeleteEventRuleTargetsRequest::DeleteEventRuleTargetsRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteEventRuleTargets")
{
setMethod(HttpRequest::Method::Put);
}
DeleteEventRuleTargetsRequest::~DeleteEventRuleTargetsRequest()
{}
std::string DeleteEventRuleTargetsRequest::getRuleName()const
{
return ruleName_;
}
void DeleteEventRuleTargetsRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setCoreParameter("RuleName", ruleName);
}
std::vector<std::string> DeleteEventRuleTargetsRequest::getIds()const
{
return ids_;
}
void DeleteEventRuleTargetsRequest::setIds(const std::vector<std::string>& ids)
{
ids_ = ids;
for(int dep1 = 0; dep1!= ids.size(); dep1++) {
setCoreParameter("Ids."+ std::to_string(dep1), ids.at(dep1));
}
}

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/DeleteEventRuleTargetsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteEventRuleTargetsResult::DeleteEventRuleTargetsResult() :
ServiceResult()
{}
DeleteEventRuleTargetsResult::DeleteEventRuleTargetsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteEventRuleTargetsResult::~DeleteEventRuleTargetsResult()
{}
void DeleteEventRuleTargetsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteEventRuleTargetsResult::getMessage()const
{
return message_;
}
std::string DeleteEventRuleTargetsResult::getCode()const
{
return code_;
}
bool DeleteEventRuleTargetsResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,42 @@
/*
* 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/cms/model/DeleteEventRulesRequest.h>
using AlibabaCloud::Cms::Model::DeleteEventRulesRequest;
DeleteEventRulesRequest::DeleteEventRulesRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteEventRules")
{
setMethod(HttpRequest::Method::Post);
}
DeleteEventRulesRequest::~DeleteEventRulesRequest()
{}
std::vector<std::string> DeleteEventRulesRequest::getRuleNames()const
{
return ruleNames_;
}
void DeleteEventRulesRequest::setRuleNames(const std::vector<std::string>& ruleNames)
{
ruleNames_ = ruleNames;
for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) {
setCoreParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1));
}
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DisableEventRuleResult.h>
#include <alibabacloud/cms/model/DeleteEventRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DisableEventRuleResult::DisableEventRuleResult() :
DeleteEventRulesResult::DeleteEventRulesResult() :
ServiceResult()
{}
DisableEventRuleResult::DisableEventRuleResult(const std::string &payload) :
DeleteEventRulesResult::DeleteEventRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DisableEventRuleResult::~DisableEventRuleResult()
DeleteEventRulesResult::~DeleteEventRulesResult()
{}
void DisableEventRuleResult::parse(const std::string &payload)
void DeleteEventRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -48,17 +48,17 @@ void DisableEventRuleResult::parse(const std::string &payload)
}
std::string DisableEventRuleResult::getMessage()const
std::string DeleteEventRulesResult::getMessage()const
{
return message_;
}
std::string DisableEventRuleResult::getCode()const
std::string DeleteEventRulesResult::getCode()const
{
return code_;
}
bool DisableEventRuleResult::getSuccess()const
bool DeleteEventRulesResult::getSuccess()const
{
return success_;
}

View File

@@ -1,50 +0,0 @@
/*
* 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/cms/model/DeleteEventTargetsRequest.h>
using AlibabaCloud::Cms::Model::DeleteEventTargetsRequest;
DeleteEventTargetsRequest::DeleteEventTargetsRequest() :
RpcServiceRequest("cms", "2018-03-08", "DeleteEventTargets")
{}
DeleteEventTargetsRequest::~DeleteEventTargetsRequest()
{}
std::string DeleteEventTargetsRequest::getRuleName()const
{
return ruleName_;
}
void DeleteEventTargetsRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setCoreParameter("RuleName", ruleName);
}
std::vector<std::string> DeleteEventTargetsRequest::getIds()const
{
return ids_;
}
void DeleteEventTargetsRequest::setIds(const std::vector<std::string>& ids)
{
ids_ = ids;
for(int i = 0; i!= ids.size(); i++)
setCoreParameter("Ids."+ std::to_string(i), ids.at(i));
}

View File

@@ -1,65 +0,0 @@
/*
* 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/cms/model/DeleteGroupDynamicRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteGroupDynamicRuleResult::DeleteGroupDynamicRuleResult() :
ServiceResult()
{}
DeleteGroupDynamicRuleResult::DeleteGroupDynamicRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteGroupDynamicRuleResult::~DeleteGroupDynamicRuleResult()
{}
void DeleteGroupDynamicRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
int DeleteGroupDynamicRuleResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteGroupDynamicRuleResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteGroupDynamicRuleResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* 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/cms/model/DeleteGroupMonitoringAgentProcessRequest.h>
using AlibabaCloud::Cms::Model::DeleteGroupMonitoringAgentProcessRequest;
DeleteGroupMonitoringAgentProcessRequest::DeleteGroupMonitoringAgentProcessRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteGroupMonitoringAgentProcess")
{
setMethod(HttpRequest::Method::Post);
}
DeleteGroupMonitoringAgentProcessRequest::~DeleteGroupMonitoringAgentProcessRequest()
{}
std::string DeleteGroupMonitoringAgentProcessRequest::getGroupId()const
{
return groupId_;
}
void DeleteGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DeleteGroupMonitoringAgentProcessRequest::getId()const
{
return id_;
}
void DeleteGroupMonitoringAgentProcessRequest::setId(const std::string& id)
{
id_ = id;
setCoreParameter("Id", id);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/DeleteGroupMonitoringAgentProcessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteGroupMonitoringAgentProcessResult::DeleteGroupMonitoringAgentProcessResult() :
ServiceResult()
{}
DeleteGroupMonitoringAgentProcessResult::DeleteGroupMonitoringAgentProcessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteGroupMonitoringAgentProcessResult::~DeleteGroupMonitoringAgentProcessResult()
{}
void DeleteGroupMonitoringAgentProcessResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteGroupMonitoringAgentProcessResult::getMessage()const
{
return message_;
}
std::string DeleteGroupMonitoringAgentProcessResult::getCode()const
{
return code_;
}
bool DeleteGroupMonitoringAgentProcessResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,42 @@
/*
* 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/cms/model/DeleteHostAvailabilityRequest.h>
using AlibabaCloud::Cms::Model::DeleteHostAvailabilityRequest;
DeleteHostAvailabilityRequest::DeleteHostAvailabilityRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteHostAvailability")
{
setMethod(HttpRequest::Method::Post);
}
DeleteHostAvailabilityRequest::~DeleteHostAvailabilityRequest()
{}
std::vector<long> DeleteHostAvailabilityRequest::getId()const
{
return id_;
}
void DeleteHostAvailabilityRequest::setId(const std::vector<long>& id)
{
id_ = id;
for(int dep1 = 0; dep1!= id.size(); dep1++) {
setCoreParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1)));
}
}

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/DeleteHostAvailabilityResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteHostAvailabilityResult::DeleteHostAvailabilityResult() :
ServiceResult()
{}
DeleteHostAvailabilityResult::DeleteHostAvailabilityResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteHostAvailabilityResult::~DeleteHostAvailabilityResult()
{}
void DeleteHostAvailabilityResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteHostAvailabilityResult::getMessage()const
{
return message_;
}
std::string DeleteHostAvailabilityResult::getCode()const
{
return code_;
}
bool DeleteHostAvailabilityResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* 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/cms/model/DeleteMetricRuleResourcesRequest.h>
using AlibabaCloud::Cms::Model::DeleteMetricRuleResourcesRequest;
DeleteMetricRuleResourcesRequest::DeleteMetricRuleResourcesRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleResources")
{
setMethod(HttpRequest::Method::Put);
}
DeleteMetricRuleResourcesRequest::~DeleteMetricRuleResourcesRequest()
{}
std::string DeleteMetricRuleResourcesRequest::getResources()const
{
return resources_;
}
void DeleteMetricRuleResourcesRequest::setResources(const std::string& resources)
{
resources_ = resources;
setCoreParameter("Resources", resources);
}
std::string DeleteMetricRuleResourcesRequest::getRuleId()const
{
return ruleId_;
}
void DeleteMetricRuleResourcesRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", ruleId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/DeleteMetricRuleResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteMetricRuleResourcesResult::DeleteMetricRuleResourcesResult() :
ServiceResult()
{}
DeleteMetricRuleResourcesResult::DeleteMetricRuleResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMetricRuleResourcesResult::~DeleteMetricRuleResourcesResult()
{}
void DeleteMetricRuleResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteMetricRuleResourcesResult::getMessage()const
{
return message_;
}
std::string DeleteMetricRuleResourcesResult::getCode()const
{
return code_;
}
bool DeleteMetricRuleResourcesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,53 @@
/*
* 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/cms/model/DeleteMetricRuleTargetsRequest.h>
using AlibabaCloud::Cms::Model::DeleteMetricRuleTargetsRequest;
DeleteMetricRuleTargetsRequest::DeleteMetricRuleTargetsRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleTargets")
{
setMethod(HttpRequest::Method::Put);
}
DeleteMetricRuleTargetsRequest::~DeleteMetricRuleTargetsRequest()
{}
std::vector<std::string> DeleteMetricRuleTargetsRequest::getTargetIds()const
{
return targetIds_;
}
void DeleteMetricRuleTargetsRequest::setTargetIds(const std::vector<std::string>& targetIds)
{
targetIds_ = targetIds;
for(int dep1 = 0; dep1!= targetIds.size(); dep1++) {
setCoreParameter("TargetIds."+ std::to_string(dep1), targetIds.at(dep1));
}
}
std::string DeleteMetricRuleTargetsRequest::getRuleId()const
{
return ruleId_;
}
void DeleteMetricRuleTargetsRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", ruleId);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h>
#include <alibabacloud/cms/model/DeleteMetricRuleTargetsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
RemoveMetricRuleTargetsResult::RemoveMetricRuleTargetsResult() :
DeleteMetricRuleTargetsResult::DeleteMetricRuleTargetsResult() :
ServiceResult()
{}
RemoveMetricRuleTargetsResult::RemoveMetricRuleTargetsResult(const std::string &payload) :
DeleteMetricRuleTargetsResult::DeleteMetricRuleTargetsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
RemoveMetricRuleTargetsResult::~RemoveMetricRuleTargetsResult()
DeleteMetricRuleTargetsResult::~DeleteMetricRuleTargetsResult()
{}
void RemoveMetricRuleTargetsResult::parse(const std::string &payload)
void DeleteMetricRuleTargetsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -52,22 +52,22 @@ void RemoveMetricRuleTargetsResult::parse(const std::string &payload)
}
std::string RemoveMetricRuleTargetsResult::getMessage()const
std::string DeleteMetricRuleTargetsResult::getMessage()const
{
return message_;
}
std::string RemoveMetricRuleTargetsResult::getCode()const
std::string DeleteMetricRuleTargetsResult::getCode()const
{
return code_;
}
RemoveMetricRuleTargetsResult::FailIds RemoveMetricRuleTargetsResult::getFailIds()const
DeleteMetricRuleTargetsResult::FailIds DeleteMetricRuleTargetsResult::getFailIds()const
{
return failIds_;
}
bool RemoveMetricRuleTargetsResult::getSuccess()const
bool DeleteMetricRuleTargetsResult::getSuccess()const
{
return success_;
}

View File

@@ -14,25 +14,27 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/ListProductOfActiveAlertRequest.h>
#include <alibabacloud/cms/model/DeleteMetricRuleTemplateRequest.h>
using AlibabaCloud::Cms::Model::ListProductOfActiveAlertRequest;
using AlibabaCloud::Cms::Model::DeleteMetricRuleTemplateRequest;
ListProductOfActiveAlertRequest::ListProductOfActiveAlertRequest() :
RpcServiceRequest("cms", "2018-03-08", "ListProductOfActiveAlert")
DeleteMetricRuleTemplateRequest::DeleteMetricRuleTemplateRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleTemplate")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMetricRuleTemplateRequest::~DeleteMetricRuleTemplateRequest()
{}
ListProductOfActiveAlertRequest::~ListProductOfActiveAlertRequest()
{}
std::string ListProductOfActiveAlertRequest::getUserId()const
std::string DeleteMetricRuleTemplateRequest::getTemplateId()const
{
return userId_;
return templateId_;
}
void ListProductOfActiveAlertRequest::setUserId(const std::string& userId)
void DeleteMetricRuleTemplateRequest::setTemplateId(const std::string& templateId)
{
userId_ = userId;
setCoreParameter("UserId", userId);
templateId_ = templateId;
setCoreParameter("TemplateId", templateId);
}

View File

@@ -0,0 +1,73 @@
/*
* 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/cms/model/DeleteMetricRuleTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteMetricRuleTemplateResult::DeleteMetricRuleTemplateResult() :
ServiceResult()
{}
DeleteMetricRuleTemplateResult::DeleteMetricRuleTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMetricRuleTemplateResult::~DeleteMetricRuleTemplateResult()
{}
void DeleteMetricRuleTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceNode = value["Resource"];
if(!resourceNode["TemplateId"].isNull())
resource_.templateId = resourceNode["TemplateId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteMetricRuleTemplateResult::getMessage()const
{
return message_;
}
DeleteMetricRuleTemplateResult::Resource DeleteMetricRuleTemplateResult::getResource()const
{
return resource_;
}
int DeleteMetricRuleTemplateResult::getCode()const
{
return code_;
}
bool DeleteMetricRuleTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -14,25 +14,29 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DeleteMonitoringTemplateRequest.h>
#include <alibabacloud/cms/model/DeleteMetricRulesRequest.h>
using AlibabaCloud::Cms::Model::DeleteMonitoringTemplateRequest;
using AlibabaCloud::Cms::Model::DeleteMetricRulesRequest;
DeleteMonitoringTemplateRequest::DeleteMonitoringTemplateRequest() :
RpcServiceRequest("cms", "2018-03-08", "DeleteMonitoringTemplate")
DeleteMetricRulesRequest::DeleteMetricRulesRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRules")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMetricRulesRequest::~DeleteMetricRulesRequest()
{}
DeleteMonitoringTemplateRequest::~DeleteMonitoringTemplateRequest()
{}
std::string DeleteMonitoringTemplateRequest::getId()const
std::vector<std::string> DeleteMetricRulesRequest::getId()const
{
return id_;
}
void DeleteMonitoringTemplateRequest::setId(const std::string& id)
void DeleteMetricRulesRequest::setId(const std::vector<std::string>& id)
{
id_ = id;
setCoreParameter("Id", id);
for(int dep1 = 0; dep1!= id.size(); dep1++) {
setCoreParameter("Id."+ std::to_string(dep1), id.at(dep1));
}
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/EnableActiveAlertResult.h>
#include <alibabacloud/cms/model/DeleteMetricRulesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
EnableActiveAlertResult::EnableActiveAlertResult() :
DeleteMetricRulesResult::DeleteMetricRulesResult() :
ServiceResult()
{}
EnableActiveAlertResult::EnableActiveAlertResult(const std::string &payload) :
DeleteMetricRulesResult::DeleteMetricRulesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
EnableActiveAlertResult::~EnableActiveAlertResult()
DeleteMetricRulesResult::~DeleteMetricRulesResult()
{}
void EnableActiveAlertResult::parse(const std::string &payload)
void DeleteMetricRulesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -48,17 +48,17 @@ void EnableActiveAlertResult::parse(const std::string &payload)
}
std::string EnableActiveAlertResult::getMessage()const
std::string DeleteMetricRulesResult::getMessage()const
{
return message_;
}
std::string EnableActiveAlertResult::getCode()const
std::string DeleteMetricRulesResult::getCode()const
{
return code_;
}
bool EnableActiveAlertResult::getSuccess()const
bool DeleteMetricRulesResult::getSuccess()const
{
return success_;
}

View File

@@ -14,34 +14,36 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.h>
#include <alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleRequest.h>
using AlibabaCloud::Cms::Model::DeleteGroupDynamicRuleRequest;
using AlibabaCloud::Cms::Model::DeleteMonitorGroupDynamicRuleRequest;
DeleteGroupDynamicRuleRequest::DeleteGroupDynamicRuleRequest() :
RpcServiceRequest("cms", "2018-03-08", "DeleteGroupDynamicRule")
DeleteMonitorGroupDynamicRuleRequest::DeleteMonitorGroupDynamicRuleRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupDynamicRule")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMonitorGroupDynamicRuleRequest::~DeleteMonitorGroupDynamicRuleRequest()
{}
DeleteGroupDynamicRuleRequest::~DeleteGroupDynamicRuleRequest()
{}
long DeleteGroupDynamicRuleRequest::getGroupId()const
long DeleteMonitorGroupDynamicRuleRequest::getGroupId()const
{
return groupId_;
}
void DeleteGroupDynamicRuleRequest::setGroupId(long groupId)
void DeleteMonitorGroupDynamicRuleRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
std::string DeleteGroupDynamicRuleRequest::getCategory()const
std::string DeleteMonitorGroupDynamicRuleRequest::getCategory()const
{
return category_;
}
void DeleteGroupDynamicRuleRequest::setCategory(const std::string& category)
void DeleteMonitorGroupDynamicRuleRequest::setCategory(const std::string& category)
{
category_ = category;
setCoreParameter("Category", category);

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/DeleteMonitorGroupDynamicRuleResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteMonitorGroupDynamicRuleResult::DeleteMonitorGroupDynamicRuleResult() :
ServiceResult()
{}
DeleteMonitorGroupDynamicRuleResult::DeleteMonitorGroupDynamicRuleResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMonitorGroupDynamicRuleResult::~DeleteMonitorGroupDynamicRuleResult()
{}
void DeleteMonitorGroupDynamicRuleResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteMonitorGroupDynamicRuleResult::getMessage()const
{
return message_;
}
int DeleteMonitorGroupDynamicRuleResult::getCode()const
{
return code_;
}
bool DeleteMonitorGroupDynamicRuleResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/cms/model/DeleteMonitorGroupInstancesRequest.h>
using AlibabaCloud::Cms::Model::DeleteMonitorGroupInstancesRequest;
DeleteMonitorGroupInstancesRequest::DeleteMonitorGroupInstancesRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupInstances")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMonitorGroupInstancesRequest::~DeleteMonitorGroupInstancesRequest()
{}
long DeleteMonitorGroupInstancesRequest::getGroupId()const
{
return groupId_;
}
void DeleteMonitorGroupInstancesRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
std::string DeleteMonitorGroupInstancesRequest::getInstanceIdList()const
{
return instanceIdList_;
}
void DeleteMonitorGroupInstancesRequest::setInstanceIdList(const std::string& instanceIdList)
{
instanceIdList_ = instanceIdList;
setCoreParameter("InstanceIdList", instanceIdList);
}
std::string DeleteMonitorGroupInstancesRequest::getCategory()const
{
return category_;
}
void DeleteMonitorGroupInstancesRequest::setCategory(const std::string& category)
{
category_ = category;
setCoreParameter("Category", category);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/DeleteMonitorGroupInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteMonitorGroupInstancesResult::DeleteMonitorGroupInstancesResult() :
ServiceResult()
{}
DeleteMonitorGroupInstancesResult::DeleteMonitorGroupInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMonitorGroupInstancesResult::~DeleteMonitorGroupInstancesResult()
{}
void DeleteMonitorGroupInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::string DeleteMonitorGroupInstancesResult::getMessage()const
{
return message_;
}
int DeleteMonitorGroupInstancesResult::getCode()const
{
return code_;
}
bool DeleteMonitorGroupInstancesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* 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/cms/model/DeleteMonitorGroupNotifyPolicyRequest.h>
using AlibabaCloud::Cms::Model::DeleteMonitorGroupNotifyPolicyRequest;
DeleteMonitorGroupNotifyPolicyRequest::DeleteMonitorGroupNotifyPolicyRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupNotifyPolicy")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMonitorGroupNotifyPolicyRequest::~DeleteMonitorGroupNotifyPolicyRequest()
{}
std::string DeleteMonitorGroupNotifyPolicyRequest::getPolicyType()const
{
return policyType_;
}
void DeleteMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setCoreParameter("PolicyType", policyType);
}
std::string DeleteMonitorGroupNotifyPolicyRequest::getGroupId()const
{
return groupId_;
}
void DeleteMonitorGroupNotifyPolicyRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/CreateNotifyPolicyResult.h>
#include <alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
CreateNotifyPolicyResult::CreateNotifyPolicyResult() :
DeleteMonitorGroupNotifyPolicyResult::DeleteMonitorGroupNotifyPolicyResult() :
ServiceResult()
{}
CreateNotifyPolicyResult::CreateNotifyPolicyResult(const std::string &payload) :
DeleteMonitorGroupNotifyPolicyResult::DeleteMonitorGroupNotifyPolicyResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
CreateNotifyPolicyResult::~CreateNotifyPolicyResult()
DeleteMonitorGroupNotifyPolicyResult::~DeleteMonitorGroupNotifyPolicyResult()
{}
void CreateNotifyPolicyResult::parse(const std::string &payload)
void DeleteMonitorGroupNotifyPolicyResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -50,22 +50,22 @@ void CreateNotifyPolicyResult::parse(const std::string &payload)
}
std::string CreateNotifyPolicyResult::getMessage()const
std::string DeleteMonitorGroupNotifyPolicyResult::getMessage()const
{
return message_;
}
std::string CreateNotifyPolicyResult::getCode()const
std::string DeleteMonitorGroupNotifyPolicyResult::getCode()const
{
return code_;
}
std::string CreateNotifyPolicyResult::getSuccess()const
std::string DeleteMonitorGroupNotifyPolicyResult::getSuccess()const
{
return success_;
}
int CreateNotifyPolicyResult::getResult()const
int DeleteMonitorGroupNotifyPolicyResult::getResult()const
{
return result_;
}

View File

@@ -14,23 +14,25 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/ListGroupDynamicRuleRequest.h>
#include <alibabacloud/cms/model/DeleteMonitorGroupRequest.h>
using AlibabaCloud::Cms::Model::ListGroupDynamicRuleRequest;
using AlibabaCloud::Cms::Model::DeleteMonitorGroupRequest;
ListGroupDynamicRuleRequest::ListGroupDynamicRuleRequest() :
RpcServiceRequest("cms", "2018-03-08", "ListGroupDynamicRule")
DeleteMonitorGroupRequest::DeleteMonitorGroupRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroup")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMonitorGroupRequest::~DeleteMonitorGroupRequest()
{}
ListGroupDynamicRuleRequest::~ListGroupDynamicRuleRequest()
{}
long ListGroupDynamicRuleRequest::getGroupId()const
long DeleteMonitorGroupRequest::getGroupId()const
{
return groupId_;
}
void ListGroupDynamicRuleRequest::setGroupId(long groupId)
void DeleteMonitorGroupRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));

View File

@@ -14,42 +14,34 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/GetMyGroupsResult.h>
#include <alibabacloud/cms/model/DeleteMonitorGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
GetMyGroupsResult::GetMyGroupsResult() :
DeleteMonitorGroupResult::DeleteMonitorGroupResult() :
ServiceResult()
{}
GetMyGroupsResult::GetMyGroupsResult(const std::string &payload) :
DeleteMonitorGroupResult::DeleteMonitorGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
GetMyGroupsResult::~GetMyGroupsResult()
DeleteMonitorGroupResult::~DeleteMonitorGroupResult()
{}
void GetMyGroupsResult::parse(const std::string &payload)
void DeleteMonitorGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto groupNode = value["Group"];
if(!groupNode["GroupId"].isNull())
group_.groupId = std::stol(groupNode["GroupId"].asString());
if(!groupNode["GroupName"].isNull())
group_.groupName = groupNode["GroupName"].asString();
if(!groupNode["ServiceId"].isNull())
group_.serviceId = std::stol(groupNode["ServiceId"].asString());
if(!groupNode["BindUrl"].isNull())
group_.bindUrl = groupNode["BindUrl"].asString();
if(!groupNode["Type"].isNull())
group_.type = groupNode["Type"].asString();
auto allContactGroupsNode = groupNode["ContactGroups"]["ContactGroup"];
for (auto groupNodeContactGroupsContactGroup : allContactGroupsNode)
{
@@ -60,29 +52,29 @@ void GetMyGroupsResult::parse(const std::string &payload)
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
GetMyGroupsResult::Group GetMyGroupsResult::getGroup()const
DeleteMonitorGroupResult::Group DeleteMonitorGroupResult::getGroup()const
{
return group_;
}
int GetMyGroupsResult::getErrorCode()const
std::string DeleteMonitorGroupResult::getMessage()const
{
return errorCode_;
return message_;
}
std::string GetMyGroupsResult::getErrorMessage()const
int DeleteMonitorGroupResult::getCode()const
{
return errorMessage_;
return code_;
}
bool GetMyGroupsResult::getSuccess()const
bool DeleteMonitorGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/cms/model/DeleteMonitoringAgentProcessRequest.h>
using AlibabaCloud::Cms::Model::DeleteMonitoringAgentProcessRequest;
DeleteMonitoringAgentProcessRequest::DeleteMonitoringAgentProcessRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteMonitoringAgentProcess")
{
setMethod(HttpRequest::Method::Post);
}
DeleteMonitoringAgentProcessRequest::~DeleteMonitoringAgentProcessRequest()
{}
std::string DeleteMonitoringAgentProcessRequest::getProcessName()const
{
return processName_;
}
void DeleteMonitoringAgentProcessRequest::setProcessName(const std::string& processName)
{
processName_ = processName;
setCoreParameter("ProcessName", processName);
}
std::string DeleteMonitoringAgentProcessRequest::getInstanceId()const
{
return instanceId_;
}
void DeleteMonitoringAgentProcessRequest::setInstanceId(const std::string& instanceId)
{
instanceId_ = instanceId;
setCoreParameter("InstanceId", instanceId);
}
std::string DeleteMonitoringAgentProcessRequest::getProcessId()const
{
return processId_;
}
void DeleteMonitoringAgentProcessRequest::setProcessId(const std::string& processId)
{
processId_ = processId;
setCoreParameter("ProcessId", processId);
}

View File

@@ -0,0 +1,65 @@
/*
* 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/cms/model/DeleteMonitoringAgentProcessResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteMonitoringAgentProcessResult::DeleteMonitoringAgentProcessResult() :
ServiceResult()
{}
DeleteMonitoringAgentProcessResult::DeleteMonitoringAgentProcessResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMonitoringAgentProcessResult::~DeleteMonitoringAgentProcessResult()
{}
void DeleteMonitoringAgentProcessResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
}
std::string DeleteMonitoringAgentProcessResult::getMessage()const
{
return message_;
}
std::string DeleteMonitoringAgentProcessResult::getCode()const
{
return code_;
}
bool DeleteMonitoringAgentProcessResult::getSuccess()const
{
return success_;
}

View File

@@ -1,85 +0,0 @@
/*
* 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/cms/model/DeleteMonitoringTemplateResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteMonitoringTemplateResult::DeleteMonitoringTemplateResult() :
ServiceResult()
{}
DeleteMonitoringTemplateResult::DeleteMonitoringTemplateResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMonitoringTemplateResult::~DeleteMonitoringTemplateResult()
{}
void DeleteMonitoringTemplateResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto resourceNode = value["Resource"];
if(!resourceNode["Name"].isNull())
resource_.name = resourceNode["Name"].asString();
if(!resourceNode["Id"].isNull())
resource_.id = resourceNode["Id"].asString();
if(!resourceNode["RestVersion"].isNull())
resource_.restVersion = resourceNode["RestVersion"].asString();
if(!resourceNode["Namespace"].isNull())
resource_._namespace = resourceNode["Namespace"].asString();
if(!resourceNode["Description"].isNull())
resource_.description = resourceNode["Description"].asString();
if(!resourceNode["AlertTemplatesJson"].isNull())
resource_.alertTemplatesJson = resourceNode["AlertTemplatesJson"].asString();
if(!resourceNode["EventRuleTemplatesJson"].isNull())
resource_.eventRuleTemplatesJson = resourceNode["EventRuleTemplatesJson"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
DeleteMonitoringTemplateResult::Resource DeleteMonitoringTemplateResult::getResource()const
{
return resource_;
}
int DeleteMonitoringTemplateResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteMonitoringTemplateResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteMonitoringTemplateResult::getSuccess()const
{
return success_;
}

View File

@@ -1,71 +0,0 @@
/*
* 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/cms/model/DeleteMyGroupInstancesRequest.h>
using AlibabaCloud::Cms::Model::DeleteMyGroupInstancesRequest;
DeleteMyGroupInstancesRequest::DeleteMyGroupInstancesRequest() :
RpcServiceRequest("cms", "2018-03-08", "DeleteMyGroupInstances")
{}
DeleteMyGroupInstancesRequest::~DeleteMyGroupInstancesRequest()
{}
long DeleteMyGroupInstancesRequest::getGroupId()const
{
return groupId_;
}
void DeleteMyGroupInstancesRequest::setGroupId(long groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", std::to_string(groupId));
}
std::string DeleteMyGroupInstancesRequest::getInstanceIds()const
{
return instanceIds_;
}
void DeleteMyGroupInstancesRequest::setInstanceIds(const std::string& instanceIds)
{
instanceIds_ = instanceIds;
setCoreParameter("InstanceIds", instanceIds);
}
std::string DeleteMyGroupInstancesRequest::getInstanceIdList()const
{
return instanceIdList_;
}
void DeleteMyGroupInstancesRequest::setInstanceIdList(const std::string& instanceIdList)
{
instanceIdList_ = instanceIdList;
setCoreParameter("InstanceIdList", instanceIdList);
}
std::string DeleteMyGroupInstancesRequest::getCategory()const
{
return category_;
}
void DeleteMyGroupInstancesRequest::setCategory(const std::string& category)
{
category_ = category;
setCoreParameter("Category", category);
}

View File

@@ -1,65 +0,0 @@
/*
* 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/cms/model/DeleteMyGroupInstancesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteMyGroupInstancesResult::DeleteMyGroupInstancesResult() :
ServiceResult()
{}
DeleteMyGroupInstancesResult::DeleteMyGroupInstancesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMyGroupInstancesResult::~DeleteMyGroupInstancesResult()
{}
void DeleteMyGroupInstancesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
int DeleteMyGroupInstancesResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteMyGroupInstancesResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteMyGroupInstancesResult::getSuccess()const
{
return success_;
}

View File

@@ -1,89 +0,0 @@
/*
* 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/cms/model/DeleteMyGroupsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteMyGroupsResult::DeleteMyGroupsResult() :
ServiceResult()
{}
DeleteMyGroupsResult::DeleteMyGroupsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteMyGroupsResult::~DeleteMyGroupsResult()
{}
void DeleteMyGroupsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto groupNode = value["Group"];
if(!groupNode["GroupId"].isNull())
group_.groupId = std::stol(groupNode["GroupId"].asString());
if(!groupNode["GroupName"].isNull())
group_.groupName = groupNode["GroupName"].asString();
if(!groupNode["ServiceId"].isNull())
group_.serviceId = groupNode["ServiceId"].asString();
if(!groupNode["BindUrls"].isNull())
group_.bindUrls = groupNode["BindUrls"].asString();
if(!groupNode["Type"].isNull())
group_.type = groupNode["Type"].asString();
auto allContactGroupsNode = groupNode["ContactGroups"]["ContactGroup"];
for (auto groupNodeContactGroupsContactGroup : allContactGroupsNode)
{
Group::ContactGroup contactGroupObject;
if(!groupNodeContactGroupsContactGroup["Name"].isNull())
contactGroupObject.name = groupNodeContactGroupsContactGroup["Name"].asString();
group_.contactGroups.push_back(contactGroupObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["ErrorCode"].isNull())
errorCode_ = std::stoi(value["ErrorCode"].asString());
if(!value["ErrorMessage"].isNull())
errorMessage_ = value["ErrorMessage"].asString();
}
DeleteMyGroupsResult::Group DeleteMyGroupsResult::getGroup()const
{
return group_;
}
int DeleteMyGroupsResult::getErrorCode()const
{
return errorCode_;
}
std::string DeleteMyGroupsResult::getErrorMessage()const
{
return errorMessage_;
}
bool DeleteMyGroupsResult::getSuccess()const
{
return success_;
}

View File

@@ -1,93 +0,0 @@
/*
* 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/cms/model/DeleteNotifyPolicyRequest.h>
using AlibabaCloud::Cms::Model::DeleteNotifyPolicyRequest;
DeleteNotifyPolicyRequest::DeleteNotifyPolicyRequest() :
RpcServiceRequest("cms", "2018-03-08", "DeleteNotifyPolicy")
{}
DeleteNotifyPolicyRequest::~DeleteNotifyPolicyRequest()
{}
std::string DeleteNotifyPolicyRequest::getPolicyType()const
{
return policyType_;
}
void DeleteNotifyPolicyRequest::setPolicyType(const std::string& policyType)
{
policyType_ = policyType;
setCoreParameter("PolicyType", policyType);
}
std::string DeleteNotifyPolicyRequest::getAlertName()const
{
return alertName_;
}
void DeleteNotifyPolicyRequest::setAlertName(const std::string& alertName)
{
alertName_ = alertName;
setCoreParameter("AlertName", alertName);
}
std::string DeleteNotifyPolicyRequest::getGroupId()const
{
return groupId_;
}
void DeleteNotifyPolicyRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DeleteNotifyPolicyRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DeleteNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
std::string DeleteNotifyPolicyRequest::getId()const
{
return id_;
}
void DeleteNotifyPolicyRequest::setId(const std::string& id)
{
id_ = id;
setCoreParameter("Id", id);
}
std::string DeleteNotifyPolicyRequest::getDimensions()const
{
return dimensions_;
}
void DeleteNotifyPolicyRequest::setDimensions(const std::string& dimensions)
{
dimensions_ = dimensions;
setCoreParameter("Dimensions", dimensions);
}

View File

@@ -14,34 +14,36 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DeleteTasksRequest.h>
#include <alibabacloud/cms/model/DeleteSiteMonitorsRequest.h>
using AlibabaCloud::Cms::Model::DeleteTasksRequest;
using AlibabaCloud::Cms::Model::DeleteSiteMonitorsRequest;
DeleteTasksRequest::DeleteTasksRequest() :
RpcServiceRequest("cms", "2018-03-08", "DeleteTasks")
DeleteSiteMonitorsRequest::DeleteSiteMonitorsRequest() :
RpcServiceRequest("cms", "2019-01-01", "DeleteSiteMonitors")
{
setMethod(HttpRequest::Method::Post);
}
DeleteSiteMonitorsRequest::~DeleteSiteMonitorsRequest()
{}
DeleteTasksRequest::~DeleteTasksRequest()
{}
int DeleteTasksRequest::getIsDeleteAlarms()const
bool DeleteSiteMonitorsRequest::getIsDeleteAlarms()const
{
return isDeleteAlarms_;
}
void DeleteTasksRequest::setIsDeleteAlarms(int isDeleteAlarms)
void DeleteSiteMonitorsRequest::setIsDeleteAlarms(bool isDeleteAlarms)
{
isDeleteAlarms_ = isDeleteAlarms;
setCoreParameter("IsDeleteAlarms", std::to_string(isDeleteAlarms));
setCoreParameter("IsDeleteAlarms", isDeleteAlarms ? "true" : "false");
}
std::string DeleteTasksRequest::getTaskIds()const
std::string DeleteSiteMonitorsRequest::getTaskIds()const
{
return taskIds_;
}
void DeleteTasksRequest::setTaskIds(const std::string& taskIds)
void DeleteSiteMonitorsRequest::setTaskIds(const std::string& taskIds)
{
taskIds_ = taskIds;
setCoreParameter("TaskIds", taskIds);

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DescribeTaskDetailResult.h>
#include <alibabacloud/cms/model/DeleteSiteMonitorsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DescribeTaskDetailResult::DescribeTaskDetailResult() :
DeleteSiteMonitorsResult::DeleteSiteMonitorsResult() :
ServiceResult()
{}
DescribeTaskDetailResult::DescribeTaskDetailResult(const std::string &payload) :
DeleteSiteMonitorsResult::DeleteSiteMonitorsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeTaskDetailResult::~DescribeTaskDetailResult()
DeleteSiteMonitorsResult::~DeleteSiteMonitorsResult()
{}
void DescribeTaskDetailResult::parse(const std::string &payload)
void DeleteSiteMonitorsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -50,22 +50,22 @@ void DescribeTaskDetailResult::parse(const std::string &payload)
}
std::string DescribeTaskDetailResult::getMessage()const
std::string DeleteSiteMonitorsResult::getMessage()const
{
return message_;
}
std::string DescribeTaskDetailResult::getData()const
std::string DeleteSiteMonitorsResult::getData()const
{
return data_;
}
std::string DescribeTaskDetailResult::getCode()const
std::string DeleteSiteMonitorsResult::getCode()const
{
return code_;
}
std::string DescribeTaskDetailResult::getSuccess()const
std::string DeleteSiteMonitorsResult::getSuccess()const
{
return success_;
}

View File

@@ -1,72 +0,0 @@
/*
* 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/cms/model/DeleteTasksResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DeleteTasksResult::DeleteTasksResult() :
ServiceResult()
{}
DeleteTasksResult::DeleteTasksResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DeleteTasksResult::~DeleteTasksResult()
{}
void DeleteTasksResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString();
if(!value["Data"].isNull())
data_ = value["Data"].asString();
}
std::string DeleteTasksResult::getMessage()const
{
return message_;
}
std::string DeleteTasksResult::getData()const
{
return data_;
}
std::string DeleteTasksResult::getCode()const
{
return code_;
}
std::string DeleteTasksResult::getSuccess()const
{
return success_;
}

View File

@@ -14,36 +14,27 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/DisableActiveAlertRequest.h>
#include <alibabacloud/cms/model/DescribeActiveMetricRuleListRequest.h>
using AlibabaCloud::Cms::Model::DisableActiveAlertRequest;
using AlibabaCloud::Cms::Model::DescribeActiveMetricRuleListRequest;
DisableActiveAlertRequest::DisableActiveAlertRequest() :
RpcServiceRequest("cms", "2018-03-08", "DisableActiveAlert")
DescribeActiveMetricRuleListRequest::DescribeActiveMetricRuleListRequest() :
RpcServiceRequest("cms", "2019-01-01", "DescribeActiveMetricRuleList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeActiveMetricRuleListRequest::~DescribeActiveMetricRuleListRequest()
{}
DisableActiveAlertRequest::~DisableActiveAlertRequest()
{}
std::string DisableActiveAlertRequest::getProduct()const
std::string DescribeActiveMetricRuleListRequest::getProduct()const
{
return product_;
}
void DisableActiveAlertRequest::setProduct(const std::string& product)
void DescribeActiveMetricRuleListRequest::setProduct(const std::string& product)
{
product_ = product;
setCoreParameter("Product", product);
}
std::string DisableActiveAlertRequest::getUserId()const
{
return userId_;
}
void DisableActiveAlertRequest::setUserId(const std::string& userId)
{
userId_ = userId;
setCoreParameter("UserId", userId);
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/ListActiveAlertRuleResult.h>
#include <alibabacloud/cms/model/DescribeActiveMetricRuleListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
ListActiveAlertRuleResult::ListActiveAlertRuleResult() :
DescribeActiveMetricRuleListResult::DescribeActiveMetricRuleListResult() :
ServiceResult()
{}
ListActiveAlertRuleResult::ListActiveAlertRuleResult(const std::string &payload) :
DescribeActiveMetricRuleListResult::DescribeActiveMetricRuleListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListActiveAlertRuleResult::~ListActiveAlertRuleResult()
DescribeActiveMetricRuleListResult::~DescribeActiveMetricRuleListResult()
{}
void ListActiveAlertRuleResult::parse(const std::string &payload)
void DescribeActiveMetricRuleListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -43,10 +43,8 @@ void ListActiveAlertRuleResult::parse(const std::string &payload)
for (auto valueDatapointsAlarm : allDatapointsNode)
{
Alarm datapointsObject;
if(!valueDatapointsAlarm["Uuid"].isNull())
datapointsObject.uuid = valueDatapointsAlarm["Uuid"].asString();
if(!valueDatapointsAlarm["Name"].isNull())
datapointsObject.name = valueDatapointsAlarm["Name"].asString();
if(!valueDatapointsAlarm["RuleId"].isNull())
datapointsObject.ruleId = valueDatapointsAlarm["RuleId"].asString();
if(!valueDatapointsAlarm["Namespace"].isNull())
datapointsObject._namespace = valueDatapointsAlarm["Namespace"].asString();
if(!valueDatapointsAlarm["MetricName"].isNull())
@@ -67,8 +65,6 @@ void ListActiveAlertRuleResult::parse(const std::string &payload)
datapointsObject.endTime = valueDatapointsAlarm["EndTime"].asString();
if(!valueDatapointsAlarm["SilenceTime"].isNull())
datapointsObject.silenceTime = valueDatapointsAlarm["SilenceTime"].asString();
if(!valueDatapointsAlarm["NotifyType"].isNull())
datapointsObject.notifyType = valueDatapointsAlarm["NotifyType"].asString();
if(!valueDatapointsAlarm["Enable"].isNull())
datapointsObject.enable = valueDatapointsAlarm["Enable"].asString();
if(!valueDatapointsAlarm["State"].isNull())
@@ -90,22 +86,22 @@ void ListActiveAlertRuleResult::parse(const std::string &payload)
}
std::string ListActiveAlertRuleResult::getMessage()const
std::string DescribeActiveMetricRuleListResult::getMessage()const
{
return message_;
}
std::vector<ListActiveAlertRuleResult::Alarm> ListActiveAlertRuleResult::getDatapoints()const
std::vector<DescribeActiveMetricRuleListResult::Alarm> DescribeActiveMetricRuleListResult::getDatapoints()const
{
return datapoints_;
}
std::string ListActiveAlertRuleResult::getCode()const
std::string DescribeActiveMetricRuleListResult::getCode()const
{
return code_;
}
bool ListActiveAlertRuleResult::getSuccess()const
bool DescribeActiveMetricRuleListResult::getSuccess()const
{
return success_;
}

View File

@@ -1,181 +0,0 @@
/*
* 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/cms/model/DescribeAlarmHistoryRequest.h>
using AlibabaCloud::Cms::Model::DescribeAlarmHistoryRequest;
DescribeAlarmHistoryRequest::DescribeAlarmHistoryRequest() :
RpcServiceRequest("cms", "2018-03-08", "DescribeAlarmHistory")
{}
DescribeAlarmHistoryRequest::~DescribeAlarmHistoryRequest()
{}
std::string DescribeAlarmHistoryRequest::getAlertName()const
{
return alertName_;
}
void DescribeAlarmHistoryRequest::setAlertName(const std::string& alertName)
{
alertName_ = alertName;
setCoreParameter("AlertName", alertName);
}
std::string DescribeAlarmHistoryRequest::getRuleName()const
{
return ruleName_;
}
void DescribeAlarmHistoryRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setCoreParameter("RuleName", ruleName);
}
std::string DescribeAlarmHistoryRequest::getStartTime()const
{
return startTime_;
}
void DescribeAlarmHistoryRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeAlarmHistoryRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAlarmHistoryRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
bool DescribeAlarmHistoryRequest::getOnlyCount()const
{
return onlyCount_;
}
void DescribeAlarmHistoryRequest::setOnlyCount(bool onlyCount)
{
onlyCount_ = onlyCount;
setCoreParameter("OnlyCount", onlyCount ? "true" : "false");
}
int DescribeAlarmHistoryRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAlarmHistoryRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAlarmHistoryRequest::getState()const
{
return state_;
}
void DescribeAlarmHistoryRequest::setState(const std::string& state)
{
state_ = state;
setCoreParameter("State", state);
}
std::string DescribeAlarmHistoryRequest::getMetricName()const
{
return metricName_;
}
void DescribeAlarmHistoryRequest::setMetricName(const std::string& metricName)
{
metricName_ = metricName;
setCoreParameter("MetricName", metricName);
}
std::string DescribeAlarmHistoryRequest::getGroupId()const
{
return groupId_;
}
void DescribeAlarmHistoryRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeAlarmHistoryRequest::getEndTime()const
{
return endTime_;
}
void DescribeAlarmHistoryRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
bool DescribeAlarmHistoryRequest::getAscending()const
{
return ascending_;
}
void DescribeAlarmHistoryRequest::setAscending(bool ascending)
{
ascending_ = ascending;
setCoreParameter("Ascending", ascending ? "true" : "false");
}
std::string DescribeAlarmHistoryRequest::get_Namespace()const
{
return _namespace_;
}
void DescribeAlarmHistoryRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setCoreParameter("_Namespace", _namespace);
}
int DescribeAlarmHistoryRequest::getPage()const
{
return page_;
}
void DescribeAlarmHistoryRequest::setPage(int page)
{
page_ = page;
setCoreParameter("Page", std::to_string(page));
}
std::string DescribeAlarmHistoryRequest::getStatus()const
{
return status_;
}
void DescribeAlarmHistoryRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}

View File

@@ -1,136 +0,0 @@
/*
* 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/cms/model/DescribeAlarmHistoryResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DescribeAlarmHistoryResult::DescribeAlarmHistoryResult() :
ServiceResult()
{}
DescribeAlarmHistoryResult::DescribeAlarmHistoryResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlarmHistoryResult::~DescribeAlarmHistoryResult()
{}
void DescribeAlarmHistoryResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allAlarmHistoryListNode = value["AlarmHistoryList"]["AlarmHistory"];
for (auto valueAlarmHistoryListAlarmHistory : allAlarmHistoryListNode)
{
AlarmHistory alarmHistoryListObject;
if(!valueAlarmHistoryListAlarmHistory["Id"].isNull())
alarmHistoryListObject.id = valueAlarmHistoryListAlarmHistory["Id"].asString();
if(!valueAlarmHistoryListAlarmHistory["AlertName"].isNull())
alarmHistoryListObject.alertName = valueAlarmHistoryListAlarmHistory["AlertName"].asString();
if(!valueAlarmHistoryListAlarmHistory["GroupId"].isNull())
alarmHistoryListObject.groupId = valueAlarmHistoryListAlarmHistory["GroupId"].asString();
if(!valueAlarmHistoryListAlarmHistory["Namespace"].isNull())
alarmHistoryListObject._namespace = valueAlarmHistoryListAlarmHistory["Namespace"].asString();
if(!valueAlarmHistoryListAlarmHistory["MetricName"].isNull())
alarmHistoryListObject.metricName = valueAlarmHistoryListAlarmHistory["MetricName"].asString();
if(!valueAlarmHistoryListAlarmHistory["Dimensions"].isNull())
alarmHistoryListObject.dimensions = valueAlarmHistoryListAlarmHistory["Dimensions"].asString();
if(!valueAlarmHistoryListAlarmHistory["Expression"].isNull())
alarmHistoryListObject.expression = valueAlarmHistoryListAlarmHistory["Expression"].asString();
if(!valueAlarmHistoryListAlarmHistory["EvaluationCount"].isNull())
alarmHistoryListObject.evaluationCount = std::stoi(valueAlarmHistoryListAlarmHistory["EvaluationCount"].asString());
if(!valueAlarmHistoryListAlarmHistory["Value"].isNull())
alarmHistoryListObject.value = valueAlarmHistoryListAlarmHistory["Value"].asString();
if(!valueAlarmHistoryListAlarmHistory["AlertTime"].isNull())
alarmHistoryListObject.alertTime = std::stol(valueAlarmHistoryListAlarmHistory["AlertTime"].asString());
if(!valueAlarmHistoryListAlarmHistory["LastTime"].isNull())
alarmHistoryListObject.lastTime = std::stol(valueAlarmHistoryListAlarmHistory["LastTime"].asString());
if(!valueAlarmHistoryListAlarmHistory["Level"].isNull())
alarmHistoryListObject.level = valueAlarmHistoryListAlarmHistory["Level"].asString();
if(!valueAlarmHistoryListAlarmHistory["PreLevel"].isNull())
alarmHistoryListObject.preLevel = valueAlarmHistoryListAlarmHistory["PreLevel"].asString();
if(!valueAlarmHistoryListAlarmHistory["RuleName"].isNull())
alarmHistoryListObject.ruleName = valueAlarmHistoryListAlarmHistory["RuleName"].asString();
if(!valueAlarmHistoryListAlarmHistory["State"].isNull())
alarmHistoryListObject.state = valueAlarmHistoryListAlarmHistory["State"].asString();
if(!valueAlarmHistoryListAlarmHistory["Status"].isNull())
alarmHistoryListObject.status = std::stoi(valueAlarmHistoryListAlarmHistory["Status"].asString());
if(!valueAlarmHistoryListAlarmHistory["UserId"].isNull())
alarmHistoryListObject.userId = valueAlarmHistoryListAlarmHistory["UserId"].asString();
if(!valueAlarmHistoryListAlarmHistory["Webhooks"].isNull())
alarmHistoryListObject.webhooks = valueAlarmHistoryListAlarmHistory["Webhooks"].asString();
if(!valueAlarmHistoryListAlarmHistory["InstanceName"].isNull())
alarmHistoryListObject.instanceName = valueAlarmHistoryListAlarmHistory["InstanceName"].asString();
auto allContactGroups = value["ContactGroups"]["ContactGroup"];
for (auto value : allContactGroups)
alarmHistoryListObject.contactGroups.push_back(value.asString());
auto allContacts = value["Contacts"]["Contact"];
for (auto value : allContacts)
alarmHistoryListObject.contacts.push_back(value.asString());
auto allContactALIIMs = value["ContactALIIMs"]["ContactALIIM"];
for (auto value : allContactALIIMs)
alarmHistoryListObject.contactALIIMs.push_back(value.asString());
auto allContactSmses = value["ContactSmses"]["ContactSms"];
for (auto value : allContactSmses)
alarmHistoryListObject.contactSmses.push_back(value.asString());
auto allContactMails = value["ContactMails"]["ContactMail"];
for (auto value : allContactMails)
alarmHistoryListObject.contactMails.push_back(value.asString());
alarmHistoryList_.push_back(alarmHistoryListObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Total"].isNull())
total_ = value["Total"].asString();
}
std::vector<DescribeAlarmHistoryResult::AlarmHistory> DescribeAlarmHistoryResult::getAlarmHistoryList()const
{
return alarmHistoryList_;
}
std::string DescribeAlarmHistoryResult::getMessage()const
{
return message_;
}
std::string DescribeAlarmHistoryResult::getTotal()const
{
return total_;
}
std::string DescribeAlarmHistoryResult::getCode()const
{
return code_;
}
bool DescribeAlarmHistoryResult::getSuccess()const
{
return success_;
}

View File

@@ -1,115 +0,0 @@
/*
* 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/cms/model/DescribeAlarmsForResourcesRequest.h>
using AlibabaCloud::Cms::Model::DescribeAlarmsForResourcesRequest;
DescribeAlarmsForResourcesRequest::DescribeAlarmsForResourcesRequest() :
RpcServiceRequest("cms", "2018-03-08", "DescribeAlarmsForResources")
{}
DescribeAlarmsForResourcesRequest::~DescribeAlarmsForResourcesRequest()
{}
bool DescribeAlarmsForResourcesRequest::getEnableState()const
{
return enableState_;
}
void DescribeAlarmsForResourcesRequest::setEnableState(bool enableState)
{
enableState_ = enableState;
setCoreParameter("EnableState", enableState ? "true" : "false");
}
std::string DescribeAlarmsForResourcesRequest::getGroupId()const
{
return groupId_;
}
void DescribeAlarmsForResourcesRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeAlarmsForResourcesRequest::get_Namespace()const
{
return _namespace_;
}
void DescribeAlarmsForResourcesRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setCoreParameter("_Namespace", _namespace);
}
std::string DescribeAlarmsForResourcesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAlarmsForResourcesRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", pageSize);
}
std::string DescribeAlarmsForResourcesRequest::getAlertState()const
{
return alertState_;
}
void DescribeAlarmsForResourcesRequest::setAlertState(const std::string& alertState)
{
alertState_ = alertState;
setCoreParameter("AlertState", alertState);
}
std::string DescribeAlarmsForResourcesRequest::getPage()const
{
return page_;
}
void DescribeAlarmsForResourcesRequest::setPage(const std::string& page)
{
page_ = page;
setCoreParameter("Page", page);
}
std::string DescribeAlarmsForResourcesRequest::getMetricName()const
{
return metricName_;
}
void DescribeAlarmsForResourcesRequest::setMetricName(const std::string& metricName)
{
metricName_ = metricName;
setCoreParameter("MetricName", metricName);
}
std::string DescribeAlarmsForResourcesRequest::getDimensions()const
{
return dimensions_;
}
void DescribeAlarmsForResourcesRequest::setDimensions(const std::string& dimensions)
{
dimensions_ = dimensions;
setCoreParameter("Dimensions", dimensions);
}

View File

@@ -1,169 +0,0 @@
/*
* 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/cms/model/DescribeAlarmsForResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DescribeAlarmsForResourcesResult::DescribeAlarmsForResourcesResult() :
ServiceResult()
{}
DescribeAlarmsForResourcesResult::DescribeAlarmsForResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlarmsForResourcesResult::~DescribeAlarmsForResourcesResult()
{}
void DescribeAlarmsForResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDatapointsNode = value["Datapoints"]["Alarm"];
for (auto valueDatapointsAlarm : allDatapointsNode)
{
Alarm datapointsObject;
if(!valueDatapointsAlarm["Uuid"].isNull())
datapointsObject.uuid = valueDatapointsAlarm["Uuid"].asString();
if(!valueDatapointsAlarm["Name"].isNull())
datapointsObject.name = valueDatapointsAlarm["Name"].asString();
if(!valueDatapointsAlarm["Namespace"].isNull())
datapointsObject._namespace = valueDatapointsAlarm["Namespace"].asString();
if(!valueDatapointsAlarm["MetricName"].isNull())
datapointsObject.metricName = valueDatapointsAlarm["MetricName"].asString();
if(!valueDatapointsAlarm["Period"].isNull())
datapointsObject.period = valueDatapointsAlarm["Period"].asString();
if(!valueDatapointsAlarm["EvaluationCount"].isNull())
datapointsObject.evaluationCount = valueDatapointsAlarm["EvaluationCount"].asString();
if(!valueDatapointsAlarm["EffectiveInterval"].isNull())
datapointsObject.effectiveInterval = valueDatapointsAlarm["EffectiveInterval"].asString();
if(!valueDatapointsAlarm["NoEffectiveInterval"].isNull())
datapointsObject.noEffectiveInterval = valueDatapointsAlarm["NoEffectiveInterval"].asString();
if(!valueDatapointsAlarm["SilenceTime"].isNull())
datapointsObject.silenceTime = valueDatapointsAlarm["SilenceTime"].asString();
if(!valueDatapointsAlarm["Enable"].isNull())
datapointsObject.enable = valueDatapointsAlarm["Enable"].asString() == "true";
if(!valueDatapointsAlarm["State"].isNull())
datapointsObject.state = valueDatapointsAlarm["State"].asString();
if(!valueDatapointsAlarm["ContactGroups"].isNull())
datapointsObject.contactGroups = valueDatapointsAlarm["ContactGroups"].asString();
if(!valueDatapointsAlarm["Webhook"].isNull())
datapointsObject.webhook = valueDatapointsAlarm["Webhook"].asString();
if(!valueDatapointsAlarm["Subject"].isNull())
datapointsObject.subject = valueDatapointsAlarm["Subject"].asString();
if(!valueDatapointsAlarm["DisplayName"].isNull())
datapointsObject.displayName = valueDatapointsAlarm["DisplayName"].asString();
if(!valueDatapointsAlarm["Resources"].isNull())
datapointsObject.resources = valueDatapointsAlarm["Resources"].asString();
if(!valueDatapointsAlarm["Level"].isNull())
datapointsObject.level = valueDatapointsAlarm["Level"].asString();
if(!valueDatapointsAlarm["GroupId"].isNull())
datapointsObject.groupId = valueDatapointsAlarm["GroupId"].asString();
if(!valueDatapointsAlarm["GroupName"].isNull())
datapointsObject.groupName = valueDatapointsAlarm["GroupName"].asString();
if(!valueDatapointsAlarm["Statistics"].isNull())
datapointsObject.statistics = valueDatapointsAlarm["Statistics"].asString();
if(!valueDatapointsAlarm["ComparisonOperator"].isNull())
datapointsObject.comparisonOperator = valueDatapointsAlarm["ComparisonOperator"].asString();
if(!valueDatapointsAlarm["Threshold"].isNull())
datapointsObject.threshold = valueDatapointsAlarm["Threshold"].asString();
auto escalationsNode = value["Escalations"];
auto infoNode = escalationsNode["Info"];
if(!infoNode["ComparisonOperator"].isNull())
datapointsObject.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString();
if(!infoNode["Statistics"].isNull())
datapointsObject.escalations.info.statistics = infoNode["Statistics"].asString();
if(!infoNode["Threshold"].isNull())
datapointsObject.escalations.info.threshold = infoNode["Threshold"].asString();
if(!infoNode["Times"].isNull())
datapointsObject.escalations.info.times = infoNode["Times"].asString();
auto warnNode = escalationsNode["Warn"];
if(!warnNode["ComparisonOperator"].isNull())
datapointsObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString();
if(!warnNode["Statistics"].isNull())
datapointsObject.escalations.warn.statistics = warnNode["Statistics"].asString();
if(!warnNode["Threshold"].isNull())
datapointsObject.escalations.warn.threshold = warnNode["Threshold"].asString();
if(!warnNode["Times"].isNull())
datapointsObject.escalations.warn.times = warnNode["Times"].asString();
auto criticalNode = escalationsNode["Critical"];
if(!criticalNode["ComparisonOperator"].isNull())
datapointsObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString();
if(!criticalNode["Statistics"].isNull())
datapointsObject.escalations.critical.statistics = criticalNode["Statistics"].asString();
if(!criticalNode["Threshold"].isNull())
datapointsObject.escalations.critical.threshold = criticalNode["Threshold"].asString();
if(!criticalNode["Times"].isNull())
datapointsObject.escalations.critical.times = criticalNode["Times"].asString();
datapoints_.push_back(datapointsObject);
}
if(!value["TraceId"].isNull())
traceId_ = value["TraceId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Total"].isNull())
total_ = value["Total"].asString();
if(!value["Dimensions"].isNull())
dimensions_ = value["Dimensions"].asString();
}
std::string DescribeAlarmsForResourcesResult::getMessage()const
{
return message_;
}
std::string DescribeAlarmsForResourcesResult::getTotal()const
{
return total_;
}
std::string DescribeAlarmsForResourcesResult::getTraceId()const
{
return traceId_;
}
std::string DescribeAlarmsForResourcesResult::getDimensions()const
{
return dimensions_;
}
std::vector<DescribeAlarmsForResourcesResult::Alarm> DescribeAlarmsForResourcesResult::getDatapoints()const
{
return datapoints_;
}
int DescribeAlarmsForResourcesResult::getCode()const
{
return code_;
}
bool DescribeAlarmsForResourcesResult::getSuccess()const
{
return success_;
}

View File

@@ -1,148 +0,0 @@
/*
* 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/cms/model/DescribeAlarmsRequest.h>
using AlibabaCloud::Cms::Model::DescribeAlarmsRequest;
DescribeAlarmsRequest::DescribeAlarmsRequest() :
RpcServiceRequest("cms", "2018-03-08", "DescribeAlarms")
{}
DescribeAlarmsRequest::~DescribeAlarmsRequest()
{}
bool DescribeAlarmsRequest::getEnableState()const
{
return enableState_;
}
void DescribeAlarmsRequest::setEnableState(bool enableState)
{
enableState_ = enableState;
setCoreParameter("EnableState", enableState ? "true" : "false");
}
std::string DescribeAlarmsRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAlarmsRequest::setPageSize(const std::string& pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", pageSize);
}
std::string DescribeAlarmsRequest::getMetricName()const
{
return metricName_;
}
void DescribeAlarmsRequest::setMetricName(const std::string& metricName)
{
metricName_ = metricName;
setCoreParameter("MetricName", metricName);
}
std::string DescribeAlarmsRequest::getGroupId()const
{
return groupId_;
}
void DescribeAlarmsRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeAlarmsRequest::getGroupBy()const
{
return groupBy_;
}
void DescribeAlarmsRequest::setGroupBy(const std::string& groupBy)
{
groupBy_ = groupBy;
setCoreParameter("GroupBy", groupBy);
}
std::string DescribeAlarmsRequest::getNames()const
{
return names_;
}
void DescribeAlarmsRequest::setNames(const std::string& names)
{
names_ = names;
setCoreParameter("Names", names);
}
std::string DescribeAlarmsRequest::getDisplayName()const
{
return displayName_;
}
void DescribeAlarmsRequest::setDisplayName(const std::string& displayName)
{
displayName_ = displayName;
setCoreParameter("DisplayName", displayName);
}
std::string DescribeAlarmsRequest::get_Namespace()const
{
return _namespace_;
}
void DescribeAlarmsRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setCoreParameter("_Namespace", _namespace);
}
std::string DescribeAlarmsRequest::getAlertState()const
{
return alertState_;
}
void DescribeAlarmsRequest::setAlertState(const std::string& alertState)
{
alertState_ = alertState;
setCoreParameter("AlertState", alertState);
}
std::string DescribeAlarmsRequest::getNameKeyword()const
{
return nameKeyword_;
}
void DescribeAlarmsRequest::setNameKeyword(const std::string& nameKeyword)
{
nameKeyword_ = nameKeyword;
setCoreParameter("NameKeyword", nameKeyword);
}
std::string DescribeAlarmsRequest::getPage()const
{
return page_;
}
void DescribeAlarmsRequest::setPage(const std::string& page)
{
page_ = page;
setCoreParameter("Page", page);
}

View File

@@ -1,166 +0,0 @@
/*
* 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/cms/model/DescribeAlarmsResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DescribeAlarmsResult::DescribeAlarmsResult() :
ServiceResult()
{}
DescribeAlarmsResult::DescribeAlarmsResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlarmsResult::~DescribeAlarmsResult()
{}
void DescribeAlarmsResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allDatapointsNode = value["Datapoints"]["Alarm"];
for (auto valueDatapointsAlarm : allDatapointsNode)
{
Alarm datapointsObject;
if(!valueDatapointsAlarm["Uuid"].isNull())
datapointsObject.uuid = valueDatapointsAlarm["Uuid"].asString();
if(!valueDatapointsAlarm["Name"].isNull())
datapointsObject.name = valueDatapointsAlarm["Name"].asString();
if(!valueDatapointsAlarm["Namespace"].isNull())
datapointsObject._namespace = valueDatapointsAlarm["Namespace"].asString();
if(!valueDatapointsAlarm["MetricName"].isNull())
datapointsObject.metricName = valueDatapointsAlarm["MetricName"].asString();
if(!valueDatapointsAlarm["Period"].isNull())
datapointsObject.period = valueDatapointsAlarm["Period"].asString();
if(!valueDatapointsAlarm["EvaluationCount"].isNull())
datapointsObject.evaluationCount = valueDatapointsAlarm["EvaluationCount"].asString();
if(!valueDatapointsAlarm["EffectiveInterval"].isNull())
datapointsObject.effectiveInterval = valueDatapointsAlarm["EffectiveInterval"].asString();
if(!valueDatapointsAlarm["NoEffectiveInterval"].isNull())
datapointsObject.noEffectiveInterval = valueDatapointsAlarm["NoEffectiveInterval"].asString();
if(!valueDatapointsAlarm["SilenceTime"].isNull())
datapointsObject.silenceTime = valueDatapointsAlarm["SilenceTime"].asString();
if(!valueDatapointsAlarm["Enable"].isNull())
datapointsObject.enable = valueDatapointsAlarm["Enable"].asString() == "true";
if(!valueDatapointsAlarm["State"].isNull())
datapointsObject.state = valueDatapointsAlarm["State"].asString();
if(!valueDatapointsAlarm["ContactGroups"].isNull())
datapointsObject.contactGroups = valueDatapointsAlarm["ContactGroups"].asString();
if(!valueDatapointsAlarm["Webhook"].isNull())
datapointsObject.webhook = valueDatapointsAlarm["Webhook"].asString();
if(!valueDatapointsAlarm["Subject"].isNull())
datapointsObject.subject = valueDatapointsAlarm["Subject"].asString();
if(!valueDatapointsAlarm["RuleName"].isNull())
datapointsObject.ruleName = valueDatapointsAlarm["RuleName"].asString();
if(!valueDatapointsAlarm["Resources"].isNull())
datapointsObject.resources = valueDatapointsAlarm["Resources"].asString();
if(!valueDatapointsAlarm["Level"].isNull())
datapointsObject.level = valueDatapointsAlarm["Level"].asString();
if(!valueDatapointsAlarm["GroupId"].isNull())
datapointsObject.groupId = valueDatapointsAlarm["GroupId"].asString();
if(!valueDatapointsAlarm["GroupName"].isNull())
datapointsObject.groupName = valueDatapointsAlarm["GroupName"].asString();
if(!valueDatapointsAlarm["Dimensions"].isNull())
datapointsObject.dimensions = valueDatapointsAlarm["Dimensions"].asString();
if(!valueDatapointsAlarm["Statistics"].isNull())
datapointsObject.statistics = valueDatapointsAlarm["Statistics"].asString();
if(!valueDatapointsAlarm["ComparisonOperator"].isNull())
datapointsObject.comparisonOperator = valueDatapointsAlarm["ComparisonOperator"].asString();
if(!valueDatapointsAlarm["Threshold"].isNull())
datapointsObject.threshold = valueDatapointsAlarm["Threshold"].asString();
if(!valueDatapointsAlarm["DisplayName"].isNull())
datapointsObject.displayName = valueDatapointsAlarm["DisplayName"].asString();
auto escalationsNode = value["Escalations"];
auto infoNode = escalationsNode["Info"];
if(!infoNode["ComparisonOperator"].isNull())
datapointsObject.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString();
if(!infoNode["Statistics"].isNull())
datapointsObject.escalations.info.statistics = infoNode["Statistics"].asString();
if(!infoNode["Threshold"].isNull())
datapointsObject.escalations.info.threshold = infoNode["Threshold"].asString();
if(!infoNode["Times"].isNull())
datapointsObject.escalations.info.times = infoNode["Times"].asString();
auto warnNode = escalationsNode["Warn"];
if(!warnNode["ComparisonOperator"].isNull())
datapointsObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString();
if(!warnNode["Statistics"].isNull())
datapointsObject.escalations.warn.statistics = warnNode["Statistics"].asString();
if(!warnNode["Threshold"].isNull())
datapointsObject.escalations.warn.threshold = warnNode["Threshold"].asString();
if(!warnNode["Times"].isNull())
datapointsObject.escalations.warn.times = warnNode["Times"].asString();
auto criticalNode = escalationsNode["Critical"];
if(!criticalNode["ComparisonOperator"].isNull())
datapointsObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString();
if(!criticalNode["Statistics"].isNull())
datapointsObject.escalations.critical.statistics = criticalNode["Statistics"].asString();
if(!criticalNode["Threshold"].isNull())
datapointsObject.escalations.critical.threshold = criticalNode["Threshold"].asString();
if(!criticalNode["Times"].isNull())
datapointsObject.escalations.critical.times = criticalNode["Times"].asString();
datapoints_.push_back(datapointsObject);
}
if(!value["TraceId"].isNull())
traceId_ = value["TraceId"].asString();
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Total"].isNull())
total_ = value["Total"].asString();
}
std::string DescribeAlarmsResult::getMessage()const
{
return message_;
}
std::string DescribeAlarmsResult::getTotal()const
{
return total_;
}
std::string DescribeAlarmsResult::getTraceId()const
{
return traceId_;
}
std::vector<DescribeAlarmsResult::Alarm> DescribeAlarmsResult::getDatapoints()const
{
return datapoints_;
}
int DescribeAlarmsResult::getCode()const
{
return code_;
}
bool DescribeAlarmsResult::getSuccess()const
{
return success_;
}

View File

@@ -19,163 +19,143 @@
using AlibabaCloud::Cms::Model::DescribeAlertHistoryListRequest;
DescribeAlertHistoryListRequest::DescribeAlertHistoryListRequest() :
RpcServiceRequest("cms", "2018-03-08", "DescribeAlertHistoryList")
{}
RpcServiceRequest("cms", "2019-01-01", "DescribeAlertHistoryList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeAlertHistoryListRequest::~DescribeAlertHistoryListRequest()
{}
std::string DescribeAlertHistoryListRequest::getAlertName()const
{
return alertName_;
}
void DescribeAlertHistoryListRequest::setAlertName(const std::string& alertName)
{
alertName_ = alertName;
setCoreParameter("AlertName", alertName);
}
std::string DescribeAlertHistoryListRequest::getRuleName()const
{
return ruleName_;
}
void DescribeAlertHistoryListRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setCoreParameter("RuleName", ruleName);
}
std::string DescribeAlertHistoryListRequest::getStartTime()const
{
return startTime_;
}
void DescribeAlertHistoryListRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
std::string DescribeAlertHistoryListRequest::getAccessKeyId()const
{
return accessKeyId_;
}
void DescribeAlertHistoryListRequest::setAccessKeyId(const std::string& accessKeyId)
{
accessKeyId_ = accessKeyId;
setCoreParameter("AccessKeyId", accessKeyId);
}
bool DescribeAlertHistoryListRequest::getOnlyCount()const
{
return onlyCount_;
}
void DescribeAlertHistoryListRequest::setOnlyCount(bool onlyCount)
{
onlyCount_ = onlyCount;
setCoreParameter("OnlyCount", onlyCount ? "true" : "false");
}
int DescribeAlertHistoryListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAlertHistoryListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAlertHistoryListRequest::getState()const
{
return state_;
}
void DescribeAlertHistoryListRequest::setState(const std::string& state)
{
state_ = state;
setCoreParameter("State", state);
}
std::string DescribeAlertHistoryListRequest::getMetricName()const
{
return metricName_;
}
void DescribeAlertHistoryListRequest::setMetricName(const std::string& metricName)
{
metricName_ = metricName;
setCoreParameter("MetricName", metricName);
}
std::string DescribeAlertHistoryListRequest::getGroupId()const
{
return groupId_;
}
void DescribeAlertHistoryListRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeAlertHistoryListRequest::getEndTime()const
{
return endTime_;
}
void DescribeAlertHistoryListRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
bool DescribeAlertHistoryListRequest::getAscending()const
{
return ascending_;
}
void DescribeAlertHistoryListRequest::setAscending(bool ascending)
{
ascending_ = ascending;
setCoreParameter("Ascending", ascending ? "true" : "false");
}
std::string DescribeAlertHistoryListRequest::get_Namespace()const
{
return _namespace_;
}
void DescribeAlertHistoryListRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setCoreParameter("_Namespace", _namespace);
}
int DescribeAlertHistoryListRequest::getPage()const
{
return page_;
}
void DescribeAlertHistoryListRequest::setPage(int page)
{
page_ = page;
setCoreParameter("Page", std::to_string(page));
}
std::string DescribeAlertHistoryListRequest::getStatus()const
{
return status_;
}
void DescribeAlertHistoryListRequest::setStatus(const std::string& status)
{
status_ = status;
setCoreParameter("Status", status);
}
std::string DescribeAlertHistoryListRequest::getAlertStatus()const
{
return alertStatus_;
}
void DescribeAlertHistoryListRequest::setAlertStatus(const std::string& alertStatus)
{
alertStatus_ = alertStatus;
setCoreParameter("AlertStatus", alertStatus);
}
std::string DescribeAlertHistoryListRequest::getRuleName()const
{
return ruleName_;
}
void DescribeAlertHistoryListRequest::setRuleName(const std::string& ruleName)
{
ruleName_ = ruleName;
setCoreParameter("RuleName", ruleName);
}
std::string DescribeAlertHistoryListRequest::getStartTime()const
{
return startTime_;
}
void DescribeAlertHistoryListRequest::setStartTime(const std::string& startTime)
{
startTime_ = startTime;
setCoreParameter("StartTime", startTime);
}
int DescribeAlertHistoryListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAlertHistoryListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
std::string DescribeAlertHistoryListRequest::getState()const
{
return state_;
}
void DescribeAlertHistoryListRequest::setState(const std::string& state)
{
state_ = state;
setCoreParameter("State", state);
}
std::string DescribeAlertHistoryListRequest::getMetricName()const
{
return metricName_;
}
void DescribeAlertHistoryListRequest::setMetricName(const std::string& metricName)
{
metricName_ = metricName;
setCoreParameter("MetricName", metricName);
}
std::string DescribeAlertHistoryListRequest::getGroupId()const
{
return groupId_;
}
void DescribeAlertHistoryListRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
std::string DescribeAlertHistoryListRequest::getEndTime()const
{
return endTime_;
}
void DescribeAlertHistoryListRequest::setEndTime(const std::string& endTime)
{
endTime_ = endTime;
setCoreParameter("EndTime", endTime);
}
bool DescribeAlertHistoryListRequest::getAscending()const
{
return ascending_;
}
void DescribeAlertHistoryListRequest::setAscending(bool ascending)
{
ascending_ = ascending;
setCoreParameter("Ascending", ascending ? "true" : "false");
}
std::string DescribeAlertHistoryListRequest::get_Namespace()const
{
return _namespace_;
}
void DescribeAlertHistoryListRequest::set_Namespace(const std::string& _namespace)
{
_namespace_ = _namespace;
setCoreParameter("_Namespace", _namespace);
}
int DescribeAlertHistoryListRequest::getPage()const
{
return page_;
}
void DescribeAlertHistoryListRequest::setPage(int page)
{
page_ = page;
setCoreParameter("Page", std::to_string(page));
}
std::string DescribeAlertHistoryListRequest::getRuleId()const
{
return ruleId_;
}
void DescribeAlertHistoryListRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", ruleId);
}

View File

@@ -43,8 +43,8 @@ void DescribeAlertHistoryListResult::parse(const std::string &payload)
for (auto valueAlarmHistoryListAlarmHistory : allAlarmHistoryListNode)
{
AlarmHistory alarmHistoryListObject;
if(!valueAlarmHistoryListAlarmHistory["Id"].isNull())
alarmHistoryListObject.id = valueAlarmHistoryListAlarmHistory["Id"].asString();
if(!valueAlarmHistoryListAlarmHistory["RuleId"].isNull())
alarmHistoryListObject.ruleId = valueAlarmHistoryListAlarmHistory["RuleId"].asString();
if(!valueAlarmHistoryListAlarmHistory["AlertName"].isNull())
alarmHistoryListObject.alertName = valueAlarmHistoryListAlarmHistory["AlertName"].asString();
if(!valueAlarmHistoryListAlarmHistory["GroupId"].isNull())
@@ -67,16 +67,12 @@ void DescribeAlertHistoryListResult::parse(const std::string &payload)
alarmHistoryListObject.lastTime = std::stol(valueAlarmHistoryListAlarmHistory["LastTime"].asString());
if(!valueAlarmHistoryListAlarmHistory["Level"].isNull())
alarmHistoryListObject.level = valueAlarmHistoryListAlarmHistory["Level"].asString();
if(!valueAlarmHistoryListAlarmHistory["PreLevel"].isNull())
alarmHistoryListObject.preLevel = valueAlarmHistoryListAlarmHistory["PreLevel"].asString();
if(!valueAlarmHistoryListAlarmHistory["RuleName"].isNull())
alarmHistoryListObject.ruleName = valueAlarmHistoryListAlarmHistory["RuleName"].asString();
if(!valueAlarmHistoryListAlarmHistory["State"].isNull())
alarmHistoryListObject.state = valueAlarmHistoryListAlarmHistory["State"].asString();
if(!valueAlarmHistoryListAlarmHistory["AlertState"].isNull())
alarmHistoryListObject.alertState = valueAlarmHistoryListAlarmHistory["AlertState"].asString();
if(!valueAlarmHistoryListAlarmHistory["Status"].isNull())
alarmHistoryListObject.status = std::stoi(valueAlarmHistoryListAlarmHistory["Status"].asString());
if(!valueAlarmHistoryListAlarmHistory["UserId"].isNull())
alarmHistoryListObject.userId = valueAlarmHistoryListAlarmHistory["UserId"].asString();
if(!valueAlarmHistoryListAlarmHistory["Webhooks"].isNull())
alarmHistoryListObject.webhooks = valueAlarmHistoryListAlarmHistory["Webhooks"].asString();
if(!valueAlarmHistoryListAlarmHistory["InstanceName"].isNull())

View File

@@ -0,0 +1,73 @@
/*
* 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/cms/model/DescribeAlertingMetricRuleResourcesRequest.h>
using AlibabaCloud::Cms::Model::DescribeAlertingMetricRuleResourcesRequest;
DescribeAlertingMetricRuleResourcesRequest::DescribeAlertingMetricRuleResourcesRequest() :
RpcServiceRequest("cms", "2019-01-01", "DescribeAlertingMetricRuleResources")
{
setMethod(HttpRequest::Method::Get);
}
DescribeAlertingMetricRuleResourcesRequest::~DescribeAlertingMetricRuleResourcesRequest()
{}
std::string DescribeAlertingMetricRuleResourcesRequest::getGroupId()const
{
return groupId_;
}
void DescribeAlertingMetricRuleResourcesRequest::setGroupId(const std::string& groupId)
{
groupId_ = groupId;
setCoreParameter("GroupId", groupId);
}
int DescribeAlertingMetricRuleResourcesRequest::getPageSize()const
{
return pageSize_;
}
void DescribeAlertingMetricRuleResourcesRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}
int DescribeAlertingMetricRuleResourcesRequest::getPage()const
{
return page_;
}
void DescribeAlertingMetricRuleResourcesRequest::setPage(int page)
{
page_ = page;
setCoreParameter("Page", std::to_string(page));
}
std::string DescribeAlertingMetricRuleResourcesRequest::getRuleId()const
{
return ruleId_;
}
void DescribeAlertingMetricRuleResourcesRequest::setRuleId(const std::string& ruleId)
{
ruleId_ = ruleId;
setCoreParameter("RuleId", ruleId);
}

View File

@@ -0,0 +1,105 @@
/*
* 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/cms/model/DescribeAlertingMetricRuleResourcesResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DescribeAlertingMetricRuleResourcesResult::DescribeAlertingMetricRuleResourcesResult() :
ServiceResult()
{}
DescribeAlertingMetricRuleResourcesResult::DescribeAlertingMetricRuleResourcesResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeAlertingMetricRuleResourcesResult::~DescribeAlertingMetricRuleResourcesResult()
{}
void DescribeAlertingMetricRuleResourcesResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allResourcesNode = value["Resources"]["Resource"];
for (auto valueResourcesResource : allResourcesNode)
{
Resource resourcesObject;
if(!valueResourcesResource["RuleId"].isNull())
resourcesObject.ruleId = valueResourcesResource["RuleId"].asString();
if(!valueResourcesResource["RuleName"].isNull())
resourcesObject.ruleName = valueResourcesResource["RuleName"].asString();
if(!valueResourcesResource["GroupId"].isNull())
resourcesObject.groupId = valueResourcesResource["GroupId"].asString();
if(!valueResourcesResource["Resource"].isNull())
resourcesObject.resource = valueResourcesResource["Resource"].asString();
if(!valueResourcesResource["Enable"].isNull())
resourcesObject.enable = valueResourcesResource["Enable"].asString();
if(!valueResourcesResource["LastAlertTime"].isNull())
resourcesObject.lastAlertTime = valueResourcesResource["LastAlertTime"].asString();
if(!valueResourcesResource["LastModifyTime"].isNull())
resourcesObject.lastModifyTime = valueResourcesResource["LastModifyTime"].asString();
if(!valueResourcesResource["StartTime"].isNull())
resourcesObject.startTime = valueResourcesResource["StartTime"].asString();
if(!valueResourcesResource["MetricValues"].isNull())
resourcesObject.metricValues = valueResourcesResource["MetricValues"].asString();
if(!valueResourcesResource["RetryTimes"].isNull())
resourcesObject.retryTimes = valueResourcesResource["RetryTimes"].asString();
if(!valueResourcesResource["Threshold"].isNull())
resourcesObject.threshold = valueResourcesResource["Threshold"].asString();
resources_.push_back(resourcesObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = std::stoi(value["Code"].asString());
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::string DescribeAlertingMetricRuleResourcesResult::getMessage()const
{
return message_;
}
int DescribeAlertingMetricRuleResourcesResult::getTotal()const
{
return total_;
}
std::vector<DescribeAlertingMetricRuleResourcesResult::Resource> DescribeAlertingMetricRuleResourcesResult::getResources()const
{
return resources_;
}
int DescribeAlertingMetricRuleResourcesResult::getCode()const
{
return code_;
}
bool DescribeAlertingMetricRuleResourcesResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,51 @@
/*
* 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/cms/model/DescribeContactGroupListRequest.h>
using AlibabaCloud::Cms::Model::DescribeContactGroupListRequest;
DescribeContactGroupListRequest::DescribeContactGroupListRequest() :
RpcServiceRequest("cms", "2019-01-01", "DescribeContactGroupList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeContactGroupListRequest::~DescribeContactGroupListRequest()
{}
int DescribeContactGroupListRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeContactGroupListRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
int DescribeContactGroupListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeContactGroupListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}

View File

@@ -14,26 +14,26 @@
* limitations under the License.
*/
#include <alibabacloud/cms/model/ListContactGroupResult.h>
#include <alibabacloud/cms/model/DescribeContactGroupListResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
ListContactGroupResult::ListContactGroupResult() :
DescribeContactGroupListResult::DescribeContactGroupListResult() :
ServiceResult()
{}
ListContactGroupResult::ListContactGroupResult(const std::string &payload) :
DescribeContactGroupListResult::DescribeContactGroupListResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
ListContactGroupResult::~ListContactGroupResult()
DescribeContactGroupListResult::~DescribeContactGroupListResult()
{}
void ListContactGroupResult::parse(const std::string &payload)
void DescribeContactGroupListResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
@@ -48,39 +48,32 @@ void ListContactGroupResult::parse(const std::string &payload)
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
if(!value["NextToken"].isNull())
nextToken_ = std::stoi(value["NextToken"].asString());
if(!value["Total"].isNull())
total_ = std::stoi(value["Total"].asString());
}
std::vector<std::string> ListContactGroupResult::getContactGroups()const
std::vector<std::string> DescribeContactGroupListResult::getContactGroups()const
{
return contactGroups_;
}
std::string ListContactGroupResult::getMessage()const
std::string DescribeContactGroupListResult::getMessage()const
{
return message_;
}
int ListContactGroupResult::getNextToken()const
{
return nextToken_;
}
int ListContactGroupResult::getTotal()const
int DescribeContactGroupListResult::getTotal()const
{
return total_;
}
std::string ListContactGroupResult::getCode()const
std::string DescribeContactGroupListResult::getCode()const
{
return code_;
}
bool ListContactGroupResult::getSuccess()const
bool DescribeContactGroupListResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,40 @@
/*
* 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/cms/model/DescribeContactListByContactGroupRequest.h>
using AlibabaCloud::Cms::Model::DescribeContactListByContactGroupRequest;
DescribeContactListByContactGroupRequest::DescribeContactListByContactGroupRequest() :
RpcServiceRequest("cms", "2019-01-01", "DescribeContactListByContactGroup")
{
setMethod(HttpRequest::Method::Post);
}
DescribeContactListByContactGroupRequest::~DescribeContactListByContactGroupRequest()
{}
std::string DescribeContactListByContactGroupRequest::getContactGroupName()const
{
return contactGroupName_;
}
void DescribeContactListByContactGroupRequest::setContactGroupName(const std::string& contactGroupName)
{
contactGroupName_ = contactGroupName;
setCoreParameter("ContactGroupName", contactGroupName);
}

View File

@@ -0,0 +1,93 @@
/*
* 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/cms/model/DescribeContactListByContactGroupResult.h>
#include <json/json.h>
using namespace AlibabaCloud::Cms;
using namespace AlibabaCloud::Cms::Model;
DescribeContactListByContactGroupResult::DescribeContactListByContactGroupResult() :
ServiceResult()
{}
DescribeContactListByContactGroupResult::DescribeContactListByContactGroupResult(const std::string &payload) :
ServiceResult()
{
parse(payload);
}
DescribeContactListByContactGroupResult::~DescribeContactListByContactGroupResult()
{}
void DescribeContactListByContactGroupResult::parse(const std::string &payload)
{
Json::Reader reader;
Json::Value value;
reader.parse(payload, value);
setRequestId(value["RequestId"].asString());
auto allContactsNode = value["Contacts"]["Contact"];
for (auto valueContactsContact : allContactsNode)
{
Contact contactsObject;
if(!valueContactsContact["Name"].isNull())
contactsObject.name = valueContactsContact["Name"].asString();
if(!valueContactsContact["Desc"].isNull())
contactsObject.desc = valueContactsContact["Desc"].asString();
if(!valueContactsContact["CreateTime"].isNull())
contactsObject.createTime = std::stol(valueContactsContact["CreateTime"].asString());
if(!valueContactsContact["UpdateTime"].isNull())
contactsObject.updateTime = std::stol(valueContactsContact["UpdateTime"].asString());
auto channelsNode = value["Channels"];
if(!channelsNode["SMS"].isNull())
contactsObject.channels.sMS = channelsNode["SMS"].asString();
if(!channelsNode["Mail"].isNull())
contactsObject.channels.mail = channelsNode["Mail"].asString();
if(!channelsNode["AliIM"].isNull())
contactsObject.channels.aliIM = channelsNode["AliIM"].asString();
if(!channelsNode["DingWebHook"].isNull())
contactsObject.channels.dingWebHook = channelsNode["DingWebHook"].asString();
contacts_.push_back(contactsObject);
}
if(!value["Success"].isNull())
success_ = value["Success"].asString() == "true";
if(!value["Code"].isNull())
code_ = value["Code"].asString();
if(!value["Message"].isNull())
message_ = value["Message"].asString();
}
std::vector<DescribeContactListByContactGroupResult::Contact> DescribeContactListByContactGroupResult::getContacts()const
{
return contacts_;
}
std::string DescribeContactListByContactGroupResult::getMessage()const
{
return message_;
}
std::string DescribeContactListByContactGroupResult::getCode()const
{
return code_;
}
bool DescribeContactListByContactGroupResult::getSuccess()const
{
return success_;
}

View File

@@ -0,0 +1,62 @@
/*
* 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/cms/model/DescribeContactListRequest.h>
using AlibabaCloud::Cms::Model::DescribeContactListRequest;
DescribeContactListRequest::DescribeContactListRequest() :
RpcServiceRequest("cms", "2019-01-01", "DescribeContactList")
{
setMethod(HttpRequest::Method::Post);
}
DescribeContactListRequest::~DescribeContactListRequest()
{}
int DescribeContactListRequest::getPageNumber()const
{
return pageNumber_;
}
void DescribeContactListRequest::setPageNumber(int pageNumber)
{
pageNumber_ = pageNumber;
setCoreParameter("PageNumber", std::to_string(pageNumber));
}
std::string DescribeContactListRequest::getContactName()const
{
return contactName_;
}
void DescribeContactListRequest::setContactName(const std::string& contactName)
{
contactName_ = contactName;
setCoreParameter("ContactName", contactName);
}
int DescribeContactListRequest::getPageSize()const
{
return pageSize_;
}
void DescribeContactListRequest::setPageSize(int pageSize)
{
pageSize_ = pageSize;
setCoreParameter("PageSize", std::to_string(pageSize));
}

Some files were not shown because too many files have changed in this diff Show More