regenerate code
This commit is contained in:
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::CreateAlertContactGroupRequest;
|
||||
|
||||
CreateAlertContactGroupRequest::CreateAlertContactGroupRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateAlertContactGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAlertContactGroupRequest::~CreateAlertContactGroupRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateAlertContactGroupRequest::getRegionId()const
|
||||
void CreateAlertContactGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactGroupRequest::getContactGroupName()const
|
||||
@@ -44,7 +46,18 @@ std::string CreateAlertContactGroupRequest::getContactGroupName()const
|
||||
void CreateAlertContactGroupRequest::setContactGroupName(const std::string& contactGroupName)
|
||||
{
|
||||
contactGroupName_ = contactGroupName;
|
||||
setCoreParameter("ContactGroupName", contactGroupName);
|
||||
setParameter("ContactGroupName", contactGroupName);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactGroupRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateAlertContactGroupRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactGroupRequest::getContactIds()const
|
||||
@@ -55,6 +68,6 @@ std::string CreateAlertContactGroupRequest::getContactIds()const
|
||||
void CreateAlertContactGroupRequest::setContactIds(const std::string& contactIds)
|
||||
{
|
||||
contactIds_ = contactIds;
|
||||
setCoreParameter("ContactIds", contactIds);
|
||||
setParameter("ContactIds", contactIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::CreateAlertContactRequest;
|
||||
|
||||
CreateAlertContactRequest::CreateAlertContactRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateAlertContact")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateAlertContactRequest::~CreateAlertContactRequest()
|
||||
{}
|
||||
@@ -33,7 +35,18 @@ std::string CreateAlertContactRequest::getPhoneNum()const
|
||||
void CreateAlertContactRequest::setPhoneNum(const std::string& phoneNum)
|
||||
{
|
||||
phoneNum_ = phoneNum;
|
||||
setCoreParameter("PhoneNum", phoneNum);
|
||||
setParameter("PhoneNum", phoneNum);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateAlertContactRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getContactName()const
|
||||
@@ -44,7 +57,7 @@ std::string CreateAlertContactRequest::getContactName()const
|
||||
void CreateAlertContactRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setCoreParameter("ContactName", contactName);
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getRegionId()const
|
||||
@@ -55,7 +68,7 @@ std::string CreateAlertContactRequest::getRegionId()const
|
||||
void CreateAlertContactRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getDingRobotWebhookUrl()const
|
||||
@@ -66,7 +79,7 @@ std::string CreateAlertContactRequest::getDingRobotWebhookUrl()const
|
||||
void CreateAlertContactRequest::setDingRobotWebhookUrl(const std::string& dingRobotWebhookUrl)
|
||||
{
|
||||
dingRobotWebhookUrl_ = dingRobotWebhookUrl;
|
||||
setCoreParameter("DingRobotWebhookUrl", dingRobotWebhookUrl);
|
||||
setParameter("DingRobotWebhookUrl", dingRobotWebhookUrl);
|
||||
}
|
||||
|
||||
std::string CreateAlertContactRequest::getEmail()const
|
||||
@@ -77,7 +90,7 @@ std::string CreateAlertContactRequest::getEmail()const
|
||||
void CreateAlertContactRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setCoreParameter("Email", email);
|
||||
setParameter("Email", email);
|
||||
}
|
||||
|
||||
bool CreateAlertContactRequest::getSystemNoc()const
|
||||
@@ -88,6 +101,6 @@ bool CreateAlertContactRequest::getSystemNoc()const
|
||||
void CreateAlertContactRequest::setSystemNoc(bool systemNoc)
|
||||
{
|
||||
systemNoc_ = systemNoc;
|
||||
setCoreParameter("SystemNoc", systemNoc ? "true" : "false");
|
||||
setParameter("SystemNoc", systemNoc ? "true" : "false");
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::CreateRetcodeAppRequest;
|
||||
|
||||
CreateRetcodeAppRequest::CreateRetcodeAppRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateRetcodeApp")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateRetcodeAppRequest::~CreateRetcodeAppRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string CreateRetcodeAppRequest::getRegionId()const
|
||||
void CreateRetcodeAppRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string CreateRetcodeAppRequest::getRetcodeAppName()const
|
||||
@@ -44,7 +46,7 @@ std::string CreateRetcodeAppRequest::getRetcodeAppName()const
|
||||
void CreateRetcodeAppRequest::setRetcodeAppName(const std::string& retcodeAppName)
|
||||
{
|
||||
retcodeAppName_ = retcodeAppName;
|
||||
setCoreParameter("RetcodeAppName", retcodeAppName);
|
||||
setParameter("RetcodeAppName", retcodeAppName);
|
||||
}
|
||||
|
||||
std::string CreateRetcodeAppRequest::getRetcodeAppType()const
|
||||
@@ -55,6 +57,6 @@ std::string CreateRetcodeAppRequest::getRetcodeAppType()const
|
||||
void CreateRetcodeAppRequest::setRetcodeAppType(const std::string& retcodeAppType)
|
||||
{
|
||||
retcodeAppType_ = retcodeAppType;
|
||||
setCoreParameter("RetcodeAppType", retcodeAppType);
|
||||
setParameter("RetcodeAppType", retcodeAppType);
|
||||
}
|
||||
|
||||
|
||||
62
arms/src/model/DeleteAlertContactGroupRequest.cc
Normal file
62
arms/src/model/DeleteAlertContactGroupRequest.cc
Normal 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/arms/model/DeleteAlertContactGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertContactGroupRequest;
|
||||
|
||||
DeleteAlertContactGroupRequest::DeleteAlertContactGroupRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteAlertContactGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAlertContactGroupRequest::~DeleteAlertContactGroupRequest()
|
||||
{}
|
||||
|
||||
long DeleteAlertContactGroupRequest::getContactGroupId()const
|
||||
{
|
||||
return contactGroupId_;
|
||||
}
|
||||
|
||||
void DeleteAlertContactGroupRequest::setContactGroupId(long contactGroupId)
|
||||
{
|
||||
contactGroupId_ = contactGroupId;
|
||||
setParameter("ContactGroupId", std::to_string(contactGroupId));
|
||||
}
|
||||
|
||||
std::string DeleteAlertContactGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteAlertContactGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteAlertContactGroupRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DeleteAlertContactGroupRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteAlertContactGroupResult.cc
Normal file
51
arms/src/model/DeleteAlertContactGroupResult.cc
Normal 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/arms/model/DeleteAlertContactGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteAlertContactGroupResult::DeleteAlertContactGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAlertContactGroupResult::DeleteAlertContactGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAlertContactGroupResult::~DeleteAlertContactGroupResult()
|
||||
{}
|
||||
|
||||
void DeleteAlertContactGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteAlertContactGroupResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
62
arms/src/model/DeleteAlertContactRequest.cc
Normal file
62
arms/src/model/DeleteAlertContactRequest.cc
Normal 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/arms/model/DeleteAlertContactRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertContactRequest;
|
||||
|
||||
DeleteAlertContactRequest::DeleteAlertContactRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteAlertContact")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAlertContactRequest::~DeleteAlertContactRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAlertContactRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteAlertContactRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long DeleteAlertContactRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
void DeleteAlertContactRequest::setContactId(long contactId)
|
||||
{
|
||||
contactId_ = contactId;
|
||||
setParameter("ContactId", std::to_string(contactId));
|
||||
}
|
||||
|
||||
std::string DeleteAlertContactRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DeleteAlertContactRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteAlertContactResult.cc
Normal file
51
arms/src/model/DeleteAlertContactResult.cc
Normal 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/arms/model/DeleteAlertContactResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteAlertContactResult::DeleteAlertContactResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAlertContactResult::DeleteAlertContactResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAlertContactResult::~DeleteAlertContactResult()
|
||||
{}
|
||||
|
||||
void DeleteAlertContactResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteAlertContactResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
62
arms/src/model/DeleteAlertRulesRequest.cc
Normal file
62
arms/src/model/DeleteAlertRulesRequest.cc
Normal 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/arms/model/DeleteAlertRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::DeleteAlertRulesRequest;
|
||||
|
||||
DeleteAlertRulesRequest::DeleteAlertRulesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteAlertRules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteAlertRulesRequest::~DeleteAlertRulesRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteAlertRulesRequest::getAlertIds()const
|
||||
{
|
||||
return alertIds_;
|
||||
}
|
||||
|
||||
void DeleteAlertRulesRequest::setAlertIds(const std::string& alertIds)
|
||||
{
|
||||
alertIds_ = alertIds;
|
||||
setParameter("AlertIds", alertIds);
|
||||
}
|
||||
|
||||
std::string DeleteAlertRulesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void DeleteAlertRulesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteAlertRulesRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void DeleteAlertRulesRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/DeleteAlertRulesResult.cc
Normal file
51
arms/src/model/DeleteAlertRulesResult.cc
Normal 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/arms/model/DeleteAlertRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
DeleteAlertRulesResult::DeleteAlertRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteAlertRulesResult::DeleteAlertRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteAlertRulesResult::~DeleteAlertRulesResult()
|
||||
{}
|
||||
|
||||
void DeleteAlertRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool DeleteAlertRulesResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::DeleteRetcodeAppRequest;
|
||||
|
||||
DeleteRetcodeAppRequest::DeleteRetcodeAppRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "DeleteRetcodeApp")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteRetcodeAppRequest::~DeleteRetcodeAppRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string DeleteRetcodeAppRequest::getRegionId()const
|
||||
void DeleteRetcodeAppRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string DeleteRetcodeAppRequest::getAppId()const
|
||||
@@ -44,6 +46,6 @@ std::string DeleteRetcodeAppRequest::getAppId()const
|
||||
void DeleteRetcodeAppRequest::setAppId(const std::string& appId)
|
||||
{
|
||||
appId_ = appId;
|
||||
setCoreParameter("AppId", appId);
|
||||
setParameter("AppId", appId);
|
||||
}
|
||||
|
||||
|
||||
40
arms/src/model/GetRetcodeShareUrlRequest.cc
Normal file
40
arms/src/model/GetRetcodeShareUrlRequest.cc
Normal 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/arms/model/GetRetcodeShareUrlRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::GetRetcodeShareUrlRequest;
|
||||
|
||||
GetRetcodeShareUrlRequest::GetRetcodeShareUrlRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "GetRetcodeShareUrl")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
GetRetcodeShareUrlRequest::~GetRetcodeShareUrlRequest()
|
||||
{}
|
||||
|
||||
std::string GetRetcodeShareUrlRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void GetRetcodeShareUrlRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
51
arms/src/model/GetRetcodeShareUrlResult.cc
Normal file
51
arms/src/model/GetRetcodeShareUrlResult.cc
Normal 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/arms/model/GetRetcodeShareUrlResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
GetRetcodeShareUrlResult::GetRetcodeShareUrlResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetRetcodeShareUrlResult::GetRetcodeShareUrlResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetRetcodeShareUrlResult::~GetRetcodeShareUrlResult()
|
||||
{}
|
||||
|
||||
void GetRetcodeShareUrlResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Url"].isNull())
|
||||
url_ = value["Url"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetRetcodeShareUrlResult::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::ImportAppAlertRulesRequest;
|
||||
|
||||
ImportAppAlertRulesRequest::ImportAppAlertRulesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ImportAppAlertRules")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ImportAppAlertRulesRequest::~ImportAppAlertRulesRequest()
|
||||
{}
|
||||
@@ -33,7 +35,18 @@ bool ImportAppAlertRulesRequest::getIsAutoStart()const
|
||||
void ImportAppAlertRulesRequest::setIsAutoStart(bool isAutoStart)
|
||||
{
|
||||
isAutoStart_ = isAutoStart;
|
||||
setCoreParameter("IsAutoStart", isAutoStart ? "true" : "false");
|
||||
setParameter("IsAutoStart", isAutoStart ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ImportAppAlertRulesRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void ImportAppAlertRulesRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string ImportAppAlertRulesRequest::getRegionId()const
|
||||
@@ -44,7 +57,7 @@ std::string ImportAppAlertRulesRequest::getRegionId()const
|
||||
void ImportAppAlertRulesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ImportAppAlertRulesRequest::getContactGroupIds()const
|
||||
@@ -55,7 +68,7 @@ std::string ImportAppAlertRulesRequest::getContactGroupIds()const
|
||||
void ImportAppAlertRulesRequest::setContactGroupIds(const std::string& contactGroupIds)
|
||||
{
|
||||
contactGroupIds_ = contactGroupIds;
|
||||
setCoreParameter("ContactGroupIds", contactGroupIds);
|
||||
setParameter("ContactGroupIds", contactGroupIds);
|
||||
}
|
||||
|
||||
std::string ImportAppAlertRulesRequest::getPids()const
|
||||
@@ -66,7 +79,7 @@ std::string ImportAppAlertRulesRequest::getPids()const
|
||||
void ImportAppAlertRulesRequest::setPids(const std::string& pids)
|
||||
{
|
||||
pids_ = pids;
|
||||
setCoreParameter("Pids", pids);
|
||||
setParameter("Pids", pids);
|
||||
}
|
||||
|
||||
std::string ImportAppAlertRulesRequest::getTemplageAlertConfig()const
|
||||
@@ -77,7 +90,7 @@ std::string ImportAppAlertRulesRequest::getTemplageAlertConfig()const
|
||||
void ImportAppAlertRulesRequest::setTemplageAlertConfig(const std::string& templageAlertConfig)
|
||||
{
|
||||
templageAlertConfig_ = templageAlertConfig;
|
||||
setCoreParameter("TemplageAlertConfig", templageAlertConfig);
|
||||
setParameter("TemplageAlertConfig", templageAlertConfig);
|
||||
}
|
||||
|
||||
std::string ImportAppAlertRulesRequest::getTemplateAlertId()const
|
||||
@@ -88,6 +101,6 @@ std::string ImportAppAlertRulesRequest::getTemplateAlertId()const
|
||||
void ImportAppAlertRulesRequest::setTemplateAlertId(const std::string& templateAlertId)
|
||||
{
|
||||
templateAlertId_ = templateAlertId;
|
||||
setCoreParameter("TemplateAlertId", templateAlertId);
|
||||
setParameter("TemplateAlertId", templateAlertId);
|
||||
}
|
||||
|
||||
|
||||
84
arms/src/model/ImportCustomAlertRulesRequest.cc
Normal file
84
arms/src/model/ImportCustomAlertRulesRequest.cc
Normal 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/arms/model/ImportCustomAlertRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ImportCustomAlertRulesRequest;
|
||||
|
||||
ImportCustomAlertRulesRequest::ImportCustomAlertRulesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ImportCustomAlertRules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ImportCustomAlertRulesRequest::~ImportCustomAlertRulesRequest()
|
||||
{}
|
||||
|
||||
bool ImportCustomAlertRulesRequest::getIsAutoStart()const
|
||||
{
|
||||
return isAutoStart_;
|
||||
}
|
||||
|
||||
void ImportCustomAlertRulesRequest::setIsAutoStart(bool isAutoStart)
|
||||
{
|
||||
isAutoStart_ = isAutoStart;
|
||||
setParameter("IsAutoStart", isAutoStart ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string ImportCustomAlertRulesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ImportCustomAlertRulesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ImportCustomAlertRulesRequest::getContactGroupIds()const
|
||||
{
|
||||
return contactGroupIds_;
|
||||
}
|
||||
|
||||
void ImportCustomAlertRulesRequest::setContactGroupIds(const std::string& contactGroupIds)
|
||||
{
|
||||
contactGroupIds_ = contactGroupIds;
|
||||
setParameter("ContactGroupIds", contactGroupIds);
|
||||
}
|
||||
|
||||
std::string ImportCustomAlertRulesRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void ImportCustomAlertRulesRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string ImportCustomAlertRulesRequest::getTemplageAlertConfig()const
|
||||
{
|
||||
return templageAlertConfig_;
|
||||
}
|
||||
|
||||
void ImportCustomAlertRulesRequest::setTemplageAlertConfig(const std::string& templageAlertConfig)
|
||||
{
|
||||
templageAlertConfig_ = templageAlertConfig;
|
||||
setParameter("TemplageAlertConfig", templageAlertConfig);
|
||||
}
|
||||
|
||||
51
arms/src/model/ImportCustomAlertRulesResult.cc
Normal file
51
arms/src/model/ImportCustomAlertRulesResult.cc
Normal 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/arms/model/ImportCustomAlertRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ImportCustomAlertRulesResult::ImportCustomAlertRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ImportCustomAlertRulesResult::ImportCustomAlertRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ImportCustomAlertRulesResult::~ImportCustomAlertRulesResult()
|
||||
{}
|
||||
|
||||
void ImportCustomAlertRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ImportCustomAlertRulesResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
40
arms/src/model/ListPromClustersRequest.cc
Normal file
40
arms/src/model/ListPromClustersRequest.cc
Normal 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/arms/model/ListPromClustersRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::ListPromClustersRequest;
|
||||
|
||||
ListPromClustersRequest::ListPromClustersRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListPromClusters")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListPromClustersRequest::~ListPromClustersRequest()
|
||||
{}
|
||||
|
||||
std::string ListPromClustersRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void ListPromClustersRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
91
arms/src/model/ListPromClustersResult.cc
Normal file
91
arms/src/model/ListPromClustersResult.cc
Normal 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/arms/model/ListPromClustersResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
ListPromClustersResult::ListPromClustersResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListPromClustersResult::ListPromClustersResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListPromClustersResult::~ListPromClustersResult()
|
||||
{}
|
||||
|
||||
void ListPromClustersResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allPromClusterListNode = value["PromClusterList"]["PromCluster"];
|
||||
for (auto valuePromClusterListPromCluster : allPromClusterListNode)
|
||||
{
|
||||
PromCluster promClusterListObject;
|
||||
if(!valuePromClusterListPromCluster["Id"].isNull())
|
||||
promClusterListObject.id = std::stol(valuePromClusterListPromCluster["Id"].asString());
|
||||
if(!valuePromClusterListPromCluster["ClusterId"].isNull())
|
||||
promClusterListObject.clusterId = valuePromClusterListPromCluster["ClusterId"].asString();
|
||||
if(!valuePromClusterListPromCluster["ClusterName"].isNull())
|
||||
promClusterListObject.clusterName = valuePromClusterListPromCluster["ClusterName"].asString();
|
||||
if(!valuePromClusterListPromCluster["AgentStatus"].isNull())
|
||||
promClusterListObject.agentStatus = valuePromClusterListPromCluster["AgentStatus"].asString();
|
||||
if(!valuePromClusterListPromCluster["ClusterType"].isNull())
|
||||
promClusterListObject.clusterType = valuePromClusterListPromCluster["ClusterType"].asString();
|
||||
if(!valuePromClusterListPromCluster["ControllerId"].isNull())
|
||||
promClusterListObject.controllerId = valuePromClusterListPromCluster["ControllerId"].asString();
|
||||
if(!valuePromClusterListPromCluster["IsControllerInstalled"].isNull())
|
||||
promClusterListObject.isControllerInstalled = valuePromClusterListPromCluster["IsControllerInstalled"].asString() == "true";
|
||||
if(!valuePromClusterListPromCluster["UserId"].isNull())
|
||||
promClusterListObject.userId = valuePromClusterListPromCluster["UserId"].asString();
|
||||
if(!valuePromClusterListPromCluster["RegionId"].isNull())
|
||||
promClusterListObject.regionId = valuePromClusterListPromCluster["RegionId"].asString();
|
||||
if(!valuePromClusterListPromCluster["PluginsJsonArray"].isNull())
|
||||
promClusterListObject.pluginsJsonArray = valuePromClusterListPromCluster["PluginsJsonArray"].asString();
|
||||
if(!valuePromClusterListPromCluster["StateJson"].isNull())
|
||||
promClusterListObject.stateJson = valuePromClusterListPromCluster["StateJson"].asString();
|
||||
if(!valuePromClusterListPromCluster["NodeNum"].isNull())
|
||||
promClusterListObject.nodeNum = std::stoi(valuePromClusterListPromCluster["NodeNum"].asString());
|
||||
if(!valuePromClusterListPromCluster["CreateTime"].isNull())
|
||||
promClusterListObject.createTime = std::stol(valuePromClusterListPromCluster["CreateTime"].asString());
|
||||
if(!valuePromClusterListPromCluster["UpdateTime"].isNull())
|
||||
promClusterListObject.updateTime = std::stol(valuePromClusterListPromCluster["UpdateTime"].asString());
|
||||
if(!valuePromClusterListPromCluster["LastHeartBeatTime"].isNull())
|
||||
promClusterListObject.lastHeartBeatTime = std::stol(valuePromClusterListPromCluster["LastHeartBeatTime"].asString());
|
||||
if(!valuePromClusterListPromCluster["InstallTime"].isNull())
|
||||
promClusterListObject.installTime = std::stol(valuePromClusterListPromCluster["InstallTime"].asString());
|
||||
if(!valuePromClusterListPromCluster["Extra"].isNull())
|
||||
promClusterListObject.extra = valuePromClusterListPromCluster["Extra"].asString();
|
||||
if(!valuePromClusterListPromCluster["Options"].isNull())
|
||||
promClusterListObject.options = valuePromClusterListPromCluster["Options"].asString();
|
||||
promClusterList_.push_back(promClusterListObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
std::vector<ListPromClustersResult::PromCluster> ListPromClustersResult::getPromClusterList()const
|
||||
{
|
||||
return promClusterList_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::ListRetcodeAppsRequest;
|
||||
|
||||
ListRetcodeAppsRequest::ListRetcodeAppsRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListRetcodeApps")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListRetcodeAppsRequest::~ListRetcodeAppsRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string ListRetcodeAppsRequest::getSecurityToken()const
|
||||
void ListRetcodeAppsRequest::setSecurityToken(const std::string& securityToken)
|
||||
{
|
||||
securityToken_ = securityToken;
|
||||
setCoreParameter("SecurityToken", securityToken);
|
||||
setParameter("SecurityToken", securityToken);
|
||||
}
|
||||
|
||||
std::string ListRetcodeAppsRequest::getRegionId()const
|
||||
@@ -44,7 +46,7 @@ std::string ListRetcodeAppsRequest::getRegionId()const
|
||||
void ListRetcodeAppsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string ListRetcodeAppsRequest::getAccessKeyId()const
|
||||
@@ -55,6 +57,6 @@ std::string ListRetcodeAppsRequest::getAccessKeyId()const
|
||||
void ListRetcodeAppsRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setCoreParameter("AccessKeyId", accessKeyId);
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::ListTraceAppsRequest;
|
||||
|
||||
ListTraceAppsRequest::ListTraceAppsRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "ListTraceApps")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
ListTraceAppsRequest::~ListTraceAppsRequest()
|
||||
{}
|
||||
@@ -33,6 +35,6 @@ std::string ListTraceAppsRequest::getRegionId()const
|
||||
void ListTraceAppsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::QueryDatasetRequest;
|
||||
|
||||
QueryDatasetRequest::QueryDatasetRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "QueryDataset")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryDatasetRequest::~QueryDatasetRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string QueryDatasetRequest::getDateStr()const
|
||||
void QueryDatasetRequest::setDateStr(const std::string& dateStr)
|
||||
{
|
||||
dateStr_ = dateStr;
|
||||
setCoreParameter("DateStr", dateStr);
|
||||
setParameter("DateStr", dateStr);
|
||||
}
|
||||
|
||||
long QueryDatasetRequest::getMinTime()const
|
||||
@@ -44,7 +46,18 @@ long QueryDatasetRequest::getMinTime()const
|
||||
void QueryDatasetRequest::setMinTime(long minTime)
|
||||
{
|
||||
minTime_ = minTime;
|
||||
setCoreParameter("MinTime", std::to_string(minTime));
|
||||
setParameter("MinTime", std::to_string(minTime));
|
||||
}
|
||||
|
||||
std::string QueryDatasetRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void QueryDatasetRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
bool QueryDatasetRequest::getReduceTail()const
|
||||
@@ -55,7 +68,7 @@ bool QueryDatasetRequest::getReduceTail()const
|
||||
void QueryDatasetRequest::setReduceTail(bool reduceTail)
|
||||
{
|
||||
reduceTail_ = reduceTail;
|
||||
setCoreParameter("ReduceTail", reduceTail ? "true" : "false");
|
||||
setParameter("ReduceTail", reduceTail ? "true" : "false");
|
||||
}
|
||||
|
||||
long QueryDatasetRequest::getMaxTime()const
|
||||
@@ -66,7 +79,7 @@ long QueryDatasetRequest::getMaxTime()const
|
||||
void QueryDatasetRequest::setMaxTime(long maxTime)
|
||||
{
|
||||
maxTime_ = maxTime;
|
||||
setCoreParameter("MaxTime", std::to_string(maxTime));
|
||||
setParameter("MaxTime", std::to_string(maxTime));
|
||||
}
|
||||
|
||||
std::vector<QueryDatasetRequest::OptionalDims> QueryDatasetRequest::getOptionalDims()const
|
||||
@@ -77,13 +90,12 @@ std::vector<QueryDatasetRequest::OptionalDims> QueryDatasetRequest::getOptionalD
|
||||
void QueryDatasetRequest::setOptionalDims(const std::vector<OptionalDims>& optionalDims)
|
||||
{
|
||||
optionalDims_ = optionalDims;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= optionalDims.size(); i++) {
|
||||
auto obj = optionalDims.at(i);
|
||||
std::string str ="OptionalDims."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Type", obj.type);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
for(int dep1 = 0; dep1!= optionalDims.size(); dep1++) {
|
||||
auto optionalDimsObj = optionalDims.at(dep1);
|
||||
std::string optionalDimsObjStr = "OptionalDims." + std::to_string(dep1 + 1);
|
||||
setParameter(optionalDimsObjStr + ".Type", optionalDimsObj.type);
|
||||
setParameter(optionalDimsObjStr + ".Value", optionalDimsObj.value);
|
||||
setParameter(optionalDimsObjStr + ".Key", optionalDimsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -95,8 +107,9 @@ std::vector<std::string> QueryDatasetRequest::getMeasures()const
|
||||
void QueryDatasetRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int i = 0; i!= measures.size(); i++)
|
||||
setCoreParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
for(int dep1 = 0; dep1!= measures.size(); dep1++) {
|
||||
setParameter("Measures."+ std::to_string(dep1), measures.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int QueryDatasetRequest::getIntervalInSec()const
|
||||
@@ -107,7 +120,7 @@ int QueryDatasetRequest::getIntervalInSec()const
|
||||
void QueryDatasetRequest::setIntervalInSec(int intervalInSec)
|
||||
{
|
||||
intervalInSec_ = intervalInSec;
|
||||
setCoreParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
setParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
}
|
||||
|
||||
bool QueryDatasetRequest::getIsDrillDown()const
|
||||
@@ -118,7 +131,7 @@ bool QueryDatasetRequest::getIsDrillDown()const
|
||||
void QueryDatasetRequest::setIsDrillDown(bool isDrillDown)
|
||||
{
|
||||
isDrillDown_ = isDrillDown;
|
||||
setCoreParameter("IsDrillDown", isDrillDown ? "true" : "false");
|
||||
setParameter("IsDrillDown", isDrillDown ? "true" : "false");
|
||||
}
|
||||
|
||||
bool QueryDatasetRequest::getHungryMode()const
|
||||
@@ -129,7 +142,7 @@ bool QueryDatasetRequest::getHungryMode()const
|
||||
void QueryDatasetRequest::setHungryMode(bool hungryMode)
|
||||
{
|
||||
hungryMode_ = hungryMode;
|
||||
setCoreParameter("HungryMode", hungryMode ? "true" : "false");
|
||||
setParameter("HungryMode", hungryMode ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string QueryDatasetRequest::getOrderByKey()const
|
||||
@@ -140,7 +153,7 @@ std::string QueryDatasetRequest::getOrderByKey()const
|
||||
void QueryDatasetRequest::setOrderByKey(const std::string& orderByKey)
|
||||
{
|
||||
orderByKey_ = orderByKey;
|
||||
setCoreParameter("OrderByKey", orderByKey);
|
||||
setParameter("OrderByKey", orderByKey);
|
||||
}
|
||||
|
||||
int QueryDatasetRequest::getLimit()const
|
||||
@@ -151,7 +164,7 @@ int QueryDatasetRequest::getLimit()const
|
||||
void QueryDatasetRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setCoreParameter("Limit", std::to_string(limit));
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
long QueryDatasetRequest::getDatasetId()const
|
||||
@@ -162,7 +175,7 @@ long QueryDatasetRequest::getDatasetId()const
|
||||
void QueryDatasetRequest::setDatasetId(long datasetId)
|
||||
{
|
||||
datasetId_ = datasetId;
|
||||
setCoreParameter("DatasetId", std::to_string(datasetId));
|
||||
setParameter("DatasetId", std::to_string(datasetId));
|
||||
}
|
||||
|
||||
std::vector<QueryDatasetRequest::RequiredDims> QueryDatasetRequest::getRequiredDims()const
|
||||
@@ -173,13 +186,12 @@ std::vector<QueryDatasetRequest::RequiredDims> QueryDatasetRequest::getRequiredD
|
||||
void QueryDatasetRequest::setRequiredDims(const std::vector<RequiredDims>& requiredDims)
|
||||
{
|
||||
requiredDims_ = requiredDims;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= requiredDims.size(); i++) {
|
||||
auto obj = requiredDims.at(i);
|
||||
std::string str ="RequiredDims."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Type", obj.type);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
for(int dep1 = 0; dep1!= requiredDims.size(); dep1++) {
|
||||
auto requiredDimsObj = requiredDims.at(dep1);
|
||||
std::string requiredDimsObjStr = "RequiredDims." + std::to_string(dep1 + 1);
|
||||
setParameter(requiredDimsObjStr + ".Type", requiredDimsObj.type);
|
||||
setParameter(requiredDimsObjStr + ".Value", requiredDimsObj.value);
|
||||
setParameter(requiredDimsObjStr + ".Key", requiredDimsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -191,13 +203,12 @@ std::vector<QueryDatasetRequest::Dimensions> QueryDatasetRequest::getDimensions(
|
||||
void QueryDatasetRequest::setDimensions(const std::vector<Dimensions>& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= dimensions.size(); i++) {
|
||||
auto obj = dimensions.at(i);
|
||||
std::string str ="Dimensions."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Type", obj.type);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
for(int dep1 = 0; dep1!= dimensions.size(); dep1++) {
|
||||
auto dimensionsObj = dimensions.at(dep1);
|
||||
std::string dimensionsObjStr = "Dimensions." + std::to_string(dep1 + 1);
|
||||
setParameter(dimensionsObjStr + ".Type", dimensionsObj.type);
|
||||
setParameter(dimensionsObjStr + ".Value", dimensionsObj.value);
|
||||
setParameter(dimensionsObjStr + ".Key", dimensionsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::QueryMetricRequest;
|
||||
|
||||
QueryMetricRequest::QueryMetricRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "QueryMetric")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
QueryMetricRequest::~QueryMetricRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ long QueryMetricRequest::getEndTime()const
|
||||
void QueryMetricRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getOrderBy()const
|
||||
@@ -44,7 +46,7 @@ std::string QueryMetricRequest::getOrderBy()const
|
||||
void QueryMetricRequest::setOrderBy(const std::string& orderBy)
|
||||
{
|
||||
orderBy_ = orderBy;
|
||||
setCoreParameter("OrderBy", orderBy);
|
||||
setParameter("OrderBy", orderBy);
|
||||
}
|
||||
|
||||
long QueryMetricRequest::getStartTime()const
|
||||
@@ -55,7 +57,7 @@ long QueryMetricRequest::getStartTime()const
|
||||
void QueryMetricRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::vector<QueryMetricRequest::Filters> QueryMetricRequest::getFilters()const
|
||||
@@ -66,15 +68,25 @@ std::vector<QueryMetricRequest::Filters> QueryMetricRequest::getFilters()const
|
||||
void QueryMetricRequest::setFilters(const std::vector<Filters>& filters)
|
||||
{
|
||||
filters_ = filters;
|
||||
int i = 0;
|
||||
for(int i = 0; i!= filters.size(); i++) {
|
||||
auto obj = filters.at(i);
|
||||
std::string str ="Filters."+ std::to_string(i);
|
||||
setCoreParameter(str + ".Value", obj.value);
|
||||
setCoreParameter(str + ".Key", obj.key);
|
||||
for(int dep1 = 0; dep1!= filters.size(); dep1++) {
|
||||
auto filtersObj = filters.at(dep1);
|
||||
std::string filtersObjStr = "Filters." + std::to_string(dep1 + 1);
|
||||
setParameter(filtersObjStr + ".Value", filtersObj.value);
|
||||
setParameter(filtersObjStr + ".Key", filtersObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void QueryMetricRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryMetricRequest::getMeasures()const
|
||||
{
|
||||
return measures_;
|
||||
@@ -83,8 +95,9 @@ std::vector<std::string> QueryMetricRequest::getMeasures()const
|
||||
void QueryMetricRequest::setMeasures(const std::vector<std::string>& measures)
|
||||
{
|
||||
measures_ = measures;
|
||||
for(int i = 0; i!= measures.size(); i++)
|
||||
setCoreParameter("Measures."+ std::to_string(i), measures.at(i));
|
||||
for(int dep1 = 0; dep1!= measures.size(); dep1++) {
|
||||
setParameter("Measures."+ std::to_string(dep1), measures.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
int QueryMetricRequest::getIntervalInSec()const
|
||||
@@ -95,7 +108,7 @@ int QueryMetricRequest::getIntervalInSec()const
|
||||
void QueryMetricRequest::setIntervalInSec(int intervalInSec)
|
||||
{
|
||||
intervalInSec_ = intervalInSec;
|
||||
setCoreParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
setParameter("IntervalInSec", std::to_string(intervalInSec));
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getMetric()const
|
||||
@@ -106,7 +119,7 @@ std::string QueryMetricRequest::getMetric()const
|
||||
void QueryMetricRequest::setMetric(const std::string& metric)
|
||||
{
|
||||
metric_ = metric;
|
||||
setCoreParameter("Metric", metric);
|
||||
setParameter("Metric", metric);
|
||||
}
|
||||
|
||||
int QueryMetricRequest::getLimit()const
|
||||
@@ -117,7 +130,7 @@ int QueryMetricRequest::getLimit()const
|
||||
void QueryMetricRequest::setLimit(int limit)
|
||||
{
|
||||
limit_ = limit;
|
||||
setCoreParameter("Limit", std::to_string(limit));
|
||||
setParameter("Limit", std::to_string(limit));
|
||||
}
|
||||
|
||||
std::vector<std::string> QueryMetricRequest::getDimensions()const
|
||||
@@ -128,8 +141,9 @@ std::vector<std::string> QueryMetricRequest::getDimensions()const
|
||||
void QueryMetricRequest::setDimensions(const std::vector<std::string>& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
for(int i = 0; i!= dimensions.size(); i++)
|
||||
setCoreParameter("Dimensions."+ std::to_string(i), dimensions.at(i));
|
||||
for(int dep1 = 0; dep1!= dimensions.size(); dep1++) {
|
||||
setParameter("Dimensions."+ std::to_string(dep1), dimensions.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
std::string QueryMetricRequest::getOrder()const
|
||||
@@ -140,6 +154,6 @@ std::string QueryMetricRequest::getOrder()const
|
||||
void QueryMetricRequest::setOrder(const std::string& order)
|
||||
{
|
||||
order_ = order;
|
||||
setCoreParameter("Order", order);
|
||||
setParameter("Order", order);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,11 +20,24 @@ using AlibabaCloud::ARMS::Model::SearchAlertContactGroupRequest;
|
||||
|
||||
SearchAlertContactGroupRequest::SearchAlertContactGroupRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SearchAlertContactGroup")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchAlertContactGroupRequest::~SearchAlertContactGroupRequest()
|
||||
{}
|
||||
|
||||
std::string SearchAlertContactGroupRequest::getContactName()const
|
||||
{
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
void SearchAlertContactGroupRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
@@ -33,7 +46,18 @@ std::string SearchAlertContactGroupRequest::getRegionId()const
|
||||
void SearchAlertContactGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long SearchAlertContactGroupRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
void SearchAlertContactGroupRequest::setContactId(long contactId)
|
||||
{
|
||||
contactId_ = contactId;
|
||||
setParameter("ContactId", std::to_string(contactId));
|
||||
}
|
||||
|
||||
std::string SearchAlertContactGroupRequest::getContactGroupName()const
|
||||
@@ -44,6 +68,17 @@ std::string SearchAlertContactGroupRequest::getContactGroupName()const
|
||||
void SearchAlertContactGroupRequest::setContactGroupName(const std::string& contactGroupName)
|
||||
{
|
||||
contactGroupName_ = contactGroupName;
|
||||
setCoreParameter("ContactGroupName", contactGroupName);
|
||||
setParameter("ContactGroupName", contactGroupName);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactGroupRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void SearchAlertContactGroupRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::SearchAlertContactRequest;
|
||||
|
||||
SearchAlertContactRequest::SearchAlertContactRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SearchAlertContact")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchAlertContactRequest::~SearchAlertContactRequest()
|
||||
{}
|
||||
@@ -33,7 +35,18 @@ std::string SearchAlertContactRequest::getCurrentPage()const
|
||||
void SearchAlertContactRequest::setCurrentPage(const std::string& currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setCoreParameter("CurrentPage", currentPage);
|
||||
setParameter("CurrentPage", currentPage);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void SearchAlertContactRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactRequest::getContactName()const
|
||||
@@ -44,7 +57,7 @@ std::string SearchAlertContactRequest::getContactName()const
|
||||
void SearchAlertContactRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setCoreParameter("ContactName", contactName);
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactRequest::getPhone()const
|
||||
@@ -55,7 +68,7 @@ std::string SearchAlertContactRequest::getPhone()const
|
||||
void SearchAlertContactRequest::setPhone(const std::string& phone)
|
||||
{
|
||||
phone_ = phone;
|
||||
setCoreParameter("Phone", phone);
|
||||
setParameter("Phone", phone);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactRequest::getRegionId()const
|
||||
@@ -66,7 +79,7 @@ std::string SearchAlertContactRequest::getRegionId()const
|
||||
void SearchAlertContactRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactRequest::getPageSize()const
|
||||
@@ -77,7 +90,7 @@ std::string SearchAlertContactRequest::getPageSize()const
|
||||
void SearchAlertContactRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactRequest::getEmail()const
|
||||
@@ -88,6 +101,6 @@ std::string SearchAlertContactRequest::getEmail()const
|
||||
void SearchAlertContactRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setCoreParameter("Email", email);
|
||||
setParameter("Email", email);
|
||||
}
|
||||
|
||||
|
||||
117
arms/src/model/SearchAlertHistoriesRequest.cc
Normal file
117
arms/src/model/SearchAlertHistoriesRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/arms/model/SearchAlertHistoriesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SearchAlertHistoriesRequest;
|
||||
|
||||
SearchAlertHistoriesRequest::SearchAlertHistoriesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SearchAlertHistories")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchAlertHistoriesRequest::~SearchAlertHistoriesRequest()
|
||||
{}
|
||||
|
||||
long SearchAlertHistoriesRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void SearchAlertHistoriesRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
int SearchAlertHistoriesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void SearchAlertHistoriesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long SearchAlertHistoriesRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void SearchAlertHistoriesRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string SearchAlertHistoriesRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void SearchAlertHistoriesRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
int SearchAlertHistoriesRequest::getAlertType()const
|
||||
{
|
||||
return alertType_;
|
||||
}
|
||||
|
||||
void SearchAlertHistoriesRequest::setAlertType(int alertType)
|
||||
{
|
||||
alertType_ = alertType;
|
||||
setParameter("AlertType", std::to_string(alertType));
|
||||
}
|
||||
|
||||
std::string SearchAlertHistoriesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SearchAlertHistoriesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int SearchAlertHistoriesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchAlertHistoriesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long SearchAlertHistoriesRequest::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void SearchAlertHistoriesRequest::setAlertId(long alertId)
|
||||
{
|
||||
alertId_ = alertId;
|
||||
setParameter("AlertId", std::to_string(alertId));
|
||||
}
|
||||
|
||||
84
arms/src/model/SearchAlertHistoriesResult.cc
Normal file
84
arms/src/model/SearchAlertHistoriesResult.cc
Normal 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/arms/model/SearchAlertHistoriesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SearchAlertHistoriesResult::SearchAlertHistoriesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchAlertHistoriesResult::SearchAlertHistoriesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchAlertHistoriesResult::~SearchAlertHistoriesResult()
|
||||
{}
|
||||
|
||||
void SearchAlertHistoriesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto pageBeanNode = value["PageBean"];
|
||||
if(!pageBeanNode["TotalCount"].isNull())
|
||||
pageBean_.totalCount = std::stoi(pageBeanNode["TotalCount"].asString());
|
||||
if(!pageBeanNode["PageNumber"].isNull())
|
||||
pageBean_.pageNumber = std::stoi(pageBeanNode["PageNumber"].asString());
|
||||
if(!pageBeanNode["PageSize"].isNull())
|
||||
pageBean_.pageSize = std::stoi(pageBeanNode["PageSize"].asString());
|
||||
auto allAlarmHistoriesNode = pageBeanNode["AlarmHistories"]["AlarmHistory"];
|
||||
for (auto pageBeanNodeAlarmHistoriesAlarmHistory : allAlarmHistoriesNode)
|
||||
{
|
||||
PageBean::AlarmHistory alarmHistoryObject;
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["Id"].isNull())
|
||||
alarmHistoryObject.id = std::stol(pageBeanNodeAlarmHistoriesAlarmHistory["Id"].asString());
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["StrategyId"].isNull())
|
||||
alarmHistoryObject.strategyId = pageBeanNodeAlarmHistoriesAlarmHistory["StrategyId"].asString();
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["UserId"].isNull())
|
||||
alarmHistoryObject.userId = pageBeanNodeAlarmHistoriesAlarmHistory["UserId"].asString();
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["Target"].isNull())
|
||||
alarmHistoryObject.target = pageBeanNodeAlarmHistoriesAlarmHistory["Target"].asString();
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["Phones"].isNull())
|
||||
alarmHistoryObject.phones = pageBeanNodeAlarmHistoriesAlarmHistory["Phones"].asString();
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["Emails"].isNull())
|
||||
alarmHistoryObject.emails = pageBeanNodeAlarmHistoriesAlarmHistory["Emails"].asString();
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["AlarmTime"].isNull())
|
||||
alarmHistoryObject.alarmTime = std::stol(pageBeanNodeAlarmHistoriesAlarmHistory["AlarmTime"].asString());
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["AlarmType"].isNull())
|
||||
alarmHistoryObject.alarmType = std::stoi(pageBeanNodeAlarmHistoriesAlarmHistory["AlarmType"].asString());
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["AlarmResponseCode"].isNull())
|
||||
alarmHistoryObject.alarmResponseCode = std::stoi(pageBeanNodeAlarmHistoriesAlarmHistory["AlarmResponseCode"].asString());
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["AlarmContent"].isNull())
|
||||
alarmHistoryObject.alarmContent = pageBeanNodeAlarmHistoriesAlarmHistory["AlarmContent"].asString();
|
||||
if(!pageBeanNodeAlarmHistoriesAlarmHistory["AlarmSources"].isNull())
|
||||
alarmHistoryObject.alarmSources = pageBeanNodeAlarmHistoriesAlarmHistory["AlarmSources"].asString();
|
||||
pageBean_.alarmHistories.push_back(alarmHistoryObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SearchAlertHistoriesResult::PageBean SearchAlertHistoriesResult::getPageBean()const
|
||||
{
|
||||
return pageBean_;
|
||||
}
|
||||
|
||||
117
arms/src/model/SearchAlertRulesRequest.cc
Normal file
117
arms/src/model/SearchAlertRulesRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/arms/model/SearchAlertRulesRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SearchAlertRulesRequest;
|
||||
|
||||
SearchAlertRulesRequest::SearchAlertRulesRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SearchAlertRules")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchAlertRulesRequest::~SearchAlertRulesRequest()
|
||||
{}
|
||||
|
||||
std::string SearchAlertRulesRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void SearchAlertRulesRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
int SearchAlertRulesRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void SearchAlertRulesRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
std::string SearchAlertRulesRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void SearchAlertRulesRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
std::string SearchAlertRulesRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void SearchAlertRulesRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string SearchAlertRulesRequest::getTitle()const
|
||||
{
|
||||
return title_;
|
||||
}
|
||||
|
||||
void SearchAlertRulesRequest::setTitle(const std::string& title)
|
||||
{
|
||||
title_ = title;
|
||||
setParameter("Title", title);
|
||||
}
|
||||
|
||||
std::string SearchAlertRulesRequest::getType()const
|
||||
{
|
||||
return type_;
|
||||
}
|
||||
|
||||
void SearchAlertRulesRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string SearchAlertRulesRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SearchAlertRulesRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int SearchAlertRulesRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchAlertRulesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
149
arms/src/model/SearchAlertRulesResult.cc
Normal file
149
arms/src/model/SearchAlertRulesResult.cc
Normal file
@@ -0,0 +1,149 @@
|
||||
/*
|
||||
* 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/arms/model/SearchAlertRulesResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SearchAlertRulesResult::SearchAlertRulesResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchAlertRulesResult::SearchAlertRulesResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchAlertRulesResult::~SearchAlertRulesResult()
|
||||
{}
|
||||
|
||||
void SearchAlertRulesResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto pageBeanNode = value["PageBean"];
|
||||
if(!pageBeanNode["TotalCount"].isNull())
|
||||
pageBean_.totalCount = std::stoi(pageBeanNode["TotalCount"].asString());
|
||||
if(!pageBeanNode["PageNumber"].isNull())
|
||||
pageBean_.pageNumber = std::stoi(pageBeanNode["PageNumber"].asString());
|
||||
if(!pageBeanNode["PageSize"].isNull())
|
||||
pageBean_.pageSize = std::stoi(pageBeanNode["PageSize"].asString());
|
||||
auto allAlertRulesNode = pageBeanNode["AlertRules"]["AlertRule"];
|
||||
for (auto pageBeanNodeAlertRulesAlertRule : allAlertRulesNode)
|
||||
{
|
||||
PageBean::AlertRule alertRuleObject;
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertTitle"].isNull())
|
||||
alertRuleObject.alertTitle = pageBeanNodeAlertRulesAlertRule["AlertTitle"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertLevel"].isNull())
|
||||
alertRuleObject.alertLevel = pageBeanNodeAlertRulesAlertRule["AlertLevel"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertType"].isNull())
|
||||
alertRuleObject.alertType = std::stoi(pageBeanNodeAlertRulesAlertRule["AlertType"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["AlertVersion"].isNull())
|
||||
alertRuleObject.alertVersion = std::stoi(pageBeanNodeAlertRulesAlertRule["AlertVersion"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["Config"].isNull())
|
||||
alertRuleObject.config = pageBeanNodeAlertRulesAlertRule["Config"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["ContactGroupIdList"].isNull())
|
||||
alertRuleObject.contactGroupIdList = pageBeanNodeAlertRulesAlertRule["ContactGroupIdList"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["CreateTime"].isNull())
|
||||
alertRuleObject.createTime = std::stol(pageBeanNodeAlertRulesAlertRule["CreateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["Id"].isNull())
|
||||
alertRuleObject.id = std::stol(pageBeanNodeAlertRulesAlertRule["Id"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["RegionId"].isNull())
|
||||
alertRuleObject.regionId = pageBeanNodeAlertRulesAlertRule["RegionId"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["Status"].isNull())
|
||||
alertRuleObject.status = pageBeanNodeAlertRulesAlertRule["Status"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["TaskId"].isNull())
|
||||
alertRuleObject.taskId = std::stol(pageBeanNodeAlertRulesAlertRule["TaskId"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["TaskStatus"].isNull())
|
||||
alertRuleObject.taskStatus = pageBeanNodeAlertRulesAlertRule["TaskStatus"].asString();
|
||||
if(!pageBeanNodeAlertRulesAlertRule["UpdateTime"].isNull())
|
||||
alertRuleObject.updateTime = std::stol(pageBeanNodeAlertRulesAlertRule["UpdateTime"].asString());
|
||||
if(!pageBeanNodeAlertRulesAlertRule["UserId"].isNull())
|
||||
alertRuleObject.userId = pageBeanNodeAlertRulesAlertRule["UserId"].asString();
|
||||
auto alarmContextNode = value["AlarmContext"];
|
||||
if(!alarmContextNode["AlarmContentTemplate"].isNull())
|
||||
alertRuleObject.alarmContext.alarmContentTemplate = alarmContextNode["AlarmContentTemplate"].asString();
|
||||
if(!alarmContextNode["AlarmContentSubTitle"].isNull())
|
||||
alertRuleObject.alarmContext.alarmContentSubTitle = alarmContextNode["AlarmContentSubTitle"].asString();
|
||||
auto alertRule1Node = value["AlertRule"];
|
||||
if(!alertRule1Node["Operator"].isNull())
|
||||
alertRuleObject.alertRule1._operator = alertRule1Node["Operator"].asString();
|
||||
auto allRulesNode = alertRule1Node["Rules"]["Rule"];
|
||||
for (auto alertRule1NodeRulesRule : allRulesNode)
|
||||
{
|
||||
PageBean::AlertRule::AlertRule1::Rule ruleObject;
|
||||
if(!alertRule1NodeRulesRule["Aggregates"].isNull())
|
||||
ruleObject.aggregates = alertRule1NodeRulesRule["Aggregates"].asString();
|
||||
if(!alertRule1NodeRulesRule["Alias"].isNull())
|
||||
ruleObject.alias = alertRule1NodeRulesRule["Alias"].asString();
|
||||
if(!alertRule1NodeRulesRule["Measure"].isNull())
|
||||
ruleObject.measure = alertRule1NodeRulesRule["Measure"].asString();
|
||||
if(!alertRule1NodeRulesRule["NValue"].isNull())
|
||||
ruleObject.nValue = std::stoi(alertRule1NodeRulesRule["NValue"].asString());
|
||||
if(!alertRule1NodeRulesRule["Operator"].isNull())
|
||||
ruleObject._operator = alertRule1NodeRulesRule["Operator"].asString();
|
||||
if(!alertRule1NodeRulesRule["Value"].isNull())
|
||||
ruleObject.value = std::stof(alertRule1NodeRulesRule["Value"].asString());
|
||||
alertRuleObject.alertRule1.rules.push_back(ruleObject);
|
||||
}
|
||||
auto metricParamNode = value["MetricParam"];
|
||||
if(!metricParamNode["AppGroupId"].isNull())
|
||||
alertRuleObject.metricParam.appGroupId = metricParamNode["AppGroupId"].asString();
|
||||
if(!metricParamNode["AppId"].isNull())
|
||||
alertRuleObject.metricParam.appId = metricParamNode["AppId"].asString();
|
||||
if(!metricParamNode["Pid"].isNull())
|
||||
alertRuleObject.metricParam.pid = metricParamNode["Pid"].asString();
|
||||
if(!metricParamNode["Type"].isNull())
|
||||
alertRuleObject.metricParam.type = metricParamNode["Type"].asString();
|
||||
auto allDimensionsNode = metricParamNode["Dimensions"]["Dimension"];
|
||||
for (auto metricParamNodeDimensionsDimension : allDimensionsNode)
|
||||
{
|
||||
PageBean::AlertRule::MetricParam::Dimension dimensionObject;
|
||||
if(!metricParamNodeDimensionsDimension["Key"].isNull())
|
||||
dimensionObject.key = metricParamNodeDimensionsDimension["Key"].asString();
|
||||
if(!metricParamNodeDimensionsDimension["Type"].isNull())
|
||||
dimensionObject.type = metricParamNodeDimensionsDimension["Type"].asString();
|
||||
if(!metricParamNodeDimensionsDimension["Value"].isNull())
|
||||
dimensionObject.value = metricParamNodeDimensionsDimension["Value"].asString();
|
||||
alertRuleObject.metricParam.dimensions.push_back(dimensionObject);
|
||||
}
|
||||
auto noticeNode = value["Notice"];
|
||||
if(!noticeNode["EndTime"].isNull())
|
||||
alertRuleObject.notice.endTime = std::stol(noticeNode["EndTime"].asString());
|
||||
if(!noticeNode["NoticeEndTime"].isNull())
|
||||
alertRuleObject.notice.noticeEndTime = std::stol(noticeNode["NoticeEndTime"].asString());
|
||||
if(!noticeNode["NoticeStartTime"].isNull())
|
||||
alertRuleObject.notice.noticeStartTime = std::stol(noticeNode["NoticeStartTime"].asString());
|
||||
if(!noticeNode["StartTime"].isNull())
|
||||
alertRuleObject.notice.startTime = std::stol(noticeNode["StartTime"].asString());
|
||||
auto allAlertWays = value["AlertWays"]["AlertWay"];
|
||||
for (auto value : allAlertWays)
|
||||
alertRuleObject.alertWays.push_back(value.asString());
|
||||
pageBean_.alertRules.push_back(alertRuleObject);
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
SearchAlertRulesResult::PageBean SearchAlertRulesResult::getPageBean()const
|
||||
{
|
||||
return pageBean_;
|
||||
}
|
||||
|
||||
150
arms/src/model/SearchEventsRequest.cc
Normal file
150
arms/src/model/SearchEventsRequest.cc
Normal file
@@ -0,0 +1,150 @@
|
||||
/*
|
||||
* 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/arms/model/SearchEventsRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SearchEventsRequest;
|
||||
|
||||
SearchEventsRequest::SearchEventsRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SearchEvents")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchEventsRequest::~SearchEventsRequest()
|
||||
{}
|
||||
|
||||
int SearchEventsRequest::getIsTrigger()const
|
||||
{
|
||||
return isTrigger_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setIsTrigger(int isTrigger)
|
||||
{
|
||||
isTrigger_ = isTrigger;
|
||||
setParameter("IsTrigger", std::to_string(isTrigger));
|
||||
}
|
||||
|
||||
std::string SearchEventsRequest::getAppType()const
|
||||
{
|
||||
return appType_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setAppType(const std::string& appType)
|
||||
{
|
||||
appType_ = appType;
|
||||
setParameter("AppType", appType);
|
||||
}
|
||||
|
||||
long SearchEventsRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string SearchEventsRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
int SearchEventsRequest::getCurrentPage()const
|
||||
{
|
||||
return currentPage_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setCurrentPage(int currentPage)
|
||||
{
|
||||
currentPage_ = currentPage;
|
||||
setParameter("CurrentPage", std::to_string(currentPage));
|
||||
}
|
||||
|
||||
long SearchEventsRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
std::string SearchEventsRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
int SearchEventsRequest::getAlertType()const
|
||||
{
|
||||
return alertType_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setAlertType(int alertType)
|
||||
{
|
||||
alertType_ = alertType;
|
||||
setParameter("AlertType", std::to_string(alertType));
|
||||
}
|
||||
|
||||
std::string SearchEventsRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
int SearchEventsRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
long SearchEventsRequest::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void SearchEventsRequest::setAlertId(long alertId)
|
||||
{
|
||||
alertId_ = alertId;
|
||||
setParameter("AlertId", std::to_string(alertId));
|
||||
}
|
||||
|
||||
88
arms/src/model/SearchEventsResult.cc
Normal file
88
arms/src/model/SearchEventsResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* 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/arms/model/SearchEventsResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SearchEventsResult::SearchEventsResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SearchEventsResult::SearchEventsResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SearchEventsResult::~SearchEventsResult()
|
||||
{}
|
||||
|
||||
void SearchEventsResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto pageBeanNode = value["PageBean"];
|
||||
if(!pageBeanNode["TotalCount"].isNull())
|
||||
pageBean_.totalCount = std::stoi(pageBeanNode["TotalCount"].asString());
|
||||
if(!pageBeanNode["PageNumber"].isNull())
|
||||
pageBean_.pageNumber = std::stoi(pageBeanNode["PageNumber"].asString());
|
||||
if(!pageBeanNode["PageSize"].isNull())
|
||||
pageBean_.pageSize = std::stoi(pageBeanNode["PageSize"].asString());
|
||||
auto allEventNode = pageBeanNode["Event"]["EventItem"];
|
||||
for (auto pageBeanNodeEventEventItem : allEventNode)
|
||||
{
|
||||
PageBean::EventItem eventItemObject;
|
||||
if(!pageBeanNodeEventEventItem["Id"].isNull())
|
||||
eventItemObject.id = std::stol(pageBeanNodeEventEventItem["Id"].asString());
|
||||
if(!pageBeanNodeEventEventItem["EventTime"].isNull())
|
||||
eventItemObject.eventTime = std::stol(pageBeanNodeEventEventItem["EventTime"].asString());
|
||||
if(!pageBeanNodeEventEventItem["AlertType"].isNull())
|
||||
eventItemObject.alertType = std::stoi(pageBeanNodeEventEventItem["AlertType"].asString());
|
||||
if(!pageBeanNodeEventEventItem["EventLevel"].isNull())
|
||||
eventItemObject.eventLevel = std::stoi(pageBeanNodeEventEventItem["EventLevel"].asString());
|
||||
if(!pageBeanNodeEventEventItem["Message"].isNull())
|
||||
eventItemObject.message = pageBeanNodeEventEventItem["Message"].asString();
|
||||
if(!pageBeanNodeEventEventItem["AlertId"].isNull())
|
||||
eventItemObject.alertId = std::stol(pageBeanNodeEventEventItem["AlertId"].asString());
|
||||
if(!pageBeanNodeEventEventItem["AlertName"].isNull())
|
||||
eventItemObject.alertName = pageBeanNodeEventEventItem["AlertName"].asString();
|
||||
if(!pageBeanNodeEventEventItem["AlertRule"].isNull())
|
||||
eventItemObject.alertRule = pageBeanNodeEventEventItem["AlertRule"].asString();
|
||||
auto allLinks = value["Links"]["Link"];
|
||||
for (auto value : allLinks)
|
||||
eventItemObject.links.push_back(value.asString());
|
||||
pageBean_.event.push_back(eventItemObject);
|
||||
}
|
||||
if(!value["IsTrigger"].isNull())
|
||||
isTrigger_ = std::stoi(value["IsTrigger"].asString());
|
||||
|
||||
}
|
||||
|
||||
SearchEventsResult::PageBean SearchEventsResult::getPageBean()const
|
||||
{
|
||||
return pageBean_;
|
||||
}
|
||||
|
||||
int SearchEventsResult::getIsTrigger()const
|
||||
{
|
||||
return isTrigger_;
|
||||
}
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::SearchRetcodeAppByPageRequest;
|
||||
|
||||
SearchRetcodeAppByPageRequest::SearchRetcodeAppByPageRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SearchRetcodeAppByPage")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchRetcodeAppByPageRequest::~SearchRetcodeAppByPageRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string SearchRetcodeAppByPageRequest::getRegionId()const
|
||||
void SearchRetcodeAppByPageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SearchRetcodeAppByPageRequest::getRetcodeAppName()const
|
||||
@@ -44,7 +46,7 @@ std::string SearchRetcodeAppByPageRequest::getRetcodeAppName()const
|
||||
void SearchRetcodeAppByPageRequest::setRetcodeAppName(const std::string& retcodeAppName)
|
||||
{
|
||||
retcodeAppName_ = retcodeAppName;
|
||||
setCoreParameter("RetcodeAppName", retcodeAppName);
|
||||
setParameter("RetcodeAppName", retcodeAppName);
|
||||
}
|
||||
|
||||
int SearchRetcodeAppByPageRequest::getPageSize()const
|
||||
@@ -55,7 +57,7 @@ int SearchRetcodeAppByPageRequest::getPageSize()const
|
||||
void SearchRetcodeAppByPageRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int SearchRetcodeAppByPageRequest::getPageNumber()const
|
||||
@@ -66,6 +68,6 @@ int SearchRetcodeAppByPageRequest::getPageNumber()const
|
||||
void SearchRetcodeAppByPageRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::SearchTraceAppByNameRequest;
|
||||
|
||||
SearchTraceAppByNameRequest::SearchTraceAppByNameRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByName")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchTraceAppByNameRequest::~SearchTraceAppByNameRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string SearchTraceAppByNameRequest::getRegionId()const
|
||||
void SearchTraceAppByNameRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SearchTraceAppByNameRequest::getTraceAppName()const
|
||||
@@ -44,6 +46,6 @@ std::string SearchTraceAppByNameRequest::getTraceAppName()const
|
||||
void SearchTraceAppByNameRequest::setTraceAppName(const std::string& traceAppName)
|
||||
{
|
||||
traceAppName_ = traceAppName;
|
||||
setCoreParameter("TraceAppName", traceAppName);
|
||||
setParameter("TraceAppName", traceAppName);
|
||||
}
|
||||
|
||||
|
||||
@@ -20,7 +20,9 @@ using AlibabaCloud::ARMS::Model::SearchTraceAppByPageRequest;
|
||||
|
||||
SearchTraceAppByPageRequest::SearchTraceAppByPageRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SearchTraceAppByPage")
|
||||
{}
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SearchTraceAppByPageRequest::~SearchTraceAppByPageRequest()
|
||||
{}
|
||||
@@ -33,7 +35,7 @@ std::string SearchTraceAppByPageRequest::getRegionId()const
|
||||
void SearchTraceAppByPageRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SearchTraceAppByPageRequest::getTraceAppName()const
|
||||
@@ -44,7 +46,7 @@ std::string SearchTraceAppByPageRequest::getTraceAppName()const
|
||||
void SearchTraceAppByPageRequest::setTraceAppName(const std::string& traceAppName)
|
||||
{
|
||||
traceAppName_ = traceAppName;
|
||||
setCoreParameter("TraceAppName", traceAppName);
|
||||
setParameter("TraceAppName", traceAppName);
|
||||
}
|
||||
|
||||
int SearchTraceAppByPageRequest::getPageSize()const
|
||||
@@ -55,7 +57,7 @@ int SearchTraceAppByPageRequest::getPageSize()const
|
||||
void SearchTraceAppByPageRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int SearchTraceAppByPageRequest::getPageNumber()const
|
||||
@@ -66,6 +68,6 @@ int SearchTraceAppByPageRequest::getPageNumber()const
|
||||
void SearchTraceAppByPageRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
|
||||
51
arms/src/model/SetRetcodeShareStatusRequest.cc
Normal file
51
arms/src/model/SetRetcodeShareStatusRequest.cc
Normal 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/arms/model/SetRetcodeShareStatusRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SetRetcodeShareStatusRequest;
|
||||
|
||||
SetRetcodeShareStatusRequest::SetRetcodeShareStatusRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SetRetcodeShareStatus")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SetRetcodeShareStatusRequest::~SetRetcodeShareStatusRequest()
|
||||
{}
|
||||
|
||||
std::string SetRetcodeShareStatusRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void SetRetcodeShareStatusRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
bool SetRetcodeShareStatusRequest::getStatus()const
|
||||
{
|
||||
return status_;
|
||||
}
|
||||
|
||||
void SetRetcodeShareStatusRequest::setStatus(bool status)
|
||||
{
|
||||
status_ = status;
|
||||
setParameter("Status", status ? "true" : "false");
|
||||
}
|
||||
|
||||
51
arms/src/model/SetRetcodeShareStatusResult.cc
Normal file
51
arms/src/model/SetRetcodeShareStatusResult.cc
Normal 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/arms/model/SetRetcodeShareStatusResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SetRetcodeShareStatusResult::SetRetcodeShareStatusResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SetRetcodeShareStatusResult::SetRetcodeShareStatusResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SetRetcodeShareStatusResult::~SetRetcodeShareStatusResult()
|
||||
{}
|
||||
|
||||
void SetRetcodeShareStatusResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool SetRetcodeShareStatusResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
62
arms/src/model/StartAlertRequest.cc
Normal file
62
arms/src/model/StartAlertRequest.cc
Normal 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/arms/model/StartAlertRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::StartAlertRequest;
|
||||
|
||||
StartAlertRequest::StartAlertRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "StartAlert")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StartAlertRequest::~StartAlertRequest()
|
||||
{}
|
||||
|
||||
std::string StartAlertRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StartAlertRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string StartAlertRequest::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void StartAlertRequest::setAlertId(const std::string& alertId)
|
||||
{
|
||||
alertId_ = alertId;
|
||||
setParameter("AlertId", alertId);
|
||||
}
|
||||
|
||||
std::string StartAlertRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void StartAlertRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/StartAlertResult.cc
Normal file
51
arms/src/model/StartAlertResult.cc
Normal 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/arms/model/StartAlertResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
StartAlertResult::StartAlertResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StartAlertResult::StartAlertResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StartAlertResult::~StartAlertResult()
|
||||
{}
|
||||
|
||||
void StartAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool StartAlertResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
62
arms/src/model/StopAlertRequest.cc
Normal file
62
arms/src/model/StopAlertRequest.cc
Normal 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/arms/model/StopAlertRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::StopAlertRequest;
|
||||
|
||||
StopAlertRequest::StopAlertRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "StopAlert")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
StopAlertRequest::~StopAlertRequest()
|
||||
{}
|
||||
|
||||
std::string StopAlertRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void StopAlertRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string StopAlertRequest::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void StopAlertRequest::setAlertId(const std::string& alertId)
|
||||
{
|
||||
alertId_ = alertId;
|
||||
setParameter("AlertId", alertId);
|
||||
}
|
||||
|
||||
std::string StopAlertRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void StopAlertRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
51
arms/src/model/StopAlertResult.cc
Normal file
51
arms/src/model/StopAlertResult.cc
Normal 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/arms/model/StopAlertResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
StopAlertResult::StopAlertResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
StopAlertResult::StopAlertResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
StopAlertResult::~StopAlertResult()
|
||||
{}
|
||||
|
||||
void StopAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool StopAlertResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
84
arms/src/model/UpdateAlertContactGroupRequest.cc
Normal file
84
arms/src/model/UpdateAlertContactGroupRequest.cc
Normal 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/arms/model/UpdateAlertContactGroupRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::UpdateAlertContactGroupRequest;
|
||||
|
||||
UpdateAlertContactGroupRequest::UpdateAlertContactGroupRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "UpdateAlertContactGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAlertContactGroupRequest::~UpdateAlertContactGroupRequest()
|
||||
{}
|
||||
|
||||
long UpdateAlertContactGroupRequest::getContactGroupId()const
|
||||
{
|
||||
return contactGroupId_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactGroupRequest::setContactGroupId(long contactGroupId)
|
||||
{
|
||||
contactGroupId_ = contactGroupId;
|
||||
setParameter("ContactGroupId", std::to_string(contactGroupId));
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactGroupRequest::getContactGroupName()const
|
||||
{
|
||||
return contactGroupName_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactGroupRequest::setContactGroupName(const std::string& contactGroupName)
|
||||
{
|
||||
contactGroupName_ = contactGroupName;
|
||||
setParameter("ContactGroupName", contactGroupName);
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactGroupRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactGroupRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactGroupRequest::getContactIds()const
|
||||
{
|
||||
return contactIds_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactGroupRequest::setContactIds(const std::string& contactIds)
|
||||
{
|
||||
contactIds_ = contactIds;
|
||||
setParameter("ContactIds", contactIds);
|
||||
}
|
||||
|
||||
51
arms/src/model/UpdateAlertContactGroupResult.cc
Normal file
51
arms/src/model/UpdateAlertContactGroupResult.cc
Normal 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/arms/model/UpdateAlertContactGroupResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
UpdateAlertContactGroupResult::UpdateAlertContactGroupResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAlertContactGroupResult::UpdateAlertContactGroupResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAlertContactGroupResult::~UpdateAlertContactGroupResult()
|
||||
{}
|
||||
|
||||
void UpdateAlertContactGroupResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool UpdateAlertContactGroupResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
117
arms/src/model/UpdateAlertContactRequest.cc
Normal file
117
arms/src/model/UpdateAlertContactRequest.cc
Normal file
@@ -0,0 +1,117 @@
|
||||
/*
|
||||
* 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/arms/model/UpdateAlertContactRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::UpdateAlertContactRequest;
|
||||
|
||||
UpdateAlertContactRequest::UpdateAlertContactRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "UpdateAlertContact")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAlertContactRequest::~UpdateAlertContactRequest()
|
||||
{}
|
||||
|
||||
long UpdateAlertContactRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactRequest::setContactId(long contactId)
|
||||
{
|
||||
contactId_ = contactId;
|
||||
setParameter("ContactId", std::to_string(contactId));
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactRequest::getPhoneNum()const
|
||||
{
|
||||
return phoneNum_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactRequest::setPhoneNum(const std::string& phoneNum)
|
||||
{
|
||||
phoneNum_ = phoneNum;
|
||||
setParameter("PhoneNum", phoneNum);
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactRequest::getContactName()const
|
||||
{
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactRequest::getDingRobotWebhookUrl()const
|
||||
{
|
||||
return dingRobotWebhookUrl_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactRequest::setDingRobotWebhookUrl(const std::string& dingRobotWebhookUrl)
|
||||
{
|
||||
dingRobotWebhookUrl_ = dingRobotWebhookUrl;
|
||||
setParameter("DingRobotWebhookUrl", dingRobotWebhookUrl);
|
||||
}
|
||||
|
||||
std::string UpdateAlertContactRequest::getEmail()const
|
||||
{
|
||||
return email_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactRequest::setEmail(const std::string& email)
|
||||
{
|
||||
email_ = email;
|
||||
setParameter("Email", email);
|
||||
}
|
||||
|
||||
bool UpdateAlertContactRequest::getSystemNoc()const
|
||||
{
|
||||
return systemNoc_;
|
||||
}
|
||||
|
||||
void UpdateAlertContactRequest::setSystemNoc(bool systemNoc)
|
||||
{
|
||||
systemNoc_ = systemNoc;
|
||||
setParameter("SystemNoc", systemNoc ? "true" : "false");
|
||||
}
|
||||
|
||||
51
arms/src/model/UpdateAlertContactResult.cc
Normal file
51
arms/src/model/UpdateAlertContactResult.cc
Normal 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/arms/model/UpdateAlertContactResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
UpdateAlertContactResult::UpdateAlertContactResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAlertContactResult::UpdateAlertContactResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAlertContactResult::~UpdateAlertContactResult()
|
||||
{}
|
||||
|
||||
void UpdateAlertContactResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["IsSuccess"].isNull())
|
||||
isSuccess_ = value["IsSuccess"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
bool UpdateAlertContactResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
95
arms/src/model/UpdateAlertRuleRequest.cc
Normal file
95
arms/src/model/UpdateAlertRuleRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* 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/arms/model/UpdateAlertRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::UpdateAlertRuleRequest;
|
||||
|
||||
UpdateAlertRuleRequest::UpdateAlertRuleRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "UpdateAlertRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateAlertRuleRequest::~UpdateAlertRuleRequest()
|
||||
{}
|
||||
|
||||
bool UpdateAlertRuleRequest::getIsAutoStart()const
|
||||
{
|
||||
return isAutoStart_;
|
||||
}
|
||||
|
||||
void UpdateAlertRuleRequest::setIsAutoStart(bool isAutoStart)
|
||||
{
|
||||
isAutoStart_ = isAutoStart;
|
||||
setParameter("IsAutoStart", isAutoStart ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string UpdateAlertRuleRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void UpdateAlertRuleRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string UpdateAlertRuleRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateAlertRuleRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string UpdateAlertRuleRequest::getContactGroupIds()const
|
||||
{
|
||||
return contactGroupIds_;
|
||||
}
|
||||
|
||||
void UpdateAlertRuleRequest::setContactGroupIds(const std::string& contactGroupIds)
|
||||
{
|
||||
contactGroupIds_ = contactGroupIds;
|
||||
setParameter("ContactGroupIds", contactGroupIds);
|
||||
}
|
||||
|
||||
long UpdateAlertRuleRequest::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
void UpdateAlertRuleRequest::setAlertId(long alertId)
|
||||
{
|
||||
alertId_ = alertId;
|
||||
setParameter("AlertId", std::to_string(alertId));
|
||||
}
|
||||
|
||||
std::string UpdateAlertRuleRequest::getTemplageAlertConfig()const
|
||||
{
|
||||
return templageAlertConfig_;
|
||||
}
|
||||
|
||||
void UpdateAlertRuleRequest::setTemplageAlertConfig(const std::string& templageAlertConfig)
|
||||
{
|
||||
templageAlertConfig_ = templageAlertConfig;
|
||||
setParameter("TemplageAlertConfig", templageAlertConfig);
|
||||
}
|
||||
|
||||
58
arms/src/model/UpdateAlertRuleResult.cc
Normal file
58
arms/src/model/UpdateAlertRuleResult.cc
Normal 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/arms/model/UpdateAlertRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
UpdateAlertRuleResult::UpdateAlertRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateAlertRuleResult::UpdateAlertRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateAlertRuleResult::~UpdateAlertRuleResult()
|
||||
{}
|
||||
|
||||
void UpdateAlertRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Data"].isNull())
|
||||
data_ = value["Data"].asString();
|
||||
if(!value["AlertId"].isNull())
|
||||
alertId_ = std::stol(value["AlertId"].asString());
|
||||
|
||||
}
|
||||
|
||||
long UpdateAlertRuleResult::getAlertId()const
|
||||
{
|
||||
return alertId_;
|
||||
}
|
||||
|
||||
std::string UpdateAlertRuleResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user