由萨文发起的CMS SDK自动发布, BUILD_ID=280, 版本号:1.0.8
发布日志: 1, Fixed a problem that the ActiveAlert interface name is not standard 2, Update ActiveAlert interface : ListProductOfActiveAlert / DisableActiveAlert / EnableActiveAlert
This commit is contained in:
@@ -22,8 +22,6 @@ set(cms_public_header
|
||||
include/alibabacloud/cms/model/ListProductOfActiceAlertResult.h
|
||||
include/alibabacloud/cms/model/DeleteCustomMetricRequest.h
|
||||
include/alibabacloud/cms/model/DeleteCustomMetricResult.h
|
||||
include/alibabacloud/cms/model/GetNotifyPolicyRequest.h
|
||||
include/alibabacloud/cms/model/GetNotifyPolicyResult.h
|
||||
include/alibabacloud/cms/model/NodeUninstallRequest.h
|
||||
include/alibabacloud/cms/model/NodeUninstallResult.h
|
||||
include/alibabacloud/cms/model/QueryCustomEventCountRequest.h
|
||||
@@ -36,6 +34,8 @@ set(cms_public_header
|
||||
include/alibabacloud/cms/model/PutSystemEventResult.h
|
||||
include/alibabacloud/cms/model/QueryCustomMetricListRequest.h
|
||||
include/alibabacloud/cms/model/QueryCustomMetricListResult.h
|
||||
include/alibabacloud/cms/model/EnableActiveAlertRequest.h
|
||||
include/alibabacloud/cms/model/EnableActiveAlertResult.h
|
||||
include/alibabacloud/cms/model/QuerySystemEventDetailRequest.h
|
||||
include/alibabacloud/cms/model/QuerySystemEventDetailResult.h
|
||||
include/alibabacloud/cms/model/CreateNotifyPolicyRequest.h
|
||||
@@ -68,6 +68,8 @@ set(cms_public_header
|
||||
include/alibabacloud/cms/model/NodeStatusResult.h
|
||||
include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h
|
||||
include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h
|
||||
include/alibabacloud/cms/model/ListProductOfActiveAlertRequest.h
|
||||
include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h
|
||||
include/alibabacloud/cms/model/CreateMyGroupsRequest.h
|
||||
include/alibabacloud/cms/model/CreateMyGroupsResult.h
|
||||
include/alibabacloud/cms/model/CreateAlarmRequest.h
|
||||
@@ -94,6 +96,8 @@ set(cms_public_header
|
||||
include/alibabacloud/cms/model/EnableActiceAlertResult.h
|
||||
include/alibabacloud/cms/model/PutMetricDataRequest.h
|
||||
include/alibabacloud/cms/model/PutMetricDataResult.h
|
||||
include/alibabacloud/cms/model/DisableActiveAlertRequest.h
|
||||
include/alibabacloud/cms/model/DisableActiveAlertResult.h
|
||||
include/alibabacloud/cms/model/DisableActiceAlertRequest.h
|
||||
include/alibabacloud/cms/model/DisableActiceAlertResult.h
|
||||
include/alibabacloud/cms/model/ListAlarmRequest.h
|
||||
@@ -134,8 +138,6 @@ set(cms_src
|
||||
src/model/ListProductOfActiceAlertResult.cc
|
||||
src/model/DeleteCustomMetricRequest.cc
|
||||
src/model/DeleteCustomMetricResult.cc
|
||||
src/model/GetNotifyPolicyRequest.cc
|
||||
src/model/GetNotifyPolicyResult.cc
|
||||
src/model/NodeUninstallRequest.cc
|
||||
src/model/NodeUninstallResult.cc
|
||||
src/model/QueryCustomEventCountRequest.cc
|
||||
@@ -148,6 +150,8 @@ set(cms_src
|
||||
src/model/PutSystemEventResult.cc
|
||||
src/model/QueryCustomMetricListRequest.cc
|
||||
src/model/QueryCustomMetricListResult.cc
|
||||
src/model/EnableActiveAlertRequest.cc
|
||||
src/model/EnableActiveAlertResult.cc
|
||||
src/model/QuerySystemEventDetailRequest.cc
|
||||
src/model/QuerySystemEventDetailResult.cc
|
||||
src/model/CreateNotifyPolicyRequest.cc
|
||||
@@ -180,6 +184,8 @@ set(cms_src
|
||||
src/model/NodeStatusResult.cc
|
||||
src/model/DeleteMyGroupInstancesRequest.cc
|
||||
src/model/DeleteMyGroupInstancesResult.cc
|
||||
src/model/ListProductOfActiveAlertRequest.cc
|
||||
src/model/ListProductOfActiveAlertResult.cc
|
||||
src/model/CreateMyGroupsRequest.cc
|
||||
src/model/CreateMyGroupsResult.cc
|
||||
src/model/CreateAlarmRequest.cc
|
||||
@@ -206,6 +212,8 @@ set(cms_src
|
||||
src/model/EnableActiceAlertResult.cc
|
||||
src/model/PutMetricDataRequest.cc
|
||||
src/model/PutMetricDataResult.cc
|
||||
src/model/DisableActiveAlertRequest.cc
|
||||
src/model/DisableActiveAlertResult.cc
|
||||
src/model/DisableActiceAlertRequest.cc
|
||||
src/model/DisableActiceAlertResult.cc
|
||||
src/model/ListAlarmRequest.cc
|
||||
|
||||
@@ -1,3 +1,7 @@
|
||||
2018-01-24 Version: 1.0.8
|
||||
1, Fixed a problem that the ActiveAlert interface name is not standard
|
||||
2, Update ActiveAlert interface : ListProductOfActiveAlert / DisableActiveAlert / EnableActiveAlert
|
||||
|
||||
2018-01-24 Version: 1.0.7
|
||||
1, Add ActiveAlert API : ListActiveAlertRuleRequest/ListProductOfActiceAlertRequest/EnableActiceAlertRequest/DisableActiceAlertRequest
|
||||
|
||||
|
||||
@@ -28,8 +28,6 @@
|
||||
#include "model/ListProductOfActiceAlertResult.h"
|
||||
#include "model/DeleteCustomMetricRequest.h"
|
||||
#include "model/DeleteCustomMetricResult.h"
|
||||
#include "model/GetNotifyPolicyRequest.h"
|
||||
#include "model/GetNotifyPolicyResult.h"
|
||||
#include "model/NodeUninstallRequest.h"
|
||||
#include "model/NodeUninstallResult.h"
|
||||
#include "model/QueryCustomEventCountRequest.h"
|
||||
@@ -42,6 +40,8 @@
|
||||
#include "model/PutSystemEventResult.h"
|
||||
#include "model/QueryCustomMetricListRequest.h"
|
||||
#include "model/QueryCustomMetricListResult.h"
|
||||
#include "model/EnableActiveAlertRequest.h"
|
||||
#include "model/EnableActiveAlertResult.h"
|
||||
#include "model/QuerySystemEventDetailRequest.h"
|
||||
#include "model/QuerySystemEventDetailResult.h"
|
||||
#include "model/CreateNotifyPolicyRequest.h"
|
||||
@@ -74,6 +74,8 @@
|
||||
#include "model/NodeStatusResult.h"
|
||||
#include "model/DeleteMyGroupInstancesRequest.h"
|
||||
#include "model/DeleteMyGroupInstancesResult.h"
|
||||
#include "model/ListProductOfActiveAlertRequest.h"
|
||||
#include "model/ListProductOfActiveAlertResult.h"
|
||||
#include "model/CreateMyGroupsRequest.h"
|
||||
#include "model/CreateMyGroupsResult.h"
|
||||
#include "model/CreateAlarmRequest.h"
|
||||
@@ -100,6 +102,8 @@
|
||||
#include "model/EnableActiceAlertResult.h"
|
||||
#include "model/PutMetricDataRequest.h"
|
||||
#include "model/PutMetricDataResult.h"
|
||||
#include "model/DisableActiveAlertRequest.h"
|
||||
#include "model/DisableActiveAlertResult.h"
|
||||
#include "model/DisableActiceAlertRequest.h"
|
||||
#include "model/DisableActiceAlertResult.h"
|
||||
#include "model/ListAlarmRequest.h"
|
||||
@@ -146,9 +150,6 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteCustomMetricResult> DeleteCustomMetricOutcome;
|
||||
typedef std::future<DeleteCustomMetricOutcome> DeleteCustomMetricOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DeleteCustomMetricRequest&, const DeleteCustomMetricOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteCustomMetricAsyncHandler;
|
||||
typedef Outcome<Error, Model::GetNotifyPolicyResult> GetNotifyPolicyOutcome;
|
||||
typedef std::future<GetNotifyPolicyOutcome> GetNotifyPolicyOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::GetNotifyPolicyRequest&, const GetNotifyPolicyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> GetNotifyPolicyAsyncHandler;
|
||||
typedef Outcome<Error, Model::NodeUninstallResult> NodeUninstallOutcome;
|
||||
typedef std::future<NodeUninstallOutcome> NodeUninstallOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::NodeUninstallRequest&, const NodeUninstallOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> NodeUninstallAsyncHandler;
|
||||
@@ -167,6 +168,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::QueryCustomMetricListResult> QueryCustomMetricListOutcome;
|
||||
typedef std::future<QueryCustomMetricListOutcome> QueryCustomMetricListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::QueryCustomMetricListRequest&, const QueryCustomMetricListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QueryCustomMetricListAsyncHandler;
|
||||
typedef Outcome<Error, Model::EnableActiveAlertResult> EnableActiveAlertOutcome;
|
||||
typedef std::future<EnableActiveAlertOutcome> EnableActiveAlertOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::EnableActiveAlertRequest&, const EnableActiveAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> EnableActiveAlertAsyncHandler;
|
||||
typedef Outcome<Error, Model::QuerySystemEventDetailResult> QuerySystemEventDetailOutcome;
|
||||
typedef std::future<QuerySystemEventDetailOutcome> QuerySystemEventDetailOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::QuerySystemEventDetailRequest&, const QuerySystemEventDetailOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> QuerySystemEventDetailAsyncHandler;
|
||||
@@ -215,6 +219,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteMyGroupInstancesResult> DeleteMyGroupInstancesOutcome;
|
||||
typedef std::future<DeleteMyGroupInstancesOutcome> DeleteMyGroupInstancesOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DeleteMyGroupInstancesRequest&, const DeleteMyGroupInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMyGroupInstancesAsyncHandler;
|
||||
typedef Outcome<Error, Model::ListProductOfActiveAlertResult> ListProductOfActiveAlertOutcome;
|
||||
typedef std::future<ListProductOfActiveAlertOutcome> ListProductOfActiveAlertOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::ListProductOfActiveAlertRequest&, const ListProductOfActiveAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ListProductOfActiveAlertAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMyGroupsResult> CreateMyGroupsOutcome;
|
||||
typedef std::future<CreateMyGroupsOutcome> CreateMyGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateMyGroupsRequest&, const CreateMyGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMyGroupsAsyncHandler;
|
||||
@@ -254,6 +261,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PutMetricDataResult> PutMetricDataOutcome;
|
||||
typedef std::future<PutMetricDataOutcome> PutMetricDataOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutMetricDataRequest&, const PutMetricDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutMetricDataAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableActiveAlertResult> DisableActiveAlertOutcome;
|
||||
typedef std::future<DisableActiveAlertOutcome> DisableActiveAlertOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DisableActiveAlertRequest&, const DisableActiveAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableActiveAlertAsyncHandler;
|
||||
typedef Outcome<Error, Model::DisableActiceAlertResult> DisableActiceAlertOutcome;
|
||||
typedef std::future<DisableActiceAlertOutcome> DisableActiceAlertOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DisableActiceAlertRequest&, const DisableActiceAlertOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DisableActiceAlertAsyncHandler;
|
||||
@@ -312,9 +322,6 @@ namespace AlibabaCloud
|
||||
DeleteCustomMetricOutcome deleteCustomMetric(const Model::DeleteCustomMetricRequest &request)const;
|
||||
void deleteCustomMetricAsync(const Model::DeleteCustomMetricRequest& request, const DeleteCustomMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteCustomMetricOutcomeCallable deleteCustomMetricCallable(const Model::DeleteCustomMetricRequest& request) const;
|
||||
GetNotifyPolicyOutcome getNotifyPolicy(const Model::GetNotifyPolicyRequest &request)const;
|
||||
void getNotifyPolicyAsync(const Model::GetNotifyPolicyRequest& request, const GetNotifyPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
GetNotifyPolicyOutcomeCallable getNotifyPolicyCallable(const Model::GetNotifyPolicyRequest& request) const;
|
||||
NodeUninstallOutcome nodeUninstall(const Model::NodeUninstallRequest &request)const;
|
||||
void nodeUninstallAsync(const Model::NodeUninstallRequest& request, const NodeUninstallAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
NodeUninstallOutcomeCallable nodeUninstallCallable(const Model::NodeUninstallRequest& request) const;
|
||||
@@ -333,6 +340,9 @@ namespace AlibabaCloud
|
||||
QueryCustomMetricListOutcome queryCustomMetricList(const Model::QueryCustomMetricListRequest &request)const;
|
||||
void queryCustomMetricListAsync(const Model::QueryCustomMetricListRequest& request, const QueryCustomMetricListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QueryCustomMetricListOutcomeCallable queryCustomMetricListCallable(const Model::QueryCustomMetricListRequest& request) const;
|
||||
EnableActiveAlertOutcome enableActiveAlert(const Model::EnableActiveAlertRequest &request)const;
|
||||
void enableActiveAlertAsync(const Model::EnableActiveAlertRequest& request, const EnableActiveAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
EnableActiveAlertOutcomeCallable enableActiveAlertCallable(const Model::EnableActiveAlertRequest& request) const;
|
||||
QuerySystemEventDetailOutcome querySystemEventDetail(const Model::QuerySystemEventDetailRequest &request)const;
|
||||
void querySystemEventDetailAsync(const Model::QuerySystemEventDetailRequest& request, const QuerySystemEventDetailAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
QuerySystemEventDetailOutcomeCallable querySystemEventDetailCallable(const Model::QuerySystemEventDetailRequest& request) const;
|
||||
@@ -381,6 +391,9 @@ namespace AlibabaCloud
|
||||
DeleteMyGroupInstancesOutcome deleteMyGroupInstances(const Model::DeleteMyGroupInstancesRequest &request)const;
|
||||
void deleteMyGroupInstancesAsync(const Model::DeleteMyGroupInstancesRequest& request, const DeleteMyGroupInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMyGroupInstancesOutcomeCallable deleteMyGroupInstancesCallable(const Model::DeleteMyGroupInstancesRequest& request) const;
|
||||
ListProductOfActiveAlertOutcome listProductOfActiveAlert(const Model::ListProductOfActiveAlertRequest &request)const;
|
||||
void listProductOfActiveAlertAsync(const Model::ListProductOfActiveAlertRequest& request, const ListProductOfActiveAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ListProductOfActiveAlertOutcomeCallable listProductOfActiveAlertCallable(const Model::ListProductOfActiveAlertRequest& request) const;
|
||||
CreateMyGroupsOutcome createMyGroups(const Model::CreateMyGroupsRequest &request)const;
|
||||
void createMyGroupsAsync(const Model::CreateMyGroupsRequest& request, const CreateMyGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMyGroupsOutcomeCallable createMyGroupsCallable(const Model::CreateMyGroupsRequest& request) const;
|
||||
@@ -420,6 +433,9 @@ namespace AlibabaCloud
|
||||
PutMetricDataOutcome putMetricData(const Model::PutMetricDataRequest &request)const;
|
||||
void putMetricDataAsync(const Model::PutMetricDataRequest& request, const PutMetricDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutMetricDataOutcomeCallable putMetricDataCallable(const Model::PutMetricDataRequest& request) const;
|
||||
DisableActiveAlertOutcome disableActiveAlert(const Model::DisableActiveAlertRequest &request)const;
|
||||
void disableActiveAlertAsync(const Model::DisableActiveAlertRequest& request, const DisableActiveAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableActiveAlertOutcomeCallable disableActiveAlertCallable(const Model::DisableActiveAlertRequest& request) const;
|
||||
DisableActiceAlertOutcome disableActiceAlert(const Model::DisableActiceAlertRequest &request)const;
|
||||
void disableActiceAlertAsync(const Model::DisableActiceAlertRequest& request, const DisableActiceAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DisableActiceAlertOutcomeCallable disableActiceAlertCallable(const Model::DisableActiceAlertRequest& request) const;
|
||||
|
||||
50
cms/include/alibabacloud/cms/model/DisableActiveAlertRequest.h
Executable file
50
cms/include/alibabacloud/cms/model/DisableActiveAlertRequest.h
Executable file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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_CMS_MODEL_DISABLEACTIVEALERTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/cms/CmsRequest.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT DisableActiveAlertRequest : public CmsRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DisableActiveAlertRequest();
|
||||
~DisableActiveAlertRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,40 +29,27 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT GetNotifyPolicyResult : public ServiceResult
|
||||
class ALIBABACLOUD_CMS_EXPORT DisableActiveAlertResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Result
|
||||
{
|
||||
std::string type;
|
||||
std::string alertName;
|
||||
long endTime;
|
||||
long startTime;
|
||||
std::string dimensions;
|
||||
std::string id;
|
||||
};
|
||||
|
||||
|
||||
GetNotifyPolicyResult();
|
||||
explicit GetNotifyPolicyResult(const std::string &payload);
|
||||
~GetNotifyPolicyResult();
|
||||
DisableActiveAlertResult();
|
||||
explicit DisableActiveAlertResult(const std::string &payload);
|
||||
~DisableActiveAlertResult();
|
||||
std::string getMessage()const;
|
||||
std::string getTraceId()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::vector<Result> getResult()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string traceId_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
std::vector<Result> result_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTRESULT_H_
|
||||
50
cms/include/alibabacloud/cms/model/EnableActiveAlertRequest.h
Executable file
50
cms/include/alibabacloud/cms/model/EnableActiveAlertRequest.h
Executable file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* 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_CMS_MODEL_ENABLEACTIVEALERTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/cms/CmsRequest.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT EnableActiveAlertRequest : public CmsRequest
|
||||
{
|
||||
|
||||
public:
|
||||
EnableActiveAlertRequest();
|
||||
~EnableActiveAlertRequest();
|
||||
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string product_;
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTREQUEST_H_
|
||||
55
cms/include/alibabacloud/cms/model/EnableActiveAlertResult.h
Executable file
55
cms/include/alibabacloud/cms/model/EnableActiveAlertResult.h
Executable file
@@ -0,0 +1,55 @@
|
||||
/*
|
||||
* 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_CMS_MODEL_ENABLEACTIVEALERTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT EnableActiveAlertResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
EnableActiveAlertResult();
|
||||
explicit EnableActiveAlertResult(const std::string &payload);
|
||||
~EnableActiveAlertResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTRESULT_H_
|
||||
@@ -1,59 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/cms/CmsRequest.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT GetNotifyPolicyRequest : public CmsRequest
|
||||
{
|
||||
|
||||
public:
|
||||
GetNotifyPolicyRequest();
|
||||
~GetNotifyPolicyRequest();
|
||||
|
||||
std::string getPolicyType()const;
|
||||
void setPolicyType(const std::string& policyType);
|
||||
std::string getAlertName()const;
|
||||
void setAlertName(const std::string& alertName);
|
||||
std::string getId()const;
|
||||
void setId(const std::string& id);
|
||||
std::string getDimensions()const;
|
||||
void setDimensions(const std::string& dimensions);
|
||||
std::string getAccessKeyId()const;
|
||||
void setAccessKeyId(const std::string& accessKeyId);
|
||||
|
||||
private:
|
||||
std::string policyType_;
|
||||
std::string alertName_;
|
||||
std::string id_;
|
||||
std::string dimensions_;
|
||||
std::string accessKeyId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYREQUEST_H_
|
||||
47
cms/include/alibabacloud/cms/model/ListProductOfActiveAlertRequest.h
Executable file
47
cms/include/alibabacloud/cms/model/ListProductOfActiveAlertRequest.h
Executable file
@@ -0,0 +1,47 @@
|
||||
/*
|
||||
* 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_CMS_MODEL_LISTPRODUCTOFACTIVEALERTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/cms/CmsRequest.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT ListProductOfActiveAlertRequest : public CmsRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ListProductOfActiveAlertRequest();
|
||||
~ListProductOfActiveAlertRequest();
|
||||
|
||||
std::string getUserId()const;
|
||||
void setUserId(const std::string& userId);
|
||||
|
||||
private:
|
||||
std::string userId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTREQUEST_H_
|
||||
57
cms/include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h
Executable file
57
cms/include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h
Executable file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTRESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <utility>
|
||||
#include <alibabacloud/core/ServiceResult.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT ListProductOfActiveAlertResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ListProductOfActiveAlertResult();
|
||||
explicit ListProductOfActiveAlertResult(const std::string &payload);
|
||||
~ListProductOfActiveAlertResult();
|
||||
std::string getMessage()const;
|
||||
std::string getDatapoints()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string datapoints_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTRESULT_H_
|
||||
@@ -167,42 +167,6 @@ CmsClient::DeleteCustomMetricOutcomeCallable CmsClient::deleteCustomMetricCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::GetNotifyPolicyOutcome CmsClient::getNotifyPolicy(const GetNotifyPolicyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return GetNotifyPolicyOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return GetNotifyPolicyOutcome(GetNotifyPolicyResult(outcome.result()));
|
||||
else
|
||||
return GetNotifyPolicyOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::getNotifyPolicyAsync(const GetNotifyPolicyRequest& request, const GetNotifyPolicyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, getNotifyPolicy(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::GetNotifyPolicyOutcomeCallable CmsClient::getNotifyPolicyCallable(const GetNotifyPolicyRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<GetNotifyPolicyOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->getNotifyPolicy(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::NodeUninstallOutcome CmsClient::nodeUninstall(const NodeUninstallRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
@@ -419,6 +383,42 @@ CmsClient::QueryCustomMetricListOutcomeCallable CmsClient::queryCustomMetricList
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::EnableActiveAlertOutcome CmsClient::enableActiveAlert(const EnableActiveAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return EnableActiveAlertOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return EnableActiveAlertOutcome(EnableActiveAlertResult(outcome.result()));
|
||||
else
|
||||
return EnableActiveAlertOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::enableActiveAlertAsync(const EnableActiveAlertRequest& request, const EnableActiveAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, enableActiveAlert(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::EnableActiveAlertOutcomeCallable CmsClient::enableActiveAlertCallable(const EnableActiveAlertRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<EnableActiveAlertOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->enableActiveAlert(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::QuerySystemEventDetailOutcome CmsClient::querySystemEventDetail(const QuerySystemEventDetailRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
@@ -995,6 +995,42 @@ CmsClient::DeleteMyGroupInstancesOutcomeCallable CmsClient::deleteMyGroupInstanc
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::ListProductOfActiveAlertOutcome CmsClient::listProductOfActiveAlert(const ListProductOfActiveAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ListProductOfActiveAlertOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ListProductOfActiveAlertOutcome(ListProductOfActiveAlertResult(outcome.result()));
|
||||
else
|
||||
return ListProductOfActiveAlertOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::listProductOfActiveAlertAsync(const ListProductOfActiveAlertRequest& request, const ListProductOfActiveAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, listProductOfActiveAlert(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::ListProductOfActiveAlertOutcomeCallable CmsClient::listProductOfActiveAlertCallable(const ListProductOfActiveAlertRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ListProductOfActiveAlertOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->listProductOfActiveAlert(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::CreateMyGroupsOutcome CmsClient::createMyGroups(const CreateMyGroupsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
@@ -1463,6 +1499,42 @@ CmsClient::PutMetricDataOutcomeCallable CmsClient::putMetricDataCallable(const P
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DisableActiveAlertOutcome CmsClient::disableActiveAlert(const DisableActiveAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DisableActiveAlertOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DisableActiveAlertOutcome(DisableActiveAlertResult(outcome.result()));
|
||||
else
|
||||
return DisableActiveAlertOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::disableActiveAlertAsync(const DisableActiveAlertRequest& request, const DisableActiveAlertAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, disableActiveAlert(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DisableActiveAlertOutcomeCallable CmsClient::disableActiveAlertCallable(const DisableActiveAlertRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DisableActiveAlertOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->disableActiveAlert(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DisableActiceAlertOutcome CmsClient::disableActiceAlert(const DisableActiceAlertRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpoint();
|
||||
|
||||
50
cms/src/model/DisableActiveAlertRequest.cc
Executable file
50
cms/src/model/DisableActiveAlertRequest.cc
Executable file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DisableActiveAlertRequest.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DisableActiveAlertRequest::DisableActiveAlertRequest() :
|
||||
CmsRequest("DisableActiveAlert")
|
||||
{}
|
||||
|
||||
DisableActiveAlertRequest::~DisableActiveAlertRequest()
|
||||
{}
|
||||
|
||||
std::string DisableActiveAlertRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DisableActiveAlertRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string DisableActiveAlertRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void DisableActiveAlertRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
66
cms/src/model/DisableActiveAlertResult.cc
Executable file
66
cms/src/model/DisableActiveAlertResult.cc
Executable file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DisableActiveAlertResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DisableActiveAlertResult::DisableActiveAlertResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DisableActiveAlertResult::DisableActiveAlertResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DisableActiveAlertResult::~DisableActiveAlertResult()
|
||||
{}
|
||||
|
||||
void DisableActiveAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DisableActiveAlertResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DisableActiveAlertResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DisableActiveAlertResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
50
cms/src/model/EnableActiveAlertRequest.cc
Executable file
50
cms/src/model/EnableActiveAlertRequest.cc
Executable file
@@ -0,0 +1,50 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/EnableActiveAlertRequest.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
EnableActiveAlertRequest::EnableActiveAlertRequest() :
|
||||
CmsRequest("EnableActiveAlert")
|
||||
{}
|
||||
|
||||
EnableActiveAlertRequest::~EnableActiveAlertRequest()
|
||||
{}
|
||||
|
||||
std::string EnableActiveAlertRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void EnableActiveAlertRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string EnableActiveAlertRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void EnableActiveAlertRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
66
cms/src/model/EnableActiveAlertResult.cc
Executable file
66
cms/src/model/EnableActiveAlertResult.cc
Executable file
@@ -0,0 +1,66 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/EnableActiveAlertResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
EnableActiveAlertResult::EnableActiveAlertResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
EnableActiveAlertResult::EnableActiveAlertResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
EnableActiveAlertResult::~EnableActiveAlertResult()
|
||||
{}
|
||||
|
||||
void EnableActiveAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string EnableActiveAlertResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string EnableActiveAlertResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool EnableActiveAlertResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -1,83 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/GetNotifyPolicyRequest.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
GetNotifyPolicyRequest::GetNotifyPolicyRequest() :
|
||||
CmsRequest("GetNotifyPolicy")
|
||||
{}
|
||||
|
||||
GetNotifyPolicyRequest::~GetNotifyPolicyRequest()
|
||||
{}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getPolicyType()const
|
||||
{
|
||||
return policyType_;
|
||||
}
|
||||
|
||||
void GetNotifyPolicyRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getAlertName()const
|
||||
{
|
||||
return alertName_;
|
||||
}
|
||||
|
||||
void GetNotifyPolicyRequest::setAlertName(const std::string& alertName)
|
||||
{
|
||||
alertName_ = alertName;
|
||||
setParameter("AlertName", alertName);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getId()const
|
||||
{
|
||||
return id_;
|
||||
}
|
||||
|
||||
void GetNotifyPolicyRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getDimensions()const
|
||||
{
|
||||
return dimensions_;
|
||||
}
|
||||
|
||||
void GetNotifyPolicyRequest::setDimensions(const std::string& dimensions)
|
||||
{
|
||||
dimensions_ = dimensions;
|
||||
setParameter("Dimensions", dimensions);
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyRequest::getAccessKeyId()const
|
||||
{
|
||||
return accessKeyId_;
|
||||
}
|
||||
|
||||
void GetNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId)
|
||||
{
|
||||
accessKeyId_ = accessKeyId;
|
||||
setParameter("AccessKeyId", accessKeyId);
|
||||
}
|
||||
|
||||
@@ -1,96 +0,0 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/GetNotifyPolicyResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
GetNotifyPolicyResult::GetNotifyPolicyResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
GetNotifyPolicyResult::GetNotifyPolicyResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
GetNotifyPolicyResult::~GetNotifyPolicyResult()
|
||||
{}
|
||||
|
||||
void GetNotifyPolicyResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allResult = value["Result"];
|
||||
for (auto value : allResult)
|
||||
{
|
||||
Result resultObject;
|
||||
if(!value["AlertName"].isNull())
|
||||
resultObject.alertName = value["AlertName"].asString();
|
||||
if(!value["Dimensions"].isNull())
|
||||
resultObject.dimensions = value["Dimensions"].asString();
|
||||
if(!value["Type"].isNull())
|
||||
resultObject.type = value["Type"].asString();
|
||||
if(!value["Id"].isNull())
|
||||
resultObject.id = value["Id"].asString();
|
||||
if(!value["StartTime"].isNull())
|
||||
resultObject.startTime = std::stol(value["StartTime"].asString());
|
||||
if(!value["EndTime"].isNull())
|
||||
resultObject.endTime = std::stol(value["EndTime"].asString());
|
||||
result_.push_back(resultObject);
|
||||
}
|
||||
if(!value["code"].isNull())
|
||||
code_ = value["code"].asString();
|
||||
if(!value["message"].isNull())
|
||||
message_ = value["message"].asString();
|
||||
if(!value["success"].isNull())
|
||||
success_ = value["success"].asString();
|
||||
if(!value["traceId"].isNull())
|
||||
traceId_ = value["traceId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyResult::getTraceId()const
|
||||
{
|
||||
return traceId_;
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
std::string GetNotifyPolicyResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::vector<GetNotifyPolicyResult::Result> GetNotifyPolicyResult::getResult()const
|
||||
{
|
||||
return result_;
|
||||
}
|
||||
|
||||
39
cms/src/model/ListProductOfActiveAlertRequest.cc
Executable file
39
cms/src/model/ListProductOfActiveAlertRequest.cc
Executable file
@@ -0,0 +1,39 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/ListProductOfActiveAlertRequest.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
ListProductOfActiveAlertRequest::ListProductOfActiveAlertRequest() :
|
||||
CmsRequest("ListProductOfActiveAlert")
|
||||
{}
|
||||
|
||||
ListProductOfActiveAlertRequest::~ListProductOfActiveAlertRequest()
|
||||
{}
|
||||
|
||||
std::string ListProductOfActiveAlertRequest::getUserId()const
|
||||
{
|
||||
return userId_;
|
||||
}
|
||||
|
||||
void ListProductOfActiveAlertRequest::setUserId(const std::string& userId)
|
||||
{
|
||||
userId_ = userId;
|
||||
setParameter("UserId", userId);
|
||||
}
|
||||
|
||||
73
cms/src/model/ListProductOfActiveAlertResult.cc
Executable file
73
cms/src/model/ListProductOfActiveAlertResult.cc
Executable file
@@ -0,0 +1,73 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/ListProductOfActiveAlertResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
ListProductOfActiveAlertResult::ListProductOfActiveAlertResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
ListProductOfActiveAlertResult::ListProductOfActiveAlertResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
ListProductOfActiveAlertResult::~ListProductOfActiveAlertResult()
|
||||
{}
|
||||
|
||||
void ListProductOfActiveAlertResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
code_ = std::stoi(value["Code"].asString());
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Datapoints"].isNull())
|
||||
datapoints_ = value["Datapoints"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string ListProductOfActiveAlertResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string ListProductOfActiveAlertResult::getDatapoints()const
|
||||
{
|
||||
return datapoints_;
|
||||
}
|
||||
|
||||
int ListProductOfActiveAlertResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool ListProductOfActiveAlertResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user