Increase availability monitoring increase HTP header.
This commit is contained in:
@@ -25,6 +25,12 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/AddTagsResult.h
|
||||
include/alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h
|
||||
include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h
|
||||
include/alibabacloud/cms/model/CreateCmsCallNumOrderRequest.h
|
||||
include/alibabacloud/cms/model/CreateCmsCallNumOrderResult.h
|
||||
include/alibabacloud/cms/model/CreateCmsOrderRequest.h
|
||||
include/alibabacloud/cms/model/CreateCmsOrderResult.h
|
||||
include/alibabacloud/cms/model/CreateCmsSmspackageOrderRequest.h
|
||||
include/alibabacloud/cms/model/CreateCmsSmspackageOrderResult.h
|
||||
include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.h
|
||||
include/alibabacloud/cms/model/CreateDynamicTagGroupResult.h
|
||||
include/alibabacloud/cms/model/CreateGroupMetricRulesRequest.h
|
||||
@@ -41,6 +47,8 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/CreateMonitorAgentProcessResult.h
|
||||
include/alibabacloud/cms/model/CreateMonitorGroupRequest.h
|
||||
include/alibabacloud/cms/model/CreateMonitorGroupResult.h
|
||||
include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdRequest.h
|
||||
include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdResult.h
|
||||
include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h
|
||||
include/alibabacloud/cms/model/CreateMonitorGroupInstancesResult.h
|
||||
include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyRequest.h
|
||||
@@ -69,6 +77,8 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessResult.h
|
||||
include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.h
|
||||
include/alibabacloud/cms/model/DeleteHostAvailabilityResult.h
|
||||
include/alibabacloud/cms/model/DeleteLogMonitorRequest.h
|
||||
include/alibabacloud/cms/model/DeleteLogMonitorResult.h
|
||||
include/alibabacloud/cms/model/DeleteMetricRuleResourcesRequest.h
|
||||
include/alibabacloud/cms/model/DeleteMetricRuleResourcesResult.h
|
||||
include/alibabacloud/cms/model/DeleteMetricRuleTargetsRequest.h
|
||||
@@ -93,6 +103,12 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/DescribeActiveMetricRuleListResult.h
|
||||
include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h
|
||||
include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h
|
||||
include/alibabacloud/cms/model/DescribeAlertLogCountRequest.h
|
||||
include/alibabacloud/cms/model/DescribeAlertLogCountResult.h
|
||||
include/alibabacloud/cms/model/DescribeAlertLogHistogramRequest.h
|
||||
include/alibabacloud/cms/model/DescribeAlertLogHistogramResult.h
|
||||
include/alibabacloud/cms/model/DescribeAlertLogListRequest.h
|
||||
include/alibabacloud/cms/model/DescribeAlertLogListResult.h
|
||||
include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h
|
||||
include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h
|
||||
include/alibabacloud/cms/model/DescribeContactGroupListRequest.h
|
||||
@@ -121,12 +137,14 @@ set(cms_public_header_model
|
||||
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
|
||||
include/alibabacloud/cms/model/DescribeHostAvailabilityListResult.h
|
||||
include/alibabacloud/cms/model/DescribeLogMonitorAttributeRequest.h
|
||||
include/alibabacloud/cms/model/DescribeLogMonitorAttributeResult.h
|
||||
include/alibabacloud/cms/model/DescribeLogMonitorListRequest.h
|
||||
include/alibabacloud/cms/model/DescribeLogMonitorListResult.h
|
||||
include/alibabacloud/cms/model/DescribeMetricDataRequest.h
|
||||
include/alibabacloud/cms/model/DescribeMetricDataResult.h
|
||||
include/alibabacloud/cms/model/DescribeMetricLastRequest.h
|
||||
@@ -159,6 +177,8 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListResult.h
|
||||
include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h
|
||||
include/alibabacloud/cms/model/DescribeMonitorGroupsResult.h
|
||||
include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeRequest.h
|
||||
include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeResult.h
|
||||
include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyRequest.h
|
||||
include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyResult.h
|
||||
include/alibabacloud/cms/model/DescribeMonitoringAgentConfigRequest.h
|
||||
@@ -229,6 +249,8 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessResult.h
|
||||
include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h
|
||||
include/alibabacloud/cms/model/ModifyHostAvailabilityResult.h
|
||||
include/alibabacloud/cms/model/ModifyHostInfoRequest.h
|
||||
include/alibabacloud/cms/model/ModifyHostInfoResult.h
|
||||
include/alibabacloud/cms/model/ModifyMetricRuleTemplateRequest.h
|
||||
include/alibabacloud/cms/model/ModifyMetricRuleTemplateResult.h
|
||||
include/alibabacloud/cms/model/ModifyMonitorGroupRequest.h
|
||||
@@ -237,14 +259,20 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/ModifyMonitorGroupInstancesResult.h
|
||||
include/alibabacloud/cms/model/ModifySiteMonitorRequest.h
|
||||
include/alibabacloud/cms/model/ModifySiteMonitorResult.h
|
||||
include/alibabacloud/cms/model/OpenCmsServiceRequest.h
|
||||
include/alibabacloud/cms/model/OpenCmsServiceResult.h
|
||||
include/alibabacloud/cms/model/PutContactRequest.h
|
||||
include/alibabacloud/cms/model/PutContactResult.h
|
||||
include/alibabacloud/cms/model/PutContactGroupRequest.h
|
||||
include/alibabacloud/cms/model/PutContactGroupResult.h
|
||||
include/alibabacloud/cms/model/PutCustomEventRequest.h
|
||||
include/alibabacloud/cms/model/PutCustomEventResult.h
|
||||
include/alibabacloud/cms/model/PutCustomEventRuleRequest.h
|
||||
include/alibabacloud/cms/model/PutCustomEventRuleResult.h
|
||||
include/alibabacloud/cms/model/PutCustomMetricRequest.h
|
||||
include/alibabacloud/cms/model/PutCustomMetricResult.h
|
||||
include/alibabacloud/cms/model/PutCustomMetricRuleRequest.h
|
||||
include/alibabacloud/cms/model/PutCustomMetricRuleResult.h
|
||||
include/alibabacloud/cms/model/PutEventRuleRequest.h
|
||||
include/alibabacloud/cms/model/PutEventRuleResult.h
|
||||
include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h
|
||||
@@ -255,6 +283,8 @@ set(cms_public_header_model
|
||||
include/alibabacloud/cms/model/PutExporterRuleResult.h
|
||||
include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h
|
||||
include/alibabacloud/cms/model/PutGroupMetricRuleResult.h
|
||||
include/alibabacloud/cms/model/PutLogMonitorRequest.h
|
||||
include/alibabacloud/cms/model/PutLogMonitorResult.h
|
||||
include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h
|
||||
include/alibabacloud/cms/model/PutMetricRuleTargetsResult.h
|
||||
include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleRequest.h
|
||||
@@ -278,6 +308,12 @@ set(cms_src
|
||||
src/model/AddTagsResult.cc
|
||||
src/model/ApplyMetricRuleTemplateRequest.cc
|
||||
src/model/ApplyMetricRuleTemplateResult.cc
|
||||
src/model/CreateCmsCallNumOrderRequest.cc
|
||||
src/model/CreateCmsCallNumOrderResult.cc
|
||||
src/model/CreateCmsOrderRequest.cc
|
||||
src/model/CreateCmsOrderResult.cc
|
||||
src/model/CreateCmsSmspackageOrderRequest.cc
|
||||
src/model/CreateCmsSmspackageOrderResult.cc
|
||||
src/model/CreateDynamicTagGroupRequest.cc
|
||||
src/model/CreateDynamicTagGroupResult.cc
|
||||
src/model/CreateGroupMetricRulesRequest.cc
|
||||
@@ -294,6 +330,8 @@ set(cms_src
|
||||
src/model/CreateMonitorAgentProcessResult.cc
|
||||
src/model/CreateMonitorGroupRequest.cc
|
||||
src/model/CreateMonitorGroupResult.cc
|
||||
src/model/CreateMonitorGroupByResourceGroupIdRequest.cc
|
||||
src/model/CreateMonitorGroupByResourceGroupIdResult.cc
|
||||
src/model/CreateMonitorGroupInstancesRequest.cc
|
||||
src/model/CreateMonitorGroupInstancesResult.cc
|
||||
src/model/CreateMonitorGroupNotifyPolicyRequest.cc
|
||||
@@ -322,6 +360,8 @@ set(cms_src
|
||||
src/model/DeleteGroupMonitoringAgentProcessResult.cc
|
||||
src/model/DeleteHostAvailabilityRequest.cc
|
||||
src/model/DeleteHostAvailabilityResult.cc
|
||||
src/model/DeleteLogMonitorRequest.cc
|
||||
src/model/DeleteLogMonitorResult.cc
|
||||
src/model/DeleteMetricRuleResourcesRequest.cc
|
||||
src/model/DeleteMetricRuleResourcesResult.cc
|
||||
src/model/DeleteMetricRuleTargetsRequest.cc
|
||||
@@ -346,6 +386,12 @@ set(cms_src
|
||||
src/model/DescribeActiveMetricRuleListResult.cc
|
||||
src/model/DescribeAlertHistoryListRequest.cc
|
||||
src/model/DescribeAlertHistoryListResult.cc
|
||||
src/model/DescribeAlertLogCountRequest.cc
|
||||
src/model/DescribeAlertLogCountResult.cc
|
||||
src/model/DescribeAlertLogHistogramRequest.cc
|
||||
src/model/DescribeAlertLogHistogramResult.cc
|
||||
src/model/DescribeAlertLogListRequest.cc
|
||||
src/model/DescribeAlertLogListResult.cc
|
||||
src/model/DescribeAlertingMetricRuleResourcesRequest.cc
|
||||
src/model/DescribeAlertingMetricRuleResourcesResult.cc
|
||||
src/model/DescribeContactGroupListRequest.cc
|
||||
@@ -374,12 +420,14 @@ set(cms_src
|
||||
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
|
||||
src/model/DescribeHostAvailabilityListResult.cc
|
||||
src/model/DescribeLogMonitorAttributeRequest.cc
|
||||
src/model/DescribeLogMonitorAttributeResult.cc
|
||||
src/model/DescribeLogMonitorListRequest.cc
|
||||
src/model/DescribeLogMonitorListResult.cc
|
||||
src/model/DescribeMetricDataRequest.cc
|
||||
src/model/DescribeMetricDataResult.cc
|
||||
src/model/DescribeMetricLastRequest.cc
|
||||
@@ -412,6 +460,8 @@ set(cms_src
|
||||
src/model/DescribeMonitorGroupNotifyPolicyListResult.cc
|
||||
src/model/DescribeMonitorGroupsRequest.cc
|
||||
src/model/DescribeMonitorGroupsResult.cc
|
||||
src/model/DescribeMonitorResourceQuotaAttributeRequest.cc
|
||||
src/model/DescribeMonitorResourceQuotaAttributeResult.cc
|
||||
src/model/DescribeMonitoringAgentAccessKeyRequest.cc
|
||||
src/model/DescribeMonitoringAgentAccessKeyResult.cc
|
||||
src/model/DescribeMonitoringAgentConfigRequest.cc
|
||||
@@ -482,6 +532,8 @@ set(cms_src
|
||||
src/model/ModifyGroupMonitoringAgentProcessResult.cc
|
||||
src/model/ModifyHostAvailabilityRequest.cc
|
||||
src/model/ModifyHostAvailabilityResult.cc
|
||||
src/model/ModifyHostInfoRequest.cc
|
||||
src/model/ModifyHostInfoResult.cc
|
||||
src/model/ModifyMetricRuleTemplateRequest.cc
|
||||
src/model/ModifyMetricRuleTemplateResult.cc
|
||||
src/model/ModifyMonitorGroupRequest.cc
|
||||
@@ -490,14 +542,20 @@ set(cms_src
|
||||
src/model/ModifyMonitorGroupInstancesResult.cc
|
||||
src/model/ModifySiteMonitorRequest.cc
|
||||
src/model/ModifySiteMonitorResult.cc
|
||||
src/model/OpenCmsServiceRequest.cc
|
||||
src/model/OpenCmsServiceResult.cc
|
||||
src/model/PutContactRequest.cc
|
||||
src/model/PutContactResult.cc
|
||||
src/model/PutContactGroupRequest.cc
|
||||
src/model/PutContactGroupResult.cc
|
||||
src/model/PutCustomEventRequest.cc
|
||||
src/model/PutCustomEventResult.cc
|
||||
src/model/PutCustomEventRuleRequest.cc
|
||||
src/model/PutCustomEventRuleResult.cc
|
||||
src/model/PutCustomMetricRequest.cc
|
||||
src/model/PutCustomMetricResult.cc
|
||||
src/model/PutCustomMetricRuleRequest.cc
|
||||
src/model/PutCustomMetricRuleResult.cc
|
||||
src/model/PutEventRuleRequest.cc
|
||||
src/model/PutEventRuleResult.cc
|
||||
src/model/PutEventRuleTargetsRequest.cc
|
||||
@@ -508,6 +566,8 @@ set(cms_src
|
||||
src/model/PutExporterRuleResult.cc
|
||||
src/model/PutGroupMetricRuleRequest.cc
|
||||
src/model/PutGroupMetricRuleResult.cc
|
||||
src/model/PutLogMonitorRequest.cc
|
||||
src/model/PutLogMonitorResult.cc
|
||||
src/model/PutMetricRuleTargetsRequest.cc
|
||||
src/model/PutMetricRuleTargetsResult.cc
|
||||
src/model/PutMonitorGroupDynamicRuleRequest.cc
|
||||
|
||||
@@ -26,6 +26,12 @@
|
||||
#include "model/AddTagsResult.h"
|
||||
#include "model/ApplyMetricRuleTemplateRequest.h"
|
||||
#include "model/ApplyMetricRuleTemplateResult.h"
|
||||
#include "model/CreateCmsCallNumOrderRequest.h"
|
||||
#include "model/CreateCmsCallNumOrderResult.h"
|
||||
#include "model/CreateCmsOrderRequest.h"
|
||||
#include "model/CreateCmsOrderResult.h"
|
||||
#include "model/CreateCmsSmspackageOrderRequest.h"
|
||||
#include "model/CreateCmsSmspackageOrderResult.h"
|
||||
#include "model/CreateDynamicTagGroupRequest.h"
|
||||
#include "model/CreateDynamicTagGroupResult.h"
|
||||
#include "model/CreateGroupMetricRulesRequest.h"
|
||||
@@ -42,6 +48,8 @@
|
||||
#include "model/CreateMonitorAgentProcessResult.h"
|
||||
#include "model/CreateMonitorGroupRequest.h"
|
||||
#include "model/CreateMonitorGroupResult.h"
|
||||
#include "model/CreateMonitorGroupByResourceGroupIdRequest.h"
|
||||
#include "model/CreateMonitorGroupByResourceGroupIdResult.h"
|
||||
#include "model/CreateMonitorGroupInstancesRequest.h"
|
||||
#include "model/CreateMonitorGroupInstancesResult.h"
|
||||
#include "model/CreateMonitorGroupNotifyPolicyRequest.h"
|
||||
@@ -70,6 +78,8 @@
|
||||
#include "model/DeleteGroupMonitoringAgentProcessResult.h"
|
||||
#include "model/DeleteHostAvailabilityRequest.h"
|
||||
#include "model/DeleteHostAvailabilityResult.h"
|
||||
#include "model/DeleteLogMonitorRequest.h"
|
||||
#include "model/DeleteLogMonitorResult.h"
|
||||
#include "model/DeleteMetricRuleResourcesRequest.h"
|
||||
#include "model/DeleteMetricRuleResourcesResult.h"
|
||||
#include "model/DeleteMetricRuleTargetsRequest.h"
|
||||
@@ -94,6 +104,12 @@
|
||||
#include "model/DescribeActiveMetricRuleListResult.h"
|
||||
#include "model/DescribeAlertHistoryListRequest.h"
|
||||
#include "model/DescribeAlertHistoryListResult.h"
|
||||
#include "model/DescribeAlertLogCountRequest.h"
|
||||
#include "model/DescribeAlertLogCountResult.h"
|
||||
#include "model/DescribeAlertLogHistogramRequest.h"
|
||||
#include "model/DescribeAlertLogHistogramResult.h"
|
||||
#include "model/DescribeAlertLogListRequest.h"
|
||||
#include "model/DescribeAlertLogListResult.h"
|
||||
#include "model/DescribeAlertingMetricRuleResourcesRequest.h"
|
||||
#include "model/DescribeAlertingMetricRuleResourcesResult.h"
|
||||
#include "model/DescribeContactGroupListRequest.h"
|
||||
@@ -122,12 +138,14 @@
|
||||
#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"
|
||||
#include "model/DescribeHostAvailabilityListResult.h"
|
||||
#include "model/DescribeLogMonitorAttributeRequest.h"
|
||||
#include "model/DescribeLogMonitorAttributeResult.h"
|
||||
#include "model/DescribeLogMonitorListRequest.h"
|
||||
#include "model/DescribeLogMonitorListResult.h"
|
||||
#include "model/DescribeMetricDataRequest.h"
|
||||
#include "model/DescribeMetricDataResult.h"
|
||||
#include "model/DescribeMetricLastRequest.h"
|
||||
@@ -160,6 +178,8 @@
|
||||
#include "model/DescribeMonitorGroupNotifyPolicyListResult.h"
|
||||
#include "model/DescribeMonitorGroupsRequest.h"
|
||||
#include "model/DescribeMonitorGroupsResult.h"
|
||||
#include "model/DescribeMonitorResourceQuotaAttributeRequest.h"
|
||||
#include "model/DescribeMonitorResourceQuotaAttributeResult.h"
|
||||
#include "model/DescribeMonitoringAgentAccessKeyRequest.h"
|
||||
#include "model/DescribeMonitoringAgentAccessKeyResult.h"
|
||||
#include "model/DescribeMonitoringAgentConfigRequest.h"
|
||||
@@ -230,6 +250,8 @@
|
||||
#include "model/ModifyGroupMonitoringAgentProcessResult.h"
|
||||
#include "model/ModifyHostAvailabilityRequest.h"
|
||||
#include "model/ModifyHostAvailabilityResult.h"
|
||||
#include "model/ModifyHostInfoRequest.h"
|
||||
#include "model/ModifyHostInfoResult.h"
|
||||
#include "model/ModifyMetricRuleTemplateRequest.h"
|
||||
#include "model/ModifyMetricRuleTemplateResult.h"
|
||||
#include "model/ModifyMonitorGroupRequest.h"
|
||||
@@ -238,14 +260,20 @@
|
||||
#include "model/ModifyMonitorGroupInstancesResult.h"
|
||||
#include "model/ModifySiteMonitorRequest.h"
|
||||
#include "model/ModifySiteMonitorResult.h"
|
||||
#include "model/OpenCmsServiceRequest.h"
|
||||
#include "model/OpenCmsServiceResult.h"
|
||||
#include "model/PutContactRequest.h"
|
||||
#include "model/PutContactResult.h"
|
||||
#include "model/PutContactGroupRequest.h"
|
||||
#include "model/PutContactGroupResult.h"
|
||||
#include "model/PutCustomEventRequest.h"
|
||||
#include "model/PutCustomEventResult.h"
|
||||
#include "model/PutCustomEventRuleRequest.h"
|
||||
#include "model/PutCustomEventRuleResult.h"
|
||||
#include "model/PutCustomMetricRequest.h"
|
||||
#include "model/PutCustomMetricResult.h"
|
||||
#include "model/PutCustomMetricRuleRequest.h"
|
||||
#include "model/PutCustomMetricRuleResult.h"
|
||||
#include "model/PutEventRuleRequest.h"
|
||||
#include "model/PutEventRuleResult.h"
|
||||
#include "model/PutEventRuleTargetsRequest.h"
|
||||
@@ -256,6 +284,8 @@
|
||||
#include "model/PutExporterRuleResult.h"
|
||||
#include "model/PutGroupMetricRuleRequest.h"
|
||||
#include "model/PutGroupMetricRuleResult.h"
|
||||
#include "model/PutLogMonitorRequest.h"
|
||||
#include "model/PutLogMonitorResult.h"
|
||||
#include "model/PutMetricRuleTargetsRequest.h"
|
||||
#include "model/PutMetricRuleTargetsResult.h"
|
||||
#include "model/PutMonitorGroupDynamicRuleRequest.h"
|
||||
@@ -287,6 +317,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ApplyMetricRuleTemplateResult> ApplyMetricRuleTemplateOutcome;
|
||||
typedef std::future<ApplyMetricRuleTemplateOutcome> ApplyMetricRuleTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::ApplyMetricRuleTemplateRequest&, const ApplyMetricRuleTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ApplyMetricRuleTemplateAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCmsCallNumOrderResult> CreateCmsCallNumOrderOutcome;
|
||||
typedef std::future<CreateCmsCallNumOrderOutcome> CreateCmsCallNumOrderOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateCmsCallNumOrderRequest&, const CreateCmsCallNumOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCmsCallNumOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCmsOrderResult> CreateCmsOrderOutcome;
|
||||
typedef std::future<CreateCmsOrderOutcome> CreateCmsOrderOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateCmsOrderRequest&, const CreateCmsOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCmsOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateCmsSmspackageOrderResult> CreateCmsSmspackageOrderOutcome;
|
||||
typedef std::future<CreateCmsSmspackageOrderOutcome> CreateCmsSmspackageOrderOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateCmsSmspackageOrderRequest&, const CreateCmsSmspackageOrderOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateCmsSmspackageOrderAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateDynamicTagGroupResult> CreateDynamicTagGroupOutcome;
|
||||
typedef std::future<CreateDynamicTagGroupOutcome> CreateDynamicTagGroupOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateDynamicTagGroupRequest&, const CreateDynamicTagGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateDynamicTagGroupAsyncHandler;
|
||||
@@ -311,6 +350,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::CreateMonitorGroupResult> CreateMonitorGroupOutcome;
|
||||
typedef std::future<CreateMonitorGroupOutcome> CreateMonitorGroupOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateMonitorGroupRequest&, const CreateMonitorGroupOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMonitorGroupAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMonitorGroupByResourceGroupIdResult> CreateMonitorGroupByResourceGroupIdOutcome;
|
||||
typedef std::future<CreateMonitorGroupByResourceGroupIdOutcome> CreateMonitorGroupByResourceGroupIdOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateMonitorGroupByResourceGroupIdRequest&, const CreateMonitorGroupByResourceGroupIdOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMonitorGroupByResourceGroupIdAsyncHandler;
|
||||
typedef Outcome<Error, Model::CreateMonitorGroupInstancesResult> CreateMonitorGroupInstancesOutcome;
|
||||
typedef std::future<CreateMonitorGroupInstancesOutcome> CreateMonitorGroupInstancesOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::CreateMonitorGroupInstancesRequest&, const CreateMonitorGroupInstancesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> CreateMonitorGroupInstancesAsyncHandler;
|
||||
@@ -353,6 +395,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DeleteHostAvailabilityResult> DeleteHostAvailabilityOutcome;
|
||||
typedef std::future<DeleteHostAvailabilityOutcome> DeleteHostAvailabilityOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DeleteHostAvailabilityRequest&, const DeleteHostAvailabilityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteHostAvailabilityAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteLogMonitorResult> DeleteLogMonitorOutcome;
|
||||
typedef std::future<DeleteLogMonitorOutcome> DeleteLogMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DeleteLogMonitorRequest&, const DeleteLogMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteLogMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::DeleteMetricRuleResourcesResult> DeleteMetricRuleResourcesOutcome;
|
||||
typedef std::future<DeleteMetricRuleResourcesOutcome> DeleteMetricRuleResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DeleteMetricRuleResourcesRequest&, const DeleteMetricRuleResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DeleteMetricRuleResourcesAsyncHandler;
|
||||
@@ -389,6 +434,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeAlertHistoryListResult> DescribeAlertHistoryListOutcome;
|
||||
typedef std::future<DescribeAlertHistoryListOutcome> DescribeAlertHistoryListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeAlertHistoryListRequest&, const DescribeAlertHistoryListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlertHistoryListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAlertLogCountResult> DescribeAlertLogCountOutcome;
|
||||
typedef std::future<DescribeAlertLogCountOutcome> DescribeAlertLogCountOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeAlertLogCountRequest&, const DescribeAlertLogCountOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlertLogCountAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAlertLogHistogramResult> DescribeAlertLogHistogramOutcome;
|
||||
typedef std::future<DescribeAlertLogHistogramOutcome> DescribeAlertLogHistogramOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeAlertLogHistogramRequest&, const DescribeAlertLogHistogramOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlertLogHistogramAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAlertLogListResult> DescribeAlertLogListOutcome;
|
||||
typedef std::future<DescribeAlertLogListOutcome> DescribeAlertLogListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeAlertLogListRequest&, const DescribeAlertLogListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlertLogListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeAlertingMetricRuleResourcesResult> DescribeAlertingMetricRuleResourcesOutcome;
|
||||
typedef std::future<DescribeAlertingMetricRuleResourcesOutcome> DescribeAlertingMetricRuleResourcesOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeAlertingMetricRuleResourcesRequest&, const DescribeAlertingMetricRuleResourcesOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeAlertingMetricRuleResourcesAsyncHandler;
|
||||
@@ -431,15 +485,18 @@ namespace AlibabaCloud
|
||||
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;
|
||||
typedef Outcome<Error, Model::DescribeHostAvailabilityListResult> DescribeHostAvailabilityListOutcome;
|
||||
typedef std::future<DescribeHostAvailabilityListOutcome> DescribeHostAvailabilityListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeHostAvailabilityListRequest&, const DescribeHostAvailabilityListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeHostAvailabilityListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLogMonitorAttributeResult> DescribeLogMonitorAttributeOutcome;
|
||||
typedef std::future<DescribeLogMonitorAttributeOutcome> DescribeLogMonitorAttributeOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeLogMonitorAttributeRequest&, const DescribeLogMonitorAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogMonitorAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeLogMonitorListResult> DescribeLogMonitorListOutcome;
|
||||
typedef std::future<DescribeLogMonitorListOutcome> DescribeLogMonitorListOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeLogMonitorListRequest&, const DescribeLogMonitorListOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeLogMonitorListAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMetricDataResult> DescribeMetricDataOutcome;
|
||||
typedef std::future<DescribeMetricDataOutcome> DescribeMetricDataOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeMetricDataRequest&, const DescribeMetricDataOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMetricDataAsyncHandler;
|
||||
@@ -488,6 +545,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::DescribeMonitorGroupsResult> DescribeMonitorGroupsOutcome;
|
||||
typedef std::future<DescribeMonitorGroupsOutcome> DescribeMonitorGroupsOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeMonitorGroupsRequest&, const DescribeMonitorGroupsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMonitorGroupsAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMonitorResourceQuotaAttributeResult> DescribeMonitorResourceQuotaAttributeOutcome;
|
||||
typedef std::future<DescribeMonitorResourceQuotaAttributeOutcome> DescribeMonitorResourceQuotaAttributeOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeMonitorResourceQuotaAttributeRequest&, const DescribeMonitorResourceQuotaAttributeOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMonitorResourceQuotaAttributeAsyncHandler;
|
||||
typedef Outcome<Error, Model::DescribeMonitoringAgentAccessKeyResult> DescribeMonitoringAgentAccessKeyOutcome;
|
||||
typedef std::future<DescribeMonitoringAgentAccessKeyOutcome> DescribeMonitoringAgentAccessKeyOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::DescribeMonitoringAgentAccessKeyRequest&, const DescribeMonitoringAgentAccessKeyOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> DescribeMonitoringAgentAccessKeyAsyncHandler;
|
||||
@@ -593,6 +653,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifyHostAvailabilityResult> ModifyHostAvailabilityOutcome;
|
||||
typedef std::future<ModifyHostAvailabilityOutcome> ModifyHostAvailabilityOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::ModifyHostAvailabilityRequest&, const ModifyHostAvailabilityOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHostAvailabilityAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyHostInfoResult> ModifyHostInfoOutcome;
|
||||
typedef std::future<ModifyHostInfoOutcome> ModifyHostInfoOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::ModifyHostInfoRequest&, const ModifyHostInfoOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyHostInfoAsyncHandler;
|
||||
typedef Outcome<Error, Model::ModifyMetricRuleTemplateResult> ModifyMetricRuleTemplateOutcome;
|
||||
typedef std::future<ModifyMetricRuleTemplateOutcome> ModifyMetricRuleTemplateOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::ModifyMetricRuleTemplateRequest&, const ModifyMetricRuleTemplateOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifyMetricRuleTemplateAsyncHandler;
|
||||
@@ -605,6 +668,9 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::ModifySiteMonitorResult> ModifySiteMonitorOutcome;
|
||||
typedef std::future<ModifySiteMonitorOutcome> ModifySiteMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::ModifySiteMonitorRequest&, const ModifySiteMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> ModifySiteMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::OpenCmsServiceResult> OpenCmsServiceOutcome;
|
||||
typedef std::future<OpenCmsServiceOutcome> OpenCmsServiceOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::OpenCmsServiceRequest&, const OpenCmsServiceOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> OpenCmsServiceAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutContactResult> PutContactOutcome;
|
||||
typedef std::future<PutContactOutcome> PutContactOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutContactRequest&, const PutContactOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutContactAsyncHandler;
|
||||
@@ -614,9 +680,15 @@ namespace AlibabaCloud
|
||||
typedef Outcome<Error, Model::PutCustomEventResult> PutCustomEventOutcome;
|
||||
typedef std::future<PutCustomEventOutcome> PutCustomEventOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutCustomEventRequest&, const PutCustomEventOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutCustomEventAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutCustomEventRuleResult> PutCustomEventRuleOutcome;
|
||||
typedef std::future<PutCustomEventRuleOutcome> PutCustomEventRuleOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutCustomEventRuleRequest&, const PutCustomEventRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutCustomEventRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutCustomMetricResult> PutCustomMetricOutcome;
|
||||
typedef std::future<PutCustomMetricOutcome> PutCustomMetricOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutCustomMetricRequest&, const PutCustomMetricOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutCustomMetricAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutCustomMetricRuleResult> PutCustomMetricRuleOutcome;
|
||||
typedef std::future<PutCustomMetricRuleOutcome> PutCustomMetricRuleOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutCustomMetricRuleRequest&, const PutCustomMetricRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutCustomMetricRuleAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutEventRuleResult> PutEventRuleOutcome;
|
||||
typedef std::future<PutEventRuleOutcome> PutEventRuleOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutEventRuleRequest&, const PutEventRuleOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutEventRuleAsyncHandler;
|
||||
@@ -632,6 +704,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
typedef Outcome<Error, Model::PutLogMonitorResult> PutLogMonitorOutcome;
|
||||
typedef std::future<PutLogMonitorOutcome> PutLogMonitorOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutLogMonitorRequest&, const PutLogMonitorOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutLogMonitorAsyncHandler;
|
||||
typedef Outcome<Error, Model::PutMetricRuleTargetsResult> PutMetricRuleTargetsOutcome;
|
||||
typedef std::future<PutMetricRuleTargetsOutcome> PutMetricRuleTargetsOutcomeCallable;
|
||||
typedef std::function<void(const CmsClient*, const Model::PutMetricRuleTargetsRequest&, const PutMetricRuleTargetsOutcome&, const std::shared_ptr<const AsyncCallerContext>&)> PutMetricRuleTargetsAsyncHandler;
|
||||
@@ -667,6 +742,15 @@ namespace AlibabaCloud
|
||||
ApplyMetricRuleTemplateOutcome applyMetricRuleTemplate(const Model::ApplyMetricRuleTemplateRequest &request)const;
|
||||
void applyMetricRuleTemplateAsync(const Model::ApplyMetricRuleTemplateRequest& request, const ApplyMetricRuleTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ApplyMetricRuleTemplateOutcomeCallable applyMetricRuleTemplateCallable(const Model::ApplyMetricRuleTemplateRequest& request) const;
|
||||
CreateCmsCallNumOrderOutcome createCmsCallNumOrder(const Model::CreateCmsCallNumOrderRequest &request)const;
|
||||
void createCmsCallNumOrderAsync(const Model::CreateCmsCallNumOrderRequest& request, const CreateCmsCallNumOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCmsCallNumOrderOutcomeCallable createCmsCallNumOrderCallable(const Model::CreateCmsCallNumOrderRequest& request) const;
|
||||
CreateCmsOrderOutcome createCmsOrder(const Model::CreateCmsOrderRequest &request)const;
|
||||
void createCmsOrderAsync(const Model::CreateCmsOrderRequest& request, const CreateCmsOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCmsOrderOutcomeCallable createCmsOrderCallable(const Model::CreateCmsOrderRequest& request) const;
|
||||
CreateCmsSmspackageOrderOutcome createCmsSmspackageOrder(const Model::CreateCmsSmspackageOrderRequest &request)const;
|
||||
void createCmsSmspackageOrderAsync(const Model::CreateCmsSmspackageOrderRequest& request, const CreateCmsSmspackageOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateCmsSmspackageOrderOutcomeCallable createCmsSmspackageOrderCallable(const Model::CreateCmsSmspackageOrderRequest& request) const;
|
||||
CreateDynamicTagGroupOutcome createDynamicTagGroup(const Model::CreateDynamicTagGroupRequest &request)const;
|
||||
void createDynamicTagGroupAsync(const Model::CreateDynamicTagGroupRequest& request, const CreateDynamicTagGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateDynamicTagGroupOutcomeCallable createDynamicTagGroupCallable(const Model::CreateDynamicTagGroupRequest& request) const;
|
||||
@@ -691,6 +775,9 @@ namespace AlibabaCloud
|
||||
CreateMonitorGroupOutcome createMonitorGroup(const Model::CreateMonitorGroupRequest &request)const;
|
||||
void createMonitorGroupAsync(const Model::CreateMonitorGroupRequest& request, const CreateMonitorGroupAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMonitorGroupOutcomeCallable createMonitorGroupCallable(const Model::CreateMonitorGroupRequest& request) const;
|
||||
CreateMonitorGroupByResourceGroupIdOutcome createMonitorGroupByResourceGroupId(const Model::CreateMonitorGroupByResourceGroupIdRequest &request)const;
|
||||
void createMonitorGroupByResourceGroupIdAsync(const Model::CreateMonitorGroupByResourceGroupIdRequest& request, const CreateMonitorGroupByResourceGroupIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMonitorGroupByResourceGroupIdOutcomeCallable createMonitorGroupByResourceGroupIdCallable(const Model::CreateMonitorGroupByResourceGroupIdRequest& request) const;
|
||||
CreateMonitorGroupInstancesOutcome createMonitorGroupInstances(const Model::CreateMonitorGroupInstancesRequest &request)const;
|
||||
void createMonitorGroupInstancesAsync(const Model::CreateMonitorGroupInstancesRequest& request, const CreateMonitorGroupInstancesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
CreateMonitorGroupInstancesOutcomeCallable createMonitorGroupInstancesCallable(const Model::CreateMonitorGroupInstancesRequest& request) const;
|
||||
@@ -733,6 +820,9 @@ namespace AlibabaCloud
|
||||
DeleteHostAvailabilityOutcome deleteHostAvailability(const Model::DeleteHostAvailabilityRequest &request)const;
|
||||
void deleteHostAvailabilityAsync(const Model::DeleteHostAvailabilityRequest& request, const DeleteHostAvailabilityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteHostAvailabilityOutcomeCallable deleteHostAvailabilityCallable(const Model::DeleteHostAvailabilityRequest& request) const;
|
||||
DeleteLogMonitorOutcome deleteLogMonitor(const Model::DeleteLogMonitorRequest &request)const;
|
||||
void deleteLogMonitorAsync(const Model::DeleteLogMonitorRequest& request, const DeleteLogMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteLogMonitorOutcomeCallable deleteLogMonitorCallable(const Model::DeleteLogMonitorRequest& request) const;
|
||||
DeleteMetricRuleResourcesOutcome deleteMetricRuleResources(const Model::DeleteMetricRuleResourcesRequest &request)const;
|
||||
void deleteMetricRuleResourcesAsync(const Model::DeleteMetricRuleResourcesRequest& request, const DeleteMetricRuleResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DeleteMetricRuleResourcesOutcomeCallable deleteMetricRuleResourcesCallable(const Model::DeleteMetricRuleResourcesRequest& request) const;
|
||||
@@ -769,6 +859,15 @@ namespace AlibabaCloud
|
||||
DescribeAlertHistoryListOutcome describeAlertHistoryList(const Model::DescribeAlertHistoryListRequest &request)const;
|
||||
void describeAlertHistoryListAsync(const Model::DescribeAlertHistoryListRequest& request, const DescribeAlertHistoryListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAlertHistoryListOutcomeCallable describeAlertHistoryListCallable(const Model::DescribeAlertHistoryListRequest& request) const;
|
||||
DescribeAlertLogCountOutcome describeAlertLogCount(const Model::DescribeAlertLogCountRequest &request)const;
|
||||
void describeAlertLogCountAsync(const Model::DescribeAlertLogCountRequest& request, const DescribeAlertLogCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAlertLogCountOutcomeCallable describeAlertLogCountCallable(const Model::DescribeAlertLogCountRequest& request) const;
|
||||
DescribeAlertLogHistogramOutcome describeAlertLogHistogram(const Model::DescribeAlertLogHistogramRequest &request)const;
|
||||
void describeAlertLogHistogramAsync(const Model::DescribeAlertLogHistogramRequest& request, const DescribeAlertLogHistogramAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAlertLogHistogramOutcomeCallable describeAlertLogHistogramCallable(const Model::DescribeAlertLogHistogramRequest& request) const;
|
||||
DescribeAlertLogListOutcome describeAlertLogList(const Model::DescribeAlertLogListRequest &request)const;
|
||||
void describeAlertLogListAsync(const Model::DescribeAlertLogListRequest& request, const DescribeAlertLogListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAlertLogListOutcomeCallable describeAlertLogListCallable(const Model::DescribeAlertLogListRequest& request) const;
|
||||
DescribeAlertingMetricRuleResourcesOutcome describeAlertingMetricRuleResources(const Model::DescribeAlertingMetricRuleResourcesRequest &request)const;
|
||||
void describeAlertingMetricRuleResourcesAsync(const Model::DescribeAlertingMetricRuleResourcesRequest& request, const DescribeAlertingMetricRuleResourcesAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeAlertingMetricRuleResourcesOutcomeCallable describeAlertingMetricRuleResourcesCallable(const Model::DescribeAlertingMetricRuleResourcesRequest& request) const;
|
||||
@@ -811,15 +910,18 @@ namespace AlibabaCloud
|
||||
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;
|
||||
DescribeHostAvailabilityListOutcome describeHostAvailabilityList(const Model::DescribeHostAvailabilityListRequest &request)const;
|
||||
void describeHostAvailabilityListAsync(const Model::DescribeHostAvailabilityListRequest& request, const DescribeHostAvailabilityListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeHostAvailabilityListOutcomeCallable describeHostAvailabilityListCallable(const Model::DescribeHostAvailabilityListRequest& request) const;
|
||||
DescribeLogMonitorAttributeOutcome describeLogMonitorAttribute(const Model::DescribeLogMonitorAttributeRequest &request)const;
|
||||
void describeLogMonitorAttributeAsync(const Model::DescribeLogMonitorAttributeRequest& request, const DescribeLogMonitorAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLogMonitorAttributeOutcomeCallable describeLogMonitorAttributeCallable(const Model::DescribeLogMonitorAttributeRequest& request) const;
|
||||
DescribeLogMonitorListOutcome describeLogMonitorList(const Model::DescribeLogMonitorListRequest &request)const;
|
||||
void describeLogMonitorListAsync(const Model::DescribeLogMonitorListRequest& request, const DescribeLogMonitorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeLogMonitorListOutcomeCallable describeLogMonitorListCallable(const Model::DescribeLogMonitorListRequest& request) const;
|
||||
DescribeMetricDataOutcome describeMetricData(const Model::DescribeMetricDataRequest &request)const;
|
||||
void describeMetricDataAsync(const Model::DescribeMetricDataRequest& request, const DescribeMetricDataAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMetricDataOutcomeCallable describeMetricDataCallable(const Model::DescribeMetricDataRequest& request) const;
|
||||
@@ -868,6 +970,9 @@ namespace AlibabaCloud
|
||||
DescribeMonitorGroupsOutcome describeMonitorGroups(const Model::DescribeMonitorGroupsRequest &request)const;
|
||||
void describeMonitorGroupsAsync(const Model::DescribeMonitorGroupsRequest& request, const DescribeMonitorGroupsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMonitorGroupsOutcomeCallable describeMonitorGroupsCallable(const Model::DescribeMonitorGroupsRequest& request) const;
|
||||
DescribeMonitorResourceQuotaAttributeOutcome describeMonitorResourceQuotaAttribute(const Model::DescribeMonitorResourceQuotaAttributeRequest &request)const;
|
||||
void describeMonitorResourceQuotaAttributeAsync(const Model::DescribeMonitorResourceQuotaAttributeRequest& request, const DescribeMonitorResourceQuotaAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMonitorResourceQuotaAttributeOutcomeCallable describeMonitorResourceQuotaAttributeCallable(const Model::DescribeMonitorResourceQuotaAttributeRequest& request) const;
|
||||
DescribeMonitoringAgentAccessKeyOutcome describeMonitoringAgentAccessKey(const Model::DescribeMonitoringAgentAccessKeyRequest &request)const;
|
||||
void describeMonitoringAgentAccessKeyAsync(const Model::DescribeMonitoringAgentAccessKeyRequest& request, const DescribeMonitoringAgentAccessKeyAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
DescribeMonitoringAgentAccessKeyOutcomeCallable describeMonitoringAgentAccessKeyCallable(const Model::DescribeMonitoringAgentAccessKeyRequest& request) const;
|
||||
@@ -973,6 +1078,9 @@ namespace AlibabaCloud
|
||||
ModifyHostAvailabilityOutcome modifyHostAvailability(const Model::ModifyHostAvailabilityRequest &request)const;
|
||||
void modifyHostAvailabilityAsync(const Model::ModifyHostAvailabilityRequest& request, const ModifyHostAvailabilityAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyHostAvailabilityOutcomeCallable modifyHostAvailabilityCallable(const Model::ModifyHostAvailabilityRequest& request) const;
|
||||
ModifyHostInfoOutcome modifyHostInfo(const Model::ModifyHostInfoRequest &request)const;
|
||||
void modifyHostInfoAsync(const Model::ModifyHostInfoRequest& request, const ModifyHostInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyHostInfoOutcomeCallable modifyHostInfoCallable(const Model::ModifyHostInfoRequest& request) const;
|
||||
ModifyMetricRuleTemplateOutcome modifyMetricRuleTemplate(const Model::ModifyMetricRuleTemplateRequest &request)const;
|
||||
void modifyMetricRuleTemplateAsync(const Model::ModifyMetricRuleTemplateRequest& request, const ModifyMetricRuleTemplateAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifyMetricRuleTemplateOutcomeCallable modifyMetricRuleTemplateCallable(const Model::ModifyMetricRuleTemplateRequest& request) const;
|
||||
@@ -985,6 +1093,9 @@ namespace AlibabaCloud
|
||||
ModifySiteMonitorOutcome modifySiteMonitor(const Model::ModifySiteMonitorRequest &request)const;
|
||||
void modifySiteMonitorAsync(const Model::ModifySiteMonitorRequest& request, const ModifySiteMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
ModifySiteMonitorOutcomeCallable modifySiteMonitorCallable(const Model::ModifySiteMonitorRequest& request) const;
|
||||
OpenCmsServiceOutcome openCmsService(const Model::OpenCmsServiceRequest &request)const;
|
||||
void openCmsServiceAsync(const Model::OpenCmsServiceRequest& request, const OpenCmsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
OpenCmsServiceOutcomeCallable openCmsServiceCallable(const Model::OpenCmsServiceRequest& request) const;
|
||||
PutContactOutcome putContact(const Model::PutContactRequest &request)const;
|
||||
void putContactAsync(const Model::PutContactRequest& request, const PutContactAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutContactOutcomeCallable putContactCallable(const Model::PutContactRequest& request) const;
|
||||
@@ -994,9 +1105,15 @@ namespace AlibabaCloud
|
||||
PutCustomEventOutcome putCustomEvent(const Model::PutCustomEventRequest &request)const;
|
||||
void putCustomEventAsync(const Model::PutCustomEventRequest& request, const PutCustomEventAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutCustomEventOutcomeCallable putCustomEventCallable(const Model::PutCustomEventRequest& request) const;
|
||||
PutCustomEventRuleOutcome putCustomEventRule(const Model::PutCustomEventRuleRequest &request)const;
|
||||
void putCustomEventRuleAsync(const Model::PutCustomEventRuleRequest& request, const PutCustomEventRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutCustomEventRuleOutcomeCallable putCustomEventRuleCallable(const Model::PutCustomEventRuleRequest& request) const;
|
||||
PutCustomMetricOutcome putCustomMetric(const Model::PutCustomMetricRequest &request)const;
|
||||
void putCustomMetricAsync(const Model::PutCustomMetricRequest& request, const PutCustomMetricAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutCustomMetricOutcomeCallable putCustomMetricCallable(const Model::PutCustomMetricRequest& request) const;
|
||||
PutCustomMetricRuleOutcome putCustomMetricRule(const Model::PutCustomMetricRuleRequest &request)const;
|
||||
void putCustomMetricRuleAsync(const Model::PutCustomMetricRuleRequest& request, const PutCustomMetricRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutCustomMetricRuleOutcomeCallable putCustomMetricRuleCallable(const Model::PutCustomMetricRuleRequest& request) const;
|
||||
PutEventRuleOutcome putEventRule(const Model::PutEventRuleRequest &request)const;
|
||||
void putEventRuleAsync(const Model::PutEventRuleRequest& request, const PutEventRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutEventRuleOutcomeCallable putEventRuleCallable(const Model::PutEventRuleRequest& request) const;
|
||||
@@ -1012,6 +1129,9 @@ namespace AlibabaCloud
|
||||
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;
|
||||
PutLogMonitorOutcome putLogMonitor(const Model::PutLogMonitorRequest &request)const;
|
||||
void putLogMonitorAsync(const Model::PutLogMonitorRequest& request, const PutLogMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutLogMonitorOutcomeCallable putLogMonitorCallable(const Model::PutLogMonitorRequest& request) const;
|
||||
PutMetricRuleTargetsOutcome putMetricRuleTargets(const Model::PutMetricRuleTargetsRequest &request)const;
|
||||
void putMetricRuleTargetsAsync(const Model::PutMetricRuleTargetsRequest& request, const PutMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context = nullptr) const;
|
||||
PutMetricRuleTargetsOutcomeCallable putMetricRuleTargetsCallable(const Model::PutMetricRuleTargetsRequest& request) const;
|
||||
|
||||
@@ -41,7 +41,6 @@ namespace AlibabaCloud
|
||||
std::string code;
|
||||
std::string ruleName;
|
||||
bool success;
|
||||
long groupId;
|
||||
};
|
||||
std::vector<Result> alertResults;
|
||||
long groupId;
|
||||
|
||||
@@ -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_CREATECMSCALLNUMORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERREQUEST_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 CreateCmsCallNumOrderRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateCmsCallNumOrderRequest();
|
||||
~CreateCmsCallNumOrderRequest();
|
||||
|
||||
int getAutoRenewPeriod()const;
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
bool getAutoPay()const;
|
||||
void setAutoPay(bool autoPay);
|
||||
bool getAutoUseCoupon()const;
|
||||
void setAutoUseCoupon(bool autoUseCoupon);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
std::string getPhoneCount()const;
|
||||
void setPhoneCount(const std::string& phoneCount);
|
||||
|
||||
private:
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
bool autoPay_;
|
||||
bool autoUseCoupon_;
|
||||
std::string periodUnit_;
|
||||
std::string phoneCount_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERREQUEST_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_CREATECMSCALLNUMORDERRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERRESULT_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 CreateCmsCallNumOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateCmsCallNumOrderResult();
|
||||
explicit CreateCmsCallNumOrderResult(const std::string &payload);
|
||||
~CreateCmsCallNumOrderResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERRESULT_H_
|
||||
96
cms/include/alibabacloud/cms/model/CreateCmsOrderRequest.h
Normal file
96
cms/include/alibabacloud/cms/model/CreateCmsOrderRequest.h
Normal file
@@ -0,0 +1,96 @@
|
||||
/*
|
||||
* 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_CREATECMSORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_CREATECMSORDERREQUEST_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 CreateCmsOrderRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateCmsOrderRequest();
|
||||
~CreateCmsOrderRequest();
|
||||
|
||||
std::string getSmsCount()const;
|
||||
void setSmsCount(const std::string& smsCount);
|
||||
bool getAutoUseCoupon()const;
|
||||
void setAutoUseCoupon(bool autoUseCoupon);
|
||||
std::string getLogMonitorStream()const;
|
||||
void setLogMonitorStream(const std::string& logMonitorStream);
|
||||
std::string getCustomTimeSeries()const;
|
||||
void setCustomTimeSeries(const std::string& customTimeSeries);
|
||||
std::string getApiCount()const;
|
||||
void setApiCount(const std::string& apiCount);
|
||||
std::string getPhoneCount()const;
|
||||
void setPhoneCount(const std::string& phoneCount);
|
||||
int getAutoRenewPeriod()const;
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
bool getAutoPay()const;
|
||||
void setAutoPay(bool autoPay);
|
||||
std::string getSuggestType()const;
|
||||
void setSuggestType(const std::string& suggestType);
|
||||
std::string getEventStoreNum()const;
|
||||
void setEventStoreNum(const std::string& eventStoreNum);
|
||||
std::string getSiteTaskNum()const;
|
||||
void setSiteTaskNum(const std::string& siteTaskNum);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
std::string getSiteOperatorNum()const;
|
||||
void setSiteOperatorNum(const std::string& siteOperatorNum);
|
||||
std::string getSiteEcsNum()const;
|
||||
void setSiteEcsNum(const std::string& siteEcsNum);
|
||||
std::string getEventStoreTime()const;
|
||||
void setEventStoreTime(const std::string& eventStoreTime);
|
||||
std::string getPayType()const;
|
||||
void setPayType(const std::string& payType);
|
||||
|
||||
private:
|
||||
std::string smsCount_;
|
||||
bool autoUseCoupon_;
|
||||
std::string logMonitorStream_;
|
||||
std::string customTimeSeries_;
|
||||
std::string apiCount_;
|
||||
std::string phoneCount_;
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
bool autoPay_;
|
||||
std::string suggestType_;
|
||||
std::string eventStoreNum_;
|
||||
std::string siteTaskNum_;
|
||||
std::string periodUnit_;
|
||||
std::string siteOperatorNum_;
|
||||
std::string siteEcsNum_;
|
||||
std::string eventStoreTime_;
|
||||
std::string payType_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSORDERREQUEST_H_
|
||||
51
cms/include/alibabacloud/cms/model/CreateCmsOrderResult.h
Normal file
51
cms/include/alibabacloud/cms/model/CreateCmsOrderResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_CREATECMSORDERRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_CREATECMSORDERRESULT_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 CreateCmsOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateCmsOrderResult();
|
||||
explicit CreateCmsOrderResult(const std::string &payload);
|
||||
~CreateCmsOrderResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSORDERRESULT_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERREQUEST_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 CreateCmsSmspackageOrderRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateCmsSmspackageOrderRequest();
|
||||
~CreateCmsSmspackageOrderRequest();
|
||||
|
||||
int getAutoRenewPeriod()const;
|
||||
void setAutoRenewPeriod(int autoRenewPeriod);
|
||||
int getPeriod()const;
|
||||
void setPeriod(int period);
|
||||
bool getAutoPay()const;
|
||||
void setAutoPay(bool autoPay);
|
||||
std::string getSmsCount()const;
|
||||
void setSmsCount(const std::string& smsCount);
|
||||
bool getAutoUseCoupon()const;
|
||||
void setAutoUseCoupon(bool autoUseCoupon);
|
||||
std::string getPeriodUnit()const;
|
||||
void setPeriodUnit(const std::string& periodUnit);
|
||||
|
||||
private:
|
||||
int autoRenewPeriod_;
|
||||
int period_;
|
||||
bool autoPay_;
|
||||
std::string smsCount_;
|
||||
bool autoUseCoupon_;
|
||||
std::string periodUnit_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERREQUEST_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_CREATECMSSMSPACKAGEORDERRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERRESULT_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 CreateCmsSmspackageOrderResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateCmsSmspackageOrderResult();
|
||||
explicit CreateCmsSmspackageOrderResult(const std::string &payload);
|
||||
~CreateCmsSmspackageOrderResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_CREATECMSSMSPACKAGEORDERRESULT_H_
|
||||
@@ -47,8 +47,6 @@ namespace AlibabaCloud
|
||||
void setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation);
|
||||
bool getEnableInstallAgent()const;
|
||||
void setEnableInstallAgent(bool enableInstallAgent);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<MatchExpress> getMatchExpress()const;
|
||||
void setMatchExpress(const std::vector<MatchExpress>& matchExpress);
|
||||
std::vector<std::string> getContactGroupList()const;
|
||||
@@ -62,7 +60,6 @@ namespace AlibabaCloud
|
||||
bool enableSubscribeEvent_;
|
||||
std::string matchExpressFilterRelation_;
|
||||
bool enableInstallAgent_;
|
||||
std::string regionId_;
|
||||
std::vector<MatchExpress> matchExpress_;
|
||||
std::vector<std::string> contactGroupList_;
|
||||
std::vector<std::string> templateIdList_;
|
||||
|
||||
@@ -46,6 +46,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getTaskOptionHttpMethod()const;
|
||||
void setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod);
|
||||
std::string getTaskOptionHttpHeader()const;
|
||||
void setTaskOptionHttpHeader(const std::string& taskOptionHttpHeader);
|
||||
std::vector<AlertConfigEscalationList> getAlertConfigEscalationList()const;
|
||||
void setAlertConfigEscalationList(const std::vector<AlertConfigEscalationList>& alertConfigEscalationList);
|
||||
std::string getTaskName()const;
|
||||
@@ -74,6 +76,8 @@ namespace AlibabaCloud
|
||||
void setTaskOptionHttpURI(const std::string& taskOptionHttpURI);
|
||||
std::string getTaskScope()const;
|
||||
void setTaskScope(const std::string& taskScope);
|
||||
std::string getTaskOptionHttpPostContent()const;
|
||||
void setTaskOptionHttpPostContent(const std::string& taskOptionHttpPostContent);
|
||||
int getAlertConfigStartTime()const;
|
||||
void setAlertConfigStartTime(int alertConfigStartTime);
|
||||
std::string getAlertConfigWebHook()const;
|
||||
@@ -81,6 +85,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string taskOptionHttpMethod_;
|
||||
std::string taskOptionHttpHeader_;
|
||||
std::vector<AlertConfigEscalationList> alertConfigEscalationList_;
|
||||
std::string taskName_;
|
||||
int alertConfigSilenceTime_;
|
||||
@@ -95,6 +100,7 @@ namespace AlibabaCloud
|
||||
int alertConfigEndTime_;
|
||||
std::string taskOptionHttpURI_;
|
||||
std::string taskScope_;
|
||||
std::string taskOptionHttpPostContent_;
|
||||
int alertConfigStartTime_;
|
||||
std::string alertConfigWebHook_;
|
||||
|
||||
|
||||
@@ -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_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_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 CreateMonitorGroupByResourceGroupIdRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
CreateMonitorGroupByResourceGroupIdRequest();
|
||||
~CreateMonitorGroupByResourceGroupIdRequest();
|
||||
|
||||
std::string getResourceGroupName()const;
|
||||
void setResourceGroupName(const std::string& resourceGroupName);
|
||||
bool getEnableSubscribeEvent()const;
|
||||
void setEnableSubscribeEvent(bool enableSubscribeEvent);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
bool getEnableInstallAgent()const;
|
||||
void setEnableInstallAgent(bool enableInstallAgent);
|
||||
std::string getRegionId()const;
|
||||
void setRegionId(const std::string& regionId);
|
||||
std::vector<std::string> getContactGroupList()const;
|
||||
void setContactGroupList(const std::vector<std::string>& contactGroupList);
|
||||
|
||||
private:
|
||||
std::string resourceGroupName_;
|
||||
bool enableSubscribeEvent_;
|
||||
std::string resourceGroupId_;
|
||||
bool enableInstallAgent_;
|
||||
std::string regionId_;
|
||||
std::vector<std::string> contactGroupList_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_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_CREATEMONITORGROUPBYRESOURCEGROUPIDRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDRESULT_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 CreateMonitorGroupByResourceGroupIdResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
CreateMonitorGroupByResourceGroupIdResult();
|
||||
explicit CreateMonitorGroupByResourceGroupIdResult(const std::string &payload);
|
||||
~CreateMonitorGroupByResourceGroupIdResult();
|
||||
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_CREATEMONITORGROUPBYRESOURCEGROUPIDRESULT_H_
|
||||
@@ -45,12 +45,12 @@ namespace AlibabaCloud
|
||||
|
||||
std::vector<Instances> getInstances()const;
|
||||
void setInstances(const std::vector<Instances>& instances);
|
||||
long getGroupId()const;
|
||||
void setGroupId(long groupId);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
|
||||
private:
|
||||
std::vector<Instances> instances_;
|
||||
long groupId_;
|
||||
std::string groupId_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -44,6 +44,11 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::vector<Contact> attachAlertResult;
|
||||
};
|
||||
struct CreateResultListItem
|
||||
{
|
||||
std::string taskId;
|
||||
std::string taskName;
|
||||
};
|
||||
|
||||
|
||||
CreateSiteMonitorResult();
|
||||
@@ -51,18 +56,18 @@ namespace AlibabaCloud
|
||||
~CreateSiteMonitorResult();
|
||||
std::string getMessage()const;
|
||||
Data getData()const;
|
||||
std::vector<CreateResultListItem> getCreateResultList()const;
|
||||
std::string getCode()const;
|
||||
std::string getSuccess()const;
|
||||
std::string getAlertRule()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
Data data_;
|
||||
std::vector<CreateResultListItem> createResultList_;
|
||||
std::string code_;
|
||||
std::string success_;
|
||||
std::string alertRule_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTREQUEST_H_
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORREQUEST_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -28,21 +28,21 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT DescribeFolderListRequest : public RpcServiceRequest
|
||||
class ALIBABACLOUD_CMS_EXPORT DeleteLogMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeFolderListRequest();
|
||||
~DescribeFolderListRequest();
|
||||
DeleteLogMonitorRequest();
|
||||
~DeleteLogMonitorRequest();
|
||||
|
||||
std::string getAppName()const;
|
||||
void setAppName(const std::string& appName);
|
||||
long getLogId()const;
|
||||
void setLogId(long logId);
|
||||
|
||||
private:
|
||||
std::string appName_;
|
||||
long logId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTREQUEST_H_
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORREQUEST_H_
|
||||
55
cms/include/alibabacloud/cms/model/DeleteLogMonitorResult.h
Normal file
55
cms/include/alibabacloud/cms/model/DeleteLogMonitorResult.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_DELETELOGMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORRESULT_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 DeleteLogMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
DeleteLogMonitorResult();
|
||||
explicit DeleteLogMonitorResult(const std::string &payload);
|
||||
~DeleteLogMonitorResult();
|
||||
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_DELETELOGMONITORRESULT_H_
|
||||
@@ -51,12 +51,59 @@ namespace AlibabaCloud
|
||||
std::string ruleName;
|
||||
std::string threshold;
|
||||
};
|
||||
struct Alert
|
||||
{
|
||||
struct Escalations
|
||||
{
|
||||
struct Info
|
||||
{
|
||||
std::string comparisonOperator;
|
||||
std::string times;
|
||||
std::string statistics;
|
||||
std::string threshold;
|
||||
};
|
||||
struct Warn
|
||||
{
|
||||
std::string comparisonOperator;
|
||||
std::string times;
|
||||
std::string statistics;
|
||||
std::string threshold;
|
||||
};
|
||||
struct Critical
|
||||
{
|
||||
std::string comparisonOperator;
|
||||
std::string times;
|
||||
std::string statistics;
|
||||
std::string threshold;
|
||||
};
|
||||
Critical critical;
|
||||
Info info;
|
||||
Warn warn;
|
||||
};
|
||||
std::string noEffectiveInterval;
|
||||
std::string silenceTime;
|
||||
std::string contactGroups;
|
||||
std::string mailSubject;
|
||||
std::string ruleId;
|
||||
std::string period;
|
||||
std::string dimensions;
|
||||
std::string _namespace;
|
||||
std::string effectiveInterval;
|
||||
std::string alertState;
|
||||
std::string metricName;
|
||||
Escalations escalations;
|
||||
bool enableState;
|
||||
std::string webhook;
|
||||
std::string resources;
|
||||
std::string ruleName;
|
||||
};
|
||||
|
||||
|
||||
DescribeActiveMetricRuleListResult();
|
||||
explicit DescribeActiveMetricRuleListResult(const std::string &payload);
|
||||
~DescribeActiveMetricRuleListResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<Alert> getAlertList()const;
|
||||
std::vector<Alarm> getDatapoints()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
@@ -65,6 +112,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<Alert> alertList_;
|
||||
std::vector<Alarm> datapoints_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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_DESCRIBEALERTLOGCOUNTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTREQUEST_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 DescribeAlertLogCountRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAlertLogCountRequest();
|
||||
~DescribeAlertLogCountRequest();
|
||||
|
||||
std::string getSendStatus()const;
|
||||
void setSendStatus(const std::string& sendStatus);
|
||||
std::string getContactGroup()const;
|
||||
void setContactGroup(const std::string& contactGroup);
|
||||
std::string getSearchKey()const;
|
||||
void setSearchKey(const std::string& searchKey);
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getLastMin()const;
|
||||
void setLastMin(const std::string& lastMin);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getMetricName()const;
|
||||
void setMetricName(const std::string& metricName);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getLevel()const;
|
||||
void setLevel(const std::string& level);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getGroupBy()const;
|
||||
void setGroupBy(const std::string& groupBy);
|
||||
std::string get_Namespace()const;
|
||||
void set_Namespace(const std::string& _namespace);
|
||||
|
||||
private:
|
||||
std::string sendStatus_;
|
||||
std::string contactGroup_;
|
||||
std::string searchKey_;
|
||||
std::string ruleName_;
|
||||
long startTime_;
|
||||
int pageNumber_;
|
||||
std::string lastMin_;
|
||||
int pageSize_;
|
||||
std::string metricName_;
|
||||
std::string product_;
|
||||
std::string level_;
|
||||
std::string groupId_;
|
||||
long endTime_;
|
||||
std::string groupBy_;
|
||||
std::string _namespace_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTREQUEST_H_
|
||||
@@ -0,0 +1,67 @@
|
||||
/*
|
||||
* 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_DESCRIBEALERTLOGCOUNTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTRESULT_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 DescribeAlertLogCountResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AlertLogCountItem
|
||||
{
|
||||
struct LogsItem
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
std::vector<AlertLogCountItem::LogsItem> logs;
|
||||
int count;
|
||||
};
|
||||
|
||||
|
||||
DescribeAlertLogCountResult();
|
||||
explicit DescribeAlertLogCountResult(const std::string &payload);
|
||||
~DescribeAlertLogCountResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<AlertLogCountItem> getAlertLogCount()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<AlertLogCountItem> alertLogCount_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTRESULT_H_
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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_DESCRIBEALERTLOGHISTOGRAMREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMREQUEST_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 DescribeAlertLogHistogramRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAlertLogHistogramRequest();
|
||||
~DescribeAlertLogHistogramRequest();
|
||||
|
||||
std::string getSendStatus()const;
|
||||
void setSendStatus(const std::string& sendStatus);
|
||||
std::string getContactGroup()const;
|
||||
void setContactGroup(const std::string& contactGroup);
|
||||
std::string getSearchKey()const;
|
||||
void setSearchKey(const std::string& searchKey);
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getLastMin()const;
|
||||
void setLastMin(const std::string& lastMin);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getMetricName()const;
|
||||
void setMetricName(const std::string& metricName);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getLevel()const;
|
||||
void setLevel(const std::string& level);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getGroupBy()const;
|
||||
void setGroupBy(const std::string& groupBy);
|
||||
std::string get_Namespace()const;
|
||||
void set_Namespace(const std::string& _namespace);
|
||||
|
||||
private:
|
||||
std::string sendStatus_;
|
||||
std::string contactGroup_;
|
||||
std::string searchKey_;
|
||||
std::string ruleName_;
|
||||
long startTime_;
|
||||
int pageNumber_;
|
||||
std::string lastMin_;
|
||||
int pageSize_;
|
||||
std::string metricName_;
|
||||
std::string product_;
|
||||
std::string level_;
|
||||
std::string groupId_;
|
||||
long endTime_;
|
||||
std::string groupBy_;
|
||||
std::string _namespace_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMREQUEST_H_
|
||||
@@ -0,0 +1,63 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMRESULT_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 DescribeAlertLogHistogramResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AlertLogHistogramListItem
|
||||
{
|
||||
int count;
|
||||
long from;
|
||||
long to;
|
||||
};
|
||||
|
||||
|
||||
DescribeAlertLogHistogramResult();
|
||||
explicit DescribeAlertLogHistogramResult(const std::string &payload);
|
||||
~DescribeAlertLogHistogramResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<AlertLogHistogramListItem> getAlertLogHistogramList()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<AlertLogHistogramListItem> alertLogHistogramList_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMRESULT_H_
|
||||
@@ -0,0 +1,90 @@
|
||||
/*
|
||||
* 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_DESCRIBEALERTLOGLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTREQUEST_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 DescribeAlertLogListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeAlertLogListRequest();
|
||||
~DescribeAlertLogListRequest();
|
||||
|
||||
std::string getSendStatus()const;
|
||||
void setSendStatus(const std::string& sendStatus);
|
||||
std::string getContactGroup()const;
|
||||
void setContactGroup(const std::string& contactGroup);
|
||||
std::string getSearchKey()const;
|
||||
void setSearchKey(const std::string& searchKey);
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
long getStartTime()const;
|
||||
void setStartTime(long startTime);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getLastMin()const;
|
||||
void setLastMin(const std::string& lastMin);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getMetricName()const;
|
||||
void setMetricName(const std::string& metricName);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getLevel()const;
|
||||
void setLevel(const std::string& level);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
long getEndTime()const;
|
||||
void setEndTime(long endTime);
|
||||
std::string getGroupBy()const;
|
||||
void setGroupBy(const std::string& groupBy);
|
||||
std::string get_Namespace()const;
|
||||
void set_Namespace(const std::string& _namespace);
|
||||
|
||||
private:
|
||||
std::string sendStatus_;
|
||||
std::string contactGroup_;
|
||||
std::string searchKey_;
|
||||
std::string ruleName_;
|
||||
long startTime_;
|
||||
int pageNumber_;
|
||||
std::string lastMin_;
|
||||
int pageSize_;
|
||||
std::string metricName_;
|
||||
std::string product_;
|
||||
std::string level_;
|
||||
std::string groupId_;
|
||||
long endTime_;
|
||||
std::string groupBy_;
|
||||
std::string _namespace_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTREQUEST_H_
|
||||
108
cms/include/alibabacloud/cms/model/DescribeAlertLogListResult.h
Normal file
108
cms/include/alibabacloud/cms/model/DescribeAlertLogListResult.h
Normal file
@@ -0,0 +1,108 @@
|
||||
/*
|
||||
* 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_DESCRIBEALERTLOGLISTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTRESULT_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 DescribeAlertLogListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Alarm
|
||||
{
|
||||
struct Escalation
|
||||
{
|
||||
std::string expression;
|
||||
int times;
|
||||
std::string level;
|
||||
};
|
||||
struct ExtInfo
|
||||
{
|
||||
std::string value;
|
||||
std::string name;
|
||||
};
|
||||
struct DimensionsItem
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
};
|
||||
std::string groupName;
|
||||
std::vector<std::string> contactALIIWWList;
|
||||
std::string message;
|
||||
Escalation escalation;
|
||||
std::string ruleId;
|
||||
std::string sendStatus;
|
||||
std::string product;
|
||||
std::string metricName;
|
||||
std::vector<std::string> contactSMSList;
|
||||
std::string ruleName;
|
||||
std::vector<std::string> contactGroups;
|
||||
std::vector<std::string> dingdingWebhookList;
|
||||
std::string instanceId;
|
||||
std::vector<Alarm::DimensionsItem> dimensions;
|
||||
std::string levelChange;
|
||||
std::vector<std::string> contactOnCallList;
|
||||
std::string _namespace;
|
||||
std::vector<std::string> contactDingList;
|
||||
std::string eventName;
|
||||
std::vector<Alarm::ExtInfo> extendedInfo;
|
||||
std::string alertTime;
|
||||
std::string groupId;
|
||||
std::string instanceName;
|
||||
std::vector<std::string> webhookList;
|
||||
std::vector<std::string> contactMailList;
|
||||
std::string level;
|
||||
};
|
||||
|
||||
|
||||
DescribeAlertLogListResult();
|
||||
explicit DescribeAlertLogListResult(const std::string &payload);
|
||||
~DescribeAlertLogListResult();
|
||||
std::vector<Alarm> getAlertLogList()const;
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getTotal()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<Alarm> alertLogList_;
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
int total_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTRESULT_H_
|
||||
@@ -39,6 +39,8 @@ namespace AlibabaCloud
|
||||
void setGroupId(const std::string& groupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string get_Namespace()const;
|
||||
void set_Namespace(const std::string& _namespace);
|
||||
int getPage()const;
|
||||
void setPage(int page);
|
||||
std::string getRuleId()const;
|
||||
@@ -47,6 +49,7 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string groupId_;
|
||||
int pageSize_;
|
||||
std::string _namespace_;
|
||||
int page_;
|
||||
std::string ruleId_;
|
||||
|
||||
|
||||
@@ -34,16 +34,33 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct Resource
|
||||
{
|
||||
std::string lastAlertTime;
|
||||
struct Resource1
|
||||
{
|
||||
std::string comparisonOperator;
|
||||
std::string expression;
|
||||
int times;
|
||||
std::string preCondition;
|
||||
int level;
|
||||
std::string tag;
|
||||
std::string threshold;
|
||||
};
|
||||
std::vector<Resource::Resource1> escalation;
|
||||
std::string ruleId;
|
||||
std::string resource;
|
||||
std::string startTime;
|
||||
std::string enable;
|
||||
std::string dimensions;
|
||||
std::string _namespace;
|
||||
std::string metricValues;
|
||||
std::string lastModifyTime;
|
||||
std::string statistics;
|
||||
std::string groupId;
|
||||
std::string metricName;
|
||||
std::string lastAlertTime;
|
||||
std::string productCategory;
|
||||
std::string enable;
|
||||
int level;
|
||||
std::string ruleName;
|
||||
std::string retryTimes;
|
||||
std::string groupId;
|
||||
std::string threshold;
|
||||
};
|
||||
|
||||
|
||||
@@ -32,11 +32,22 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CMS_EXPORT DescribeContactGroupListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ContactGroup
|
||||
{
|
||||
std::string describe;
|
||||
std::vector<std::string> contacts;
|
||||
long createTime;
|
||||
long updateTime;
|
||||
bool enabledWeeklyReport;
|
||||
bool enableSubscribed;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
|
||||
DescribeContactGroupListResult();
|
||||
explicit DescribeContactGroupListResult(const std::string &payload);
|
||||
~DescribeContactGroupListResult();
|
||||
std::vector<ContactGroup> getContactGroupList()const;
|
||||
std::vector<std::string> getContactGroups()const;
|
||||
std::string getMessage()const;
|
||||
int getTotal()const;
|
||||
@@ -46,6 +57,7 @@ namespace AlibabaCloud
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::vector<ContactGroup> contactGroupList_;
|
||||
std::vector<std::string> contactGroups_;
|
||||
std::string message_;
|
||||
int total_;
|
||||
|
||||
@@ -35,17 +35,23 @@ namespace AlibabaCloud
|
||||
DescribeContactListRequest();
|
||||
~DescribeContactListRequest();
|
||||
|
||||
std::string getChanelType()const;
|
||||
void setChanelType(const std::string& chanelType);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getContactName()const;
|
||||
void setContactName(const std::string& contactName);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getChanelValue()const;
|
||||
void setChanelValue(const std::string& chanelValue);
|
||||
|
||||
private:
|
||||
std::string chanelType_;
|
||||
int pageNumber_;
|
||||
std::string contactName_;
|
||||
int pageSize_;
|
||||
std::string chanelValue_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -41,9 +41,19 @@ namespace AlibabaCloud
|
||||
std::string dingWebHook;
|
||||
std::string sMS;
|
||||
};
|
||||
struct ChannelsState
|
||||
{
|
||||
std::string mail;
|
||||
std::string aliIM;
|
||||
std::string dingWebHook;
|
||||
std::string sMS;
|
||||
};
|
||||
ChannelsState channelsState;
|
||||
std::string desc;
|
||||
std::vector<std::string> contactGroups;
|
||||
long createTime;
|
||||
long updateTime;
|
||||
std::string lang;
|
||||
Channels channels;
|
||||
std::string name;
|
||||
};
|
||||
|
||||
@@ -45,8 +45,6 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getLevel()const;
|
||||
void setLevel(const std::string& level);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getEndTime()const;
|
||||
@@ -60,7 +58,6 @@ namespace AlibabaCloud
|
||||
std::string searchKeywords_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string level_;
|
||||
std::string groupId_;
|
||||
std::string endTime_;
|
||||
std::string name_;
|
||||
|
||||
@@ -37,8 +37,6 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getEventId()const;
|
||||
void setEventId(const std::string& eventId);
|
||||
std::string getLevel()const;
|
||||
void setLevel(const std::string& level);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getEndTime()const;
|
||||
@@ -52,7 +50,6 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string eventId_;
|
||||
std::string level_;
|
||||
std::string groupId_;
|
||||
std::string endTime_;
|
||||
std::string startTime_;
|
||||
|
||||
@@ -65,6 +65,9 @@ namespace AlibabaCloud
|
||||
explicit DescribeGroupMonitoringAgentProcessResult(const std::string &payload);
|
||||
~DescribeGroupMonitoringAgentProcessResult();
|
||||
std::string getMessage()const;
|
||||
std::string getPageSize()const;
|
||||
std::string getPageNumber()const;
|
||||
std::string getTotal()const;
|
||||
std::vector<Process> getProcesses()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
@@ -73,6 +76,9 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string pageSize_;
|
||||
std::string pageNumber_;
|
||||
std::string total_;
|
||||
std::vector<Process> processes_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
struct TaskOption
|
||||
{
|
||||
std::string httpPostContent;
|
||||
std::string telnetOrPingHost;
|
||||
std::string httpResponseCharset;
|
||||
std::string httpKeyword;
|
||||
|
||||
@@ -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_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_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 DescribeLogMonitorAttributeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLogMonitorAttributeRequest();
|
||||
~DescribeLogMonitorAttributeRequest();
|
||||
|
||||
std::string getMetricName()const;
|
||||
void setMetricName(const std::string& metricName);
|
||||
|
||||
private:
|
||||
std::string metricName_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_
|
||||
@@ -0,0 +1,87 @@
|
||||
/*
|
||||
* 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_DESCRIBELOGMONITORATTRIBUTERESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTERESULT_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 DescribeLogMonitorAttributeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LogMonitor
|
||||
{
|
||||
struct Aggregate
|
||||
{
|
||||
std::string function;
|
||||
std::string min;
|
||||
std::string max;
|
||||
std::string alias;
|
||||
std::string fieldName;
|
||||
};
|
||||
struct ValueFilterObject
|
||||
{
|
||||
std::string value;
|
||||
std::string _operator;
|
||||
std::string key;
|
||||
};
|
||||
std::string slsProject;
|
||||
std::vector<std::string> tumblingwindows;
|
||||
std::string slsLogstore;
|
||||
std::string metricExpress;
|
||||
long groupId;
|
||||
std::string metricName;
|
||||
long gmtCreate;
|
||||
std::vector<Aggregate> aggregates;
|
||||
std::vector<std::string> groupbys;
|
||||
std::vector<ValueFilterObject> valueFilter;
|
||||
std::string valueFilterRelation;
|
||||
long logId;
|
||||
std::string slsRegionId;
|
||||
};
|
||||
|
||||
|
||||
DescribeLogMonitorAttributeResult();
|
||||
explicit DescribeLogMonitorAttributeResult(const std::string &payload);
|
||||
~DescribeLogMonitorAttributeResult();
|
||||
std::string getMessage()const;
|
||||
LogMonitor getLogMonitor()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
LogMonitor logMonitor_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTERESULT_H_
|
||||
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTREQUEST_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 DescribeLogMonitorListRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeLogMonitorListRequest();
|
||||
~DescribeLogMonitorListRequest();
|
||||
|
||||
long getGroupId()const;
|
||||
void setGroupId(long groupId);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getSearchValue()const;
|
||||
void setSearchValue(const std::string& searchValue);
|
||||
|
||||
private:
|
||||
long groupId_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string searchValue_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTREQUEST_H_
|
||||
@@ -0,0 +1,81 @@
|
||||
/*
|
||||
* 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_DESCRIBELOGMONITORLISTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTRESULT_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 DescribeLogMonitorListResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct LogMonitor
|
||||
{
|
||||
struct ValueFilterObject
|
||||
{
|
||||
std::string value;
|
||||
std::string _operator;
|
||||
std::string key;
|
||||
};
|
||||
std::string slsProject;
|
||||
std::string metricName;
|
||||
long gmtCreate;
|
||||
std::vector<LogMonitor::ValueFilterObject> valueFilter;
|
||||
std::string valueFilterRelation;
|
||||
long logId;
|
||||
std::string slsRegionId;
|
||||
std::string slsLogstore;
|
||||
long groupId;
|
||||
};
|
||||
|
||||
|
||||
DescribeLogMonitorListResult();
|
||||
explicit DescribeLogMonitorListResult(const std::string &payload);
|
||||
~DescribeLogMonitorListResult();
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
long getTotal()const;
|
||||
std::vector<LogMonitor> getLogMonitorList()const;
|
||||
std::string getCode()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
long total_;
|
||||
std::vector<LogMonitor> logMonitorList_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTRESULT_H_
|
||||
@@ -39,8 +39,8 @@ namespace AlibabaCloud
|
||||
void setEnableState(bool enableState);
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
std::string getPageSize()const;
|
||||
void setPageSize(const std::string& pageSize);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getMetricName()const;
|
||||
void setMetricName(const std::string& metricName);
|
||||
std::string getGroupId()const;
|
||||
@@ -51,21 +51,21 @@ namespace AlibabaCloud
|
||||
void set_Namespace(const std::string& _namespace);
|
||||
std::string getAlertState()const;
|
||||
void setAlertState(const std::string& alertState);
|
||||
std::string getPage()const;
|
||||
void setPage(const std::string& page);
|
||||
int getPage()const;
|
||||
void setPage(int page);
|
||||
std::string getDimensions()const;
|
||||
void setDimensions(const std::string& dimensions);
|
||||
|
||||
private:
|
||||
bool enableState_;
|
||||
std::string ruleName_;
|
||||
std::string pageSize_;
|
||||
int pageSize_;
|
||||
std::string metricName_;
|
||||
std::string groupId_;
|
||||
std::string ruleIds_;
|
||||
std::string _namespace_;
|
||||
std::string alertState_;
|
||||
std::string page_;
|
||||
int page_;
|
||||
std::string dimensions_;
|
||||
|
||||
};
|
||||
|
||||
@@ -39,21 +39,24 @@ namespace AlibabaCloud
|
||||
struct Info
|
||||
{
|
||||
std::string comparisonOperator;
|
||||
std::string times;
|
||||
int times;
|
||||
std::string preCondition;
|
||||
std::string statistics;
|
||||
std::string threshold;
|
||||
};
|
||||
struct Warn
|
||||
{
|
||||
std::string comparisonOperator;
|
||||
std::string times;
|
||||
int times;
|
||||
std::string preCondition;
|
||||
std::string statistics;
|
||||
std::string threshold;
|
||||
};
|
||||
struct Critical
|
||||
{
|
||||
std::string comparisonOperator;
|
||||
std::string times;
|
||||
int times;
|
||||
std::string preCondition;
|
||||
std::string statistics;
|
||||
std::string threshold;
|
||||
};
|
||||
@@ -63,7 +66,7 @@ namespace AlibabaCloud
|
||||
};
|
||||
std::string groupName;
|
||||
std::string noEffectiveInterval;
|
||||
std::string silenceTime;
|
||||
int silenceTime;
|
||||
std::string contactGroups;
|
||||
std::string mailSubject;
|
||||
std::string ruleId;
|
||||
|
||||
@@ -35,14 +35,14 @@ namespace AlibabaCloud
|
||||
DescribeMetricRuleTemplateAttributeRequest();
|
||||
~DescribeMetricRuleTemplateAttributeRequest();
|
||||
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
std::string getTemplateId()const;
|
||||
void setTemplateId(const std::string& templateId);
|
||||
std::string getName()const;
|
||||
void setName(const std::string& name);
|
||||
|
||||
private:
|
||||
std::string name_;
|
||||
std::string templateId_;
|
||||
std::string name_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -43,7 +43,6 @@ namespace AlibabaCloud
|
||||
std::vector<ResourceItem::Filter> filters;
|
||||
std::string filterRelation;
|
||||
std::string category;
|
||||
long groupId;
|
||||
};
|
||||
|
||||
|
||||
@@ -51,9 +50,6 @@ namespace AlibabaCloud
|
||||
explicit DescribeMonitorGroupDynamicRulesResult(const std::string &payload);
|
||||
~DescribeMonitorGroupDynamicRulesResult();
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getTotal()const;
|
||||
std::vector<ResourceItem> getResource()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
@@ -62,9 +58,6 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
int total_;
|
||||
std::vector<ResourceItem> resource_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
@@ -51,6 +51,8 @@ namespace AlibabaCloud
|
||||
void setType(const std::string& type);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getResourceGroupId()const;
|
||||
void setResourceGroupId(const std::string& resourceGroupId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::vector<Tag> getTag()const;
|
||||
@@ -72,6 +74,7 @@ namespace AlibabaCloud
|
||||
std::string dynamicTagRuleId_;
|
||||
std::string type_;
|
||||
int pageNumber_;
|
||||
std::string resourceGroupId_;
|
||||
int pageSize_;
|
||||
std::vector<Tag> tag_;
|
||||
std::string keyword_;
|
||||
|
||||
@@ -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_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_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 DescribeMonitorResourceQuotaAttributeRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
DescribeMonitorResourceQuotaAttributeRequest();
|
||||
~DescribeMonitorResourceQuotaAttributeRequest();
|
||||
|
||||
bool getShowUsed()const;
|
||||
void setShowUsed(bool showUsed);
|
||||
|
||||
private:
|
||||
bool showUsed_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_
|
||||
@@ -0,0 +1,124 @@
|
||||
/*
|
||||
* 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_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTERESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTERESULT_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 DescribeMonitorResourceQuotaAttributeResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct ResourceQuota
|
||||
{
|
||||
struct SiteMonitorEcsProbe
|
||||
{
|
||||
int quotaUsed;
|
||||
int quotaPackage;
|
||||
int quotaLimit;
|
||||
};
|
||||
struct SiteMonitorOperatorProbe
|
||||
{
|
||||
int quotaUsed;
|
||||
int quotaPackage;
|
||||
int quotaLimit;
|
||||
};
|
||||
struct SiteMonitorTask
|
||||
{
|
||||
int quotaUsed;
|
||||
int quotaPackage;
|
||||
int quotaLimit;
|
||||
};
|
||||
struct CustomMonitor
|
||||
{
|
||||
int quotaUsed;
|
||||
int quotaPackage;
|
||||
int quotaLimit;
|
||||
};
|
||||
struct EventMonitor
|
||||
{
|
||||
int quotaUsed;
|
||||
int quotaPackage;
|
||||
int quotaLimit;
|
||||
};
|
||||
struct LogMonitor
|
||||
{
|
||||
int quotaUsed;
|
||||
int quotaPackage;
|
||||
int quotaLimit;
|
||||
};
|
||||
struct Api
|
||||
{
|
||||
int quotaUsed;
|
||||
int quotaPackage;
|
||||
int quotaLimit;
|
||||
};
|
||||
struct SMS
|
||||
{
|
||||
int quotaUsed;
|
||||
int quotaPackage;
|
||||
int quotaLimit;
|
||||
};
|
||||
struct Phone
|
||||
{
|
||||
int quotaUsed;
|
||||
int quotaPackage;
|
||||
int quotaLimit;
|
||||
};
|
||||
SiteMonitorOperatorProbe siteMonitorOperatorProbe;
|
||||
std::string instanceId;
|
||||
Phone phone;
|
||||
std::string suitInfo;
|
||||
SiteMonitorTask siteMonitorTask;
|
||||
SMS sMS;
|
||||
LogMonitor logMonitor;
|
||||
Api api;
|
||||
SiteMonitorEcsProbe siteMonitorEcsProbe;
|
||||
std::string expireTime;
|
||||
CustomMonitor customMonitor;
|
||||
EventMonitor eventMonitor;
|
||||
};
|
||||
|
||||
|
||||
DescribeMonitorResourceQuotaAttributeResult();
|
||||
explicit DescribeMonitorResourceQuotaAttributeResult(const std::string &payload);
|
||||
~DescribeMonitorResourceQuotaAttributeResult();
|
||||
ResourceQuota getResourceQuota()const;
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
ResourceQuota resourceQuota_;
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTERESULT_H_
|
||||
@@ -41,23 +41,29 @@ namespace AlibabaCloud
|
||||
void setPageNumber(int pageNumber);
|
||||
std::string getHostName()const;
|
||||
void setHostName(const std::string& hostName);
|
||||
std::string getInstanceIds()const;
|
||||
void setInstanceIds(const std::string& instanceIds);
|
||||
std::string getInstanceRegionId()const;
|
||||
void setInstanceRegionId(const std::string& instanceRegionId);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
bool getAliyunHost()const;
|
||||
void setAliyunHost(bool aliyunHost);
|
||||
std::string getKeyWord()const;
|
||||
void setKeyWord(const std::string& keyWord);
|
||||
std::string getInstanceIds()const;
|
||||
void setInstanceIds(const std::string& instanceIds);
|
||||
std::string getStatus()const;
|
||||
void setStatus(const std::string& status);
|
||||
|
||||
private:
|
||||
std::string serialNumbers_;
|
||||
int pageNumber_;
|
||||
std::string hostName_;
|
||||
std::string instanceIds_;
|
||||
std::string instanceRegionId_;
|
||||
int pageSize_;
|
||||
bool aliyunHost_;
|
||||
std::string keyWord_;
|
||||
std::string instanceIds_;
|
||||
std::string status_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -56,6 +56,8 @@ namespace AlibabaCloud
|
||||
~DescribeMonitoringAgentHostsResult();
|
||||
std::vector<Host> getHosts()const;
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getPageTotal()const;
|
||||
int getTotal()const;
|
||||
std::string getCode()const;
|
||||
@@ -66,6 +68,8 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::vector<Host> hosts_;
|
||||
std::string message_;
|
||||
int pageSize_;
|
||||
int pageNumber_;
|
||||
int pageTotal_;
|
||||
int total_;
|
||||
std::string code_;
|
||||
|
||||
@@ -32,12 +32,27 @@ namespace AlibabaCloud
|
||||
class ALIBABACLOUD_CMS_EXPORT DescribeProductsOfActiveMetricRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct AllProductInitMetricRule
|
||||
{
|
||||
struct AlertInitConfig
|
||||
{
|
||||
std::string metricName;
|
||||
std::string evaluationCount;
|
||||
std::string period;
|
||||
std::string _namespace;
|
||||
std::string statistics;
|
||||
std::string threshold;
|
||||
};
|
||||
std::vector<AllProductInitMetricRule::AlertInitConfig> alertInitConfigList;
|
||||
std::string product;
|
||||
};
|
||||
|
||||
|
||||
DescribeProductsOfActiveMetricRuleResult();
|
||||
explicit DescribeProductsOfActiveMetricRuleResult(const std::string &payload);
|
||||
~DescribeProductsOfActiveMetricRuleResult();
|
||||
std::string getMessage()const;
|
||||
std::vector<AllProductInitMetricRule> getAllProductInitMetricRuleList()const;
|
||||
std::string getDatapoints()const;
|
||||
int getCode()const;
|
||||
bool getSuccess()const;
|
||||
@@ -46,6 +61,7 @@ namespace AlibabaCloud
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::vector<AllProductInitMetricRule> allProductInitMetricRuleList_;
|
||||
std::string datapoints_;
|
||||
int code_;
|
||||
bool success_;
|
||||
|
||||
@@ -39,10 +39,19 @@ namespace AlibabaCloud
|
||||
void setCity(const std::string& city);
|
||||
std::string getIsp()const;
|
||||
void setIsp(const std::string& isp);
|
||||
bool getAPIProbe()const;
|
||||
void setAPIProbe(bool aPIProbe);
|
||||
bool getIPV4()const;
|
||||
void setIPV4(bool iPV4);
|
||||
bool getIPV6()const;
|
||||
void setIPV6(bool iPV6);
|
||||
|
||||
private:
|
||||
std::string city_;
|
||||
std::string isp_;
|
||||
bool aPIProbe_;
|
||||
bool iPV4_;
|
||||
bool iPV6_;
|
||||
|
||||
};
|
||||
}
|
||||
|
||||
@@ -34,16 +34,22 @@ namespace AlibabaCloud
|
||||
public:
|
||||
struct IspCity
|
||||
{
|
||||
std::string iPV4ProbeCount;
|
||||
std::string isp;
|
||||
std::string regionzh_CN;
|
||||
std::string regionen;
|
||||
std::string city;
|
||||
std::string iPV6ProbeCount;
|
||||
std::string countryen;
|
||||
std::string ispNamezh_CN;
|
||||
std::string ispNameen;
|
||||
std::string cityNamezh_CN;
|
||||
std::string isp;
|
||||
std::string regionzh_CN;
|
||||
std::string countryzh_CN;
|
||||
std::string aPIProbeCount;
|
||||
std::string cityNameen;
|
||||
std::string regionen;
|
||||
std::string city;
|
||||
std::string countryen;
|
||||
std::string countryzh_CN;
|
||||
std::string region;
|
||||
std::string country;
|
||||
std::vector<std::string> iPPool;
|
||||
};
|
||||
|
||||
|
||||
|
||||
@@ -36,6 +36,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string siteMonitorVersion;
|
||||
int siteMonitorQuotaTaskUsed;
|
||||
bool secondMonitor;
|
||||
int siteMonitorOperatorQuotaQuota;
|
||||
int siteMonitorTaskQuota;
|
||||
int siteMonitorIdcQuota;
|
||||
|
||||
@@ -38,7 +38,6 @@ namespace AlibabaCloud
|
||||
std::string instanceName;
|
||||
std::string resourceId;
|
||||
std::string content;
|
||||
long num;
|
||||
std::string product;
|
||||
std::string level;
|
||||
long time;
|
||||
|
||||
@@ -39,10 +39,6 @@ namespace AlibabaCloud
|
||||
void setStartTime(const std::string& startTime);
|
||||
std::string getSearchKeywords()const;
|
||||
void setSearchKeywords(const std::string& searchKeywords);
|
||||
int getPageNumber()const;
|
||||
void setPageNumber(int pageNumber);
|
||||
int getPageSize()const;
|
||||
void setPageSize(int pageSize);
|
||||
std::string getProduct()const;
|
||||
void setProduct(const std::string& product);
|
||||
std::string getLevel()const;
|
||||
@@ -61,8 +57,6 @@ namespace AlibabaCloud
|
||||
private:
|
||||
std::string startTime_;
|
||||
std::string searchKeywords_;
|
||||
int pageNumber_;
|
||||
int pageSize_;
|
||||
std::string product_;
|
||||
std::string level_;
|
||||
std::string groupId_;
|
||||
|
||||
@@ -38,6 +38,7 @@ namespace AlibabaCloud
|
||||
std::string statusDesc;
|
||||
std::string nameDesc;
|
||||
std::string eventType;
|
||||
std::string nameDescEn;
|
||||
std::string product;
|
||||
std::string level;
|
||||
std::string name;
|
||||
|
||||
@@ -35,6 +35,7 @@ namespace AlibabaCloud
|
||||
{
|
||||
std::string times;
|
||||
std::string noEffectiveInterval;
|
||||
std::string webhook;
|
||||
std::string silenceTime;
|
||||
std::string threshold;
|
||||
std::string effectiveInterval;
|
||||
|
||||
@@ -46,6 +46,8 @@ namespace AlibabaCloud
|
||||
|
||||
std::string getTaskOptionHttpMethod()const;
|
||||
void setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod);
|
||||
std::string getTaskOptionHttpHeader()const;
|
||||
void setTaskOptionHttpHeader(const std::string& taskOptionHttpHeader);
|
||||
std::vector<AlertConfigEscalationList> getAlertConfigEscalationList()const;
|
||||
void setAlertConfigEscalationList(const std::vector<AlertConfigEscalationList>& alertConfigEscalationList);
|
||||
std::string getTaskName()const;
|
||||
@@ -74,6 +76,8 @@ namespace AlibabaCloud
|
||||
void setTaskOptionHttpURI(const std::string& taskOptionHttpURI);
|
||||
std::string getTaskScope()const;
|
||||
void setTaskScope(const std::string& taskScope);
|
||||
std::string getTaskOptionHttpPostContent()const;
|
||||
void setTaskOptionHttpPostContent(const std::string& taskOptionHttpPostContent);
|
||||
int getAlertConfigStartTime()const;
|
||||
void setAlertConfigStartTime(int alertConfigStartTime);
|
||||
std::string getAlertConfigWebHook()const;
|
||||
@@ -81,6 +85,7 @@ namespace AlibabaCloud
|
||||
|
||||
private:
|
||||
std::string taskOptionHttpMethod_;
|
||||
std::string taskOptionHttpHeader_;
|
||||
std::vector<AlertConfigEscalationList> alertConfigEscalationList_;
|
||||
std::string taskName_;
|
||||
int alertConfigSilenceTime_;
|
||||
@@ -95,6 +100,7 @@ namespace AlibabaCloud
|
||||
int alertConfigEndTime_;
|
||||
std::string taskOptionHttpURI_;
|
||||
std::string taskScope_;
|
||||
std::string taskOptionHttpPostContent_;
|
||||
int alertConfigStartTime_;
|
||||
std::string alertConfigWebHook_;
|
||||
|
||||
|
||||
51
cms/include/alibabacloud/cms/model/ModifyHostInfoRequest.h
Normal file
51
cms/include/alibabacloud/cms/model/ModifyHostInfoRequest.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFOREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFOREQUEST_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 ModifyHostInfoRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
ModifyHostInfoRequest();
|
||||
~ModifyHostInfoRequest();
|
||||
|
||||
std::string getHostName()const;
|
||||
void setHostName(const std::string& hostName);
|
||||
std::string getInstanceId()const;
|
||||
void setInstanceId(const std::string& instanceId);
|
||||
|
||||
private:
|
||||
std::string hostName_;
|
||||
std::string instanceId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFOREQUEST_H_
|
||||
55
cms/include/alibabacloud/cms/model/ModifyHostInfoResult.h
Normal file
55
cms/include/alibabacloud/cms/model/ModifyHostInfoResult.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_MODIFYHOSTINFORESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFORESULT_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 ModifyHostInfoResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
ModifyHostInfoResult();
|
||||
explicit ModifyHostInfoResult(const std::string &payload);
|
||||
~ModifyHostInfoResult();
|
||||
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_MODIFYHOSTINFORESULT_H_
|
||||
45
cms/include/alibabacloud/cms/model/OpenCmsServiceRequest.h
Normal file
45
cms/include/alibabacloud/cms/model/OpenCmsServiceRequest.h
Normal file
@@ -0,0 +1,45 @@
|
||||
/*
|
||||
* 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_OPENCMSSERVICEREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICEREQUEST_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 OpenCmsServiceRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
OpenCmsServiceRequest();
|
||||
~OpenCmsServiceRequest();
|
||||
|
||||
|
||||
private:
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICEREQUEST_H_
|
||||
51
cms/include/alibabacloud/cms/model/OpenCmsServiceResult.h
Normal file
51
cms/include/alibabacloud/cms/model/OpenCmsServiceResult.h
Normal file
@@ -0,0 +1,51 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICERESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICERESULT_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 OpenCmsServiceResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
OpenCmsServiceResult();
|
||||
explicit OpenCmsServiceResult(const std::string &payload);
|
||||
~OpenCmsServiceResult();
|
||||
std::string getOrderId()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string orderId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICERESULT_H_
|
||||
@@ -35,6 +35,8 @@ namespace AlibabaCloud
|
||||
PutContactGroupRequest();
|
||||
~PutContactGroupRequest();
|
||||
|
||||
bool getEnableSubscribed()const;
|
||||
void setEnableSubscribed(bool enableSubscribed);
|
||||
std::string getContactGroupName()const;
|
||||
void setContactGroupName(const std::string& contactGroupName);
|
||||
std::string getDescribe()const;
|
||||
@@ -43,6 +45,7 @@ namespace AlibabaCloud
|
||||
void setContactNames(const std::vector<std::string>& contactNames);
|
||||
|
||||
private:
|
||||
bool enableSubscribed_;
|
||||
std::string contactGroupName_;
|
||||
std::string describe_;
|
||||
std::vector<std::string> contactNames_;
|
||||
|
||||
@@ -45,6 +45,8 @@ namespace AlibabaCloud
|
||||
void setChannelsAliIM(const std::string& channelsAliIM);
|
||||
std::string getDescribe()const;
|
||||
void setDescribe(const std::string& describe);
|
||||
std::string getLang()const;
|
||||
void setLang(const std::string& lang);
|
||||
std::string getChannelsSMS()const;
|
||||
void setChannelsSMS(const std::string& channelsSMS);
|
||||
|
||||
@@ -54,6 +56,7 @@ namespace AlibabaCloud
|
||||
std::string channelsMail_;
|
||||
std::string channelsAliIM_;
|
||||
std::string describe_;
|
||||
std::string lang_;
|
||||
std::string channelsSMS_;
|
||||
|
||||
};
|
||||
|
||||
@@ -0,0 +1,78 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULEREQUEST_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 PutCustomEventRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PutCustomEventRuleRequest();
|
||||
~PutCustomEventRuleRequest();
|
||||
|
||||
std::string getWebhook()const;
|
||||
void setWebhook(const std::string& webhook);
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
std::string getThreshold()const;
|
||||
void setThreshold(const std::string& threshold);
|
||||
std::string getEffectiveInterval()const;
|
||||
void setEffectiveInterval(const std::string& effectiveInterval);
|
||||
std::string getEventName()const;
|
||||
void setEventName(const std::string& eventName);
|
||||
std::string getEmailSubject()const;
|
||||
void setEmailSubject(const std::string& emailSubject);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getContactGroups()const;
|
||||
void setContactGroups(const std::string& contactGroups);
|
||||
std::string getLevel()const;
|
||||
void setLevel(const std::string& level);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getRuleId()const;
|
||||
void setRuleId(const std::string& ruleId);
|
||||
|
||||
private:
|
||||
std::string webhook_;
|
||||
std::string ruleName_;
|
||||
std::string threshold_;
|
||||
std::string effectiveInterval_;
|
||||
std::string eventName_;
|
||||
std::string emailSubject_;
|
||||
std::string period_;
|
||||
std::string contactGroups_;
|
||||
std::string level_;
|
||||
std::string groupId_;
|
||||
std::string ruleId_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULEREQUEST_H_
|
||||
@@ -14,8 +14,8 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTRESULT_H_
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULERESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULERESULT_H_
|
||||
|
||||
#include <string>
|
||||
#include <vector>
|
||||
@@ -29,40 +29,27 @@ namespace AlibabaCloud
|
||||
{
|
||||
namespace Model
|
||||
{
|
||||
class ALIBABACLOUD_CMS_EXPORT DescribeFolderListResult : public ServiceResult
|
||||
class ALIBABACLOUD_CMS_EXPORT PutCustomEventRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
struct Resource
|
||||
{
|
||||
std::string name;
|
||||
long serviceId;
|
||||
};
|
||||
|
||||
|
||||
DescribeFolderListResult();
|
||||
explicit DescribeFolderListResult(const std::string &payload);
|
||||
~DescribeFolderListResult();
|
||||
PutCustomEventRuleResult();
|
||||
explicit PutCustomEventRuleResult(const std::string &payload);
|
||||
~PutCustomEventRuleResult();
|
||||
std::string getMessage()const;
|
||||
int getPageSize()const;
|
||||
int getPageNumber()const;
|
||||
int getTotal()const;
|
||||
Resource getResource()const;
|
||||
int getCode()const;
|
||||
std::string 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_;
|
||||
std::string code_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEFOLDERLISTRESULT_H_
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULERESULT_H_
|
||||
@@ -0,0 +1,93 @@
|
||||
/*
|
||||
* 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_PUTCUSTOMMETRICRULEREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICRULEREQUEST_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 PutCustomMetricRuleRequest : public RpcServiceRequest
|
||||
{
|
||||
|
||||
public:
|
||||
PutCustomMetricRuleRequest();
|
||||
~PutCustomMetricRuleRequest();
|
||||
|
||||
std::string getWebhook()const;
|
||||
void setWebhook(const std::string& webhook);
|
||||
std::string getRuleName()const;
|
||||
void setRuleName(const std::string& ruleName);
|
||||
std::string getThreshold()const;
|
||||
void setThreshold(const std::string& threshold);
|
||||
std::string getEffectiveInterval()const;
|
||||
void setEffectiveInterval(const std::string& effectiveInterval);
|
||||
std::string getEmailSubject()const;
|
||||
void setEmailSubject(const std::string& emailSubject);
|
||||
int getEvaluationCount()const;
|
||||
void setEvaluationCount(int evaluationCount);
|
||||
int getSilenceTime()const;
|
||||
void setSilenceTime(int silenceTime);
|
||||
std::string getMetricName()const;
|
||||
void setMetricName(const std::string& metricName);
|
||||
std::string getPeriod()const;
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getContactGroups()const;
|
||||
void setContactGroups(const std::string& contactGroups);
|
||||
std::string getLevel()const;
|
||||
void setLevel(const std::string& level);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getResources()const;
|
||||
void setResources(const std::string& resources);
|
||||
std::string getRuleId()const;
|
||||
void setRuleId(const std::string& ruleId);
|
||||
std::string getComparisonOperator()const;
|
||||
void setComparisonOperator(const std::string& comparisonOperator);
|
||||
std::string getStatistics()const;
|
||||
void setStatistics(const std::string& statistics);
|
||||
|
||||
private:
|
||||
std::string webhook_;
|
||||
std::string ruleName_;
|
||||
std::string threshold_;
|
||||
std::string effectiveInterval_;
|
||||
std::string emailSubject_;
|
||||
int evaluationCount_;
|
||||
int silenceTime_;
|
||||
std::string metricName_;
|
||||
std::string period_;
|
||||
std::string contactGroups_;
|
||||
std::string level_;
|
||||
std::string groupId_;
|
||||
std::string resources_;
|
||||
std::string ruleId_;
|
||||
std::string comparisonOperator_;
|
||||
std::string statistics_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICRULEREQUEST_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_PUTCUSTOMMETRICRULERESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMMETRICRULERESULT_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 PutCustomMetricRuleResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PutCustomMetricRuleResult();
|
||||
explicit PutCustomMetricRuleResult(const std::string &payload);
|
||||
~PutCustomMetricRuleResult();
|
||||
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_PUTCUSTOMMETRICRULERESULT_H_
|
||||
@@ -61,6 +61,8 @@ namespace AlibabaCloud
|
||||
void setPeriod(const std::string& period);
|
||||
std::string getEscalationsWarnThreshold()const;
|
||||
void setEscalationsWarnThreshold(const std::string& escalationsWarnThreshold);
|
||||
std::string getContactGroups()const;
|
||||
void setContactGroups(const std::string& contactGroups);
|
||||
std::string getEscalationsCriticalStatistics()const;
|
||||
void setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics);
|
||||
std::string getGroupId()const;
|
||||
@@ -102,6 +104,7 @@ namespace AlibabaCloud
|
||||
int escalationsWarnTimes_;
|
||||
std::string period_;
|
||||
std::string escalationsWarnThreshold_;
|
||||
std::string contactGroups_;
|
||||
std::string escalationsCriticalStatistics_;
|
||||
std::string groupId_;
|
||||
int escalationsInfoTimes_;
|
||||
|
||||
102
cms/include/alibabacloud/cms/model/PutLogMonitorRequest.h
Normal file
102
cms/include/alibabacloud/cms/model/PutLogMonitorRequest.h
Normal file
@@ -0,0 +1,102 @@
|
||||
/*
|
||||
* 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_PUTLOGMONITORREQUEST_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_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 PutLogMonitorRequest : public RpcServiceRequest
|
||||
{
|
||||
public:
|
||||
struct ValueFilter
|
||||
{
|
||||
std::string value;
|
||||
std::string key;
|
||||
std::string _operator;
|
||||
};
|
||||
struct Groupbys
|
||||
{
|
||||
std::string fieldName;
|
||||
std::string alias;
|
||||
};
|
||||
struct Aggregates
|
||||
{
|
||||
std::string fieldName;
|
||||
std::string function;
|
||||
std::string alias;
|
||||
};
|
||||
|
||||
public:
|
||||
PutLogMonitorRequest();
|
||||
~PutLogMonitorRequest();
|
||||
|
||||
std::string getSlsLogstore()const;
|
||||
void setSlsLogstore(const std::string& slsLogstore);
|
||||
std::string getSlsProject()const;
|
||||
void setSlsProject(const std::string& slsProject);
|
||||
std::vector<ValueFilter> getValueFilter()const;
|
||||
void setValueFilter(const std::vector<ValueFilter>& valueFilter);
|
||||
std::string getMetricExpress()const;
|
||||
void setMetricExpress(const std::string& metricExpress);
|
||||
std::string getSlsRegionId()const;
|
||||
void setSlsRegionId(const std::string& slsRegionId);
|
||||
std::string getMetricName()const;
|
||||
void setMetricName(const std::string& metricName);
|
||||
std::string getGroupId()const;
|
||||
void setGroupId(const std::string& groupId);
|
||||
std::string getTumblingwindows()const;
|
||||
void setTumblingwindows(const std::string& tumblingwindows);
|
||||
std::string getValueFilterRelation()const;
|
||||
void setValueFilterRelation(const std::string& valueFilterRelation);
|
||||
std::string getUnit()const;
|
||||
void setUnit(const std::string& unit);
|
||||
std::vector<Groupbys> getGroupbys()const;
|
||||
void setGroupbys(const std::vector<Groupbys>& groupbys);
|
||||
std::string getLogId()const;
|
||||
void setLogId(const std::string& logId);
|
||||
std::vector<Aggregates> getAggregates()const;
|
||||
void setAggregates(const std::vector<Aggregates>& aggregates);
|
||||
|
||||
private:
|
||||
std::string slsLogstore_;
|
||||
std::string slsProject_;
|
||||
std::vector<ValueFilter> valueFilter_;
|
||||
std::string metricExpress_;
|
||||
std::string slsRegionId_;
|
||||
std::string metricName_;
|
||||
std::string groupId_;
|
||||
std::string tumblingwindows_;
|
||||
std::string valueFilterRelation_;
|
||||
std::string unit_;
|
||||
std::vector<Groupbys> groupbys_;
|
||||
std::string logId_;
|
||||
std::vector<Aggregates> aggregates_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_H_
|
||||
57
cms/include/alibabacloud/cms/model/PutLogMonitorResult.h
Normal file
57
cms/include/alibabacloud/cms/model/PutLogMonitorResult.h
Normal file
@@ -0,0 +1,57 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#ifndef ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORRESULT_H_
|
||||
#define ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORRESULT_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 PutLogMonitorResult : public ServiceResult
|
||||
{
|
||||
public:
|
||||
|
||||
|
||||
PutLogMonitorResult();
|
||||
explicit PutLogMonitorResult(const std::string &payload);
|
||||
~PutLogMonitorResult();
|
||||
std::string getMessage()const;
|
||||
std::string getCode()const;
|
||||
std::string getLogId()const;
|
||||
bool getSuccess()const;
|
||||
|
||||
protected:
|
||||
void parse(const std::string &payload);
|
||||
private:
|
||||
std::string message_;
|
||||
std::string code_;
|
||||
std::string logId_;
|
||||
bool success_;
|
||||
|
||||
};
|
||||
}
|
||||
}
|
||||
}
|
||||
#endif // !ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORRESULT_H_
|
||||
@@ -123,6 +123,114 @@ CmsClient::ApplyMetricRuleTemplateOutcomeCallable CmsClient::applyMetricRuleTemp
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::CreateCmsCallNumOrderOutcome CmsClient::createCmsCallNumOrder(const CreateCmsCallNumOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateCmsCallNumOrderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateCmsCallNumOrderOutcome(CreateCmsCallNumOrderResult(outcome.result()));
|
||||
else
|
||||
return CreateCmsCallNumOrderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::createCmsCallNumOrderAsync(const CreateCmsCallNumOrderRequest& request, const CreateCmsCallNumOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createCmsCallNumOrder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::CreateCmsCallNumOrderOutcomeCallable CmsClient::createCmsCallNumOrderCallable(const CreateCmsCallNumOrderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateCmsCallNumOrderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createCmsCallNumOrder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::CreateCmsOrderOutcome CmsClient::createCmsOrder(const CreateCmsOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateCmsOrderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateCmsOrderOutcome(CreateCmsOrderResult(outcome.result()));
|
||||
else
|
||||
return CreateCmsOrderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::createCmsOrderAsync(const CreateCmsOrderRequest& request, const CreateCmsOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createCmsOrder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::CreateCmsOrderOutcomeCallable CmsClient::createCmsOrderCallable(const CreateCmsOrderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateCmsOrderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createCmsOrder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::CreateCmsSmspackageOrderOutcome CmsClient::createCmsSmspackageOrder(const CreateCmsSmspackageOrderRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateCmsSmspackageOrderOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateCmsSmspackageOrderOutcome(CreateCmsSmspackageOrderResult(outcome.result()));
|
||||
else
|
||||
return CreateCmsSmspackageOrderOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::createCmsSmspackageOrderAsync(const CreateCmsSmspackageOrderRequest& request, const CreateCmsSmspackageOrderAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createCmsSmspackageOrder(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::CreateCmsSmspackageOrderOutcomeCallable CmsClient::createCmsSmspackageOrderCallable(const CreateCmsSmspackageOrderRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateCmsSmspackageOrderOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createCmsSmspackageOrder(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::CreateDynamicTagGroupOutcome CmsClient::createDynamicTagGroup(const CreateDynamicTagGroupRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -411,6 +519,42 @@ CmsClient::CreateMonitorGroupOutcomeCallable CmsClient::createMonitorGroupCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::CreateMonitorGroupByResourceGroupIdOutcome CmsClient::createMonitorGroupByResourceGroupId(const CreateMonitorGroupByResourceGroupIdRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return CreateMonitorGroupByResourceGroupIdOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return CreateMonitorGroupByResourceGroupIdOutcome(CreateMonitorGroupByResourceGroupIdResult(outcome.result()));
|
||||
else
|
||||
return CreateMonitorGroupByResourceGroupIdOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::createMonitorGroupByResourceGroupIdAsync(const CreateMonitorGroupByResourceGroupIdRequest& request, const CreateMonitorGroupByResourceGroupIdAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, createMonitorGroupByResourceGroupId(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::CreateMonitorGroupByResourceGroupIdOutcomeCallable CmsClient::createMonitorGroupByResourceGroupIdCallable(const CreateMonitorGroupByResourceGroupIdRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<CreateMonitorGroupByResourceGroupIdOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->createMonitorGroupByResourceGroupId(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::CreateMonitorGroupInstancesOutcome CmsClient::createMonitorGroupInstances(const CreateMonitorGroupInstancesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -915,6 +1059,42 @@ CmsClient::DeleteHostAvailabilityOutcomeCallable CmsClient::deleteHostAvailabili
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DeleteLogMonitorOutcome CmsClient::deleteLogMonitor(const DeleteLogMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DeleteLogMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DeleteLogMonitorOutcome(DeleteLogMonitorResult(outcome.result()));
|
||||
else
|
||||
return DeleteLogMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::deleteLogMonitorAsync(const DeleteLogMonitorRequest& request, const DeleteLogMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, deleteLogMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DeleteLogMonitorOutcomeCallable CmsClient::deleteLogMonitorCallable(const DeleteLogMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DeleteLogMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->deleteLogMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DeleteMetricRuleResourcesOutcome CmsClient::deleteMetricRuleResources(const DeleteMetricRuleResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1347,6 +1527,114 @@ CmsClient::DescribeAlertHistoryListOutcomeCallable CmsClient::describeAlertHisto
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeAlertLogCountOutcome CmsClient::describeAlertLogCount(const DescribeAlertLogCountRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAlertLogCountOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAlertLogCountOutcome(DescribeAlertLogCountResult(outcome.result()));
|
||||
else
|
||||
return DescribeAlertLogCountOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::describeAlertLogCountAsync(const DescribeAlertLogCountRequest& request, const DescribeAlertLogCountAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAlertLogCount(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DescribeAlertLogCountOutcomeCallable CmsClient::describeAlertLogCountCallable(const DescribeAlertLogCountRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAlertLogCountOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAlertLogCount(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeAlertLogHistogramOutcome CmsClient::describeAlertLogHistogram(const DescribeAlertLogHistogramRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAlertLogHistogramOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAlertLogHistogramOutcome(DescribeAlertLogHistogramResult(outcome.result()));
|
||||
else
|
||||
return DescribeAlertLogHistogramOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::describeAlertLogHistogramAsync(const DescribeAlertLogHistogramRequest& request, const DescribeAlertLogHistogramAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAlertLogHistogram(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DescribeAlertLogHistogramOutcomeCallable CmsClient::describeAlertLogHistogramCallable(const DescribeAlertLogHistogramRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAlertLogHistogramOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAlertLogHistogram(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeAlertLogListOutcome CmsClient::describeAlertLogList(const DescribeAlertLogListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeAlertLogListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeAlertLogListOutcome(DescribeAlertLogListResult(outcome.result()));
|
||||
else
|
||||
return DescribeAlertLogListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::describeAlertLogListAsync(const DescribeAlertLogListRequest& request, const DescribeAlertLogListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeAlertLogList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DescribeAlertLogListOutcomeCallable CmsClient::describeAlertLogListCallable(const DescribeAlertLogListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeAlertLogListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeAlertLogList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeAlertingMetricRuleResourcesOutcome CmsClient::describeAlertingMetricRuleResources(const DescribeAlertingMetricRuleResourcesRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -1851,42 +2139,6 @@ CmsClient::DescribeExporterRuleListOutcomeCallable CmsClient::describeExporterRu
|
||||
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();
|
||||
@@ -1959,6 +2211,78 @@ CmsClient::DescribeHostAvailabilityListOutcomeCallable CmsClient::describeHostAv
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeLogMonitorAttributeOutcome CmsClient::describeLogMonitorAttribute(const DescribeLogMonitorAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLogMonitorAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLogMonitorAttributeOutcome(DescribeLogMonitorAttributeResult(outcome.result()));
|
||||
else
|
||||
return DescribeLogMonitorAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::describeLogMonitorAttributeAsync(const DescribeLogMonitorAttributeRequest& request, const DescribeLogMonitorAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLogMonitorAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DescribeLogMonitorAttributeOutcomeCallable CmsClient::describeLogMonitorAttributeCallable(const DescribeLogMonitorAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLogMonitorAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLogMonitorAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeLogMonitorListOutcome CmsClient::describeLogMonitorList(const DescribeLogMonitorListRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeLogMonitorListOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeLogMonitorListOutcome(DescribeLogMonitorListResult(outcome.result()));
|
||||
else
|
||||
return DescribeLogMonitorListOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::describeLogMonitorListAsync(const DescribeLogMonitorListRequest& request, const DescribeLogMonitorListAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeLogMonitorList(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DescribeLogMonitorListOutcomeCallable CmsClient::describeLogMonitorListCallable(const DescribeLogMonitorListRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeLogMonitorListOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeLogMonitorList(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeMetricDataOutcome CmsClient::describeMetricData(const DescribeMetricDataRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -2535,6 +2859,42 @@ CmsClient::DescribeMonitorGroupsOutcomeCallable CmsClient::describeMonitorGroups
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeMonitorResourceQuotaAttributeOutcome CmsClient::describeMonitorResourceQuotaAttribute(const DescribeMonitorResourceQuotaAttributeRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return DescribeMonitorResourceQuotaAttributeOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return DescribeMonitorResourceQuotaAttributeOutcome(DescribeMonitorResourceQuotaAttributeResult(outcome.result()));
|
||||
else
|
||||
return DescribeMonitorResourceQuotaAttributeOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::describeMonitorResourceQuotaAttributeAsync(const DescribeMonitorResourceQuotaAttributeRequest& request, const DescribeMonitorResourceQuotaAttributeAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, describeMonitorResourceQuotaAttribute(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::DescribeMonitorResourceQuotaAttributeOutcomeCallable CmsClient::describeMonitorResourceQuotaAttributeCallable(const DescribeMonitorResourceQuotaAttributeRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<DescribeMonitorResourceQuotaAttributeOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->describeMonitorResourceQuotaAttribute(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::DescribeMonitoringAgentAccessKeyOutcome CmsClient::describeMonitoringAgentAccessKey(const DescribeMonitoringAgentAccessKeyRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3795,6 +4155,42 @@ CmsClient::ModifyHostAvailabilityOutcomeCallable CmsClient::modifyHostAvailabili
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::ModifyHostInfoOutcome CmsClient::modifyHostInfo(const ModifyHostInfoRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return ModifyHostInfoOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return ModifyHostInfoOutcome(ModifyHostInfoResult(outcome.result()));
|
||||
else
|
||||
return ModifyHostInfoOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::modifyHostInfoAsync(const ModifyHostInfoRequest& request, const ModifyHostInfoAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, modifyHostInfo(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::ModifyHostInfoOutcomeCallable CmsClient::modifyHostInfoCallable(const ModifyHostInfoRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<ModifyHostInfoOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->modifyHostInfo(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::ModifyMetricRuleTemplateOutcome CmsClient::modifyMetricRuleTemplate(const ModifyMetricRuleTemplateRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -3939,6 +4335,42 @@ CmsClient::ModifySiteMonitorOutcomeCallable CmsClient::modifySiteMonitorCallable
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::OpenCmsServiceOutcome CmsClient::openCmsService(const OpenCmsServiceRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return OpenCmsServiceOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return OpenCmsServiceOutcome(OpenCmsServiceResult(outcome.result()));
|
||||
else
|
||||
return OpenCmsServiceOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::openCmsServiceAsync(const OpenCmsServiceRequest& request, const OpenCmsServiceAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, openCmsService(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::OpenCmsServiceOutcomeCallable CmsClient::openCmsServiceCallable(const OpenCmsServiceRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<OpenCmsServiceOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->openCmsService(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutContactOutcome CmsClient::putContact(const PutContactRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4047,6 +4479,42 @@ CmsClient::PutCustomEventOutcomeCallable CmsClient::putCustomEventCallable(const
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutCustomEventRuleOutcome CmsClient::putCustomEventRule(const PutCustomEventRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutCustomEventRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PutCustomEventRuleOutcome(PutCustomEventRuleResult(outcome.result()));
|
||||
else
|
||||
return PutCustomEventRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::putCustomEventRuleAsync(const PutCustomEventRuleRequest& request, const PutCustomEventRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, putCustomEventRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::PutCustomEventRuleOutcomeCallable CmsClient::putCustomEventRuleCallable(const PutCustomEventRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PutCustomEventRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->putCustomEventRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutCustomMetricOutcome CmsClient::putCustomMetric(const PutCustomMetricRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4083,6 +4551,42 @@ CmsClient::PutCustomMetricOutcomeCallable CmsClient::putCustomMetricCallable(con
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutCustomMetricRuleOutcome CmsClient::putCustomMetricRule(const PutCustomMetricRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutCustomMetricRuleOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PutCustomMetricRuleOutcome(PutCustomMetricRuleResult(outcome.result()));
|
||||
else
|
||||
return PutCustomMetricRuleOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::putCustomMetricRuleAsync(const PutCustomMetricRuleRequest& request, const PutCustomMetricRuleAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, putCustomMetricRule(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::PutCustomMetricRuleOutcomeCallable CmsClient::putCustomMetricRuleCallable(const PutCustomMetricRuleRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PutCustomMetricRuleOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->putCustomMetricRule(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutEventRuleOutcome CmsClient::putEventRule(const PutEventRuleRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
@@ -4263,6 +4767,42 @@ CmsClient::PutGroupMetricRuleOutcomeCallable CmsClient::putGroupMetricRuleCallab
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutLogMonitorOutcome CmsClient::putLogMonitor(const PutLogMonitorRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
if (!endpointOutcome.isSuccess())
|
||||
return PutLogMonitorOutcome(endpointOutcome.error());
|
||||
|
||||
auto outcome = makeRequest(endpointOutcome.result(), request);
|
||||
|
||||
if (outcome.isSuccess())
|
||||
return PutLogMonitorOutcome(PutLogMonitorResult(outcome.result()));
|
||||
else
|
||||
return PutLogMonitorOutcome(outcome.error());
|
||||
}
|
||||
|
||||
void CmsClient::putLogMonitorAsync(const PutLogMonitorRequest& request, const PutLogMonitorAsyncHandler& handler, const std::shared_ptr<const AsyncCallerContext>& context) const
|
||||
{
|
||||
auto fn = [this, request, handler, context]()
|
||||
{
|
||||
handler(this, request, putLogMonitor(request), context);
|
||||
};
|
||||
|
||||
asyncExecute(new Runnable(fn));
|
||||
}
|
||||
|
||||
CmsClient::PutLogMonitorOutcomeCallable CmsClient::putLogMonitorCallable(const PutLogMonitorRequest &request) const
|
||||
{
|
||||
auto task = std::make_shared<std::packaged_task<PutLogMonitorOutcome()>>(
|
||||
[this, request]()
|
||||
{
|
||||
return this->putLogMonitor(request);
|
||||
});
|
||||
|
||||
asyncExecute(new Runnable([task]() { (*task)(); }));
|
||||
return task->get_future();
|
||||
}
|
||||
|
||||
CmsClient::PutMetricRuleTargetsOutcome CmsClient::putMetricRuleTargets(const PutMetricRuleTargetsRequest &request) const
|
||||
{
|
||||
auto endpointOutcome = endpointProvider_->getEndpoint();
|
||||
|
||||
@@ -46,8 +46,6 @@ void ApplyMetricRuleTemplateResult::parse(const std::string &payload)
|
||||
for (auto resourceNodeAlertResultsResult : allAlertResultsNode)
|
||||
{
|
||||
Resource::Result resultObject;
|
||||
if(!resourceNodeAlertResultsResult["GroupId"].isNull())
|
||||
resultObject.groupId = std::stol(resourceNodeAlertResultsResult["GroupId"].asString());
|
||||
if(!resourceNodeAlertResultsResult["RuleId"].isNull())
|
||||
resultObject.ruleId = resourceNodeAlertResultsResult["RuleId"].asString();
|
||||
if(!resourceNodeAlertResultsResult["Message"].isNull())
|
||||
|
||||
95
cms/src/model/CreateCmsCallNumOrderRequest.cc
Normal file
95
cms/src/model/CreateCmsCallNumOrderRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/CreateCmsCallNumOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::CreateCmsCallNumOrderRequest;
|
||||
|
||||
CreateCmsCallNumOrderRequest::CreateCmsCallNumOrderRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "CreateCmsCallNumOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCmsCallNumOrderRequest::~CreateCmsCallNumOrderRequest()
|
||||
{}
|
||||
|
||||
int CreateCmsCallNumOrderRequest::getAutoRenewPeriod()const
|
||||
{
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateCmsCallNumOrderRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
||||
{
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateCmsCallNumOrderRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateCmsCallNumOrderRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateCmsCallNumOrderRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateCmsCallNumOrderRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
bool CreateCmsCallNumOrderRequest::getAutoUseCoupon()const
|
||||
{
|
||||
return autoUseCoupon_;
|
||||
}
|
||||
|
||||
void CreateCmsCallNumOrderRequest::setAutoUseCoupon(bool autoUseCoupon)
|
||||
{
|
||||
autoUseCoupon_ = autoUseCoupon;
|
||||
setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateCmsCallNumOrderRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateCmsCallNumOrderRequest::setPeriodUnit(const std::string& periodUnit)
|
||||
{
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter("PeriodUnit", periodUnit);
|
||||
}
|
||||
|
||||
std::string CreateCmsCallNumOrderRequest::getPhoneCount()const
|
||||
{
|
||||
return phoneCount_;
|
||||
}
|
||||
|
||||
void CreateCmsCallNumOrderRequest::setPhoneCount(const std::string& phoneCount)
|
||||
{
|
||||
phoneCount_ = phoneCount;
|
||||
setParameter("PhoneCount", phoneCount);
|
||||
}
|
||||
|
||||
51
cms/src/model/CreateCmsCallNumOrderResult.cc
Normal file
51
cms/src/model/CreateCmsCallNumOrderResult.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/CreateCmsCallNumOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
CreateCmsCallNumOrderResult::CreateCmsCallNumOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCmsCallNumOrderResult::CreateCmsCallNumOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCmsCallNumOrderResult::~CreateCmsCallNumOrderResult()
|
||||
{}
|
||||
|
||||
void CreateCmsCallNumOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCmsCallNumOrderResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
216
cms/src/model/CreateCmsOrderRequest.cc
Normal file
216
cms/src/model/CreateCmsOrderRequest.cc
Normal file
@@ -0,0 +1,216 @@
|
||||
/*
|
||||
* 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/CreateCmsOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::CreateCmsOrderRequest;
|
||||
|
||||
CreateCmsOrderRequest::CreateCmsOrderRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "CreateCmsOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCmsOrderRequest::~CreateCmsOrderRequest()
|
||||
{}
|
||||
|
||||
std::string CreateCmsOrderRequest::getSmsCount()const
|
||||
{
|
||||
return smsCount_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setSmsCount(const std::string& smsCount)
|
||||
{
|
||||
smsCount_ = smsCount;
|
||||
setParameter("SmsCount", smsCount);
|
||||
}
|
||||
|
||||
bool CreateCmsOrderRequest::getAutoUseCoupon()const
|
||||
{
|
||||
return autoUseCoupon_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setAutoUseCoupon(bool autoUseCoupon)
|
||||
{
|
||||
autoUseCoupon_ = autoUseCoupon;
|
||||
setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getLogMonitorStream()const
|
||||
{
|
||||
return logMonitorStream_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setLogMonitorStream(const std::string& logMonitorStream)
|
||||
{
|
||||
logMonitorStream_ = logMonitorStream;
|
||||
setParameter("LogMonitorStream", logMonitorStream);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getCustomTimeSeries()const
|
||||
{
|
||||
return customTimeSeries_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setCustomTimeSeries(const std::string& customTimeSeries)
|
||||
{
|
||||
customTimeSeries_ = customTimeSeries;
|
||||
setParameter("CustomTimeSeries", customTimeSeries);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getApiCount()const
|
||||
{
|
||||
return apiCount_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setApiCount(const std::string& apiCount)
|
||||
{
|
||||
apiCount_ = apiCount;
|
||||
setParameter("ApiCount", apiCount);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getPhoneCount()const
|
||||
{
|
||||
return phoneCount_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setPhoneCount(const std::string& phoneCount)
|
||||
{
|
||||
phoneCount_ = phoneCount;
|
||||
setParameter("PhoneCount", phoneCount);
|
||||
}
|
||||
|
||||
int CreateCmsOrderRequest::getAutoRenewPeriod()const
|
||||
{
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
||||
{
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateCmsOrderRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateCmsOrderRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getSuggestType()const
|
||||
{
|
||||
return suggestType_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setSuggestType(const std::string& suggestType)
|
||||
{
|
||||
suggestType_ = suggestType;
|
||||
setParameter("SuggestType", suggestType);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getEventStoreNum()const
|
||||
{
|
||||
return eventStoreNum_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setEventStoreNum(const std::string& eventStoreNum)
|
||||
{
|
||||
eventStoreNum_ = eventStoreNum;
|
||||
setParameter("EventStoreNum", eventStoreNum);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getSiteTaskNum()const
|
||||
{
|
||||
return siteTaskNum_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setSiteTaskNum(const std::string& siteTaskNum)
|
||||
{
|
||||
siteTaskNum_ = siteTaskNum;
|
||||
setParameter("SiteTaskNum", siteTaskNum);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setPeriodUnit(const std::string& periodUnit)
|
||||
{
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter("PeriodUnit", periodUnit);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getSiteOperatorNum()const
|
||||
{
|
||||
return siteOperatorNum_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setSiteOperatorNum(const std::string& siteOperatorNum)
|
||||
{
|
||||
siteOperatorNum_ = siteOperatorNum;
|
||||
setParameter("SiteOperatorNum", siteOperatorNum);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getSiteEcsNum()const
|
||||
{
|
||||
return siteEcsNum_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setSiteEcsNum(const std::string& siteEcsNum)
|
||||
{
|
||||
siteEcsNum_ = siteEcsNum;
|
||||
setParameter("SiteEcsNum", siteEcsNum);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getEventStoreTime()const
|
||||
{
|
||||
return eventStoreTime_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setEventStoreTime(const std::string& eventStoreTime)
|
||||
{
|
||||
eventStoreTime_ = eventStoreTime;
|
||||
setParameter("EventStoreTime", eventStoreTime);
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderRequest::getPayType()const
|
||||
{
|
||||
return payType_;
|
||||
}
|
||||
|
||||
void CreateCmsOrderRequest::setPayType(const std::string& payType)
|
||||
{
|
||||
payType_ = payType;
|
||||
setParameter("PayType", payType);
|
||||
}
|
||||
|
||||
51
cms/src/model/CreateCmsOrderResult.cc
Normal file
51
cms/src/model/CreateCmsOrderResult.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/CreateCmsOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
CreateCmsOrderResult::CreateCmsOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCmsOrderResult::CreateCmsOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCmsOrderResult::~CreateCmsOrderResult()
|
||||
{}
|
||||
|
||||
void CreateCmsOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCmsOrderResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
95
cms/src/model/CreateCmsSmspackageOrderRequest.cc
Normal file
95
cms/src/model/CreateCmsSmspackageOrderRequest.cc
Normal file
@@ -0,0 +1,95 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/CreateCmsSmspackageOrderRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::CreateCmsSmspackageOrderRequest;
|
||||
|
||||
CreateCmsSmspackageOrderRequest::CreateCmsSmspackageOrderRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "CreateCmsSmspackageOrder")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateCmsSmspackageOrderRequest::~CreateCmsSmspackageOrderRequest()
|
||||
{}
|
||||
|
||||
int CreateCmsSmspackageOrderRequest::getAutoRenewPeriod()const
|
||||
{
|
||||
return autoRenewPeriod_;
|
||||
}
|
||||
|
||||
void CreateCmsSmspackageOrderRequest::setAutoRenewPeriod(int autoRenewPeriod)
|
||||
{
|
||||
autoRenewPeriod_ = autoRenewPeriod;
|
||||
setParameter("AutoRenewPeriod", std::to_string(autoRenewPeriod));
|
||||
}
|
||||
|
||||
int CreateCmsSmspackageOrderRequest::getPeriod()const
|
||||
{
|
||||
return period_;
|
||||
}
|
||||
|
||||
void CreateCmsSmspackageOrderRequest::setPeriod(int period)
|
||||
{
|
||||
period_ = period;
|
||||
setParameter("Period", std::to_string(period));
|
||||
}
|
||||
|
||||
bool CreateCmsSmspackageOrderRequest::getAutoPay()const
|
||||
{
|
||||
return autoPay_;
|
||||
}
|
||||
|
||||
void CreateCmsSmspackageOrderRequest::setAutoPay(bool autoPay)
|
||||
{
|
||||
autoPay_ = autoPay;
|
||||
setParameter("AutoPay", autoPay ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateCmsSmspackageOrderRequest::getSmsCount()const
|
||||
{
|
||||
return smsCount_;
|
||||
}
|
||||
|
||||
void CreateCmsSmspackageOrderRequest::setSmsCount(const std::string& smsCount)
|
||||
{
|
||||
smsCount_ = smsCount;
|
||||
setParameter("SmsCount", smsCount);
|
||||
}
|
||||
|
||||
bool CreateCmsSmspackageOrderRequest::getAutoUseCoupon()const
|
||||
{
|
||||
return autoUseCoupon_;
|
||||
}
|
||||
|
||||
void CreateCmsSmspackageOrderRequest::setAutoUseCoupon(bool autoUseCoupon)
|
||||
{
|
||||
autoUseCoupon_ = autoUseCoupon;
|
||||
setParameter("AutoUseCoupon", autoUseCoupon ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateCmsSmspackageOrderRequest::getPeriodUnit()const
|
||||
{
|
||||
return periodUnit_;
|
||||
}
|
||||
|
||||
void CreateCmsSmspackageOrderRequest::setPeriodUnit(const std::string& periodUnit)
|
||||
{
|
||||
periodUnit_ = periodUnit;
|
||||
setParameter("PeriodUnit", periodUnit);
|
||||
}
|
||||
|
||||
51
cms/src/model/CreateCmsSmspackageOrderResult.cc
Normal file
51
cms/src/model/CreateCmsSmspackageOrderResult.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/CreateCmsSmspackageOrderResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
CreateCmsSmspackageOrderResult::CreateCmsSmspackageOrderResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateCmsSmspackageOrderResult::CreateCmsSmspackageOrderResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateCmsSmspackageOrderResult::~CreateCmsSmspackageOrderResult()
|
||||
{}
|
||||
|
||||
void CreateCmsSmspackageOrderResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
if(!value["OrderId"].isNull())
|
||||
orderId_ = value["OrderId"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string CreateCmsSmspackageOrderResult::getOrderId()const
|
||||
{
|
||||
return orderId_;
|
||||
}
|
||||
|
||||
@@ -60,17 +60,6 @@ void CreateDynamicTagGroupRequest::setEnableInstallAgent(bool enableInstallAgent
|
||||
setParameter("EnableInstallAgent", enableInstallAgent ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateDynamicTagGroupRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateDynamicTagGroupRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<CreateDynamicTagGroupRequest::MatchExpress> CreateDynamicTagGroupRequest::getMatchExpress()const
|
||||
{
|
||||
return matchExpress_;
|
||||
|
||||
@@ -38,6 +38,17 @@ void CreateHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string& t
|
||||
setParameter("TaskOptionHttpMethod", taskOptionHttpMethod);
|
||||
}
|
||||
|
||||
std::string CreateHostAvailabilityRequest::getTaskOptionHttpHeader()const
|
||||
{
|
||||
return taskOptionHttpHeader_;
|
||||
}
|
||||
|
||||
void CreateHostAvailabilityRequest::setTaskOptionHttpHeader(const std::string& taskOptionHttpHeader)
|
||||
{
|
||||
taskOptionHttpHeader_ = taskOptionHttpHeader;
|
||||
setParameter("TaskOptionHttpHeader", taskOptionHttpHeader);
|
||||
}
|
||||
|
||||
std::vector<CreateHostAvailabilityRequest::AlertConfigEscalationList> CreateHostAvailabilityRequest::getAlertConfigEscalationList()const
|
||||
{
|
||||
return alertConfigEscalationList_;
|
||||
@@ -202,6 +213,17 @@ void CreateHostAvailabilityRequest::setTaskScope(const std::string& taskScope)
|
||||
setParameter("TaskScope", taskScope);
|
||||
}
|
||||
|
||||
std::string CreateHostAvailabilityRequest::getTaskOptionHttpPostContent()const
|
||||
{
|
||||
return taskOptionHttpPostContent_;
|
||||
}
|
||||
|
||||
void CreateHostAvailabilityRequest::setTaskOptionHttpPostContent(const std::string& taskOptionHttpPostContent)
|
||||
{
|
||||
taskOptionHttpPostContent_ = taskOptionHttpPostContent;
|
||||
setParameter("TaskOptionHttpPostContent", taskOptionHttpPostContent);
|
||||
}
|
||||
|
||||
int CreateHostAvailabilityRequest::getAlertConfigStartTime()const
|
||||
{
|
||||
return alertConfigStartTime_;
|
||||
|
||||
97
cms/src/model/CreateMonitorGroupByResourceGroupIdRequest.cc
Normal file
97
cms/src/model/CreateMonitorGroupByResourceGroupIdRequest.cc
Normal file
@@ -0,0 +1,97 @@
|
||||
/*
|
||||
* 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/CreateMonitorGroupByResourceGroupIdRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::CreateMonitorGroupByResourceGroupIdRequest;
|
||||
|
||||
CreateMonitorGroupByResourceGroupIdRequest::CreateMonitorGroupByResourceGroupIdRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupByResourceGroupId")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
CreateMonitorGroupByResourceGroupIdRequest::~CreateMonitorGroupByResourceGroupIdRequest()
|
||||
{}
|
||||
|
||||
std::string CreateMonitorGroupByResourceGroupIdRequest::getResourceGroupName()const
|
||||
{
|
||||
return resourceGroupName_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupByResourceGroupIdRequest::setResourceGroupName(const std::string& resourceGroupName)
|
||||
{
|
||||
resourceGroupName_ = resourceGroupName;
|
||||
setParameter("ResourceGroupName", resourceGroupName);
|
||||
}
|
||||
|
||||
bool CreateMonitorGroupByResourceGroupIdRequest::getEnableSubscribeEvent()const
|
||||
{
|
||||
return enableSubscribeEvent_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupByResourceGroupIdRequest::setEnableSubscribeEvent(bool enableSubscribeEvent)
|
||||
{
|
||||
enableSubscribeEvent_ = enableSubscribeEvent;
|
||||
setParameter("EnableSubscribeEvent", enableSubscribeEvent ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupByResourceGroupIdRequest::getResourceGroupId()const
|
||||
{
|
||||
return resourceGroupId_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupByResourceGroupIdRequest::setResourceGroupId(const std::string& resourceGroupId)
|
||||
{
|
||||
resourceGroupId_ = resourceGroupId;
|
||||
setParameter("ResourceGroupId", resourceGroupId);
|
||||
}
|
||||
|
||||
bool CreateMonitorGroupByResourceGroupIdRequest::getEnableInstallAgent()const
|
||||
{
|
||||
return enableInstallAgent_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupByResourceGroupIdRequest::setEnableInstallAgent(bool enableInstallAgent)
|
||||
{
|
||||
enableInstallAgent_ = enableInstallAgent;
|
||||
setParameter("EnableInstallAgent", enableInstallAgent ? "true" : "false");
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupByResourceGroupIdRequest::getRegionId()const
|
||||
{
|
||||
return regionId_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupByResourceGroupIdRequest::setRegionId(const std::string& regionId)
|
||||
{
|
||||
regionId_ = regionId;
|
||||
setParameter("RegionId", regionId);
|
||||
}
|
||||
|
||||
std::vector<std::string> CreateMonitorGroupByResourceGroupIdRequest::getContactGroupList()const
|
||||
{
|
||||
return contactGroupList_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupByResourceGroupIdRequest::setContactGroupList(const std::vector<std::string>& contactGroupList)
|
||||
{
|
||||
contactGroupList_ = contactGroupList;
|
||||
for(int dep1 = 0; dep1!= contactGroupList.size(); dep1++) {
|
||||
setParameter("ContactGroupList."+ std::to_string(dep1), contactGroupList.at(dep1));
|
||||
}
|
||||
}
|
||||
|
||||
65
cms/src/model/CreateMonitorGroupByResourceGroupIdResult.cc
Normal file
65
cms/src/model/CreateMonitorGroupByResourceGroupIdResult.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/CreateMonitorGroupByResourceGroupIdResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
CreateMonitorGroupByResourceGroupIdResult::CreateMonitorGroupByResourceGroupIdResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
CreateMonitorGroupByResourceGroupIdResult::CreateMonitorGroupByResourceGroupIdResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
CreateMonitorGroupByResourceGroupIdResult::~CreateMonitorGroupByResourceGroupIdResult()
|
||||
{}
|
||||
|
||||
void CreateMonitorGroupByResourceGroupIdResult::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 CreateMonitorGroupByResourceGroupIdResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string CreateMonitorGroupByResourceGroupIdResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool CreateMonitorGroupByResourceGroupIdResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -45,14 +45,14 @@ void CreateMonitorGroupInstancesRequest::setInstances(const std::vector<Instance
|
||||
}
|
||||
}
|
||||
|
||||
long CreateMonitorGroupInstancesRequest::getGroupId()const
|
||||
std::string CreateMonitorGroupInstancesRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void CreateMonitorGroupInstancesRequest::setGroupId(long groupId)
|
||||
void CreateMonitorGroupInstancesRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", std::to_string(groupId));
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
|
||||
@@ -39,6 +39,16 @@ void CreateSiteMonitorResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allCreateResultListNode = value["CreateResultList"]["CreateResultListItem"];
|
||||
for (auto valueCreateResultListCreateResultListItem : allCreateResultListNode)
|
||||
{
|
||||
CreateResultListItem createResultListObject;
|
||||
if(!valueCreateResultListCreateResultListItem["TaskName"].isNull())
|
||||
createResultListObject.taskName = valueCreateResultListCreateResultListItem["TaskName"].asString();
|
||||
if(!valueCreateResultListCreateResultListItem["TaskId"].isNull())
|
||||
createResultListObject.taskId = valueCreateResultListCreateResultListItem["TaskId"].asString();
|
||||
createResultList_.push_back(createResultListObject);
|
||||
}
|
||||
auto dataNode = value["Data"];
|
||||
auto allAttachAlertResultNode = dataNode["AttachAlertResult"]["Contact"];
|
||||
for (auto dataNodeAttachAlertResultContact : allAttachAlertResultNode)
|
||||
@@ -62,8 +72,6 @@ void CreateSiteMonitorResult::parse(const std::string &payload)
|
||||
message_ = value["Message"].asString();
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString();
|
||||
if(!value["AlertRule"].isNull())
|
||||
alertRule_ = value["AlertRule"].asString();
|
||||
|
||||
}
|
||||
|
||||
@@ -77,6 +85,11 @@ CreateSiteMonitorResult::Data CreateSiteMonitorResult::getData()const
|
||||
return data_;
|
||||
}
|
||||
|
||||
std::vector<CreateSiteMonitorResult::CreateResultListItem> CreateSiteMonitorResult::getCreateResultList()const
|
||||
{
|
||||
return createResultList_;
|
||||
}
|
||||
|
||||
std::string CreateSiteMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
@@ -87,8 +100,3 @@ std::string CreateSiteMonitorResult::getSuccess()const
|
||||
return success_;
|
||||
}
|
||||
|
||||
std::string CreateSiteMonitorResult::getAlertRule()const
|
||||
{
|
||||
return alertRule_;
|
||||
}
|
||||
|
||||
|
||||
@@ -14,27 +14,27 @@
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeFolderListRequest.h>
|
||||
#include <alibabacloud/cms/model/DeleteLogMonitorRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeFolderListRequest;
|
||||
using AlibabaCloud::Cms::Model::DeleteLogMonitorRequest;
|
||||
|
||||
DescribeFolderListRequest::DescribeFolderListRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeFolderList")
|
||||
DeleteLogMonitorRequest::DeleteLogMonitorRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DeleteLogMonitor")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeFolderListRequest::~DescribeFolderListRequest()
|
||||
DeleteLogMonitorRequest::~DeleteLogMonitorRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeFolderListRequest::getAppName()const
|
||||
long DeleteLogMonitorRequest::getLogId()const
|
||||
{
|
||||
return appName_;
|
||||
return logId_;
|
||||
}
|
||||
|
||||
void DescribeFolderListRequest::setAppName(const std::string& appName)
|
||||
void DeleteLogMonitorRequest::setLogId(long logId)
|
||||
{
|
||||
appName_ = appName;
|
||||
setParameter("AppName", appName);
|
||||
logId_ = logId;
|
||||
setParameter("LogId", std::to_string(logId));
|
||||
}
|
||||
|
||||
65
cms/src/model/DeleteLogMonitorResult.cc
Normal file
65
cms/src/model/DeleteLogMonitorResult.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/DeleteLogMonitorResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DeleteLogMonitorResult::DeleteLogMonitorResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DeleteLogMonitorResult::DeleteLogMonitorResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DeleteLogMonitorResult::~DeleteLogMonitorResult()
|
||||
{}
|
||||
|
||||
void DeleteLogMonitorResult::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["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Message"].isNull())
|
||||
message_ = value["Message"].asString();
|
||||
|
||||
}
|
||||
|
||||
std::string DeleteLogMonitorResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::string DeleteLogMonitorResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DeleteLogMonitorResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -21,7 +21,7 @@ using AlibabaCloud::Cms::Model::DescribeActiveMetricRuleListRequest;
|
||||
DescribeActiveMetricRuleListRequest::DescribeActiveMetricRuleListRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeActiveMetricRuleList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
setMethod(HttpRequest::Method::Get);
|
||||
}
|
||||
|
||||
DescribeActiveMetricRuleListRequest::~DescribeActiveMetricRuleListRequest()
|
||||
|
||||
@@ -77,6 +77,70 @@ void DescribeActiveMetricRuleListResult::parse(const std::string &payload)
|
||||
datapointsObject.ruleName = valueDatapointsAlarm["RuleName"].asString();
|
||||
datapoints_.push_back(datapointsObject);
|
||||
}
|
||||
auto allAlertListNode = value["AlertList"]["Alert"];
|
||||
for (auto valueAlertListAlert : allAlertListNode)
|
||||
{
|
||||
Alert alertListObject;
|
||||
if(!valueAlertListAlert["RuleId"].isNull())
|
||||
alertListObject.ruleId = valueAlertListAlert["RuleId"].asString();
|
||||
if(!valueAlertListAlert["Namespace"].isNull())
|
||||
alertListObject._namespace = valueAlertListAlert["Namespace"].asString();
|
||||
if(!valueAlertListAlert["MetricName"].isNull())
|
||||
alertListObject.metricName = valueAlertListAlert["MetricName"].asString();
|
||||
if(!valueAlertListAlert["Period"].isNull())
|
||||
alertListObject.period = valueAlertListAlert["Period"].asString();
|
||||
if(!valueAlertListAlert["EffectiveInterval"].isNull())
|
||||
alertListObject.effectiveInterval = valueAlertListAlert["EffectiveInterval"].asString();
|
||||
if(!valueAlertListAlert["NoEffectiveInterval"].isNull())
|
||||
alertListObject.noEffectiveInterval = valueAlertListAlert["NoEffectiveInterval"].asString();
|
||||
if(!valueAlertListAlert["SilenceTime"].isNull())
|
||||
alertListObject.silenceTime = valueAlertListAlert["SilenceTime"].asString();
|
||||
if(!valueAlertListAlert["EnableState"].isNull())
|
||||
alertListObject.enableState = valueAlertListAlert["EnableState"].asString() == "true";
|
||||
if(!valueAlertListAlert["AlertState"].isNull())
|
||||
alertListObject.alertState = valueAlertListAlert["AlertState"].asString();
|
||||
if(!valueAlertListAlert["ContactGroups"].isNull())
|
||||
alertListObject.contactGroups = valueAlertListAlert["ContactGroups"].asString();
|
||||
if(!valueAlertListAlert["Webhook"].isNull())
|
||||
alertListObject.webhook = valueAlertListAlert["Webhook"].asString();
|
||||
if(!valueAlertListAlert["MailSubject"].isNull())
|
||||
alertListObject.mailSubject = valueAlertListAlert["MailSubject"].asString();
|
||||
if(!valueAlertListAlert["RuleName"].isNull())
|
||||
alertListObject.ruleName = valueAlertListAlert["RuleName"].asString();
|
||||
if(!valueAlertListAlert["Resources"].isNull())
|
||||
alertListObject.resources = valueAlertListAlert["Resources"].asString();
|
||||
if(!valueAlertListAlert["Dimensions"].isNull())
|
||||
alertListObject.dimensions = valueAlertListAlert["Dimensions"].asString();
|
||||
auto escalationsNode = value["Escalations"];
|
||||
auto infoNode = escalationsNode["Info"];
|
||||
if(!infoNode["ComparisonOperator"].isNull())
|
||||
alertListObject.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString();
|
||||
if(!infoNode["Statistics"].isNull())
|
||||
alertListObject.escalations.info.statistics = infoNode["Statistics"].asString();
|
||||
if(!infoNode["Threshold"].isNull())
|
||||
alertListObject.escalations.info.threshold = infoNode["Threshold"].asString();
|
||||
if(!infoNode["Times"].isNull())
|
||||
alertListObject.escalations.info.times = infoNode["Times"].asString();
|
||||
auto warnNode = escalationsNode["Warn"];
|
||||
if(!warnNode["ComparisonOperator"].isNull())
|
||||
alertListObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString();
|
||||
if(!warnNode["Statistics"].isNull())
|
||||
alertListObject.escalations.warn.statistics = warnNode["Statistics"].asString();
|
||||
if(!warnNode["Threshold"].isNull())
|
||||
alertListObject.escalations.warn.threshold = warnNode["Threshold"].asString();
|
||||
if(!warnNode["Times"].isNull())
|
||||
alertListObject.escalations.warn.times = warnNode["Times"].asString();
|
||||
auto criticalNode = escalationsNode["Critical"];
|
||||
if(!criticalNode["ComparisonOperator"].isNull())
|
||||
alertListObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString();
|
||||
if(!criticalNode["Statistics"].isNull())
|
||||
alertListObject.escalations.critical.statistics = criticalNode["Statistics"].asString();
|
||||
if(!criticalNode["Threshold"].isNull())
|
||||
alertListObject.escalations.critical.threshold = criticalNode["Threshold"].asString();
|
||||
if(!criticalNode["Times"].isNull())
|
||||
alertListObject.escalations.critical.times = criticalNode["Times"].asString();
|
||||
alertList_.push_back(alertListObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
success_ = value["Success"].asString() == "true";
|
||||
if(!value["Code"].isNull())
|
||||
@@ -91,6 +155,11 @@ std::string DescribeActiveMetricRuleListResult::getMessage()const
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<DescribeActiveMetricRuleListResult::Alert> DescribeActiveMetricRuleListResult::getAlertList()const
|
||||
{
|
||||
return alertList_;
|
||||
}
|
||||
|
||||
std::vector<DescribeActiveMetricRuleListResult::Alarm> DescribeActiveMetricRuleListResult::getDatapoints()const
|
||||
{
|
||||
return datapoints_;
|
||||
|
||||
194
cms/src/model/DescribeAlertLogCountRequest.cc
Normal file
194
cms/src/model/DescribeAlertLogCountRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/DescribeAlertLogCountRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeAlertLogCountRequest;
|
||||
|
||||
DescribeAlertLogCountRequest::DescribeAlertLogCountRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeAlertLogCount")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAlertLogCountRequest::~DescribeAlertLogCountRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getSendStatus()const
|
||||
{
|
||||
return sendStatus_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setSendStatus(const std::string& sendStatus)
|
||||
{
|
||||
sendStatus_ = sendStatus;
|
||||
setParameter("SendStatus", sendStatus);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getContactGroup()const
|
||||
{
|
||||
return contactGroup_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setContactGroup(const std::string& contactGroup)
|
||||
{
|
||||
contactGroup_ = contactGroup;
|
||||
setParameter("ContactGroup", contactGroup);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getSearchKey()const
|
||||
{
|
||||
return searchKey_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setSearchKey(const std::string& searchKey)
|
||||
{
|
||||
searchKey_ = searchKey;
|
||||
setParameter("SearchKey", searchKey);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
long DescribeAlertLogCountRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
int DescribeAlertLogCountRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getLastMin()const
|
||||
{
|
||||
return lastMin_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setLastMin(const std::string& lastMin)
|
||||
{
|
||||
lastMin_ = lastMin;
|
||||
setParameter("LastMin", lastMin);
|
||||
}
|
||||
|
||||
int DescribeAlertLogCountRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getMetricName()const
|
||||
{
|
||||
return metricName_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setLevel(const std::string& level)
|
||||
{
|
||||
level_ = level;
|
||||
setParameter("Level", level);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long DescribeAlertLogCountRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::getGroupBy()const
|
||||
{
|
||||
return groupBy_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::setGroupBy(const std::string& groupBy)
|
||||
{
|
||||
groupBy_ = groupBy;
|
||||
setParameter("GroupBy", groupBy);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogCountRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
88
cms/src/model/DescribeAlertLogCountResult.cc
Normal file
88
cms/src/model/DescribeAlertLogCountResult.cc
Normal file
@@ -0,0 +1,88 @@
|
||||
/*
|
||||
* Copyright 2009-2017 Alibaba Cloud All rights reserved.
|
||||
*
|
||||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
* See the License for the specific language governing permissions and
|
||||
* limitations under the License.
|
||||
*/
|
||||
|
||||
#include <alibabacloud/cms/model/DescribeAlertLogCountResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DescribeAlertLogCountResult::DescribeAlertLogCountResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAlertLogCountResult::DescribeAlertLogCountResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAlertLogCountResult::~DescribeAlertLogCountResult()
|
||||
{}
|
||||
|
||||
void DescribeAlertLogCountResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlertLogCountNode = value["AlertLogCount"]["AlertLogCountItem"];
|
||||
for (auto valueAlertLogCountAlertLogCountItem : allAlertLogCountNode)
|
||||
{
|
||||
AlertLogCountItem alertLogCountObject;
|
||||
if(!valueAlertLogCountAlertLogCountItem["Count"].isNull())
|
||||
alertLogCountObject.count = std::stoi(valueAlertLogCountAlertLogCountItem["Count"].asString());
|
||||
auto allLogsNode = valueAlertLogCountAlertLogCountItem["Logs"]["LogsItem"];
|
||||
for (auto valueAlertLogCountAlertLogCountItemLogsLogsItem : allLogsNode)
|
||||
{
|
||||
AlertLogCountItem::LogsItem logsObject;
|
||||
if(!valueAlertLogCountAlertLogCountItemLogsLogsItem["Name"].isNull())
|
||||
logsObject.name = valueAlertLogCountAlertLogCountItemLogsLogsItem["Name"].asString();
|
||||
if(!valueAlertLogCountAlertLogCountItemLogsLogsItem["Value"].isNull())
|
||||
logsObject.value = valueAlertLogCountAlertLogCountItemLogsLogsItem["Value"].asString();
|
||||
alertLogCountObject.logs.push_back(logsObject);
|
||||
}
|
||||
alertLogCount_.push_back(alertLogCountObject);
|
||||
}
|
||||
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 DescribeAlertLogCountResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAlertLogCountResult::AlertLogCountItem> DescribeAlertLogCountResult::getAlertLogCount()const
|
||||
{
|
||||
return alertLogCount_;
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogCountResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeAlertLogCountResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
194
cms/src/model/DescribeAlertLogHistogramRequest.cc
Normal file
194
cms/src/model/DescribeAlertLogHistogramRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/DescribeAlertLogHistogramRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeAlertLogHistogramRequest;
|
||||
|
||||
DescribeAlertLogHistogramRequest::DescribeAlertLogHistogramRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeAlertLogHistogram")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAlertLogHistogramRequest::~DescribeAlertLogHistogramRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getSendStatus()const
|
||||
{
|
||||
return sendStatus_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setSendStatus(const std::string& sendStatus)
|
||||
{
|
||||
sendStatus_ = sendStatus;
|
||||
setParameter("SendStatus", sendStatus);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getContactGroup()const
|
||||
{
|
||||
return contactGroup_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setContactGroup(const std::string& contactGroup)
|
||||
{
|
||||
contactGroup_ = contactGroup;
|
||||
setParameter("ContactGroup", contactGroup);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getSearchKey()const
|
||||
{
|
||||
return searchKey_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setSearchKey(const std::string& searchKey)
|
||||
{
|
||||
searchKey_ = searchKey;
|
||||
setParameter("SearchKey", searchKey);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
long DescribeAlertLogHistogramRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
int DescribeAlertLogHistogramRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getLastMin()const
|
||||
{
|
||||
return lastMin_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setLastMin(const std::string& lastMin)
|
||||
{
|
||||
lastMin_ = lastMin;
|
||||
setParameter("LastMin", lastMin);
|
||||
}
|
||||
|
||||
int DescribeAlertLogHistogramRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getMetricName()const
|
||||
{
|
||||
return metricName_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setLevel(const std::string& level)
|
||||
{
|
||||
level_ = level;
|
||||
setParameter("Level", level);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long DescribeAlertLogHistogramRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::getGroupBy()const
|
||||
{
|
||||
return groupBy_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::setGroupBy(const std::string& groupBy)
|
||||
{
|
||||
groupBy_ = groupBy;
|
||||
setParameter("GroupBy", groupBy);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogHistogramRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
82
cms/src/model/DescribeAlertLogHistogramResult.cc
Normal file
82
cms/src/model/DescribeAlertLogHistogramResult.cc
Normal file
@@ -0,0 +1,82 @@
|
||||
/*
|
||||
* 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/DescribeAlertLogHistogramResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DescribeAlertLogHistogramResult::DescribeAlertLogHistogramResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAlertLogHistogramResult::DescribeAlertLogHistogramResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAlertLogHistogramResult::~DescribeAlertLogHistogramResult()
|
||||
{}
|
||||
|
||||
void DescribeAlertLogHistogramResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlertLogHistogramListNode = value["AlertLogHistogramList"]["AlertLogHistogramListItem"];
|
||||
for (auto valueAlertLogHistogramListAlertLogHistogramListItem : allAlertLogHistogramListNode)
|
||||
{
|
||||
AlertLogHistogramListItem alertLogHistogramListObject;
|
||||
if(!valueAlertLogHistogramListAlertLogHistogramListItem["Count"].isNull())
|
||||
alertLogHistogramListObject.count = std::stoi(valueAlertLogHistogramListAlertLogHistogramListItem["Count"].asString());
|
||||
if(!valueAlertLogHistogramListAlertLogHistogramListItem["From"].isNull())
|
||||
alertLogHistogramListObject.from = std::stol(valueAlertLogHistogramListAlertLogHistogramListItem["From"].asString());
|
||||
if(!valueAlertLogHistogramListAlertLogHistogramListItem["To"].isNull())
|
||||
alertLogHistogramListObject.to = std::stol(valueAlertLogHistogramListAlertLogHistogramListItem["To"].asString());
|
||||
alertLogHistogramList_.push_back(alertLogHistogramListObject);
|
||||
}
|
||||
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 DescribeAlertLogHistogramResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
std::vector<DescribeAlertLogHistogramResult::AlertLogHistogramListItem> DescribeAlertLogHistogramResult::getAlertLogHistogramList()const
|
||||
{
|
||||
return alertLogHistogramList_;
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogHistogramResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeAlertLogHistogramResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
194
cms/src/model/DescribeAlertLogListRequest.cc
Normal file
194
cms/src/model/DescribeAlertLogListRequest.cc
Normal file
@@ -0,0 +1,194 @@
|
||||
/*
|
||||
* 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/DescribeAlertLogListRequest.h>
|
||||
|
||||
using AlibabaCloud::Cms::Model::DescribeAlertLogListRequest;
|
||||
|
||||
DescribeAlertLogListRequest::DescribeAlertLogListRequest() :
|
||||
RpcServiceRequest("cms", "2019-01-01", "DescribeAlertLogList")
|
||||
{
|
||||
setMethod(HttpRequest::Method::Post);
|
||||
}
|
||||
|
||||
DescribeAlertLogListRequest::~DescribeAlertLogListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getSendStatus()const
|
||||
{
|
||||
return sendStatus_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setSendStatus(const std::string& sendStatus)
|
||||
{
|
||||
sendStatus_ = sendStatus;
|
||||
setParameter("SendStatus", sendStatus);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getContactGroup()const
|
||||
{
|
||||
return contactGroup_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setContactGroup(const std::string& contactGroup)
|
||||
{
|
||||
contactGroup_ = contactGroup;
|
||||
setParameter("ContactGroup", contactGroup);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getSearchKey()const
|
||||
{
|
||||
return searchKey_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setSearchKey(const std::string& searchKey)
|
||||
{
|
||||
searchKey_ = searchKey;
|
||||
setParameter("SearchKey", searchKey);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getRuleName()const
|
||||
{
|
||||
return ruleName_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setRuleName(const std::string& ruleName)
|
||||
{
|
||||
ruleName_ = ruleName;
|
||||
setParameter("RuleName", ruleName);
|
||||
}
|
||||
|
||||
long DescribeAlertLogListRequest::getStartTime()const
|
||||
{
|
||||
return startTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setStartTime(long startTime)
|
||||
{
|
||||
startTime_ = startTime;
|
||||
setParameter("StartTime", std::to_string(startTime));
|
||||
}
|
||||
|
||||
int DescribeAlertLogListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setPageNumber(int pageNumber)
|
||||
{
|
||||
pageNumber_ = pageNumber;
|
||||
setParameter("PageNumber", std::to_string(pageNumber));
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getLastMin()const
|
||||
{
|
||||
return lastMin_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setLastMin(const std::string& lastMin)
|
||||
{
|
||||
lastMin_ = lastMin;
|
||||
setParameter("LastMin", lastMin);
|
||||
}
|
||||
|
||||
int DescribeAlertLogListRequest::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setPageSize(int pageSize)
|
||||
{
|
||||
pageSize_ = pageSize;
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getMetricName()const
|
||||
{
|
||||
return metricName_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setMetricName(const std::string& metricName)
|
||||
{
|
||||
metricName_ = metricName;
|
||||
setParameter("MetricName", metricName);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getProduct()const
|
||||
{
|
||||
return product_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setProduct(const std::string& product)
|
||||
{
|
||||
product_ = product;
|
||||
setParameter("Product", product);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setLevel(const std::string& level)
|
||||
{
|
||||
level_ = level;
|
||||
setParameter("Level", level);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setGroupId(const std::string& groupId)
|
||||
{
|
||||
groupId_ = groupId;
|
||||
setParameter("GroupId", groupId);
|
||||
}
|
||||
|
||||
long DescribeAlertLogListRequest::getEndTime()const
|
||||
{
|
||||
return endTime_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setEndTime(long endTime)
|
||||
{
|
||||
endTime_ = endTime;
|
||||
setParameter("EndTime", std::to_string(endTime));
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::getGroupBy()const
|
||||
{
|
||||
return groupBy_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::setGroupBy(const std::string& groupBy)
|
||||
{
|
||||
groupBy_ = groupBy;
|
||||
setParameter("GroupBy", groupBy);
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeAlertLogListRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
178
cms/src/model/DescribeAlertLogListResult.cc
Normal file
178
cms/src/model/DescribeAlertLogListResult.cc
Normal file
@@ -0,0 +1,178 @@
|
||||
/*
|
||||
* 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/DescribeAlertLogListResult.h>
|
||||
#include <json/json.h>
|
||||
|
||||
using namespace AlibabaCloud::Cms;
|
||||
using namespace AlibabaCloud::Cms::Model;
|
||||
|
||||
DescribeAlertLogListResult::DescribeAlertLogListResult() :
|
||||
ServiceResult()
|
||||
{}
|
||||
|
||||
DescribeAlertLogListResult::DescribeAlertLogListResult(const std::string &payload) :
|
||||
ServiceResult()
|
||||
{
|
||||
parse(payload);
|
||||
}
|
||||
|
||||
DescribeAlertLogListResult::~DescribeAlertLogListResult()
|
||||
{}
|
||||
|
||||
void DescribeAlertLogListResult::parse(const std::string &payload)
|
||||
{
|
||||
Json::Reader reader;
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allAlertLogListNode = value["AlertLogList"]["Alarm"];
|
||||
for (auto valueAlertLogListAlarm : allAlertLogListNode)
|
||||
{
|
||||
Alarm alertLogListObject;
|
||||
if(!valueAlertLogListAlarm["RuleId"].isNull())
|
||||
alertLogListObject.ruleId = valueAlertLogListAlarm["RuleId"].asString();
|
||||
if(!valueAlertLogListAlarm["RuleName"].isNull())
|
||||
alertLogListObject.ruleName = valueAlertLogListAlarm["RuleName"].asString();
|
||||
if(!valueAlertLogListAlarm["Namespace"].isNull())
|
||||
alertLogListObject._namespace = valueAlertLogListAlarm["Namespace"].asString();
|
||||
if(!valueAlertLogListAlarm["Product"].isNull())
|
||||
alertLogListObject.product = valueAlertLogListAlarm["Product"].asString();
|
||||
if(!valueAlertLogListAlarm["EventName"].isNull())
|
||||
alertLogListObject.eventName = valueAlertLogListAlarm["EventName"].asString();
|
||||
if(!valueAlertLogListAlarm["GroupId"].isNull())
|
||||
alertLogListObject.groupId = valueAlertLogListAlarm["GroupId"].asString();
|
||||
if(!valueAlertLogListAlarm["GroupName"].isNull())
|
||||
alertLogListObject.groupName = valueAlertLogListAlarm["GroupName"].asString();
|
||||
if(!valueAlertLogListAlarm["MetricName"].isNull())
|
||||
alertLogListObject.metricName = valueAlertLogListAlarm["MetricName"].asString();
|
||||
if(!valueAlertLogListAlarm["InstanceId"].isNull())
|
||||
alertLogListObject.instanceId = valueAlertLogListAlarm["InstanceId"].asString();
|
||||
if(!valueAlertLogListAlarm["InstanceName"].isNull())
|
||||
alertLogListObject.instanceName = valueAlertLogListAlarm["InstanceName"].asString();
|
||||
if(!valueAlertLogListAlarm["Level"].isNull())
|
||||
alertLogListObject.level = valueAlertLogListAlarm["Level"].asString();
|
||||
if(!valueAlertLogListAlarm["LevelChange"].isNull())
|
||||
alertLogListObject.levelChange = valueAlertLogListAlarm["LevelChange"].asString();
|
||||
if(!valueAlertLogListAlarm["SendStatus"].isNull())
|
||||
alertLogListObject.sendStatus = valueAlertLogListAlarm["SendStatus"].asString();
|
||||
if(!valueAlertLogListAlarm["AlertTime"].isNull())
|
||||
alertLogListObject.alertTime = valueAlertLogListAlarm["AlertTime"].asString();
|
||||
if(!valueAlertLogListAlarm["Message"].isNull())
|
||||
alertLogListObject.message = valueAlertLogListAlarm["Message"].asString();
|
||||
auto allExtendedInfoNode = valueAlertLogListAlarm["ExtendedInfo"]["ExtInfo"];
|
||||
for (auto valueAlertLogListAlarmExtendedInfoExtInfo : allExtendedInfoNode)
|
||||
{
|
||||
Alarm::ExtInfo extendedInfoObject;
|
||||
if(!valueAlertLogListAlarmExtendedInfoExtInfo["Name"].isNull())
|
||||
extendedInfoObject.name = valueAlertLogListAlarmExtendedInfoExtInfo["Name"].asString();
|
||||
if(!valueAlertLogListAlarmExtendedInfoExtInfo["Value"].isNull())
|
||||
extendedInfoObject.value = valueAlertLogListAlarmExtendedInfoExtInfo["Value"].asString();
|
||||
alertLogListObject.extendedInfo.push_back(extendedInfoObject);
|
||||
}
|
||||
auto allDimensionsNode = valueAlertLogListAlarm["Dimensions"]["DimensionsItem"];
|
||||
for (auto valueAlertLogListAlarmDimensionsDimensionsItem : allDimensionsNode)
|
||||
{
|
||||
Alarm::DimensionsItem dimensionsObject;
|
||||
if(!valueAlertLogListAlarmDimensionsDimensionsItem["Key"].isNull())
|
||||
dimensionsObject.key = valueAlertLogListAlarmDimensionsDimensionsItem["Key"].asString();
|
||||
if(!valueAlertLogListAlarmDimensionsDimensionsItem["Value"].isNull())
|
||||
dimensionsObject.value = valueAlertLogListAlarmDimensionsDimensionsItem["Value"].asString();
|
||||
alertLogListObject.dimensions.push_back(dimensionsObject);
|
||||
}
|
||||
auto escalationNode = value["Escalation"];
|
||||
if(!escalationNode["Times"].isNull())
|
||||
alertLogListObject.escalation.times = std::stoi(escalationNode["Times"].asString());
|
||||
if(!escalationNode["Expression"].isNull())
|
||||
alertLogListObject.escalation.expression = escalationNode["Expression"].asString();
|
||||
if(!escalationNode["Level"].isNull())
|
||||
alertLogListObject.escalation.level = escalationNode["Level"].asString();
|
||||
auto allContactGroups = value["ContactGroups"]["ContactGroup"];
|
||||
for (auto value : allContactGroups)
|
||||
alertLogListObject.contactGroups.push_back(value.asString());
|
||||
auto allWebhookList = value["WebhookList"]["WebhookList"];
|
||||
for (auto value : allWebhookList)
|
||||
alertLogListObject.webhookList.push_back(value.asString());
|
||||
auto allContactALIIWWList = value["ContactALIIWWList"]["ContactALIIMs"];
|
||||
for (auto value : allContactALIIWWList)
|
||||
alertLogListObject.contactALIIWWList.push_back(value.asString());
|
||||
auto allContactSMSList = value["ContactSMSList"]["ContactSMSList"];
|
||||
for (auto value : allContactSMSList)
|
||||
alertLogListObject.contactSMSList.push_back(value.asString());
|
||||
auto allContactOnCallList = value["ContactOnCallList"]["ContactOnCallList"];
|
||||
for (auto value : allContactOnCallList)
|
||||
alertLogListObject.contactOnCallList.push_back(value.asString());
|
||||
auto allContactMailList = value["ContactMailList"]["ContactMailList"];
|
||||
for (auto value : allContactMailList)
|
||||
alertLogListObject.contactMailList.push_back(value.asString());
|
||||
auto allContactDingList = value["ContactDingList"]["ContactDingList"];
|
||||
for (auto value : allContactDingList)
|
||||
alertLogListObject.contactDingList.push_back(value.asString());
|
||||
auto allDingdingWebhookList = value["DingdingWebhookList"]["ContactDingList"];
|
||||
for (auto value : allDingdingWebhookList)
|
||||
alertLogListObject.dingdingWebhookList.push_back(value.asString());
|
||||
alertLogList_.push_back(alertLogListObject);
|
||||
}
|
||||
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";
|
||||
if(!value["Total"].isNull())
|
||||
total_ = std::stoi(value["Total"].asString());
|
||||
if(!value["PageSize"].isNull())
|
||||
pageSize_ = std::stoi(value["PageSize"].asString());
|
||||
if(!value["PageNumber"].isNull())
|
||||
pageNumber_ = std::stoi(value["PageNumber"].asString());
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeAlertLogListResult::Alarm> DescribeAlertLogListResult::getAlertLogList()const
|
||||
{
|
||||
return alertLogList_;
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListResult::getMessage()const
|
||||
{
|
||||
return message_;
|
||||
}
|
||||
|
||||
int DescribeAlertLogListResult::getPageSize()const
|
||||
{
|
||||
return pageSize_;
|
||||
}
|
||||
|
||||
int DescribeAlertLogListResult::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
}
|
||||
|
||||
int DescribeAlertLogListResult::getTotal()const
|
||||
{
|
||||
return total_;
|
||||
}
|
||||
|
||||
std::string DescribeAlertLogListResult::getCode()const
|
||||
{
|
||||
return code_;
|
||||
}
|
||||
|
||||
bool DescribeAlertLogListResult::getSuccess()const
|
||||
{
|
||||
return success_;
|
||||
}
|
||||
|
||||
@@ -49,6 +49,17 @@ void DescribeAlertingMetricRuleResourcesRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeAlertingMetricRuleResourcesRequest::get_Namespace()const
|
||||
{
|
||||
return _namespace_;
|
||||
}
|
||||
|
||||
void DescribeAlertingMetricRuleResourcesRequest::set_Namespace(const std::string& _namespace)
|
||||
{
|
||||
_namespace_ = _namespace;
|
||||
setParameter("_Namespace", _namespace);
|
||||
}
|
||||
|
||||
int DescribeAlertingMetricRuleResourcesRequest::getPage()const
|
||||
{
|
||||
return page_;
|
||||
|
||||
@@ -51,20 +51,52 @@ void DescribeAlertingMetricRuleResourcesResult::parse(const std::string &payload
|
||||
resourcesObject.groupId = valueResourcesResource["GroupId"].asString();
|
||||
if(!valueResourcesResource["Resource"].isNull())
|
||||
resourcesObject.resource = valueResourcesResource["Resource"].asString();
|
||||
if(!valueResourcesResource["MetricName"].isNull())
|
||||
resourcesObject.metricName = valueResourcesResource["MetricName"].asString();
|
||||
if(!valueResourcesResource["Namespace"].isNull())
|
||||
resourcesObject._namespace = valueResourcesResource["Namespace"].asString();
|
||||
if(!valueResourcesResource["Enable"].isNull())
|
||||
resourcesObject.enable = valueResourcesResource["Enable"].asString();
|
||||
if(!valueResourcesResource["LastAlertTime"].isNull())
|
||||
resourcesObject.lastAlertTime = valueResourcesResource["LastAlertTime"].asString();
|
||||
if(!valueResourcesResource["LastModifyTime"].isNull())
|
||||
resourcesObject.lastModifyTime = valueResourcesResource["LastModifyTime"].asString();
|
||||
if(!valueResourcesResource["Dimensions"].isNull())
|
||||
resourcesObject.dimensions = valueResourcesResource["Dimensions"].asString();
|
||||
if(!valueResourcesResource["StartTime"].isNull())
|
||||
resourcesObject.startTime = valueResourcesResource["StartTime"].asString();
|
||||
if(!valueResourcesResource["MetricValues"].isNull())
|
||||
resourcesObject.metricValues = valueResourcesResource["MetricValues"].asString();
|
||||
if(!valueResourcesResource["RetryTimes"].isNull())
|
||||
resourcesObject.retryTimes = valueResourcesResource["RetryTimes"].asString();
|
||||
if(!valueResourcesResource["Statistics"].isNull())
|
||||
resourcesObject.statistics = valueResourcesResource["Statistics"].asString();
|
||||
if(!valueResourcesResource["Threshold"].isNull())
|
||||
resourcesObject.threshold = valueResourcesResource["Threshold"].asString();
|
||||
if(!valueResourcesResource["ProductCategory"].isNull())
|
||||
resourcesObject.productCategory = valueResourcesResource["ProductCategory"].asString();
|
||||
if(!valueResourcesResource["Level"].isNull())
|
||||
resourcesObject.level = std::stoi(valueResourcesResource["Level"].asString());
|
||||
auto allEscalationNode = valueResourcesResource["Escalation"]["Resource"];
|
||||
for (auto valueResourcesResourceEscalationResource : allEscalationNode)
|
||||
{
|
||||
Resource::Resource1 escalationObject;
|
||||
if(!valueResourcesResourceEscalationResource["Expression"].isNull())
|
||||
escalationObject.expression = valueResourcesResourceEscalationResource["Expression"].asString();
|
||||
if(!valueResourcesResourceEscalationResource["PreCondition"].isNull())
|
||||
escalationObject.preCondition = valueResourcesResourceEscalationResource["PreCondition"].asString();
|
||||
if(!valueResourcesResourceEscalationResource["Level"].isNull())
|
||||
escalationObject.level = std::stoi(valueResourcesResourceEscalationResource["Level"].asString());
|
||||
if(!valueResourcesResourceEscalationResource["Times"].isNull())
|
||||
escalationObject.times = std::stoi(valueResourcesResourceEscalationResource["Times"].asString());
|
||||
if(!valueResourcesResourceEscalationResource["ComparisonOperator"].isNull())
|
||||
escalationObject.comparisonOperator = valueResourcesResourceEscalationResource["ComparisonOperator"].asString();
|
||||
if(!valueResourcesResourceEscalationResource["Tag"].isNull())
|
||||
escalationObject.tag = valueResourcesResourceEscalationResource["Tag"].asString();
|
||||
if(!valueResourcesResourceEscalationResource["Threshold"].isNull())
|
||||
escalationObject.threshold = valueResourcesResourceEscalationResource["Threshold"].asString();
|
||||
resourcesObject.escalation.push_back(escalationObject);
|
||||
}
|
||||
resources_.push_back(resourcesObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -39,6 +39,27 @@ void DescribeContactGroupListResult::parse(const std::string &payload)
|
||||
Json::Value value;
|
||||
reader.parse(payload, value);
|
||||
setRequestId(value["RequestId"].asString());
|
||||
auto allContactGroupListNode = value["ContactGroupList"]["ContactGroup"];
|
||||
for (auto valueContactGroupListContactGroup : allContactGroupListNode)
|
||||
{
|
||||
ContactGroup contactGroupListObject;
|
||||
if(!valueContactGroupListContactGroup["Name"].isNull())
|
||||
contactGroupListObject.name = valueContactGroupListContactGroup["Name"].asString();
|
||||
if(!valueContactGroupListContactGroup["Describe"].isNull())
|
||||
contactGroupListObject.describe = valueContactGroupListContactGroup["Describe"].asString();
|
||||
if(!valueContactGroupListContactGroup["CreateTime"].isNull())
|
||||
contactGroupListObject.createTime = std::stol(valueContactGroupListContactGroup["CreateTime"].asString());
|
||||
if(!valueContactGroupListContactGroup["UpdateTime"].isNull())
|
||||
contactGroupListObject.updateTime = std::stol(valueContactGroupListContactGroup["UpdateTime"].asString());
|
||||
if(!valueContactGroupListContactGroup["EnabledWeeklyReport"].isNull())
|
||||
contactGroupListObject.enabledWeeklyReport = valueContactGroupListContactGroup["EnabledWeeklyReport"].asString() == "true";
|
||||
if(!valueContactGroupListContactGroup["EnableSubscribed"].isNull())
|
||||
contactGroupListObject.enableSubscribed = valueContactGroupListContactGroup["EnableSubscribed"].asString() == "true";
|
||||
auto allContacts = value["Contacts"]["Contact"];
|
||||
for (auto value : allContacts)
|
||||
contactGroupListObject.contacts.push_back(value.asString());
|
||||
contactGroupList_.push_back(contactGroupListObject);
|
||||
}
|
||||
auto allContactGroups = value["ContactGroups"]["ContactGroup"];
|
||||
for (const auto &item : allContactGroups)
|
||||
contactGroups_.push_back(item.asString());
|
||||
@@ -53,6 +74,11 @@ void DescribeContactGroupListResult::parse(const std::string &payload)
|
||||
|
||||
}
|
||||
|
||||
std::vector<DescribeContactGroupListResult::ContactGroup> DescribeContactGroupListResult::getContactGroupList()const
|
||||
{
|
||||
return contactGroupList_;
|
||||
}
|
||||
|
||||
std::vector<std::string> DescribeContactGroupListResult::getContactGroups()const
|
||||
{
|
||||
return contactGroups_;
|
||||
|
||||
@@ -27,6 +27,17 @@ DescribeContactListRequest::DescribeContactListRequest() :
|
||||
DescribeContactListRequest::~DescribeContactListRequest()
|
||||
{}
|
||||
|
||||
std::string DescribeContactListRequest::getChanelType()const
|
||||
{
|
||||
return chanelType_;
|
||||
}
|
||||
|
||||
void DescribeContactListRequest::setChanelType(const std::string& chanelType)
|
||||
{
|
||||
chanelType_ = chanelType;
|
||||
setParameter("ChanelType", chanelType);
|
||||
}
|
||||
|
||||
int DescribeContactListRequest::getPageNumber()const
|
||||
{
|
||||
return pageNumber_;
|
||||
@@ -60,3 +71,14 @@ void DescribeContactListRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeContactListRequest::getChanelValue()const
|
||||
{
|
||||
return chanelValue_;
|
||||
}
|
||||
|
||||
void DescribeContactListRequest::setChanelValue(const std::string& chanelValue)
|
||||
{
|
||||
chanelValue_ = chanelValue;
|
||||
setParameter("ChanelValue", chanelValue);
|
||||
}
|
||||
|
||||
|
||||
@@ -47,6 +47,8 @@ void DescribeContactListResult::parse(const std::string &payload)
|
||||
contactsObject.name = valueContactsContact["Name"].asString();
|
||||
if(!valueContactsContact["Desc"].isNull())
|
||||
contactsObject.desc = valueContactsContact["Desc"].asString();
|
||||
if(!valueContactsContact["Lang"].isNull())
|
||||
contactsObject.lang = valueContactsContact["Lang"].asString();
|
||||
if(!valueContactsContact["CreateTime"].isNull())
|
||||
contactsObject.createTime = std::stol(valueContactsContact["CreateTime"].asString());
|
||||
if(!valueContactsContact["UpdateTime"].isNull())
|
||||
@@ -60,6 +62,18 @@ void DescribeContactListResult::parse(const std::string &payload)
|
||||
contactsObject.channels.aliIM = channelsNode["AliIM"].asString();
|
||||
if(!channelsNode["DingWebHook"].isNull())
|
||||
contactsObject.channels.dingWebHook = channelsNode["DingWebHook"].asString();
|
||||
auto channelsStateNode = value["ChannelsState"];
|
||||
if(!channelsStateNode["SMS"].isNull())
|
||||
contactsObject.channelsState.sMS = channelsStateNode["SMS"].asString();
|
||||
if(!channelsStateNode["Mail"].isNull())
|
||||
contactsObject.channelsState.mail = channelsStateNode["Mail"].asString();
|
||||
if(!channelsStateNode["AliIM"].isNull())
|
||||
contactsObject.channelsState.aliIM = channelsStateNode["AliIM"].asString();
|
||||
if(!channelsStateNode["DingWebHook"].isNull())
|
||||
contactsObject.channelsState.dingWebHook = channelsStateNode["DingWebHook"].asString();
|
||||
auto allContactGroups = value["ContactGroups"]["ContactGroup"];
|
||||
for (auto value : allContactGroups)
|
||||
contactsObject.contactGroups.push_back(value.asString());
|
||||
contacts_.push_back(contactsObject);
|
||||
}
|
||||
if(!value["Success"].isNull())
|
||||
|
||||
@@ -82,17 +82,6 @@ void DescribeCustomEventAttributeRequest::setPageSize(int pageSize)
|
||||
setParameter("PageSize", std::to_string(pageSize));
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventAttributeRequest::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
void DescribeCustomEventAttributeRequest::setLevel(const std::string& level)
|
||||
{
|
||||
level_ = level;
|
||||
setParameter("Level", level);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventAttributeRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
|
||||
@@ -38,17 +38,6 @@ void DescribeCustomEventCountRequest::setEventId(const std::string& eventId)
|
||||
setParameter("EventId", eventId);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventCountRequest::getLevel()const
|
||||
{
|
||||
return level_;
|
||||
}
|
||||
|
||||
void DescribeCustomEventCountRequest::setLevel(const std::string& level)
|
||||
{
|
||||
level_ = level;
|
||||
setParameter("Level", level);
|
||||
}
|
||||
|
||||
std::string DescribeCustomEventCountRequest::getGroupId()const
|
||||
{
|
||||
return groupId_;
|
||||
|
||||
@@ -53,14 +53,14 @@ void DescribeDynamicTagRuleListResult::parse(const std::string &payload)
|
||||
tagGroupListObject.matchExpressFilterRelation = valueTagGroupListTagGroup["MatchExpressFilterRelation"].asString();
|
||||
if(!valueTagGroupListTagGroup["Status"].isNull())
|
||||
tagGroupListObject.status = valueTagGroupListTagGroup["Status"].asString();
|
||||
auto allMatchExpressNode = allTagGroupListNode["MatchExpress"]["MatchExpressItem"];
|
||||
for (auto allTagGroupListNodeMatchExpressMatchExpressItem : allMatchExpressNode)
|
||||
auto allMatchExpressNode = valueTagGroupListTagGroup["MatchExpress"]["MatchExpressItem"];
|
||||
for (auto valueTagGroupListTagGroupMatchExpressMatchExpressItem : allMatchExpressNode)
|
||||
{
|
||||
TagGroup::MatchExpressItem matchExpressObject;
|
||||
if(!allTagGroupListNodeMatchExpressMatchExpressItem["TagValueMatchFunction"].isNull())
|
||||
matchExpressObject.tagValueMatchFunction = allTagGroupListNodeMatchExpressMatchExpressItem["TagValueMatchFunction"].asString();
|
||||
if(!allTagGroupListNodeMatchExpressMatchExpressItem["TagValue"].isNull())
|
||||
matchExpressObject.tagValue = allTagGroupListNodeMatchExpressMatchExpressItem["TagValue"].asString();
|
||||
if(!valueTagGroupListTagGroupMatchExpressMatchExpressItem["TagValueMatchFunction"].isNull())
|
||||
matchExpressObject.tagValueMatchFunction = valueTagGroupListTagGroupMatchExpressMatchExpressItem["TagValueMatchFunction"].asString();
|
||||
if(!valueTagGroupListTagGroupMatchExpressMatchExpressItem["TagValue"].isNull())
|
||||
matchExpressObject.tagValue = valueTagGroupListTagGroupMatchExpressMatchExpressItem["TagValue"].asString();
|
||||
tagGroupListObject.matchExpress.push_back(matchExpressObject);
|
||||
}
|
||||
auto allTemplateIdList = value["TemplateIdList"]["TemplateIdList"];
|
||||
|
||||
Some files were not shown because too many files have changed in this diff Show More
Reference in New Issue
Block a user