diff --git a/CHANGELOG b/CHANGELOG index 70e2916cb..d60031375 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,6 @@ +2021-03-15 Version: 1.36.635 +- Increase availability monitoring increase HTP header. + 2021-03-14 Version: 1.36.634 - Generated 2018-07-13 for `Ft`. diff --git a/VERSION b/VERSION index eb0b67452..fc0fe30f8 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.634 \ No newline at end of file +1.36.635 \ No newline at end of file diff --git a/cms/CMakeLists.txt b/cms/CMakeLists.txt index 28f4a6238..9c95e82e6 100644 --- a/cms/CMakeLists.txt +++ b/cms/CMakeLists.txt @@ -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 diff --git a/cms/include/alibabacloud/cms/CmsClient.h b/cms/include/alibabacloud/cms/CmsClient.h index 3397dacf6..1af60bfbf 100644 --- a/cms/include/alibabacloud/cms/CmsClient.h +++ b/cms/include/alibabacloud/cms/CmsClient.h @@ -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 ApplyMetricRuleTemplateOutcome; typedef std::future ApplyMetricRuleTemplateOutcomeCallable; typedef std::function&)> ApplyMetricRuleTemplateAsyncHandler; + typedef Outcome CreateCmsCallNumOrderOutcome; + typedef std::future CreateCmsCallNumOrderOutcomeCallable; + typedef std::function&)> CreateCmsCallNumOrderAsyncHandler; + typedef Outcome CreateCmsOrderOutcome; + typedef std::future CreateCmsOrderOutcomeCallable; + typedef std::function&)> CreateCmsOrderAsyncHandler; + typedef Outcome CreateCmsSmspackageOrderOutcome; + typedef std::future CreateCmsSmspackageOrderOutcomeCallable; + typedef std::function&)> CreateCmsSmspackageOrderAsyncHandler; typedef Outcome CreateDynamicTagGroupOutcome; typedef std::future CreateDynamicTagGroupOutcomeCallable; typedef std::function&)> CreateDynamicTagGroupAsyncHandler; @@ -311,6 +350,9 @@ namespace AlibabaCloud typedef Outcome CreateMonitorGroupOutcome; typedef std::future CreateMonitorGroupOutcomeCallable; typedef std::function&)> CreateMonitorGroupAsyncHandler; + typedef Outcome CreateMonitorGroupByResourceGroupIdOutcome; + typedef std::future CreateMonitorGroupByResourceGroupIdOutcomeCallable; + typedef std::function&)> CreateMonitorGroupByResourceGroupIdAsyncHandler; typedef Outcome CreateMonitorGroupInstancesOutcome; typedef std::future CreateMonitorGroupInstancesOutcomeCallable; typedef std::function&)> CreateMonitorGroupInstancesAsyncHandler; @@ -353,6 +395,9 @@ namespace AlibabaCloud typedef Outcome DeleteHostAvailabilityOutcome; typedef std::future DeleteHostAvailabilityOutcomeCallable; typedef std::function&)> DeleteHostAvailabilityAsyncHandler; + typedef Outcome DeleteLogMonitorOutcome; + typedef std::future DeleteLogMonitorOutcomeCallable; + typedef std::function&)> DeleteLogMonitorAsyncHandler; typedef Outcome DeleteMetricRuleResourcesOutcome; typedef std::future DeleteMetricRuleResourcesOutcomeCallable; typedef std::function&)> DeleteMetricRuleResourcesAsyncHandler; @@ -389,6 +434,15 @@ namespace AlibabaCloud typedef Outcome DescribeAlertHistoryListOutcome; typedef std::future DescribeAlertHistoryListOutcomeCallable; typedef std::function&)> DescribeAlertHistoryListAsyncHandler; + typedef Outcome DescribeAlertLogCountOutcome; + typedef std::future DescribeAlertLogCountOutcomeCallable; + typedef std::function&)> DescribeAlertLogCountAsyncHandler; + typedef Outcome DescribeAlertLogHistogramOutcome; + typedef std::future DescribeAlertLogHistogramOutcomeCallable; + typedef std::function&)> DescribeAlertLogHistogramAsyncHandler; + typedef Outcome DescribeAlertLogListOutcome; + typedef std::future DescribeAlertLogListOutcomeCallable; + typedef std::function&)> DescribeAlertLogListAsyncHandler; typedef Outcome DescribeAlertingMetricRuleResourcesOutcome; typedef std::future DescribeAlertingMetricRuleResourcesOutcomeCallable; typedef std::function&)> DescribeAlertingMetricRuleResourcesAsyncHandler; @@ -431,15 +485,18 @@ namespace AlibabaCloud typedef Outcome DescribeExporterRuleListOutcome; typedef std::future DescribeExporterRuleListOutcomeCallable; typedef std::function&)> DescribeExporterRuleListAsyncHandler; - typedef Outcome DescribeFolderListOutcome; - typedef std::future DescribeFolderListOutcomeCallable; - typedef std::function&)> DescribeFolderListAsyncHandler; typedef Outcome DescribeGroupMonitoringAgentProcessOutcome; typedef std::future DescribeGroupMonitoringAgentProcessOutcomeCallable; typedef std::function&)> DescribeGroupMonitoringAgentProcessAsyncHandler; typedef Outcome DescribeHostAvailabilityListOutcome; typedef std::future DescribeHostAvailabilityListOutcomeCallable; typedef std::function&)> DescribeHostAvailabilityListAsyncHandler; + typedef Outcome DescribeLogMonitorAttributeOutcome; + typedef std::future DescribeLogMonitorAttributeOutcomeCallable; + typedef std::function&)> DescribeLogMonitorAttributeAsyncHandler; + typedef Outcome DescribeLogMonitorListOutcome; + typedef std::future DescribeLogMonitorListOutcomeCallable; + typedef std::function&)> DescribeLogMonitorListAsyncHandler; typedef Outcome DescribeMetricDataOutcome; typedef std::future DescribeMetricDataOutcomeCallable; typedef std::function&)> DescribeMetricDataAsyncHandler; @@ -488,6 +545,9 @@ namespace AlibabaCloud typedef Outcome DescribeMonitorGroupsOutcome; typedef std::future DescribeMonitorGroupsOutcomeCallable; typedef std::function&)> DescribeMonitorGroupsAsyncHandler; + typedef Outcome DescribeMonitorResourceQuotaAttributeOutcome; + typedef std::future DescribeMonitorResourceQuotaAttributeOutcomeCallable; + typedef std::function&)> DescribeMonitorResourceQuotaAttributeAsyncHandler; typedef Outcome DescribeMonitoringAgentAccessKeyOutcome; typedef std::future DescribeMonitoringAgentAccessKeyOutcomeCallable; typedef std::function&)> DescribeMonitoringAgentAccessKeyAsyncHandler; @@ -593,6 +653,9 @@ namespace AlibabaCloud typedef Outcome ModifyHostAvailabilityOutcome; typedef std::future ModifyHostAvailabilityOutcomeCallable; typedef std::function&)> ModifyHostAvailabilityAsyncHandler; + typedef Outcome ModifyHostInfoOutcome; + typedef std::future ModifyHostInfoOutcomeCallable; + typedef std::function&)> ModifyHostInfoAsyncHandler; typedef Outcome ModifyMetricRuleTemplateOutcome; typedef std::future ModifyMetricRuleTemplateOutcomeCallable; typedef std::function&)> ModifyMetricRuleTemplateAsyncHandler; @@ -605,6 +668,9 @@ namespace AlibabaCloud typedef Outcome ModifySiteMonitorOutcome; typedef std::future ModifySiteMonitorOutcomeCallable; typedef std::function&)> ModifySiteMonitorAsyncHandler; + typedef Outcome OpenCmsServiceOutcome; + typedef std::future OpenCmsServiceOutcomeCallable; + typedef std::function&)> OpenCmsServiceAsyncHandler; typedef Outcome PutContactOutcome; typedef std::future PutContactOutcomeCallable; typedef std::function&)> PutContactAsyncHandler; @@ -614,9 +680,15 @@ namespace AlibabaCloud typedef Outcome PutCustomEventOutcome; typedef std::future PutCustomEventOutcomeCallable; typedef std::function&)> PutCustomEventAsyncHandler; + typedef Outcome PutCustomEventRuleOutcome; + typedef std::future PutCustomEventRuleOutcomeCallable; + typedef std::function&)> PutCustomEventRuleAsyncHandler; typedef Outcome PutCustomMetricOutcome; typedef std::future PutCustomMetricOutcomeCallable; typedef std::function&)> PutCustomMetricAsyncHandler; + typedef Outcome PutCustomMetricRuleOutcome; + typedef std::future PutCustomMetricRuleOutcomeCallable; + typedef std::function&)> PutCustomMetricRuleAsyncHandler; typedef Outcome PutEventRuleOutcome; typedef std::future PutEventRuleOutcomeCallable; typedef std::function&)> PutEventRuleAsyncHandler; @@ -632,6 +704,9 @@ namespace AlibabaCloud typedef Outcome PutGroupMetricRuleOutcome; typedef std::future PutGroupMetricRuleOutcomeCallable; typedef std::function&)> PutGroupMetricRuleAsyncHandler; + typedef Outcome PutLogMonitorOutcome; + typedef std::future PutLogMonitorOutcomeCallable; + typedef std::function&)> PutLogMonitorAsyncHandler; typedef Outcome PutMetricRuleTargetsOutcome; typedef std::future PutMetricRuleTargetsOutcomeCallable; typedef std::function&)> 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& 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& context = nullptr) const; PutMetricRuleTargetsOutcomeCallable putMetricRuleTargetsCallable(const Model::PutMetricRuleTargetsRequest& request) const; diff --git a/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h index f524bd333..59e427667 100644 --- a/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h +++ b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h @@ -41,7 +41,6 @@ namespace AlibabaCloud std::string code; std::string ruleName; bool success; - long groupId; }; std::vector alertResults; long groupId; diff --git a/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderRequest.h b/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderRequest.h new file mode 100644 index 000000000..1f337da78 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderRequest.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_CREATECMSCALLNUMORDERREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATECMSCALLNUMORDERREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderResult.h b/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderResult.h new file mode 100644 index 000000000..915e6fef5 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateCmsCallNumOrderResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateCmsOrderRequest.h b/cms/include/alibabacloud/cms/model/CreateCmsOrderRequest.h new file mode 100644 index 000000000..97089aa44 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateCmsOrderRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateCmsOrderResult.h b/cms/include/alibabacloud/cms/model/CreateCmsOrderResult.h new file mode 100644 index 000000000..47649c09c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateCmsOrderResult.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_CREATECMSORDERRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATECMSORDERRESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderRequest.h b/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderRequest.h new file mode 100644 index 000000000..df4e63022 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderRequest.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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderResult.h b/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderResult.h new file mode 100644 index 000000000..565d2c76c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateCmsSmspackageOrderResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.h b/cms/include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.h index e916f60cf..383e653cb 100644 --- a/cms/include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateDynamicTagGroupRequest.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 getMatchExpress()const; void setMatchExpress(const std::vector& matchExpress); std::vector getContactGroupList()const; @@ -62,7 +60,6 @@ namespace AlibabaCloud bool enableSubscribeEvent_; std::string matchExpressFilterRelation_; bool enableInstallAgent_; - std::string regionId_; std::vector matchExpress_; std::vector contactGroupList_; std::vector templateIdList_; diff --git a/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h index c834cced2..087c3131d 100644 --- a/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h @@ -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 getAlertConfigEscalationList()const; void setAlertConfigEscalationList(const std::vector& 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_; 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_; diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdRequest.h new file mode 100644 index 000000000..7e3afa67f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdRequest.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_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_ + +#include +#include +#include +#include + +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 getContactGroupList()const; + void setContactGroupList(const std::vector& contactGroupList); + + private: + std::string resourceGroupName_; + bool enableSubscribeEvent_; + std::string resourceGroupId_; + bool enableInstallAgent_; + std::string regionId_; + std::vector contactGroupList_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPBYRESOURCEGROUPIDREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdResult.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdResult.h new file mode 100644 index 000000000..48b682436 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupByResourceGroupIdResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h index ea96a73bb..e4cb5202d 100644 --- a/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h @@ -45,12 +45,12 @@ namespace AlibabaCloud std::vector getInstances()const; void setInstances(const std::vector& instances); - long getGroupId()const; - void setGroupId(long groupId); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); private: std::vector instances_; - long groupId_; + std::string groupId_; }; } diff --git a/cms/include/alibabacloud/cms/model/CreateSiteMonitorResult.h b/cms/include/alibabacloud/cms/model/CreateSiteMonitorResult.h index daaa5db75..6368df45d 100644 --- a/cms/include/alibabacloud/cms/model/CreateSiteMonitorResult.h +++ b/cms/include/alibabacloud/cms/model/CreateSiteMonitorResult.h @@ -44,6 +44,11 @@ namespace AlibabaCloud }; std::vector 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 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 createResultList_; std::string code_; std::string success_; - std::string alertRule_; }; } diff --git a/cms/include/alibabacloud/cms/model/DescribeFolderListRequest.h b/cms/include/alibabacloud/cms/model/DeleteLogMonitorRequest.h similarity index 66% rename from cms/include/alibabacloud/cms/model/DescribeFolderListRequest.h rename to cms/include/alibabacloud/cms/model/DeleteLogMonitorRequest.h index aa0c65337..6e78f576a 100644 --- a/cms/include/alibabacloud/cms/model/DescribeFolderListRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteLogMonitorRequest.h @@ -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 #include @@ -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_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteLogMonitorResult.h b/cms/include/alibabacloud/cms/model/DeleteLogMonitorResult.h new file mode 100644 index 000000000..15e046477 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteLogMonitorResult.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_DELETELOGMONITORRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETELOGMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListResult.h b/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListResult.h index b5c013e3c..905800f78 100644 --- a/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListResult.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 getAlertList()const; std::vector 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 alertList_; std::vector datapoints_; std::string code_; bool success_; diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogCountRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogCountRequest.h new file mode 100644 index 000000000..18ff3dd4e --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogCountRequest.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_DESCRIBEALERTLOGCOUNTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogCountResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogCountResult.h new file mode 100644 index 000000000..16bd3ef13 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogCountResult.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 +#include +#include +#include +#include + +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 logs; + int count; + }; + + + DescribeAlertLogCountResult(); + explicit DescribeAlertLogCountResult(const std::string &payload); + ~DescribeAlertLogCountResult(); + std::string getMessage()const; + std::vector getAlertLogCount()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector alertLogCount_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGCOUNTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramRequest.h new file mode 100644 index 000000000..6f3743892 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramRequest.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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramResult.h new file mode 100644 index 000000000..db30066b1 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogHistogramResult.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 +#include +#include +#include +#include + +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 getAlertLogHistogramList()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector alertLogHistogramList_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGHISTOGRAMRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogListRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogListRequest.h new file mode 100644 index 000000000..ef35a180f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogListRequest.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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertLogListResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertLogListResult.h new file mode 100644 index 000000000..5359e6e1b --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlertLogListResult.h @@ -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 +#include +#include +#include +#include + +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 contactALIIWWList; + std::string message; + Escalation escalation; + std::string ruleId; + std::string sendStatus; + std::string product; + std::string metricName; + std::vector contactSMSList; + std::string ruleName; + std::vector contactGroups; + std::vector dingdingWebhookList; + std::string instanceId; + std::vector dimensions; + std::string levelChange; + std::vector contactOnCallList; + std::string _namespace; + std::vector contactDingList; + std::string eventName; + std::vector extendedInfo; + std::string alertTime; + std::string groupId; + std::string instanceName; + std::vector webhookList; + std::vector contactMailList; + std::string level; + }; + + + DescribeAlertLogListResult(); + explicit DescribeAlertLogListResult(const std::string &payload); + ~DescribeAlertLogListResult(); + std::vector 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 alertLogList_; + std::string message_; + int pageSize_; + int pageNumber_; + int total_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h index d4541813d..1324e11a3 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.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_; diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h index c9890e723..c6b5942ca 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h @@ -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 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; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeContactGroupListResult.h b/cms/include/alibabacloud/cms/model/DescribeContactGroupListResult.h index 8b201718e..b4c1eb928 100644 --- a/cms/include/alibabacloud/cms/model/DescribeContactGroupListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeContactGroupListResult.h @@ -32,11 +32,22 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT DescribeContactGroupListResult : public ServiceResult { public: + struct ContactGroup + { + std::string describe; + std::vector contacts; + long createTime; + long updateTime; + bool enabledWeeklyReport; + bool enableSubscribed; + std::string name; + }; DescribeContactGroupListResult(); explicit DescribeContactGroupListResult(const std::string &payload); ~DescribeContactGroupListResult(); + std::vector getContactGroupList()const; std::vector 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 contactGroupList_; std::vector contactGroups_; std::string message_; int total_; diff --git a/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h b/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h index 94790d54f..4439a8653 100644 --- a/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h @@ -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_; }; } diff --git a/cms/include/alibabacloud/cms/model/DescribeContactListResult.h b/cms/include/alibabacloud/cms/model/DescribeContactListResult.h index fc4d80ee8..396ee0fe4 100644 --- a/cms/include/alibabacloud/cms/model/DescribeContactListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeContactListResult.h @@ -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 contactGroups; long createTime; long updateTime; + std::string lang; Channels channels; std::string name; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h index 4b57c3b94..06a4aaf0e 100644 --- a/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h @@ -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_; diff --git a/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h index f051bb1eb..5d9f94466 100644 --- a/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h @@ -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_; diff --git a/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h index 4f7fdd94f..3bb828cbd 100644 --- a/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h @@ -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 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 processes_; std::string code_; bool success_; diff --git a/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListResult.h b/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListResult.h index fdd8746c0..62a61db47 100644 --- a/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { struct TaskOption { + std::string httpPostContent; std::string telnetOrPingHost; std::string httpResponseCharset; std::string httpKeyword; diff --git a/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeRequest.h new file mode 100644 index 000000000..875149f00 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeResult.h b/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeResult.h new file mode 100644 index 000000000..a74408399 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeLogMonitorAttributeResult.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 +#include +#include +#include +#include + +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 tumblingwindows; + std::string slsLogstore; + std::string metricExpress; + long groupId; + std::string metricName; + long gmtCreate; + std::vector aggregates; + std::vector groupbys; + std::vector 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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeLogMonitorListRequest.h b/cms/include/alibabacloud/cms/model/DescribeLogMonitorListRequest.h new file mode 100644 index 000000000..1f8a57f96 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeLogMonitorListRequest.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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeLogMonitorListResult.h b/cms/include/alibabacloud/cms/model/DescribeLogMonitorListResult.h new file mode 100644 index 000000000..20cc31ce4 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeLogMonitorListResult.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 +#include +#include +#include +#include + +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 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 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 logMonitorList_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBELOGMONITORLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h index fbbfb9283..fc718f33b 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.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_; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleListResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListResult.h index 057210ea6..656520b96 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListResult.h @@ -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; diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h index 612860a00..ddefcd0c0 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h @@ -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_; }; } diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesResult.h index 40faacea8..932b2ebaf 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesResult.h @@ -43,7 +43,6 @@ namespace AlibabaCloud std::vector 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 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 resource_; int code_; bool success_; diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h index 11a875dd0..1ef4f805b 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h @@ -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 getTag()const; @@ -72,6 +74,7 @@ namespace AlibabaCloud std::string dynamicTagRuleId_; std::string type_; int pageNumber_; + std::string resourceGroupId_; int pageSize_; std::vector tag_; std::string keyword_; diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeRequest.h new file mode 100644 index 000000000..0c8ba4a14 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeRequest.h @@ -0,0 +1,48 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORRESOURCEQUOTAATTRIBUTEREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeResult.h new file mode 100644 index 000000000..747a61815 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorResourceQuotaAttributeResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h index d6d1dae6a..8ee59afe7 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.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_; }; } diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsResult.h index e246142f1..95c3e5cef 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsResult.h @@ -56,6 +56,8 @@ namespace AlibabaCloud ~DescribeMonitoringAgentHostsResult(); std::vector 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 hosts_; std::string message_; + int pageSize_; + int pageNumber_; int pageTotal_; int total_; std::string code_; diff --git a/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleResult.h b/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleResult.h index 9efa6e317..34c257386 100644 --- a/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleResult.h @@ -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 alertInitConfigList; + std::string product; + }; DescribeProductsOfActiveMetricRuleResult(); explicit DescribeProductsOfActiveMetricRuleResult(const std::string &payload); ~DescribeProductsOfActiveMetricRuleResult(); std::string getMessage()const; + std::vector 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 allProductInitMetricRuleList_; std::string datapoints_; int code_; bool success_; diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h index 11b1a0007..482e19c44 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h @@ -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_; }; } diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h index ef78d1057..79a7a54e8 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h @@ -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 iPPool; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h index bc2f159a4..446a49165 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h @@ -36,6 +36,7 @@ namespace AlibabaCloud { std::string siteMonitorVersion; int siteMonitorQuotaTaskUsed; + bool secondMonitor; int siteMonitorOperatorQuotaQuota; int siteMonitorTaskQuota; int siteMonitorIdcQuota; diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h index 101f94290..4bf4e1f95 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h @@ -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; diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h index 93260a2e3..88493db7b 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h @@ -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_; diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListResult.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListResult.h index e634ce18c..da1b71bef 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListResult.h @@ -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; diff --git a/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h index fd3393ec5..1426d841c 100644 --- a/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h @@ -35,6 +35,7 @@ namespace AlibabaCloud { std::string times; std::string noEffectiveInterval; + std::string webhook; std::string silenceTime; std::string threshold; std::string effectiveInterval; diff --git a/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h index 9e797ffb9..313207f76 100644 --- a/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h @@ -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 getAlertConfigEscalationList()const; void setAlertConfigEscalationList(const std::vector& 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_; 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_; diff --git a/cms/include/alibabacloud/cms/model/ModifyHostInfoRequest.h b/cms/include/alibabacloud/cms/model/ModifyHostInfoRequest.h new file mode 100644 index 000000000..9e0426663 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyHostInfoRequest.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_MODIFYHOSTINFOREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFOREQUEST_H_ + +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyHostInfoResult.h b/cms/include/alibabacloud/cms/model/ModifyHostInfoResult.h new file mode 100644 index 000000000..5c74e1463 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyHostInfoResult.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_MODIFYHOSTINFORESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTINFORESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/OpenCmsServiceRequest.h b/cms/include/alibabacloud/cms/model/OpenCmsServiceRequest.h new file mode 100644 index 000000000..a7956d2c0 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/OpenCmsServiceRequest.h @@ -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 +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT OpenCmsServiceRequest : public RpcServiceRequest + { + + public: + OpenCmsServiceRequest(); + ~OpenCmsServiceRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/OpenCmsServiceResult.h b/cms/include/alibabacloud/cms/model/OpenCmsServiceResult.h new file mode 100644 index 000000000..edc9b14df --- /dev/null +++ b/cms/include/alibabacloud/cms/model/OpenCmsServiceResult.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_OPENCMSSERVICERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_OPENCMSSERVICERESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutContactGroupRequest.h b/cms/include/alibabacloud/cms/model/PutContactGroupRequest.h index 5dff66853..c36173456 100644 --- a/cms/include/alibabacloud/cms/model/PutContactGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/PutContactGroupRequest.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& contactNames); private: + bool enableSubscribed_; std::string contactGroupName_; std::string describe_; std::vector contactNames_; diff --git a/cms/include/alibabacloud/cms/model/PutContactRequest.h b/cms/include/alibabacloud/cms/model/PutContactRequest.h index 410e2a196..eeca79052 100644 --- a/cms/include/alibabacloud/cms/model/PutContactRequest.h +++ b/cms/include/alibabacloud/cms/model/PutContactRequest.h @@ -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_; }; diff --git a/cms/include/alibabacloud/cms/model/PutCustomEventRuleRequest.h b/cms/include/alibabacloud/cms/model/PutCustomEventRuleRequest.h new file mode 100644 index 000000000..6e74a28cf --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutCustomEventRuleRequest.h @@ -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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeFolderListResult.h b/cms/include/alibabacloud/cms/model/PutCustomEventRuleResult.h similarity index 60% rename from cms/include/alibabacloud/cms/model/DescribeFolderListResult.h rename to cms/include/alibabacloud/cms/model/PutCustomEventRuleResult.h index 8eab5d113..d5601bcd9 100644 --- a/cms/include/alibabacloud/cms/model/DescribeFolderListResult.h +++ b/cms/include/alibabacloud/cms/model/PutCustomEventRuleResult.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 #include @@ -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_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutCustomMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/PutCustomMetricRuleRequest.h new file mode 100644 index 000000000..0977ea04c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutCustomMetricRuleRequest.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 +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutCustomMetricRuleResult.h b/cms/include/alibabacloud/cms/model/PutCustomMetricRuleResult.h new file mode 100644 index 000000000..be88f80fc --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutCustomMetricRuleResult.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 +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h index 13c350d5b..1c4859930 100644 --- a/cms/include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/PutGroupMetricRuleRequest.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_; diff --git a/cms/include/alibabacloud/cms/model/PutLogMonitorRequest.h b/cms/include/alibabacloud/cms/model/PutLogMonitorRequest.h new file mode 100644 index 000000000..2cf4a84d3 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutLogMonitorRequest.h @@ -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 +#include +#include +#include + +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 getValueFilter()const; + void setValueFilter(const std::vector& 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 getGroupbys()const; + void setGroupbys(const std::vector& groupbys); + std::string getLogId()const; + void setLogId(const std::string& logId); + std::vector getAggregates()const; + void setAggregates(const std::vector& aggregates); + + private: + std::string slsLogstore_; + std::string slsProject_; + std::vector 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_; + std::string logId_; + std::vector aggregates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutLogMonitorResult.h b/cms/include/alibabacloud/cms/model/PutLogMonitorResult.h new file mode 100644 index 000000000..0095917a6 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutLogMonitorResult.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_PUTLOGMONITORRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +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_ \ No newline at end of file diff --git a/cms/src/CmsClient.cc b/cms/src/CmsClient.cc index 9b285b9ce..ff0a986ab 100644 --- a/cms/src/CmsClient.cc +++ b/cms/src/CmsClient.cc @@ -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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( - [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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& 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>( + [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(); diff --git a/cms/src/model/ApplyMetricRuleTemplateResult.cc b/cms/src/model/ApplyMetricRuleTemplateResult.cc index 13097685b..b6b49ab7a 100644 --- a/cms/src/model/ApplyMetricRuleTemplateResult.cc +++ b/cms/src/model/ApplyMetricRuleTemplateResult.cc @@ -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()) diff --git a/cms/src/model/CreateCmsCallNumOrderRequest.cc b/cms/src/model/CreateCmsCallNumOrderRequest.cc new file mode 100644 index 000000000..587ae8d8b --- /dev/null +++ b/cms/src/model/CreateCmsCallNumOrderRequest.cc @@ -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 + +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); +} + diff --git a/cms/src/model/CreateCmsCallNumOrderResult.cc b/cms/src/model/CreateCmsCallNumOrderResult.cc new file mode 100644 index 000000000..8d82d268a --- /dev/null +++ b/cms/src/model/CreateCmsCallNumOrderResult.cc @@ -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 +#include + +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_; +} + diff --git a/cms/src/model/CreateCmsOrderRequest.cc b/cms/src/model/CreateCmsOrderRequest.cc new file mode 100644 index 000000000..8bceffd05 --- /dev/null +++ b/cms/src/model/CreateCmsOrderRequest.cc @@ -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 + +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); +} + diff --git a/cms/src/model/CreateCmsOrderResult.cc b/cms/src/model/CreateCmsOrderResult.cc new file mode 100644 index 000000000..74fd57dc9 --- /dev/null +++ b/cms/src/model/CreateCmsOrderResult.cc @@ -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 +#include + +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_; +} + diff --git a/cms/src/model/CreateCmsSmspackageOrderRequest.cc b/cms/src/model/CreateCmsSmspackageOrderRequest.cc new file mode 100644 index 000000000..66f979fd7 --- /dev/null +++ b/cms/src/model/CreateCmsSmspackageOrderRequest.cc @@ -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 + +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); +} + diff --git a/cms/src/model/CreateCmsSmspackageOrderResult.cc b/cms/src/model/CreateCmsSmspackageOrderResult.cc new file mode 100644 index 000000000..f473d00c8 --- /dev/null +++ b/cms/src/model/CreateCmsSmspackageOrderResult.cc @@ -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 +#include + +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_; +} + diff --git a/cms/src/model/CreateDynamicTagGroupRequest.cc b/cms/src/model/CreateDynamicTagGroupRequest.cc index 985f07f58..45742ea4c 100644 --- a/cms/src/model/CreateDynamicTagGroupRequest.cc +++ b/cms/src/model/CreateDynamicTagGroupRequest.cc @@ -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::getMatchExpress()const { return matchExpress_; diff --git a/cms/src/model/CreateHostAvailabilityRequest.cc b/cms/src/model/CreateHostAvailabilityRequest.cc index 17e3721d3..f59431a5f 100644 --- a/cms/src/model/CreateHostAvailabilityRequest.cc +++ b/cms/src/model/CreateHostAvailabilityRequest.cc @@ -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::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_; diff --git a/cms/src/model/CreateMonitorGroupByResourceGroupIdRequest.cc b/cms/src/model/CreateMonitorGroupByResourceGroupIdRequest.cc new file mode 100644 index 000000000..52e9ed757 --- /dev/null +++ b/cms/src/model/CreateMonitorGroupByResourceGroupIdRequest.cc @@ -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 + +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 CreateMonitorGroupByResourceGroupIdRequest::getContactGroupList()const +{ + return contactGroupList_; +} + +void CreateMonitorGroupByResourceGroupIdRequest::setContactGroupList(const std::vector& contactGroupList) +{ + contactGroupList_ = contactGroupList; + for(int dep1 = 0; dep1!= contactGroupList.size(); dep1++) { + setParameter("ContactGroupList."+ std::to_string(dep1), contactGroupList.at(dep1)); + } +} + diff --git a/cms/src/model/CreateMonitorGroupByResourceGroupIdResult.cc b/cms/src/model/CreateMonitorGroupByResourceGroupIdResult.cc new file mode 100644 index 000000000..1e22a2302 --- /dev/null +++ b/cms/src/model/CreateMonitorGroupByResourceGroupIdResult.cc @@ -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 +#include + +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_; +} + diff --git a/cms/src/model/CreateMonitorGroupInstancesRequest.cc b/cms/src/model/CreateMonitorGroupInstancesRequest.cc index fb9b815bf..3e8fccab4 100644 --- a/cms/src/model/CreateMonitorGroupInstancesRequest.cc +++ b/cms/src/model/CreateMonitorGroupInstancesRequest.cc @@ -45,14 +45,14 @@ void CreateMonitorGroupInstancesRequest::setInstances(const std::vector 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_; -} - diff --git a/cms/src/model/DescribeFolderListRequest.cc b/cms/src/model/DeleteLogMonitorRequest.cc similarity index 54% rename from cms/src/model/DescribeFolderListRequest.cc rename to cms/src/model/DeleteLogMonitorRequest.cc index 43b22e4cd..a6448d514 100644 --- a/cms/src/model/DescribeFolderListRequest.cc +++ b/cms/src/model/DeleteLogMonitorRequest.cc @@ -14,27 +14,27 @@ * limitations under the License. */ -#include +#include -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)); } diff --git a/cms/src/model/DeleteLogMonitorResult.cc b/cms/src/model/DeleteLogMonitorResult.cc new file mode 100644 index 000000000..10612c557 --- /dev/null +++ b/cms/src/model/DeleteLogMonitorResult.cc @@ -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 +#include + +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_; +} + diff --git a/cms/src/model/DescribeActiveMetricRuleListRequest.cc b/cms/src/model/DescribeActiveMetricRuleListRequest.cc index 41b48171a..fbed220af 100644 --- a/cms/src/model/DescribeActiveMetricRuleListRequest.cc +++ b/cms/src/model/DescribeActiveMetricRuleListRequest.cc @@ -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() diff --git a/cms/src/model/DescribeActiveMetricRuleListResult.cc b/cms/src/model/DescribeActiveMetricRuleListResult.cc index 11ccb8f9f..19de65a43 100644 --- a/cms/src/model/DescribeActiveMetricRuleListResult.cc +++ b/cms/src/model/DescribeActiveMetricRuleListResult.cc @@ -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::getAlertList()const +{ + return alertList_; +} + std::vector DescribeActiveMetricRuleListResult::getDatapoints()const { return datapoints_; diff --git a/cms/src/model/DescribeAlertLogCountRequest.cc b/cms/src/model/DescribeAlertLogCountRequest.cc new file mode 100644 index 000000000..dae797ea2 --- /dev/null +++ b/cms/src/model/DescribeAlertLogCountRequest.cc @@ -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 + +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); +} + diff --git a/cms/src/model/DescribeAlertLogCountResult.cc b/cms/src/model/DescribeAlertLogCountResult.cc new file mode 100644 index 000000000..fe665fcbd --- /dev/null +++ b/cms/src/model/DescribeAlertLogCountResult.cc @@ -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 +#include + +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::getAlertLogCount()const +{ + return alertLogCount_; +} + +std::string DescribeAlertLogCountResult::getCode()const +{ + return code_; +} + +bool DescribeAlertLogCountResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeAlertLogHistogramRequest.cc b/cms/src/model/DescribeAlertLogHistogramRequest.cc new file mode 100644 index 000000000..8ffc41e05 --- /dev/null +++ b/cms/src/model/DescribeAlertLogHistogramRequest.cc @@ -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 + +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); +} + diff --git a/cms/src/model/DescribeAlertLogHistogramResult.cc b/cms/src/model/DescribeAlertLogHistogramResult.cc new file mode 100644 index 000000000..c96954654 --- /dev/null +++ b/cms/src/model/DescribeAlertLogHistogramResult.cc @@ -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 +#include + +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::getAlertLogHistogramList()const +{ + return alertLogHistogramList_; +} + +std::string DescribeAlertLogHistogramResult::getCode()const +{ + return code_; +} + +bool DescribeAlertLogHistogramResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeAlertLogListRequest.cc b/cms/src/model/DescribeAlertLogListRequest.cc new file mode 100644 index 000000000..121f3eea7 --- /dev/null +++ b/cms/src/model/DescribeAlertLogListRequest.cc @@ -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 + +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); +} + diff --git a/cms/src/model/DescribeAlertLogListResult.cc b/cms/src/model/DescribeAlertLogListResult.cc new file mode 100644 index 000000000..f1729312d --- /dev/null +++ b/cms/src/model/DescribeAlertLogListResult.cc @@ -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 +#include + +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::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_; +} + diff --git a/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.cc b/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.cc index 8ed57b087..ce13cbb68 100644 --- a/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.cc +++ b/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.cc @@ -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_; diff --git a/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc b/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc index 8ff67e22c..005dc2f8d 100644 --- a/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc +++ b/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc @@ -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()) diff --git a/cms/src/model/DescribeContactGroupListResult.cc b/cms/src/model/DescribeContactGroupListResult.cc index 4f6f2ab42..e4ef536c2 100644 --- a/cms/src/model/DescribeContactGroupListResult.cc +++ b/cms/src/model/DescribeContactGroupListResult.cc @@ -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::getContactGroupList()const +{ + return contactGroupList_; +} + std::vector DescribeContactGroupListResult::getContactGroups()const { return contactGroups_; diff --git a/cms/src/model/DescribeContactListRequest.cc b/cms/src/model/DescribeContactListRequest.cc index 90842ca3e..5666f9f7c 100644 --- a/cms/src/model/DescribeContactListRequest.cc +++ b/cms/src/model/DescribeContactListRequest.cc @@ -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); +} + diff --git a/cms/src/model/DescribeContactListResult.cc b/cms/src/model/DescribeContactListResult.cc index 240d89f2e..66750b742 100644 --- a/cms/src/model/DescribeContactListResult.cc +++ b/cms/src/model/DescribeContactListResult.cc @@ -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()) diff --git a/cms/src/model/DescribeCustomEventAttributeRequest.cc b/cms/src/model/DescribeCustomEventAttributeRequest.cc index f7c2e5ec8..818b82534 100644 --- a/cms/src/model/DescribeCustomEventAttributeRequest.cc +++ b/cms/src/model/DescribeCustomEventAttributeRequest.cc @@ -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_; diff --git a/cms/src/model/DescribeCustomEventCountRequest.cc b/cms/src/model/DescribeCustomEventCountRequest.cc index f6d0ee38b..ee5b63183 100644 --- a/cms/src/model/DescribeCustomEventCountRequest.cc +++ b/cms/src/model/DescribeCustomEventCountRequest.cc @@ -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_; diff --git a/cms/src/model/DescribeDynamicTagRuleListResult.cc b/cms/src/model/DescribeDynamicTagRuleListResult.cc index 735e90b97..9ad133bb7 100644 --- a/cms/src/model/DescribeDynamicTagRuleListResult.cc +++ b/cms/src/model/DescribeDynamicTagRuleListResult.cc @@ -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"]; diff --git a/cms/src/model/DescribeEventRuleListResult.cc b/cms/src/model/DescribeEventRuleListResult.cc index 1b66cc8c4..87d799fcb 100644 --- a/cms/src/model/DescribeEventRuleListResult.cc +++ b/cms/src/model/DescribeEventRuleListResult.cc @@ -53,12 +53,12 @@ void DescribeEventRuleListResult::parse(const std::string &payload) eventRulesObject.state = valueEventRulesEventRule["State"].asString(); if(!valueEventRulesEventRule["Description"].isNull()) eventRulesObject.description = valueEventRulesEventRule["Description"].asString(); - auto allEventPatternNode = allEventRulesNode["EventPattern"]["EventPatternItem"]; - for (auto allEventRulesNodeEventPatternEventPatternItem : allEventPatternNode) + auto allEventPatternNode = valueEventRulesEventRule["EventPattern"]["EventPatternItem"]; + for (auto valueEventRulesEventRuleEventPatternEventPatternItem : allEventPatternNode) { EventRule::EventPatternItem eventPatternObject; - if(!allEventRulesNodeEventPatternEventPatternItem["Product"].isNull()) - eventPatternObject.product = allEventRulesNodeEventPatternEventPatternItem["Product"].asString(); + if(!valueEventRulesEventRuleEventPatternEventPatternItem["Product"].isNull()) + eventPatternObject.product = valueEventRulesEventRuleEventPatternEventPatternItem["Product"].asString(); auto allNameList = value["NameList"]["NameList"]; for (auto value : allNameList) eventPatternObject.nameList.push_back(value.asString()); diff --git a/cms/src/model/DescribeFolderListResult.cc b/cms/src/model/DescribeFolderListResult.cc deleted file mode 100644 index 1891f86aa..000000000 --- a/cms/src/model/DescribeFolderListResult.cc +++ /dev/null @@ -1,96 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cms; -using namespace AlibabaCloud::Cms::Model; - -DescribeFolderListResult::DescribeFolderListResult() : - ServiceResult() -{} - -DescribeFolderListResult::DescribeFolderListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeFolderListResult::~DescribeFolderListResult() -{} - -void DescribeFolderListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto resourceNode = value["Resource"]; - if(!resourceNode["Name"].isNull()) - resource_.name = resourceNode["Name"].asString(); - if(!resourceNode["ServiceId"].isNull()) - resource_.serviceId = std::stol(resourceNode["ServiceId"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Code"].isNull()) - code_ = std::stoi(value["Code"].asString()); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); - -} - -std::string DescribeFolderListResult::getMessage()const -{ - return message_; -} - -int DescribeFolderListResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeFolderListResult::getPageNumber()const -{ - return pageNumber_; -} - -int DescribeFolderListResult::getTotal()const -{ - return total_; -} - -DescribeFolderListResult::Resource DescribeFolderListResult::getResource()const -{ - return resource_; -} - -int DescribeFolderListResult::getCode()const -{ - return code_; -} - -bool DescribeFolderListResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc b/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc index 8a87856d5..f5b9016d6 100644 --- a/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc +++ b/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc @@ -51,40 +51,40 @@ void DescribeGroupMonitoringAgentProcessResult::parse(const std::string &payload processesObject.processName = valueProcessesProcess["ProcessName"].asString(); if(!valueProcessesProcess["MatchExpressFilterRelation"].isNull()) processesObject.matchExpressFilterRelation = valueProcessesProcess["MatchExpressFilterRelation"].asString(); - auto allMatchExpressNode = allProcessesNode["MatchExpress"]["MatchExpressItem"]; - for (auto allProcessesNodeMatchExpressMatchExpressItem : allMatchExpressNode) + auto allMatchExpressNode = valueProcessesProcess["MatchExpress"]["MatchExpressItem"]; + for (auto valueProcessesProcessMatchExpressMatchExpressItem : allMatchExpressNode) { Process::MatchExpressItem matchExpressObject; - if(!allProcessesNodeMatchExpressMatchExpressItem["Name"].isNull()) - matchExpressObject.name = allProcessesNodeMatchExpressMatchExpressItem["Name"].asString(); - if(!allProcessesNodeMatchExpressMatchExpressItem["Function"].isNull()) - matchExpressObject.function = allProcessesNodeMatchExpressMatchExpressItem["Function"].asString(); - if(!allProcessesNodeMatchExpressMatchExpressItem["Value"].isNull()) - matchExpressObject.value = allProcessesNodeMatchExpressMatchExpressItem["Value"].asString(); + if(!valueProcessesProcessMatchExpressMatchExpressItem["Name"].isNull()) + matchExpressObject.name = valueProcessesProcessMatchExpressMatchExpressItem["Name"].asString(); + if(!valueProcessesProcessMatchExpressMatchExpressItem["Function"].isNull()) + matchExpressObject.function = valueProcessesProcessMatchExpressMatchExpressItem["Function"].asString(); + if(!valueProcessesProcessMatchExpressMatchExpressItem["Value"].isNull()) + matchExpressObject.value = valueProcessesProcessMatchExpressMatchExpressItem["Value"].asString(); processesObject.matchExpress.push_back(matchExpressObject); } - auto allAlertConfigNode = allProcessesNode["AlertConfig"]["AlertConfigItem"]; - for (auto allProcessesNodeAlertConfigAlertConfigItem : allAlertConfigNode) + auto allAlertConfigNode = valueProcessesProcess["AlertConfig"]["AlertConfigItem"]; + for (auto valueProcessesProcessAlertConfigAlertConfigItem : allAlertConfigNode) { Process::AlertConfigItem alertConfigObject; - if(!allProcessesNodeAlertConfigAlertConfigItem["EffectiveInterval"].isNull()) - alertConfigObject.effectiveInterval = allProcessesNodeAlertConfigAlertConfigItem["EffectiveInterval"].asString(); - if(!allProcessesNodeAlertConfigAlertConfigItem["NoEffectiveInterval"].isNull()) - alertConfigObject.noEffectiveInterval = allProcessesNodeAlertConfigAlertConfigItem["NoEffectiveInterval"].asString(); - if(!allProcessesNodeAlertConfigAlertConfigItem["SilenceTime"].isNull()) - alertConfigObject.silenceTime = allProcessesNodeAlertConfigAlertConfigItem["SilenceTime"].asString(); - if(!allProcessesNodeAlertConfigAlertConfigItem["Webhook"].isNull()) - alertConfigObject.webhook = allProcessesNodeAlertConfigAlertConfigItem["Webhook"].asString(); - if(!allProcessesNodeAlertConfigAlertConfigItem["EscalationsLevel"].isNull()) - alertConfigObject.escalationsLevel = allProcessesNodeAlertConfigAlertConfigItem["EscalationsLevel"].asString(); - if(!allProcessesNodeAlertConfigAlertConfigItem["ComparisonOperator"].isNull()) - alertConfigObject.comparisonOperator = allProcessesNodeAlertConfigAlertConfigItem["ComparisonOperator"].asString(); - if(!allProcessesNodeAlertConfigAlertConfigItem["Statistics"].isNull()) - alertConfigObject.statistics = allProcessesNodeAlertConfigAlertConfigItem["Statistics"].asString(); - if(!allProcessesNodeAlertConfigAlertConfigItem["Threshold"].isNull()) - alertConfigObject.threshold = allProcessesNodeAlertConfigAlertConfigItem["Threshold"].asString(); - if(!allProcessesNodeAlertConfigAlertConfigItem["Times"].isNull()) - alertConfigObject.times = allProcessesNodeAlertConfigAlertConfigItem["Times"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["EffectiveInterval"].isNull()) + alertConfigObject.effectiveInterval = valueProcessesProcessAlertConfigAlertConfigItem["EffectiveInterval"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["NoEffectiveInterval"].isNull()) + alertConfigObject.noEffectiveInterval = valueProcessesProcessAlertConfigAlertConfigItem["NoEffectiveInterval"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["SilenceTime"].isNull()) + alertConfigObject.silenceTime = valueProcessesProcessAlertConfigAlertConfigItem["SilenceTime"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["Webhook"].isNull()) + alertConfigObject.webhook = valueProcessesProcessAlertConfigAlertConfigItem["Webhook"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["EscalationsLevel"].isNull()) + alertConfigObject.escalationsLevel = valueProcessesProcessAlertConfigAlertConfigItem["EscalationsLevel"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["ComparisonOperator"].isNull()) + alertConfigObject.comparisonOperator = valueProcessesProcessAlertConfigAlertConfigItem["ComparisonOperator"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["Statistics"].isNull()) + alertConfigObject.statistics = valueProcessesProcessAlertConfigAlertConfigItem["Statistics"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["Threshold"].isNull()) + alertConfigObject.threshold = valueProcessesProcessAlertConfigAlertConfigItem["Threshold"].asString(); + if(!valueProcessesProcessAlertConfigAlertConfigItem["Times"].isNull()) + alertConfigObject.times = valueProcessesProcessAlertConfigAlertConfigItem["Times"].asString(); processesObject.alertConfig.push_back(alertConfigObject); } processes_.push_back(processesObject); @@ -95,6 +95,12 @@ void DescribeGroupMonitoringAgentProcessResult::parse(const std::string &payload message_ = value["Message"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["Total"].isNull()) + total_ = value["Total"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); } @@ -103,6 +109,21 @@ std::string DescribeGroupMonitoringAgentProcessResult::getMessage()const return message_; } +std::string DescribeGroupMonitoringAgentProcessResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeGroupMonitoringAgentProcessResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeGroupMonitoringAgentProcessResult::getTotal()const +{ + return total_; +} + std::vector DescribeGroupMonitoringAgentProcessResult::getProcesses()const { return processes_; diff --git a/cms/src/model/DescribeHostAvailabilityListResult.cc b/cms/src/model/DescribeHostAvailabilityListResult.cc index 9dba9b316..fdd6d28a4 100644 --- a/cms/src/model/DescribeHostAvailabilityListResult.cc +++ b/cms/src/model/DescribeHostAvailabilityListResult.cc @@ -64,6 +64,8 @@ void DescribeHostAvailabilityListResult::parse(const std::string &payload) taskListObject.taskOption.telnetOrPingHost = taskOptionNode["TelnetOrPingHost"].asString(); if(!taskOptionNode["HttpResponseCharset"].isNull()) taskListObject.taskOption.httpResponseCharset = taskOptionNode["HttpResponseCharset"].asString(); + if(!taskOptionNode["HttpPostContent"].isNull()) + taskListObject.taskOption.httpPostContent = taskOptionNode["HttpPostContent"].asString(); if(!taskOptionNode["HttpKeyword"].isNull()) taskListObject.taskOption.httpKeyword = taskOptionNode["HttpKeyword"].asString(); if(!taskOptionNode["HttpMethod"].isNull()) diff --git a/cms/src/model/DescribeLogMonitorAttributeRequest.cc b/cms/src/model/DescribeLogMonitorAttributeRequest.cc new file mode 100644 index 000000000..7ae174645 --- /dev/null +++ b/cms/src/model/DescribeLogMonitorAttributeRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeLogMonitorAttributeRequest; + +DescribeLogMonitorAttributeRequest::DescribeLogMonitorAttributeRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeLogMonitorAttribute") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeLogMonitorAttributeRequest::~DescribeLogMonitorAttributeRequest() +{} + +std::string DescribeLogMonitorAttributeRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeLogMonitorAttributeRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setParameter("MetricName", metricName); +} + diff --git a/cms/src/model/DescribeLogMonitorAttributeResult.cc b/cms/src/model/DescribeLogMonitorAttributeResult.cc new file mode 100644 index 000000000..47c6b0800 --- /dev/null +++ b/cms/src/model/DescribeLogMonitorAttributeResult.cc @@ -0,0 +1,123 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeLogMonitorAttributeResult::DescribeLogMonitorAttributeResult() : + ServiceResult() +{} + +DescribeLogMonitorAttributeResult::DescribeLogMonitorAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLogMonitorAttributeResult::~DescribeLogMonitorAttributeResult() +{} + +void DescribeLogMonitorAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto logMonitorNode = value["LogMonitor"]; + if(!logMonitorNode["LogId"].isNull()) + logMonitor_.logId = std::stol(logMonitorNode["LogId"].asString()); + if(!logMonitorNode["SlsRegionId"].isNull()) + logMonitor_.slsRegionId = logMonitorNode["SlsRegionId"].asString(); + if(!logMonitorNode["SlsProject"].isNull()) + logMonitor_.slsProject = logMonitorNode["SlsProject"].asString(); + if(!logMonitorNode["SlsLogstore"].isNull()) + logMonitor_.slsLogstore = logMonitorNode["SlsLogstore"].asString(); + if(!logMonitorNode["MetricName"].isNull()) + logMonitor_.metricName = logMonitorNode["MetricName"].asString(); + if(!logMonitorNode["MetricExpress"].isNull()) + logMonitor_.metricExpress = logMonitorNode["MetricExpress"].asString(); + if(!logMonitorNode["GmtCreate"].isNull()) + logMonitor_.gmtCreate = std::stol(logMonitorNode["GmtCreate"].asString()); + if(!logMonitorNode["ValueFilterRelation"].isNull()) + logMonitor_.valueFilterRelation = logMonitorNode["ValueFilterRelation"].asString(); + if(!logMonitorNode["GroupId"].isNull()) + logMonitor_.groupId = std::stol(logMonitorNode["GroupId"].asString()); + auto allAggregatesNode = logMonitorNode["Aggregates"]["Aggregate"]; + for (auto logMonitorNodeAggregatesAggregate : allAggregatesNode) + { + LogMonitor::Aggregate aggregateObject; + if(!logMonitorNodeAggregatesAggregate["Alias"].isNull()) + aggregateObject.alias = logMonitorNodeAggregatesAggregate["Alias"].asString(); + if(!logMonitorNodeAggregatesAggregate["FieldName"].isNull()) + aggregateObject.fieldName = logMonitorNodeAggregatesAggregate["FieldName"].asString(); + if(!logMonitorNodeAggregatesAggregate["Function"].isNull()) + aggregateObject.function = logMonitorNodeAggregatesAggregate["Function"].asString(); + if(!logMonitorNodeAggregatesAggregate["Min"].isNull()) + aggregateObject.min = logMonitorNodeAggregatesAggregate["Min"].asString(); + if(!logMonitorNodeAggregatesAggregate["Max"].isNull()) + aggregateObject.max = logMonitorNodeAggregatesAggregate["Max"].asString(); + logMonitor_.aggregates.push_back(aggregateObject); + } + auto allValueFilterNode = logMonitorNode["ValueFilter"]["ValueFilterObject"]; + for (auto logMonitorNodeValueFilterValueFilterObject : allValueFilterNode) + { + LogMonitor::ValueFilterObject valueFilterObjectObject; + if(!logMonitorNodeValueFilterValueFilterObject["Key"].isNull()) + valueFilterObjectObject.key = logMonitorNodeValueFilterValueFilterObject["Key"].asString(); + if(!logMonitorNodeValueFilterValueFilterObject["Operator"].isNull()) + valueFilterObjectObject._operator = logMonitorNodeValueFilterValueFilterObject["Operator"].asString(); + if(!logMonitorNodeValueFilterValueFilterObject["Value"].isNull()) + valueFilterObjectObject.value = logMonitorNodeValueFilterValueFilterObject["Value"].asString(); + logMonitor_.valueFilter.push_back(valueFilterObjectObject); + } + auto allTumblingwindows = logMonitorNode["Tumblingwindows"]["Tumblingwindow"]; + for (auto value : allTumblingwindows) + logMonitor_.tumblingwindows.push_back(value.asString()); + auto allGroupbys = logMonitorNode["Groupbys"]["Groupby"]; + for (auto value : allGroupbys) + logMonitor_.groupbys.push_back(value.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 DescribeLogMonitorAttributeResult::getMessage()const +{ + return message_; +} + +DescribeLogMonitorAttributeResult::LogMonitor DescribeLogMonitorAttributeResult::getLogMonitor()const +{ + return logMonitor_; +} + +std::string DescribeLogMonitorAttributeResult::getCode()const +{ + return code_; +} + +bool DescribeLogMonitorAttributeResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeLogMonitorListRequest.cc b/cms/src/model/DescribeLogMonitorListRequest.cc new file mode 100644 index 000000000..b4164306e --- /dev/null +++ b/cms/src/model/DescribeLogMonitorListRequest.cc @@ -0,0 +1,73 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeLogMonitorListRequest; + +DescribeLogMonitorListRequest::DescribeLogMonitorListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeLogMonitorList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeLogMonitorListRequest::~DescribeLogMonitorListRequest() +{} + +long DescribeLogMonitorListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeLogMonitorListRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setParameter("GroupId", std::to_string(groupId)); +} + +int DescribeLogMonitorListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeLogMonitorListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeLogMonitorListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeLogMonitorListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeLogMonitorListRequest::getSearchValue()const +{ + return searchValue_; +} + +void DescribeLogMonitorListRequest::setSearchValue(const std::string& searchValue) +{ + searchValue_ = searchValue; + setParameter("SearchValue", searchValue); +} + diff --git a/cms/src/model/DescribeLogMonitorListResult.cc b/cms/src/model/DescribeLogMonitorListResult.cc new file mode 100644 index 000000000..7fa532243 --- /dev/null +++ b/cms/src/model/DescribeLogMonitorListResult.cc @@ -0,0 +1,125 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeLogMonitorListResult::DescribeLogMonitorListResult() : + ServiceResult() +{} + +DescribeLogMonitorListResult::DescribeLogMonitorListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeLogMonitorListResult::~DescribeLogMonitorListResult() +{} + +void DescribeLogMonitorListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allLogMonitorListNode = value["LogMonitorList"]["LogMonitor"]; + for (auto valueLogMonitorListLogMonitor : allLogMonitorListNode) + { + LogMonitor logMonitorListObject; + if(!valueLogMonitorListLogMonitor["LogId"].isNull()) + logMonitorListObject.logId = std::stol(valueLogMonitorListLogMonitor["LogId"].asString()); + if(!valueLogMonitorListLogMonitor["SlsRegionId"].isNull()) + logMonitorListObject.slsRegionId = valueLogMonitorListLogMonitor["SlsRegionId"].asString(); + if(!valueLogMonitorListLogMonitor["SlsProject"].isNull()) + logMonitorListObject.slsProject = valueLogMonitorListLogMonitor["SlsProject"].asString(); + if(!valueLogMonitorListLogMonitor["SlsLogstore"].isNull()) + logMonitorListObject.slsLogstore = valueLogMonitorListLogMonitor["SlsLogstore"].asString(); + if(!valueLogMonitorListLogMonitor["MetricName"].isNull()) + logMonitorListObject.metricName = valueLogMonitorListLogMonitor["MetricName"].asString(); + if(!valueLogMonitorListLogMonitor["GmtCreate"].isNull()) + logMonitorListObject.gmtCreate = std::stol(valueLogMonitorListLogMonitor["GmtCreate"].asString()); + if(!valueLogMonitorListLogMonitor["ValueFilterRelation"].isNull()) + logMonitorListObject.valueFilterRelation = valueLogMonitorListLogMonitor["ValueFilterRelation"].asString(); + if(!valueLogMonitorListLogMonitor["GroupId"].isNull()) + logMonitorListObject.groupId = std::stol(valueLogMonitorListLogMonitor["GroupId"].asString()); + auto allValueFilterNode = valueLogMonitorListLogMonitor["ValueFilter"]["ValueFilterObject"]; + for (auto valueLogMonitorListLogMonitorValueFilterValueFilterObject : allValueFilterNode) + { + LogMonitor::ValueFilterObject valueFilterObject; + if(!valueLogMonitorListLogMonitorValueFilterValueFilterObject["Key"].isNull()) + valueFilterObject.key = valueLogMonitorListLogMonitorValueFilterValueFilterObject["Key"].asString(); + if(!valueLogMonitorListLogMonitorValueFilterValueFilterObject["Operator"].isNull()) + valueFilterObject._operator = valueLogMonitorListLogMonitorValueFilterValueFilterObject["Operator"].asString(); + if(!valueLogMonitorListLogMonitorValueFilterValueFilterObject["Value"].isNull()) + valueFilterObject.value = valueLogMonitorListLogMonitorValueFilterValueFilterObject["Value"].asString(); + logMonitorListObject.valueFilter.push_back(valueFilterObject); + } + logMonitorList_.push_back(logMonitorListObject); + } + 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::stol(value["Total"].asString()); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + +} + +std::string DescribeLogMonitorListResult::getMessage()const +{ + return message_; +} + +int DescribeLogMonitorListResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeLogMonitorListResult::getPageNumber()const +{ + return pageNumber_; +} + +long DescribeLogMonitorListResult::getTotal()const +{ + return total_; +} + +std::vector DescribeLogMonitorListResult::getLogMonitorList()const +{ + return logMonitorList_; +} + +std::string DescribeLogMonitorListResult::getCode()const +{ + return code_; +} + +bool DescribeLogMonitorListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeMetricRuleListRequest.cc b/cms/src/model/DescribeMetricRuleListRequest.cc index df6b8bbeb..cc1c7e2e2 100644 --- a/cms/src/model/DescribeMetricRuleListRequest.cc +++ b/cms/src/model/DescribeMetricRuleListRequest.cc @@ -49,15 +49,15 @@ void DescribeMetricRuleListRequest::setRuleName(const std::string& ruleName) setParameter("RuleName", ruleName); } -std::string DescribeMetricRuleListRequest::getPageSize()const +int DescribeMetricRuleListRequest::getPageSize()const { return pageSize_; } -void DescribeMetricRuleListRequest::setPageSize(const std::string& pageSize) +void DescribeMetricRuleListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; - setParameter("PageSize", pageSize); + setParameter("PageSize", std::to_string(pageSize)); } std::string DescribeMetricRuleListRequest::getMetricName()const @@ -115,15 +115,15 @@ void DescribeMetricRuleListRequest::setAlertState(const std::string& alertState) setParameter("AlertState", alertState); } -std::string DescribeMetricRuleListRequest::getPage()const +int DescribeMetricRuleListRequest::getPage()const { return page_; } -void DescribeMetricRuleListRequest::setPage(const std::string& page) +void DescribeMetricRuleListRequest::setPage(int page) { page_ = page; - setParameter("Page", page); + setParameter("Page", std::to_string(page)); } std::string DescribeMetricRuleListRequest::getDimensions()const diff --git a/cms/src/model/DescribeMetricRuleListResult.cc b/cms/src/model/DescribeMetricRuleListResult.cc index 096dad7f5..142f68384 100644 --- a/cms/src/model/DescribeMetricRuleListResult.cc +++ b/cms/src/model/DescribeMetricRuleListResult.cc @@ -56,7 +56,7 @@ void DescribeMetricRuleListResult::parse(const std::string &payload) if(!valueAlarmsAlarm["NoEffectiveInterval"].isNull()) alarmsObject.noEffectiveInterval = valueAlarmsAlarm["NoEffectiveInterval"].asString(); if(!valueAlarmsAlarm["SilenceTime"].isNull()) - alarmsObject.silenceTime = valueAlarmsAlarm["SilenceTime"].asString(); + alarmsObject.silenceTime = std::stoi(valueAlarmsAlarm["SilenceTime"].asString()); if(!valueAlarmsAlarm["EnableState"].isNull()) alarmsObject.enableState = valueAlarmsAlarm["EnableState"].asString() == "true"; if(!valueAlarmsAlarm["AlertState"].isNull()) @@ -88,7 +88,9 @@ void DescribeMetricRuleListResult::parse(const std::string &payload) if(!infoNode["Threshold"].isNull()) alarmsObject.escalations.info.threshold = infoNode["Threshold"].asString(); if(!infoNode["Times"].isNull()) - alarmsObject.escalations.info.times = infoNode["Times"].asString(); + alarmsObject.escalations.info.times = std::stoi(infoNode["Times"].asString()); + if(!infoNode["PreCondition"].isNull()) + alarmsObject.escalations.info.preCondition = infoNode["PreCondition"].asString(); auto warnNode = escalationsNode["Warn"]; if(!warnNode["ComparisonOperator"].isNull()) alarmsObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString(); @@ -97,7 +99,9 @@ void DescribeMetricRuleListResult::parse(const std::string &payload) if(!warnNode["Threshold"].isNull()) alarmsObject.escalations.warn.threshold = warnNode["Threshold"].asString(); if(!warnNode["Times"].isNull()) - alarmsObject.escalations.warn.times = warnNode["Times"].asString(); + alarmsObject.escalations.warn.times = std::stoi(warnNode["Times"].asString()); + if(!warnNode["PreCondition"].isNull()) + alarmsObject.escalations.warn.preCondition = warnNode["PreCondition"].asString(); auto criticalNode = escalationsNode["Critical"]; if(!criticalNode["ComparisonOperator"].isNull()) alarmsObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString(); @@ -106,7 +110,9 @@ void DescribeMetricRuleListResult::parse(const std::string &payload) if(!criticalNode["Threshold"].isNull()) alarmsObject.escalations.critical.threshold = criticalNode["Threshold"].asString(); if(!criticalNode["Times"].isNull()) - alarmsObject.escalations.critical.times = criticalNode["Times"].asString(); + alarmsObject.escalations.critical.times = std::stoi(criticalNode["Times"].asString()); + if(!criticalNode["PreCondition"].isNull()) + alarmsObject.escalations.critical.preCondition = criticalNode["PreCondition"].asString(); alarms_.push_back(alarmsObject); } if(!value["Success"].isNull()) diff --git a/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.cc b/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.cc index e6693b2c8..9e7997e08 100644 --- a/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.cc +++ b/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.cc @@ -27,17 +27,6 @@ DescribeMetricRuleTemplateAttributeRequest::DescribeMetricRuleTemplateAttributeR DescribeMetricRuleTemplateAttributeRequest::~DescribeMetricRuleTemplateAttributeRequest() {} -std::string DescribeMetricRuleTemplateAttributeRequest::getName()const -{ - return name_; -} - -void DescribeMetricRuleTemplateAttributeRequest::setName(const std::string& name) -{ - name_ = name; - setParameter("Name", name); -} - std::string DescribeMetricRuleTemplateAttributeRequest::getTemplateId()const { return templateId_; @@ -49,3 +38,14 @@ void DescribeMetricRuleTemplateAttributeRequest::setTemplateId(const std::string setParameter("TemplateId", templateId); } +std::string DescribeMetricRuleTemplateAttributeRequest::getName()const +{ + return name_; +} + +void DescribeMetricRuleTemplateAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setParameter("Name", name); +} + diff --git a/cms/src/model/DescribeMetricRuleTemplateListResult.cc b/cms/src/model/DescribeMetricRuleTemplateListResult.cc index 00cac2dda..c1b9ea993 100644 --- a/cms/src/model/DescribeMetricRuleTemplateListResult.cc +++ b/cms/src/model/DescribeMetricRuleTemplateListResult.cc @@ -55,16 +55,16 @@ void DescribeMetricRuleTemplateListResult::parse(const std::string &payload) templatesObject.gmtCreate = std::stol(valueTemplatesTemplate["GmtCreate"].asString()); if(!valueTemplatesTemplate["GmtModified"].isNull()) templatesObject.gmtModified = std::stol(valueTemplatesTemplate["GmtModified"].asString()); - auto allApplyHistoriesNode = allTemplatesNode["ApplyHistories"]["ApplyHistory"]; - for (auto allTemplatesNodeApplyHistoriesApplyHistory : allApplyHistoriesNode) + auto allApplyHistoriesNode = valueTemplatesTemplate["ApplyHistories"]["ApplyHistory"]; + for (auto valueTemplatesTemplateApplyHistoriesApplyHistory : allApplyHistoriesNode) { _Template::ApplyHistory applyHistoriesObject; - if(!allTemplatesNodeApplyHistoriesApplyHistory["GroupId"].isNull()) - applyHistoriesObject.groupId = std::stol(allTemplatesNodeApplyHistoriesApplyHistory["GroupId"].asString()); - if(!allTemplatesNodeApplyHistoriesApplyHistory["GroupName"].isNull()) - applyHistoriesObject.groupName = allTemplatesNodeApplyHistoriesApplyHistory["GroupName"].asString(); - if(!allTemplatesNodeApplyHistoriesApplyHistory["ApplyTime"].isNull()) - applyHistoriesObject.applyTime = std::stol(allTemplatesNodeApplyHistoriesApplyHistory["ApplyTime"].asString()); + if(!valueTemplatesTemplateApplyHistoriesApplyHistory["GroupId"].isNull()) + applyHistoriesObject.groupId = std::stol(valueTemplatesTemplateApplyHistoriesApplyHistory["GroupId"].asString()); + if(!valueTemplatesTemplateApplyHistoriesApplyHistory["GroupName"].isNull()) + applyHistoriesObject.groupName = valueTemplatesTemplateApplyHistoriesApplyHistory["GroupName"].asString(); + if(!valueTemplatesTemplateApplyHistoriesApplyHistory["ApplyTime"].isNull()) + applyHistoriesObject.applyTime = std::stol(valueTemplatesTemplateApplyHistoriesApplyHistory["ApplyTime"].asString()); templatesObject.applyHistories.push_back(applyHistoriesObject); } templates_.push_back(templatesObject); diff --git a/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc b/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc index 16b99c566..669bd44c1 100644 --- a/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc +++ b/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc @@ -43,22 +43,20 @@ void DescribeMonitorGroupDynamicRulesResult::parse(const std::string &payload) for (auto valueResourceResourceItem : allResourceNode) { ResourceItem resourceObject; - if(!valueResourceResourceItem["GroupId"].isNull()) - resourceObject.groupId = std::stol(valueResourceResourceItem["GroupId"].asString()); if(!valueResourceResourceItem["Category"].isNull()) resourceObject.category = valueResourceResourceItem["Category"].asString(); if(!valueResourceResourceItem["FilterRelation"].isNull()) resourceObject.filterRelation = valueResourceResourceItem["FilterRelation"].asString(); - auto allFiltersNode = allResourceNode["Filters"]["Filter"]; - for (auto allResourceNodeFiltersFilter : allFiltersNode) + auto allFiltersNode = valueResourceResourceItem["Filters"]["Filter"]; + for (auto valueResourceResourceItemFiltersFilter : allFiltersNode) { ResourceItem::Filter filtersObject; - if(!allResourceNodeFiltersFilter["Function"].isNull()) - filtersObject.function = allResourceNodeFiltersFilter["Function"].asString(); - if(!allResourceNodeFiltersFilter["Name"].isNull()) - filtersObject.name = allResourceNodeFiltersFilter["Name"].asString(); - if(!allResourceNodeFiltersFilter["Value"].isNull()) - filtersObject.value = allResourceNodeFiltersFilter["Value"].asString(); + if(!valueResourceResourceItemFiltersFilter["Function"].isNull()) + filtersObject.function = valueResourceResourceItemFiltersFilter["Function"].asString(); + if(!valueResourceResourceItemFiltersFilter["Name"].isNull()) + filtersObject.name = valueResourceResourceItemFiltersFilter["Name"].asString(); + if(!valueResourceResourceItemFiltersFilter["Value"].isNull()) + filtersObject.value = valueResourceResourceItemFiltersFilter["Value"].asString(); resourceObject.filters.push_back(filtersObject); } resource_.push_back(resourceObject); @@ -69,12 +67,6 @@ void DescribeMonitorGroupDynamicRulesResult::parse(const std::string &payload) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); } @@ -83,21 +75,6 @@ std::string DescribeMonitorGroupDynamicRulesResult::getMessage()const return message_; } -int DescribeMonitorGroupDynamicRulesResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeMonitorGroupDynamicRulesResult::getPageNumber()const -{ - return pageNumber_; -} - -int DescribeMonitorGroupDynamicRulesResult::getTotal()const -{ - return total_; -} - std::vector DescribeMonitorGroupDynamicRulesResult::getResource()const { return resource_; diff --git a/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc b/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc index 94ff8e6e7..523ffd549 100644 --- a/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc +++ b/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc @@ -55,14 +55,14 @@ void DescribeMonitorGroupInstanceAttributeResult::parse(const std::string &paylo resourcesObject.category = valueResourcesResource["Category"].asString(); if(!valueResourcesResource["Dimension"].isNull()) resourcesObject.dimension = valueResourcesResource["Dimension"].asString(); - auto allTagsNode = allResourcesNode["Tags"]["Tag"]; - for (auto allResourcesNodeTagsTag : allTagsNode) + auto allTagsNode = valueResourcesResource["Tags"]["Tag"]; + for (auto valueResourcesResourceTagsTag : allTagsNode) { Resource::Tag tagsObject; - if(!allResourcesNodeTagsTag["Key"].isNull()) - tagsObject.key = allResourcesNodeTagsTag["Key"].asString(); - if(!allResourcesNodeTagsTag["Value"].isNull()) - tagsObject.value = allResourcesNodeTagsTag["Value"].asString(); + if(!valueResourcesResourceTagsTag["Key"].isNull()) + tagsObject.key = valueResourcesResourceTagsTag["Key"].asString(); + if(!valueResourcesResourceTagsTag["Value"].isNull()) + tagsObject.value = valueResourcesResourceTagsTag["Value"].asString(); resourcesObject.tags.push_back(tagsObject); } auto regionNode = value["Region"]; diff --git a/cms/src/model/DescribeMonitorGroupsRequest.cc b/cms/src/model/DescribeMonitorGroupsRequest.cc index 6b787a74e..c22b6e8b5 100644 --- a/cms/src/model/DescribeMonitorGroupsRequest.cc +++ b/cms/src/model/DescribeMonitorGroupsRequest.cc @@ -82,6 +82,17 @@ void DescribeMonitorGroupsRequest::setPageNumber(int pageNumber) setParameter("PageNumber", std::to_string(pageNumber)); } +std::string DescribeMonitorGroupsRequest::getResourceGroupId()const +{ + return resourceGroupId_; +} + +void DescribeMonitorGroupsRequest::setResourceGroupId(const std::string& resourceGroupId) +{ + resourceGroupId_ = resourceGroupId; + setParameter("ResourceGroupId", resourceGroupId); +} + int DescribeMonitorGroupsRequest::getPageSize()const { return pageSize_; diff --git a/cms/src/model/DescribeMonitorGroupsResult.cc b/cms/src/model/DescribeMonitorGroupsResult.cc index 27fadae30..1378334ca 100644 --- a/cms/src/model/DescribeMonitorGroupsResult.cc +++ b/cms/src/model/DescribeMonitorGroupsResult.cc @@ -63,22 +63,22 @@ void DescribeMonitorGroupsResult::parse(const std::string &payload) resourcesObject.groupFounderTagKey = valueResourcesResource["GroupFounderTagKey"].asString(); if(!valueResourcesResource["GroupFounderTagValue"].isNull()) resourcesObject.groupFounderTagValue = valueResourcesResource["GroupFounderTagValue"].asString(); - auto allContactGroupsNode = allResourcesNode["ContactGroups"]["ContactGroup"]; - for (auto allResourcesNodeContactGroupsContactGroup : allContactGroupsNode) + auto allContactGroupsNode = valueResourcesResource["ContactGroups"]["ContactGroup"]; + for (auto valueResourcesResourceContactGroupsContactGroup : allContactGroupsNode) { Resource::ContactGroup contactGroupsObject; - if(!allResourcesNodeContactGroupsContactGroup["Name"].isNull()) - contactGroupsObject.name = allResourcesNodeContactGroupsContactGroup["Name"].asString(); + if(!valueResourcesResourceContactGroupsContactGroup["Name"].isNull()) + contactGroupsObject.name = valueResourcesResourceContactGroupsContactGroup["Name"].asString(); resourcesObject.contactGroups.push_back(contactGroupsObject); } - auto allTagsNode = allResourcesNode["Tags"]["Tag"]; - for (auto allResourcesNodeTagsTag : allTagsNode) + auto allTagsNode = valueResourcesResource["Tags"]["Tag"]; + for (auto valueResourcesResourceTagsTag : allTagsNode) { Resource::Tag tagsObject; - if(!allResourcesNodeTagsTag["Key"].isNull()) - tagsObject.key = allResourcesNodeTagsTag["Key"].asString(); - if(!allResourcesNodeTagsTag["Value"].isNull()) - tagsObject.value = allResourcesNodeTagsTag["Value"].asString(); + if(!valueResourcesResourceTagsTag["Key"].isNull()) + tagsObject.key = valueResourcesResourceTagsTag["Key"].asString(); + if(!valueResourcesResourceTagsTag["Value"].isNull()) + tagsObject.value = valueResourcesResourceTagsTag["Value"].asString(); resourcesObject.tags.push_back(tagsObject); } auto allTemplateIds = value["TemplateIds"]["TemplateId"]; diff --git a/cms/src/model/DescribeMonitorResourceQuotaAttributeRequest.cc b/cms/src/model/DescribeMonitorResourceQuotaAttributeRequest.cc new file mode 100644 index 000000000..3e3f36fd4 --- /dev/null +++ b/cms/src/model/DescribeMonitorResourceQuotaAttributeRequest.cc @@ -0,0 +1,40 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMonitorResourceQuotaAttributeRequest; + +DescribeMonitorResourceQuotaAttributeRequest::DescribeMonitorResourceQuotaAttributeRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorResourceQuotaAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitorResourceQuotaAttributeRequest::~DescribeMonitorResourceQuotaAttributeRequest() +{} + +bool DescribeMonitorResourceQuotaAttributeRequest::getShowUsed()const +{ + return showUsed_; +} + +void DescribeMonitorResourceQuotaAttributeRequest::setShowUsed(bool showUsed) +{ + showUsed_ = showUsed; + setParameter("ShowUsed", showUsed ? "true" : "false"); +} + diff --git a/cms/src/model/DescribeMonitorResourceQuotaAttributeResult.cc b/cms/src/model/DescribeMonitorResourceQuotaAttributeResult.cc new file mode 100644 index 000000000..7d55492e5 --- /dev/null +++ b/cms/src/model/DescribeMonitorResourceQuotaAttributeResult.cc @@ -0,0 +1,133 @@ +/* + * 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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeMonitorResourceQuotaAttributeResult::DescribeMonitorResourceQuotaAttributeResult() : + ServiceResult() +{} + +DescribeMonitorResourceQuotaAttributeResult::DescribeMonitorResourceQuotaAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMonitorResourceQuotaAttributeResult::~DescribeMonitorResourceQuotaAttributeResult() +{} + +void DescribeMonitorResourceQuotaAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto resourceQuotaNode = value["ResourceQuota"]; + if(!resourceQuotaNode["ExpireTime"].isNull()) + resourceQuota_.expireTime = resourceQuotaNode["ExpireTime"].asString(); + if(!resourceQuotaNode["SuitInfo"].isNull()) + resourceQuota_.suitInfo = resourceQuotaNode["SuitInfo"].asString(); + if(!resourceQuotaNode["InstanceId"].isNull()) + resourceQuota_.instanceId = resourceQuotaNode["InstanceId"].asString(); + auto siteMonitorEcsProbeNode = resourceQuotaNode["SiteMonitorEcsProbe"]; + if(!siteMonitorEcsProbeNode["QuotaLimit"].isNull()) + resourceQuota_.siteMonitorEcsProbe.quotaLimit = std::stoi(siteMonitorEcsProbeNode["QuotaLimit"].asString()); + if(!siteMonitorEcsProbeNode["QuotaPackage"].isNull()) + resourceQuota_.siteMonitorEcsProbe.quotaPackage = std::stoi(siteMonitorEcsProbeNode["QuotaPackage"].asString()); + if(!siteMonitorEcsProbeNode["QuotaUsed"].isNull()) + resourceQuota_.siteMonitorEcsProbe.quotaUsed = std::stoi(siteMonitorEcsProbeNode["QuotaUsed"].asString()); + auto siteMonitorOperatorProbeNode = resourceQuotaNode["SiteMonitorOperatorProbe"]; + if(!siteMonitorOperatorProbeNode["QuotaLimit"].isNull()) + resourceQuota_.siteMonitorOperatorProbe.quotaLimit = std::stoi(siteMonitorOperatorProbeNode["QuotaLimit"].asString()); + if(!siteMonitorOperatorProbeNode["QuotaPackage"].isNull()) + resourceQuota_.siteMonitorOperatorProbe.quotaPackage = std::stoi(siteMonitorOperatorProbeNode["QuotaPackage"].asString()); + if(!siteMonitorOperatorProbeNode["QuotaUsed"].isNull()) + resourceQuota_.siteMonitorOperatorProbe.quotaUsed = std::stoi(siteMonitorOperatorProbeNode["QuotaUsed"].asString()); + auto siteMonitorTaskNode = resourceQuotaNode["SiteMonitorTask"]; + if(!siteMonitorTaskNode["QuotaLimit"].isNull()) + resourceQuota_.siteMonitorTask.quotaLimit = std::stoi(siteMonitorTaskNode["QuotaLimit"].asString()); + if(!siteMonitorTaskNode["QuotaPackage"].isNull()) + resourceQuota_.siteMonitorTask.quotaPackage = std::stoi(siteMonitorTaskNode["QuotaPackage"].asString()); + if(!siteMonitorTaskNode["QuotaUsed"].isNull()) + resourceQuota_.siteMonitorTask.quotaUsed = std::stoi(siteMonitorTaskNode["QuotaUsed"].asString()); + auto customMonitorNode = resourceQuotaNode["CustomMonitor"]; + if(!customMonitorNode["QuotaLimit"].isNull()) + resourceQuota_.customMonitor.quotaLimit = std::stoi(customMonitorNode["QuotaLimit"].asString()); + if(!customMonitorNode["QuotaPackage"].isNull()) + resourceQuota_.customMonitor.quotaPackage = std::stoi(customMonitorNode["QuotaPackage"].asString()); + if(!customMonitorNode["QuotaUsed"].isNull()) + resourceQuota_.customMonitor.quotaUsed = std::stoi(customMonitorNode["QuotaUsed"].asString()); + auto eventMonitorNode = resourceQuotaNode["EventMonitor"]; + if(!eventMonitorNode["QuotaLimit"].isNull()) + resourceQuota_.eventMonitor.quotaLimit = std::stoi(eventMonitorNode["QuotaLimit"].asString()); + if(!eventMonitorNode["QuotaPackage"].isNull()) + resourceQuota_.eventMonitor.quotaPackage = std::stoi(eventMonitorNode["QuotaPackage"].asString()); + if(!eventMonitorNode["QuotaUsed"].isNull()) + resourceQuota_.eventMonitor.quotaUsed = std::stoi(eventMonitorNode["QuotaUsed"].asString()); + auto logMonitorNode = resourceQuotaNode["LogMonitor"]; + if(!logMonitorNode["QuotaLimit"].isNull()) + resourceQuota_.logMonitor.quotaLimit = std::stoi(logMonitorNode["QuotaLimit"].asString()); + if(!logMonitorNode["QuotaPackage"].isNull()) + resourceQuota_.logMonitor.quotaPackage = std::stoi(logMonitorNode["QuotaPackage"].asString()); + if(!logMonitorNode["QuotaUsed"].isNull()) + resourceQuota_.logMonitor.quotaUsed = std::stoi(logMonitorNode["QuotaUsed"].asString()); + auto apiNode = resourceQuotaNode["Api"]; + if(!apiNode["QuotaLimit"].isNull()) + resourceQuota_.api.quotaLimit = std::stoi(apiNode["QuotaLimit"].asString()); + if(!apiNode["QuotaPackage"].isNull()) + resourceQuota_.api.quotaPackage = std::stoi(apiNode["QuotaPackage"].asString()); + if(!apiNode["QuotaUsed"].isNull()) + resourceQuota_.api.quotaUsed = std::stoi(apiNode["QuotaUsed"].asString()); + auto sMSNode = resourceQuotaNode["SMS"]; + if(!sMSNode["QuotaLimit"].isNull()) + resourceQuota_.sMS.quotaLimit = std::stoi(sMSNode["QuotaLimit"].asString()); + if(!sMSNode["QuotaPackage"].isNull()) + resourceQuota_.sMS.quotaPackage = std::stoi(sMSNode["QuotaPackage"].asString()); + if(!sMSNode["QuotaUsed"].isNull()) + resourceQuota_.sMS.quotaUsed = std::stoi(sMSNode["QuotaUsed"].asString()); + auto phoneNode = resourceQuotaNode["Phone"]; + if(!phoneNode["QuotaLimit"].isNull()) + resourceQuota_.phone.quotaLimit = std::stoi(phoneNode["QuotaLimit"].asString()); + if(!phoneNode["QuotaPackage"].isNull()) + resourceQuota_.phone.quotaPackage = std::stoi(phoneNode["QuotaPackage"].asString()); + if(!phoneNode["QuotaUsed"].isNull()) + resourceQuota_.phone.quotaUsed = std::stoi(phoneNode["QuotaUsed"].asString()); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +DescribeMonitorResourceQuotaAttributeResult::ResourceQuota DescribeMonitorResourceQuotaAttributeResult::getResourceQuota()const +{ + return resourceQuota_; +} + +std::string DescribeMonitorResourceQuotaAttributeResult::getMessage()const +{ + return message_; +} + +std::string DescribeMonitorResourceQuotaAttributeResult::getCode()const +{ + return code_; +} + diff --git a/cms/src/model/DescribeMonitoringAgentHostsRequest.cc b/cms/src/model/DescribeMonitoringAgentHostsRequest.cc index 989d2e21c..1d6e6d690 100644 --- a/cms/src/model/DescribeMonitoringAgentHostsRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentHostsRequest.cc @@ -60,17 +60,6 @@ void DescribeMonitoringAgentHostsRequest::setHostName(const std::string& hostNam setParameter("HostName", hostName); } -std::string DescribeMonitoringAgentHostsRequest::getInstanceIds()const -{ - return instanceIds_; -} - -void DescribeMonitoringAgentHostsRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setParameter("InstanceIds", instanceIds); -} - std::string DescribeMonitoringAgentHostsRequest::getInstanceRegionId()const { return instanceRegionId_; @@ -93,6 +82,17 @@ void DescribeMonitoringAgentHostsRequest::setPageSize(int pageSize) setParameter("PageSize", std::to_string(pageSize)); } +bool DescribeMonitoringAgentHostsRequest::getAliyunHost()const +{ + return aliyunHost_; +} + +void DescribeMonitoringAgentHostsRequest::setAliyunHost(bool aliyunHost) +{ + aliyunHost_ = aliyunHost; + setParameter("AliyunHost", aliyunHost ? "true" : "false"); +} + std::string DescribeMonitoringAgentHostsRequest::getKeyWord()const { return keyWord_; @@ -104,3 +104,25 @@ void DescribeMonitoringAgentHostsRequest::setKeyWord(const std::string& keyWord) setParameter("KeyWord", keyWord); } +std::string DescribeMonitoringAgentHostsRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DescribeMonitoringAgentHostsRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setParameter("InstanceIds", instanceIds); +} + +std::string DescribeMonitoringAgentHostsRequest::getStatus()const +{ + return status_; +} + +void DescribeMonitoringAgentHostsRequest::setStatus(const std::string& status) +{ + status_ = status; + setParameter("Status", status); +} + diff --git a/cms/src/model/DescribeMonitoringAgentHostsResult.cc b/cms/src/model/DescribeMonitoringAgentHostsResult.cc index b3183edb4..84fcb4311 100644 --- a/cms/src/model/DescribeMonitoringAgentHostsResult.cc +++ b/cms/src/model/DescribeMonitoringAgentHostsResult.cc @@ -83,6 +83,10 @@ void DescribeMonitoringAgentHostsResult::parse(const std::string &payload) pageTotal_ = std::stoi(value["PageTotal"].asString()); 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()); } @@ -96,6 +100,16 @@ std::string DescribeMonitoringAgentHostsResult::getMessage()const return message_; } +int DescribeMonitoringAgentHostsResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeMonitoringAgentHostsResult::getPageNumber()const +{ + return pageNumber_; +} + int DescribeMonitoringAgentHostsResult::getPageTotal()const { return pageTotal_; diff --git a/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc b/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc index 3e316fff4..febd86685 100644 --- a/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc +++ b/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc @@ -39,6 +39,32 @@ void DescribeProductsOfActiveMetricRuleResult::parse(const std::string &payload) Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); + auto allAllProductInitMetricRuleListNode = value["AllProductInitMetricRuleList"]["AllProductInitMetricRule"]; + for (auto valueAllProductInitMetricRuleListAllProductInitMetricRule : allAllProductInitMetricRuleListNode) + { + AllProductInitMetricRule allProductInitMetricRuleListObject; + if(!valueAllProductInitMetricRuleListAllProductInitMetricRule["Product"].isNull()) + allProductInitMetricRuleListObject.product = valueAllProductInitMetricRuleListAllProductInitMetricRule["Product"].asString(); + auto allAlertInitConfigListNode = valueAllProductInitMetricRuleListAllProductInitMetricRule["AlertInitConfigList"]["AlertInitConfig"]; + for (auto valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig : allAlertInitConfigListNode) + { + AllProductInitMetricRule::AlertInitConfig alertInitConfigListObject; + if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Namespace"].isNull()) + alertInitConfigListObject._namespace = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Namespace"].asString(); + if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["MetricName"].isNull()) + alertInitConfigListObject.metricName = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["MetricName"].asString(); + if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Statistics"].isNull()) + alertInitConfigListObject.statistics = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Statistics"].asString(); + if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["EvaluationCount"].isNull()) + alertInitConfigListObject.evaluationCount = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["EvaluationCount"].asString(); + if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Threshold"].isNull()) + alertInitConfigListObject.threshold = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Threshold"].asString(); + if(!valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Period"].isNull()) + alertInitConfigListObject.period = valueAllProductInitMetricRuleListAllProductInitMetricRuleAlertInitConfigListAlertInitConfig["Period"].asString(); + allProductInitMetricRuleListObject.alertInitConfigList.push_back(alertInitConfigListObject); + } + allProductInitMetricRuleList_.push_back(allProductInitMetricRuleListObject); + } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; if(!value["Code"].isNull()) @@ -55,6 +81,11 @@ std::string DescribeProductsOfActiveMetricRuleResult::getMessage()const return message_; } +std::vector DescribeProductsOfActiveMetricRuleResult::getAllProductInitMetricRuleList()const +{ + return allProductInitMetricRuleList_; +} + std::string DescribeProductsOfActiveMetricRuleResult::getDatapoints()const { return datapoints_; diff --git a/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc b/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc index 6adaee97b..e20e8616f 100644 --- a/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc +++ b/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc @@ -49,3 +49,36 @@ void DescribeSiteMonitorISPCityListRequest::setIsp(const std::string& isp) setParameter("Isp", isp); } +bool DescribeSiteMonitorISPCityListRequest::getAPIProbe()const +{ + return aPIProbe_; +} + +void DescribeSiteMonitorISPCityListRequest::setAPIProbe(bool aPIProbe) +{ + aPIProbe_ = aPIProbe; + setParameter("APIProbe", aPIProbe ? "true" : "false"); +} + +bool DescribeSiteMonitorISPCityListRequest::getIPV4()const +{ + return iPV4_; +} + +void DescribeSiteMonitorISPCityListRequest::setIPV4(bool iPV4) +{ + iPV4_ = iPV4; + setParameter("IPV4", iPV4 ? "true" : "false"); +} + +bool DescribeSiteMonitorISPCityListRequest::getIPV6()const +{ + return iPV6_; +} + +void DescribeSiteMonitorISPCityListRequest::setIPV6(bool iPV6) +{ + iPV6_ = iPV6; + setParameter("IPV6", iPV6 ? "true" : "false"); +} + diff --git a/cms/src/model/DescribeSiteMonitorISPCityListResult.cc b/cms/src/model/DescribeSiteMonitorISPCityListResult.cc index a5447644e..a1f1719bc 100644 --- a/cms/src/model/DescribeSiteMonitorISPCityListResult.cc +++ b/cms/src/model/DescribeSiteMonitorISPCityListResult.cc @@ -47,22 +47,35 @@ void DescribeSiteMonitorISPCityListResult::parse(const std::string &payload) ispCityListObject.isp = valueIspCityListIspCity["Isp"].asString(); if(!valueIspCityListIspCity["City"].isNull()) ispCityListObject.city = valueIspCityListIspCity["City"].asString(); - if(!valueIspCityListIspCity["IspName.zh_CN"].isNull()) - ispCityListObject.ispNamezh_CN = valueIspCityListIspCity["IspName.zh_CN"].asString(); - if(!valueIspCityListIspCity["CityName.zh_CN"].isNull()) - ispCityListObject.cityNamezh_CN = valueIspCityListIspCity["CityName.zh_CN"].asString(); - if(!valueIspCityListIspCity["Region.zh_CN"].isNull()) - ispCityListObject.regionzh_CN = valueIspCityListIspCity["Region.zh_CN"].asString(); - if(!valueIspCityListIspCity["Country.zh_CN"].isNull()) - ispCityListObject.countryzh_CN = valueIspCityListIspCity["Country.zh_CN"].asString(); + if(!valueIspCityListIspCity["Region"].isNull()) + ispCityListObject.region = valueIspCityListIspCity["Region"].asString(); + if(!valueIspCityListIspCity["Country"].isNull()) + ispCityListObject.country = valueIspCityListIspCity["Country"].asString(); if(!valueIspCityListIspCity["IspName.en"].isNull()) ispCityListObject.ispNameen = valueIspCityListIspCity["IspName.en"].asString(); + if(!valueIspCityListIspCity["IspName.zh_CN"].isNull()) + ispCityListObject.ispNamezh_CN = valueIspCityListIspCity["IspName.zh_CN"].asString(); if(!valueIspCityListIspCity["CityName.en"].isNull()) ispCityListObject.cityNameen = valueIspCityListIspCity["CityName.en"].asString(); + if(!valueIspCityListIspCity["CityName.zh_CN"].isNull()) + ispCityListObject.cityNamezh_CN = valueIspCityListIspCity["CityName.zh_CN"].asString(); if(!valueIspCityListIspCity["Region.en"].isNull()) ispCityListObject.regionen = valueIspCityListIspCity["Region.en"].asString(); + if(!valueIspCityListIspCity["Region.zh_CN"].isNull()) + ispCityListObject.regionzh_CN = valueIspCityListIspCity["Region.zh_CN"].asString(); if(!valueIspCityListIspCity["Country.en"].isNull()) ispCityListObject.countryen = valueIspCityListIspCity["Country.en"].asString(); + if(!valueIspCityListIspCity["Country.zh_CN"].isNull()) + ispCityListObject.countryzh_CN = valueIspCityListIspCity["Country.zh_CN"].asString(); + if(!valueIspCityListIspCity["IPV4ProbeCount"].isNull()) + ispCityListObject.iPV4ProbeCount = valueIspCityListIspCity["IPV4ProbeCount"].asString(); + if(!valueIspCityListIspCity["IPV6ProbeCount"].isNull()) + ispCityListObject.iPV6ProbeCount = valueIspCityListIspCity["IPV6ProbeCount"].asString(); + if(!valueIspCityListIspCity["APIProbeCount"].isNull()) + ispCityListObject.aPIProbeCount = valueIspCityListIspCity["APIProbeCount"].asString(); + auto allIPPool = value["IPPool"]["IPPool"]; + for (auto value : allIPPool) + ispCityListObject.iPPool.push_back(value.asString()); ispCityList_.push_back(ispCityListObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeSiteMonitorQuotaResult.cc b/cms/src/model/DescribeSiteMonitorQuotaResult.cc index f0deecea0..63872966e 100644 --- a/cms/src/model/DescribeSiteMonitorQuotaResult.cc +++ b/cms/src/model/DescribeSiteMonitorQuotaResult.cc @@ -50,6 +50,8 @@ void DescribeSiteMonitorQuotaResult::parse(const std::string &payload) data_.siteMonitorQuotaTaskUsed = std::stoi(dataNode["SiteMonitorQuotaTaskUsed"].asString()); if(!dataNode["SiteMonitorVersion"].isNull()) data_.siteMonitorVersion = dataNode["SiteMonitorVersion"].asString(); + if(!dataNode["SecondMonitor"].isNull()) + data_.secondMonitor = dataNode["SecondMonitor"].asString() == "true"; if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) diff --git a/cms/src/model/DescribeSystemEventAttributeResult.cc b/cms/src/model/DescribeSystemEventAttributeResult.cc index 089d77a35..15bcf4e6d 100644 --- a/cms/src/model/DescribeSystemEventAttributeResult.cc +++ b/cms/src/model/DescribeSystemEventAttributeResult.cc @@ -51,8 +51,6 @@ void DescribeSystemEventAttributeResult::parse(const std::string &payload) systemEventsObject.name = valueSystemEventsSystemEvent["Name"].asString(); if(!valueSystemEventsSystemEvent["GroupId"].isNull()) systemEventsObject.groupId = valueSystemEventsSystemEvent["GroupId"].asString(); - if(!valueSystemEventsSystemEvent["Num"].isNull()) - systemEventsObject.num = std::stol(valueSystemEventsSystemEvent["Num"].asString()); if(!valueSystemEventsSystemEvent["Level"].isNull()) systemEventsObject.level = valueSystemEventsSystemEvent["Level"].asString(); if(!valueSystemEventsSystemEvent["Status"].isNull()) diff --git a/cms/src/model/DescribeSystemEventHistogramRequest.cc b/cms/src/model/DescribeSystemEventHistogramRequest.cc index 7e26d0764..a2aaee597 100644 --- a/cms/src/model/DescribeSystemEventHistogramRequest.cc +++ b/cms/src/model/DescribeSystemEventHistogramRequest.cc @@ -49,28 +49,6 @@ void DescribeSystemEventHistogramRequest::setSearchKeywords(const std::string& s setParameter("SearchKeywords", searchKeywords); } -int DescribeSystemEventHistogramRequest::getPageNumber()const -{ - return pageNumber_; -} - -void DescribeSystemEventHistogramRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setParameter("PageNumber", std::to_string(pageNumber)); -} - -int DescribeSystemEventHistogramRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeSystemEventHistogramRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setParameter("PageSize", std::to_string(pageSize)); -} - std::string DescribeSystemEventHistogramRequest::getProduct()const { return product_; diff --git a/cms/src/model/DescribeSystemEventMetaListResult.cc b/cms/src/model/DescribeSystemEventMetaListResult.cc index 6b9ded8fa..1146cbdfa 100644 --- a/cms/src/model/DescribeSystemEventMetaListResult.cc +++ b/cms/src/model/DescribeSystemEventMetaListResult.cc @@ -49,6 +49,8 @@ void DescribeSystemEventMetaListResult::parse(const std::string &payload) dataObject.name = valueDataResource["Name"].asString(); if(!valueDataResource["NameDesc"].isNull()) dataObject.nameDesc = valueDataResource["NameDesc"].asString(); + if(!valueDataResource["NameDesc.En"].isNull()) + dataObject.nameDescEn = valueDataResource["NameDesc.En"].asString(); if(!valueDataResource["Level"].isNull()) dataObject.level = valueDataResource["Level"].asString(); if(!valueDataResource["Status"].isNull()) diff --git a/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc b/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc index b0ba09db3..694271e4c 100644 --- a/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc +++ b/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc @@ -40,6 +40,7 @@ void ModifyGroupMonitoringAgentProcessRequest::setAlertConfig(const std::vector< std::string alertConfigObjStr = "AlertConfig." + std::to_string(dep1 + 1); setParameter(alertConfigObjStr + ".Times", alertConfigObj.times); setParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval); + setParameter(alertConfigObjStr + ".Webhook", alertConfigObj.webhook); setParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime); setParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold); setParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval); diff --git a/cms/src/model/ModifyHostAvailabilityRequest.cc b/cms/src/model/ModifyHostAvailabilityRequest.cc index dc8cbba09..f71c29bee 100644 --- a/cms/src/model/ModifyHostAvailabilityRequest.cc +++ b/cms/src/model/ModifyHostAvailabilityRequest.cc @@ -38,6 +38,17 @@ void ModifyHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string& t setParameter("TaskOptionHttpMethod", taskOptionHttpMethod); } +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpHeader()const +{ + return taskOptionHttpHeader_; +} + +void ModifyHostAvailabilityRequest::setTaskOptionHttpHeader(const std::string& taskOptionHttpHeader) +{ + taskOptionHttpHeader_ = taskOptionHttpHeader; + setParameter("TaskOptionHttpHeader", taskOptionHttpHeader); +} + std::vector ModifyHostAvailabilityRequest::getAlertConfigEscalationList()const { return alertConfigEscalationList_; @@ -202,6 +213,17 @@ void ModifyHostAvailabilityRequest::setTaskScope(const std::string& taskScope) setParameter("TaskScope", taskScope); } +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpPostContent()const +{ + return taskOptionHttpPostContent_; +} + +void ModifyHostAvailabilityRequest::setTaskOptionHttpPostContent(const std::string& taskOptionHttpPostContent) +{ + taskOptionHttpPostContent_ = taskOptionHttpPostContent; + setParameter("TaskOptionHttpPostContent", taskOptionHttpPostContent); +} + int ModifyHostAvailabilityRequest::getAlertConfigStartTime()const { return alertConfigStartTime_; diff --git a/cms/src/model/ModifyHostInfoRequest.cc b/cms/src/model/ModifyHostInfoRequest.cc new file mode 100644 index 000000000..13844b1a3 --- /dev/null +++ b/cms/src/model/ModifyHostInfoRequest.cc @@ -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 + +using AlibabaCloud::Cms::Model::ModifyHostInfoRequest; + +ModifyHostInfoRequest::ModifyHostInfoRequest() : + RpcServiceRequest("cms", "2019-01-01", "ModifyHostInfo") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyHostInfoRequest::~ModifyHostInfoRequest() +{} + +std::string ModifyHostInfoRequest::getHostName()const +{ + return hostName_; +} + +void ModifyHostInfoRequest::setHostName(const std::string& hostName) +{ + hostName_ = hostName; + setParameter("HostName", hostName); +} + +std::string ModifyHostInfoRequest::getInstanceId()const +{ + return instanceId_; +} + +void ModifyHostInfoRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setParameter("InstanceId", instanceId); +} + diff --git a/cms/src/model/ModifyHostInfoResult.cc b/cms/src/model/ModifyHostInfoResult.cc new file mode 100644 index 000000000..6f7c45c58 --- /dev/null +++ b/cms/src/model/ModifyHostInfoResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +ModifyHostInfoResult::ModifyHostInfoResult() : + ServiceResult() +{} + +ModifyHostInfoResult::ModifyHostInfoResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHostInfoResult::~ModifyHostInfoResult() +{} + +void ModifyHostInfoResult::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 ModifyHostInfoResult::getMessage()const +{ + return message_; +} + +std::string ModifyHostInfoResult::getCode()const +{ + return code_; +} + +bool ModifyHostInfoResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/OpenCmsServiceRequest.cc b/cms/src/model/OpenCmsServiceRequest.cc new file mode 100644 index 000000000..3c80fee64 --- /dev/null +++ b/cms/src/model/OpenCmsServiceRequest.cc @@ -0,0 +1,29 @@ +/* + * 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 + +using AlibabaCloud::Cms::Model::OpenCmsServiceRequest; + +OpenCmsServiceRequest::OpenCmsServiceRequest() : + RpcServiceRequest("cms", "2019-01-01", "OpenCmsService") +{ + setMethod(HttpRequest::Method::Post); +} + +OpenCmsServiceRequest::~OpenCmsServiceRequest() +{} + diff --git a/cms/src/model/OpenCmsServiceResult.cc b/cms/src/model/OpenCmsServiceResult.cc new file mode 100644 index 000000000..d74634e45 --- /dev/null +++ b/cms/src/model/OpenCmsServiceResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +OpenCmsServiceResult::OpenCmsServiceResult() : + ServiceResult() +{} + +OpenCmsServiceResult::OpenCmsServiceResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +OpenCmsServiceResult::~OpenCmsServiceResult() +{} + +void OpenCmsServiceResult::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 OpenCmsServiceResult::getOrderId()const +{ + return orderId_; +} + diff --git a/cms/src/model/PutContactGroupRequest.cc b/cms/src/model/PutContactGroupRequest.cc index 941d8b0b6..b788af5e2 100644 --- a/cms/src/model/PutContactGroupRequest.cc +++ b/cms/src/model/PutContactGroupRequest.cc @@ -27,6 +27,17 @@ PutContactGroupRequest::PutContactGroupRequest() : PutContactGroupRequest::~PutContactGroupRequest() {} +bool PutContactGroupRequest::getEnableSubscribed()const +{ + return enableSubscribed_; +} + +void PutContactGroupRequest::setEnableSubscribed(bool enableSubscribed) +{ + enableSubscribed_ = enableSubscribed; + setParameter("EnableSubscribed", enableSubscribed ? "true" : "false"); +} + std::string PutContactGroupRequest::getContactGroupName()const { return contactGroupName_; diff --git a/cms/src/model/PutContactRequest.cc b/cms/src/model/PutContactRequest.cc index 80f965870..a12a20e36 100644 --- a/cms/src/model/PutContactRequest.cc +++ b/cms/src/model/PutContactRequest.cc @@ -82,6 +82,17 @@ void PutContactRequest::setDescribe(const std::string& describe) setParameter("Describe", describe); } +std::string PutContactRequest::getLang()const +{ + return lang_; +} + +void PutContactRequest::setLang(const std::string& lang) +{ + lang_ = lang; + setParameter("Lang", lang); +} + std::string PutContactRequest::getChannelsSMS()const { return channelsSMS_; diff --git a/cms/src/model/PutCustomEventRuleRequest.cc b/cms/src/model/PutCustomEventRuleRequest.cc new file mode 100644 index 000000000..e71c3007e --- /dev/null +++ b/cms/src/model/PutCustomEventRuleRequest.cc @@ -0,0 +1,150 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::PutCustomEventRuleRequest; + +PutCustomEventRuleRequest::PutCustomEventRuleRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutCustomEventRule") +{ + setMethod(HttpRequest::Method::Post); +} + +PutCustomEventRuleRequest::~PutCustomEventRuleRequest() +{} + +std::string PutCustomEventRuleRequest::getWebhook()const +{ + return webhook_; +} + +void PutCustomEventRuleRequest::setWebhook(const std::string& webhook) +{ + webhook_ = webhook; + setParameter("Webhook", webhook); +} + +std::string PutCustomEventRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void PutCustomEventRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + +std::string PutCustomEventRuleRequest::getThreshold()const +{ + return threshold_; +} + +void PutCustomEventRuleRequest::setThreshold(const std::string& threshold) +{ + threshold_ = threshold; + setParameter("Threshold", threshold); +} + +std::string PutCustomEventRuleRequest::getEffectiveInterval()const +{ + return effectiveInterval_; +} + +void PutCustomEventRuleRequest::setEffectiveInterval(const std::string& effectiveInterval) +{ + effectiveInterval_ = effectiveInterval; + setParameter("EffectiveInterval", effectiveInterval); +} + +std::string PutCustomEventRuleRequest::getEventName()const +{ + return eventName_; +} + +void PutCustomEventRuleRequest::setEventName(const std::string& eventName) +{ + eventName_ = eventName; + setParameter("EventName", eventName); +} + +std::string PutCustomEventRuleRequest::getEmailSubject()const +{ + return emailSubject_; +} + +void PutCustomEventRuleRequest::setEmailSubject(const std::string& emailSubject) +{ + emailSubject_ = emailSubject; + setParameter("EmailSubject", emailSubject); +} + +std::string PutCustomEventRuleRequest::getPeriod()const +{ + return period_; +} + +void PutCustomEventRuleRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string PutCustomEventRuleRequest::getContactGroups()const +{ + return contactGroups_; +} + +void PutCustomEventRuleRequest::setContactGroups(const std::string& contactGroups) +{ + contactGroups_ = contactGroups; + setParameter("ContactGroups", contactGroups); +} + +std::string PutCustomEventRuleRequest::getLevel()const +{ + return level_; +} + +void PutCustomEventRuleRequest::setLevel(const std::string& level) +{ + level_ = level; + setParameter("Level", level); +} + +std::string PutCustomEventRuleRequest::getGroupId()const +{ + return groupId_; +} + +void PutCustomEventRuleRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string PutCustomEventRuleRequest::getRuleId()const +{ + return ruleId_; +} + +void PutCustomEventRuleRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setParameter("RuleId", ruleId); +} + diff --git a/cms/src/model/PutCustomEventRuleResult.cc b/cms/src/model/PutCustomEventRuleResult.cc new file mode 100644 index 000000000..4ba10afbf --- /dev/null +++ b/cms/src/model/PutCustomEventRuleResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +PutCustomEventRuleResult::PutCustomEventRuleResult() : + ServiceResult() +{} + +PutCustomEventRuleResult::PutCustomEventRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutCustomEventRuleResult::~PutCustomEventRuleResult() +{} + +void PutCustomEventRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PutCustomEventRuleResult::getMessage()const +{ + return message_; +} + +std::string PutCustomEventRuleResult::getCode()const +{ + return code_; +} + +bool PutCustomEventRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutCustomMetricRuleRequest.cc b/cms/src/model/PutCustomMetricRuleRequest.cc new file mode 100644 index 000000000..ef1ee08d6 --- /dev/null +++ b/cms/src/model/PutCustomMetricRuleRequest.cc @@ -0,0 +1,205 @@ +/* + * 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 + +using AlibabaCloud::Cms::Model::PutCustomMetricRuleRequest; + +PutCustomMetricRuleRequest::PutCustomMetricRuleRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutCustomMetricRule") +{ + setMethod(HttpRequest::Method::Post); +} + +PutCustomMetricRuleRequest::~PutCustomMetricRuleRequest() +{} + +std::string PutCustomMetricRuleRequest::getWebhook()const +{ + return webhook_; +} + +void PutCustomMetricRuleRequest::setWebhook(const std::string& webhook) +{ + webhook_ = webhook; + setParameter("Webhook", webhook); +} + +std::string PutCustomMetricRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void PutCustomMetricRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setParameter("RuleName", ruleName); +} + +std::string PutCustomMetricRuleRequest::getThreshold()const +{ + return threshold_; +} + +void PutCustomMetricRuleRequest::setThreshold(const std::string& threshold) +{ + threshold_ = threshold; + setParameter("Threshold", threshold); +} + +std::string PutCustomMetricRuleRequest::getEffectiveInterval()const +{ + return effectiveInterval_; +} + +void PutCustomMetricRuleRequest::setEffectiveInterval(const std::string& effectiveInterval) +{ + effectiveInterval_ = effectiveInterval; + setParameter("EffectiveInterval", effectiveInterval); +} + +std::string PutCustomMetricRuleRequest::getEmailSubject()const +{ + return emailSubject_; +} + +void PutCustomMetricRuleRequest::setEmailSubject(const std::string& emailSubject) +{ + emailSubject_ = emailSubject; + setParameter("EmailSubject", emailSubject); +} + +int PutCustomMetricRuleRequest::getEvaluationCount()const +{ + return evaluationCount_; +} + +void PutCustomMetricRuleRequest::setEvaluationCount(int evaluationCount) +{ + evaluationCount_ = evaluationCount; + setParameter("EvaluationCount", std::to_string(evaluationCount)); +} + +int PutCustomMetricRuleRequest::getSilenceTime()const +{ + return silenceTime_; +} + +void PutCustomMetricRuleRequest::setSilenceTime(int silenceTime) +{ + silenceTime_ = silenceTime; + setParameter("SilenceTime", std::to_string(silenceTime)); +} + +std::string PutCustomMetricRuleRequest::getMetricName()const +{ + return metricName_; +} + +void PutCustomMetricRuleRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setParameter("MetricName", metricName); +} + +std::string PutCustomMetricRuleRequest::getPeriod()const +{ + return period_; +} + +void PutCustomMetricRuleRequest::setPeriod(const std::string& period) +{ + period_ = period; + setParameter("Period", period); +} + +std::string PutCustomMetricRuleRequest::getContactGroups()const +{ + return contactGroups_; +} + +void PutCustomMetricRuleRequest::setContactGroups(const std::string& contactGroups) +{ + contactGroups_ = contactGroups; + setParameter("ContactGroups", contactGroups); +} + +std::string PutCustomMetricRuleRequest::getLevel()const +{ + return level_; +} + +void PutCustomMetricRuleRequest::setLevel(const std::string& level) +{ + level_ = level; + setParameter("Level", level); +} + +std::string PutCustomMetricRuleRequest::getGroupId()const +{ + return groupId_; +} + +void PutCustomMetricRuleRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string PutCustomMetricRuleRequest::getResources()const +{ + return resources_; +} + +void PutCustomMetricRuleRequest::setResources(const std::string& resources) +{ + resources_ = resources; + setParameter("Resources", resources); +} + +std::string PutCustomMetricRuleRequest::getRuleId()const +{ + return ruleId_; +} + +void PutCustomMetricRuleRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setParameter("RuleId", ruleId); +} + +std::string PutCustomMetricRuleRequest::getComparisonOperator()const +{ + return comparisonOperator_; +} + +void PutCustomMetricRuleRequest::setComparisonOperator(const std::string& comparisonOperator) +{ + comparisonOperator_ = comparisonOperator; + setParameter("ComparisonOperator", comparisonOperator); +} + +std::string PutCustomMetricRuleRequest::getStatistics()const +{ + return statistics_; +} + +void PutCustomMetricRuleRequest::setStatistics(const std::string& statistics) +{ + statistics_ = statistics; + setParameter("Statistics", statistics); +} + diff --git a/cms/src/model/PutCustomMetricRuleResult.cc b/cms/src/model/PutCustomMetricRuleResult.cc new file mode 100644 index 000000000..eb71275d5 --- /dev/null +++ b/cms/src/model/PutCustomMetricRuleResult.cc @@ -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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +PutCustomMetricRuleResult::PutCustomMetricRuleResult() : + ServiceResult() +{} + +PutCustomMetricRuleResult::PutCustomMetricRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutCustomMetricRuleResult::~PutCustomMetricRuleResult() +{} + +void PutCustomMetricRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PutCustomMetricRuleResult::getMessage()const +{ + return message_; +} + +std::string PutCustomMetricRuleResult::getCode()const +{ + return code_; +} + +bool PutCustomMetricRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutGroupMetricRuleRequest.cc b/cms/src/model/PutGroupMetricRuleRequest.cc index 60ad549e9..d29d9f46f 100644 --- a/cms/src/model/PutGroupMetricRuleRequest.cc +++ b/cms/src/model/PutGroupMetricRuleRequest.cc @@ -170,6 +170,17 @@ void PutGroupMetricRuleRequest::setEscalationsWarnThreshold(const std::string& e setParameter("EscalationsWarnThreshold", escalationsWarnThreshold); } +std::string PutGroupMetricRuleRequest::getContactGroups()const +{ + return contactGroups_; +} + +void PutGroupMetricRuleRequest::setContactGroups(const std::string& contactGroups) +{ + contactGroups_ = contactGroups; + setParameter("ContactGroups", contactGroups); +} + std::string PutGroupMetricRuleRequest::getEscalationsCriticalStatistics()const { return escalationsCriticalStatistics_; diff --git a/cms/src/model/PutLogMonitorRequest.cc b/cms/src/model/PutLogMonitorRequest.cc new file mode 100644 index 000000000..73ca1980e --- /dev/null +++ b/cms/src/model/PutLogMonitorRequest.cc @@ -0,0 +1,189 @@ +/* + * 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 + +using AlibabaCloud::Cms::Model::PutLogMonitorRequest; + +PutLogMonitorRequest::PutLogMonitorRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutLogMonitor") +{ + setMethod(HttpRequest::Method::Post); +} + +PutLogMonitorRequest::~PutLogMonitorRequest() +{} + +std::string PutLogMonitorRequest::getSlsLogstore()const +{ + return slsLogstore_; +} + +void PutLogMonitorRequest::setSlsLogstore(const std::string& slsLogstore) +{ + slsLogstore_ = slsLogstore; + setParameter("SlsLogstore", slsLogstore); +} + +std::string PutLogMonitorRequest::getSlsProject()const +{ + return slsProject_; +} + +void PutLogMonitorRequest::setSlsProject(const std::string& slsProject) +{ + slsProject_ = slsProject; + setParameter("SlsProject", slsProject); +} + +std::vector PutLogMonitorRequest::getValueFilter()const +{ + return valueFilter_; +} + +void PutLogMonitorRequest::setValueFilter(const std::vector& valueFilter) +{ + valueFilter_ = valueFilter; + for(int dep1 = 0; dep1!= valueFilter.size(); dep1++) { + auto valueFilterObj = valueFilter.at(dep1); + std::string valueFilterObjStr = "ValueFilter." + std::to_string(dep1 + 1); + setParameter(valueFilterObjStr + ".Value", valueFilterObj.value); + setParameter(valueFilterObjStr + ".Key", valueFilterObj.key); + setParameter(valueFilterObjStr + "._Operator", valueFilterObj._operator); + } +} + +std::string PutLogMonitorRequest::getMetricExpress()const +{ + return metricExpress_; +} + +void PutLogMonitorRequest::setMetricExpress(const std::string& metricExpress) +{ + metricExpress_ = metricExpress; + setParameter("MetricExpress", metricExpress); +} + +std::string PutLogMonitorRequest::getSlsRegionId()const +{ + return slsRegionId_; +} + +void PutLogMonitorRequest::setSlsRegionId(const std::string& slsRegionId) +{ + slsRegionId_ = slsRegionId; + setParameter("SlsRegionId", slsRegionId); +} + +std::string PutLogMonitorRequest::getMetricName()const +{ + return metricName_; +} + +void PutLogMonitorRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setParameter("MetricName", metricName); +} + +std::string PutLogMonitorRequest::getGroupId()const +{ + return groupId_; +} + +void PutLogMonitorRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setParameter("GroupId", groupId); +} + +std::string PutLogMonitorRequest::getTumblingwindows()const +{ + return tumblingwindows_; +} + +void PutLogMonitorRequest::setTumblingwindows(const std::string& tumblingwindows) +{ + tumblingwindows_ = tumblingwindows; + setParameter("Tumblingwindows", tumblingwindows); +} + +std::string PutLogMonitorRequest::getValueFilterRelation()const +{ + return valueFilterRelation_; +} + +void PutLogMonitorRequest::setValueFilterRelation(const std::string& valueFilterRelation) +{ + valueFilterRelation_ = valueFilterRelation; + setParameter("ValueFilterRelation", valueFilterRelation); +} + +std::string PutLogMonitorRequest::getUnit()const +{ + return unit_; +} + +void PutLogMonitorRequest::setUnit(const std::string& unit) +{ + unit_ = unit; + setParameter("Unit", unit); +} + +std::vector PutLogMonitorRequest::getGroupbys()const +{ + return groupbys_; +} + +void PutLogMonitorRequest::setGroupbys(const std::vector& groupbys) +{ + groupbys_ = groupbys; + for(int dep1 = 0; dep1!= groupbys.size(); dep1++) { + auto groupbysObj = groupbys.at(dep1); + std::string groupbysObjStr = "Groupbys." + std::to_string(dep1 + 1); + setParameter(groupbysObjStr + ".FieldName", groupbysObj.fieldName); + setParameter(groupbysObjStr + ".Alias", groupbysObj.alias); + } +} + +std::string PutLogMonitorRequest::getLogId()const +{ + return logId_; +} + +void PutLogMonitorRequest::setLogId(const std::string& logId) +{ + logId_ = logId; + setParameter("LogId", logId); +} + +std::vector PutLogMonitorRequest::getAggregates()const +{ + return aggregates_; +} + +void PutLogMonitorRequest::setAggregates(const std::vector& aggregates) +{ + aggregates_ = aggregates; + for(int dep1 = 0; dep1!= aggregates.size(); dep1++) { + auto aggregatesObj = aggregates.at(dep1); + std::string aggregatesObjStr = "Aggregates." + std::to_string(dep1 + 1); + setParameter(aggregatesObjStr + ".FieldName", aggregatesObj.fieldName); + setParameter(aggregatesObjStr + ".Function", aggregatesObj.function); + setParameter(aggregatesObjStr + ".Alias", aggregatesObj.alias); + } +} + diff --git a/cms/src/model/PutLogMonitorResult.cc b/cms/src/model/PutLogMonitorResult.cc new file mode 100644 index 000000000..91938e8fb --- /dev/null +++ b/cms/src/model/PutLogMonitorResult.cc @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +PutLogMonitorResult::PutLogMonitorResult() : + ServiceResult() +{} + +PutLogMonitorResult::PutLogMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutLogMonitorResult::~PutLogMonitorResult() +{} + +void PutLogMonitorResult::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"; + if(!value["LogId"].isNull()) + logId_ = value["LogId"].asString(); + +} + +std::string PutLogMonitorResult::getMessage()const +{ + return message_; +} + +std::string PutLogMonitorResult::getCode()const +{ + return code_; +} + +std::string PutLogMonitorResult::getLogId()const +{ + return logId_; +} + +bool PutLogMonitorResult::getSuccess()const +{ + return success_; +} +