regenerate code
This commit is contained in:
@@ -27,10 +27,22 @@ 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/DeleteAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/DeleteAlertContactResult.h
|
||||
include/alibabacloud/arms/model/DeleteAlertContactGroupRequest.h
|
||||
include/alibabacloud/arms/model/DeleteAlertContactGroupResult.h
|
||||
include/alibabacloud/arms/model/DeleteAlertRulesRequest.h
|
||||
include/alibabacloud/arms/model/DeleteAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppRequest.h
|
||||
include/alibabacloud/arms/model/DeleteRetcodeAppResult.h
|
||||
include/alibabacloud/arms/model/GetRetcodeShareUrlRequest.h
|
||||
include/alibabacloud/arms/model/GetRetcodeShareUrlResult.h
|
||||
include/alibabacloud/arms/model/ImportAppAlertRulesRequest.h
|
||||
include/alibabacloud/arms/model/ImportAppAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesRequest.h
|
||||
include/alibabacloud/arms/model/ImportCustomAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/ListPromClustersRequest.h
|
||||
include/alibabacloud/arms/model/ListPromClustersResult.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsRequest.h
|
||||
include/alibabacloud/arms/model/ListRetcodeAppsResult.h
|
||||
include/alibabacloud/arms/model/ListTraceAppsRequest.h
|
||||
@@ -43,12 +55,30 @@ set(arms_public_header_model
|
||||
include/alibabacloud/arms/model/SearchAlertContactResult.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactGroupRequest.h
|
||||
include/alibabacloud/arms/model/SearchAlertContactGroupResult.h
|
||||
include/alibabacloud/arms/model/SearchAlertHistoriesRequest.h
|
||||
include/alibabacloud/arms/model/SearchAlertHistoriesResult.h
|
||||
include/alibabacloud/arms/model/SearchAlertRulesRequest.h
|
||||
include/alibabacloud/arms/model/SearchAlertRulesResult.h
|
||||
include/alibabacloud/arms/model/SearchEventsRequest.h
|
||||
include/alibabacloud/arms/model/SearchEventsResult.h
|
||||
include/alibabacloud/arms/model/SearchRetcodeAppByPageRequest.h
|
||||
include/alibabacloud/arms/model/SearchRetcodeAppByPageResult.h
|
||||
include/alibabacloud/arms/model/SearchTraceAppByNameRequest.h
|
||||
include/alibabacloud/arms/model/SearchTraceAppByNameResult.h
|
||||
include/alibabacloud/arms/model/SearchTraceAppByPageRequest.h
|
||||
include/alibabacloud/arms/model/SearchTraceAppByPageResult.h )
|
||||
include/alibabacloud/arms/model/SearchTraceAppByPageResult.h
|
||||
include/alibabacloud/arms/model/SetRetcodeShareStatusRequest.h
|
||||
include/alibabacloud/arms/model/SetRetcodeShareStatusResult.h
|
||||
include/alibabacloud/arms/model/StartAlertRequest.h
|
||||
include/alibabacloud/arms/model/StartAlertResult.h
|
||||
include/alibabacloud/arms/model/StopAlertRequest.h
|
||||
include/alibabacloud/arms/model/StopAlertResult.h
|
||||
include/alibabacloud/arms/model/UpdateAlertContactRequest.h
|
||||
include/alibabacloud/arms/model/UpdateAlertContactResult.h
|
||||
include/alibabacloud/arms/model/UpdateAlertContactGroupRequest.h
|
||||
include/alibabacloud/arms/model/UpdateAlertContactGroupResult.h
|
||||
include/alibabacloud/arms/model/UpdateAlertRuleRequest.h
|
||||
include/alibabacloud/arms/model/UpdateAlertRuleResult.h )
|
||||
|
||||
set(arms_src
|
||||
src/ARMSClient.cc
|
||||
@@ -58,10 +88,22 @@ set(arms_src
|
||||
src/model/CreateAlertContactGroupResult.cc
|
||||
src/model/CreateRetcodeAppRequest.cc
|
||||
src/model/CreateRetcodeAppResult.cc
|
||||
src/model/DeleteAlertContactRequest.cc
|
||||
src/model/DeleteAlertContactResult.cc
|
||||
src/model/DeleteAlertContactGroupRequest.cc
|
||||
src/model/DeleteAlertContactGroupResult.cc
|
||||
src/model/DeleteAlertRulesRequest.cc
|
||||
src/model/DeleteAlertRulesResult.cc
|
||||
src/model/DeleteRetcodeAppRequest.cc
|
||||
src/model/DeleteRetcodeAppResult.cc
|
||||
src/model/GetRetcodeShareUrlRequest.cc
|
||||
src/model/GetRetcodeShareUrlResult.cc
|
||||
src/model/ImportAppAlertRulesRequest.cc
|
||||
src/model/ImportAppAlertRulesResult.cc
|
||||
src/model/ImportCustomAlertRulesRequest.cc
|
||||
src/model/ImportCustomAlertRulesResult.cc
|
||||
src/model/ListPromClustersRequest.cc
|
||||
src/model/ListPromClustersResult.cc
|
||||
src/model/ListRetcodeAppsRequest.cc
|
||||
src/model/ListRetcodeAppsResult.cc
|
||||
src/model/ListTraceAppsRequest.cc
|
||||
@@ -74,12 +116,30 @@ set(arms_src
|
||||
src/model/SearchAlertContactResult.cc
|
||||
src/model/SearchAlertContactGroupRequest.cc
|
||||
src/model/SearchAlertContactGroupResult.cc
|
||||
src/model/SearchAlertHistoriesRequest.cc
|
||||
src/model/SearchAlertHistoriesResult.cc
|
||||
src/model/SearchAlertRulesRequest.cc
|
||||
src/model/SearchAlertRulesResult.cc
|
||||
src/model/SearchEventsRequest.cc
|
||||
src/model/SearchEventsResult.cc
|
||||
src/model/SearchRetcodeAppByPageRequest.cc
|
||||
src/model/SearchRetcodeAppByPageResult.cc
|
||||
src/model/SearchTraceAppByNameRequest.cc
|
||||
src/model/SearchTraceAppByNameResult.cc
|
||||
src/model/SearchTraceAppByPageRequest.cc
|
||||
src/model/SearchTraceAppByPageResult.cc )
|
||||
src/model/SearchTraceAppByPageResult.cc
|
||||
src/model/SetRetcodeShareStatusRequest.cc
|
||||
src/model/SetRetcodeShareStatusResult.cc
|
||||
src/model/StartAlertRequest.cc
|
||||
src/model/StartAlertResult.cc
|
||||
src/model/StopAlertRequest.cc
|
||||
src/model/StopAlertResult.cc
|
||||
src/model/UpdateAlertContactRequest.cc
|
||||
src/model/UpdateAlertContactResult.cc
|
||||
src/model/UpdateAlertContactGroupRequest.cc
|
||||
src/model/UpdateAlertContactGroupResult.cc
|
||||
src/model/UpdateAlertRuleRequest.cc
|
||||
src/model/UpdateAlertRuleResult.cc )
|
||||
|
||||
add_library(arms ${LIB_TYPE}
|
||||
${arms_public_header}
|
||||
|
||||
@@ -28,10 +28,22 @@
|
||||
#include "model/CreateAlertContactGroupResult.h"
|
||||
#include "model/CreateRetcodeAppRequest.h"
|
||||
#include "model/CreateRetcodeAppResult.h"
|
||||
#include "model/DeleteAlertContactRequest.h"
|
||||
#include "model/DeleteAlertContactResult.h"
|
||||
#include "model/DeleteAlertContactGroupRequest.h"
|
||||
#include "model/DeleteAlertContactGroupResult.h"
|
||||
#include "model/DeleteAlertRulesRequest.h"
|
||||
#include "model/DeleteAlertRulesResult.h"
|
||||
#include "model/DeleteRetcodeAppRequest.h"
|
||||
#include "model/DeleteRetcodeAppResult.h"
|
||||
#include "model/GetRetcodeShareUrlRequest.h"
|
||||
#include "model/GetRetcodeShareUrlResult.h"
|
||||
#include "model/ImportAppAlertRulesRequest.h"
|
||||
#include "model/ImportAppAlertRulesResult.h"
|
||||
#include "model/ImportCustomAlertRulesRequest.h"
|
||||
#include "model/ImportCustomAlertRulesResult.h"
|
||||
#include "model/ListPromClustersRequest.h"
|
||||
#include "model/ListPromClustersResult.h"
|
||||
#include "model/ListRetcodeAppsRequest.h"
|
||||
#include "model/ListRetcodeAppsResult.h"
|
||||
#include "model/ListTraceAppsRequest.h"
|
||||
@@ -44,12 +56,30 @@
|
||||
#include "model/SearchAlertContactResult.h"
|
||||
#include "model/SearchAlertContactGroupRequest.h"
|
||||
#include "model/SearchAlertContactGroupResult.h"
|
||||
#include "model/SearchAlertHistoriesRequest.h"
|
||||
#include "model/SearchAlertHistoriesResult.h"
|
||||
#include "model/SearchAlertRulesRequest.h"
|
||||
#include "model/SearchAlertRulesResult.h"
|
||||
#include "model/SearchEventsRequest.h"
|
||||
#include "model/SearchEventsResult.h"
|
||||
#include "model/SearchRetcodeAppByPageRequest.h"
|
||||
#include "model/SearchRetcodeAppByPageResult.h"
|
||||
#include "model/SearchTraceAppByNameRequest.h"
|
||||
#include "model/SearchTraceAppByNameResult.h"
|
||||
#include "model/SearchTraceAppByPageRequest.h"
|
||||
#include "model/SearchTraceAppByPageResult.h"
|
||||
#include "model/SetRetcodeShareStatusRequest.h"
|
||||
#include "model/SetRetcodeShareStatusResult.h"
|
||||
#include "model/StartAlertRequest.h"
|
||||
#include "model/StartAlertResult.h"
|
||||
#include "model/StopAlertRequest.h"
|
||||
#include "model/StopAlertResult.h"
|
||||
#include "model/UpdateAlertContactRequest.h"
|
||||
#include "model/UpdateAlertContactResult.h"
|
||||
#include "model/UpdateAlertContactGroupRequest.h"
|
||||
#include "model/UpdateAlertContactGroupResult.h"
|
||||
#include "model/UpdateAlertRuleRequest.h"
|
||||
#include "model/UpdateAlertRuleResult.h"
|
||||
|
||||
|
||||
namespace AlibabaCloud
|
||||
@@ -68,12 +98,30 @@ 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::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;
|
||||
typedef Outcome<Error, Model::DeleteAlertContactGroupResult> DeleteAlertContactGroupOutcome;
|
||||
typedef std::future<DeleteAlertContactGroupOutcome> DeleteAlertContactGroupOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteAlertContactGroupRequest&, const DeleteAlertContactGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAlertContactGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteAlertRulesResult> DeleteAlertRulesOutcome;
|
||||
typedef std::future<DeleteAlertRulesOutcome> DeleteAlertRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteAlertRulesRequest&, const DeleteAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteAlertRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteRetcodeAppResult> DeleteRetcodeAppOutcome;
|
||||
typedef std::future<DeleteRetcodeAppOutcome> DeleteRetcodeAppOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::DeleteRetcodeAppRequest&, const DeleteRetcodeAppOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteRetcodeAppAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetRetcodeShareUrlResult> GetRetcodeShareUrlOutcome;
|
||||
typedef std::future<GetRetcodeShareUrlOutcome> GetRetcodeShareUrlOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::GetRetcodeShareUrlRequest&, const GetRetcodeShareUrlOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetRetcodeShareUrlAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImportAppAlertRulesResult> ImportAppAlertRulesOutcome;
|
||||
typedef std::future<ImportAppAlertRulesOutcome> ImportAppAlertRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ImportAppAlertRulesRequest&, const ImportAppAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportAppAlertRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ImportCustomAlertRulesResult> ImportCustomAlertRulesOutcome;
|
||||
typedef std::future<ImportCustomAlertRulesOutcome> ImportCustomAlertRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ImportCustomAlertRulesRequest&, const ImportCustomAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ImportCustomAlertRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListPromClustersResult> ListPromClustersOutcome;
|
||||
typedef std::future<ListPromClustersOutcome> ListPromClustersOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListPromClustersRequest&, const ListPromClustersOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListPromClustersAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListRetcodeAppsResult> ListRetcodeAppsOutcome;
|
||||
typedef std::future<ListRetcodeAppsOutcome> ListRetcodeAppsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::ListRetcodeAppsRequest&, const ListRetcodeAppsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListRetcodeAppsAsyncHandler;
|
||||
@@ -92,6 +140,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SearchAlertContactGroupResult> SearchAlertContactGroupOutcome;
|
||||
typedef std::future<SearchAlertContactGroupOutcome> SearchAlertContactGroupOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchAlertContactGroupRequest&, const SearchAlertContactGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchAlertContactGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchAlertHistoriesResult> SearchAlertHistoriesOutcome;
|
||||
typedef std::future<SearchAlertHistoriesOutcome> SearchAlertHistoriesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchAlertHistoriesRequest&, const SearchAlertHistoriesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchAlertHistoriesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchAlertRulesResult> SearchAlertRulesOutcome;
|
||||
typedef std::future<SearchAlertRulesOutcome> SearchAlertRulesOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchAlertRulesRequest&, const SearchAlertRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchAlertRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchEventsResult> SearchEventsOutcome;
|
||||
typedef std::future<SearchEventsOutcome> SearchEventsOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchEventsRequest&, const SearchEventsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchEventsAsyncHandler;
|
||||
typedef Outcome<Error, Model::SearchRetcodeAppByPageResult> SearchRetcodeAppByPageOutcome;
|
||||
typedef std::future<SearchRetcodeAppByPageOutcome> SearchRetcodeAppByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchRetcodeAppByPageRequest&, const SearchRetcodeAppByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchRetcodeAppByPageAsyncHandler;
|
||||
@@ -101,6 +158,24 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::SearchTraceAppByPageResult> SearchTraceAppByPageOutcome;
|
||||
typedef std::future<SearchTraceAppByPageOutcome> SearchTraceAppByPageOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SearchTraceAppByPageRequest&, const SearchTraceAppByPageOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SearchTraceAppByPageAsyncHandler;
|
||||
typedef Outcome<Error, Model::SetRetcodeShareStatusResult> SetRetcodeShareStatusOutcome;
|
||||
typedef std::future<SetRetcodeShareStatusOutcome> SetRetcodeShareStatusOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::SetRetcodeShareStatusRequest&, const SetRetcodeShareStatusOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> SetRetcodeShareStatusAsyncHandler;
|
||||
typedef Outcome<Error, Model::StartAlertResult> StartAlertOutcome;
|
||||
typedef std::future<StartAlertOutcome> StartAlertOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::StartAlertRequest&, const StartAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StartAlertAsyncHandler;
|
||||
typedef Outcome<Error, Model::StopAlertResult> StopAlertOutcome;
|
||||
typedef std::future<StopAlertOutcome> StopAlertOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::StopAlertRequest&, const StopAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> StopAlertAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateAlertContactResult> UpdateAlertContactOutcome;
|
||||
typedef std::future<UpdateAlertContactOutcome> UpdateAlertContactOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::UpdateAlertContactRequest&, const UpdateAlertContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAlertContactAsyncHandler;
|
||||
typedef Outcome<Error, Model::UpdateAlertContactGroupResult> UpdateAlertContactGroupOutcome;
|
||||
typedef std::future<UpdateAlertContactGroupOutcome> UpdateAlertContactGroupOutcomeCallable;
|
||||
typedef std::function<void(const ARMSClient*, const Model::UpdateAlertContactGroupRequest&, const UpdateAlertContactGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> UpdateAlertContactGroupAsyncHandler;
|
||||
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;
|
||||
|
||||
ARMSClient(const Credentials &credentials, const ClientConfiguration &configuration);
|
||||
ARMSClient(const std::shared_ptr<CredentialsProvider> &credentialsProvider, const ClientConfiguration &configuration);
|
||||
@@ -115,12 +190,30 @@ 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;
|
||||
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;
|
||||
DeleteAlertContactGroupOutcome deleteAlertContactGroup(const Model::DeleteAlertContactGroupRequest &request)const;
|
||||
void deleteAlertContactGroupAsync(const Model::DeleteAlertContactGroupRequest& request, const DeleteAlertContactGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAlertContactGroupOutcomeCallable deleteAlertContactGroupCallable(const Model::DeleteAlertContactGroupRequest& request) const;
|
||||
DeleteAlertRulesOutcome deleteAlertRules(const Model::DeleteAlertRulesRequest &request)const;
|
||||
void deleteAlertRulesAsync(const Model::DeleteAlertRulesRequest& request, const DeleteAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteAlertRulesOutcomeCallable deleteAlertRulesCallable(const Model::DeleteAlertRulesRequest& request) const;
|
||||
DeleteRetcodeAppOutcome deleteRetcodeApp(const Model::DeleteRetcodeAppRequest &request)const;
|
||||
void deleteRetcodeAppAsync(const Model::DeleteRetcodeAppRequest& request, const DeleteRetcodeAppAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteRetcodeAppOutcomeCallable deleteRetcodeAppCallable(const Model::DeleteRetcodeAppRequest& request) const;
|
||||
GetRetcodeShareUrlOutcome getRetcodeShareUrl(const Model::GetRetcodeShareUrlRequest &request)const;
|
||||
void getRetcodeShareUrlAsync(const Model::GetRetcodeShareUrlRequest& request, const GetRetcodeShareUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetRetcodeShareUrlOutcomeCallable getRetcodeShareUrlCallable(const Model::GetRetcodeShareUrlRequest& request) const;
|
||||
ImportAppAlertRulesOutcome importAppAlertRules(const Model::ImportAppAlertRulesRequest &request)const;
|
||||
void importAppAlertRulesAsync(const Model::ImportAppAlertRulesRequest& request, const ImportAppAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImportAppAlertRulesOutcomeCallable importAppAlertRulesCallable(const Model::ImportAppAlertRulesRequest& request) const;
|
||||
ImportCustomAlertRulesOutcome importCustomAlertRules(const Model::ImportCustomAlertRulesRequest &request)const;
|
||||
void importCustomAlertRulesAsync(const Model::ImportCustomAlertRulesRequest& request, const ImportCustomAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ImportCustomAlertRulesOutcomeCallable importCustomAlertRulesCallable(const Model::ImportCustomAlertRulesRequest& request) const;
|
||||
ListPromClustersOutcome listPromClusters(const Model::ListPromClustersRequest &request)const;
|
||||
void listPromClustersAsync(const Model::ListPromClustersRequest& request, const ListPromClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListPromClustersOutcomeCallable listPromClustersCallable(const Model::ListPromClustersRequest& request) const;
|
||||
ListRetcodeAppsOutcome listRetcodeApps(const Model::ListRetcodeAppsRequest &request)const;
|
||||
void listRetcodeAppsAsync(const Model::ListRetcodeAppsRequest& request, const ListRetcodeAppsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListRetcodeAppsOutcomeCallable listRetcodeAppsCallable(const Model::ListRetcodeAppsRequest& request) const;
|
||||
@@ -139,6 +232,15 @@ namespace AlibabaCloud
|
||||
SearchAlertContactGroupOutcome searchAlertContactGroup(const Model::SearchAlertContactGroupRequest &request)const;
|
||||
void searchAlertContactGroupAsync(const Model::SearchAlertContactGroupRequest& request, const SearchAlertContactGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchAlertContactGroupOutcomeCallable searchAlertContactGroupCallable(const Model::SearchAlertContactGroupRequest& request) const;
|
||||
SearchAlertHistoriesOutcome searchAlertHistories(const Model::SearchAlertHistoriesRequest &request)const;
|
||||
void searchAlertHistoriesAsync(const Model::SearchAlertHistoriesRequest& request, const SearchAlertHistoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchAlertHistoriesOutcomeCallable searchAlertHistoriesCallable(const Model::SearchAlertHistoriesRequest& request) const;
|
||||
SearchAlertRulesOutcome searchAlertRules(const Model::SearchAlertRulesRequest &request)const;
|
||||
void searchAlertRulesAsync(const Model::SearchAlertRulesRequest& request, const SearchAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchAlertRulesOutcomeCallable searchAlertRulesCallable(const Model::SearchAlertRulesRequest& request) const;
|
||||
SearchEventsOutcome searchEvents(const Model::SearchEventsRequest &request)const;
|
||||
void searchEventsAsync(const Model::SearchEventsRequest& request, const SearchEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchEventsOutcomeCallable searchEventsCallable(const Model::SearchEventsRequest& request) const;
|
||||
SearchRetcodeAppByPageOutcome searchRetcodeAppByPage(const Model::SearchRetcodeAppByPageRequest &request)const;
|
||||
void searchRetcodeAppByPageAsync(const Model::SearchRetcodeAppByPageRequest& request, const SearchRetcodeAppByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchRetcodeAppByPageOutcomeCallable searchRetcodeAppByPageCallable(const Model::SearchRetcodeAppByPageRequest& request) const;
|
||||
@@ -148,6 +250,24 @@ namespace AlibabaCloud
|
||||
SearchTraceAppByPageOutcome searchTraceAppByPage(const Model::SearchTraceAppByPageRequest &request)const;
|
||||
void searchTraceAppByPageAsync(const Model::SearchTraceAppByPageRequest& request, const SearchTraceAppByPageAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SearchTraceAppByPageOutcomeCallable searchTraceAppByPageCallable(const Model::SearchTraceAppByPageRequest& request) const;
|
||||
SetRetcodeShareStatusOutcome setRetcodeShareStatus(const Model::SetRetcodeShareStatusRequest &request)const;
|
||||
void setRetcodeShareStatusAsync(const Model::SetRetcodeShareStatusRequest& request, const SetRetcodeShareStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
SetRetcodeShareStatusOutcomeCallable setRetcodeShareStatusCallable(const Model::SetRetcodeShareStatusRequest& request) const;
|
||||
StartAlertOutcome startAlert(const Model::StartAlertRequest &request)const;
|
||||
void startAlertAsync(const Model::StartAlertRequest& request, const StartAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StartAlertOutcomeCallable startAlertCallable(const Model::StartAlertRequest& request) const;
|
||||
StopAlertOutcome stopAlert(const Model::StopAlertRequest &request)const;
|
||||
void stopAlertAsync(const Model::StopAlertRequest& request, const StopAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
StopAlertOutcomeCallable stopAlertCallable(const Model::StopAlertRequest& request) const;
|
||||
UpdateAlertContactOutcome updateAlertContact(const Model::UpdateAlertContactRequest &request)const;
|
||||
void updateAlertContactAsync(const Model::UpdateAlertContactRequest& request, const UpdateAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAlertContactOutcomeCallable updateAlertContactCallable(const Model::UpdateAlertContactRequest& request) const;
|
||||
UpdateAlertContactGroupOutcome updateAlertContactGroup(const Model::UpdateAlertContactGroupRequest &request)const;
|
||||
void updateAlertContactGroupAsync(const Model::UpdateAlertContactGroupRequest& request, const UpdateAlertContactGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
UpdateAlertContactGroupOutcomeCallable updateAlertContactGroupCallable(const Model::UpdateAlertContactGroupRequest& request) const;
|
||||
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;
|
||||
|
||||
private:
|
||||
std::shared_ptr<EndpointProvider> endpointProvider_;
|
||||
|
||||
@@ -39,12 +39,15 @@ namespace AlibabaCloud
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getContactGroupName()const;
|
||||
void setContactGroupName(const std::string& contactGroupName);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getContactIds()const;
|
||||
void setContactIds(const std::string& contactIds);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string contactGroupName_;
|
||||
std::string proxyUserId_;
|
||||
std::string contactIds_;
|
||||
|
||||
};
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getPhoneNum()const;
|
||||
void setPhoneNum(const std::string& phoneNum);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
std::string getRegionId()const;
|
||||
@@ -50,6 +52,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string phoneNum_;
|
||||
std::string proxyUserId_;
|
||||
std::string contactName_;
|
||||
std::string regionId_;
|
||||
std::string dingRobotWebhookUrl_;
|
||||
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DELETEALERTCONTACTGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEALERTCONTACTGROUPREQUEST_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 DeleteAlertContactGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteAlertContactGroupRequest();
|
||||
~DeleteAlertContactGroupRequest();
|
||||
|
||||
long getContactGroupId()const;
|
||||
void setContactGroupId(long contactGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
long contactGroupId_;
|
||||
std::string regionId_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEALERTCONTACTGROUPREQUEST_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_DELETEALERTCONTACTGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEALERTCONTACTGROUPRESULT_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 DeleteAlertContactGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteAlertContactGroupResult();
|
||||
explicit DeleteAlertContactGroupResult(const std::string &payload);
|
||||
~DeleteAlertContactGroupResult();
|
||||
bool getIsSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isSuccess_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEALERTCONTACTGROUPRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DELETEALERTCONTACTREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEALERTCONTACTREQUEST_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 DeleteAlertContactRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteAlertContactRequest();
|
||||
~DeleteAlertContactRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
long getContactId()const;
|
||||
void setContactId(long contactId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
long contactId_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEALERTCONTACTREQUEST_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_DELETEALERTCONTACTRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEALERTCONTACTRESULT_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 DeleteAlertContactResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteAlertContactResult();
|
||||
explicit DeleteAlertContactResult(const std::string &payload);
|
||||
~DeleteAlertContactResult();
|
||||
bool getIsSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isSuccess_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEALERTCONTACTRESULT_H_
|
||||
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_DELETEALERTRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEALERTRULESREQUEST_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 DeleteAlertRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteAlertRulesRequest();
|
||||
~DeleteAlertRulesRequest();
|
||||
|
||||
std::string getAlertIds()const;
|
||||
void setAlertIds(const std::string& alertIds);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string alertIds_;
|
||||
std::string regionId_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEALERTRULESREQUEST_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_DELETEALERTRULESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_DELETEALERTRULESRESULT_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 DeleteAlertRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteAlertRulesResult();
|
||||
explicit DeleteAlertRulesResult(const std::string &payload);
|
||||
~DeleteAlertRulesResult();
|
||||
bool getIsSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isSuccess_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_DELETEALERTRULESRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_GETRETCODESHAREURLREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETRETCODESHAREURLREQUEST_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 GetRetcodeShareUrlRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetRetcodeShareUrlRequest();
|
||||
~GetRetcodeShareUrlRequest();
|
||||
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
|
||||
private:
|
||||
std::string pid_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETRETCODESHAREURLREQUEST_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_GETRETCODESHAREURLRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_GETRETCODESHAREURLRESULT_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 GetRetcodeShareUrlResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
GetRetcodeShareUrlResult();
|
||||
explicit GetRetcodeShareUrlResult(const std::string &payload);
|
||||
~GetRetcodeShareUrlResult();
|
||||
std::string getUrl()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string url_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_GETRETCODESHAREURLRESULT_H_
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
bool getIsAutoStart()const;
|
||||
void setIsAutoStart(bool isAutoStart);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getContactGroupIds()const;
|
||||
@@ -50,6 +52,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
bool isAutoStart_;
|
||||
std::string proxyUserId_;
|
||||
std::string regionId_;
|
||||
std::string contactGroupIds_;
|
||||
std::string pids_;
|
||||
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_IMPORTCUSTOMALERTRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_IMPORTCUSTOMALERTRULESREQUEST_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 ImportCustomAlertRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ImportCustomAlertRulesRequest();
|
||||
~ImportCustomAlertRulesRequest();
|
||||
|
||||
bool getIsAutoStart()const;
|
||||
void setIsAutoStart(bool isAutoStart);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getContactGroupIds()const;
|
||||
void setContactGroupIds(const std::string& contactGroupIds);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getTemplageAlertConfig()const;
|
||||
void setTemplageAlertConfig(const std::string& templageAlertConfig);
|
||||
|
||||
private:
|
||||
bool isAutoStart_;
|
||||
std::string regionId_;
|
||||
std::string contactGroupIds_;
|
||||
std::string proxyUserId_;
|
||||
std::string templageAlertConfig_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_IMPORTCUSTOMALERTRULESREQUEST_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_IMPORTCUSTOMALERTRULESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_IMPORTCUSTOMALERTRULESRESULT_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 ImportCustomAlertRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ImportCustomAlertRulesResult();
|
||||
explicit ImportCustomAlertRulesResult(const std::string &payload);
|
||||
~ImportCustomAlertRulesResult();
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_IMPORTCUSTOMALERTRULESRESULT_H_
|
||||
@@ -0,0 +1,48 @@
|
||||
/*
|
||||
* 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_LISTPROMCLUSTERSREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTPROMCLUSTERSREQUEST_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 ListPromClustersRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListPromClustersRequest();
|
||||
~ListPromClustersRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTPROMCLUSTERSREQUEST_H_
|
||||
@@ -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_LISTPROMCLUSTERSRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_LISTPROMCLUSTERSRESULT_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 ListPromClustersResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PromCluster
|
||||
{
|
||||
bool isControllerInstalled;
|
||||
std::string stateJson;
|
||||
std::string options;
|
||||
int nodeNum;
|
||||
std::string clusterId;
|
||||
long installTime;
|
||||
long createTime;
|
||||
std::string controllerId;
|
||||
std::string pluginsJsonArray;
|
||||
std::string clusterType;
|
||||
std::string agentStatus;
|
||||
std::string extra;
|
||||
std::string userId;
|
||||
long lastHeartBeatTime;
|
||||
long updateTime;
|
||||
std::string clusterName;
|
||||
long id;
|
||||
std::string regionId;
|
||||
};
|
||||
|
||||
|
||||
ListPromClustersResult();
|
||||
explicit ListPromClustersResult(const std::string &payload);
|
||||
~ListPromClustersResult();
|
||||
std::vector<PromCluster> getPromClusterList()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<PromCluster> promClusterList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_LISTPROMCLUSTERSRESULT_H_
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT QueryDatasetRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct OptionalDims
|
||||
{
|
||||
std::string type;
|
||||
@@ -57,6 +58,8 @@ namespace AlibabaCloud
|
||||
void setDateStr(const std::string& dateStr);
|
||||
long getMinTime()const;
|
||||
void setMinTime(long minTime);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
bool getReduceTail()const;
|
||||
void setReduceTail(bool reduceTail);
|
||||
long getMaxTime()const;
|
||||
@@ -85,6 +88,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string dateStr_;
|
||||
long minTime_;
|
||||
std::string proxyUserId_;
|
||||
bool reduceTail_;
|
||||
long maxTime_;
|
||||
std::vector<OptionalDims> optionalDims_;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_ARMS_EXPORT QueryMetricRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Filters
|
||||
{
|
||||
std::string value;
|
||||
@@ -48,6 +49,8 @@ namespace AlibabaCloud
|
||||
void setStartTime(long startTime);
|
||||
std::vector<Filters> getFilters()const;
|
||||
void setFilters(const std::vector<Filters>& filters);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::vector<std::string> getMeasures()const;
|
||||
void setMeasures(const std::vector<std::string>& measures);
|
||||
int getIntervalInSec()const;
|
||||
@@ -66,6 +69,7 @@ namespace AlibabaCloud
|
||||
std::string orderBy_;
|
||||
long startTime_;
|
||||
std::vector<Filters> filters_;
|
||||
std::string proxyUserId_;
|
||||
std::vector<std::string> measures_;
|
||||
int intervalInSec_;
|
||||
std::string metric_;
|
||||
|
||||
@@ -35,14 +35,23 @@ 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);
|
||||
std::string getContactGroupName()const;
|
||||
void setContactGroupName(const std::string& contactGroupName);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string contactName_;
|
||||
std::string regionId_;
|
||||
long contactId_;
|
||||
std::string contactGroupName_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -37,6 +37,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getCurrentPage()const;
|
||||
void setCurrentPage(const std::string& currentPage);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
std::string getPhone()const;
|
||||
@@ -50,6 +52,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string currentPage_;
|
||||
std::string proxyUserId_;
|
||||
std::string contactName_;
|
||||
std::string phone_;
|
||||
std::string regionId_;
|
||||
|
||||
@@ -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_SEARCHALERTHISTORIESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTHISTORIESREQUEST_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 SearchAlertHistoriesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SearchAlertHistoriesRequest();
|
||||
~SearchAlertHistoriesRequest();
|
||||
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
int getAlertType()const;
|
||||
void setAlertType(int alertType);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getAlertId()const;
|
||||
void setAlertId(long alertId);
|
||||
|
||||
private:
|
||||
long endTime_;
|
||||
int currentPage_;
|
||||
long startTime_;
|
||||
std::string proxyUserId_;
|
||||
int alertType_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
long alertId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHALERTHISTORIESREQUEST_H_
|
||||
@@ -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_SEARCHALERTHISTORIESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTHISTORIESRESULT_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 SearchAlertHistoriesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageBean
|
||||
{
|
||||
struct AlarmHistory
|
||||
{
|
||||
std::string target;
|
||||
std::string phones;
|
||||
long alarmTime;
|
||||
std::string userId;
|
||||
int alarmType;
|
||||
int alarmResponseCode;
|
||||
std::string strategyId;
|
||||
long id;
|
||||
std::string emails;
|
||||
std::string alarmContent;
|
||||
std::string alarmSources;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<AlarmHistory> alarmHistories;
|
||||
};
|
||||
|
||||
|
||||
SearchAlertHistoriesResult();
|
||||
explicit SearchAlertHistoriesResult(const std::string &payload);
|
||||
~SearchAlertHistoriesResult();
|
||||
PageBean getPageBean()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PageBean pageBean_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHALERTHISTORIESRESULT_H_
|
||||
@@ -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_SEARCHALERTRULESREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTRULESREQUEST_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 SearchAlertRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SearchAlertRulesRequest();
|
||||
~SearchAlertRulesRequest();
|
||||
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getTitle()const;
|
||||
void setTitle(const std::string& title);
|
||||
std::string getType()const;
|
||||
void setType(const std::string& type);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
std::string appType_;
|
||||
int currentPage_;
|
||||
std::string pid_;
|
||||
std::string proxyUserId_;
|
||||
std::string title_;
|
||||
std::string type_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHALERTRULESREQUEST_H_
|
||||
120
arms/include/alibabacloud/arms/model/SearchAlertRulesResult.h
Normal file
120
arms/include/alibabacloud/arms/model/SearchAlertRulesResult.h
Normal file
@@ -0,0 +1,120 @@
|
||||
/*
|
||||
* 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_SEARCHALERTRULESRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHALERTRULESRESULT_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 SearchAlertRulesResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageBean
|
||||
{
|
||||
struct AlertRule
|
||||
{
|
||||
struct AlarmContext
|
||||
{
|
||||
std::string alarmContentTemplate;
|
||||
std::string alarmContentSubTitle;
|
||||
};
|
||||
struct AlertRule1
|
||||
{
|
||||
struct Rule
|
||||
{
|
||||
int nValue;
|
||||
std::string aggregates;
|
||||
std::string alias;
|
||||
std::string measure;
|
||||
float value;
|
||||
std::string _operator;
|
||||
};
|
||||
std::string _operator;
|
||||
std::vector<Rule> rules;
|
||||
};
|
||||
struct MetricParam
|
||||
{
|
||||
struct Dimension
|
||||
{
|
||||
std::string type;
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string type;
|
||||
std::string appId;
|
||||
std::string appGroupId;
|
||||
std::vector<Dimension> dimensions;
|
||||
std::string pid;
|
||||
};
|
||||
struct Notice
|
||||
{
|
||||
long endTime;
|
||||
long noticeStartTime;
|
||||
long startTime;
|
||||
long noticeEndTime;
|
||||
};
|
||||
std::string status;
|
||||
MetricParam metricParam;
|
||||
int alertVersion;
|
||||
long taskId;
|
||||
std::string config;
|
||||
long createTime;
|
||||
std::vector<std::string> alertWays;
|
||||
std::string taskStatus;
|
||||
AlarmContext alarmContext;
|
||||
int alertType;
|
||||
std::string contactGroupIdList;
|
||||
Notice notice;
|
||||
std::string userId;
|
||||
AlertRule1 alertRule1;
|
||||
std::string alertTitle;
|
||||
long updateTime;
|
||||
std::string alertLevel;
|
||||
long id;
|
||||
std::string regionId;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
std::vector<AlertRule> alertRules;
|
||||
int pageNumber;
|
||||
};
|
||||
|
||||
|
||||
SearchAlertRulesResult();
|
||||
explicit SearchAlertRulesResult(const std::string &payload);
|
||||
~SearchAlertRulesResult();
|
||||
PageBean getPageBean()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PageBean pageBean_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHALERTRULESRESULT_H_
|
||||
78
arms/include/alibabacloud/arms/model/SearchEventsRequest.h
Normal file
78
arms/include/alibabacloud/arms/model/SearchEventsRequest.h
Normal file
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* 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_SEARCHEVENTSREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHEVENTSREQUEST_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 SearchEventsRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SearchEventsRequest();
|
||||
~SearchEventsRequest();
|
||||
|
||||
int getIsTrigger()const;
|
||||
void setIsTrigger(int isTrigger);
|
||||
std::string getAppType()const;
|
||||
void setAppType(const std::string& appType);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
int getCurrentPage()const;
|
||||
void setCurrentPage(int currentPage);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
int getAlertType()const;
|
||||
void setAlertType(int alertType);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
long getAlertId()const;
|
||||
void setAlertId(long alertId);
|
||||
|
||||
private:
|
||||
int isTrigger_;
|
||||
std::string appType_;
|
||||
long endTime_;
|
||||
std::string pid_;
|
||||
int currentPage_;
|
||||
long startTime_;
|
||||
std::string proxyUserId_;
|
||||
int alertType_;
|
||||
std::string regionId_;
|
||||
int pageSize_;
|
||||
long alertId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHEVENTSREQUEST_H_
|
||||
72
arms/include/alibabacloud/arms/model/SearchEventsResult.h
Normal file
72
arms/include/alibabacloud/arms/model/SearchEventsResult.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_SEARCHEVENTSRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SEARCHEVENTSRESULT_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 SearchEventsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct PageBean
|
||||
{
|
||||
struct EventItem
|
||||
{
|
||||
int alertType;
|
||||
int eventLevel;
|
||||
long alertId;
|
||||
std::string alertName;
|
||||
std::string message;
|
||||
long eventTime;
|
||||
std::vector<std::string> links;
|
||||
long id;
|
||||
std::string alertRule;
|
||||
};
|
||||
int totalCount;
|
||||
int pageSize;
|
||||
int pageNumber;
|
||||
std::vector<EventItem> event;
|
||||
};
|
||||
|
||||
|
||||
SearchEventsResult();
|
||||
explicit SearchEventsResult(const std::string &payload);
|
||||
~SearchEventsResult();
|
||||
PageBean getPageBean()const;
|
||||
int getIsTrigger()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
PageBean pageBean_;
|
||||
int isTrigger_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SEARCHEVENTSRESULT_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_SETRETCODESHARESTATUSREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SETRETCODESHARESTATUSREQUEST_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 SetRetcodeShareStatusRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
SetRetcodeShareStatusRequest();
|
||||
~SetRetcodeShareStatusRequest();
|
||||
|
||||
std::string getPid()const;
|
||||
void setPid(const std::string& pid);
|
||||
bool getStatus()const;
|
||||
void setStatus(bool status);
|
||||
|
||||
private:
|
||||
std::string pid_;
|
||||
bool status_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SETRETCODESHARESTATUSREQUEST_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_SETRETCODESHARESTATUSRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_SETRETCODESHARESTATUSRESULT_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 SetRetcodeShareStatusResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
SetRetcodeShareStatusResult();
|
||||
explicit SetRetcodeShareStatusResult(const std::string &payload);
|
||||
~SetRetcodeShareStatusResult();
|
||||
bool getIsSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isSuccess_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_SETRETCODESHARESTATUSRESULT_H_
|
||||
54
arms/include/alibabacloud/arms/model/StartAlertRequest.h
Normal file
54
arms/include/alibabacloud/arms/model/StartAlertRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_STARTALERTREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_STARTALERTREQUEST_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 StartAlertRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StartAlertRequest();
|
||||
~StartAlertRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAlertId()const;
|
||||
void setAlertId(const std::string& alertId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string alertId_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_STARTALERTREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/StartAlertResult.h
Normal file
51
arms/include/alibabacloud/arms/model/StartAlertResult.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_STARTALERTRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_STARTALERTRESULT_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 StartAlertResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StartAlertResult();
|
||||
explicit StartAlertResult(const std::string &payload);
|
||||
~StartAlertResult();
|
||||
bool getIsSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isSuccess_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_STARTALERTRESULT_H_
|
||||
54
arms/include/alibabacloud/arms/model/StopAlertRequest.h
Normal file
54
arms/include/alibabacloud/arms/model/StopAlertRequest.h
Normal file
@@ -0,0 +1,54 @@
|
||||
/*
|
||||
* 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_STOPALERTREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_STOPALERTREQUEST_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 StopAlertRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
StopAlertRequest();
|
||||
~StopAlertRequest();
|
||||
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getAlertId()const;
|
||||
void setAlertId(const std::string& alertId);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
|
||||
private:
|
||||
std::string regionId_;
|
||||
std::string alertId_;
|
||||
std::string proxyUserId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_STOPALERTREQUEST_H_
|
||||
51
arms/include/alibabacloud/arms/model/StopAlertResult.h
Normal file
51
arms/include/alibabacloud/arms/model/StopAlertResult.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_STOPALERTRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_STOPALERTRESULT_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 StopAlertResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
StopAlertResult();
|
||||
explicit StopAlertResult(const std::string &payload);
|
||||
~StopAlertResult();
|
||||
bool getIsSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isSuccess_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_STOPALERTRESULT_H_
|
||||
@@ -0,0 +1,60 @@
|
||||
/*
|
||||
* 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_UPDATEALERTCONTACTGROUPREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEALERTCONTACTGROUPREQUEST_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 UpdateAlertContactGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateAlertContactGroupRequest();
|
||||
~UpdateAlertContactGroupRequest();
|
||||
|
||||
long getContactGroupId()const;
|
||||
void setContactGroupId(long contactGroupId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getContactGroupName()const;
|
||||
void setContactGroupName(const std::string& contactGroupName);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getContactIds()const;
|
||||
void setContactIds(const std::string& contactIds);
|
||||
|
||||
private:
|
||||
long contactGroupId_;
|
||||
std::string regionId_;
|
||||
std::string contactGroupName_;
|
||||
std::string proxyUserId_;
|
||||
std::string contactIds_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEALERTCONTACTGROUPREQUEST_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_UPDATEALERTCONTACTGROUPRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEALERTCONTACTGROUPRESULT_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 UpdateAlertContactGroupResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateAlertContactGroupResult();
|
||||
explicit UpdateAlertContactGroupResult(const std::string &payload);
|
||||
~UpdateAlertContactGroupResult();
|
||||
bool getIsSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isSuccess_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEALERTCONTACTGROUPRESULT_H_
|
||||
@@ -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_UPDATEALERTCONTACTREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEALERTCONTACTREQUEST_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 UpdateAlertContactRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateAlertContactRequest();
|
||||
~UpdateAlertContactRequest();
|
||||
|
||||
long getContactId()const;
|
||||
void setContactId(long contactId);
|
||||
std::string getPhoneNum()const;
|
||||
void setPhoneNum(const std::string& phoneNum);
|
||||
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 getDingRobotWebhookUrl()const;
|
||||
void setDingRobotWebhookUrl(const std::string& dingRobotWebhookUrl);
|
||||
std::string getEmail()const;
|
||||
void setEmail(const std::string& email);
|
||||
bool getSystemNoc()const;
|
||||
void setSystemNoc(bool systemNoc);
|
||||
|
||||
private:
|
||||
long contactId_;
|
||||
std::string phoneNum_;
|
||||
std::string proxyUserId_;
|
||||
std::string contactName_;
|
||||
std::string regionId_;
|
||||
std::string dingRobotWebhookUrl_;
|
||||
std::string email_;
|
||||
bool systemNoc_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEALERTCONTACTREQUEST_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_UPDATEALERTCONTACTRESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEALERTCONTACTRESULT_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 UpdateAlertContactResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateAlertContactResult();
|
||||
explicit UpdateAlertContactResult(const std::string &payload);
|
||||
~UpdateAlertContactResult();
|
||||
bool getIsSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
bool isSuccess_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEALERTCONTACTRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* 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_UPDATEALERTRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEALERTRULEREQUEST_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 UpdateAlertRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
UpdateAlertRuleRequest();
|
||||
~UpdateAlertRuleRequest();
|
||||
|
||||
bool getIsAutoStart()const;
|
||||
void setIsAutoStart(bool isAutoStart);
|
||||
std::string getProxyUserId()const;
|
||||
void setProxyUserId(const std::string& proxyUserId);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::string getContactGroupIds()const;
|
||||
void setContactGroupIds(const std::string& contactGroupIds);
|
||||
long getAlertId()const;
|
||||
void setAlertId(long alertId);
|
||||
std::string getTemplageAlertConfig()const;
|
||||
void setTemplageAlertConfig(const std::string& templageAlertConfig);
|
||||
|
||||
private:
|
||||
bool isAutoStart_;
|
||||
std::string proxyUserId_;
|
||||
std::string regionId_;
|
||||
std::string contactGroupIds_;
|
||||
long alertId_;
|
||||
std::string templageAlertConfig_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEALERTRULEREQUEST_H_
|
||||
53
arms/include/alibabacloud/arms/model/UpdateAlertRuleResult.h
Normal file
53
arms/include/alibabacloud/arms/model/UpdateAlertRuleResult.h
Normal file
@@ -0,0 +1,53 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_ARMS_MODEL_UPDATEALERTRULERESULT_H_
|
||||
#define ALIBABACLOUD_ARMS_MODEL_UPDATEALERTRULERESULT_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 UpdateAlertRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
UpdateAlertRuleResult();
|
||||
explicit UpdateAlertRuleResult(const std::string &payload);
|
||||
~UpdateAlertRuleResult();
|
||||
long getAlertId()const;
|
||||
std::string getData()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
long alertId_;
|
||||
std::string data_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_ARMS_MODEL_UPDATEALERTRULERESULT_H_
|
||||
@@ -159,6 +159,114 @@ ARMSClient::CreateRetcodeAppOutcomeCallable ARMSClient::createRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteAlertContactOutcome ARMSClient::deleteAlertContact(const DeleteAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAlertContactOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteAlertContactOutcome(DeleteAlertContactResult(outcome.result()));
|
||||
else
|
||||
return DeleteAlertContactOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::deleteAlertContactAsync(const DeleteAlertContactRequest& request, const DeleteAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteAlertContact(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DeleteAlertContactOutcomeCallable ARMSClient::deleteAlertContactCallable(const DeleteAlertContactRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteAlertContactOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteAlertContact(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteAlertContactGroupOutcome ARMSClient::deleteAlertContactGroup(const DeleteAlertContactGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAlertContactGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteAlertContactGroupOutcome(DeleteAlertContactGroupResult(outcome.result()));
|
||||
else
|
||||
return DeleteAlertContactGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::deleteAlertContactGroupAsync(const DeleteAlertContactGroupRequest& request, const DeleteAlertContactGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteAlertContactGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DeleteAlertContactGroupOutcomeCallable ARMSClient::deleteAlertContactGroupCallable(const DeleteAlertContactGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteAlertContactGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteAlertContactGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteAlertRulesOutcome ARMSClient::deleteAlertRules(const DeleteAlertRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteAlertRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteAlertRulesOutcome(DeleteAlertRulesResult(outcome.result()));
|
||||
else
|
||||
return DeleteAlertRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::deleteAlertRulesAsync(const DeleteAlertRulesRequest& request, const DeleteAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteAlertRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::DeleteAlertRulesOutcomeCallable ARMSClient::deleteAlertRulesCallable(const DeleteAlertRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteAlertRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteAlertRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::DeleteRetcodeAppOutcome ARMSClient::deleteRetcodeApp(const DeleteRetcodeAppRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -195,6 +303,42 @@ ARMSClient::DeleteRetcodeAppOutcomeCallable ARMSClient::deleteRetcodeAppCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::GetRetcodeShareUrlOutcome ARMSClient::getRetcodeShareUrl(const GetRetcodeShareUrlRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetRetcodeShareUrlOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetRetcodeShareUrlOutcome(GetRetcodeShareUrlResult(outcome.result()));
|
||||
else
|
||||
return GetRetcodeShareUrlOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::getRetcodeShareUrlAsync(const GetRetcodeShareUrlRequest& request, const GetRetcodeShareUrlAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getRetcodeShareUrl(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::GetRetcodeShareUrlOutcomeCallable ARMSClient::getRetcodeShareUrlCallable(const GetRetcodeShareUrlRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetRetcodeShareUrlOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getRetcodeShareUrl(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ImportAppAlertRulesOutcome ARMSClient::importAppAlertRules(const ImportAppAlertRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -231,6 +375,78 @@ ARMSClient::ImportAppAlertRulesOutcomeCallable ARMSClient::importAppAlertRulesCa
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ImportCustomAlertRulesOutcome ARMSClient::importCustomAlertRules(const ImportCustomAlertRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ImportCustomAlertRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ImportCustomAlertRulesOutcome(ImportCustomAlertRulesResult(outcome.result()));
|
||||
else
|
||||
return ImportCustomAlertRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::importCustomAlertRulesAsync(const ImportCustomAlertRulesRequest& request, const ImportCustomAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, importCustomAlertRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ImportCustomAlertRulesOutcomeCallable ARMSClient::importCustomAlertRulesCallable(const ImportCustomAlertRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ImportCustomAlertRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->importCustomAlertRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListPromClustersOutcome ARMSClient::listPromClusters(const ListPromClustersRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListPromClustersOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListPromClustersOutcome(ListPromClustersResult(outcome.result()));
|
||||
else
|
||||
return ListPromClustersOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::listPromClustersAsync(const ListPromClustersRequest& request, const ListPromClustersAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listPromClusters(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::ListPromClustersOutcomeCallable ARMSClient::listPromClustersCallable(const ListPromClustersRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListPromClustersOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listPromClusters(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::ListRetcodeAppsOutcome ARMSClient::listRetcodeApps(const ListRetcodeAppsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -447,6 +663,114 @@ ARMSClient::SearchAlertContactGroupOutcomeCallable ARMSClient::searchAlertContac
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchAlertHistoriesOutcome ARMSClient::searchAlertHistories(const SearchAlertHistoriesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchAlertHistoriesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchAlertHistoriesOutcome(SearchAlertHistoriesResult(outcome.result()));
|
||||
else
|
||||
return SearchAlertHistoriesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::searchAlertHistoriesAsync(const SearchAlertHistoriesRequest& request, const SearchAlertHistoriesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchAlertHistories(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SearchAlertHistoriesOutcomeCallable ARMSClient::searchAlertHistoriesCallable(const SearchAlertHistoriesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchAlertHistoriesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchAlertHistories(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchAlertRulesOutcome ARMSClient::searchAlertRules(const SearchAlertRulesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchAlertRulesOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchAlertRulesOutcome(SearchAlertRulesResult(outcome.result()));
|
||||
else
|
||||
return SearchAlertRulesOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::searchAlertRulesAsync(const SearchAlertRulesRequest& request, const SearchAlertRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchAlertRules(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SearchAlertRulesOutcomeCallable ARMSClient::searchAlertRulesCallable(const SearchAlertRulesRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchAlertRulesOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchAlertRules(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchEventsOutcome ARMSClient::searchEvents(const SearchEventsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SearchEventsOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SearchEventsOutcome(SearchEventsResult(outcome.result()));
|
||||
else
|
||||
return SearchEventsOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::searchEventsAsync(const SearchEventsRequest& request, const SearchEventsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, searchEvents(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SearchEventsOutcomeCallable ARMSClient::searchEventsCallable(const SearchEventsRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SearchEventsOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->searchEvents(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SearchRetcodeAppByPageOutcome ARMSClient::searchRetcodeAppByPage(const SearchRetcodeAppByPageRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -555,3 +879,219 @@ ARMSClient::SearchTraceAppByPageOutcomeCallable ARMSClient::searchTraceAppByPage
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::SetRetcodeShareStatusOutcome ARMSClient::setRetcodeShareStatus(const SetRetcodeShareStatusRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return SetRetcodeShareStatusOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return SetRetcodeShareStatusOutcome(SetRetcodeShareStatusResult(outcome.result()));
|
||||
else
|
||||
return SetRetcodeShareStatusOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::setRetcodeShareStatusAsync(const SetRetcodeShareStatusRequest& request, const SetRetcodeShareStatusAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, setRetcodeShareStatus(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::SetRetcodeShareStatusOutcomeCallable ARMSClient::setRetcodeShareStatusCallable(const SetRetcodeShareStatusRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<SetRetcodeShareStatusOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->setRetcodeShareStatus(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::StartAlertOutcome ARMSClient::startAlert(const StartAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StartAlertOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StartAlertOutcome(StartAlertResult(outcome.result()));
|
||||
else
|
||||
return StartAlertOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::startAlertAsync(const StartAlertRequest& request, const StartAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, startAlert(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::StartAlertOutcomeCallable ARMSClient::startAlertCallable(const StartAlertRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StartAlertOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->startAlert(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::StopAlertOutcome ARMSClient::stopAlert(const StopAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return StopAlertOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return StopAlertOutcome(StopAlertResult(outcome.result()));
|
||||
else
|
||||
return StopAlertOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::stopAlertAsync(const StopAlertRequest& request, const StopAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, stopAlert(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::StopAlertOutcomeCallable ARMSClient::stopAlertCallable(const StopAlertRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<StopAlertOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->stopAlert(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::UpdateAlertContactOutcome ARMSClient::updateAlertContact(const UpdateAlertContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAlertContactOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAlertContactOutcome(UpdateAlertContactResult(outcome.result()));
|
||||
else
|
||||
return UpdateAlertContactOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::updateAlertContactAsync(const UpdateAlertContactRequest& request, const UpdateAlertContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAlertContact(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::UpdateAlertContactOutcomeCallable ARMSClient::updateAlertContactCallable(const UpdateAlertContactRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAlertContactOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAlertContact(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::UpdateAlertContactGroupOutcome ARMSClient::updateAlertContactGroup(const UpdateAlertContactGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAlertContactGroupOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAlertContactGroupOutcome(UpdateAlertContactGroupResult(outcome.result()));
|
||||
else
|
||||
return UpdateAlertContactGroupOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::updateAlertContactGroupAsync(const UpdateAlertContactGroupRequest& request, const UpdateAlertContactGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAlertContactGroup(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::UpdateAlertContactGroupOutcomeCallable ARMSClient::updateAlertContactGroupCallable(const UpdateAlertContactGroupRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAlertContactGroupOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAlertContactGroup(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
ARMSClient::UpdateAlertRuleOutcome ARMSClient::updateAlertRule(const UpdateAlertRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return UpdateAlertRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return UpdateAlertRuleOutcome(UpdateAlertRuleResult(outcome.result()));
|
||||
else
|
||||
return UpdateAlertRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void ARMSClient::updateAlertRuleAsync(const UpdateAlertRuleRequest& request, const UpdateAlertRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, updateAlertRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
ARMSClient::UpdateAlertRuleOutcomeCallable ARMSClient::updateAlertRuleCallable(const UpdateAlertRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<UpdateAlertRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->updateAlertRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
|
||||
@@ -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