Add SaveTraceAppConfig api.
This commit is contained in:
@@ -1,3 +1,6 @@
|
||||
2020-10-15 Version: patch
|
||||
- Add SaveTraceAppConfig api.
|
||||
|
||||
2020-10-15 Version: patch
|
||||
- Generated 2018-06-01 for `dataworks-public`.
|
||||
|
||||
|
||||
@@ -37,6 +37,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/CreateAlertContactGroupResult.h
|
||||
include/alibabacloud/arms/model/CreateRetcodeAppRequest.h
|
||||
include/alibabacloud/arms/model/CreateRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/CreateWehookRequest.h
|
||||
include/alibabacloud/arms/model/CreateWehookResult.h
|
||||
include/alibabacloud/arms/model/DeleteAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/DeleteAlertContactResult.h
|
||||
include/alibabacloud/arms/model/DeleteAlertContactGroupRequest.h
|
||||
@@ -87,6 +89,8 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/QueryMetricResult.h
|
||||
include/alibabacloud/arms/model/QueryMetricByPageRequest.h
|
||||
include/alibabacloud/arms/model/QueryMetricByPageResult.h
|
||||
include/alibabacloud/arms/model/SaveTraceAppConfigRequest.h
|
||||
include/alibabacloud/arms/model/SaveTraceAppConfigResult.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactResult.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactGroupRequest.h
|
||||
@@ -118,7 +122,9 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/UpdateAlertContactGroupRequest.h
|
||||
include/alibabacloud/arms/model/UpdateAlertContactGroupResult.h
|
||||
include/alibabacloud/arms/model/UpdateAlertRuleRequest.h
|
||||
include/alibabacloud/arms/model/UpdateAlertRuleResult.h )
|
||||
include/alibabacloud/arms/model/UpdateAlertRuleResult.h
|
||||
include/alibabacloud/arms/model/UpdateWebhookRequest.h
|
||||
include/alibabacloud/arms/model/UpdateWebhookResult.h )
|
||||
|
||||
set(arms_src
|
||||
src/ARMSClient.cc
|
||||
@@ -138,6 +144,8 @@ set(arms_src
|
||||
src/model/CreateAlertContactGroupResult.cc
|
||||
src/model/CreateRetcodeAppRequest.cc
|
||||
src/model/CreateRetcodeAppResult.cc
|
||||
src/model/CreateWehookRequest.cc
|
||||
src/model/CreateWehookResult.cc
|
||||
src/model/DeleteAlertContactRequest.cc
|
||||
src/model/DeleteAlertContactResult.cc
|
||||
src/model/DeleteAlertContactGroupRequest.cc
|
||||
@@ -188,6 +196,8 @@ set(arms_src
|
||||
src/model/QueryMetricResult.cc
|
||||
src/model/QueryMetricByPageRequest.cc
|
||||
src/model/QueryMetricByPageResult.cc
|
||||
src/model/SaveTraceAppConfigRequest.cc
|
||||
src/model/SaveTraceAppConfigResult.cc
|
||||
src/model/SearchAlertContactRequest.cc
|
||||
src/model/SearchAlertContactResult.cc
|
||||
src/model/SearchAlertContactGroupRequest.cc
|
||||
@@ -219,7 +229,9 @@ set(arms_src
|
||||
src/model/UpdateAlertContactGroupRequest.cc
|
||||
src/model/UpdateAlertContactGroupResult.cc
|
||||
src/model/UpdateAlertRuleRequest.cc
|
||||
src/model/UpdateAlertRuleResult.cc )
|
||||
src/model/UpdateAlertRuleResult.cc
|
||||
src/model/UpdateWebhookRequest.cc
|
||||
src/model/UpdateWebhookResult.cc )
|
||||
|
||||
add_library(arms ${LIB_TYPE}
|
||||
${arms_public_header}
|
||||
|
||||
@@ -38,6 +38,8 @@
|
||||
#include "model/CreateAlertContactGroupResult.h"
|
||||
#include "model/CreateRetcodeAppRequest.h"
|
||||
#include "model/CreateRetcodeAppResult.h"
|
||||
#include "model/CreateWehookRequest.h"
|
||||
#include "model/CreateWehookResult.h"
|
||||
#include "model/DeleteAlertContactRequest.h"
|
||||
#include "model/DeleteAlertContactResult.h"
|
||||
#include "model/DeleteAlertContactGroupRequest.h"
|
||||
@@ -88,6 +90,8 @@
|
||||
#include "model/QueryMetricResult.h"
|
||||
#include "model/QueryMetricByPageRequest.h"
|
||||
#include "model/QueryMetricByPageResult.h"
|
||||
#include "model/SaveTraceAppConfigRequest.h"
|
||||
#include "model/SaveTraceAppConfigResult.h"
|
||||
#include "model/SearchAlertContactRequest.h"
|
||||
#include "model/SearchAlertContactResult.h"
|
||||
#include "model/SearchAlertContactGroupRequest.h"
|
||||
@@ -120,6 +124,8 @@
|
||||
#include "model/UpdateAlertContactGroupResult.h"
|
||||
#include "model/UpdateAlertRuleRequest.h"
|
||||
#include "model/UpdateAlertRuleResult.h"
|
||||
#include "model/UpdateWebhookRequest.h"
|
||||
#include "model/UpdateWebhookResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -153,6 +159,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateRetcodeAppResult> CreateRetcodeAppOutcome;
|
||||
typedef std::future<CreateRetcodeAppOutcome> CreateRetcodeAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateRetcodeAppRequest&, const CreateRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateRetcodeAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateWehookResult> CreateWehookOutcome;
|
||||
typedef std::future<CreateWehookOutcome> CreateWehookOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::CreateWehookRequest&, const CreateWehookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateWehookAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteAlertContactResult> DeleteAlertContactOutcome;
|
||||
typedef std::future<DeleteAlertContactOutcome> DeleteAlertContactOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteAlertContactRequest&, const DeleteAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAlertContactAsyncHandler;
|
||||
@@ -228,6 +237,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryMetricByPageResult> QueryMetricByPageOutcome;
|
||||
typedef std::future<QueryMetricByPageOutcome> QueryMetricByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::QueryMetricByPageRequest&, const QueryMetricByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryMetricByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SaveTraceAppConfigResult> SaveTraceAppConfigOutcome;
|
||||
typedef std::future<SaveTraceAppConfigOutcome> SaveTraceAppConfigOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SaveTraceAppConfigRequest&, const SaveTraceAppConfigOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SaveTraceAppConfigAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchAlertContactResult> SearchAlertContactOutcome;
|
||||
typedef std::future<SearchAlertContactOutcome> SearchAlertContactOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchAlertContactRequest&, const SearchAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchAlertContactAsyncHandler;
|
||||
@@ -276,6 +288,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::UpdateAlertRuleResult> UpdateAlertRuleOutcome;
|
||||
typedef std::future<UpdateAlertRuleOutcome> UpdateAlertRuleOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::UpdateAlertRuleRequest&, const UpdateAlertRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAlertRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateWebhookResult> UpdateWebhookOutcome;
|
||||
typedef std::future<UpdateWebhookOutcome> UpdateWebhookOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::UpdateWebhookRequest&, const UpdateWebhookOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateWebhookAsyncHandler;
|
||||
|
||||
ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -305,6 +320,9 @@ namespace AlibabaCloud
|
||||
CreateRetcodeAppOutcome createRetcodeApp(const Model::CreateRetcodeAppRequest &request)const;
|
||||
void createRetcodeAppAsync(const Model::CreateRetcodeAppRequest& request, const CreateRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateRetcodeAppOutcomeCallable createRetcodeAppCallable(const Model::CreateRetcodeAppRequest& request) const;
|
||||
CreateWehookOutcome createWehook(const Model::CreateWehookRequest &request)const;
|
||||
void createWehookAsync(const Model::CreateWehookRequest& request, const CreateWehookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateWehookOutcomeCallable createWehookCallable(const Model::CreateWehookRequest& request) const;
|
||||
DeleteAlertContactOutcome deleteAlertContact(const Model::DeleteAlertContactRequest &request)const;
|
||||
void deleteAlertContactAsync(const Model::DeleteAlertContactRequest& request, const DeleteAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAlertContactOutcomeCallable deleteAlertContactCallable(const Model::DeleteAlertContactRequest& request) const;
|
||||
@@ -380,6 +398,9 @@ namespace AlibabaCloud
|
||||
QueryMetricByPageOutcome queryMetricByPage(const Model::QueryMetricByPageRequest &request)const;
|
||||
void queryMetricByPageAsync(const Model::QueryMetricByPageRequest& request, const QueryMetricByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryMetricByPageOutcomeCallable queryMetricByPageCallable(const Model::QueryMetricByPageRequest& request) const;
|
||||
SaveTraceAppConfigOutcome saveTraceAppConfig(const Model::SaveTraceAppConfigRequest &request)const;
|
||||
void saveTraceAppConfigAsync(const Model::SaveTraceAppConfigRequest& request, const SaveTraceAppConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SaveTraceAppConfigOutcomeCallable saveTraceAppConfigCallable(const Model::SaveTraceAppConfigRequest& request) const;
|
||||
SearchAlertContactOutcome searchAlertContact(const Model::SearchAlertContactRequest &request)const;
|
||||
void searchAlertContactAsync(const Model::SearchAlertContactRequest& request, const SearchAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchAlertContactOutcomeCallable searchAlertContactCallable(const Model::SearchAlertContactRequest& request) const;
|
||||
@@ -428,6 +449,9 @@ namespace AlibabaCloud
|
||||
UpdateAlertRuleOutcome updateAlertRule(const Model::UpdateAlertRuleRequest &request)const;
|
||||
void updateAlertRuleAsync(const Model::UpdateAlertRuleRequest& request, const UpdateAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAlertRuleOutcomeCallable updateAlertRuleCallable(const Model::UpdateAlertRuleRequest& request) const;
|
||||
UpdateWebhookOutcome updateWebhook(const Model::UpdateWebhookRequest &request)const;
|
||||
void updateWebhookAsync(const Model::UpdateWebhookRequest& request, const UpdateWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateWebhookOutcomeCallable updateWebhookCallable(const Model::UpdateWebhookRequest& request) const;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
69
arms/include/alibabacloud/arms/model/CreateWehookRequest.h
Normal file
69
arms/include/alibabacloud/arms/model/CreateWehookRequest.h
Normal file
@@ -0,0 +1,69 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEWEHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CREATEWEHOOKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT CreateWehookRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateWehookRequest();
|
||||
~CreateWehookRequest();
|
||||
|
||||
std::string getHeaders()const;
|
||||
void setHeaders(const std::string& headers);
|
||||
std::string getMethod()const;
|
||||
void setMethod(const std::string& method);
|
||||
std::string getParams()const;
|
||||
void setParams(const std::string& params);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getBody()const;
|
||||
void setBody(const std::string& body);
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string headers_;
|
||||
std::string method_;
|
||||
std::string params_;
|
||||
std::string proxyUserId_;
|
||||
std::string body_;
|
||||
std::string url_;
|
||||
std::string contactName_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEWEHOOKREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/CreateWehookResult.h
Normal file
51
arms/include/alibabacloud/arms/model/CreateWehookResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_CREATEWEHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_CREATEWEHOOKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT CreateWehookResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateWehookResult();
|
||||
explicit CreateWehookResult(const std::string &payload);
|
||||
~CreateWehookResult();
|
||||
std::string getContactId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string contactId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_CREATEWEHOOKRESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* 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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SAVETRACEAPPCONFIGREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SAVETRACEAPPCONFIGREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SaveTraceAppConfigRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Settings
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
|
||||
public:
|
||||
SaveTraceAppConfigRequest();
|
||||
~SaveTraceAppConfigRequest();
|
||||
|
||||
std::vector<Settings> getSettings()const;
|
||||
void setSettings(const std::vector<Settings>& settings);
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
|
||||
private:
|
||||
std::vector<Settings> settings_;
|
||||
std::string pid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SAVETRACEAPPCONFIGREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_SAVETRACEAPPCONFIGRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SAVETRACEAPPCONFIGRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT SaveTraceAppConfigResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SaveTraceAppConfigResult();
|
||||
explicit SaveTraceAppConfigResult(const std::string &payload);
|
||||
~SaveTraceAppConfigResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SAVETRACEAPPCONFIGRESULT_H_
|
||||
@@ -35,23 +35,29 @@ namespace AlibabaCloud
|
||||
SearchAlertContactGroupRequest();
|
||||
~SearchAlertContactGroupRequest();
|
||||
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getContactId()const;
|
||||
void setContactId(long contactId);
|
||||
bool getIsDetail()const;
|
||||
void setIsDetail(bool isDetail);
|
||||
std::string getContactGroupName()const;
|
||||
void setContactGroupName(const std::string& contactGroupName);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getContactGroupIds()const;
|
||||
void setContactGroupIds(const std::string& contactGroupIds);
|
||||
|
||||
private:
|
||||
std::string contactName_;
|
||||
std::string regionId_;
|
||||
long contactId_;
|
||||
bool isDetail_;
|
||||
std::string contactGroupName_;
|
||||
std::string proxyUserId_;
|
||||
std::string contactName_;
|
||||
std::string regionId_;
|
||||
std::string contactGroupIds_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setCurrentPage(const std::string& currentPage);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getContactIds()const;
|
||||
void setContactIds(const std::string& contactIds);
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
std::string getPhone()const;
|
||||
@@ -53,6 +55,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string currentPage_;
|
||||
std::string proxyUserId_;
|
||||
std::string contactIds_;
|
||||
std::string contactName_;
|
||||
std::string phone_;
|
||||
std::string regionId_;
|
||||
|
||||
@@ -41,6 +41,7 @@ namespace AlibabaCloud
|
||||
std::string userId;
|
||||
long createTime;
|
||||
long updateTime;
|
||||
std::string webhook;
|
||||
long contactId;
|
||||
std::string dingRobot;
|
||||
std::string contactName;
|
||||
|
||||
72
arms/include/alibabacloud/arms/model/UpdateWebhookRequest.h
Normal file
72
arms/include/alibabacloud/arms/model/UpdateWebhookRequest.h
Normal file
@@ -0,0 +1,72 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_UPDATEWEBHOOKREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEWEBHOOKREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT UpdateWebhookRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateWebhookRequest();
|
||||
~UpdateWebhookRequest();
|
||||
|
||||
std::string getHeaders()const;
|
||||
void setHeaders(const std::string& headers);
|
||||
std::string getMethod()const;
|
||||
void setMethod(const std::string& method);
|
||||
long getContactId()const;
|
||||
void setContactId(long contactId);
|
||||
std::string getParams()const;
|
||||
void setParams(const std::string& params);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getBody()const;
|
||||
void setBody(const std::string& body);
|
||||
std::string getUrl()const;
|
||||
void setUrl(const std::string& url);
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string headers_;
|
||||
std::string method_;
|
||||
long contactId_;
|
||||
std::string params_;
|
||||
std::string proxyUserId_;
|
||||
std::string body_;
|
||||
std::string url_;
|
||||
std::string contactName_;
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEWEBHOOKREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/UpdateWebhookResult.h
Normal file
51
arms/include/alibabacloud/arms/model/UpdateWebhookResult.h
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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_UPDATEWEBHOOKRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEWEBHOOKRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/arms/ARMSExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace ARMS
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT UpdateWebhookResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateWebhookResult();
|
||||
explicit UpdateWebhookResult(const std::string &payload);
|
||||
~UpdateWebhookResult();
|
||||
bool getIsSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isSuccess_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEWEBHOOKRESULT_H_
|
||||
@@ -339,6 +339,42 @@ ARMSClient::CreateRetcodeAppOutcomeCallable ARMSClient::createRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::CreateWehookOutcome ARMSClient::createWehook(const CreateWehookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateWehookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateWehookOutcome(CreateWehookResult(outcome.result()));
|
||||
else
|
||||
return CreateWehookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::createWehookAsync(const CreateWehookRequest& request, const CreateWehookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createWehook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::CreateWehookOutcomeCallable ARMSClient::createWehookCallable(const CreateWehookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateWehookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createWehook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteAlertContactOutcome ARMSClient::deleteAlertContact(const DeleteAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1239,6 +1275,42 @@ ARMSClient::QueryMetricByPageOutcomeCallable ARMSClient::queryMetricByPageCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SaveTraceAppConfigOutcome ARMSClient::saveTraceAppConfig(const SaveTraceAppConfigRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SaveTraceAppConfigOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SaveTraceAppConfigOutcome(SaveTraceAppConfigResult(outcome.result()));
|
||||
else
|
||||
return SaveTraceAppConfigOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::saveTraceAppConfigAsync(const SaveTraceAppConfigRequest& request, const SaveTraceAppConfigAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, saveTraceAppConfig(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SaveTraceAppConfigOutcomeCallable ARMSClient::saveTraceAppConfigCallable(const SaveTraceAppConfigRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SaveTraceAppConfigOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->saveTraceAppConfig(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchAlertContactOutcome ARMSClient::searchAlertContact(const SearchAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1815,3 +1887,39 @@ ARMSClient::UpdateAlertRuleOutcomeCallable ARMSClient::updateAlertRuleCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::UpdateWebhookOutcome ARMSClient::updateWebhook(const UpdateWebhookRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateWebhookOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateWebhookOutcome(UpdateWebhookResult(outcome.result()));
|
||||
else
|
||||
return UpdateWebhookOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::updateWebhookAsync(const UpdateWebhookRequest& request, const UpdateWebhookAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateWebhook(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::UpdateWebhookOutcomeCallable ARMSClient::updateWebhookCallable(const UpdateWebhookRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateWebhookOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateWebhook(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
117
arms/src/model/CreateWehookRequest.cc
Normal file
117
arms/src/model/CreateWehookRequest.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/CreateWehookRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::CreateWehookRequest;
|
||||
|
||||
CreateWehookRequest::CreateWehookRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "CreateWehook")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateWehookRequest::~CreateWehookRequest()
|
||||
{}
|
||||
|
||||
std::string CreateWehookRequest::getHeaders()const
|
||||
{
|
||||
return headers_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setHeaders(const std::string& headers)
|
||||
{
|
||||
headers_ = headers;
|
||||
setParameter("Headers", headers);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getMethod()const
|
||||
{
|
||||
return method_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setMethod(const std::string& method)
|
||||
{
|
||||
method_ = method;
|
||||
setParameter("Method", method);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setParams(const std::string& params)
|
||||
{
|
||||
params_ = params;
|
||||
setParameter("Params", params);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setParameter("Url", url);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getContactName()const
|
||||
{
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
std::string CreateWehookRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateWehookRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
arms/src/model/CreateWehookResult.cc
Normal file
51
arms/src/model/CreateWehookResult.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/CreateWehookResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
CreateWehookResult::CreateWehookResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateWehookResult::CreateWehookResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateWehookResult::~CreateWehookResult()
|
||||
{}
|
||||
|
||||
void CreateWehookResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["ContactId"].isNull())
|
||||
contactId_ = value["ContactId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateWehookResult::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
56
arms/src/model/SaveTraceAppConfigRequest.cc
Normal file
56
arms/src/model/SaveTraceAppConfigRequest.cc
Normal file
@@ -0,0 +1,56 @@
|
||||
/*
|
||||
* 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/SaveTraceAppConfigRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::SaveTraceAppConfigRequest;
|
||||
|
||||
SaveTraceAppConfigRequest::SaveTraceAppConfigRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "SaveTraceAppConfig")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
SaveTraceAppConfigRequest::~SaveTraceAppConfigRequest()
|
||||
{}
|
||||
|
||||
std::vector<SaveTraceAppConfigRequest::Settings> SaveTraceAppConfigRequest::getSettings()const
|
||||
{
|
||||
return settings_;
|
||||
}
|
||||
|
||||
void SaveTraceAppConfigRequest::setSettings(const std::vector<Settings>& settings)
|
||||
{
|
||||
settings_ = settings;
|
||||
for(int dep1 = 0; dep1!= settings.size(); dep1++) {
|
||||
auto settingsObj = settings.at(dep1);
|
||||
std::string settingsObjStr = "Settings." + std::to_string(dep1 + 1);
|
||||
setParameter(settingsObjStr + ".Value", settingsObj.value);
|
||||
setParameter(settingsObjStr + ".Key", settingsObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
std::string SaveTraceAppConfigRequest::getPid()const
|
||||
{
|
||||
return pid_;
|
||||
}
|
||||
|
||||
void SaveTraceAppConfigRequest::setPid(const std::string& pid)
|
||||
{
|
||||
pid_ = pid;
|
||||
setParameter("Pid", pid);
|
||||
}
|
||||
|
||||
51
arms/src/model/SaveTraceAppConfigResult.cc
Normal file
51
arms/src/model/SaveTraceAppConfigResult.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/SaveTraceAppConfigResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
SaveTraceAppConfigResult::SaveTraceAppConfigResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
SaveTraceAppConfigResult::SaveTraceAppConfigResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
SaveTraceAppConfigResult::~SaveTraceAppConfigResult()
|
||||
{}
|
||||
|
||||
void SaveTraceAppConfigResult::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 SaveTraceAppConfigResult::getData()const
|
||||
{
|
||||
return data_;
|
||||
}
|
||||
|
||||
@@ -27,28 +27,6 @@ SearchAlertContactGroupRequest::SearchAlertContactGroupRequest() :
|
||||
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_;
|
||||
}
|
||||
|
||||
void SearchAlertContactGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
long SearchAlertContactGroupRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
@@ -60,6 +38,17 @@ void SearchAlertContactGroupRequest::setContactId(long contactId)
|
||||
setParameter("ContactId", std::to_string(contactId));
|
||||
}
|
||||
|
||||
bool SearchAlertContactGroupRequest::getIsDetail()const
|
||||
{
|
||||
return isDetail_;
|
||||
}
|
||||
|
||||
void SearchAlertContactGroupRequest::setIsDetail(bool isDetail)
|
||||
{
|
||||
isDetail_ = isDetail;
|
||||
setParameter("IsDetail", isDetail ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string SearchAlertContactGroupRequest::getContactGroupName()const
|
||||
{
|
||||
return contactGroupName_;
|
||||
@@ -82,3 +71,36 @@ void SearchAlertContactGroupRequest::setProxyUserId(const std::string& proxyUser
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
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_;
|
||||
}
|
||||
|
||||
void SearchAlertContactGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactGroupRequest::getContactGroupIds()const
|
||||
{
|
||||
return contactGroupIds_;
|
||||
}
|
||||
|
||||
void SearchAlertContactGroupRequest::setContactGroupIds(const std::string& contactGroupIds)
|
||||
{
|
||||
contactGroupIds_ = contactGroupIds;
|
||||
setParameter("ContactGroupIds", contactGroupIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -49,6 +49,17 @@ void SearchAlertContactRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactRequest::getContactIds()const
|
||||
{
|
||||
return contactIds_;
|
||||
}
|
||||
|
||||
void SearchAlertContactRequest::setContactIds(const std::string& contactIds)
|
||||
{
|
||||
contactIds_ = contactIds;
|
||||
setParameter("ContactIds", contactIds);
|
||||
}
|
||||
|
||||
std::string SearchAlertContactRequest::getContactName()const
|
||||
{
|
||||
return contactName_;
|
||||
|
||||
@@ -68,6 +68,8 @@ void SearchAlertContactResult::parse(const std::string &payload)
|
||||
contactObject.updateTime = std::stol(pageBeanNodeContactsContact["UpdateTime"].asString());
|
||||
if(!pageBeanNodeContactsContact["SystemNoc"].isNull())
|
||||
contactObject.systemNoc = pageBeanNodeContactsContact["SystemNoc"].asString() == "true";
|
||||
if(!pageBeanNodeContactsContact["Webhook"].isNull())
|
||||
contactObject.webhook = pageBeanNodeContactsContact["Webhook"].asString();
|
||||
pageBean_.contacts.push_back(contactObject);
|
||||
}
|
||||
|
||||
|
||||
128
arms/src/model/UpdateWebhookRequest.cc
Normal file
128
arms/src/model/UpdateWebhookRequest.cc
Normal file
@@ -0,0 +1,128 @@
|
||||
/*
|
||||
* 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/UpdateWebhookRequest.h>
|
||||
|
||||
using AlibabaCloud::ARMS::Model::UpdateWebhookRequest;
|
||||
|
||||
UpdateWebhookRequest::UpdateWebhookRequest() :
|
||||
RpcServiceRequest("arms", "2019-08-08", "UpdateWebhook")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
UpdateWebhookRequest::~UpdateWebhookRequest()
|
||||
{}
|
||||
|
||||
std::string UpdateWebhookRequest::getHeaders()const
|
||||
{
|
||||
return headers_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setHeaders(const std::string& headers)
|
||||
{
|
||||
headers_ = headers;
|
||||
setParameter("Headers", headers);
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getMethod()const
|
||||
{
|
||||
return method_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setMethod(const std::string& method)
|
||||
{
|
||||
method_ = method;
|
||||
setParameter("Method", method);
|
||||
}
|
||||
|
||||
long UpdateWebhookRequest::getContactId()const
|
||||
{
|
||||
return contactId_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setContactId(long contactId)
|
||||
{
|
||||
contactId_ = contactId;
|
||||
setParameter("ContactId", std::to_string(contactId));
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getParams()const
|
||||
{
|
||||
return params_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setParams(const std::string& params)
|
||||
{
|
||||
params_ = params;
|
||||
setParameter("Params", params);
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getProxyUserId()const
|
||||
{
|
||||
return proxyUserId_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setProxyUserId(const std::string& proxyUserId)
|
||||
{
|
||||
proxyUserId_ = proxyUserId;
|
||||
setParameter("ProxyUserId", proxyUserId);
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getBody()const
|
||||
{
|
||||
return body_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setBody(const std::string& body)
|
||||
{
|
||||
body_ = body;
|
||||
setParameter("Body", body);
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getUrl()const
|
||||
{
|
||||
return url_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setUrl(const std::string& url)
|
||||
{
|
||||
url_ = url;
|
||||
setParameter("Url", url);
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getContactName()const
|
||||
{
|
||||
return contactName_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
std::string UpdateWebhookRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void UpdateWebhookRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
51
arms/src/model/UpdateWebhookResult.cc
Normal file
51
arms/src/model/UpdateWebhookResult.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/UpdateWebhookResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::ARMS;
|
||||
using namespace AlibabaCloud::ARMS::Model;
|
||||
|
||||
UpdateWebhookResult::UpdateWebhookResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
UpdateWebhookResult::UpdateWebhookResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
UpdateWebhookResult::~UpdateWebhookResult()
|
||||
{}
|
||||
|
||||
void UpdateWebhookResult::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 UpdateWebhookResult::getIsSuccess()const
|
||||
{
|
||||
return isSuccess_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user