regenerate code
This commit is contained in:
@@ -61,6 +61,10 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/DeleteEventRuleTargetsResult.h
|
||||
include/alibabacloud/cms/model/DeleteEventRulesRequest.h
|
||||
include/alibabacloud/cms/model/DeleteEventRulesResult.h
|
||||
include/alibabacloud/cms/model/DeleteExporterOutputRequest.h
|
||||
include/alibabacloud/cms/model/DeleteExporterOutputResult.h
|
||||
include/alibabacloud/cms/model/DeleteExporterRuleRequest.h
|
||||
include/alibabacloud/cms/model/DeleteExporterRuleResult.h
|
||||
include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessRequest.h
|
||||
include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessResult.h
|
||||
include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.h
|
||||
@@ -113,6 +117,12 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/DescribeEventRuleListResult.h
|
||||
include/alibabacloud/cms/model/DescribeEventRuleTargetListRequest.h
|
||||
include/alibabacloud/cms/model/DescribeEventRuleTargetListResult.h
|
||||
include/alibabacloud/cms/model/DescribeExporterOutputListRequest.h
|
||||
include/alibabacloud/cms/model/DescribeExporterOutputListResult.h
|
||||
include/alibabacloud/cms/model/DescribeExporterRuleListRequest.h
|
||||
include/alibabacloud/cms/model/DescribeExporterRuleListResult.h
|
||||
include/alibabacloud/cms/model/DescribeFolderListRequest.h
|
||||
include/alibabacloud/cms/model/DescribeFolderListResult.h
|
||||
include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessRequest.h
|
||||
include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h
|
||||
include/alibabacloud/cms/model/DescribeHostAvailabilityListRequest.h
|
||||
@@ -239,6 +249,10 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/PutEventRuleResult.h
|
||||
include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h
|
||||
include/alibabacloud/cms/model/PutEventRuleTargetsResult.h
|
||||
include/alibabacloud/cms/model/PutExporterOutputRequest.h
|
||||
include/alibabacloud/cms/model/PutExporterOutputResult.h
|
||||
include/alibabacloud/cms/model/PutExporterRuleRequest.h
|
||||
include/alibabacloud/cms/model/PutExporterRuleResult.h
|
||||
include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h
|
||||
include/alibabacloud/cms/model/PutGroupMetricRuleResult.h
|
||||
include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h
|
||||
@@ -300,6 +314,10 @@ set(cms_src
|
||||
src/model/DeleteEventRuleTargetsResult.cc
|
||||
src/model/DeleteEventRulesRequest.cc
|
||||
src/model/DeleteEventRulesResult.cc
|
||||
src/model/DeleteExporterOutputRequest.cc
|
||||
src/model/DeleteExporterOutputResult.cc
|
||||
src/model/DeleteExporterRuleRequest.cc
|
||||
src/model/DeleteExporterRuleResult.cc
|
||||
src/model/DeleteGroupMonitoringAgentProcessRequest.cc
|
||||
src/model/DeleteGroupMonitoringAgentProcessResult.cc
|
||||
src/model/DeleteHostAvailabilityRequest.cc
|
||||
@@ -352,6 +370,12 @@ set(cms_src
|
||||
src/model/DescribeEventRuleListResult.cc
|
||||
src/model/DescribeEventRuleTargetListRequest.cc
|
||||
src/model/DescribeEventRuleTargetListResult.cc
|
||||
src/model/DescribeExporterOutputListRequest.cc
|
||||
src/model/DescribeExporterOutputListResult.cc
|
||||
src/model/DescribeExporterRuleListRequest.cc
|
||||
src/model/DescribeExporterRuleListResult.cc
|
||||
src/model/DescribeFolderListRequest.cc
|
||||
src/model/DescribeFolderListResult.cc
|
||||
src/model/DescribeGroupMonitoringAgentProcessRequest.cc
|
||||
src/model/DescribeGroupMonitoringAgentProcessResult.cc
|
||||
src/model/DescribeHostAvailabilityListRequest.cc
|
||||
@@ -478,6 +502,10 @@ set(cms_src
|
||||
src/model/PutEventRuleResult.cc
|
||||
src/model/PutEventRuleTargetsRequest.cc
|
||||
src/model/PutEventRuleTargetsResult.cc
|
||||
src/model/PutExporterOutputRequest.cc
|
||||
src/model/PutExporterOutputResult.cc
|
||||
src/model/PutExporterRuleRequest.cc
|
||||
src/model/PutExporterRuleResult.cc
|
||||
src/model/PutGroupMetricRuleRequest.cc
|
||||
src/model/PutGroupMetricRuleResult.cc
|
||||
src/model/PutMetricRuleTargetsRequest.cc
|
||||
|
||||
@@ -62,6 +62,10 @@
|
||||
#include "model/DeleteEventRuleTargetsResult.h"
|
||||
#include "model/DeleteEventRulesRequest.h"
|
||||
#include "model/DeleteEventRulesResult.h"
|
||||
#include "model/DeleteExporterOutputRequest.h"
|
||||
#include "model/DeleteExporterOutputResult.h"
|
||||
#include "model/DeleteExporterRuleRequest.h"
|
||||
#include "model/DeleteExporterRuleResult.h"
|
||||
#include "model/DeleteGroupMonitoringAgentProcessRequest.h"
|
||||
#include "model/DeleteGroupMonitoringAgentProcessResult.h"
|
||||
#include "model/DeleteHostAvailabilityRequest.h"
|
||||
@@ -114,6 +118,12 @@
|
||||
#include "model/DescribeEventRuleListResult.h"
|
||||
#include "model/DescribeEventRuleTargetListRequest.h"
|
||||
#include "model/DescribeEventRuleTargetListResult.h"
|
||||
#include "model/DescribeExporterOutputListRequest.h"
|
||||
#include "model/DescribeExporterOutputListResult.h"
|
||||
#include "model/DescribeExporterRuleListRequest.h"
|
||||
#include "model/DescribeExporterRuleListResult.h"
|
||||
#include "model/DescribeFolderListRequest.h"
|
||||
#include "model/DescribeFolderListResult.h"
|
||||
#include "model/DescribeGroupMonitoringAgentProcessRequest.h"
|
||||
#include "model/DescribeGroupMonitoringAgentProcessResult.h"
|
||||
#include "model/DescribeHostAvailabilityListRequest.h"
|
||||
@@ -240,6 +250,10 @@
|
||||
#include "model/PutEventRuleResult.h"
|
||||
#include "model/PutEventRuleTargetsRequest.h"
|
||||
#include "model/PutEventRuleTargetsResult.h"
|
||||
#include "model/PutExporterOutputRequest.h"
|
||||
#include "model/PutExporterOutputResult.h"
|
||||
#include "model/PutExporterRuleRequest.h"
|
||||
#include "model/PutExporterRuleResult.h"
|
||||
#include "model/PutGroupMetricRuleRequest.h"
|
||||
#include "model/PutGroupMetricRuleResult.h"
|
||||
#include "model/PutMetricRuleTargetsRequest.h"
|
||||
@@ -327,6 +341,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteEventRulesResult> DeleteEventRulesOutcome;
|
||||
typedef std::future<DeleteEventRulesOutcome> DeleteEventRulesOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DeleteEventRulesRequest&, const DeleteEventRulesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteEventRulesAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteExporterOutputResult> DeleteExporterOutputOutcome;
|
||||
typedef std::future<DeleteExporterOutputOutcome> DeleteExporterOutputOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DeleteExporterOutputRequest&, const DeleteExporterOutputOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteExporterOutputAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteExporterRuleResult> DeleteExporterRuleOutcome;
|
||||
typedef std::future<DeleteExporterRuleOutcome> DeleteExporterRuleOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DeleteExporterRuleRequest&, const DeleteExporterRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteExporterRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteGroupMonitoringAgentProcessResult> DeleteGroupMonitoringAgentProcessOutcome;
|
||||
typedef std::future<DeleteGroupMonitoringAgentProcessOutcome> DeleteGroupMonitoringAgentProcessOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DeleteGroupMonitoringAgentProcessRequest&, const DeleteGroupMonitoringAgentProcessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteGroupMonitoringAgentProcessAsyncHandler;
|
||||
@@ -405,6 +425,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeEventRuleTargetListResult> DescribeEventRuleTargetListOutcome;
|
||||
typedef std::future<DescribeEventRuleTargetListOutcome> DescribeEventRuleTargetListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeEventRuleTargetListRequest&, const DescribeEventRuleTargetListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeEventRuleTargetListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeExporterOutputListResult> DescribeExporterOutputListOutcome;
|
||||
typedef std::future<DescribeExporterOutputListOutcome> DescribeExporterOutputListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeExporterOutputListRequest&, const DescribeExporterOutputListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeExporterOutputListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeExporterRuleListResult> DescribeExporterRuleListOutcome;
|
||||
typedef std::future<DescribeExporterRuleListOutcome> DescribeExporterRuleListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeExporterRuleListRequest&, const DescribeExporterRuleListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeExporterRuleListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeFolderListResult> DescribeFolderListOutcome;
|
||||
typedef std::future<DescribeFolderListOutcome> DescribeFolderListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeFolderListRequest&, const DescribeFolderListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeFolderListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeGroupMonitoringAgentProcessResult> DescribeGroupMonitoringAgentProcessOutcome;
|
||||
typedef std::future<DescribeGroupMonitoringAgentProcessOutcome> DescribeGroupMonitoringAgentProcessOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeGroupMonitoringAgentProcessRequest&, const DescribeGroupMonitoringAgentProcessOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeGroupMonitoringAgentProcessAsyncHandler;
|
||||
@@ -594,6 +623,12 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PutEventRuleTargetsResult> PutEventRuleTargetsOutcome;
|
||||
typedef std::future<PutEventRuleTargetsOutcome> PutEventRuleTargetsOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutEventRuleTargetsRequest&, const PutEventRuleTargetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutEventRuleTargetsAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutExporterOutputResult> PutExporterOutputOutcome;
|
||||
typedef std::future<PutExporterOutputOutcome> PutExporterOutputOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutExporterOutputRequest&, const PutExporterOutputOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutExporterOutputAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutExporterRuleResult> PutExporterRuleOutcome;
|
||||
typedef std::future<PutExporterRuleOutcome> PutExporterRuleOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutExporterRuleRequest&, const PutExporterRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutExporterRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutGroupMetricRuleResult> PutGroupMetricRuleOutcome;
|
||||
typedef std::future<PutGroupMetricRuleOutcome> PutGroupMetricRuleOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutGroupMetricRuleRequest&, const PutGroupMetricRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutGroupMetricRuleAsyncHandler;
|
||||
@@ -686,6 +721,12 @@ namespace AlibabaCloud
|
||||
DeleteEventRulesOutcome deleteEventRules(const Model::DeleteEventRulesRequest &request)const;
|
||||
void deleteEventRulesAsync(const Model::DeleteEventRulesRequest& request, const DeleteEventRulesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteEventRulesOutcomeCallable deleteEventRulesCallable(const Model::DeleteEventRulesRequest& request) const;
|
||||
DeleteExporterOutputOutcome deleteExporterOutput(const Model::DeleteExporterOutputRequest &request)const;
|
||||
void deleteExporterOutputAsync(const Model::DeleteExporterOutputRequest& request, const DeleteExporterOutputAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteExporterOutputOutcomeCallable deleteExporterOutputCallable(const Model::DeleteExporterOutputRequest& request) const;
|
||||
DeleteExporterRuleOutcome deleteExporterRule(const Model::DeleteExporterRuleRequest &request)const;
|
||||
void deleteExporterRuleAsync(const Model::DeleteExporterRuleRequest& request, const DeleteExporterRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteExporterRuleOutcomeCallable deleteExporterRuleCallable(const Model::DeleteExporterRuleRequest& request) const;
|
||||
DeleteGroupMonitoringAgentProcessOutcome deleteGroupMonitoringAgentProcess(const Model::DeleteGroupMonitoringAgentProcessRequest &request)const;
|
||||
void deleteGroupMonitoringAgentProcessAsync(const Model::DeleteGroupMonitoringAgentProcessRequest& request, const DeleteGroupMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteGroupMonitoringAgentProcessOutcomeCallable deleteGroupMonitoringAgentProcessCallable(const Model::DeleteGroupMonitoringAgentProcessRequest& request) const;
|
||||
@@ -764,6 +805,15 @@ namespace AlibabaCloud
|
||||
DescribeEventRuleTargetListOutcome describeEventRuleTargetList(const Model::DescribeEventRuleTargetListRequest &request)const;
|
||||
void describeEventRuleTargetListAsync(const Model::DescribeEventRuleTargetListRequest& request, const DescribeEventRuleTargetListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeEventRuleTargetListOutcomeCallable describeEventRuleTargetListCallable(const Model::DescribeEventRuleTargetListRequest& request) const;
|
||||
DescribeExporterOutputListOutcome describeExporterOutputList(const Model::DescribeExporterOutputListRequest &request)const;
|
||||
void describeExporterOutputListAsync(const Model::DescribeExporterOutputListRequest& request, const DescribeExporterOutputListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeExporterOutputListOutcomeCallable describeExporterOutputListCallable(const Model::DescribeExporterOutputListRequest& request) const;
|
||||
DescribeExporterRuleListOutcome describeExporterRuleList(const Model::DescribeExporterRuleListRequest &request)const;
|
||||
void describeExporterRuleListAsync(const Model::DescribeExporterRuleListRequest& request, const DescribeExporterRuleListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeExporterRuleListOutcomeCallable describeExporterRuleListCallable(const Model::DescribeExporterRuleListRequest& request) const;
|
||||
DescribeFolderListOutcome describeFolderList(const Model::DescribeFolderListRequest &request)const;
|
||||
void describeFolderListAsync(const Model::DescribeFolderListRequest& request, const DescribeFolderListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeFolderListOutcomeCallable describeFolderListCallable(const Model::DescribeFolderListRequest& request) const;
|
||||
DescribeGroupMonitoringAgentProcessOutcome describeGroupMonitoringAgentProcess(const Model::DescribeGroupMonitoringAgentProcessRequest &request)const;
|
||||
void describeGroupMonitoringAgentProcessAsync(const Model::DescribeGroupMonitoringAgentProcessRequest& request, const DescribeGroupMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeGroupMonitoringAgentProcessOutcomeCallable describeGroupMonitoringAgentProcessCallable(const Model::DescribeGroupMonitoringAgentProcessRequest& request) const;
|
||||
@@ -953,6 +1003,12 @@ namespace AlibabaCloud
|
||||
PutEventRuleTargetsOutcome putEventRuleTargets(const Model::PutEventRuleTargetsRequest &request)const;
|
||||
void putEventRuleTargetsAsync(const Model::PutEventRuleTargetsRequest& request, const PutEventRuleTargetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutEventRuleTargetsOutcomeCallable putEventRuleTargetsCallable(const Model::PutEventRuleTargetsRequest& request) const;
|
||||
PutExporterOutputOutcome putExporterOutput(const Model::PutExporterOutputRequest &request)const;
|
||||
void putExporterOutputAsync(const Model::PutExporterOutputRequest& request, const PutExporterOutputAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutExporterOutputOutcomeCallable putExporterOutputCallable(const Model::PutExporterOutputRequest& request) const;
|
||||
PutExporterRuleOutcome putExporterRule(const Model::PutExporterRuleRequest &request)const;
|
||||
void putExporterRuleAsync(const Model::PutExporterRuleRequest& request, const PutExporterRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutExporterRuleOutcomeCallable putExporterRuleCallable(const Model::PutExporterRuleRequest& request) const;
|
||||
PutGroupMetricRuleOutcome putGroupMetricRule(const Model::PutGroupMetricRuleRequest &request)const;
|
||||
void putGroupMetricRuleAsync(const Model::PutGroupMetricRuleRequest& request, const PutGroupMetricRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutGroupMetricRuleOutcomeCallable putGroupMetricRuleCallable(const Model::PutGroupMetricRuleRequest& request) const;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT AddTagsRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT CreateDynamicTagGroupRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct MatchExpress
|
||||
{
|
||||
std::string tagValue;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT CreateGroupMetricRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct GroupMetricRules
|
||||
{
|
||||
std::string webhook;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT CreateGroupMonitoringAgentProcessRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct AlertConfig
|
||||
{
|
||||
std::string times;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT CreateHostAvailabilityRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct AlertConfigEscalationList
|
||||
{
|
||||
int times;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct AlertTemplates
|
||||
{
|
||||
int period;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupInstancesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Instances
|
||||
{
|
||||
std::string instanceId;
|
||||
|
||||
@@ -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_CMS_MODEL_DELETEEXPORTEROUTPUTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DELETEEXPORTEROUTPUTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT DeleteExporterOutputRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteExporterOutputRequest();
|
||||
~DeleteExporterOutputRequest();
|
||||
|
||||
std::string getDestName()const;
|
||||
void setDestName(const std::string& destName);
|
||||
|
||||
private:
|
||||
std::string destName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEXPORTEROUTPUTREQUEST_H_
|
||||
@@ -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_DELETEEXPORTEROUTPUTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DELETEEXPORTEROUTPUTRESULT_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 DeleteExporterOutputResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteExporterOutputResult();
|
||||
explicit DeleteExporterOutputResult(const std::string &payload);
|
||||
~DeleteExporterOutputResult();
|
||||
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_DELETEEXPORTEROUTPUTRESULT_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_CMS_MODEL_DELETEEXPORTERRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DELETEEXPORTERRULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT DeleteExporterRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DeleteExporterRuleRequest();
|
||||
~DeleteExporterRuleRequest();
|
||||
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
|
||||
private:
|
||||
std::string ruleName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEXPORTERRULEREQUEST_H_
|
||||
@@ -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_DELETEEXPORTERRULERESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DELETEEXPORTERRULERESULT_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 DeleteExporterRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteExporterRuleResult();
|
||||
explicit DeleteExporterRuleResult(const std::string &payload);
|
||||
~DeleteExporterRuleResult();
|
||||
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_DELETEEXPORTERRULERESULT_H_
|
||||
@@ -52,7 +52,6 @@ namespace AlibabaCloud
|
||||
std::string value;
|
||||
std::string webhooks;
|
||||
std::string level;
|
||||
std::string id;
|
||||
std::string preLevel;
|
||||
long lastTime;
|
||||
std::string ruleName;
|
||||
|
||||
@@ -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_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT DescribeExporterOutputListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeExporterOutputListRequest();
|
||||
~DescribeExporterOutputListRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTREQUEST_H_
|
||||
@@ -0,0 +1,76 @@
|
||||
/*
|
||||
* 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_DESCRIBEEXPORTEROUTPUTLISTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTRESULT_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 DescribeExporterOutputListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Datapoint
|
||||
{
|
||||
struct ConfigJson
|
||||
{
|
||||
std::string project;
|
||||
std::string as;
|
||||
std::string endpoint;
|
||||
std::string logstore;
|
||||
std::string ak;
|
||||
};
|
||||
std::string destType;
|
||||
ConfigJson configJson;
|
||||
std::string destName;
|
||||
long createTime;
|
||||
};
|
||||
|
||||
|
||||
DescribeExporterOutputListResult();
|
||||
explicit DescribeExporterOutputListResult(const std::string &payload);
|
||||
~DescribeExporterOutputListResult();
|
||||
std::string getMessage()const;
|
||||
int getPageNumber()const;
|
||||
int getTotal()const;
|
||||
std::vector<Datapoint> getDatapoints()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int pageNumber_;
|
||||
int total_;
|
||||
std::vector<Datapoint> datapoints_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTEROUTPUTLISTRESULT_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_CMS_MODEL_DESCRIBEEXPORTERRULELISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT DescribeExporterRuleListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeExporterRuleListRequest();
|
||||
~DescribeExporterRuleListRequest();
|
||||
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
|
||||
private:
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTREQUEST_H_
|
||||
@@ -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.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTRESULT_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 DescribeExporterRuleListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Datapoint
|
||||
{
|
||||
std::string targetWindows;
|
||||
std::string describe;
|
||||
std::string metricName;
|
||||
long createTime;
|
||||
bool enabled;
|
||||
std::string _namespace;
|
||||
std::string dimension;
|
||||
std::vector<std::string> dstName;
|
||||
std::string ruleName;
|
||||
};
|
||||
|
||||
|
||||
DescribeExporterRuleListResult();
|
||||
explicit DescribeExporterRuleListResult(const std::string &payload);
|
||||
~DescribeExporterRuleListResult();
|
||||
std::string getMessage()const;
|
||||
int getPageNumber()const;
|
||||
int getTotal()const;
|
||||
std::vector<Datapoint> getDatapoints()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int pageNumber_;
|
||||
int total_;
|
||||
std::vector<Datapoint> datapoints_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEXPORTERRULELISTRESULT_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_CMS_MODEL_DESCRIBEFOLDERLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT DescribeFolderListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeFolderListRequest();
|
||||
~DescribeFolderListRequest();
|
||||
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
|
||||
private:
|
||||
std::string appName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTREQUEST_H_
|
||||
@@ -0,0 +1,68 @@
|
||||
/*
|
||||
* 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_DESCRIBEFOLDERLISTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTRESULT_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 DescribeFolderListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Resource
|
||||
{
|
||||
std::string name;
|
||||
long serviceId;
|
||||
};
|
||||
|
||||
|
||||
DescribeFolderListResult();
|
||||
explicit DescribeFolderListResult(const std::string &payload);
|
||||
~DescribeFolderListResult();
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getTotal()const;
|
||||
Resource getResource()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
int total_;
|
||||
Resource resource_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTRESULT_H_
|
||||
@@ -46,6 +46,7 @@ namespace AlibabaCloud
|
||||
std::string getMessage()const;
|
||||
std::vector<Target> getTargets()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
@@ -53,6 +54,7 @@ namespace AlibabaCloud
|
||||
std::string message_;
|
||||
std::vector<Target> targets_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupsRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
@@ -62,6 +63,8 @@ namespace AlibabaCloud
|
||||
void setGroupName(const std::string& groupName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
std::string getServiceId()const;
|
||||
void setServiceId(const std::string& serviceId);
|
||||
|
||||
private:
|
||||
bool selectContactGroups_;
|
||||
@@ -75,6 +78,7 @@ namespace AlibabaCloud
|
||||
std::string groupId_;
|
||||
std::string groupName_;
|
||||
std::string instanceId_;
|
||||
std::string serviceId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,6 +34,28 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct SiteMonitors
|
||||
{
|
||||
struct OptionJson
|
||||
{
|
||||
std::string cookie;
|
||||
int ping_num;
|
||||
long traceroute;
|
||||
float failure_rate;
|
||||
int port;
|
||||
int match_rule;
|
||||
std::string response_format;
|
||||
std::string expect_value;
|
||||
std::string http_method;
|
||||
long time_out;
|
||||
std::string header;
|
||||
std::string response_content;
|
||||
std::string username;
|
||||
int authentication;
|
||||
std::string request_content;
|
||||
std::string dns_server;
|
||||
std::string dns_type;
|
||||
std::string request_format;
|
||||
std::string password;
|
||||
};
|
||||
struct IspCity
|
||||
{
|
||||
std::string ispName;
|
||||
@@ -41,7 +63,7 @@ namespace AlibabaCloud
|
||||
std::string cityName;
|
||||
std::string city;
|
||||
};
|
||||
std::string optionJson;
|
||||
OptionJson optionJson;
|
||||
std::string taskId;
|
||||
std::string address;
|
||||
std::string taskName;
|
||||
|
||||
@@ -34,10 +34,32 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct SiteMonitor
|
||||
{
|
||||
struct OptionsJson
|
||||
{
|
||||
std::string cookie;
|
||||
int ping_num;
|
||||
long traceroute;
|
||||
float failure_rate;
|
||||
int port;
|
||||
int match_rule;
|
||||
std::string response_format;
|
||||
std::string expect_value;
|
||||
std::string http_method;
|
||||
long time_out;
|
||||
std::string header;
|
||||
std::string response_content;
|
||||
std::string username;
|
||||
int authentication;
|
||||
std::string request_content;
|
||||
std::string dns_server;
|
||||
std::string dns_type;
|
||||
std::string request_format;
|
||||
std::string password;
|
||||
};
|
||||
std::string taskId;
|
||||
std::string address;
|
||||
OptionsJson optionsJson;
|
||||
std::string taskName;
|
||||
std::string optionsJson;
|
||||
std::string taskType;
|
||||
std::string createTime;
|
||||
std::string updateTime;
|
||||
|
||||
@@ -38,7 +38,7 @@ namespace AlibabaCloud
|
||||
explicit DescribeSiteMonitorStatisticsResult(const std::string &payload);
|
||||
~DescribeSiteMonitorStatisticsResult();
|
||||
std::string getMessage()const;
|
||||
long getData()const;
|
||||
std::string getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
@@ -46,7 +46,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
long data_;
|
||||
std::string data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
|
||||
@@ -32,13 +32,17 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CMS_EXPORT DisableSiteMonitorsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int count;
|
||||
};
|
||||
|
||||
|
||||
DisableSiteMonitorsResult();
|
||||
explicit DisableSiteMonitorsResult(const std::string &payload);
|
||||
~DisableSiteMonitorsResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
@@ -46,7 +50,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
|
||||
@@ -32,13 +32,17 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CMS_EXPORT EnableSiteMonitorsResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int count;
|
||||
};
|
||||
|
||||
|
||||
EnableSiteMonitorsResult();
|
||||
explicit EnableSiteMonitorsResult(const std::string &payload);
|
||||
~EnableSiteMonitorsResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
@@ -46,7 +50,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT ModifyGroupMonitoringAgentProcessRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct AlertConfig
|
||||
{
|
||||
std::string times;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT ModifyHostAvailabilityRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct AlertConfigEscalationList
|
||||
{
|
||||
int times;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT ModifyMetricRuleTemplateRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct AlertTemplates
|
||||
{
|
||||
int period;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT ModifyMonitorGroupInstancesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Instances
|
||||
{
|
||||
std::string instanceId;
|
||||
|
||||
@@ -32,13 +32,17 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CMS_EXPORT ModifySiteMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Data
|
||||
{
|
||||
int count;
|
||||
};
|
||||
|
||||
|
||||
ModifySiteMonitorResult();
|
||||
explicit ModifySiteMonitorResult(const std::string &payload);
|
||||
~ModifySiteMonitorResult();
|
||||
std::string getMessage()const;
|
||||
std::string getData()const;
|
||||
Data getData()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
|
||||
@@ -46,7 +50,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string data_;
|
||||
Data data_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT PutCustomEventRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct EventInfo
|
||||
{
|
||||
std::string groupId;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT PutCustomMetricRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct MetricList
|
||||
{
|
||||
std::string period;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT PutEventRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct EventPattern
|
||||
{
|
||||
std::vector<std::string> levelList;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT PutEventRuleTargetsRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct WebhookParameters
|
||||
{
|
||||
std::string protocol;
|
||||
|
||||
@@ -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_PUTEXPORTEROUTPUTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTEXPORTEROUTPUTREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT PutExporterOutputRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PutExporterOutputRequest();
|
||||
~PutExporterOutputRequest();
|
||||
|
||||
std::string getDestName()const;
|
||||
void setDestName(const std::string& destName);
|
||||
std::string getConfigJson()const;
|
||||
void setConfigJson(const std::string& configJson);
|
||||
std::string getDestType()const;
|
||||
void setDestType(const std::string& destType);
|
||||
std::string getDesc()const;
|
||||
void setDesc(const std::string& desc);
|
||||
|
||||
private:
|
||||
std::string destName_;
|
||||
std::string configJson_;
|
||||
std::string destType_;
|
||||
std::string desc_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_PUTEXPORTEROUTPUTREQUEST_H_
|
||||
55
cms/include/alibabacloud/cms/model/PutExporterOutputResult.h
Normal file
55
cms/include/alibabacloud/cms/model/PutExporterOutputResult.h
Normal 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_PUTEXPORTEROUTPUTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTEXPORTEROUTPUTRESULT_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 PutExporterOutputResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PutExporterOutputResult();
|
||||
explicit PutExporterOutputResult(const std::string &payload);
|
||||
~PutExporterOutputResult();
|
||||
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_PUTEXPORTEROUTPUTRESULT_H_
|
||||
63
cms/include/alibabacloud/cms/model/PutExporterRuleRequest.h
Normal file
63
cms/include/alibabacloud/cms/model/PutExporterRuleRequest.h
Normal file
@@ -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_CMS_MODEL_PUTEXPORTERRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTEXPORTERRULEREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
#include <alibabacloud/core/RpcServiceRequest.h>
|
||||
#include <alibabacloud/cms/CmsExport.h>
|
||||
|
||||
namespace AlibabaCloud
|
||||
{
|
||||
namespace Cms
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT PutExporterRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PutExporterRuleRequest();
|
||||
~PutExporterRuleRequest();
|
||||
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
std::vector<std::string> getDstNames()const;
|
||||
void setDstNames(const std::vector<std::string>& dstNames);
|
||||
std::string get_Namespace()const;
|
||||
void set_Namespace(const std::string& _namespace);
|
||||
std::string getTargetWindows()const;
|
||||
void setTargetWindows(const std::string& targetWindows);
|
||||
std::string getDescribe()const;
|
||||
void setDescribe(const std::string& describe);
|
||||
std::string getMetricName()const;
|
||||
void setMetricName(const std::string& metricName);
|
||||
|
||||
private:
|
||||
std::string ruleName_;
|
||||
std::vector<std::string> dstNames_;
|
||||
std::string _namespace_;
|
||||
std::string targetWindows_;
|
||||
std::string describe_;
|
||||
std::string metricName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_PUTEXPORTERRULEREQUEST_H_
|
||||
55
cms/include/alibabacloud/cms/model/PutExporterRuleResult.h
Normal file
55
cms/include/alibabacloud/cms/model/PutExporterRuleResult.h
Normal 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_PUTEXPORTERRULERESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTEXPORTERRULERESULT_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 PutExporterRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PutExporterRuleResult();
|
||||
explicit PutExporterRuleResult(const std::string &payload);
|
||||
~PutExporterRuleResult();
|
||||
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_PUTEXPORTERRULERESULT_H_
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT PutMetricRuleTargetsRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Targets
|
||||
{
|
||||
std::string level;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT PutMonitorGroupDynamicRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct GroupRules
|
||||
{
|
||||
std::string filterRelation;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT PutResourceMetricRulesRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Rules
|
||||
{
|
||||
std::string webhook;
|
||||
|
||||
@@ -30,6 +30,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT RemoveTagsRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct Tag
|
||||
{
|
||||
std::string value;
|
||||
|
||||
@@ -771,6 +771,78 @@ CmsClient::DeleteEventRulesOutcomeCallable CmsClient::deleteEventRulesCallable(c
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DeleteExporterOutputOutcome CmsClient::deleteExporterOutput(const DeleteExporterOutputRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteExporterOutputOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteExporterOutputOutcome(DeleteExporterOutputResult(outcome.result()));
|
||||
else
|
||||
return DeleteExporterOutputOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::deleteExporterOutputAsync(const DeleteExporterOutputRequest& request, const DeleteExporterOutputAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteExporterOutput(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DeleteExporterOutputOutcomeCallable CmsClient::deleteExporterOutputCallable(const DeleteExporterOutputRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteExporterOutputOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteExporterOutput(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DeleteExporterRuleOutcome CmsClient::deleteExporterRule(const DeleteExporterRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteExporterRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteExporterRuleOutcome(DeleteExporterRuleResult(outcome.result()));
|
||||
else
|
||||
return DeleteExporterRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::deleteExporterRuleAsync(const DeleteExporterRuleRequest& request, const DeleteExporterRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteExporterRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DeleteExporterRuleOutcomeCallable CmsClient::deleteExporterRuleCallable(const DeleteExporterRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteExporterRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteExporterRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DeleteGroupMonitoringAgentProcessOutcome CmsClient::deleteGroupMonitoringAgentProcess(const DeleteGroupMonitoringAgentProcessRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1707,6 +1779,114 @@ CmsClient::DescribeEventRuleTargetListOutcomeCallable CmsClient::describeEventRu
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeExporterOutputListOutcome CmsClient::describeExporterOutputList(const DescribeExporterOutputListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeExporterOutputListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeExporterOutputListOutcome(DescribeExporterOutputListResult(outcome.result()));
|
||||
else
|
||||
return DescribeExporterOutputListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::describeExporterOutputListAsync(const DescribeExporterOutputListRequest& request, const DescribeExporterOutputListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeExporterOutputList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DescribeExporterOutputListOutcomeCallable CmsClient::describeExporterOutputListCallable(const DescribeExporterOutputListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeExporterOutputListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeExporterOutputList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeExporterRuleListOutcome CmsClient::describeExporterRuleList(const DescribeExporterRuleListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeExporterRuleListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeExporterRuleListOutcome(DescribeExporterRuleListResult(outcome.result()));
|
||||
else
|
||||
return DescribeExporterRuleListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::describeExporterRuleListAsync(const DescribeExporterRuleListRequest& request, const DescribeExporterRuleListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeExporterRuleList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DescribeExporterRuleListOutcomeCallable CmsClient::describeExporterRuleListCallable(const DescribeExporterRuleListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeExporterRuleListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeExporterRuleList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeFolderListOutcome CmsClient::describeFolderList(const DescribeFolderListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeFolderListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeFolderListOutcome(DescribeFolderListResult(outcome.result()));
|
||||
else
|
||||
return DescribeFolderListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::describeFolderListAsync(const DescribeFolderListRequest& request, const DescribeFolderListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeFolderList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DescribeFolderListOutcomeCallable CmsClient::describeFolderListCallable(const DescribeFolderListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeFolderListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeFolderList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeGroupMonitoringAgentProcessOutcome CmsClient::describeGroupMonitoringAgentProcess(const DescribeGroupMonitoringAgentProcessRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3975,6 +4155,78 @@ CmsClient::PutEventRuleTargetsOutcomeCallable CmsClient::putEventRuleTargetsCall
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutExporterOutputOutcome CmsClient::putExporterOutput(const PutExporterOutputRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutExporterOutputOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PutExporterOutputOutcome(PutExporterOutputResult(outcome.result()));
|
||||
else
|
||||
return PutExporterOutputOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::putExporterOutputAsync(const PutExporterOutputRequest& request, const PutExporterOutputAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, putExporterOutput(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::PutExporterOutputOutcomeCallable CmsClient::putExporterOutputCallable(const PutExporterOutputRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PutExporterOutputOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->putExporterOutput(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutExporterRuleOutcome CmsClient::putExporterRule(const PutExporterRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutExporterRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PutExporterRuleOutcome(PutExporterRuleResult(outcome.result()));
|
||||
else
|
||||
return PutExporterRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::putExporterRuleAsync(const PutExporterRuleRequest& request, const PutExporterRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, putExporterRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::PutExporterRuleOutcomeCallable CmsClient::putExporterRuleCallable(const PutExporterRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PutExporterRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->putExporterRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutGroupMetricRuleOutcome CmsClient::putGroupMetricRule(const PutGroupMetricRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -36,7 +36,7 @@ void AddTagsRequest::setGroupIds(const std::vector<std::string>& groupIds)
|
||||
{
|
||||
groupIds_ = groupIds;
|
||||
for(int dep1 = 0; dep1!= groupIds.size(); dep1++) {
|
||||
setCoreParameter("GroupIds."+ std::to_string(dep1), groupIds.at(dep1));
|
||||
setParameter("GroupIds."+ std::to_string(dep1), groupIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -50,9 +50,9 @@ void AddTagsRequest::setTag(const std::vector<Tag>& tag)
|
||||
tag_ = tag;
|
||||
for(int dep1 = 0; dep1!= tag.size(); dep1++) {
|
||||
auto tagObj = tag.at(dep1);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1);
|
||||
setCoreParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setCoreParameter(tagObjStr + ".Key", tagObj.key);
|
||||
std::string tagObjStr = "Tag." + std::to_string(dep1 + 1);
|
||||
setParameter(tagObjStr + ".Value", tagObj.value);
|
||||
setParameter(tagObjStr + ".Key", tagObj.key);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string ApplyMetricRuleTemplateRequest::getApplyMode()const
|
||||
void ApplyMetricRuleTemplateRequest::setApplyMode(const std::string& applyMode)
|
||||
{
|
||||
applyMode_ = applyMode;
|
||||
setCoreParameter("ApplyMode", applyMode);
|
||||
setParameter("ApplyMode", applyMode);
|
||||
}
|
||||
|
||||
std::string ApplyMetricRuleTemplateRequest::getWebhook()const
|
||||
@@ -46,7 +46,7 @@ std::string ApplyMetricRuleTemplateRequest::getWebhook()const
|
||||
void ApplyMetricRuleTemplateRequest::setWebhook(const std::string& webhook)
|
||||
{
|
||||
webhook_ = webhook;
|
||||
setCoreParameter("Webhook", webhook);
|
||||
setParameter("Webhook", webhook);
|
||||
}
|
||||
|
||||
std::string ApplyMetricRuleTemplateRequest::getTemplateIds()const
|
||||
@@ -57,7 +57,7 @@ std::string ApplyMetricRuleTemplateRequest::getTemplateIds()const
|
||||
void ApplyMetricRuleTemplateRequest::setTemplateIds(const std::string& templateIds)
|
||||
{
|
||||
templateIds_ = templateIds;
|
||||
setCoreParameter("TemplateIds", templateIds);
|
||||
setParameter("TemplateIds", templateIds);
|
||||
}
|
||||
|
||||
long ApplyMetricRuleTemplateRequest::getEnableEndTime()const
|
||||
@@ -68,7 +68,7 @@ long ApplyMetricRuleTemplateRequest::getEnableEndTime()const
|
||||
void ApplyMetricRuleTemplateRequest::setEnableEndTime(long enableEndTime)
|
||||
{
|
||||
enableEndTime_ = enableEndTime;
|
||||
setCoreParameter("EnableEndTime", std::to_string(enableEndTime));
|
||||
setParameter("EnableEndTime", std::to_string(enableEndTime));
|
||||
}
|
||||
|
||||
long ApplyMetricRuleTemplateRequest::getGroupId()const
|
||||
@@ -79,7 +79,7 @@ long ApplyMetricRuleTemplateRequest::getGroupId()const
|
||||
void ApplyMetricRuleTemplateRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
long ApplyMetricRuleTemplateRequest::getNotifyLevel()const
|
||||
@@ -90,7 +90,7 @@ long ApplyMetricRuleTemplateRequest::getNotifyLevel()const
|
||||
void ApplyMetricRuleTemplateRequest::setNotifyLevel(long notifyLevel)
|
||||
{
|
||||
notifyLevel_ = notifyLevel;
|
||||
setCoreParameter("NotifyLevel", std::to_string(notifyLevel));
|
||||
setParameter("NotifyLevel", std::to_string(notifyLevel));
|
||||
}
|
||||
|
||||
long ApplyMetricRuleTemplateRequest::getEnableStartTime()const
|
||||
@@ -101,7 +101,7 @@ long ApplyMetricRuleTemplateRequest::getEnableStartTime()const
|
||||
void ApplyMetricRuleTemplateRequest::setEnableStartTime(long enableStartTime)
|
||||
{
|
||||
enableStartTime_ = enableStartTime;
|
||||
setCoreParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
setParameter("EnableStartTime", std::to_string(enableStartTime));
|
||||
}
|
||||
|
||||
long ApplyMetricRuleTemplateRequest::getSilenceTime()const
|
||||
@@ -112,6 +112,6 @@ long ApplyMetricRuleTemplateRequest::getSilenceTime()const
|
||||
void ApplyMetricRuleTemplateRequest::setSilenceTime(long silenceTime)
|
||||
{
|
||||
silenceTime_ = silenceTime;
|
||||
setCoreParameter("SilenceTime", std::to_string(silenceTime));
|
||||
setParameter("SilenceTime", std::to_string(silenceTime));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ bool CreateDynamicTagGroupRequest::getEnableSubscribeEvent()const
|
||||
void CreateDynamicTagGroupRequest::setEnableSubscribeEvent(bool enableSubscribeEvent)
|
||||
{
|
||||
enableSubscribeEvent_ = enableSubscribeEvent;
|
||||
setCoreParameter("EnableSubscribeEvent", enableSubscribeEvent ? "true" : "false");
|
||||
setParameter("EnableSubscribeEvent", enableSubscribeEvent ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDynamicTagGroupRequest::getMatchExpressFilterRelation()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateDynamicTagGroupRequest::getMatchExpressFilterRelation()const
|
||||
void CreateDynamicTagGroupRequest::setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation)
|
||||
{
|
||||
matchExpressFilterRelation_ = matchExpressFilterRelation;
|
||||
setCoreParameter("MatchExpressFilterRelation", matchExpressFilterRelation);
|
||||
setParameter("MatchExpressFilterRelation", matchExpressFilterRelation);
|
||||
}
|
||||
|
||||
bool CreateDynamicTagGroupRequest::getEnableInstallAgent()const
|
||||
@@ -57,7 +57,7 @@ bool CreateDynamicTagGroupRequest::getEnableInstallAgent()const
|
||||
void CreateDynamicTagGroupRequest::setEnableInstallAgent(bool enableInstallAgent)
|
||||
{
|
||||
enableInstallAgent_ = enableInstallAgent;
|
||||
setCoreParameter("EnableInstallAgent", enableInstallAgent ? "true" : "false");
|
||||
setParameter("EnableInstallAgent", enableInstallAgent ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDynamicTagGroupRequest::getRegionId()const
|
||||
@@ -68,7 +68,7 @@ std::string CreateDynamicTagGroupRequest::getRegionId()const
|
||||
void CreateDynamicTagGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setCoreParameter("RegionId", regionId);
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateDynamicTagGroupRequest::MatchExpress> CreateDynamicTagGroupRequest::getMatchExpress()const
|
||||
@@ -81,9 +81,9 @@ void CreateDynamicTagGroupRequest::setMatchExpress(const std::vector<MatchExpres
|
||||
matchExpress_ = matchExpress;
|
||||
for(int dep1 = 0; dep1!= matchExpress.size(); dep1++) {
|
||||
auto matchExpressObj = matchExpress.at(dep1);
|
||||
std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1);
|
||||
setCoreParameter(matchExpressObjStr + ".TagValue", matchExpressObj.tagValue);
|
||||
setCoreParameter(matchExpressObjStr + ".TagValueMatchFunction", matchExpressObj.tagValueMatchFunction);
|
||||
std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1 + 1);
|
||||
setParameter(matchExpressObjStr + ".TagValue", matchExpressObj.tagValue);
|
||||
setParameter(matchExpressObjStr + ".TagValueMatchFunction", matchExpressObj.tagValueMatchFunction);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -96,7 +96,7 @@ void CreateDynamicTagGroupRequest::setContactGroupList(const std::vector<std::st
|
||||
{
|
||||
contactGroupList_ = contactGroupList;
|
||||
for(int dep1 = 0; dep1!= contactGroupList.size(); dep1++) {
|
||||
setCoreParameter("ContactGroupList."+ std::to_string(dep1), contactGroupList.at(dep1));
|
||||
setParameter("ContactGroupList."+ std::to_string(dep1), contactGroupList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -109,7 +109,7 @@ void CreateDynamicTagGroupRequest::setTemplateIdList(const std::vector<std::stri
|
||||
{
|
||||
templateIdList_ = templateIdList;
|
||||
for(int dep1 = 0; dep1!= templateIdList.size(); dep1++) {
|
||||
setCoreParameter("TemplateIdList."+ std::to_string(dep1), templateIdList.at(dep1));
|
||||
setParameter("TemplateIdList."+ std::to_string(dep1), templateIdList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -121,6 +121,6 @@ std::string CreateDynamicTagGroupRequest::getTagKey()const
|
||||
void CreateDynamicTagGroupRequest::setTagKey(const std::string& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
setCoreParameter("TagKey", tagKey);
|
||||
setParameter("TagKey", tagKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ long CreateGroupMetricRulesRequest::getGroupId()const
|
||||
void CreateGroupMetricRulesRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::vector<CreateGroupMetricRulesRequest::GroupMetricRules> CreateGroupMetricRulesRequest::getGroupMetricRules()const
|
||||
@@ -48,32 +48,32 @@ void CreateGroupMetricRulesRequest::setGroupMetricRules(const std::vector<GroupM
|
||||
groupMetricRules_ = groupMetricRules;
|
||||
for(int dep1 = 0; dep1!= groupMetricRules.size(); dep1++) {
|
||||
auto groupMetricRulesObj = groupMetricRules.at(dep1);
|
||||
std::string groupMetricRulesObjStr = "GroupMetricRules." + std::to_string(dep1);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".Webhook", groupMetricRulesObj.webhook);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnComparisonOperator", groupMetricRulesObj.escalationsWarnComparisonOperator);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".RuleName", groupMetricRulesObj.ruleName);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoStatistics", groupMetricRulesObj.escalationsInfoStatistics);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EffectiveInterval", groupMetricRulesObj.effectiveInterval);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoComparisonOperator", groupMetricRulesObj.escalationsInfoComparisonOperator);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".NoEffectiveInterval", groupMetricRulesObj.noEffectiveInterval);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EmailSubject", groupMetricRulesObj.emailSubject);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".SilenceTime", std::to_string(groupMetricRulesObj.silenceTime));
|
||||
setCoreParameter(groupMetricRulesObjStr + ".MetricName", groupMetricRulesObj.metricName);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnTimes", std::to_string(groupMetricRulesObj.escalationsWarnTimes));
|
||||
setCoreParameter(groupMetricRulesObjStr + ".Period", groupMetricRulesObj.period);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnThreshold", groupMetricRulesObj.escalationsWarnThreshold);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalStatistics", groupMetricRulesObj.escalationsCriticalStatistics);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoTimes", std::to_string(groupMetricRulesObj.escalationsInfoTimes));
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalTimes", std::to_string(groupMetricRulesObj.escalationsCriticalTimes));
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnStatistics", groupMetricRulesObj.escalationsWarnStatistics);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoThreshold", groupMetricRulesObj.escalationsInfoThreshold);
|
||||
setCoreParameter(groupMetricRulesObjStr + "._Namespace", groupMetricRulesObj._namespace);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".Interval", groupMetricRulesObj.interval);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".Category", groupMetricRulesObj.category);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".RuleId", groupMetricRulesObj.ruleId);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalComparisonOperator", groupMetricRulesObj.escalationsCriticalComparisonOperator);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalThreshold", groupMetricRulesObj.escalationsCriticalThreshold);
|
||||
setCoreParameter(groupMetricRulesObjStr + ".Dimensions", groupMetricRulesObj.dimensions);
|
||||
std::string groupMetricRulesObjStr = "GroupMetricRules." + std::to_string(dep1 + 1);
|
||||
setParameter(groupMetricRulesObjStr + ".Webhook", groupMetricRulesObj.webhook);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsWarnComparisonOperator", groupMetricRulesObj.escalationsWarnComparisonOperator);
|
||||
setParameter(groupMetricRulesObjStr + ".RuleName", groupMetricRulesObj.ruleName);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsInfoStatistics", groupMetricRulesObj.escalationsInfoStatistics);
|
||||
setParameter(groupMetricRulesObjStr + ".EffectiveInterval", groupMetricRulesObj.effectiveInterval);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsInfoComparisonOperator", groupMetricRulesObj.escalationsInfoComparisonOperator);
|
||||
setParameter(groupMetricRulesObjStr + ".NoEffectiveInterval", groupMetricRulesObj.noEffectiveInterval);
|
||||
setParameter(groupMetricRulesObjStr + ".EmailSubject", groupMetricRulesObj.emailSubject);
|
||||
setParameter(groupMetricRulesObjStr + ".SilenceTime", std::to_string(groupMetricRulesObj.silenceTime));
|
||||
setParameter(groupMetricRulesObjStr + ".MetricName", groupMetricRulesObj.metricName);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsWarnTimes", std::to_string(groupMetricRulesObj.escalationsWarnTimes));
|
||||
setParameter(groupMetricRulesObjStr + ".Period", groupMetricRulesObj.period);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsWarnThreshold", groupMetricRulesObj.escalationsWarnThreshold);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsCriticalStatistics", groupMetricRulesObj.escalationsCriticalStatistics);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsInfoTimes", std::to_string(groupMetricRulesObj.escalationsInfoTimes));
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsCriticalTimes", std::to_string(groupMetricRulesObj.escalationsCriticalTimes));
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsWarnStatistics", groupMetricRulesObj.escalationsWarnStatistics);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsInfoThreshold", groupMetricRulesObj.escalationsInfoThreshold);
|
||||
setParameter(groupMetricRulesObjStr + "._Namespace", groupMetricRulesObj._namespace);
|
||||
setParameter(groupMetricRulesObjStr + ".Interval", groupMetricRulesObj.interval);
|
||||
setParameter(groupMetricRulesObjStr + ".Category", groupMetricRulesObj.category);
|
||||
setParameter(groupMetricRulesObjStr + ".RuleId", groupMetricRulesObj.ruleId);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsCriticalComparisonOperator", groupMetricRulesObj.escalationsCriticalComparisonOperator);
|
||||
setParameter(groupMetricRulesObjStr + ".EscalationsCriticalThreshold", groupMetricRulesObj.escalationsCriticalThreshold);
|
||||
setParameter(groupMetricRulesObjStr + ".Dimensions", groupMetricRulesObj.dimensions);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -37,16 +37,16 @@ void CreateGroupMonitoringAgentProcessRequest::setAlertConfig(const std::vector<
|
||||
alertConfig_ = alertConfig;
|
||||
for(int dep1 = 0; dep1!= alertConfig.size(); dep1++) {
|
||||
auto alertConfigObj = alertConfig.at(dep1);
|
||||
std::string alertConfigObjStr = "AlertConfig." + std::to_string(dep1);
|
||||
setCoreParameter(alertConfigObjStr + ".Times", alertConfigObj.times);
|
||||
setCoreParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval);
|
||||
setCoreParameter(alertConfigObjStr + ".Webhook", alertConfigObj.webhook);
|
||||
setCoreParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime);
|
||||
setCoreParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold);
|
||||
setCoreParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval);
|
||||
setCoreParameter(alertConfigObjStr + ".ComparisonOperator", alertConfigObj.comparisonOperator);
|
||||
setCoreParameter(alertConfigObjStr + ".EscalationsLevel", alertConfigObj.escalationsLevel);
|
||||
setCoreParameter(alertConfigObjStr + ".Statistics", alertConfigObj.statistics);
|
||||
std::string alertConfigObjStr = "AlertConfig." + std::to_string(dep1 + 1);
|
||||
setParameter(alertConfigObjStr + ".Times", alertConfigObj.times);
|
||||
setParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval);
|
||||
setParameter(alertConfigObjStr + ".Webhook", alertConfigObj.webhook);
|
||||
setParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime);
|
||||
setParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold);
|
||||
setParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval);
|
||||
setParameter(alertConfigObjStr + ".ComparisonOperator", alertConfigObj.comparisonOperator);
|
||||
setParameter(alertConfigObjStr + ".EscalationsLevel", alertConfigObj.escalationsLevel);
|
||||
setParameter(alertConfigObjStr + ".Statistics", alertConfigObj.statistics);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -58,7 +58,7 @@ std::string CreateGroupMonitoringAgentProcessRequest::getGroupId()const
|
||||
void CreateGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string CreateGroupMonitoringAgentProcessRequest::getProcessName()const
|
||||
@@ -69,7 +69,7 @@ std::string CreateGroupMonitoringAgentProcessRequest::getProcessName()const
|
||||
void CreateGroupMonitoringAgentProcessRequest::setProcessName(const std::string& processName)
|
||||
{
|
||||
processName_ = processName;
|
||||
setCoreParameter("ProcessName", processName);
|
||||
setParameter("ProcessName", processName);
|
||||
}
|
||||
|
||||
std::string CreateGroupMonitoringAgentProcessRequest::getMatchExpressFilterRelation()const
|
||||
@@ -80,7 +80,7 @@ std::string CreateGroupMonitoringAgentProcessRequest::getMatchExpressFilterRelat
|
||||
void CreateGroupMonitoringAgentProcessRequest::setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation)
|
||||
{
|
||||
matchExpressFilterRelation_ = matchExpressFilterRelation;
|
||||
setCoreParameter("MatchExpressFilterRelation", matchExpressFilterRelation);
|
||||
setParameter("MatchExpressFilterRelation", matchExpressFilterRelation);
|
||||
}
|
||||
|
||||
std::vector<CreateGroupMonitoringAgentProcessRequest::MatchExpress> CreateGroupMonitoringAgentProcessRequest::getMatchExpress()const
|
||||
@@ -93,10 +93,10 @@ void CreateGroupMonitoringAgentProcessRequest::setMatchExpress(const std::vector
|
||||
matchExpress_ = matchExpress;
|
||||
for(int dep1 = 0; dep1!= matchExpress.size(); dep1++) {
|
||||
auto matchExpressObj = matchExpress.at(dep1);
|
||||
std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1);
|
||||
setCoreParameter(matchExpressObjStr + ".Function", matchExpressObj.function);
|
||||
setCoreParameter(matchExpressObjStr + ".Name", matchExpressObj.name);
|
||||
setCoreParameter(matchExpressObjStr + ".Value", matchExpressObj.value);
|
||||
std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1 + 1);
|
||||
setParameter(matchExpressObjStr + ".Function", matchExpressObj.function);
|
||||
setParameter(matchExpressObjStr + ".Name", matchExpressObj.name);
|
||||
setParameter(matchExpressObjStr + ".Value", matchExpressObj.value);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateHostAvailabilityRequest::getTaskOptionHttpMethod()const
|
||||
void CreateHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod)
|
||||
{
|
||||
taskOptionHttpMethod_ = taskOptionHttpMethod;
|
||||
setCoreParameter("TaskOptionHttpMethod", taskOptionHttpMethod);
|
||||
setParameter("TaskOptionHttpMethod", taskOptionHttpMethod);
|
||||
}
|
||||
|
||||
std::vector<CreateHostAvailabilityRequest::AlertConfigEscalationList> CreateHostAvailabilityRequest::getAlertConfigEscalationList()const
|
||||
@@ -48,12 +48,12 @@ void CreateHostAvailabilityRequest::setAlertConfigEscalationList(const std::vect
|
||||
alertConfigEscalationList_ = alertConfigEscalationList;
|
||||
for(int dep1 = 0; dep1!= alertConfigEscalationList.size(); dep1++) {
|
||||
auto alertConfigEscalationListObj = alertConfigEscalationList.at(dep1);
|
||||
std::string alertConfigEscalationListObjStr = "AlertConfigEscalationList." + std::to_string(dep1);
|
||||
setCoreParameter(alertConfigEscalationListObjStr + ".Times", std::to_string(alertConfigEscalationListObj.times));
|
||||
setCoreParameter(alertConfigEscalationListObjStr + ".MetricName", alertConfigEscalationListObj.metricName);
|
||||
setCoreParameter(alertConfigEscalationListObjStr + ".Value", alertConfigEscalationListObj.value);
|
||||
setCoreParameter(alertConfigEscalationListObjStr + "._Operator", alertConfigEscalationListObj._operator);
|
||||
setCoreParameter(alertConfigEscalationListObjStr + ".Aggregate", alertConfigEscalationListObj.aggregate);
|
||||
std::string alertConfigEscalationListObjStr = "AlertConfigEscalationList." + std::to_string(dep1 + 1);
|
||||
setParameter(alertConfigEscalationListObjStr + ".Times", std::to_string(alertConfigEscalationListObj.times));
|
||||
setParameter(alertConfigEscalationListObjStr + ".MetricName", alertConfigEscalationListObj.metricName);
|
||||
setParameter(alertConfigEscalationListObjStr + ".Value", alertConfigEscalationListObj.value);
|
||||
setParameter(alertConfigEscalationListObjStr + "._Operator", alertConfigEscalationListObj._operator);
|
||||
setParameter(alertConfigEscalationListObjStr + ".Aggregate", alertConfigEscalationListObj.aggregate);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -65,7 +65,7 @@ std::string CreateHostAvailabilityRequest::getTaskName()const
|
||||
void CreateHostAvailabilityRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setCoreParameter("TaskName", taskName);
|
||||
setParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
int CreateHostAvailabilityRequest::getAlertConfigSilenceTime()const
|
||||
@@ -76,7 +76,7 @@ int CreateHostAvailabilityRequest::getAlertConfigSilenceTime()const
|
||||
void CreateHostAvailabilityRequest::setAlertConfigSilenceTime(int alertConfigSilenceTime)
|
||||
{
|
||||
alertConfigSilenceTime_ = alertConfigSilenceTime;
|
||||
setCoreParameter("AlertConfigSilenceTime", std::to_string(alertConfigSilenceTime));
|
||||
setParameter("AlertConfigSilenceTime", std::to_string(alertConfigSilenceTime));
|
||||
}
|
||||
|
||||
std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseCharset()const
|
||||
@@ -87,7 +87,7 @@ std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseCharset()con
|
||||
void CreateHostAvailabilityRequest::setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset)
|
||||
{
|
||||
taskOptionHttpResponseCharset_ = taskOptionHttpResponseCharset;
|
||||
setCoreParameter("TaskOptionHttpResponseCharset", taskOptionHttpResponseCharset);
|
||||
setParameter("TaskOptionHttpResponseCharset", taskOptionHttpResponseCharset);
|
||||
}
|
||||
|
||||
bool CreateHostAvailabilityRequest::getTaskOptionHttpNegative()const
|
||||
@@ -98,7 +98,7 @@ bool CreateHostAvailabilityRequest::getTaskOptionHttpNegative()const
|
||||
void CreateHostAvailabilityRequest::setTaskOptionHttpNegative(bool taskOptionHttpNegative)
|
||||
{
|
||||
taskOptionHttpNegative_ = taskOptionHttpNegative;
|
||||
setCoreParameter("TaskOptionHttpNegative", taskOptionHttpNegative ? "true" : "false");
|
||||
setParameter("TaskOptionHttpNegative", taskOptionHttpNegative ? "true" : "false");
|
||||
}
|
||||
|
||||
int CreateHostAvailabilityRequest::getAlertConfigNotifyType()const
|
||||
@@ -109,7 +109,7 @@ int CreateHostAvailabilityRequest::getAlertConfigNotifyType()const
|
||||
void CreateHostAvailabilityRequest::setAlertConfigNotifyType(int alertConfigNotifyType)
|
||||
{
|
||||
alertConfigNotifyType_ = alertConfigNotifyType;
|
||||
setCoreParameter("AlertConfigNotifyType", std::to_string(alertConfigNotifyType));
|
||||
setParameter("AlertConfigNotifyType", std::to_string(alertConfigNotifyType));
|
||||
}
|
||||
|
||||
std::string CreateHostAvailabilityRequest::getTaskOptionTelnetOrPingHost()const
|
||||
@@ -120,7 +120,7 @@ std::string CreateHostAvailabilityRequest::getTaskOptionTelnetOrPingHost()const
|
||||
void CreateHostAvailabilityRequest::setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost)
|
||||
{
|
||||
taskOptionTelnetOrPingHost_ = taskOptionTelnetOrPingHost;
|
||||
setCoreParameter("TaskOptionTelnetOrPingHost", taskOptionTelnetOrPingHost);
|
||||
setParameter("TaskOptionTelnetOrPingHost", taskOptionTelnetOrPingHost);
|
||||
}
|
||||
|
||||
std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseMatchContent()const
|
||||
@@ -131,7 +131,7 @@ std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseMatchContent
|
||||
void CreateHostAvailabilityRequest::setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent)
|
||||
{
|
||||
taskOptionHttpResponseMatchContent_ = taskOptionHttpResponseMatchContent;
|
||||
setCoreParameter("TaskOptionHttpResponseMatchContent", taskOptionHttpResponseMatchContent);
|
||||
setParameter("TaskOptionHttpResponseMatchContent", taskOptionHttpResponseMatchContent);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateHostAvailabilityRequest::getInstanceList()const
|
||||
@@ -143,7 +143,7 @@ void CreateHostAvailabilityRequest::setInstanceList(const std::vector<std::strin
|
||||
{
|
||||
instanceList_ = instanceList;
|
||||
for(int dep1 = 0; dep1!= instanceList.size(); dep1++) {
|
||||
setCoreParameter("InstanceList."+ std::to_string(dep1), instanceList.at(dep1));
|
||||
setParameter("InstanceList."+ std::to_string(dep1), instanceList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -155,7 +155,7 @@ std::string CreateHostAvailabilityRequest::getTaskType()const
|
||||
void CreateHostAvailabilityRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setCoreParameter("TaskType", taskType);
|
||||
setParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
long CreateHostAvailabilityRequest::getGroupId()const
|
||||
@@ -166,7 +166,7 @@ long CreateHostAvailabilityRequest::getGroupId()const
|
||||
void CreateHostAvailabilityRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
int CreateHostAvailabilityRequest::getAlertConfigEndTime()const
|
||||
@@ -177,7 +177,7 @@ int CreateHostAvailabilityRequest::getAlertConfigEndTime()const
|
||||
void CreateHostAvailabilityRequest::setAlertConfigEndTime(int alertConfigEndTime)
|
||||
{
|
||||
alertConfigEndTime_ = alertConfigEndTime;
|
||||
setCoreParameter("AlertConfigEndTime", std::to_string(alertConfigEndTime));
|
||||
setParameter("AlertConfigEndTime", std::to_string(alertConfigEndTime));
|
||||
}
|
||||
|
||||
std::string CreateHostAvailabilityRequest::getTaskOptionHttpURI()const
|
||||
@@ -188,7 +188,7 @@ std::string CreateHostAvailabilityRequest::getTaskOptionHttpURI()const
|
||||
void CreateHostAvailabilityRequest::setTaskOptionHttpURI(const std::string& taskOptionHttpURI)
|
||||
{
|
||||
taskOptionHttpURI_ = taskOptionHttpURI;
|
||||
setCoreParameter("TaskOptionHttpURI", taskOptionHttpURI);
|
||||
setParameter("TaskOptionHttpURI", taskOptionHttpURI);
|
||||
}
|
||||
|
||||
std::string CreateHostAvailabilityRequest::getTaskScope()const
|
||||
@@ -199,7 +199,7 @@ std::string CreateHostAvailabilityRequest::getTaskScope()const
|
||||
void CreateHostAvailabilityRequest::setTaskScope(const std::string& taskScope)
|
||||
{
|
||||
taskScope_ = taskScope;
|
||||
setCoreParameter("TaskScope", taskScope);
|
||||
setParameter("TaskScope", taskScope);
|
||||
}
|
||||
|
||||
int CreateHostAvailabilityRequest::getAlertConfigStartTime()const
|
||||
@@ -210,7 +210,7 @@ int CreateHostAvailabilityRequest::getAlertConfigStartTime()const
|
||||
void CreateHostAvailabilityRequest::setAlertConfigStartTime(int alertConfigStartTime)
|
||||
{
|
||||
alertConfigStartTime_ = alertConfigStartTime;
|
||||
setCoreParameter("AlertConfigStartTime", std::to_string(alertConfigStartTime));
|
||||
setParameter("AlertConfigStartTime", std::to_string(alertConfigStartTime));
|
||||
}
|
||||
|
||||
std::string CreateHostAvailabilityRequest::getAlertConfigWebHook()const
|
||||
@@ -221,6 +221,6 @@ std::string CreateHostAvailabilityRequest::getAlertConfigWebHook()const
|
||||
void CreateHostAvailabilityRequest::setAlertConfigWebHook(const std::string& alertConfigWebHook)
|
||||
{
|
||||
alertConfigWebHook_ = alertConfigWebHook;
|
||||
setCoreParameter("AlertConfigWebHook", alertConfigWebHook);
|
||||
setParameter("AlertConfigWebHook", alertConfigWebHook);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::CreateMetricRuleResourcesRequest;
|
||||
CreateMetricRuleResourcesRequest::CreateMetricRuleResourcesRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "CreateMetricRuleResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMetricRuleResourcesRequest::~CreateMetricRuleResourcesRequest()
|
||||
@@ -35,7 +35,7 @@ std::string CreateMetricRuleResourcesRequest::getResources()const
|
||||
void CreateMetricRuleResourcesRequest::setResources(const std::string& resources)
|
||||
{
|
||||
resources_ = resources;
|
||||
setCoreParameter("Resources", resources);
|
||||
setParameter("Resources", resources);
|
||||
}
|
||||
|
||||
std::string CreateMetricRuleResourcesRequest::getRuleId()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateMetricRuleResourcesRequest::getRuleId()const
|
||||
void CreateMetricRuleResourcesRequest::setRuleId(const std::string& ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", ruleId);
|
||||
setParameter("RuleId", ruleId);
|
||||
}
|
||||
|
||||
std::string CreateMetricRuleResourcesRequest::getOverwrite()const
|
||||
@@ -57,6 +57,6 @@ std::string CreateMetricRuleResourcesRequest::getOverwrite()const
|
||||
void CreateMetricRuleResourcesRequest::setOverwrite(const std::string& overwrite)
|
||||
{
|
||||
overwrite_ = overwrite;
|
||||
setCoreParameter("Overwrite", overwrite);
|
||||
setParameter("Overwrite", overwrite);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateMetricRuleTemplateRequest::getDescription()const
|
||||
void CreateMetricRuleTemplateRequest::setDescription(const std::string& description)
|
||||
{
|
||||
description_ = description;
|
||||
setCoreParameter("Description", description);
|
||||
setParameter("Description", description);
|
||||
}
|
||||
|
||||
std::string CreateMetricRuleTemplateRequest::getName()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateMetricRuleTemplateRequest::getName()const
|
||||
void CreateMetricRuleTemplateRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
std::vector<CreateMetricRuleTemplateRequest::AlertTemplates> CreateMetricRuleTemplateRequest::getAlertTemplates()const
|
||||
@@ -59,26 +59,26 @@ void CreateMetricRuleTemplateRequest::setAlertTemplates(const std::vector<AlertT
|
||||
alertTemplates_ = alertTemplates;
|
||||
for(int dep1 = 0; dep1!= alertTemplates.size(); dep1++) {
|
||||
auto alertTemplatesObj = alertTemplates.at(dep1);
|
||||
std::string alertTemplatesObjStr = "AlertTemplates." + std::to_string(dep1);
|
||||
setCoreParameter(alertTemplatesObjStr + ".Period", std::to_string(alertTemplatesObj.period));
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnThreshold", alertTemplatesObj.escalationsWarnThreshold);
|
||||
setCoreParameter(alertTemplatesObjStr + ".Webhook", alertTemplatesObj.webhook);
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnComparisonOperator", alertTemplatesObj.escalationsWarnComparisonOperator);
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalStatistics", alertTemplatesObj.escalationsCriticalStatistics);
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoTimes", std::to_string(alertTemplatesObj.escalationsInfoTimes));
|
||||
setCoreParameter(alertTemplatesObjStr + ".RuleName", alertTemplatesObj.ruleName);
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoStatistics", alertTemplatesObj.escalationsInfoStatistics);
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalTimes", std::to_string(alertTemplatesObj.escalationsCriticalTimes));
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoComparisonOperator", alertTemplatesObj.escalationsInfoComparisonOperator);
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnStatistics", alertTemplatesObj.escalationsWarnStatistics);
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoThreshold", alertTemplatesObj.escalationsInfoThreshold);
|
||||
setCoreParameter(alertTemplatesObjStr + "._Namespace", alertTemplatesObj._namespace);
|
||||
setCoreParameter(alertTemplatesObjStr + ".Selector", alertTemplatesObj.selector);
|
||||
setCoreParameter(alertTemplatesObjStr + ".MetricName", alertTemplatesObj.metricName);
|
||||
setCoreParameter(alertTemplatesObjStr + ".Category", alertTemplatesObj.category);
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalComparisonOperator", alertTemplatesObj.escalationsCriticalComparisonOperator);
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnTimes", std::to_string(alertTemplatesObj.escalationsWarnTimes));
|
||||
setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalThreshold", alertTemplatesObj.escalationsCriticalThreshold);
|
||||
std::string alertTemplatesObjStr = "AlertTemplates." + std::to_string(dep1 + 1);
|
||||
setParameter(alertTemplatesObjStr + ".Period", std::to_string(alertTemplatesObj.period));
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsWarnThreshold", alertTemplatesObj.escalationsWarnThreshold);
|
||||
setParameter(alertTemplatesObjStr + ".Webhook", alertTemplatesObj.webhook);
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsWarnComparisonOperator", alertTemplatesObj.escalationsWarnComparisonOperator);
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsCriticalStatistics", alertTemplatesObj.escalationsCriticalStatistics);
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsInfoTimes", std::to_string(alertTemplatesObj.escalationsInfoTimes));
|
||||
setParameter(alertTemplatesObjStr + ".RuleName", alertTemplatesObj.ruleName);
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsInfoStatistics", alertTemplatesObj.escalationsInfoStatistics);
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsCriticalTimes", std::to_string(alertTemplatesObj.escalationsCriticalTimes));
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsInfoComparisonOperator", alertTemplatesObj.escalationsInfoComparisonOperator);
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsWarnStatistics", alertTemplatesObj.escalationsWarnStatistics);
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsInfoThreshold", alertTemplatesObj.escalationsInfoThreshold);
|
||||
setParameter(alertTemplatesObjStr + "._Namespace", alertTemplatesObj._namespace);
|
||||
setParameter(alertTemplatesObjStr + ".Selector", alertTemplatesObj.selector);
|
||||
setParameter(alertTemplatesObjStr + ".MetricName", alertTemplatesObj.metricName);
|
||||
setParameter(alertTemplatesObjStr + ".Category", alertTemplatesObj.category);
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsCriticalComparisonOperator", alertTemplatesObj.escalationsCriticalComparisonOperator);
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsWarnTimes", std::to_string(alertTemplatesObj.escalationsWarnTimes));
|
||||
setParameter(alertTemplatesObjStr + ".EscalationsCriticalThreshold", alertTemplatesObj.escalationsCriticalThreshold);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateMonitorAgentProcessRequest::getProcessName()const
|
||||
void CreateMonitorAgentProcessRequest::setProcessName(const std::string& processName)
|
||||
{
|
||||
processName_ = processName;
|
||||
setCoreParameter("ProcessName", processName);
|
||||
setParameter("ProcessName", processName);
|
||||
}
|
||||
|
||||
std::string CreateMonitorAgentProcessRequest::getInstanceId()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateMonitorAgentProcessRequest::getInstanceId()const
|
||||
void CreateMonitorAgentProcessRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateMonitorAgentProcessRequest::getProcessUser()const
|
||||
@@ -57,6 +57,6 @@ std::string CreateMonitorAgentProcessRequest::getProcessUser()const
|
||||
void CreateMonitorAgentProcessRequest::setProcessUser(const std::string& processUser)
|
||||
{
|
||||
processUser_ = processUser;
|
||||
setCoreParameter("ProcessUser", processUser);
|
||||
setParameter("ProcessUser", processUser);
|
||||
}
|
||||
|
||||
|
||||
@@ -37,11 +37,11 @@ void CreateMonitorGroupInstancesRequest::setInstances(const std::vector<Instance
|
||||
instances_ = instances;
|
||||
for(int dep1 = 0; dep1!= instances.size(); dep1++) {
|
||||
auto instancesObj = instances.at(dep1);
|
||||
std::string instancesObjStr = "Instances." + std::to_string(dep1);
|
||||
setCoreParameter(instancesObjStr + ".InstanceId", instancesObj.instanceId);
|
||||
setCoreParameter(instancesObjStr + ".InstanceName", instancesObj.instanceName);
|
||||
setCoreParameter(instancesObjStr + ".RegionId", instancesObj.regionId);
|
||||
setCoreParameter(instancesObjStr + ".Category", instancesObj.category);
|
||||
std::string instancesObjStr = "Instances." + std::to_string(dep1 + 1);
|
||||
setParameter(instancesObjStr + ".InstanceId", instancesObj.instanceId);
|
||||
setParameter(instancesObjStr + ".InstanceName", instancesObj.instanceName);
|
||||
setParameter(instancesObjStr + ".RegionId", instancesObj.regionId);
|
||||
setParameter(instancesObjStr + ".Category", instancesObj.category);
|
||||
}
|
||||
}
|
||||
|
||||
@@ -53,6 +53,6 @@ long CreateMonitorGroupInstancesRequest::getGroupId()const
|
||||
void CreateMonitorGroupInstancesRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateMonitorGroupNotifyPolicyRequest::getPolicyType()const
|
||||
void CreateMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setCoreParameter("PolicyType", policyType);
|
||||
setParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupNotifyPolicyRequest::getGroupId()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateMonitorGroupNotifyPolicyRequest::getGroupId()const
|
||||
void CreateMonitorGroupNotifyPolicyRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long CreateMonitorGroupNotifyPolicyRequest::getEndTime()const
|
||||
@@ -57,7 +57,7 @@ long CreateMonitorGroupNotifyPolicyRequest::getEndTime()const
|
||||
void CreateMonitorGroupNotifyPolicyRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", std::to_string(endTime));
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
long CreateMonitorGroupNotifyPolicyRequest::getStartTime()const
|
||||
@@ -68,6 +68,6 @@ long CreateMonitorGroupNotifyPolicyRequest::getStartTime()const
|
||||
void CreateMonitorGroupNotifyPolicyRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", std::to_string(startTime));
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateMonitorGroupRequest::getContactGroups()const
|
||||
void CreateMonitorGroupRequest::setContactGroups(const std::string& contactGroups)
|
||||
{
|
||||
contactGroups_ = contactGroups;
|
||||
setCoreParameter("ContactGroups", contactGroups);
|
||||
setParameter("ContactGroups", contactGroups);
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupRequest::getType()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateMonitorGroupRequest::getType()const
|
||||
void CreateMonitorGroupRequest::setType(const std::string& type)
|
||||
{
|
||||
type_ = type;
|
||||
setCoreParameter("Type", type);
|
||||
setParameter("Type", type);
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupRequest::getGroupName()const
|
||||
@@ -57,7 +57,7 @@ std::string CreateMonitorGroupRequest::getGroupName()const
|
||||
void CreateMonitorGroupRequest::setGroupName(const std::string& groupName)
|
||||
{
|
||||
groupName_ = groupName;
|
||||
setCoreParameter("GroupName", groupName);
|
||||
setParameter("GroupName", groupName);
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupRequest::getOptions()const
|
||||
@@ -68,7 +68,7 @@ std::string CreateMonitorGroupRequest::getOptions()const
|
||||
void CreateMonitorGroupRequest::setOptions(const std::string& options)
|
||||
{
|
||||
options_ = options;
|
||||
setCoreParameter("Options", options);
|
||||
setParameter("Options", options);
|
||||
}
|
||||
|
||||
long CreateMonitorGroupRequest::getServiceId()const
|
||||
@@ -79,7 +79,7 @@ long CreateMonitorGroupRequest::getServiceId()const
|
||||
void CreateMonitorGroupRequest::setServiceId(long serviceId)
|
||||
{
|
||||
serviceId_ = serviceId;
|
||||
setCoreParameter("ServiceId", std::to_string(serviceId));
|
||||
setParameter("ServiceId", std::to_string(serviceId));
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupRequest::getBindUrl()const
|
||||
@@ -90,6 +90,6 @@ std::string CreateMonitorGroupRequest::getBindUrl()const
|
||||
void CreateMonitorGroupRequest::setBindUrl(const std::string& bindUrl)
|
||||
{
|
||||
bindUrl_ = bindUrl;
|
||||
setCoreParameter("BindUrl", bindUrl);
|
||||
setParameter("BindUrl", bindUrl);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateMonitoringAgentProcessRequest::getProcessName()const
|
||||
void CreateMonitoringAgentProcessRequest::setProcessName(const std::string& processName)
|
||||
{
|
||||
processName_ = processName;
|
||||
setCoreParameter("ProcessName", processName);
|
||||
setParameter("ProcessName", processName);
|
||||
}
|
||||
|
||||
std::string CreateMonitoringAgentProcessRequest::getInstanceId()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateMonitoringAgentProcessRequest::getInstanceId()const
|
||||
void CreateMonitoringAgentProcessRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string CreateMonitoringAgentProcessRequest::getProcessUser()const
|
||||
@@ -57,6 +57,6 @@ std::string CreateMonitoringAgentProcessRequest::getProcessUser()const
|
||||
void CreateMonitoringAgentProcessRequest::setProcessUser(const std::string& processUser)
|
||||
{
|
||||
processUser_ = processUser;
|
||||
setCoreParameter("ProcessUser", processUser);
|
||||
setParameter("ProcessUser", processUser);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string CreateSiteMonitorRequest::getAddress()const
|
||||
void CreateSiteMonitorRequest::setAddress(const std::string& address)
|
||||
{
|
||||
address_ = address;
|
||||
setCoreParameter("Address", address);
|
||||
setParameter("Address", address);
|
||||
}
|
||||
|
||||
std::string CreateSiteMonitorRequest::getTaskType()const
|
||||
@@ -46,7 +46,7 @@ std::string CreateSiteMonitorRequest::getTaskType()const
|
||||
void CreateSiteMonitorRequest::setTaskType(const std::string& taskType)
|
||||
{
|
||||
taskType_ = taskType;
|
||||
setCoreParameter("TaskType", taskType);
|
||||
setParameter("TaskType", taskType);
|
||||
}
|
||||
|
||||
std::string CreateSiteMonitorRequest::getTaskName()const
|
||||
@@ -57,7 +57,7 @@ std::string CreateSiteMonitorRequest::getTaskName()const
|
||||
void CreateSiteMonitorRequest::setTaskName(const std::string& taskName)
|
||||
{
|
||||
taskName_ = taskName;
|
||||
setCoreParameter("TaskName", taskName);
|
||||
setParameter("TaskName", taskName);
|
||||
}
|
||||
|
||||
std::string CreateSiteMonitorRequest::getIspCities()const
|
||||
@@ -68,7 +68,7 @@ std::string CreateSiteMonitorRequest::getIspCities()const
|
||||
void CreateSiteMonitorRequest::setIspCities(const std::string& ispCities)
|
||||
{
|
||||
ispCities_ = ispCities;
|
||||
setCoreParameter("IspCities", ispCities);
|
||||
setParameter("IspCities", ispCities);
|
||||
}
|
||||
|
||||
std::string CreateSiteMonitorRequest::getOptionsJson()const
|
||||
@@ -79,7 +79,7 @@ std::string CreateSiteMonitorRequest::getOptionsJson()const
|
||||
void CreateSiteMonitorRequest::setOptionsJson(const std::string& optionsJson)
|
||||
{
|
||||
optionsJson_ = optionsJson;
|
||||
setCoreParameter("OptionsJson", optionsJson);
|
||||
setParameter("OptionsJson", optionsJson);
|
||||
}
|
||||
|
||||
std::string CreateSiteMonitorRequest::getAlertIds()const
|
||||
@@ -90,7 +90,7 @@ std::string CreateSiteMonitorRequest::getAlertIds()const
|
||||
void CreateSiteMonitorRequest::setAlertIds(const std::string& alertIds)
|
||||
{
|
||||
alertIds_ = alertIds;
|
||||
setCoreParameter("AlertIds", alertIds);
|
||||
setParameter("AlertIds", alertIds);
|
||||
}
|
||||
|
||||
std::string CreateSiteMonitorRequest::getInterval()const
|
||||
@@ -101,6 +101,6 @@ std::string CreateSiteMonitorRequest::getInterval()const
|
||||
void CreateSiteMonitorRequest::setInterval(const std::string& interval)
|
||||
{
|
||||
interval_ = interval;
|
||||
setCoreParameter("Interval", interval);
|
||||
setParameter("Interval", interval);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ std::string DeleteContactGroupRequest::getContactGroupName()const
|
||||
void DeleteContactGroupRequest::setContactGroupName(const std::string& contactGroupName)
|
||||
{
|
||||
contactGroupName_ = contactGroupName;
|
||||
setCoreParameter("ContactGroupName", contactGroupName);
|
||||
setParameter("ContactGroupName", contactGroupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ std::string DeleteContactRequest::getContactName()const
|
||||
void DeleteContactRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setCoreParameter("ContactName", contactName);
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DeleteCustomMetricRequest::getGroupId()const
|
||||
void DeleteCustomMetricRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getUUID()const
|
||||
@@ -46,7 +46,7 @@ std::string DeleteCustomMetricRequest::getUUID()const
|
||||
void DeleteCustomMetricRequest::setUUID(const std::string& uUID)
|
||||
{
|
||||
uUID_ = uUID;
|
||||
setCoreParameter("UUID", uUID);
|
||||
setParameter("UUID", uUID);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getMetricName()const
|
||||
@@ -57,7 +57,7 @@ std::string DeleteCustomMetricRequest::getMetricName()const
|
||||
void DeleteCustomMetricRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setCoreParameter("MetricName", metricName);
|
||||
setParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DeleteCustomMetricRequest::getMd5()const
|
||||
@@ -68,6 +68,6 @@ std::string DeleteCustomMetricRequest::getMd5()const
|
||||
void DeleteCustomMetricRequest::setMd5(const std::string& md5)
|
||||
{
|
||||
md5_ = md5;
|
||||
setCoreParameter("Md5", md5);
|
||||
setParameter("Md5", md5);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::DeleteDynamicTagGroupRequest;
|
||||
DeleteDynamicTagGroupRequest::DeleteDynamicTagGroupRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DeleteDynamicTagGroup")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteDynamicTagGroupRequest::~DeleteDynamicTagGroupRequest()
|
||||
@@ -35,6 +35,6 @@ std::string DeleteDynamicTagGroupRequest::getDynamicTagRuleId()const
|
||||
void DeleteDynamicTagGroupRequest::setDynamicTagRuleId(const std::string& dynamicTagRuleId)
|
||||
{
|
||||
dynamicTagRuleId_ = dynamicTagRuleId;
|
||||
setCoreParameter("DynamicTagRuleId", dynamicTagRuleId);
|
||||
setParameter("DynamicTagRuleId", dynamicTagRuleId);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::DeleteEventRuleTargetsRequest;
|
||||
DeleteEventRuleTargetsRequest::DeleteEventRuleTargetsRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DeleteEventRuleTargets")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteEventRuleTargetsRequest::~DeleteEventRuleTargetsRequest()
|
||||
@@ -35,7 +35,7 @@ std::string DeleteEventRuleTargetsRequest::getRuleName()const
|
||||
void DeleteEventRuleTargetsRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::vector<std::string> DeleteEventRuleTargetsRequest::getIds()const
|
||||
@@ -47,7 +47,7 @@ void DeleteEventRuleTargetsRequest::setIds(const std::vector<std::string>& ids)
|
||||
{
|
||||
ids_ = ids;
|
||||
for(int dep1 = 0; dep1!= ids.size(); dep1++) {
|
||||
setCoreParameter("Ids."+ std::to_string(dep1), ids.at(dep1));
|
||||
setParameter("Ids."+ std::to_string(dep1), ids.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ void DeleteEventRulesRequest::setRuleNames(const std::vector<std::string>& ruleN
|
||||
{
|
||||
ruleNames_ = ruleNames;
|
||||
for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) {
|
||||
setCoreParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1));
|
||||
setParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
40
cms/src/model/DeleteExporterOutputRequest.cc
Normal file
40
cms/src/model/DeleteExporterOutputRequest.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/cms/model/DeleteExporterOutputRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DeleteExporterOutputRequest;
|
||||
|
||||
DeleteExporterOutputRequest::DeleteExporterOutputRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DeleteExporterOutput")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteExporterOutputRequest::~DeleteExporterOutputRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteExporterOutputRequest::getDestName()const
|
||||
{
|
||||
return destName_;
|
||||
}
|
||||
|
||||
void DeleteExporterOutputRequest::setDestName(const std::string& destName)
|
||||
{
|
||||
destName_ = destName;
|
||||
setParameter("DestName", destName);
|
||||
}
|
||||
|
||||
65
cms/src/model/DeleteExporterOutputResult.cc
Normal file
65
cms/src/model/DeleteExporterOutputResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DeleteExporterOutputResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DeleteExporterOutputResult::DeleteExporterOutputResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteExporterOutputResult::DeleteExporterOutputResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteExporterOutputResult::~DeleteExporterOutputResult()
|
||||
{}
|
||||
|
||||
void DeleteExporterOutputResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteExporterOutputResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteExporterOutputResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteExporterOutputResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
40
cms/src/model/DeleteExporterRuleRequest.cc
Normal file
40
cms/src/model/DeleteExporterRuleRequest.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/cms/model/DeleteExporterRuleRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DeleteExporterRuleRequest;
|
||||
|
||||
DeleteExporterRuleRequest::DeleteExporterRuleRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DeleteExporterRule")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteExporterRuleRequest::~DeleteExporterRuleRequest()
|
||||
{}
|
||||
|
||||
std::string DeleteExporterRuleRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DeleteExporterRuleRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
65
cms/src/model/DeleteExporterRuleResult.cc
Normal file
65
cms/src/model/DeleteExporterRuleResult.cc
Normal file
@@ -0,0 +1,65 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DeleteExporterRuleResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DeleteExporterRuleResult::DeleteExporterRuleResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteExporterRuleResult::DeleteExporterRuleResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteExporterRuleResult::~DeleteExporterRuleResult()
|
||||
{}
|
||||
|
||||
void DeleteExporterRuleResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteExporterRuleResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteExporterRuleResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteExporterRuleResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DeleteGroupMonitoringAgentProcessRequest::getGroupId()const
|
||||
void DeleteGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DeleteGroupMonitoringAgentProcessRequest::getId()const
|
||||
@@ -46,6 +46,6 @@ std::string DeleteGroupMonitoringAgentProcessRequest::getId()const
|
||||
void DeleteGroupMonitoringAgentProcessRequest::setId(const std::string& id)
|
||||
{
|
||||
id_ = id;
|
||||
setCoreParameter("Id", id);
|
||||
setParameter("Id", id);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ void DeleteHostAvailabilityRequest::setId(const std::vector<long>& id)
|
||||
{
|
||||
id_ = id;
|
||||
for(int dep1 = 0; dep1!= id.size(); dep1++) {
|
||||
setCoreParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1)));
|
||||
setParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1)));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::DeleteMetricRuleResourcesRequest;
|
||||
DeleteMetricRuleResourcesRequest::DeleteMetricRuleResourcesRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleResources")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMetricRuleResourcesRequest::~DeleteMetricRuleResourcesRequest()
|
||||
@@ -35,7 +35,7 @@ std::string DeleteMetricRuleResourcesRequest::getResources()const
|
||||
void DeleteMetricRuleResourcesRequest::setResources(const std::string& resources)
|
||||
{
|
||||
resources_ = resources;
|
||||
setCoreParameter("Resources", resources);
|
||||
setParameter("Resources", resources);
|
||||
}
|
||||
|
||||
std::string DeleteMetricRuleResourcesRequest::getRuleId()const
|
||||
@@ -46,6 +46,6 @@ std::string DeleteMetricRuleResourcesRequest::getRuleId()const
|
||||
void DeleteMetricRuleResourcesRequest::setRuleId(const std::string& ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", ruleId);
|
||||
setParameter("RuleId", ruleId);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::DeleteMetricRuleTargetsRequest;
|
||||
DeleteMetricRuleTargetsRequest::DeleteMetricRuleTargetsRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleTargets")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DeleteMetricRuleTargetsRequest::~DeleteMetricRuleTargetsRequest()
|
||||
@@ -36,7 +36,7 @@ void DeleteMetricRuleTargetsRequest::setTargetIds(const std::vector<std::string>
|
||||
{
|
||||
targetIds_ = targetIds;
|
||||
for(int dep1 = 0; dep1!= targetIds.size(); dep1++) {
|
||||
setCoreParameter("TargetIds."+ std::to_string(dep1), targetIds.at(dep1));
|
||||
setParameter("TargetIds."+ std::to_string(dep1), targetIds.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
@@ -48,6 +48,6 @@ std::string DeleteMetricRuleTargetsRequest::getRuleId()const
|
||||
void DeleteMetricRuleTargetsRequest::setRuleId(const std::string& ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", ruleId);
|
||||
setParameter("RuleId", ruleId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ std::string DeleteMetricRuleTemplateRequest::getTemplateId()const
|
||||
void DeleteMetricRuleTemplateRequest::setTemplateId(const std::string& templateId)
|
||||
{
|
||||
templateId_ = templateId;
|
||||
setCoreParameter("TemplateId", templateId);
|
||||
setParameter("TemplateId", templateId);
|
||||
}
|
||||
|
||||
|
||||
@@ -36,7 +36,7 @@ void DeleteMetricRulesRequest::setId(const std::vector<std::string>& id)
|
||||
{
|
||||
id_ = id;
|
||||
for(int dep1 = 0; dep1!= id.size(); dep1++) {
|
||||
setCoreParameter("Id."+ std::to_string(dep1), id.at(dep1));
|
||||
setParameter("Id."+ std::to_string(dep1), id.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ long DeleteMonitorGroupDynamicRuleRequest::getGroupId()const
|
||||
void DeleteMonitorGroupDynamicRuleRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DeleteMonitorGroupDynamicRuleRequest::getCategory()const
|
||||
@@ -46,6 +46,6 @@ std::string DeleteMonitorGroupDynamicRuleRequest::getCategory()const
|
||||
void DeleteMonitorGroupDynamicRuleRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setCoreParameter("Category", category);
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ long DeleteMonitorGroupInstancesRequest::getGroupId()const
|
||||
void DeleteMonitorGroupInstancesRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
std::string DeleteMonitorGroupInstancesRequest::getInstanceIdList()const
|
||||
@@ -46,7 +46,7 @@ std::string DeleteMonitorGroupInstancesRequest::getInstanceIdList()const
|
||||
void DeleteMonitorGroupInstancesRequest::setInstanceIdList(const std::string& instanceIdList)
|
||||
{
|
||||
instanceIdList_ = instanceIdList;
|
||||
setCoreParameter("InstanceIdList", instanceIdList);
|
||||
setParameter("InstanceIdList", instanceIdList);
|
||||
}
|
||||
|
||||
std::string DeleteMonitorGroupInstancesRequest::getCategory()const
|
||||
@@ -57,6 +57,6 @@ std::string DeleteMonitorGroupInstancesRequest::getCategory()const
|
||||
void DeleteMonitorGroupInstancesRequest::setCategory(const std::string& category)
|
||||
{
|
||||
category_ = category;
|
||||
setCoreParameter("Category", category);
|
||||
setParameter("Category", category);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DeleteMonitorGroupNotifyPolicyRequest::getPolicyType()const
|
||||
void DeleteMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string& policyType)
|
||||
{
|
||||
policyType_ = policyType;
|
||||
setCoreParameter("PolicyType", policyType);
|
||||
setParameter("PolicyType", policyType);
|
||||
}
|
||||
|
||||
std::string DeleteMonitorGroupNotifyPolicyRequest::getGroupId()const
|
||||
@@ -46,6 +46,6 @@ std::string DeleteMonitorGroupNotifyPolicyRequest::getGroupId()const
|
||||
void DeleteMonitorGroupNotifyPolicyRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ long DeleteMonitorGroupRequest::getGroupId()const
|
||||
void DeleteMonitorGroupRequest::setGroupId(long groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", std::to_string(groupId));
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DeleteMonitoringAgentProcessRequest::getProcessName()const
|
||||
void DeleteMonitoringAgentProcessRequest::setProcessName(const std::string& processName)
|
||||
{
|
||||
processName_ = processName;
|
||||
setCoreParameter("ProcessName", processName);
|
||||
setParameter("ProcessName", processName);
|
||||
}
|
||||
|
||||
std::string DeleteMonitoringAgentProcessRequest::getInstanceId()const
|
||||
@@ -46,7 +46,7 @@ std::string DeleteMonitoringAgentProcessRequest::getInstanceId()const
|
||||
void DeleteMonitoringAgentProcessRequest::setInstanceId(const std::string& instanceId)
|
||||
{
|
||||
instanceId_ = instanceId;
|
||||
setCoreParameter("InstanceId", instanceId);
|
||||
setParameter("InstanceId", instanceId);
|
||||
}
|
||||
|
||||
std::string DeleteMonitoringAgentProcessRequest::getProcessId()const
|
||||
@@ -57,6 +57,6 @@ std::string DeleteMonitoringAgentProcessRequest::getProcessId()const
|
||||
void DeleteMonitoringAgentProcessRequest::setProcessId(const std::string& processId)
|
||||
{
|
||||
processId_ = processId;
|
||||
setCoreParameter("ProcessId", processId);
|
||||
setParameter("ProcessId", processId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ bool DeleteSiteMonitorsRequest::getIsDeleteAlarms()const
|
||||
void DeleteSiteMonitorsRequest::setIsDeleteAlarms(bool isDeleteAlarms)
|
||||
{
|
||||
isDeleteAlarms_ = isDeleteAlarms;
|
||||
setCoreParameter("IsDeleteAlarms", isDeleteAlarms ? "true" : "false");
|
||||
setParameter("IsDeleteAlarms", isDeleteAlarms ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DeleteSiteMonitorsRequest::getTaskIds()const
|
||||
@@ -46,6 +46,6 @@ std::string DeleteSiteMonitorsRequest::getTaskIds()const
|
||||
void DeleteSiteMonitorsRequest::setTaskIds(const std::string& taskIds)
|
||||
{
|
||||
taskIds_ = taskIds;
|
||||
setCoreParameter("TaskIds", taskIds);
|
||||
setParameter("TaskIds", taskIds);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ std::string DescribeActiveMetricRuleListRequest::getProduct()const
|
||||
void DescribeActiveMetricRuleListRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setCoreParameter("Product", product);
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeAlertHistoryListRequest::getRuleName()const
|
||||
void DescribeAlertHistoryListRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getStartTime()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeAlertHistoryListRequest::getStartTime()const
|
||||
void DescribeAlertHistoryListRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
int DescribeAlertHistoryListRequest::getPageSize()const
|
||||
@@ -57,7 +57,7 @@ int DescribeAlertHistoryListRequest::getPageSize()const
|
||||
void DescribeAlertHistoryListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getState()const
|
||||
@@ -68,7 +68,7 @@ std::string DescribeAlertHistoryListRequest::getState()const
|
||||
void DescribeAlertHistoryListRequest::setState(const std::string& state)
|
||||
{
|
||||
state_ = state;
|
||||
setCoreParameter("State", state);
|
||||
setParameter("State", state);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getMetricName()const
|
||||
@@ -79,7 +79,7 @@ std::string DescribeAlertHistoryListRequest::getMetricName()const
|
||||
void DescribeAlertHistoryListRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setCoreParameter("MetricName", metricName);
|
||||
setParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getGroupId()const
|
||||
@@ -90,7 +90,7 @@ std::string DescribeAlertHistoryListRequest::getGroupId()const
|
||||
void DescribeAlertHistoryListRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getEndTime()const
|
||||
@@ -101,7 +101,7 @@ std::string DescribeAlertHistoryListRequest::getEndTime()const
|
||||
void DescribeAlertHistoryListRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
bool DescribeAlertHistoryListRequest::getAscending()const
|
||||
@@ -112,7 +112,7 @@ bool DescribeAlertHistoryListRequest::getAscending()const
|
||||
void DescribeAlertHistoryListRequest::setAscending(bool ascending)
|
||||
{
|
||||
ascending_ = ascending;
|
||||
setCoreParameter("Ascending", ascending ? "true" : "false");
|
||||
setParameter("Ascending", ascending ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::get_Namespace()const
|
||||
@@ -123,7 +123,7 @@ std::string DescribeAlertHistoryListRequest::get_Namespace()const
|
||||
void DescribeAlertHistoryListRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setCoreParameter("_Namespace", _namespace);
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int DescribeAlertHistoryListRequest::getPage()const
|
||||
@@ -134,7 +134,7 @@ int DescribeAlertHistoryListRequest::getPage()const
|
||||
void DescribeAlertHistoryListRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setCoreParameter("Page", std::to_string(page));
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getRuleId()const
|
||||
@@ -145,7 +145,7 @@ std::string DescribeAlertHistoryListRequest::getRuleId()const
|
||||
void DescribeAlertHistoryListRequest::setRuleId(const std::string& ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", ruleId);
|
||||
setParameter("RuleId", ruleId);
|
||||
}
|
||||
|
||||
std::string DescribeAlertHistoryListRequest::getStatus()const
|
||||
@@ -156,6 +156,6 @@ std::string DescribeAlertHistoryListRequest::getStatus()const
|
||||
void DescribeAlertHistoryListRequest::setStatus(const std::string& status)
|
||||
{
|
||||
status_ = status;
|
||||
setCoreParameter("Status", status);
|
||||
setParameter("Status", status);
|
||||
}
|
||||
|
||||
|
||||
@@ -43,8 +43,6 @@ void DescribeAlertHistoryListResult::parse(const std::string &payload)
|
||||
for (auto valueAlarmHistoryListAlarmHistory : allAlarmHistoryListNode)
|
||||
{
|
||||
AlarmHistory alarmHistoryListObject;
|
||||
if(!valueAlarmHistoryListAlarmHistory["Id"].isNull())
|
||||
alarmHistoryListObject.id = valueAlarmHistoryListAlarmHistory["Id"].asString();
|
||||
if(!valueAlarmHistoryListAlarmHistory["RuleId"].isNull())
|
||||
alarmHistoryListObject.ruleId = valueAlarmHistoryListAlarmHistory["RuleId"].asString();
|
||||
if(!valueAlarmHistoryListAlarmHistory["GroupId"].isNull())
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeAlertingMetricRuleResourcesRequest::getGroupId()const
|
||||
void DescribeAlertingMetricRuleResourcesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
int DescribeAlertingMetricRuleResourcesRequest::getPageSize()const
|
||||
@@ -46,7 +46,7 @@ int DescribeAlertingMetricRuleResourcesRequest::getPageSize()const
|
||||
void DescribeAlertingMetricRuleResourcesRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
int DescribeAlertingMetricRuleResourcesRequest::getPage()const
|
||||
@@ -57,7 +57,7 @@ int DescribeAlertingMetricRuleResourcesRequest::getPage()const
|
||||
void DescribeAlertingMetricRuleResourcesRequest::setPage(int page)
|
||||
{
|
||||
page_ = page;
|
||||
setCoreParameter("Page", std::to_string(page));
|
||||
setParameter("Page", std::to_string(page));
|
||||
}
|
||||
|
||||
std::string DescribeAlertingMetricRuleResourcesRequest::getRuleId()const
|
||||
@@ -68,6 +68,6 @@ std::string DescribeAlertingMetricRuleResourcesRequest::getRuleId()const
|
||||
void DescribeAlertingMetricRuleResourcesRequest::setRuleId(const std::string& ruleId)
|
||||
{
|
||||
ruleId_ = ruleId;
|
||||
setCoreParameter("RuleId", ruleId);
|
||||
setParameter("RuleId", ruleId);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ int DescribeContactGroupListRequest::getPageNumber()const
|
||||
void DescribeContactGroupListRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeContactGroupListRequest::getPageSize()const
|
||||
@@ -46,6 +46,6 @@ int DescribeContactGroupListRequest::getPageSize()const
|
||||
void DescribeContactGroupListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,6 +35,6 @@ std::string DescribeContactListByContactGroupRequest::getContactGroupName()const
|
||||
void DescribeContactListByContactGroupRequest::setContactGroupName(const std::string& contactGroupName)
|
||||
{
|
||||
contactGroupName_ = contactGroupName;
|
||||
setCoreParameter("ContactGroupName", contactGroupName);
|
||||
setParameter("ContactGroupName", contactGroupName);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ int DescribeContactListRequest::getPageNumber()const
|
||||
void DescribeContactListRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeContactListRequest::getContactName()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeContactListRequest::getContactName()const
|
||||
void DescribeContactListRequest::setContactName(const std::string& contactName)
|
||||
{
|
||||
contactName_ = contactName;
|
||||
setCoreParameter("ContactName", contactName);
|
||||
setParameter("ContactName", contactName);
|
||||
}
|
||||
|
||||
int DescribeContactListRequest::getPageSize()const
|
||||
@@ -57,6 +57,6 @@ int DescribeContactListRequest::getPageSize()const
|
||||
void DescribeContactListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeCustomEventAttributeRequest::getEventId()const
|
||||
void DescribeCustomEventAttributeRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setCoreParameter("EventId", eventId);
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventAttributeRequest::getStartTime()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeCustomEventAttributeRequest::getStartTime()const
|
||||
void DescribeCustomEventAttributeRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventAttributeRequest::getSearchKeywords()const
|
||||
@@ -57,7 +57,7 @@ std::string DescribeCustomEventAttributeRequest::getSearchKeywords()const
|
||||
void DescribeCustomEventAttributeRequest::setSearchKeywords(const std::string& searchKeywords)
|
||||
{
|
||||
searchKeywords_ = searchKeywords;
|
||||
setCoreParameter("SearchKeywords", searchKeywords);
|
||||
setParameter("SearchKeywords", searchKeywords);
|
||||
}
|
||||
|
||||
int DescribeCustomEventAttributeRequest::getPageNumber()const
|
||||
@@ -68,7 +68,7 @@ int DescribeCustomEventAttributeRequest::getPageNumber()const
|
||||
void DescribeCustomEventAttributeRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", std::to_string(pageNumber));
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeCustomEventAttributeRequest::getPageSize()const
|
||||
@@ -79,7 +79,7 @@ int DescribeCustomEventAttributeRequest::getPageSize()const
|
||||
void DescribeCustomEventAttributeRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", std::to_string(pageSize));
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventAttributeRequest::getLevel()const
|
||||
@@ -90,7 +90,7 @@ std::string DescribeCustomEventAttributeRequest::getLevel()const
|
||||
void DescribeCustomEventAttributeRequest::setLevel(const std::string& level)
|
||||
{
|
||||
level_ = level;
|
||||
setCoreParameter("Level", level);
|
||||
setParameter("Level", level);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventAttributeRequest::getGroupId()const
|
||||
@@ -101,7 +101,7 @@ std::string DescribeCustomEventAttributeRequest::getGroupId()const
|
||||
void DescribeCustomEventAttributeRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventAttributeRequest::getEndTime()const
|
||||
@@ -112,7 +112,7 @@ std::string DescribeCustomEventAttributeRequest::getEndTime()const
|
||||
void DescribeCustomEventAttributeRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventAttributeRequest::getName()const
|
||||
@@ -123,6 +123,6 @@ std::string DescribeCustomEventAttributeRequest::getName()const
|
||||
void DescribeCustomEventAttributeRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeCustomEventCountRequest::getEventId()const
|
||||
void DescribeCustomEventCountRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setCoreParameter("EventId", eventId);
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventCountRequest::getLevel()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeCustomEventCountRequest::getLevel()const
|
||||
void DescribeCustomEventCountRequest::setLevel(const std::string& level)
|
||||
{
|
||||
level_ = level;
|
||||
setCoreParameter("Level", level);
|
||||
setParameter("Level", level);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventCountRequest::getGroupId()const
|
||||
@@ -57,7 +57,7 @@ std::string DescribeCustomEventCountRequest::getGroupId()const
|
||||
void DescribeCustomEventCountRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventCountRequest::getEndTime()const
|
||||
@@ -68,7 +68,7 @@ std::string DescribeCustomEventCountRequest::getEndTime()const
|
||||
void DescribeCustomEventCountRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventCountRequest::getStartTime()const
|
||||
@@ -79,7 +79,7 @@ std::string DescribeCustomEventCountRequest::getStartTime()const
|
||||
void DescribeCustomEventCountRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventCountRequest::getSearchKeywords()const
|
||||
@@ -90,7 +90,7 @@ std::string DescribeCustomEventCountRequest::getSearchKeywords()const
|
||||
void DescribeCustomEventCountRequest::setSearchKeywords(const std::string& searchKeywords)
|
||||
{
|
||||
searchKeywords_ = searchKeywords;
|
||||
setCoreParameter("SearchKeywords", searchKeywords);
|
||||
setParameter("SearchKeywords", searchKeywords);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventCountRequest::getName()const
|
||||
@@ -101,6 +101,6 @@ std::string DescribeCustomEventCountRequest::getName()const
|
||||
void DescribeCustomEventCountRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeCustomEventHistogramRequest::getEventId()const
|
||||
void DescribeCustomEventHistogramRequest::setEventId(const std::string& eventId)
|
||||
{
|
||||
eventId_ = eventId;
|
||||
setCoreParameter("EventId", eventId);
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventHistogramRequest::getLevel()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeCustomEventHistogramRequest::getLevel()const
|
||||
void DescribeCustomEventHistogramRequest::setLevel(const std::string& level)
|
||||
{
|
||||
level_ = level;
|
||||
setCoreParameter("Level", level);
|
||||
setParameter("Level", level);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventHistogramRequest::getGroupId()const
|
||||
@@ -57,7 +57,7 @@ std::string DescribeCustomEventHistogramRequest::getGroupId()const
|
||||
void DescribeCustomEventHistogramRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventHistogramRequest::getEndTime()const
|
||||
@@ -68,7 +68,7 @@ std::string DescribeCustomEventHistogramRequest::getEndTime()const
|
||||
void DescribeCustomEventHistogramRequest::setEndTime(const std::string& endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setCoreParameter("EndTime", endTime);
|
||||
setParameter("EndTime", endTime);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventHistogramRequest::getStartTime()const
|
||||
@@ -79,7 +79,7 @@ std::string DescribeCustomEventHistogramRequest::getStartTime()const
|
||||
void DescribeCustomEventHistogramRequest::setStartTime(const std::string& startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setCoreParameter("StartTime", startTime);
|
||||
setParameter("StartTime", startTime);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventHistogramRequest::getSearchKeywords()const
|
||||
@@ -90,7 +90,7 @@ std::string DescribeCustomEventHistogramRequest::getSearchKeywords()const
|
||||
void DescribeCustomEventHistogramRequest::setSearchKeywords(const std::string& searchKeywords)
|
||||
{
|
||||
searchKeywords_ = searchKeywords;
|
||||
setCoreParameter("SearchKeywords", searchKeywords);
|
||||
setParameter("SearchKeywords", searchKeywords);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventHistogramRequest::getName()const
|
||||
@@ -101,6 +101,6 @@ std::string DescribeCustomEventHistogramRequest::getName()const
|
||||
void DescribeCustomEventHistogramRequest::setName(const std::string& name)
|
||||
{
|
||||
name_ = name;
|
||||
setCoreParameter("Name", name);
|
||||
setParameter("Name", name);
|
||||
}
|
||||
|
||||
|
||||
@@ -35,7 +35,7 @@ std::string DescribeCustomMetricListRequest::getGroupId()const
|
||||
void DescribeCustomMetricListRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomMetricListRequest::getPageNumber()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeCustomMetricListRequest::getPageNumber()const
|
||||
void DescribeCustomMetricListRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", pageNumber);
|
||||
setParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string DescribeCustomMetricListRequest::getPageSize()const
|
||||
@@ -57,7 +57,7 @@ std::string DescribeCustomMetricListRequest::getPageSize()const
|
||||
void DescribeCustomMetricListRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeCustomMetricListRequest::getMetricName()const
|
||||
@@ -68,7 +68,7 @@ std::string DescribeCustomMetricListRequest::getMetricName()const
|
||||
void DescribeCustomMetricListRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setCoreParameter("MetricName", metricName);
|
||||
setParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeCustomMetricListRequest::getDimension()const
|
||||
@@ -79,7 +79,7 @@ std::string DescribeCustomMetricListRequest::getDimension()const
|
||||
void DescribeCustomMetricListRequest::setDimension(const std::string& dimension)
|
||||
{
|
||||
dimension_ = dimension;
|
||||
setCoreParameter("Dimension", dimension);
|
||||
setParameter("Dimension", dimension);
|
||||
}
|
||||
|
||||
std::string DescribeCustomMetricListRequest::getMd5()const
|
||||
@@ -90,6 +90,6 @@ std::string DescribeCustomMetricListRequest::getMd5()const
|
||||
void DescribeCustomMetricListRequest::setMd5(const std::string& md5)
|
||||
{
|
||||
md5_ = md5;
|
||||
setCoreParameter("Md5", md5);
|
||||
setParameter("Md5", md5);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::DescribeDynamicTagRuleListRequest;
|
||||
DescribeDynamicTagRuleListRequest::DescribeDynamicTagRuleListRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeDynamicTagRuleList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeDynamicTagRuleListRequest::~DescribeDynamicTagRuleListRequest()
|
||||
@@ -35,7 +35,7 @@ std::string DescribeDynamicTagRuleListRequest::getPageNumber()const
|
||||
void DescribeDynamicTagRuleListRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", pageNumber);
|
||||
setParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string DescribeDynamicTagRuleListRequest::getPageSize()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeDynamicTagRuleListRequest::getPageSize()const
|
||||
void DescribeDynamicTagRuleListRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeDynamicTagRuleListRequest::getTagKey()const
|
||||
@@ -57,6 +57,6 @@ std::string DescribeDynamicTagRuleListRequest::getTagKey()const
|
||||
void DescribeDynamicTagRuleListRequest::setTagKey(const std::string& tagKey)
|
||||
{
|
||||
tagKey_ = tagKey;
|
||||
setCoreParameter("TagKey", tagKey);
|
||||
setParameter("TagKey", tagKey);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::DescribeEventRuleAttributeRequest;
|
||||
DescribeEventRuleAttributeRequest::DescribeEventRuleAttributeRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleAttribute")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEventRuleAttributeRequest::~DescribeEventRuleAttributeRequest()
|
||||
@@ -35,6 +35,6 @@ std::string DescribeEventRuleAttributeRequest::getRuleName()const
|
||||
void DescribeEventRuleAttributeRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::DescribeEventRuleListRequest;
|
||||
DescribeEventRuleListRequest::DescribeEventRuleListRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEventRuleListRequest::~DescribeEventRuleListRequest()
|
||||
@@ -35,7 +35,7 @@ std::string DescribeEventRuleListRequest::getGroupId()const
|
||||
void DescribeEventRuleListRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setCoreParameter("GroupId", groupId);
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
std::string DescribeEventRuleListRequest::getPageNumber()const
|
||||
@@ -46,7 +46,7 @@ std::string DescribeEventRuleListRequest::getPageNumber()const
|
||||
void DescribeEventRuleListRequest::setPageNumber(const std::string& pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setCoreParameter("PageNumber", pageNumber);
|
||||
setParameter("PageNumber", pageNumber);
|
||||
}
|
||||
|
||||
std::string DescribeEventRuleListRequest::getPageSize()const
|
||||
@@ -57,7 +57,7 @@ std::string DescribeEventRuleListRequest::getPageSize()const
|
||||
void DescribeEventRuleListRequest::setPageSize(const std::string& pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setCoreParameter("PageSize", pageSize);
|
||||
setParameter("PageSize", pageSize);
|
||||
}
|
||||
|
||||
std::string DescribeEventRuleListRequest::getNamePrefix()const
|
||||
@@ -68,6 +68,6 @@ std::string DescribeEventRuleListRequest::getNamePrefix()const
|
||||
void DescribeEventRuleListRequest::setNamePrefix(const std::string& namePrefix)
|
||||
{
|
||||
namePrefix_ = namePrefix;
|
||||
setCoreParameter("NamePrefix", namePrefix);
|
||||
setParameter("NamePrefix", namePrefix);
|
||||
}
|
||||
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::DescribeEventRuleTargetListRequest;
|
||||
DescribeEventRuleTargetListRequest::DescribeEventRuleTargetListRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleTargetList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Put);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeEventRuleTargetListRequest::~DescribeEventRuleTargetListRequest()
|
||||
@@ -35,6 +35,6 @@ std::string DescribeEventRuleTargetListRequest::getRuleName()const
|
||||
void DescribeEventRuleTargetListRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setCoreParameter("RuleName", ruleName);
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
|
||||
51
cms/src/model/DescribeExporterOutputListRequest.cc
Normal file
51
cms/src/model/DescribeExporterOutputListRequest.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/cms/model/DescribeExporterOutputListRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeExporterOutputListRequest;
|
||||
|
||||
DescribeExporterOutputListRequest::DescribeExporterOutputListRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeExporterOutputList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeExporterOutputListRequest::~DescribeExporterOutputListRequest()
|
||||
{}
|
||||
|
||||
int DescribeExporterOutputListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeExporterOutputListRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeExporterOutputListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeExporterOutputListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
107
cms/src/model/DescribeExporterOutputListResult.cc
Normal file
107
cms/src/model/DescribeExporterOutputListResult.cc
Normal file
@@ -0,0 +1,107 @@
|
||||
/*
|
||||
* 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/DescribeExporterOutputListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DescribeExporterOutputListResult::DescribeExporterOutputListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeExporterOutputListResult::DescribeExporterOutputListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeExporterOutputListResult::~DescribeExporterOutputListResult()
|
||||
{}
|
||||
|
||||
void DescribeExporterOutputListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapointsNode = value["Datapoints"]["Datapoint"];
|
||||
for (auto valueDatapointsDatapoint : allDatapointsNode)
|
||||
{
|
||||
Datapoint datapointsObject;
|
||||
if(!valueDatapointsDatapoint["DestName"].isNull())
|
||||
datapointsObject.destName = valueDatapointsDatapoint["DestName"].asString();
|
||||
if(!valueDatapointsDatapoint["DestType"].isNull())
|
||||
datapointsObject.destType = valueDatapointsDatapoint["DestType"].asString();
|
||||
if(!valueDatapointsDatapoint["CreateTime"].isNull())
|
||||
datapointsObject.createTime = std::stol(valueDatapointsDatapoint["CreateTime"].asString());
|
||||
auto configJsonNode = value["ConfigJson"];
|
||||
if(!configJsonNode["logstore"].isNull())
|
||||
datapointsObject.configJson.logstore = configJsonNode["logstore"].asString();
|
||||
if(!configJsonNode["project"].isNull())
|
||||
datapointsObject.configJson.project = configJsonNode["project"].asString();
|
||||
if(!configJsonNode["endpoint"].isNull())
|
||||
datapointsObject.configJson.endpoint = configJsonNode["endpoint"].asString();
|
||||
if(!configJsonNode["as"].isNull())
|
||||
datapointsObject.configJson.as = configJsonNode["as"].asString();
|
||||
if(!configJsonNode["ak"].isNull())
|
||||
datapointsObject.configJson.ak = configJsonNode["ak"].asString();
|
||||
datapoints_.push_back(datapointsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeExporterOutputListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeExporterOutputListResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeExporterOutputListResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<DescribeExporterOutputListResult::Datapoint> DescribeExporterOutputListResult::getDatapoints()const
|
||||
{
|
||||
return datapoints_;
|
||||
}
|
||||
|
||||
std::string DescribeExporterOutputListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeExporterOutputListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
51
cms/src/model/DescribeExporterRuleListRequest.cc
Normal file
51
cms/src/model/DescribeExporterRuleListRequest.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/cms/model/DescribeExporterRuleListRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeExporterRuleListRequest;
|
||||
|
||||
DescribeExporterRuleListRequest::DescribeExporterRuleListRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeExporterRuleList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeExporterRuleListRequest::~DescribeExporterRuleListRequest()
|
||||
{}
|
||||
|
||||
int DescribeExporterRuleListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeExporterRuleListRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
int DescribeExporterRuleListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeExporterRuleListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
109
cms/src/model/DescribeExporterRuleListResult.cc
Normal file
109
cms/src/model/DescribeExporterRuleListResult.cc
Normal file
@@ -0,0 +1,109 @@
|
||||
/*
|
||||
* 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/DescribeExporterRuleListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DescribeExporterRuleListResult::DescribeExporterRuleListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeExporterRuleListResult::DescribeExporterRuleListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeExporterRuleListResult::~DescribeExporterRuleListResult()
|
||||
{}
|
||||
|
||||
void DescribeExporterRuleListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allDatapointsNode = value["Datapoints"]["Datapoint"];
|
||||
for (auto valueDatapointsDatapoint : allDatapointsNode)
|
||||
{
|
||||
Datapoint datapointsObject;
|
||||
if(!valueDatapointsDatapoint["RuleName"].isNull())
|
||||
datapointsObject.ruleName = valueDatapointsDatapoint["RuleName"].asString();
|
||||
if(!valueDatapointsDatapoint["Namespace"].isNull())
|
||||
datapointsObject._namespace = valueDatapointsDatapoint["Namespace"].asString();
|
||||
if(!valueDatapointsDatapoint["MetricName"].isNull())
|
||||
datapointsObject.metricName = valueDatapointsDatapoint["MetricName"].asString();
|
||||
if(!valueDatapointsDatapoint["Enabled"].isNull())
|
||||
datapointsObject.enabled = valueDatapointsDatapoint["Enabled"].asString() == "true";
|
||||
if(!valueDatapointsDatapoint["TargetWindows"].isNull())
|
||||
datapointsObject.targetWindows = valueDatapointsDatapoint["TargetWindows"].asString();
|
||||
if(!valueDatapointsDatapoint["Describe"].isNull())
|
||||
datapointsObject.describe = valueDatapointsDatapoint["Describe"].asString();
|
||||
if(!valueDatapointsDatapoint["Dimension"].isNull())
|
||||
datapointsObject.dimension = valueDatapointsDatapoint["Dimension"].asString();
|
||||
if(!valueDatapointsDatapoint["CreateTime"].isNull())
|
||||
datapointsObject.createTime = std::stol(valueDatapointsDatapoint["CreateTime"].asString());
|
||||
auto allDstName = value["DstName"]["DstName"];
|
||||
for (auto value : allDstName)
|
||||
datapointsObject.dstName.push_back(value.asString());
|
||||
datapoints_.push_back(datapointsObject);
|
||||
}
|
||||
if(!value["Code"].isNull())
|
||||
code_ = value["Code"].asString();
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
|
||||
}
|
||||
|
||||
std::string DescribeExporterRuleListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeExporterRuleListResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeExporterRuleListResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::vector<DescribeExporterRuleListResult::Datapoint> DescribeExporterRuleListResult::getDatapoints()const
|
||||
{
|
||||
return datapoints_;
|
||||
}
|
||||
|
||||
std::string DescribeExporterRuleListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeExporterRuleListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user