diff --git a/CHANGELOG b/CHANGELOG index 7ea6c444a..65b957f4e 100644 --- a/CHANGELOG +++ b/CHANGELOG @@ -1,3 +1,8 @@ +2019-12-11 Version 1.36.209 +- Add tag API. +- Add group process monitoring API. +- Add API for batch setting alarm rules. + 2019-12-05 Version 1.36.208 - Add api QueryMetric. diff --git a/VERSION b/VERSION index 1ba731369..5e5fa5264 100644 --- a/VERSION +++ b/VERSION @@ -1 +1 @@ -1.36.208 \ No newline at end of file +1.36.209 \ No newline at end of file diff --git a/cms/CMakeLists.txt b/cms/CMakeLists.txt index 55b6ae626..26998c51b 100644 --- a/cms/CMakeLists.txt +++ b/cms/CMakeLists.txt @@ -21,457 +21,465 @@ set(cms_public_header include/alibabacloud/cms/CmsExport.h ) set(cms_public_header_model - include/alibabacloud/cms/model/AccessKeyGetRequest.h - include/alibabacloud/cms/model/AccessKeyGetResult.h - include/alibabacloud/cms/model/AddMyGroupInstancesRequest.h - include/alibabacloud/cms/model/AddMyGroupInstancesResult.h - include/alibabacloud/cms/model/ApplyMonitoringTemplateRequest.h - include/alibabacloud/cms/model/ApplyMonitoringTemplateResult.h - include/alibabacloud/cms/model/ApplyTemplateRequest.h - include/alibabacloud/cms/model/ApplyTemplateResult.h - include/alibabacloud/cms/model/CreateAlarmRequest.h - include/alibabacloud/cms/model/CreateAlarmResult.h - include/alibabacloud/cms/model/CreateMonitoringTemplateRequest.h - include/alibabacloud/cms/model/CreateMonitoringTemplateResult.h - include/alibabacloud/cms/model/CreateMyGroupAlertBatchRequest.h - include/alibabacloud/cms/model/CreateMyGroupAlertBatchResult.h - include/alibabacloud/cms/model/CreateMyGroupsRequest.h - include/alibabacloud/cms/model/CreateMyGroupsResult.h - include/alibabacloud/cms/model/CreateNotifyPolicyRequest.h - include/alibabacloud/cms/model/CreateNotifyPolicyResult.h - include/alibabacloud/cms/model/CreateTaskRequest.h - include/alibabacloud/cms/model/CreateTaskResult.h - include/alibabacloud/cms/model/DeleteAlarmRequest.h - include/alibabacloud/cms/model/DeleteAlarmResult.h + include/alibabacloud/cms/model/AddTagsRequest.h + include/alibabacloud/cms/model/AddTagsResult.h + include/alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h + include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h + include/alibabacloud/cms/model/CreateGroupMetricRulesRequest.h + include/alibabacloud/cms/model/CreateGroupMetricRulesResult.h + include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessRequest.h + include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessResult.h + include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h + include/alibabacloud/cms/model/CreateHostAvailabilityResult.h + include/alibabacloud/cms/model/CreateMetricRuleResourcesRequest.h + include/alibabacloud/cms/model/CreateMetricRuleResourcesResult.h + include/alibabacloud/cms/model/CreateMetricRuleTemplateRequest.h + include/alibabacloud/cms/model/CreateMetricRuleTemplateResult.h + include/alibabacloud/cms/model/CreateMonitorAgentProcessRequest.h + include/alibabacloud/cms/model/CreateMonitorAgentProcessResult.h + include/alibabacloud/cms/model/CreateMonitorGroupRequest.h + include/alibabacloud/cms/model/CreateMonitorGroupResult.h + include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h + include/alibabacloud/cms/model/CreateMonitorGroupInstancesResult.h + include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyRequest.h + include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyResult.h + include/alibabacloud/cms/model/CreateMonitoringAgentProcessRequest.h + include/alibabacloud/cms/model/CreateMonitoringAgentProcessResult.h + include/alibabacloud/cms/model/CreateSiteMonitorRequest.h + include/alibabacloud/cms/model/CreateSiteMonitorResult.h + include/alibabacloud/cms/model/DeleteContactRequest.h + include/alibabacloud/cms/model/DeleteContactResult.h + include/alibabacloud/cms/model/DeleteContactGroupRequest.h + include/alibabacloud/cms/model/DeleteContactGroupResult.h include/alibabacloud/cms/model/DeleteCustomMetricRequest.h include/alibabacloud/cms/model/DeleteCustomMetricResult.h - include/alibabacloud/cms/model/DeleteEventRuleRequest.h - include/alibabacloud/cms/model/DeleteEventRuleResult.h - include/alibabacloud/cms/model/DeleteEventTargetsRequest.h - include/alibabacloud/cms/model/DeleteEventTargetsResult.h - include/alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.h - include/alibabacloud/cms/model/DeleteGroupDynamicRuleResult.h - include/alibabacloud/cms/model/DeleteMonitoringTemplateRequest.h - include/alibabacloud/cms/model/DeleteMonitoringTemplateResult.h - include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h - include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h - include/alibabacloud/cms/model/DeleteMyGroupsRequest.h - include/alibabacloud/cms/model/DeleteMyGroupsResult.h - include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h - include/alibabacloud/cms/model/DeleteNotifyPolicyResult.h - include/alibabacloud/cms/model/DeleteTasksRequest.h - include/alibabacloud/cms/model/DeleteTasksResult.h - include/alibabacloud/cms/model/DescribeAlarmHistoryRequest.h - include/alibabacloud/cms/model/DescribeAlarmHistoryResult.h - include/alibabacloud/cms/model/DescribeAlarmsRequest.h - include/alibabacloud/cms/model/DescribeAlarmsResult.h - include/alibabacloud/cms/model/DescribeAlarmsForResourcesRequest.h - include/alibabacloud/cms/model/DescribeAlarmsForResourcesResult.h + include/alibabacloud/cms/model/DeleteEventRuleTargetsRequest.h + include/alibabacloud/cms/model/DeleteEventRuleTargetsResult.h + include/alibabacloud/cms/model/DeleteEventRulesRequest.h + include/alibabacloud/cms/model/DeleteEventRulesResult.h + include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessRequest.h + include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessResult.h + include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.h + include/alibabacloud/cms/model/DeleteHostAvailabilityResult.h + include/alibabacloud/cms/model/DeleteMetricRuleResourcesRequest.h + include/alibabacloud/cms/model/DeleteMetricRuleResourcesResult.h + include/alibabacloud/cms/model/DeleteMetricRuleTargetsRequest.h + include/alibabacloud/cms/model/DeleteMetricRuleTargetsResult.h + include/alibabacloud/cms/model/DeleteMetricRuleTemplateRequest.h + include/alibabacloud/cms/model/DeleteMetricRuleTemplateResult.h + include/alibabacloud/cms/model/DeleteMetricRulesRequest.h + include/alibabacloud/cms/model/DeleteMetricRulesResult.h + include/alibabacloud/cms/model/DeleteMonitorGroupRequest.h + include/alibabacloud/cms/model/DeleteMonitorGroupResult.h + include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleRequest.h + include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleResult.h + include/alibabacloud/cms/model/DeleteMonitorGroupInstancesRequest.h + include/alibabacloud/cms/model/DeleteMonitorGroupInstancesResult.h + include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyRequest.h + include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyResult.h + include/alibabacloud/cms/model/DeleteMonitoringAgentProcessRequest.h + include/alibabacloud/cms/model/DeleteMonitoringAgentProcessResult.h + include/alibabacloud/cms/model/DeleteSiteMonitorsRequest.h + include/alibabacloud/cms/model/DeleteSiteMonitorsResult.h + include/alibabacloud/cms/model/DescribeActiveMetricRuleListRequest.h + include/alibabacloud/cms/model/DescribeActiveMetricRuleListResult.h include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h - include/alibabacloud/cms/model/DescribeContactRequest.h - include/alibabacloud/cms/model/DescribeContactResult.h - include/alibabacloud/cms/model/DescribeEventRuleRequest.h - include/alibabacloud/cms/model/DescribeEventRuleResult.h - include/alibabacloud/cms/model/DescribeISPAreaCityRequest.h - include/alibabacloud/cms/model/DescribeISPAreaCityResult.h + include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h + include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h + include/alibabacloud/cms/model/DescribeContactGroupListRequest.h + include/alibabacloud/cms/model/DescribeContactGroupListResult.h + include/alibabacloud/cms/model/DescribeContactListRequest.h + include/alibabacloud/cms/model/DescribeContactListResult.h + include/alibabacloud/cms/model/DescribeContactListByContactGroupRequest.h + include/alibabacloud/cms/model/DescribeContactListByContactGroupResult.h + include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h + include/alibabacloud/cms/model/DescribeCustomEventAttributeResult.h + include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h + include/alibabacloud/cms/model/DescribeCustomEventCountResult.h + include/alibabacloud/cms/model/DescribeCustomEventHistogramRequest.h + include/alibabacloud/cms/model/DescribeCustomEventHistogramResult.h + include/alibabacloud/cms/model/DescribeCustomMetricListRequest.h + include/alibabacloud/cms/model/DescribeCustomMetricListResult.h + include/alibabacloud/cms/model/DescribeEventRuleAttributeRequest.h + include/alibabacloud/cms/model/DescribeEventRuleAttributeResult.h + include/alibabacloud/cms/model/DescribeEventRuleListRequest.h + include/alibabacloud/cms/model/DescribeEventRuleListResult.h + include/alibabacloud/cms/model/DescribeEventRuleTargetListRequest.h + include/alibabacloud/cms/model/DescribeEventRuleTargetListResult.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/DescribeMetricDataRequest.h + include/alibabacloud/cms/model/DescribeMetricDataResult.h + include/alibabacloud/cms/model/DescribeMetricLastRequest.h + include/alibabacloud/cms/model/DescribeMetricLastResult.h + include/alibabacloud/cms/model/DescribeMetricListRequest.h + include/alibabacloud/cms/model/DescribeMetricListResult.h + include/alibabacloud/cms/model/DescribeMetricMetaListRequest.h + include/alibabacloud/cms/model/DescribeMetricMetaListResult.h + include/alibabacloud/cms/model/DescribeMetricRuleCountRequest.h + include/alibabacloud/cms/model/DescribeMetricRuleCountResult.h + include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h + include/alibabacloud/cms/model/DescribeMetricRuleListResult.h include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h include/alibabacloud/cms/model/DescribeMetricRuleTargetsResult.h - include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.h - include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.h + include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h + include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeResult.h + include/alibabacloud/cms/model/DescribeMetricRuleTemplateListRequest.h + include/alibabacloud/cms/model/DescribeMetricRuleTemplateListResult.h + include/alibabacloud/cms/model/DescribeMetricTopRequest.h + include/alibabacloud/cms/model/DescribeMetricTopResult.h + include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesRequest.h + include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesResult.h + include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesRequest.h + include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesResult.h + include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeRequest.h + include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeResult.h + include/alibabacloud/cms/model/DescribeMonitorGroupInstancesRequest.h + include/alibabacloud/cms/model/DescribeMonitorGroupInstancesResult.h + include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListRequest.h + include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListResult.h + include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h + include/alibabacloud/cms/model/DescribeMonitorGroupsResult.h + include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyRequest.h + include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyResult.h + include/alibabacloud/cms/model/DescribeMonitoringAgentConfigRequest.h + include/alibabacloud/cms/model/DescribeMonitoringAgentConfigResult.h + include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h + include/alibabacloud/cms/model/DescribeMonitoringAgentHostsResult.h + include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesRequest.h + include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesResult.h + include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesRequest.h + include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesResult.h + include/alibabacloud/cms/model/DescribeMonitoringConfigRequest.h + include/alibabacloud/cms/model/DescribeMonitoringConfigResult.h + include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleRequest.h + include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleResult.h + include/alibabacloud/cms/model/DescribeProjectMetaRequest.h + include/alibabacloud/cms/model/DescribeProjectMetaResult.h + include/alibabacloud/cms/model/DescribeSiteMonitorAttributeRequest.h + include/alibabacloud/cms/model/DescribeSiteMonitorAttributeResult.h + include/alibabacloud/cms/model/DescribeSiteMonitorDataRequest.h + include/alibabacloud/cms/model/DescribeSiteMonitorDataResult.h include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h - include/alibabacloud/cms/model/DescribeTaskDetailRequest.h - include/alibabacloud/cms/model/DescribeTaskDetailResult.h - include/alibabacloud/cms/model/DescribeTasksRequest.h - include/alibabacloud/cms/model/DescribeTasksResult.h - include/alibabacloud/cms/model/DisableActiveAlertRequest.h - include/alibabacloud/cms/model/DisableActiveAlertResult.h - include/alibabacloud/cms/model/DisableAlarmRequest.h - include/alibabacloud/cms/model/DisableAlarmResult.h - include/alibabacloud/cms/model/DisableEventRuleRequest.h - include/alibabacloud/cms/model/DisableEventRuleResult.h - include/alibabacloud/cms/model/EnableActiveAlertRequest.h - include/alibabacloud/cms/model/EnableActiveAlertResult.h - include/alibabacloud/cms/model/EnableAlarmRequest.h - include/alibabacloud/cms/model/EnableAlarmResult.h - include/alibabacloud/cms/model/EnableEventRuleRequest.h - include/alibabacloud/cms/model/EnableEventRuleResult.h - include/alibabacloud/cms/model/GetContactsRequest.h - include/alibabacloud/cms/model/GetContactsResult.h - include/alibabacloud/cms/model/GetMonitoringTemplateRequest.h - include/alibabacloud/cms/model/GetMonitoringTemplateResult.h - include/alibabacloud/cms/model/GetMyGroupAlertRequest.h - include/alibabacloud/cms/model/GetMyGroupAlertResult.h - include/alibabacloud/cms/model/GetMyGroupsRequest.h - include/alibabacloud/cms/model/GetMyGroupsResult.h - include/alibabacloud/cms/model/GetNotifyPolicyRequest.h - include/alibabacloud/cms/model/GetNotifyPolicyResult.h - include/alibabacloud/cms/model/ListActiveAlertRuleRequest.h - include/alibabacloud/cms/model/ListActiveAlertRuleResult.h - include/alibabacloud/cms/model/ListAlarmRequest.h - include/alibabacloud/cms/model/ListAlarmResult.h - include/alibabacloud/cms/model/ListAlarmHistoryRequest.h - include/alibabacloud/cms/model/ListAlarmHistoryResult.h - include/alibabacloud/cms/model/ListContactGroupRequest.h - include/alibabacloud/cms/model/ListContactGroupResult.h - include/alibabacloud/cms/model/ListEventRulesRequest.h - include/alibabacloud/cms/model/ListEventRulesResult.h - include/alibabacloud/cms/model/ListEventTargetsByRuleRequest.h - include/alibabacloud/cms/model/ListEventTargetsByRuleResult.h - include/alibabacloud/cms/model/ListGroupDynamicRuleRequest.h - include/alibabacloud/cms/model/ListGroupDynamicRuleResult.h - include/alibabacloud/cms/model/ListMonitoringTemplatesRequest.h - include/alibabacloud/cms/model/ListMonitoringTemplatesResult.h - include/alibabacloud/cms/model/ListMyGroupCategoriesRequest.h - include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h - include/alibabacloud/cms/model/ListMyGroupInstancesRequest.h - include/alibabacloud/cms/model/ListMyGroupInstancesResult.h - include/alibabacloud/cms/model/ListMyGroupInstancesDetailsRequest.h - include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h - include/alibabacloud/cms/model/ListMyGroupsRequest.h - include/alibabacloud/cms/model/ListMyGroupsResult.h - include/alibabacloud/cms/model/ListNotifyPolicyRequest.h - include/alibabacloud/cms/model/ListNotifyPolicyResult.h - include/alibabacloud/cms/model/ListProductOfActiveAlertRequest.h - include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h - include/alibabacloud/cms/model/ModifyTaskRequest.h - include/alibabacloud/cms/model/ModifyTaskResult.h - include/alibabacloud/cms/model/NodeInstallRequest.h - include/alibabacloud/cms/model/NodeInstallResult.h - include/alibabacloud/cms/model/NodeListRequest.h - include/alibabacloud/cms/model/NodeListResult.h - include/alibabacloud/cms/model/NodeProcessCreateRequest.h - include/alibabacloud/cms/model/NodeProcessCreateResult.h - include/alibabacloud/cms/model/NodeProcessDeleteRequest.h - include/alibabacloud/cms/model/NodeProcessDeleteResult.h - include/alibabacloud/cms/model/NodeProcessesRequest.h - include/alibabacloud/cms/model/NodeProcessesResult.h - include/alibabacloud/cms/model/NodeStatusRequest.h - include/alibabacloud/cms/model/NodeStatusResult.h - include/alibabacloud/cms/model/NodeStatusListRequest.h - include/alibabacloud/cms/model/NodeStatusListResult.h - include/alibabacloud/cms/model/NodeUninstallRequest.h - include/alibabacloud/cms/model/NodeUninstallResult.h - include/alibabacloud/cms/model/ProfileGetRequest.h - include/alibabacloud/cms/model/ProfileGetResult.h - include/alibabacloud/cms/model/ProfileSetRequest.h - include/alibabacloud/cms/model/ProfileSetResult.h + include/alibabacloud/cms/model/DescribeSiteMonitorListRequest.h + include/alibabacloud/cms/model/DescribeSiteMonitorListResult.h + include/alibabacloud/cms/model/DescribeSiteMonitorQuotaRequest.h + include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h + include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsRequest.h + include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsResult.h + include/alibabacloud/cms/model/DescribeSystemEventAttributeRequest.h + include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h + include/alibabacloud/cms/model/DescribeSystemEventCountRequest.h + include/alibabacloud/cms/model/DescribeSystemEventCountResult.h + include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h + include/alibabacloud/cms/model/DescribeSystemEventHistogramResult.h + include/alibabacloud/cms/model/DescribeSystemEventMetaListRequest.h + include/alibabacloud/cms/model/DescribeSystemEventMetaListResult.h + include/alibabacloud/cms/model/DescribeTagKeyListRequest.h + include/alibabacloud/cms/model/DescribeTagKeyListResult.h + include/alibabacloud/cms/model/DescribeTagValueListRequest.h + include/alibabacloud/cms/model/DescribeTagValueListResult.h + include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityRequest.h + include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityResult.h + include/alibabacloud/cms/model/DisableActiveMetricRuleRequest.h + include/alibabacloud/cms/model/DisableActiveMetricRuleResult.h + include/alibabacloud/cms/model/DisableEventRulesRequest.h + include/alibabacloud/cms/model/DisableEventRulesResult.h + include/alibabacloud/cms/model/DisableHostAvailabilityRequest.h + include/alibabacloud/cms/model/DisableHostAvailabilityResult.h + include/alibabacloud/cms/model/DisableMetricRulesRequest.h + include/alibabacloud/cms/model/DisableMetricRulesResult.h + include/alibabacloud/cms/model/DisableSiteMonitorsRequest.h + include/alibabacloud/cms/model/DisableSiteMonitorsResult.h + include/alibabacloud/cms/model/EnableActiveMetricRuleRequest.h + include/alibabacloud/cms/model/EnableActiveMetricRuleResult.h + include/alibabacloud/cms/model/EnableEventRulesRequest.h + include/alibabacloud/cms/model/EnableEventRulesResult.h + include/alibabacloud/cms/model/EnableHostAvailabilityRequest.h + include/alibabacloud/cms/model/EnableHostAvailabilityResult.h + include/alibabacloud/cms/model/EnableMetricRulesRequest.h + include/alibabacloud/cms/model/EnableMetricRulesResult.h + include/alibabacloud/cms/model/EnableSiteMonitorsRequest.h + include/alibabacloud/cms/model/EnableSiteMonitorsResult.h + include/alibabacloud/cms/model/InstallMonitoringAgentRequest.h + include/alibabacloud/cms/model/InstallMonitoringAgentResult.h + include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h + include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessResult.h + include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h + include/alibabacloud/cms/model/ModifyHostAvailabilityResult.h + include/alibabacloud/cms/model/ModifyMetricRuleTemplateRequest.h + include/alibabacloud/cms/model/ModifyMetricRuleTemplateResult.h + include/alibabacloud/cms/model/ModifyMonitorGroupRequest.h + include/alibabacloud/cms/model/ModifyMonitorGroupResult.h + include/alibabacloud/cms/model/ModifyMonitorGroupInstancesRequest.h + include/alibabacloud/cms/model/ModifyMonitorGroupInstancesResult.h + include/alibabacloud/cms/model/ModifySiteMonitorRequest.h + include/alibabacloud/cms/model/ModifySiteMonitorResult.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/PutCustomMetricRequest.h include/alibabacloud/cms/model/PutCustomMetricResult.h - include/alibabacloud/cms/model/PutEventRequest.h - include/alibabacloud/cms/model/PutEventResult.h include/alibabacloud/cms/model/PutEventRuleRequest.h include/alibabacloud/cms/model/PutEventRuleResult.h - include/alibabacloud/cms/model/PutEventTargetsRequest.h - include/alibabacloud/cms/model/PutEventTargetsResult.h - include/alibabacloud/cms/model/PutGroupDynamicRuleRequest.h - include/alibabacloud/cms/model/PutGroupDynamicRuleResult.h - include/alibabacloud/cms/model/PutMetricAlarmRequest.h - include/alibabacloud/cms/model/PutMetricAlarmResult.h + include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h + include/alibabacloud/cms/model/PutEventRuleTargetsResult.h + include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h + include/alibabacloud/cms/model/PutGroupMetricRuleResult.h include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h include/alibabacloud/cms/model/PutMetricRuleTargetsResult.h - include/alibabacloud/cms/model/QueryCustomEventCountRequest.h - include/alibabacloud/cms/model/QueryCustomEventCountResult.h - include/alibabacloud/cms/model/QueryCustomEventDetailRequest.h - include/alibabacloud/cms/model/QueryCustomEventDetailResult.h - include/alibabacloud/cms/model/QueryCustomEventHistogramRequest.h - include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h - include/alibabacloud/cms/model/QueryCustomMetricListRequest.h - include/alibabacloud/cms/model/QueryCustomMetricListResult.h - include/alibabacloud/cms/model/QueryErrorDistributionRequest.h - include/alibabacloud/cms/model/QueryErrorDistributionResult.h - include/alibabacloud/cms/model/QueryMetricDataRequest.h - include/alibabacloud/cms/model/QueryMetricDataResult.h - include/alibabacloud/cms/model/QueryMetricLastRequest.h - include/alibabacloud/cms/model/QueryMetricLastResult.h - include/alibabacloud/cms/model/QueryMetricListRequest.h - include/alibabacloud/cms/model/QueryMetricListResult.h - include/alibabacloud/cms/model/QueryMetricMetaRequest.h - include/alibabacloud/cms/model/QueryMetricMetaResult.h - include/alibabacloud/cms/model/QueryMetricTopRequest.h - include/alibabacloud/cms/model/QueryMetricTopResult.h - include/alibabacloud/cms/model/QueryMonitorDataRequest.h - include/alibabacloud/cms/model/QueryMonitorDataResult.h - include/alibabacloud/cms/model/QueryProjectMetaRequest.h - include/alibabacloud/cms/model/QueryProjectMetaResult.h - include/alibabacloud/cms/model/QueryStaticsAvailabilityRequest.h - include/alibabacloud/cms/model/QueryStaticsAvailabilityResult.h - include/alibabacloud/cms/model/QueryStaticsErrorRateRequest.h - include/alibabacloud/cms/model/QueryStaticsErrorRateResult.h - include/alibabacloud/cms/model/QueryStaticsResponseTimeRequest.h - include/alibabacloud/cms/model/QueryStaticsResponseTimeResult.h - include/alibabacloud/cms/model/QuerySystemEventCountRequest.h - include/alibabacloud/cms/model/QuerySystemEventCountResult.h - include/alibabacloud/cms/model/QuerySystemEventDemoRequest.h - include/alibabacloud/cms/model/QuerySystemEventDemoResult.h - include/alibabacloud/cms/model/QuerySystemEventDetailRequest.h - include/alibabacloud/cms/model/QuerySystemEventDetailResult.h - include/alibabacloud/cms/model/QuerySystemEventHistogramRequest.h - include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h - include/alibabacloud/cms/model/QueryTaskConfigRequest.h - include/alibabacloud/cms/model/QueryTaskConfigResult.h - include/alibabacloud/cms/model/QueryTaskMonitorDataRequest.h - include/alibabacloud/cms/model/QueryTaskMonitorDataResult.h - include/alibabacloud/cms/model/RemoveMetricRuleTargetsRequest.h - include/alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h + include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleRequest.h + include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleResult.h + include/alibabacloud/cms/model/PutMonitoringConfigRequest.h + include/alibabacloud/cms/model/PutMonitoringConfigResult.h + include/alibabacloud/cms/model/PutResourceMetricRuleRequest.h + include/alibabacloud/cms/model/PutResourceMetricRuleResult.h + include/alibabacloud/cms/model/PutResourceMetricRulesRequest.h + include/alibabacloud/cms/model/PutResourceMetricRulesResult.h + include/alibabacloud/cms/model/RemoveTagsRequest.h + include/alibabacloud/cms/model/RemoveTagsResult.h include/alibabacloud/cms/model/SendDryRunSystemEventRequest.h include/alibabacloud/cms/model/SendDryRunSystemEventResult.h - include/alibabacloud/cms/model/StartTasksRequest.h - include/alibabacloud/cms/model/StartTasksResult.h - include/alibabacloud/cms/model/StopTasksRequest.h - include/alibabacloud/cms/model/StopTasksResult.h - include/alibabacloud/cms/model/TaskConfigCreateRequest.h - include/alibabacloud/cms/model/TaskConfigCreateResult.h - include/alibabacloud/cms/model/TaskConfigDeleteRequest.h - include/alibabacloud/cms/model/TaskConfigDeleteResult.h - include/alibabacloud/cms/model/TaskConfigEnableRequest.h - include/alibabacloud/cms/model/TaskConfigEnableResult.h - include/alibabacloud/cms/model/TaskConfigListRequest.h - include/alibabacloud/cms/model/TaskConfigListResult.h - include/alibabacloud/cms/model/TaskConfigModifyRequest.h - include/alibabacloud/cms/model/TaskConfigModifyResult.h - include/alibabacloud/cms/model/TaskConfigUnhealthyRequest.h - include/alibabacloud/cms/model/TaskConfigUnhealthyResult.h - include/alibabacloud/cms/model/UpdateAlarmRequest.h - include/alibabacloud/cms/model/UpdateAlarmResult.h - include/alibabacloud/cms/model/UpdateMonitoringTemplateRequest.h - include/alibabacloud/cms/model/UpdateMonitoringTemplateResult.h - include/alibabacloud/cms/model/UpdateMyGroupAlertRequest.h - include/alibabacloud/cms/model/UpdateMyGroupAlertResult.h - include/alibabacloud/cms/model/UpdateMyGroupInstancesRequest.h - include/alibabacloud/cms/model/UpdateMyGroupInstancesResult.h - include/alibabacloud/cms/model/UpdateMyGroupMembersRequest.h - include/alibabacloud/cms/model/UpdateMyGroupMembersResult.h - include/alibabacloud/cms/model/UpdateMyGroupsRequest.h - include/alibabacloud/cms/model/UpdateMyGroupsResult.h ) + include/alibabacloud/cms/model/UninstallMonitoringAgentRequest.h + include/alibabacloud/cms/model/UninstallMonitoringAgentResult.h ) set(cms_src src/CmsClient.cc - src/model/AccessKeyGetRequest.cc - src/model/AccessKeyGetResult.cc - src/model/AddMyGroupInstancesRequest.cc - src/model/AddMyGroupInstancesResult.cc - src/model/ApplyMonitoringTemplateRequest.cc - src/model/ApplyMonitoringTemplateResult.cc - src/model/ApplyTemplateRequest.cc - src/model/ApplyTemplateResult.cc - src/model/CreateAlarmRequest.cc - src/model/CreateAlarmResult.cc - src/model/CreateMonitoringTemplateRequest.cc - src/model/CreateMonitoringTemplateResult.cc - src/model/CreateMyGroupAlertBatchRequest.cc - src/model/CreateMyGroupAlertBatchResult.cc - src/model/CreateMyGroupsRequest.cc - src/model/CreateMyGroupsResult.cc - src/model/CreateNotifyPolicyRequest.cc - src/model/CreateNotifyPolicyResult.cc - src/model/CreateTaskRequest.cc - src/model/CreateTaskResult.cc - src/model/DeleteAlarmRequest.cc - src/model/DeleteAlarmResult.cc + src/model/AddTagsRequest.cc + src/model/AddTagsResult.cc + src/model/ApplyMetricRuleTemplateRequest.cc + src/model/ApplyMetricRuleTemplateResult.cc + src/model/CreateGroupMetricRulesRequest.cc + src/model/CreateGroupMetricRulesResult.cc + src/model/CreateGroupMonitoringAgentProcessRequest.cc + src/model/CreateGroupMonitoringAgentProcessResult.cc + src/model/CreateHostAvailabilityRequest.cc + src/model/CreateHostAvailabilityResult.cc + src/model/CreateMetricRuleResourcesRequest.cc + src/model/CreateMetricRuleResourcesResult.cc + src/model/CreateMetricRuleTemplateRequest.cc + src/model/CreateMetricRuleTemplateResult.cc + src/model/CreateMonitorAgentProcessRequest.cc + src/model/CreateMonitorAgentProcessResult.cc + src/model/CreateMonitorGroupRequest.cc + src/model/CreateMonitorGroupResult.cc + src/model/CreateMonitorGroupInstancesRequest.cc + src/model/CreateMonitorGroupInstancesResult.cc + src/model/CreateMonitorGroupNotifyPolicyRequest.cc + src/model/CreateMonitorGroupNotifyPolicyResult.cc + src/model/CreateMonitoringAgentProcessRequest.cc + src/model/CreateMonitoringAgentProcessResult.cc + src/model/CreateSiteMonitorRequest.cc + src/model/CreateSiteMonitorResult.cc + src/model/DeleteContactRequest.cc + src/model/DeleteContactResult.cc + src/model/DeleteContactGroupRequest.cc + src/model/DeleteContactGroupResult.cc src/model/DeleteCustomMetricRequest.cc src/model/DeleteCustomMetricResult.cc - src/model/DeleteEventRuleRequest.cc - src/model/DeleteEventRuleResult.cc - src/model/DeleteEventTargetsRequest.cc - src/model/DeleteEventTargetsResult.cc - src/model/DeleteGroupDynamicRuleRequest.cc - src/model/DeleteGroupDynamicRuleResult.cc - src/model/DeleteMonitoringTemplateRequest.cc - src/model/DeleteMonitoringTemplateResult.cc - src/model/DeleteMyGroupInstancesRequest.cc - src/model/DeleteMyGroupInstancesResult.cc - src/model/DeleteMyGroupsRequest.cc - src/model/DeleteMyGroupsResult.cc - src/model/DeleteNotifyPolicyRequest.cc - src/model/DeleteNotifyPolicyResult.cc - src/model/DeleteTasksRequest.cc - src/model/DeleteTasksResult.cc - src/model/DescribeAlarmHistoryRequest.cc - src/model/DescribeAlarmHistoryResult.cc - src/model/DescribeAlarmsRequest.cc - src/model/DescribeAlarmsResult.cc - src/model/DescribeAlarmsForResourcesRequest.cc - src/model/DescribeAlarmsForResourcesResult.cc + src/model/DeleteEventRuleTargetsRequest.cc + src/model/DeleteEventRuleTargetsResult.cc + src/model/DeleteEventRulesRequest.cc + src/model/DeleteEventRulesResult.cc + src/model/DeleteGroupMonitoringAgentProcessRequest.cc + src/model/DeleteGroupMonitoringAgentProcessResult.cc + src/model/DeleteHostAvailabilityRequest.cc + src/model/DeleteHostAvailabilityResult.cc + src/model/DeleteMetricRuleResourcesRequest.cc + src/model/DeleteMetricRuleResourcesResult.cc + src/model/DeleteMetricRuleTargetsRequest.cc + src/model/DeleteMetricRuleTargetsResult.cc + src/model/DeleteMetricRuleTemplateRequest.cc + src/model/DeleteMetricRuleTemplateResult.cc + src/model/DeleteMetricRulesRequest.cc + src/model/DeleteMetricRulesResult.cc + src/model/DeleteMonitorGroupRequest.cc + src/model/DeleteMonitorGroupResult.cc + src/model/DeleteMonitorGroupDynamicRuleRequest.cc + src/model/DeleteMonitorGroupDynamicRuleResult.cc + src/model/DeleteMonitorGroupInstancesRequest.cc + src/model/DeleteMonitorGroupInstancesResult.cc + src/model/DeleteMonitorGroupNotifyPolicyRequest.cc + src/model/DeleteMonitorGroupNotifyPolicyResult.cc + src/model/DeleteMonitoringAgentProcessRequest.cc + src/model/DeleteMonitoringAgentProcessResult.cc + src/model/DeleteSiteMonitorsRequest.cc + src/model/DeleteSiteMonitorsResult.cc + src/model/DescribeActiveMetricRuleListRequest.cc + src/model/DescribeActiveMetricRuleListResult.cc src/model/DescribeAlertHistoryListRequest.cc src/model/DescribeAlertHistoryListResult.cc - src/model/DescribeContactRequest.cc - src/model/DescribeContactResult.cc - src/model/DescribeEventRuleRequest.cc - src/model/DescribeEventRuleResult.cc - src/model/DescribeISPAreaCityRequest.cc - src/model/DescribeISPAreaCityResult.cc + src/model/DescribeAlertingMetricRuleResourcesRequest.cc + src/model/DescribeAlertingMetricRuleResourcesResult.cc + src/model/DescribeContactGroupListRequest.cc + src/model/DescribeContactGroupListResult.cc + src/model/DescribeContactListRequest.cc + src/model/DescribeContactListResult.cc + src/model/DescribeContactListByContactGroupRequest.cc + src/model/DescribeContactListByContactGroupResult.cc + src/model/DescribeCustomEventAttributeRequest.cc + src/model/DescribeCustomEventAttributeResult.cc + src/model/DescribeCustomEventCountRequest.cc + src/model/DescribeCustomEventCountResult.cc + src/model/DescribeCustomEventHistogramRequest.cc + src/model/DescribeCustomEventHistogramResult.cc + src/model/DescribeCustomMetricListRequest.cc + src/model/DescribeCustomMetricListResult.cc + src/model/DescribeEventRuleAttributeRequest.cc + src/model/DescribeEventRuleAttributeResult.cc + src/model/DescribeEventRuleListRequest.cc + src/model/DescribeEventRuleListResult.cc + src/model/DescribeEventRuleTargetListRequest.cc + src/model/DescribeEventRuleTargetListResult.cc + src/model/DescribeGroupMonitoringAgentProcessRequest.cc + src/model/DescribeGroupMonitoringAgentProcessResult.cc + src/model/DescribeHostAvailabilityListRequest.cc + src/model/DescribeHostAvailabilityListResult.cc + src/model/DescribeMetricDataRequest.cc + src/model/DescribeMetricDataResult.cc + src/model/DescribeMetricLastRequest.cc + src/model/DescribeMetricLastResult.cc + src/model/DescribeMetricListRequest.cc + src/model/DescribeMetricListResult.cc + src/model/DescribeMetricMetaListRequest.cc + src/model/DescribeMetricMetaListResult.cc + src/model/DescribeMetricRuleCountRequest.cc + src/model/DescribeMetricRuleCountResult.cc + src/model/DescribeMetricRuleListRequest.cc + src/model/DescribeMetricRuleListResult.cc src/model/DescribeMetricRuleTargetsRequest.cc src/model/DescribeMetricRuleTargetsResult.cc - src/model/DescribeSiteMonitorISPAreaCityRequest.cc - src/model/DescribeSiteMonitorISPAreaCityResult.cc + src/model/DescribeMetricRuleTemplateAttributeRequest.cc + src/model/DescribeMetricRuleTemplateAttributeResult.cc + src/model/DescribeMetricRuleTemplateListRequest.cc + src/model/DescribeMetricRuleTemplateListResult.cc + src/model/DescribeMetricTopRequest.cc + src/model/DescribeMetricTopResult.cc + src/model/DescribeMonitorGroupCategoriesRequest.cc + src/model/DescribeMonitorGroupCategoriesResult.cc + src/model/DescribeMonitorGroupDynamicRulesRequest.cc + src/model/DescribeMonitorGroupDynamicRulesResult.cc + src/model/DescribeMonitorGroupInstanceAttributeRequest.cc + src/model/DescribeMonitorGroupInstanceAttributeResult.cc + src/model/DescribeMonitorGroupInstancesRequest.cc + src/model/DescribeMonitorGroupInstancesResult.cc + src/model/DescribeMonitorGroupNotifyPolicyListRequest.cc + src/model/DescribeMonitorGroupNotifyPolicyListResult.cc + src/model/DescribeMonitorGroupsRequest.cc + src/model/DescribeMonitorGroupsResult.cc + src/model/DescribeMonitoringAgentAccessKeyRequest.cc + src/model/DescribeMonitoringAgentAccessKeyResult.cc + src/model/DescribeMonitoringAgentConfigRequest.cc + src/model/DescribeMonitoringAgentConfigResult.cc + src/model/DescribeMonitoringAgentHostsRequest.cc + src/model/DescribeMonitoringAgentHostsResult.cc + src/model/DescribeMonitoringAgentProcessesRequest.cc + src/model/DescribeMonitoringAgentProcessesResult.cc + src/model/DescribeMonitoringAgentStatusesRequest.cc + src/model/DescribeMonitoringAgentStatusesResult.cc + src/model/DescribeMonitoringConfigRequest.cc + src/model/DescribeMonitoringConfigResult.cc + src/model/DescribeProductsOfActiveMetricRuleRequest.cc + src/model/DescribeProductsOfActiveMetricRuleResult.cc + src/model/DescribeProjectMetaRequest.cc + src/model/DescribeProjectMetaResult.cc + src/model/DescribeSiteMonitorAttributeRequest.cc + src/model/DescribeSiteMonitorAttributeResult.cc + src/model/DescribeSiteMonitorDataRequest.cc + src/model/DescribeSiteMonitorDataResult.cc src/model/DescribeSiteMonitorISPCityListRequest.cc src/model/DescribeSiteMonitorISPCityListResult.cc - src/model/DescribeTaskDetailRequest.cc - src/model/DescribeTaskDetailResult.cc - src/model/DescribeTasksRequest.cc - src/model/DescribeTasksResult.cc - src/model/DisableActiveAlertRequest.cc - src/model/DisableActiveAlertResult.cc - src/model/DisableAlarmRequest.cc - src/model/DisableAlarmResult.cc - src/model/DisableEventRuleRequest.cc - src/model/DisableEventRuleResult.cc - src/model/EnableActiveAlertRequest.cc - src/model/EnableActiveAlertResult.cc - src/model/EnableAlarmRequest.cc - src/model/EnableAlarmResult.cc - src/model/EnableEventRuleRequest.cc - src/model/EnableEventRuleResult.cc - src/model/GetContactsRequest.cc - src/model/GetContactsResult.cc - src/model/GetMonitoringTemplateRequest.cc - src/model/GetMonitoringTemplateResult.cc - src/model/GetMyGroupAlertRequest.cc - src/model/GetMyGroupAlertResult.cc - src/model/GetMyGroupsRequest.cc - src/model/GetMyGroupsResult.cc - src/model/GetNotifyPolicyRequest.cc - src/model/GetNotifyPolicyResult.cc - src/model/ListActiveAlertRuleRequest.cc - src/model/ListActiveAlertRuleResult.cc - src/model/ListAlarmRequest.cc - src/model/ListAlarmResult.cc - src/model/ListAlarmHistoryRequest.cc - src/model/ListAlarmHistoryResult.cc - src/model/ListContactGroupRequest.cc - src/model/ListContactGroupResult.cc - src/model/ListEventRulesRequest.cc - src/model/ListEventRulesResult.cc - src/model/ListEventTargetsByRuleRequest.cc - src/model/ListEventTargetsByRuleResult.cc - src/model/ListGroupDynamicRuleRequest.cc - src/model/ListGroupDynamicRuleResult.cc - src/model/ListMonitoringTemplatesRequest.cc - src/model/ListMonitoringTemplatesResult.cc - src/model/ListMyGroupCategoriesRequest.cc - src/model/ListMyGroupCategoriesResult.cc - src/model/ListMyGroupInstancesRequest.cc - src/model/ListMyGroupInstancesResult.cc - src/model/ListMyGroupInstancesDetailsRequest.cc - src/model/ListMyGroupInstancesDetailsResult.cc - src/model/ListMyGroupsRequest.cc - src/model/ListMyGroupsResult.cc - src/model/ListNotifyPolicyRequest.cc - src/model/ListNotifyPolicyResult.cc - src/model/ListProductOfActiveAlertRequest.cc - src/model/ListProductOfActiveAlertResult.cc - src/model/ModifyTaskRequest.cc - src/model/ModifyTaskResult.cc - src/model/NodeInstallRequest.cc - src/model/NodeInstallResult.cc - src/model/NodeListRequest.cc - src/model/NodeListResult.cc - src/model/NodeProcessCreateRequest.cc - src/model/NodeProcessCreateResult.cc - src/model/NodeProcessDeleteRequest.cc - src/model/NodeProcessDeleteResult.cc - src/model/NodeProcessesRequest.cc - src/model/NodeProcessesResult.cc - src/model/NodeStatusRequest.cc - src/model/NodeStatusResult.cc - src/model/NodeStatusListRequest.cc - src/model/NodeStatusListResult.cc - src/model/NodeUninstallRequest.cc - src/model/NodeUninstallResult.cc - src/model/ProfileGetRequest.cc - src/model/ProfileGetResult.cc - src/model/ProfileSetRequest.cc - src/model/ProfileSetResult.cc + src/model/DescribeSiteMonitorListRequest.cc + src/model/DescribeSiteMonitorListResult.cc + src/model/DescribeSiteMonitorQuotaRequest.cc + src/model/DescribeSiteMonitorQuotaResult.cc + src/model/DescribeSiteMonitorStatisticsRequest.cc + src/model/DescribeSiteMonitorStatisticsResult.cc + src/model/DescribeSystemEventAttributeRequest.cc + src/model/DescribeSystemEventAttributeResult.cc + src/model/DescribeSystemEventCountRequest.cc + src/model/DescribeSystemEventCountResult.cc + src/model/DescribeSystemEventHistogramRequest.cc + src/model/DescribeSystemEventHistogramResult.cc + src/model/DescribeSystemEventMetaListRequest.cc + src/model/DescribeSystemEventMetaListResult.cc + src/model/DescribeTagKeyListRequest.cc + src/model/DescribeTagKeyListResult.cc + src/model/DescribeTagValueListRequest.cc + src/model/DescribeTagValueListResult.cc + src/model/DescribeUnhealthyHostAvailabilityRequest.cc + src/model/DescribeUnhealthyHostAvailabilityResult.cc + src/model/DisableActiveMetricRuleRequest.cc + src/model/DisableActiveMetricRuleResult.cc + src/model/DisableEventRulesRequest.cc + src/model/DisableEventRulesResult.cc + src/model/DisableHostAvailabilityRequest.cc + src/model/DisableHostAvailabilityResult.cc + src/model/DisableMetricRulesRequest.cc + src/model/DisableMetricRulesResult.cc + src/model/DisableSiteMonitorsRequest.cc + src/model/DisableSiteMonitorsResult.cc + src/model/EnableActiveMetricRuleRequest.cc + src/model/EnableActiveMetricRuleResult.cc + src/model/EnableEventRulesRequest.cc + src/model/EnableEventRulesResult.cc + src/model/EnableHostAvailabilityRequest.cc + src/model/EnableHostAvailabilityResult.cc + src/model/EnableMetricRulesRequest.cc + src/model/EnableMetricRulesResult.cc + src/model/EnableSiteMonitorsRequest.cc + src/model/EnableSiteMonitorsResult.cc + src/model/InstallMonitoringAgentRequest.cc + src/model/InstallMonitoringAgentResult.cc + src/model/ModifyGroupMonitoringAgentProcessRequest.cc + src/model/ModifyGroupMonitoringAgentProcessResult.cc + src/model/ModifyHostAvailabilityRequest.cc + src/model/ModifyHostAvailabilityResult.cc + src/model/ModifyMetricRuleTemplateRequest.cc + src/model/ModifyMetricRuleTemplateResult.cc + src/model/ModifyMonitorGroupRequest.cc + src/model/ModifyMonitorGroupResult.cc + src/model/ModifyMonitorGroupInstancesRequest.cc + src/model/ModifyMonitorGroupInstancesResult.cc + src/model/ModifySiteMonitorRequest.cc + src/model/ModifySiteMonitorResult.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/PutCustomMetricRequest.cc src/model/PutCustomMetricResult.cc - src/model/PutEventRequest.cc - src/model/PutEventResult.cc src/model/PutEventRuleRequest.cc src/model/PutEventRuleResult.cc - src/model/PutEventTargetsRequest.cc - src/model/PutEventTargetsResult.cc - src/model/PutGroupDynamicRuleRequest.cc - src/model/PutGroupDynamicRuleResult.cc - src/model/PutMetricAlarmRequest.cc - src/model/PutMetricAlarmResult.cc + src/model/PutEventRuleTargetsRequest.cc + src/model/PutEventRuleTargetsResult.cc + src/model/PutGroupMetricRuleRequest.cc + src/model/PutGroupMetricRuleResult.cc src/model/PutMetricRuleTargetsRequest.cc src/model/PutMetricRuleTargetsResult.cc - src/model/QueryCustomEventCountRequest.cc - src/model/QueryCustomEventCountResult.cc - src/model/QueryCustomEventDetailRequest.cc - src/model/QueryCustomEventDetailResult.cc - src/model/QueryCustomEventHistogramRequest.cc - src/model/QueryCustomEventHistogramResult.cc - src/model/QueryCustomMetricListRequest.cc - src/model/QueryCustomMetricListResult.cc - src/model/QueryErrorDistributionRequest.cc - src/model/QueryErrorDistributionResult.cc - src/model/QueryMetricDataRequest.cc - src/model/QueryMetricDataResult.cc - src/model/QueryMetricLastRequest.cc - src/model/QueryMetricLastResult.cc - src/model/QueryMetricListRequest.cc - src/model/QueryMetricListResult.cc - src/model/QueryMetricMetaRequest.cc - src/model/QueryMetricMetaResult.cc - src/model/QueryMetricTopRequest.cc - src/model/QueryMetricTopResult.cc - src/model/QueryMonitorDataRequest.cc - src/model/QueryMonitorDataResult.cc - src/model/QueryProjectMetaRequest.cc - src/model/QueryProjectMetaResult.cc - src/model/QueryStaticsAvailabilityRequest.cc - src/model/QueryStaticsAvailabilityResult.cc - src/model/QueryStaticsErrorRateRequest.cc - src/model/QueryStaticsErrorRateResult.cc - src/model/QueryStaticsResponseTimeRequest.cc - src/model/QueryStaticsResponseTimeResult.cc - src/model/QuerySystemEventCountRequest.cc - src/model/QuerySystemEventCountResult.cc - src/model/QuerySystemEventDemoRequest.cc - src/model/QuerySystemEventDemoResult.cc - src/model/QuerySystemEventDetailRequest.cc - src/model/QuerySystemEventDetailResult.cc - src/model/QuerySystemEventHistogramRequest.cc - src/model/QuerySystemEventHistogramResult.cc - src/model/QueryTaskConfigRequest.cc - src/model/QueryTaskConfigResult.cc - src/model/QueryTaskMonitorDataRequest.cc - src/model/QueryTaskMonitorDataResult.cc - src/model/RemoveMetricRuleTargetsRequest.cc - src/model/RemoveMetricRuleTargetsResult.cc + src/model/PutMonitorGroupDynamicRuleRequest.cc + src/model/PutMonitorGroupDynamicRuleResult.cc + src/model/PutMonitoringConfigRequest.cc + src/model/PutMonitoringConfigResult.cc + src/model/PutResourceMetricRuleRequest.cc + src/model/PutResourceMetricRuleResult.cc + src/model/PutResourceMetricRulesRequest.cc + src/model/PutResourceMetricRulesResult.cc + src/model/RemoveTagsRequest.cc + src/model/RemoveTagsResult.cc src/model/SendDryRunSystemEventRequest.cc src/model/SendDryRunSystemEventResult.cc - src/model/StartTasksRequest.cc - src/model/StartTasksResult.cc - src/model/StopTasksRequest.cc - src/model/StopTasksResult.cc - src/model/TaskConfigCreateRequest.cc - src/model/TaskConfigCreateResult.cc - src/model/TaskConfigDeleteRequest.cc - src/model/TaskConfigDeleteResult.cc - src/model/TaskConfigEnableRequest.cc - src/model/TaskConfigEnableResult.cc - src/model/TaskConfigListRequest.cc - src/model/TaskConfigListResult.cc - src/model/TaskConfigModifyRequest.cc - src/model/TaskConfigModifyResult.cc - src/model/TaskConfigUnhealthyRequest.cc - src/model/TaskConfigUnhealthyResult.cc - src/model/UpdateAlarmRequest.cc - src/model/UpdateAlarmResult.cc - src/model/UpdateMonitoringTemplateRequest.cc - src/model/UpdateMonitoringTemplateResult.cc - src/model/UpdateMyGroupAlertRequest.cc - src/model/UpdateMyGroupAlertResult.cc - src/model/UpdateMyGroupInstancesRequest.cc - src/model/UpdateMyGroupInstancesResult.cc - src/model/UpdateMyGroupMembersRequest.cc - src/model/UpdateMyGroupMembersResult.cc - src/model/UpdateMyGroupsRequest.cc - src/model/UpdateMyGroupsResult.cc ) + src/model/UninstallMonitoringAgentRequest.cc + src/model/UninstallMonitoringAgentResult.cc ) add_library(cms ${LIB_TYPE} ${cms_public_header} diff --git a/cms/include/alibabacloud/cms/CmsClient.h b/cms/include/alibabacloud/cms/CmsClient.h index d7c8c8a59..d936e6221 100644 --- a/cms/include/alibabacloud/cms/CmsClient.h +++ b/cms/include/alibabacloud/cms/CmsClient.h @@ -22,230 +22,234 @@ #include #include #include "CmsExport.h" -#include "model/AccessKeyGetRequest.h" -#include "model/AccessKeyGetResult.h" -#include "model/AddMyGroupInstancesRequest.h" -#include "model/AddMyGroupInstancesResult.h" -#include "model/ApplyMonitoringTemplateRequest.h" -#include "model/ApplyMonitoringTemplateResult.h" -#include "model/ApplyTemplateRequest.h" -#include "model/ApplyTemplateResult.h" -#include "model/CreateAlarmRequest.h" -#include "model/CreateAlarmResult.h" -#include "model/CreateMonitoringTemplateRequest.h" -#include "model/CreateMonitoringTemplateResult.h" -#include "model/CreateMyGroupAlertBatchRequest.h" -#include "model/CreateMyGroupAlertBatchResult.h" -#include "model/CreateMyGroupsRequest.h" -#include "model/CreateMyGroupsResult.h" -#include "model/CreateNotifyPolicyRequest.h" -#include "model/CreateNotifyPolicyResult.h" -#include "model/CreateTaskRequest.h" -#include "model/CreateTaskResult.h" -#include "model/DeleteAlarmRequest.h" -#include "model/DeleteAlarmResult.h" +#include "model/AddTagsRequest.h" +#include "model/AddTagsResult.h" +#include "model/ApplyMetricRuleTemplateRequest.h" +#include "model/ApplyMetricRuleTemplateResult.h" +#include "model/CreateGroupMetricRulesRequest.h" +#include "model/CreateGroupMetricRulesResult.h" +#include "model/CreateGroupMonitoringAgentProcessRequest.h" +#include "model/CreateGroupMonitoringAgentProcessResult.h" +#include "model/CreateHostAvailabilityRequest.h" +#include "model/CreateHostAvailabilityResult.h" +#include "model/CreateMetricRuleResourcesRequest.h" +#include "model/CreateMetricRuleResourcesResult.h" +#include "model/CreateMetricRuleTemplateRequest.h" +#include "model/CreateMetricRuleTemplateResult.h" +#include "model/CreateMonitorAgentProcessRequest.h" +#include "model/CreateMonitorAgentProcessResult.h" +#include "model/CreateMonitorGroupRequest.h" +#include "model/CreateMonitorGroupResult.h" +#include "model/CreateMonitorGroupInstancesRequest.h" +#include "model/CreateMonitorGroupInstancesResult.h" +#include "model/CreateMonitorGroupNotifyPolicyRequest.h" +#include "model/CreateMonitorGroupNotifyPolicyResult.h" +#include "model/CreateMonitoringAgentProcessRequest.h" +#include "model/CreateMonitoringAgentProcessResult.h" +#include "model/CreateSiteMonitorRequest.h" +#include "model/CreateSiteMonitorResult.h" +#include "model/DeleteContactRequest.h" +#include "model/DeleteContactResult.h" +#include "model/DeleteContactGroupRequest.h" +#include "model/DeleteContactGroupResult.h" #include "model/DeleteCustomMetricRequest.h" #include "model/DeleteCustomMetricResult.h" -#include "model/DeleteEventRuleRequest.h" -#include "model/DeleteEventRuleResult.h" -#include "model/DeleteEventTargetsRequest.h" -#include "model/DeleteEventTargetsResult.h" -#include "model/DeleteGroupDynamicRuleRequest.h" -#include "model/DeleteGroupDynamicRuleResult.h" -#include "model/DeleteMonitoringTemplateRequest.h" -#include "model/DeleteMonitoringTemplateResult.h" -#include "model/DeleteMyGroupInstancesRequest.h" -#include "model/DeleteMyGroupInstancesResult.h" -#include "model/DeleteMyGroupsRequest.h" -#include "model/DeleteMyGroupsResult.h" -#include "model/DeleteNotifyPolicyRequest.h" -#include "model/DeleteNotifyPolicyResult.h" -#include "model/DeleteTasksRequest.h" -#include "model/DeleteTasksResult.h" -#include "model/DescribeAlarmHistoryRequest.h" -#include "model/DescribeAlarmHistoryResult.h" -#include "model/DescribeAlarmsRequest.h" -#include "model/DescribeAlarmsResult.h" -#include "model/DescribeAlarmsForResourcesRequest.h" -#include "model/DescribeAlarmsForResourcesResult.h" +#include "model/DeleteEventRuleTargetsRequest.h" +#include "model/DeleteEventRuleTargetsResult.h" +#include "model/DeleteEventRulesRequest.h" +#include "model/DeleteEventRulesResult.h" +#include "model/DeleteGroupMonitoringAgentProcessRequest.h" +#include "model/DeleteGroupMonitoringAgentProcessResult.h" +#include "model/DeleteHostAvailabilityRequest.h" +#include "model/DeleteHostAvailabilityResult.h" +#include "model/DeleteMetricRuleResourcesRequest.h" +#include "model/DeleteMetricRuleResourcesResult.h" +#include "model/DeleteMetricRuleTargetsRequest.h" +#include "model/DeleteMetricRuleTargetsResult.h" +#include "model/DeleteMetricRuleTemplateRequest.h" +#include "model/DeleteMetricRuleTemplateResult.h" +#include "model/DeleteMetricRulesRequest.h" +#include "model/DeleteMetricRulesResult.h" +#include "model/DeleteMonitorGroupRequest.h" +#include "model/DeleteMonitorGroupResult.h" +#include "model/DeleteMonitorGroupDynamicRuleRequest.h" +#include "model/DeleteMonitorGroupDynamicRuleResult.h" +#include "model/DeleteMonitorGroupInstancesRequest.h" +#include "model/DeleteMonitorGroupInstancesResult.h" +#include "model/DeleteMonitorGroupNotifyPolicyRequest.h" +#include "model/DeleteMonitorGroupNotifyPolicyResult.h" +#include "model/DeleteMonitoringAgentProcessRequest.h" +#include "model/DeleteMonitoringAgentProcessResult.h" +#include "model/DeleteSiteMonitorsRequest.h" +#include "model/DeleteSiteMonitorsResult.h" +#include "model/DescribeActiveMetricRuleListRequest.h" +#include "model/DescribeActiveMetricRuleListResult.h" #include "model/DescribeAlertHistoryListRequest.h" #include "model/DescribeAlertHistoryListResult.h" -#include "model/DescribeContactRequest.h" -#include "model/DescribeContactResult.h" -#include "model/DescribeEventRuleRequest.h" -#include "model/DescribeEventRuleResult.h" -#include "model/DescribeISPAreaCityRequest.h" -#include "model/DescribeISPAreaCityResult.h" +#include "model/DescribeAlertingMetricRuleResourcesRequest.h" +#include "model/DescribeAlertingMetricRuleResourcesResult.h" +#include "model/DescribeContactGroupListRequest.h" +#include "model/DescribeContactGroupListResult.h" +#include "model/DescribeContactListRequest.h" +#include "model/DescribeContactListResult.h" +#include "model/DescribeContactListByContactGroupRequest.h" +#include "model/DescribeContactListByContactGroupResult.h" +#include "model/DescribeCustomEventAttributeRequest.h" +#include "model/DescribeCustomEventAttributeResult.h" +#include "model/DescribeCustomEventCountRequest.h" +#include "model/DescribeCustomEventCountResult.h" +#include "model/DescribeCustomEventHistogramRequest.h" +#include "model/DescribeCustomEventHistogramResult.h" +#include "model/DescribeCustomMetricListRequest.h" +#include "model/DescribeCustomMetricListResult.h" +#include "model/DescribeEventRuleAttributeRequest.h" +#include "model/DescribeEventRuleAttributeResult.h" +#include "model/DescribeEventRuleListRequest.h" +#include "model/DescribeEventRuleListResult.h" +#include "model/DescribeEventRuleTargetListRequest.h" +#include "model/DescribeEventRuleTargetListResult.h" +#include "model/DescribeGroupMonitoringAgentProcessRequest.h" +#include "model/DescribeGroupMonitoringAgentProcessResult.h" +#include "model/DescribeHostAvailabilityListRequest.h" +#include "model/DescribeHostAvailabilityListResult.h" +#include "model/DescribeMetricDataRequest.h" +#include "model/DescribeMetricDataResult.h" +#include "model/DescribeMetricLastRequest.h" +#include "model/DescribeMetricLastResult.h" +#include "model/DescribeMetricListRequest.h" +#include "model/DescribeMetricListResult.h" +#include "model/DescribeMetricMetaListRequest.h" +#include "model/DescribeMetricMetaListResult.h" +#include "model/DescribeMetricRuleCountRequest.h" +#include "model/DescribeMetricRuleCountResult.h" +#include "model/DescribeMetricRuleListRequest.h" +#include "model/DescribeMetricRuleListResult.h" #include "model/DescribeMetricRuleTargetsRequest.h" #include "model/DescribeMetricRuleTargetsResult.h" -#include "model/DescribeSiteMonitorISPAreaCityRequest.h" -#include "model/DescribeSiteMonitorISPAreaCityResult.h" +#include "model/DescribeMetricRuleTemplateAttributeRequest.h" +#include "model/DescribeMetricRuleTemplateAttributeResult.h" +#include "model/DescribeMetricRuleTemplateListRequest.h" +#include "model/DescribeMetricRuleTemplateListResult.h" +#include "model/DescribeMetricTopRequest.h" +#include "model/DescribeMetricTopResult.h" +#include "model/DescribeMonitorGroupCategoriesRequest.h" +#include "model/DescribeMonitorGroupCategoriesResult.h" +#include "model/DescribeMonitorGroupDynamicRulesRequest.h" +#include "model/DescribeMonitorGroupDynamicRulesResult.h" +#include "model/DescribeMonitorGroupInstanceAttributeRequest.h" +#include "model/DescribeMonitorGroupInstanceAttributeResult.h" +#include "model/DescribeMonitorGroupInstancesRequest.h" +#include "model/DescribeMonitorGroupInstancesResult.h" +#include "model/DescribeMonitorGroupNotifyPolicyListRequest.h" +#include "model/DescribeMonitorGroupNotifyPolicyListResult.h" +#include "model/DescribeMonitorGroupsRequest.h" +#include "model/DescribeMonitorGroupsResult.h" +#include "model/DescribeMonitoringAgentAccessKeyRequest.h" +#include "model/DescribeMonitoringAgentAccessKeyResult.h" +#include "model/DescribeMonitoringAgentConfigRequest.h" +#include "model/DescribeMonitoringAgentConfigResult.h" +#include "model/DescribeMonitoringAgentHostsRequest.h" +#include "model/DescribeMonitoringAgentHostsResult.h" +#include "model/DescribeMonitoringAgentProcessesRequest.h" +#include "model/DescribeMonitoringAgentProcessesResult.h" +#include "model/DescribeMonitoringAgentStatusesRequest.h" +#include "model/DescribeMonitoringAgentStatusesResult.h" +#include "model/DescribeMonitoringConfigRequest.h" +#include "model/DescribeMonitoringConfigResult.h" +#include "model/DescribeProductsOfActiveMetricRuleRequest.h" +#include "model/DescribeProductsOfActiveMetricRuleResult.h" +#include "model/DescribeProjectMetaRequest.h" +#include "model/DescribeProjectMetaResult.h" +#include "model/DescribeSiteMonitorAttributeRequest.h" +#include "model/DescribeSiteMonitorAttributeResult.h" +#include "model/DescribeSiteMonitorDataRequest.h" +#include "model/DescribeSiteMonitorDataResult.h" #include "model/DescribeSiteMonitorISPCityListRequest.h" #include "model/DescribeSiteMonitorISPCityListResult.h" -#include "model/DescribeTaskDetailRequest.h" -#include "model/DescribeTaskDetailResult.h" -#include "model/DescribeTasksRequest.h" -#include "model/DescribeTasksResult.h" -#include "model/DisableActiveAlertRequest.h" -#include "model/DisableActiveAlertResult.h" -#include "model/DisableAlarmRequest.h" -#include "model/DisableAlarmResult.h" -#include "model/DisableEventRuleRequest.h" -#include "model/DisableEventRuleResult.h" -#include "model/EnableActiveAlertRequest.h" -#include "model/EnableActiveAlertResult.h" -#include "model/EnableAlarmRequest.h" -#include "model/EnableAlarmResult.h" -#include "model/EnableEventRuleRequest.h" -#include "model/EnableEventRuleResult.h" -#include "model/GetContactsRequest.h" -#include "model/GetContactsResult.h" -#include "model/GetMonitoringTemplateRequest.h" -#include "model/GetMonitoringTemplateResult.h" -#include "model/GetMyGroupAlertRequest.h" -#include "model/GetMyGroupAlertResult.h" -#include "model/GetMyGroupsRequest.h" -#include "model/GetMyGroupsResult.h" -#include "model/GetNotifyPolicyRequest.h" -#include "model/GetNotifyPolicyResult.h" -#include "model/ListActiveAlertRuleRequest.h" -#include "model/ListActiveAlertRuleResult.h" -#include "model/ListAlarmRequest.h" -#include "model/ListAlarmResult.h" -#include "model/ListAlarmHistoryRequest.h" -#include "model/ListAlarmHistoryResult.h" -#include "model/ListContactGroupRequest.h" -#include "model/ListContactGroupResult.h" -#include "model/ListEventRulesRequest.h" -#include "model/ListEventRulesResult.h" -#include "model/ListEventTargetsByRuleRequest.h" -#include "model/ListEventTargetsByRuleResult.h" -#include "model/ListGroupDynamicRuleRequest.h" -#include "model/ListGroupDynamicRuleResult.h" -#include "model/ListMonitoringTemplatesRequest.h" -#include "model/ListMonitoringTemplatesResult.h" -#include "model/ListMyGroupCategoriesRequest.h" -#include "model/ListMyGroupCategoriesResult.h" -#include "model/ListMyGroupInstancesRequest.h" -#include "model/ListMyGroupInstancesResult.h" -#include "model/ListMyGroupInstancesDetailsRequest.h" -#include "model/ListMyGroupInstancesDetailsResult.h" -#include "model/ListMyGroupsRequest.h" -#include "model/ListMyGroupsResult.h" -#include "model/ListNotifyPolicyRequest.h" -#include "model/ListNotifyPolicyResult.h" -#include "model/ListProductOfActiveAlertRequest.h" -#include "model/ListProductOfActiveAlertResult.h" -#include "model/ModifyTaskRequest.h" -#include "model/ModifyTaskResult.h" -#include "model/NodeInstallRequest.h" -#include "model/NodeInstallResult.h" -#include "model/NodeListRequest.h" -#include "model/NodeListResult.h" -#include "model/NodeProcessCreateRequest.h" -#include "model/NodeProcessCreateResult.h" -#include "model/NodeProcessDeleteRequest.h" -#include "model/NodeProcessDeleteResult.h" -#include "model/NodeProcessesRequest.h" -#include "model/NodeProcessesResult.h" -#include "model/NodeStatusRequest.h" -#include "model/NodeStatusResult.h" -#include "model/NodeStatusListRequest.h" -#include "model/NodeStatusListResult.h" -#include "model/NodeUninstallRequest.h" -#include "model/NodeUninstallResult.h" -#include "model/ProfileGetRequest.h" -#include "model/ProfileGetResult.h" -#include "model/ProfileSetRequest.h" -#include "model/ProfileSetResult.h" +#include "model/DescribeSiteMonitorListRequest.h" +#include "model/DescribeSiteMonitorListResult.h" +#include "model/DescribeSiteMonitorQuotaRequest.h" +#include "model/DescribeSiteMonitorQuotaResult.h" +#include "model/DescribeSiteMonitorStatisticsRequest.h" +#include "model/DescribeSiteMonitorStatisticsResult.h" +#include "model/DescribeSystemEventAttributeRequest.h" +#include "model/DescribeSystemEventAttributeResult.h" +#include "model/DescribeSystemEventCountRequest.h" +#include "model/DescribeSystemEventCountResult.h" +#include "model/DescribeSystemEventHistogramRequest.h" +#include "model/DescribeSystemEventHistogramResult.h" +#include "model/DescribeSystemEventMetaListRequest.h" +#include "model/DescribeSystemEventMetaListResult.h" +#include "model/DescribeTagKeyListRequest.h" +#include "model/DescribeTagKeyListResult.h" +#include "model/DescribeTagValueListRequest.h" +#include "model/DescribeTagValueListResult.h" +#include "model/DescribeUnhealthyHostAvailabilityRequest.h" +#include "model/DescribeUnhealthyHostAvailabilityResult.h" +#include "model/DisableActiveMetricRuleRequest.h" +#include "model/DisableActiveMetricRuleResult.h" +#include "model/DisableEventRulesRequest.h" +#include "model/DisableEventRulesResult.h" +#include "model/DisableHostAvailabilityRequest.h" +#include "model/DisableHostAvailabilityResult.h" +#include "model/DisableMetricRulesRequest.h" +#include "model/DisableMetricRulesResult.h" +#include "model/DisableSiteMonitorsRequest.h" +#include "model/DisableSiteMonitorsResult.h" +#include "model/EnableActiveMetricRuleRequest.h" +#include "model/EnableActiveMetricRuleResult.h" +#include "model/EnableEventRulesRequest.h" +#include "model/EnableEventRulesResult.h" +#include "model/EnableHostAvailabilityRequest.h" +#include "model/EnableHostAvailabilityResult.h" +#include "model/EnableMetricRulesRequest.h" +#include "model/EnableMetricRulesResult.h" +#include "model/EnableSiteMonitorsRequest.h" +#include "model/EnableSiteMonitorsResult.h" +#include "model/InstallMonitoringAgentRequest.h" +#include "model/InstallMonitoringAgentResult.h" +#include "model/ModifyGroupMonitoringAgentProcessRequest.h" +#include "model/ModifyGroupMonitoringAgentProcessResult.h" +#include "model/ModifyHostAvailabilityRequest.h" +#include "model/ModifyHostAvailabilityResult.h" +#include "model/ModifyMetricRuleTemplateRequest.h" +#include "model/ModifyMetricRuleTemplateResult.h" +#include "model/ModifyMonitorGroupRequest.h" +#include "model/ModifyMonitorGroupResult.h" +#include "model/ModifyMonitorGroupInstancesRequest.h" +#include "model/ModifyMonitorGroupInstancesResult.h" +#include "model/ModifySiteMonitorRequest.h" +#include "model/ModifySiteMonitorResult.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/PutCustomMetricRequest.h" #include "model/PutCustomMetricResult.h" -#include "model/PutEventRequest.h" -#include "model/PutEventResult.h" #include "model/PutEventRuleRequest.h" #include "model/PutEventRuleResult.h" -#include "model/PutEventTargetsRequest.h" -#include "model/PutEventTargetsResult.h" -#include "model/PutGroupDynamicRuleRequest.h" -#include "model/PutGroupDynamicRuleResult.h" -#include "model/PutMetricAlarmRequest.h" -#include "model/PutMetricAlarmResult.h" +#include "model/PutEventRuleTargetsRequest.h" +#include "model/PutEventRuleTargetsResult.h" +#include "model/PutGroupMetricRuleRequest.h" +#include "model/PutGroupMetricRuleResult.h" #include "model/PutMetricRuleTargetsRequest.h" #include "model/PutMetricRuleTargetsResult.h" -#include "model/QueryCustomEventCountRequest.h" -#include "model/QueryCustomEventCountResult.h" -#include "model/QueryCustomEventDetailRequest.h" -#include "model/QueryCustomEventDetailResult.h" -#include "model/QueryCustomEventHistogramRequest.h" -#include "model/QueryCustomEventHistogramResult.h" -#include "model/QueryCustomMetricListRequest.h" -#include "model/QueryCustomMetricListResult.h" -#include "model/QueryErrorDistributionRequest.h" -#include "model/QueryErrorDistributionResult.h" -#include "model/QueryMetricDataRequest.h" -#include "model/QueryMetricDataResult.h" -#include "model/QueryMetricLastRequest.h" -#include "model/QueryMetricLastResult.h" -#include "model/QueryMetricListRequest.h" -#include "model/QueryMetricListResult.h" -#include "model/QueryMetricMetaRequest.h" -#include "model/QueryMetricMetaResult.h" -#include "model/QueryMetricTopRequest.h" -#include "model/QueryMetricTopResult.h" -#include "model/QueryMonitorDataRequest.h" -#include "model/QueryMonitorDataResult.h" -#include "model/QueryProjectMetaRequest.h" -#include "model/QueryProjectMetaResult.h" -#include "model/QueryStaticsAvailabilityRequest.h" -#include "model/QueryStaticsAvailabilityResult.h" -#include "model/QueryStaticsErrorRateRequest.h" -#include "model/QueryStaticsErrorRateResult.h" -#include "model/QueryStaticsResponseTimeRequest.h" -#include "model/QueryStaticsResponseTimeResult.h" -#include "model/QuerySystemEventCountRequest.h" -#include "model/QuerySystemEventCountResult.h" -#include "model/QuerySystemEventDemoRequest.h" -#include "model/QuerySystemEventDemoResult.h" -#include "model/QuerySystemEventDetailRequest.h" -#include "model/QuerySystemEventDetailResult.h" -#include "model/QuerySystemEventHistogramRequest.h" -#include "model/QuerySystemEventHistogramResult.h" -#include "model/QueryTaskConfigRequest.h" -#include "model/QueryTaskConfigResult.h" -#include "model/QueryTaskMonitorDataRequest.h" -#include "model/QueryTaskMonitorDataResult.h" -#include "model/RemoveMetricRuleTargetsRequest.h" -#include "model/RemoveMetricRuleTargetsResult.h" +#include "model/PutMonitorGroupDynamicRuleRequest.h" +#include "model/PutMonitorGroupDynamicRuleResult.h" +#include "model/PutMonitoringConfigRequest.h" +#include "model/PutMonitoringConfigResult.h" +#include "model/PutResourceMetricRuleRequest.h" +#include "model/PutResourceMetricRuleResult.h" +#include "model/PutResourceMetricRulesRequest.h" +#include "model/PutResourceMetricRulesResult.h" +#include "model/RemoveTagsRequest.h" +#include "model/RemoveTagsResult.h" #include "model/SendDryRunSystemEventRequest.h" #include "model/SendDryRunSystemEventResult.h" -#include "model/StartTasksRequest.h" -#include "model/StartTasksResult.h" -#include "model/StopTasksRequest.h" -#include "model/StopTasksResult.h" -#include "model/TaskConfigCreateRequest.h" -#include "model/TaskConfigCreateResult.h" -#include "model/TaskConfigDeleteRequest.h" -#include "model/TaskConfigDeleteResult.h" -#include "model/TaskConfigEnableRequest.h" -#include "model/TaskConfigEnableResult.h" -#include "model/TaskConfigListRequest.h" -#include "model/TaskConfigListResult.h" -#include "model/TaskConfigModifyRequest.h" -#include "model/TaskConfigModifyResult.h" -#include "model/TaskConfigUnhealthyRequest.h" -#include "model/TaskConfigUnhealthyResult.h" -#include "model/UpdateAlarmRequest.h" -#include "model/UpdateAlarmResult.h" -#include "model/UpdateMonitoringTemplateRequest.h" -#include "model/UpdateMonitoringTemplateResult.h" -#include "model/UpdateMyGroupAlertRequest.h" -#include "model/UpdateMyGroupAlertResult.h" -#include "model/UpdateMyGroupInstancesRequest.h" -#include "model/UpdateMyGroupInstancesResult.h" -#include "model/UpdateMyGroupMembersRequest.h" -#include "model/UpdateMyGroupMembersResult.h" -#include "model/UpdateMyGroupsRequest.h" -#include "model/UpdateMyGroupsResult.h" +#include "model/UninstallMonitoringAgentRequest.h" +#include "model/UninstallMonitoringAgentResult.h" namespace AlibabaCloud @@ -255,683 +259,695 @@ namespace AlibabaCloud class ALIBABACLOUD_CMS_EXPORT CmsClient : public RpcServiceClient { public: - typedef Outcome AccessKeyGetOutcome; - typedef std::future AccessKeyGetOutcomeCallable; - typedef std::function&)> AccessKeyGetAsyncHandler; - typedef Outcome AddMyGroupInstancesOutcome; - typedef std::future AddMyGroupInstancesOutcomeCallable; - typedef std::function&)> AddMyGroupInstancesAsyncHandler; - typedef Outcome ApplyMonitoringTemplateOutcome; - typedef std::future ApplyMonitoringTemplateOutcomeCallable; - typedef std::function&)> ApplyMonitoringTemplateAsyncHandler; - typedef Outcome ApplyTemplateOutcome; - typedef std::future ApplyTemplateOutcomeCallable; - typedef std::function&)> ApplyTemplateAsyncHandler; - typedef Outcome CreateAlarmOutcome; - typedef std::future CreateAlarmOutcomeCallable; - typedef std::function&)> CreateAlarmAsyncHandler; - typedef Outcome CreateMonitoringTemplateOutcome; - typedef std::future CreateMonitoringTemplateOutcomeCallable; - typedef std::function&)> CreateMonitoringTemplateAsyncHandler; - typedef Outcome CreateMyGroupAlertBatchOutcome; - typedef std::future CreateMyGroupAlertBatchOutcomeCallable; - typedef std::function&)> CreateMyGroupAlertBatchAsyncHandler; - typedef Outcome CreateMyGroupsOutcome; - typedef std::future CreateMyGroupsOutcomeCallable; - typedef std::function&)> CreateMyGroupsAsyncHandler; - typedef Outcome CreateNotifyPolicyOutcome; - typedef std::future CreateNotifyPolicyOutcomeCallable; - typedef std::function&)> CreateNotifyPolicyAsyncHandler; - typedef Outcome CreateTaskOutcome; - typedef std::future CreateTaskOutcomeCallable; - typedef std::function&)> CreateTaskAsyncHandler; - typedef Outcome DeleteAlarmOutcome; - typedef std::future DeleteAlarmOutcomeCallable; - typedef std::function&)> DeleteAlarmAsyncHandler; + typedef Outcome AddTagsOutcome; + typedef std::future AddTagsOutcomeCallable; + typedef std::function&)> AddTagsAsyncHandler; + typedef Outcome ApplyMetricRuleTemplateOutcome; + typedef std::future ApplyMetricRuleTemplateOutcomeCallable; + typedef std::function&)> ApplyMetricRuleTemplateAsyncHandler; + typedef Outcome CreateGroupMetricRulesOutcome; + typedef std::future CreateGroupMetricRulesOutcomeCallable; + typedef std::function&)> CreateGroupMetricRulesAsyncHandler; + typedef Outcome CreateGroupMonitoringAgentProcessOutcome; + typedef std::future CreateGroupMonitoringAgentProcessOutcomeCallable; + typedef std::function&)> CreateGroupMonitoringAgentProcessAsyncHandler; + typedef Outcome CreateHostAvailabilityOutcome; + typedef std::future CreateHostAvailabilityOutcomeCallable; + typedef std::function&)> CreateHostAvailabilityAsyncHandler; + typedef Outcome CreateMetricRuleResourcesOutcome; + typedef std::future CreateMetricRuleResourcesOutcomeCallable; + typedef std::function&)> CreateMetricRuleResourcesAsyncHandler; + typedef Outcome CreateMetricRuleTemplateOutcome; + typedef std::future CreateMetricRuleTemplateOutcomeCallable; + typedef std::function&)> CreateMetricRuleTemplateAsyncHandler; + typedef Outcome CreateMonitorAgentProcessOutcome; + typedef std::future CreateMonitorAgentProcessOutcomeCallable; + typedef std::function&)> CreateMonitorAgentProcessAsyncHandler; + typedef Outcome CreateMonitorGroupOutcome; + typedef std::future CreateMonitorGroupOutcomeCallable; + typedef std::function&)> CreateMonitorGroupAsyncHandler; + typedef Outcome CreateMonitorGroupInstancesOutcome; + typedef std::future CreateMonitorGroupInstancesOutcomeCallable; + typedef std::function&)> CreateMonitorGroupInstancesAsyncHandler; + typedef Outcome CreateMonitorGroupNotifyPolicyOutcome; + typedef std::future CreateMonitorGroupNotifyPolicyOutcomeCallable; + typedef std::function&)> CreateMonitorGroupNotifyPolicyAsyncHandler; + typedef Outcome CreateMonitoringAgentProcessOutcome; + typedef std::future CreateMonitoringAgentProcessOutcomeCallable; + typedef std::function&)> CreateMonitoringAgentProcessAsyncHandler; + typedef Outcome CreateSiteMonitorOutcome; + typedef std::future CreateSiteMonitorOutcomeCallable; + typedef std::function&)> CreateSiteMonitorAsyncHandler; + typedef Outcome DeleteContactOutcome; + typedef std::future DeleteContactOutcomeCallable; + typedef std::function&)> DeleteContactAsyncHandler; + typedef Outcome DeleteContactGroupOutcome; + typedef std::future DeleteContactGroupOutcomeCallable; + typedef std::function&)> DeleteContactGroupAsyncHandler; typedef Outcome DeleteCustomMetricOutcome; typedef std::future DeleteCustomMetricOutcomeCallable; typedef std::function&)> DeleteCustomMetricAsyncHandler; - typedef Outcome DeleteEventRuleOutcome; - typedef std::future DeleteEventRuleOutcomeCallable; - typedef std::function&)> DeleteEventRuleAsyncHandler; - typedef Outcome DeleteEventTargetsOutcome; - typedef std::future DeleteEventTargetsOutcomeCallable; - typedef std::function&)> DeleteEventTargetsAsyncHandler; - typedef Outcome DeleteGroupDynamicRuleOutcome; - typedef std::future DeleteGroupDynamicRuleOutcomeCallable; - typedef std::function&)> DeleteGroupDynamicRuleAsyncHandler; - typedef Outcome DeleteMonitoringTemplateOutcome; - typedef std::future DeleteMonitoringTemplateOutcomeCallable; - typedef std::function&)> DeleteMonitoringTemplateAsyncHandler; - typedef Outcome DeleteMyGroupInstancesOutcome; - typedef std::future DeleteMyGroupInstancesOutcomeCallable; - typedef std::function&)> DeleteMyGroupInstancesAsyncHandler; - typedef Outcome DeleteMyGroupsOutcome; - typedef std::future DeleteMyGroupsOutcomeCallable; - typedef std::function&)> DeleteMyGroupsAsyncHandler; - typedef Outcome DeleteNotifyPolicyOutcome; - typedef std::future DeleteNotifyPolicyOutcomeCallable; - typedef std::function&)> DeleteNotifyPolicyAsyncHandler; - typedef Outcome DeleteTasksOutcome; - typedef std::future DeleteTasksOutcomeCallable; - typedef std::function&)> DeleteTasksAsyncHandler; - typedef Outcome DescribeAlarmHistoryOutcome; - typedef std::future DescribeAlarmHistoryOutcomeCallable; - typedef std::function&)> DescribeAlarmHistoryAsyncHandler; - typedef Outcome DescribeAlarmsOutcome; - typedef std::future DescribeAlarmsOutcomeCallable; - typedef std::function&)> DescribeAlarmsAsyncHandler; - typedef Outcome DescribeAlarmsForResourcesOutcome; - typedef std::future DescribeAlarmsForResourcesOutcomeCallable; - typedef std::function&)> DescribeAlarmsForResourcesAsyncHandler; + typedef Outcome DeleteEventRuleTargetsOutcome; + typedef std::future DeleteEventRuleTargetsOutcomeCallable; + typedef std::function&)> DeleteEventRuleTargetsAsyncHandler; + typedef Outcome DeleteEventRulesOutcome; + typedef std::future DeleteEventRulesOutcomeCallable; + typedef std::function&)> DeleteEventRulesAsyncHandler; + typedef Outcome DeleteGroupMonitoringAgentProcessOutcome; + typedef std::future DeleteGroupMonitoringAgentProcessOutcomeCallable; + typedef std::function&)> DeleteGroupMonitoringAgentProcessAsyncHandler; + typedef Outcome DeleteHostAvailabilityOutcome; + typedef std::future DeleteHostAvailabilityOutcomeCallable; + typedef std::function&)> DeleteHostAvailabilityAsyncHandler; + typedef Outcome DeleteMetricRuleResourcesOutcome; + typedef std::future DeleteMetricRuleResourcesOutcomeCallable; + typedef std::function&)> DeleteMetricRuleResourcesAsyncHandler; + typedef Outcome DeleteMetricRuleTargetsOutcome; + typedef std::future DeleteMetricRuleTargetsOutcomeCallable; + typedef std::function&)> DeleteMetricRuleTargetsAsyncHandler; + typedef Outcome DeleteMetricRuleTemplateOutcome; + typedef std::future DeleteMetricRuleTemplateOutcomeCallable; + typedef std::function&)> DeleteMetricRuleTemplateAsyncHandler; + typedef Outcome DeleteMetricRulesOutcome; + typedef std::future DeleteMetricRulesOutcomeCallable; + typedef std::function&)> DeleteMetricRulesAsyncHandler; + typedef Outcome DeleteMonitorGroupOutcome; + typedef std::future DeleteMonitorGroupOutcomeCallable; + typedef std::function&)> DeleteMonitorGroupAsyncHandler; + typedef Outcome DeleteMonitorGroupDynamicRuleOutcome; + typedef std::future DeleteMonitorGroupDynamicRuleOutcomeCallable; + typedef std::function&)> DeleteMonitorGroupDynamicRuleAsyncHandler; + typedef Outcome DeleteMonitorGroupInstancesOutcome; + typedef std::future DeleteMonitorGroupInstancesOutcomeCallable; + typedef std::function&)> DeleteMonitorGroupInstancesAsyncHandler; + typedef Outcome DeleteMonitorGroupNotifyPolicyOutcome; + typedef std::future DeleteMonitorGroupNotifyPolicyOutcomeCallable; + typedef std::function&)> DeleteMonitorGroupNotifyPolicyAsyncHandler; + typedef Outcome DeleteMonitoringAgentProcessOutcome; + typedef std::future DeleteMonitoringAgentProcessOutcomeCallable; + typedef std::function&)> DeleteMonitoringAgentProcessAsyncHandler; + typedef Outcome DeleteSiteMonitorsOutcome; + typedef std::future DeleteSiteMonitorsOutcomeCallable; + typedef std::function&)> DeleteSiteMonitorsAsyncHandler; + typedef Outcome DescribeActiveMetricRuleListOutcome; + typedef std::future DescribeActiveMetricRuleListOutcomeCallable; + typedef std::function&)> DescribeActiveMetricRuleListAsyncHandler; typedef Outcome DescribeAlertHistoryListOutcome; typedef std::future DescribeAlertHistoryListOutcomeCallable; typedef std::function&)> DescribeAlertHistoryListAsyncHandler; - typedef Outcome DescribeContactOutcome; - typedef std::future DescribeContactOutcomeCallable; - typedef std::function&)> DescribeContactAsyncHandler; - typedef Outcome DescribeEventRuleOutcome; - typedef std::future DescribeEventRuleOutcomeCallable; - typedef std::function&)> DescribeEventRuleAsyncHandler; - typedef Outcome DescribeISPAreaCityOutcome; - typedef std::future DescribeISPAreaCityOutcomeCallable; - typedef std::function&)> DescribeISPAreaCityAsyncHandler; + typedef Outcome DescribeAlertingMetricRuleResourcesOutcome; + typedef std::future DescribeAlertingMetricRuleResourcesOutcomeCallable; + typedef std::function&)> DescribeAlertingMetricRuleResourcesAsyncHandler; + typedef Outcome DescribeContactGroupListOutcome; + typedef std::future DescribeContactGroupListOutcomeCallable; + typedef std::function&)> DescribeContactGroupListAsyncHandler; + typedef Outcome DescribeContactListOutcome; + typedef std::future DescribeContactListOutcomeCallable; + typedef std::function&)> DescribeContactListAsyncHandler; + typedef Outcome DescribeContactListByContactGroupOutcome; + typedef std::future DescribeContactListByContactGroupOutcomeCallable; + typedef std::function&)> DescribeContactListByContactGroupAsyncHandler; + typedef Outcome DescribeCustomEventAttributeOutcome; + typedef std::future DescribeCustomEventAttributeOutcomeCallable; + typedef std::function&)> DescribeCustomEventAttributeAsyncHandler; + typedef Outcome DescribeCustomEventCountOutcome; + typedef std::future DescribeCustomEventCountOutcomeCallable; + typedef std::function&)> DescribeCustomEventCountAsyncHandler; + typedef Outcome DescribeCustomEventHistogramOutcome; + typedef std::future DescribeCustomEventHistogramOutcomeCallable; + typedef std::function&)> DescribeCustomEventHistogramAsyncHandler; + typedef Outcome DescribeCustomMetricListOutcome; + typedef std::future DescribeCustomMetricListOutcomeCallable; + typedef std::function&)> DescribeCustomMetricListAsyncHandler; + typedef Outcome DescribeEventRuleAttributeOutcome; + typedef std::future DescribeEventRuleAttributeOutcomeCallable; + typedef std::function&)> DescribeEventRuleAttributeAsyncHandler; + typedef Outcome DescribeEventRuleListOutcome; + typedef std::future DescribeEventRuleListOutcomeCallable; + typedef std::function&)> DescribeEventRuleListAsyncHandler; + typedef Outcome DescribeEventRuleTargetListOutcome; + typedef std::future DescribeEventRuleTargetListOutcomeCallable; + typedef std::function&)> DescribeEventRuleTargetListAsyncHandler; + typedef Outcome DescribeGroupMonitoringAgentProcessOutcome; + typedef std::future DescribeGroupMonitoringAgentProcessOutcomeCallable; + typedef std::function&)> DescribeGroupMonitoringAgentProcessAsyncHandler; + typedef Outcome DescribeHostAvailabilityListOutcome; + typedef std::future DescribeHostAvailabilityListOutcomeCallable; + typedef std::function&)> DescribeHostAvailabilityListAsyncHandler; + typedef Outcome DescribeMetricDataOutcome; + typedef std::future DescribeMetricDataOutcomeCallable; + typedef std::function&)> DescribeMetricDataAsyncHandler; + typedef Outcome DescribeMetricLastOutcome; + typedef std::future DescribeMetricLastOutcomeCallable; + typedef std::function&)> DescribeMetricLastAsyncHandler; + typedef Outcome DescribeMetricListOutcome; + typedef std::future DescribeMetricListOutcomeCallable; + typedef std::function&)> DescribeMetricListAsyncHandler; + typedef Outcome DescribeMetricMetaListOutcome; + typedef std::future DescribeMetricMetaListOutcomeCallable; + typedef std::function&)> DescribeMetricMetaListAsyncHandler; + typedef Outcome DescribeMetricRuleCountOutcome; + typedef std::future DescribeMetricRuleCountOutcomeCallable; + typedef std::function&)> DescribeMetricRuleCountAsyncHandler; + typedef Outcome DescribeMetricRuleListOutcome; + typedef std::future DescribeMetricRuleListOutcomeCallable; + typedef std::function&)> DescribeMetricRuleListAsyncHandler; typedef Outcome DescribeMetricRuleTargetsOutcome; typedef std::future DescribeMetricRuleTargetsOutcomeCallable; typedef std::function&)> DescribeMetricRuleTargetsAsyncHandler; - typedef Outcome DescribeSiteMonitorISPAreaCityOutcome; - typedef std::future DescribeSiteMonitorISPAreaCityOutcomeCallable; - typedef std::function&)> DescribeSiteMonitorISPAreaCityAsyncHandler; + typedef Outcome DescribeMetricRuleTemplateAttributeOutcome; + typedef std::future DescribeMetricRuleTemplateAttributeOutcomeCallable; + typedef std::function&)> DescribeMetricRuleTemplateAttributeAsyncHandler; + typedef Outcome DescribeMetricRuleTemplateListOutcome; + typedef std::future DescribeMetricRuleTemplateListOutcomeCallable; + typedef std::function&)> DescribeMetricRuleTemplateListAsyncHandler; + typedef Outcome DescribeMetricTopOutcome; + typedef std::future DescribeMetricTopOutcomeCallable; + typedef std::function&)> DescribeMetricTopAsyncHandler; + typedef Outcome DescribeMonitorGroupCategoriesOutcome; + typedef std::future DescribeMonitorGroupCategoriesOutcomeCallable; + typedef std::function&)> DescribeMonitorGroupCategoriesAsyncHandler; + typedef Outcome DescribeMonitorGroupDynamicRulesOutcome; + typedef std::future DescribeMonitorGroupDynamicRulesOutcomeCallable; + typedef std::function&)> DescribeMonitorGroupDynamicRulesAsyncHandler; + typedef Outcome DescribeMonitorGroupInstanceAttributeOutcome; + typedef std::future DescribeMonitorGroupInstanceAttributeOutcomeCallable; + typedef std::function&)> DescribeMonitorGroupInstanceAttributeAsyncHandler; + typedef Outcome DescribeMonitorGroupInstancesOutcome; + typedef std::future DescribeMonitorGroupInstancesOutcomeCallable; + typedef std::function&)> DescribeMonitorGroupInstancesAsyncHandler; + typedef Outcome DescribeMonitorGroupNotifyPolicyListOutcome; + typedef std::future DescribeMonitorGroupNotifyPolicyListOutcomeCallable; + typedef std::function&)> DescribeMonitorGroupNotifyPolicyListAsyncHandler; + typedef Outcome DescribeMonitorGroupsOutcome; + typedef std::future DescribeMonitorGroupsOutcomeCallable; + typedef std::function&)> DescribeMonitorGroupsAsyncHandler; + typedef Outcome DescribeMonitoringAgentAccessKeyOutcome; + typedef std::future DescribeMonitoringAgentAccessKeyOutcomeCallable; + typedef std::function&)> DescribeMonitoringAgentAccessKeyAsyncHandler; + typedef Outcome DescribeMonitoringAgentConfigOutcome; + typedef std::future DescribeMonitoringAgentConfigOutcomeCallable; + typedef std::function&)> DescribeMonitoringAgentConfigAsyncHandler; + typedef Outcome DescribeMonitoringAgentHostsOutcome; + typedef std::future DescribeMonitoringAgentHostsOutcomeCallable; + typedef std::function&)> DescribeMonitoringAgentHostsAsyncHandler; + typedef Outcome DescribeMonitoringAgentProcessesOutcome; + typedef std::future DescribeMonitoringAgentProcessesOutcomeCallable; + typedef std::function&)> DescribeMonitoringAgentProcessesAsyncHandler; + typedef Outcome DescribeMonitoringAgentStatusesOutcome; + typedef std::future DescribeMonitoringAgentStatusesOutcomeCallable; + typedef std::function&)> DescribeMonitoringAgentStatusesAsyncHandler; + typedef Outcome DescribeMonitoringConfigOutcome; + typedef std::future DescribeMonitoringConfigOutcomeCallable; + typedef std::function&)> DescribeMonitoringConfigAsyncHandler; + typedef Outcome DescribeProductsOfActiveMetricRuleOutcome; + typedef std::future DescribeProductsOfActiveMetricRuleOutcomeCallable; + typedef std::function&)> DescribeProductsOfActiveMetricRuleAsyncHandler; + typedef Outcome DescribeProjectMetaOutcome; + typedef std::future DescribeProjectMetaOutcomeCallable; + typedef std::function&)> DescribeProjectMetaAsyncHandler; + typedef Outcome DescribeSiteMonitorAttributeOutcome; + typedef std::future DescribeSiteMonitorAttributeOutcomeCallable; + typedef std::function&)> DescribeSiteMonitorAttributeAsyncHandler; + typedef Outcome DescribeSiteMonitorDataOutcome; + typedef std::future DescribeSiteMonitorDataOutcomeCallable; + typedef std::function&)> DescribeSiteMonitorDataAsyncHandler; typedef Outcome DescribeSiteMonitorISPCityListOutcome; typedef std::future DescribeSiteMonitorISPCityListOutcomeCallable; typedef std::function&)> DescribeSiteMonitorISPCityListAsyncHandler; - typedef Outcome DescribeTaskDetailOutcome; - typedef std::future DescribeTaskDetailOutcomeCallable; - typedef std::function&)> DescribeTaskDetailAsyncHandler; - typedef Outcome DescribeTasksOutcome; - typedef std::future DescribeTasksOutcomeCallable; - typedef std::function&)> DescribeTasksAsyncHandler; - typedef Outcome DisableActiveAlertOutcome; - typedef std::future DisableActiveAlertOutcomeCallable; - typedef std::function&)> DisableActiveAlertAsyncHandler; - typedef Outcome DisableAlarmOutcome; - typedef std::future DisableAlarmOutcomeCallable; - typedef std::function&)> DisableAlarmAsyncHandler; - typedef Outcome DisableEventRuleOutcome; - typedef std::future DisableEventRuleOutcomeCallable; - typedef std::function&)> DisableEventRuleAsyncHandler; - typedef Outcome EnableActiveAlertOutcome; - typedef std::future EnableActiveAlertOutcomeCallable; - typedef std::function&)> EnableActiveAlertAsyncHandler; - typedef Outcome EnableAlarmOutcome; - typedef std::future EnableAlarmOutcomeCallable; - typedef std::function&)> EnableAlarmAsyncHandler; - typedef Outcome EnableEventRuleOutcome; - typedef std::future EnableEventRuleOutcomeCallable; - typedef std::function&)> EnableEventRuleAsyncHandler; - typedef Outcome GetContactsOutcome; - typedef std::future GetContactsOutcomeCallable; - typedef std::function&)> GetContactsAsyncHandler; - typedef Outcome GetMonitoringTemplateOutcome; - typedef std::future GetMonitoringTemplateOutcomeCallable; - typedef std::function&)> GetMonitoringTemplateAsyncHandler; - typedef Outcome GetMyGroupAlertOutcome; - typedef std::future GetMyGroupAlertOutcomeCallable; - typedef std::function&)> GetMyGroupAlertAsyncHandler; - typedef Outcome GetMyGroupsOutcome; - typedef std::future GetMyGroupsOutcomeCallable; - typedef std::function&)> GetMyGroupsAsyncHandler; - typedef Outcome GetNotifyPolicyOutcome; - typedef std::future GetNotifyPolicyOutcomeCallable; - typedef std::function&)> GetNotifyPolicyAsyncHandler; - typedef Outcome ListActiveAlertRuleOutcome; - typedef std::future ListActiveAlertRuleOutcomeCallable; - typedef std::function&)> ListActiveAlertRuleAsyncHandler; - typedef Outcome ListAlarmOutcome; - typedef std::future ListAlarmOutcomeCallable; - typedef std::function&)> ListAlarmAsyncHandler; - typedef Outcome ListAlarmHistoryOutcome; - typedef std::future ListAlarmHistoryOutcomeCallable; - typedef std::function&)> ListAlarmHistoryAsyncHandler; - typedef Outcome ListContactGroupOutcome; - typedef std::future ListContactGroupOutcomeCallable; - typedef std::function&)> ListContactGroupAsyncHandler; - typedef Outcome ListEventRulesOutcome; - typedef std::future ListEventRulesOutcomeCallable; - typedef std::function&)> ListEventRulesAsyncHandler; - typedef Outcome ListEventTargetsByRuleOutcome; - typedef std::future ListEventTargetsByRuleOutcomeCallable; - typedef std::function&)> ListEventTargetsByRuleAsyncHandler; - typedef Outcome ListGroupDynamicRuleOutcome; - typedef std::future ListGroupDynamicRuleOutcomeCallable; - typedef std::function&)> ListGroupDynamicRuleAsyncHandler; - typedef Outcome ListMonitoringTemplatesOutcome; - typedef std::future ListMonitoringTemplatesOutcomeCallable; - typedef std::function&)> ListMonitoringTemplatesAsyncHandler; - typedef Outcome ListMyGroupCategoriesOutcome; - typedef std::future ListMyGroupCategoriesOutcomeCallable; - typedef std::function&)> ListMyGroupCategoriesAsyncHandler; - typedef Outcome ListMyGroupInstancesOutcome; - typedef std::future ListMyGroupInstancesOutcomeCallable; - typedef std::function&)> ListMyGroupInstancesAsyncHandler; - typedef Outcome ListMyGroupInstancesDetailsOutcome; - typedef std::future ListMyGroupInstancesDetailsOutcomeCallable; - typedef std::function&)> ListMyGroupInstancesDetailsAsyncHandler; - typedef Outcome ListMyGroupsOutcome; - typedef std::future ListMyGroupsOutcomeCallable; - typedef std::function&)> ListMyGroupsAsyncHandler; - typedef Outcome ListNotifyPolicyOutcome; - typedef std::future ListNotifyPolicyOutcomeCallable; - typedef std::function&)> ListNotifyPolicyAsyncHandler; - typedef Outcome ListProductOfActiveAlertOutcome; - typedef std::future ListProductOfActiveAlertOutcomeCallable; - typedef std::function&)> ListProductOfActiveAlertAsyncHandler; - typedef Outcome ModifyTaskOutcome; - typedef std::future ModifyTaskOutcomeCallable; - typedef std::function&)> ModifyTaskAsyncHandler; - typedef Outcome NodeInstallOutcome; - typedef std::future NodeInstallOutcomeCallable; - typedef std::function&)> NodeInstallAsyncHandler; - typedef Outcome NodeListOutcome; - typedef std::future NodeListOutcomeCallable; - typedef std::function&)> NodeListAsyncHandler; - typedef Outcome NodeProcessCreateOutcome; - typedef std::future NodeProcessCreateOutcomeCallable; - typedef std::function&)> NodeProcessCreateAsyncHandler; - typedef Outcome NodeProcessDeleteOutcome; - typedef std::future NodeProcessDeleteOutcomeCallable; - typedef std::function&)> NodeProcessDeleteAsyncHandler; - typedef Outcome NodeProcessesOutcome; - typedef std::future NodeProcessesOutcomeCallable; - typedef std::function&)> NodeProcessesAsyncHandler; - typedef Outcome NodeStatusOutcome; - typedef std::future NodeStatusOutcomeCallable; - typedef std::function&)> NodeStatusAsyncHandler; - typedef Outcome NodeStatusListOutcome; - typedef std::future NodeStatusListOutcomeCallable; - typedef std::function&)> NodeStatusListAsyncHandler; - typedef Outcome NodeUninstallOutcome; - typedef std::future NodeUninstallOutcomeCallable; - typedef std::function&)> NodeUninstallAsyncHandler; - typedef Outcome ProfileGetOutcome; - typedef std::future ProfileGetOutcomeCallable; - typedef std::function&)> ProfileGetAsyncHandler; - typedef Outcome ProfileSetOutcome; - typedef std::future ProfileSetOutcomeCallable; - typedef std::function&)> ProfileSetAsyncHandler; + typedef Outcome DescribeSiteMonitorListOutcome; + typedef std::future DescribeSiteMonitorListOutcomeCallable; + typedef std::function&)> DescribeSiteMonitorListAsyncHandler; + typedef Outcome DescribeSiteMonitorQuotaOutcome; + typedef std::future DescribeSiteMonitorQuotaOutcomeCallable; + typedef std::function&)> DescribeSiteMonitorQuotaAsyncHandler; + typedef Outcome DescribeSiteMonitorStatisticsOutcome; + typedef std::future DescribeSiteMonitorStatisticsOutcomeCallable; + typedef std::function&)> DescribeSiteMonitorStatisticsAsyncHandler; + typedef Outcome DescribeSystemEventAttributeOutcome; + typedef std::future DescribeSystemEventAttributeOutcomeCallable; + typedef std::function&)> DescribeSystemEventAttributeAsyncHandler; + typedef Outcome DescribeSystemEventCountOutcome; + typedef std::future DescribeSystemEventCountOutcomeCallable; + typedef std::function&)> DescribeSystemEventCountAsyncHandler; + typedef Outcome DescribeSystemEventHistogramOutcome; + typedef std::future DescribeSystemEventHistogramOutcomeCallable; + typedef std::function&)> DescribeSystemEventHistogramAsyncHandler; + typedef Outcome DescribeSystemEventMetaListOutcome; + typedef std::future DescribeSystemEventMetaListOutcomeCallable; + typedef std::function&)> DescribeSystemEventMetaListAsyncHandler; + typedef Outcome DescribeTagKeyListOutcome; + typedef std::future DescribeTagKeyListOutcomeCallable; + typedef std::function&)> DescribeTagKeyListAsyncHandler; + typedef Outcome DescribeTagValueListOutcome; + typedef std::future DescribeTagValueListOutcomeCallable; + typedef std::function&)> DescribeTagValueListAsyncHandler; + typedef Outcome DescribeUnhealthyHostAvailabilityOutcome; + typedef std::future DescribeUnhealthyHostAvailabilityOutcomeCallable; + typedef std::function&)> DescribeUnhealthyHostAvailabilityAsyncHandler; + typedef Outcome DisableActiveMetricRuleOutcome; + typedef std::future DisableActiveMetricRuleOutcomeCallable; + typedef std::function&)> DisableActiveMetricRuleAsyncHandler; + typedef Outcome DisableEventRulesOutcome; + typedef std::future DisableEventRulesOutcomeCallable; + typedef std::function&)> DisableEventRulesAsyncHandler; + typedef Outcome DisableHostAvailabilityOutcome; + typedef std::future DisableHostAvailabilityOutcomeCallable; + typedef std::function&)> DisableHostAvailabilityAsyncHandler; + typedef Outcome DisableMetricRulesOutcome; + typedef std::future DisableMetricRulesOutcomeCallable; + typedef std::function&)> DisableMetricRulesAsyncHandler; + typedef Outcome DisableSiteMonitorsOutcome; + typedef std::future DisableSiteMonitorsOutcomeCallable; + typedef std::function&)> DisableSiteMonitorsAsyncHandler; + typedef Outcome EnableActiveMetricRuleOutcome; + typedef std::future EnableActiveMetricRuleOutcomeCallable; + typedef std::function&)> EnableActiveMetricRuleAsyncHandler; + typedef Outcome EnableEventRulesOutcome; + typedef std::future EnableEventRulesOutcomeCallable; + typedef std::function&)> EnableEventRulesAsyncHandler; + typedef Outcome EnableHostAvailabilityOutcome; + typedef std::future EnableHostAvailabilityOutcomeCallable; + typedef std::function&)> EnableHostAvailabilityAsyncHandler; + typedef Outcome EnableMetricRulesOutcome; + typedef std::future EnableMetricRulesOutcomeCallable; + typedef std::function&)> EnableMetricRulesAsyncHandler; + typedef Outcome EnableSiteMonitorsOutcome; + typedef std::future EnableSiteMonitorsOutcomeCallable; + typedef std::function&)> EnableSiteMonitorsAsyncHandler; + typedef Outcome InstallMonitoringAgentOutcome; + typedef std::future InstallMonitoringAgentOutcomeCallable; + typedef std::function&)> InstallMonitoringAgentAsyncHandler; + typedef Outcome ModifyGroupMonitoringAgentProcessOutcome; + typedef std::future ModifyGroupMonitoringAgentProcessOutcomeCallable; + typedef std::function&)> ModifyGroupMonitoringAgentProcessAsyncHandler; + typedef Outcome ModifyHostAvailabilityOutcome; + typedef std::future ModifyHostAvailabilityOutcomeCallable; + typedef std::function&)> ModifyHostAvailabilityAsyncHandler; + typedef Outcome ModifyMetricRuleTemplateOutcome; + typedef std::future ModifyMetricRuleTemplateOutcomeCallable; + typedef std::function&)> ModifyMetricRuleTemplateAsyncHandler; + typedef Outcome ModifyMonitorGroupOutcome; + typedef std::future ModifyMonitorGroupOutcomeCallable; + typedef std::function&)> ModifyMonitorGroupAsyncHandler; + typedef Outcome ModifyMonitorGroupInstancesOutcome; + typedef std::future ModifyMonitorGroupInstancesOutcomeCallable; + typedef std::function&)> ModifyMonitorGroupInstancesAsyncHandler; + typedef Outcome ModifySiteMonitorOutcome; + typedef std::future ModifySiteMonitorOutcomeCallable; + typedef std::function&)> ModifySiteMonitorAsyncHandler; + typedef Outcome PutContactOutcome; + typedef std::future PutContactOutcomeCallable; + typedef std::function&)> PutContactAsyncHandler; + typedef Outcome PutContactGroupOutcome; + typedef std::future PutContactGroupOutcomeCallable; + typedef std::function&)> PutContactGroupAsyncHandler; + typedef Outcome PutCustomEventOutcome; + typedef std::future PutCustomEventOutcomeCallable; + typedef std::function&)> PutCustomEventAsyncHandler; typedef Outcome PutCustomMetricOutcome; typedef std::future PutCustomMetricOutcomeCallable; typedef std::function&)> PutCustomMetricAsyncHandler; - typedef Outcome PutEventOutcome; - typedef std::future PutEventOutcomeCallable; - typedef std::function&)> PutEventAsyncHandler; typedef Outcome PutEventRuleOutcome; typedef std::future PutEventRuleOutcomeCallable; typedef std::function&)> PutEventRuleAsyncHandler; - typedef Outcome PutEventTargetsOutcome; - typedef std::future PutEventTargetsOutcomeCallable; - typedef std::function&)> PutEventTargetsAsyncHandler; - typedef Outcome PutGroupDynamicRuleOutcome; - typedef std::future PutGroupDynamicRuleOutcomeCallable; - typedef std::function&)> PutGroupDynamicRuleAsyncHandler; - typedef Outcome PutMetricAlarmOutcome; - typedef std::future PutMetricAlarmOutcomeCallable; - typedef std::function&)> PutMetricAlarmAsyncHandler; + typedef Outcome PutEventRuleTargetsOutcome; + typedef std::future PutEventRuleTargetsOutcomeCallable; + typedef std::function&)> PutEventRuleTargetsAsyncHandler; + typedef Outcome PutGroupMetricRuleOutcome; + typedef std::future PutGroupMetricRuleOutcomeCallable; + typedef std::function&)> PutGroupMetricRuleAsyncHandler; typedef Outcome PutMetricRuleTargetsOutcome; typedef std::future PutMetricRuleTargetsOutcomeCallable; typedef std::function&)> PutMetricRuleTargetsAsyncHandler; - typedef Outcome QueryCustomEventCountOutcome; - typedef std::future QueryCustomEventCountOutcomeCallable; - typedef std::function&)> QueryCustomEventCountAsyncHandler; - typedef Outcome QueryCustomEventDetailOutcome; - typedef std::future QueryCustomEventDetailOutcomeCallable; - typedef std::function&)> QueryCustomEventDetailAsyncHandler; - typedef Outcome QueryCustomEventHistogramOutcome; - typedef std::future QueryCustomEventHistogramOutcomeCallable; - typedef std::function&)> QueryCustomEventHistogramAsyncHandler; - typedef Outcome QueryCustomMetricListOutcome; - typedef std::future QueryCustomMetricListOutcomeCallable; - typedef std::function&)> QueryCustomMetricListAsyncHandler; - typedef Outcome QueryErrorDistributionOutcome; - typedef std::future QueryErrorDistributionOutcomeCallable; - typedef std::function&)> QueryErrorDistributionAsyncHandler; - typedef Outcome QueryMetricDataOutcome; - typedef std::future QueryMetricDataOutcomeCallable; - typedef std::function&)> QueryMetricDataAsyncHandler; - typedef Outcome QueryMetricLastOutcome; - typedef std::future QueryMetricLastOutcomeCallable; - typedef std::function&)> QueryMetricLastAsyncHandler; - typedef Outcome QueryMetricListOutcome; - typedef std::future QueryMetricListOutcomeCallable; - typedef std::function&)> QueryMetricListAsyncHandler; - typedef Outcome QueryMetricMetaOutcome; - typedef std::future QueryMetricMetaOutcomeCallable; - typedef std::function&)> QueryMetricMetaAsyncHandler; - typedef Outcome QueryMetricTopOutcome; - typedef std::future QueryMetricTopOutcomeCallable; - typedef std::function&)> QueryMetricTopAsyncHandler; - typedef Outcome QueryMonitorDataOutcome; - typedef std::future QueryMonitorDataOutcomeCallable; - typedef std::function&)> QueryMonitorDataAsyncHandler; - typedef Outcome QueryProjectMetaOutcome; - typedef std::future QueryProjectMetaOutcomeCallable; - typedef std::function&)> QueryProjectMetaAsyncHandler; - typedef Outcome QueryStaticsAvailabilityOutcome; - typedef std::future QueryStaticsAvailabilityOutcomeCallable; - typedef std::function&)> QueryStaticsAvailabilityAsyncHandler; - typedef Outcome QueryStaticsErrorRateOutcome; - typedef std::future QueryStaticsErrorRateOutcomeCallable; - typedef std::function&)> QueryStaticsErrorRateAsyncHandler; - typedef Outcome QueryStaticsResponseTimeOutcome; - typedef std::future QueryStaticsResponseTimeOutcomeCallable; - typedef std::function&)> QueryStaticsResponseTimeAsyncHandler; - typedef Outcome QuerySystemEventCountOutcome; - typedef std::future QuerySystemEventCountOutcomeCallable; - typedef std::function&)> QuerySystemEventCountAsyncHandler; - typedef Outcome QuerySystemEventDemoOutcome; - typedef std::future QuerySystemEventDemoOutcomeCallable; - typedef std::function&)> QuerySystemEventDemoAsyncHandler; - typedef Outcome QuerySystemEventDetailOutcome; - typedef std::future QuerySystemEventDetailOutcomeCallable; - typedef std::function&)> QuerySystemEventDetailAsyncHandler; - typedef Outcome QuerySystemEventHistogramOutcome; - typedef std::future QuerySystemEventHistogramOutcomeCallable; - typedef std::function&)> QuerySystemEventHistogramAsyncHandler; - typedef Outcome QueryTaskConfigOutcome; - typedef std::future QueryTaskConfigOutcomeCallable; - typedef std::function&)> QueryTaskConfigAsyncHandler; - typedef Outcome QueryTaskMonitorDataOutcome; - typedef std::future QueryTaskMonitorDataOutcomeCallable; - typedef std::function&)> QueryTaskMonitorDataAsyncHandler; - typedef Outcome RemoveMetricRuleTargetsOutcome; - typedef std::future RemoveMetricRuleTargetsOutcomeCallable; - typedef std::function&)> RemoveMetricRuleTargetsAsyncHandler; + typedef Outcome PutMonitorGroupDynamicRuleOutcome; + typedef std::future PutMonitorGroupDynamicRuleOutcomeCallable; + typedef std::function&)> PutMonitorGroupDynamicRuleAsyncHandler; + typedef Outcome PutMonitoringConfigOutcome; + typedef std::future PutMonitoringConfigOutcomeCallable; + typedef std::function&)> PutMonitoringConfigAsyncHandler; + typedef Outcome PutResourceMetricRuleOutcome; + typedef std::future PutResourceMetricRuleOutcomeCallable; + typedef std::function&)> PutResourceMetricRuleAsyncHandler; + typedef Outcome PutResourceMetricRulesOutcome; + typedef std::future PutResourceMetricRulesOutcomeCallable; + typedef std::function&)> PutResourceMetricRulesAsyncHandler; + typedef Outcome RemoveTagsOutcome; + typedef std::future RemoveTagsOutcomeCallable; + typedef std::function&)> RemoveTagsAsyncHandler; typedef Outcome SendDryRunSystemEventOutcome; typedef std::future SendDryRunSystemEventOutcomeCallable; typedef std::function&)> SendDryRunSystemEventAsyncHandler; - typedef Outcome StartTasksOutcome; - typedef std::future StartTasksOutcomeCallable; - typedef std::function&)> StartTasksAsyncHandler; - typedef Outcome StopTasksOutcome; - typedef std::future StopTasksOutcomeCallable; - typedef std::function&)> StopTasksAsyncHandler; - typedef Outcome TaskConfigCreateOutcome; - typedef std::future TaskConfigCreateOutcomeCallable; - typedef std::function&)> TaskConfigCreateAsyncHandler; - typedef Outcome TaskConfigDeleteOutcome; - typedef std::future TaskConfigDeleteOutcomeCallable; - typedef std::function&)> TaskConfigDeleteAsyncHandler; - typedef Outcome TaskConfigEnableOutcome; - typedef std::future TaskConfigEnableOutcomeCallable; - typedef std::function&)> TaskConfigEnableAsyncHandler; - typedef Outcome TaskConfigListOutcome; - typedef std::future TaskConfigListOutcomeCallable; - typedef std::function&)> TaskConfigListAsyncHandler; - typedef Outcome TaskConfigModifyOutcome; - typedef std::future TaskConfigModifyOutcomeCallable; - typedef std::function&)> TaskConfigModifyAsyncHandler; - typedef Outcome TaskConfigUnhealthyOutcome; - typedef std::future TaskConfigUnhealthyOutcomeCallable; - typedef std::function&)> TaskConfigUnhealthyAsyncHandler; - typedef Outcome UpdateAlarmOutcome; - typedef std::future UpdateAlarmOutcomeCallable; - typedef std::function&)> UpdateAlarmAsyncHandler; - typedef Outcome UpdateMonitoringTemplateOutcome; - typedef std::future UpdateMonitoringTemplateOutcomeCallable; - typedef std::function&)> UpdateMonitoringTemplateAsyncHandler; - typedef Outcome UpdateMyGroupAlertOutcome; - typedef std::future UpdateMyGroupAlertOutcomeCallable; - typedef std::function&)> UpdateMyGroupAlertAsyncHandler; - typedef Outcome UpdateMyGroupInstancesOutcome; - typedef std::future UpdateMyGroupInstancesOutcomeCallable; - typedef std::function&)> UpdateMyGroupInstancesAsyncHandler; - typedef Outcome UpdateMyGroupMembersOutcome; - typedef std::future UpdateMyGroupMembersOutcomeCallable; - typedef std::function&)> UpdateMyGroupMembersAsyncHandler; - typedef Outcome UpdateMyGroupsOutcome; - typedef std::future UpdateMyGroupsOutcomeCallable; - typedef std::function&)> UpdateMyGroupsAsyncHandler; + typedef Outcome UninstallMonitoringAgentOutcome; + typedef std::future UninstallMonitoringAgentOutcomeCallable; + typedef std::function&)> UninstallMonitoringAgentAsyncHandler; CmsClient(const Credentials &credentials, const ClientConfiguration &configuration); CmsClient(const std::shared_ptr &credentialsProvider, const ClientConfiguration &configuration); CmsClient(const std::string &accessKeyId, const std::string &accessKeySecret, const ClientConfiguration &configuration); ~CmsClient(); - AccessKeyGetOutcome accessKeyGet(const Model::AccessKeyGetRequest &request)const; - void accessKeyGetAsync(const Model::AccessKeyGetRequest& request, const AccessKeyGetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AccessKeyGetOutcomeCallable accessKeyGetCallable(const Model::AccessKeyGetRequest& request) const; - AddMyGroupInstancesOutcome addMyGroupInstances(const Model::AddMyGroupInstancesRequest &request)const; - void addMyGroupInstancesAsync(const Model::AddMyGroupInstancesRequest& request, const AddMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - AddMyGroupInstancesOutcomeCallable addMyGroupInstancesCallable(const Model::AddMyGroupInstancesRequest& request) const; - ApplyMonitoringTemplateOutcome applyMonitoringTemplate(const Model::ApplyMonitoringTemplateRequest &request)const; - void applyMonitoringTemplateAsync(const Model::ApplyMonitoringTemplateRequest& request, const ApplyMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ApplyMonitoringTemplateOutcomeCallable applyMonitoringTemplateCallable(const Model::ApplyMonitoringTemplateRequest& request) const; - ApplyTemplateOutcome applyTemplate(const Model::ApplyTemplateRequest &request)const; - void applyTemplateAsync(const Model::ApplyTemplateRequest& request, const ApplyTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ApplyTemplateOutcomeCallable applyTemplateCallable(const Model::ApplyTemplateRequest& request) const; - CreateAlarmOutcome createAlarm(const Model::CreateAlarmRequest &request)const; - void createAlarmAsync(const Model::CreateAlarmRequest& request, const CreateAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateAlarmOutcomeCallable createAlarmCallable(const Model::CreateAlarmRequest& request) const; - CreateMonitoringTemplateOutcome createMonitoringTemplate(const Model::CreateMonitoringTemplateRequest &request)const; - void createMonitoringTemplateAsync(const Model::CreateMonitoringTemplateRequest& request, const CreateMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateMonitoringTemplateOutcomeCallable createMonitoringTemplateCallable(const Model::CreateMonitoringTemplateRequest& request) const; - CreateMyGroupAlertBatchOutcome createMyGroupAlertBatch(const Model::CreateMyGroupAlertBatchRequest &request)const; - void createMyGroupAlertBatchAsync(const Model::CreateMyGroupAlertBatchRequest& request, const CreateMyGroupAlertBatchAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateMyGroupAlertBatchOutcomeCallable createMyGroupAlertBatchCallable(const Model::CreateMyGroupAlertBatchRequest& request) const; - CreateMyGroupsOutcome createMyGroups(const Model::CreateMyGroupsRequest &request)const; - void createMyGroupsAsync(const Model::CreateMyGroupsRequest& request, const CreateMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateMyGroupsOutcomeCallable createMyGroupsCallable(const Model::CreateMyGroupsRequest& request) const; - CreateNotifyPolicyOutcome createNotifyPolicy(const Model::CreateNotifyPolicyRequest &request)const; - void createNotifyPolicyAsync(const Model::CreateNotifyPolicyRequest& request, const CreateNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateNotifyPolicyOutcomeCallable createNotifyPolicyCallable(const Model::CreateNotifyPolicyRequest& request) const; - CreateTaskOutcome createTask(const Model::CreateTaskRequest &request)const; - void createTaskAsync(const Model::CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - CreateTaskOutcomeCallable createTaskCallable(const Model::CreateTaskRequest& request) const; - DeleteAlarmOutcome deleteAlarm(const Model::DeleteAlarmRequest &request)const; - void deleteAlarmAsync(const Model::DeleteAlarmRequest& request, const DeleteAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteAlarmOutcomeCallable deleteAlarmCallable(const Model::DeleteAlarmRequest& request) const; + AddTagsOutcome addTags(const Model::AddTagsRequest &request)const; + void addTagsAsync(const Model::AddTagsRequest& request, const AddTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + AddTagsOutcomeCallable addTagsCallable(const Model::AddTagsRequest& request) const; + 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; + CreateGroupMetricRulesOutcome createGroupMetricRules(const Model::CreateGroupMetricRulesRequest &request)const; + void createGroupMetricRulesAsync(const Model::CreateGroupMetricRulesRequest& request, const CreateGroupMetricRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGroupMetricRulesOutcomeCallable createGroupMetricRulesCallable(const Model::CreateGroupMetricRulesRequest& request) const; + CreateGroupMonitoringAgentProcessOutcome createGroupMonitoringAgentProcess(const Model::CreateGroupMonitoringAgentProcessRequest &request)const; + void createGroupMonitoringAgentProcessAsync(const Model::CreateGroupMonitoringAgentProcessRequest& request, const CreateGroupMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateGroupMonitoringAgentProcessOutcomeCallable createGroupMonitoringAgentProcessCallable(const Model::CreateGroupMonitoringAgentProcessRequest& request) const; + CreateHostAvailabilityOutcome createHostAvailability(const Model::CreateHostAvailabilityRequest &request)const; + void createHostAvailabilityAsync(const Model::CreateHostAvailabilityRequest& request, const CreateHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateHostAvailabilityOutcomeCallable createHostAvailabilityCallable(const Model::CreateHostAvailabilityRequest& request) const; + CreateMetricRuleResourcesOutcome createMetricRuleResources(const Model::CreateMetricRuleResourcesRequest &request)const; + void createMetricRuleResourcesAsync(const Model::CreateMetricRuleResourcesRequest& request, const CreateMetricRuleResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMetricRuleResourcesOutcomeCallable createMetricRuleResourcesCallable(const Model::CreateMetricRuleResourcesRequest& request) const; + CreateMetricRuleTemplateOutcome createMetricRuleTemplate(const Model::CreateMetricRuleTemplateRequest &request)const; + void createMetricRuleTemplateAsync(const Model::CreateMetricRuleTemplateRequest& request, const CreateMetricRuleTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMetricRuleTemplateOutcomeCallable createMetricRuleTemplateCallable(const Model::CreateMetricRuleTemplateRequest& request) const; + CreateMonitorAgentProcessOutcome createMonitorAgentProcess(const Model::CreateMonitorAgentProcessRequest &request)const; + void createMonitorAgentProcessAsync(const Model::CreateMonitorAgentProcessRequest& request, const CreateMonitorAgentProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMonitorAgentProcessOutcomeCallable createMonitorAgentProcessCallable(const Model::CreateMonitorAgentProcessRequest& request) const; + 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; + 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; + CreateMonitorGroupNotifyPolicyOutcome createMonitorGroupNotifyPolicy(const Model::CreateMonitorGroupNotifyPolicyRequest &request)const; + void createMonitorGroupNotifyPolicyAsync(const Model::CreateMonitorGroupNotifyPolicyRequest& request, const CreateMonitorGroupNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMonitorGroupNotifyPolicyOutcomeCallable createMonitorGroupNotifyPolicyCallable(const Model::CreateMonitorGroupNotifyPolicyRequest& request) const; + CreateMonitoringAgentProcessOutcome createMonitoringAgentProcess(const Model::CreateMonitoringAgentProcessRequest &request)const; + void createMonitoringAgentProcessAsync(const Model::CreateMonitoringAgentProcessRequest& request, const CreateMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateMonitoringAgentProcessOutcomeCallable createMonitoringAgentProcessCallable(const Model::CreateMonitoringAgentProcessRequest& request) const; + CreateSiteMonitorOutcome createSiteMonitor(const Model::CreateSiteMonitorRequest &request)const; + void createSiteMonitorAsync(const Model::CreateSiteMonitorRequest& request, const CreateSiteMonitorAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + CreateSiteMonitorOutcomeCallable createSiteMonitorCallable(const Model::CreateSiteMonitorRequest& request) const; + DeleteContactOutcome deleteContact(const Model::DeleteContactRequest &request)const; + void deleteContactAsync(const Model::DeleteContactRequest& request, const DeleteContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteContactOutcomeCallable deleteContactCallable(const Model::DeleteContactRequest& request) const; + DeleteContactGroupOutcome deleteContactGroup(const Model::DeleteContactGroupRequest &request)const; + void deleteContactGroupAsync(const Model::DeleteContactGroupRequest& request, const DeleteContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteContactGroupOutcomeCallable deleteContactGroupCallable(const Model::DeleteContactGroupRequest& request) const; DeleteCustomMetricOutcome deleteCustomMetric(const Model::DeleteCustomMetricRequest &request)const; void deleteCustomMetricAsync(const Model::DeleteCustomMetricRequest& request, const DeleteCustomMetricAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DeleteCustomMetricOutcomeCallable deleteCustomMetricCallable(const Model::DeleteCustomMetricRequest& request) const; - DeleteEventRuleOutcome deleteEventRule(const Model::DeleteEventRuleRequest &request)const; - void deleteEventRuleAsync(const Model::DeleteEventRuleRequest& request, const DeleteEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteEventRuleOutcomeCallable deleteEventRuleCallable(const Model::DeleteEventRuleRequest& request) const; - DeleteEventTargetsOutcome deleteEventTargets(const Model::DeleteEventTargetsRequest &request)const; - void deleteEventTargetsAsync(const Model::DeleteEventTargetsRequest& request, const DeleteEventTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteEventTargetsOutcomeCallable deleteEventTargetsCallable(const Model::DeleteEventTargetsRequest& request) const; - DeleteGroupDynamicRuleOutcome deleteGroupDynamicRule(const Model::DeleteGroupDynamicRuleRequest &request)const; - void deleteGroupDynamicRuleAsync(const Model::DeleteGroupDynamicRuleRequest& request, const DeleteGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteGroupDynamicRuleOutcomeCallable deleteGroupDynamicRuleCallable(const Model::DeleteGroupDynamicRuleRequest& request) const; - DeleteMonitoringTemplateOutcome deleteMonitoringTemplate(const Model::DeleteMonitoringTemplateRequest &request)const; - void deleteMonitoringTemplateAsync(const Model::DeleteMonitoringTemplateRequest& request, const DeleteMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMonitoringTemplateOutcomeCallable deleteMonitoringTemplateCallable(const Model::DeleteMonitoringTemplateRequest& request) const; - DeleteMyGroupInstancesOutcome deleteMyGroupInstances(const Model::DeleteMyGroupInstancesRequest &request)const; - void deleteMyGroupInstancesAsync(const Model::DeleteMyGroupInstancesRequest& request, const DeleteMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMyGroupInstancesOutcomeCallable deleteMyGroupInstancesCallable(const Model::DeleteMyGroupInstancesRequest& request) const; - DeleteMyGroupsOutcome deleteMyGroups(const Model::DeleteMyGroupsRequest &request)const; - void deleteMyGroupsAsync(const Model::DeleteMyGroupsRequest& request, const DeleteMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteMyGroupsOutcomeCallable deleteMyGroupsCallable(const Model::DeleteMyGroupsRequest& request) const; - DeleteNotifyPolicyOutcome deleteNotifyPolicy(const Model::DeleteNotifyPolicyRequest &request)const; - void deleteNotifyPolicyAsync(const Model::DeleteNotifyPolicyRequest& request, const DeleteNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteNotifyPolicyOutcomeCallable deleteNotifyPolicyCallable(const Model::DeleteNotifyPolicyRequest& request) const; - DeleteTasksOutcome deleteTasks(const Model::DeleteTasksRequest &request)const; - void deleteTasksAsync(const Model::DeleteTasksRequest& request, const DeleteTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DeleteTasksOutcomeCallable deleteTasksCallable(const Model::DeleteTasksRequest& request) const; - DescribeAlarmHistoryOutcome describeAlarmHistory(const Model::DescribeAlarmHistoryRequest &request)const; - void describeAlarmHistoryAsync(const Model::DescribeAlarmHistoryRequest& request, const DescribeAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAlarmHistoryOutcomeCallable describeAlarmHistoryCallable(const Model::DescribeAlarmHistoryRequest& request) const; - DescribeAlarmsOutcome describeAlarms(const Model::DescribeAlarmsRequest &request)const; - void describeAlarmsAsync(const Model::DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAlarmsOutcomeCallable describeAlarmsCallable(const Model::DescribeAlarmsRequest& request) const; - DescribeAlarmsForResourcesOutcome describeAlarmsForResources(const Model::DescribeAlarmsForResourcesRequest &request)const; - void describeAlarmsForResourcesAsync(const Model::DescribeAlarmsForResourcesRequest& request, const DescribeAlarmsForResourcesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeAlarmsForResourcesOutcomeCallable describeAlarmsForResourcesCallable(const Model::DescribeAlarmsForResourcesRequest& request) const; + DeleteEventRuleTargetsOutcome deleteEventRuleTargets(const Model::DeleteEventRuleTargetsRequest &request)const; + void deleteEventRuleTargetsAsync(const Model::DeleteEventRuleTargetsRequest& request, const DeleteEventRuleTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEventRuleTargetsOutcomeCallable deleteEventRuleTargetsCallable(const Model::DeleteEventRuleTargetsRequest& request) const; + DeleteEventRulesOutcome deleteEventRules(const Model::DeleteEventRulesRequest &request)const; + void deleteEventRulesAsync(const Model::DeleteEventRulesRequest& request, const DeleteEventRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteEventRulesOutcomeCallable deleteEventRulesCallable(const Model::DeleteEventRulesRequest& request) const; + DeleteGroupMonitoringAgentProcessOutcome deleteGroupMonitoringAgentProcess(const Model::DeleteGroupMonitoringAgentProcessRequest &request)const; + void deleteGroupMonitoringAgentProcessAsync(const Model::DeleteGroupMonitoringAgentProcessRequest& request, const DeleteGroupMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteGroupMonitoringAgentProcessOutcomeCallable deleteGroupMonitoringAgentProcessCallable(const Model::DeleteGroupMonitoringAgentProcessRequest& request) const; + 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; + 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; + DeleteMetricRuleTargetsOutcome deleteMetricRuleTargets(const Model::DeleteMetricRuleTargetsRequest &request)const; + void deleteMetricRuleTargetsAsync(const Model::DeleteMetricRuleTargetsRequest& request, const DeleteMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMetricRuleTargetsOutcomeCallable deleteMetricRuleTargetsCallable(const Model::DeleteMetricRuleTargetsRequest& request) const; + DeleteMetricRuleTemplateOutcome deleteMetricRuleTemplate(const Model::DeleteMetricRuleTemplateRequest &request)const; + void deleteMetricRuleTemplateAsync(const Model::DeleteMetricRuleTemplateRequest& request, const DeleteMetricRuleTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMetricRuleTemplateOutcomeCallable deleteMetricRuleTemplateCallable(const Model::DeleteMetricRuleTemplateRequest& request) const; + DeleteMetricRulesOutcome deleteMetricRules(const Model::DeleteMetricRulesRequest &request)const; + void deleteMetricRulesAsync(const Model::DeleteMetricRulesRequest& request, const DeleteMetricRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMetricRulesOutcomeCallable deleteMetricRulesCallable(const Model::DeleteMetricRulesRequest& request) const; + DeleteMonitorGroupOutcome deleteMonitorGroup(const Model::DeleteMonitorGroupRequest &request)const; + void deleteMonitorGroupAsync(const Model::DeleteMonitorGroupRequest& request, const DeleteMonitorGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMonitorGroupOutcomeCallable deleteMonitorGroupCallable(const Model::DeleteMonitorGroupRequest& request) const; + DeleteMonitorGroupDynamicRuleOutcome deleteMonitorGroupDynamicRule(const Model::DeleteMonitorGroupDynamicRuleRequest &request)const; + void deleteMonitorGroupDynamicRuleAsync(const Model::DeleteMonitorGroupDynamicRuleRequest& request, const DeleteMonitorGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMonitorGroupDynamicRuleOutcomeCallable deleteMonitorGroupDynamicRuleCallable(const Model::DeleteMonitorGroupDynamicRuleRequest& request) const; + DeleteMonitorGroupInstancesOutcome deleteMonitorGroupInstances(const Model::DeleteMonitorGroupInstancesRequest &request)const; + void deleteMonitorGroupInstancesAsync(const Model::DeleteMonitorGroupInstancesRequest& request, const DeleteMonitorGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMonitorGroupInstancesOutcomeCallable deleteMonitorGroupInstancesCallable(const Model::DeleteMonitorGroupInstancesRequest& request) const; + DeleteMonitorGroupNotifyPolicyOutcome deleteMonitorGroupNotifyPolicy(const Model::DeleteMonitorGroupNotifyPolicyRequest &request)const; + void deleteMonitorGroupNotifyPolicyAsync(const Model::DeleteMonitorGroupNotifyPolicyRequest& request, const DeleteMonitorGroupNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMonitorGroupNotifyPolicyOutcomeCallable deleteMonitorGroupNotifyPolicyCallable(const Model::DeleteMonitorGroupNotifyPolicyRequest& request) const; + DeleteMonitoringAgentProcessOutcome deleteMonitoringAgentProcess(const Model::DeleteMonitoringAgentProcessRequest &request)const; + void deleteMonitoringAgentProcessAsync(const Model::DeleteMonitoringAgentProcessRequest& request, const DeleteMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteMonitoringAgentProcessOutcomeCallable deleteMonitoringAgentProcessCallable(const Model::DeleteMonitoringAgentProcessRequest& request) const; + DeleteSiteMonitorsOutcome deleteSiteMonitors(const Model::DeleteSiteMonitorsRequest &request)const; + void deleteSiteMonitorsAsync(const Model::DeleteSiteMonitorsRequest& request, const DeleteSiteMonitorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DeleteSiteMonitorsOutcomeCallable deleteSiteMonitorsCallable(const Model::DeleteSiteMonitorsRequest& request) const; + DescribeActiveMetricRuleListOutcome describeActiveMetricRuleList(const Model::DescribeActiveMetricRuleListRequest &request)const; + void describeActiveMetricRuleListAsync(const Model::DescribeActiveMetricRuleListRequest& request, const DescribeActiveMetricRuleListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeActiveMetricRuleListOutcomeCallable describeActiveMetricRuleListCallable(const Model::DescribeActiveMetricRuleListRequest& request) const; 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; - DescribeContactOutcome describeContact(const Model::DescribeContactRequest &request)const; - void describeContactAsync(const Model::DescribeContactRequest& request, const DescribeContactAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeContactOutcomeCallable describeContactCallable(const Model::DescribeContactRequest& request) const; - DescribeEventRuleOutcome describeEventRule(const Model::DescribeEventRuleRequest &request)const; - void describeEventRuleAsync(const Model::DescribeEventRuleRequest& request, const DescribeEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeEventRuleOutcomeCallable describeEventRuleCallable(const Model::DescribeEventRuleRequest& request) const; - DescribeISPAreaCityOutcome describeISPAreaCity(const Model::DescribeISPAreaCityRequest &request)const; - void describeISPAreaCityAsync(const Model::DescribeISPAreaCityRequest& request, const DescribeISPAreaCityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeISPAreaCityOutcomeCallable describeISPAreaCityCallable(const Model::DescribeISPAreaCityRequest& 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; + DescribeContactGroupListOutcome describeContactGroupList(const Model::DescribeContactGroupListRequest &request)const; + void describeContactGroupListAsync(const Model::DescribeContactGroupListRequest& request, const DescribeContactGroupListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeContactGroupListOutcomeCallable describeContactGroupListCallable(const Model::DescribeContactGroupListRequest& request) const; + DescribeContactListOutcome describeContactList(const Model::DescribeContactListRequest &request)const; + void describeContactListAsync(const Model::DescribeContactListRequest& request, const DescribeContactListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeContactListOutcomeCallable describeContactListCallable(const Model::DescribeContactListRequest& request) const; + DescribeContactListByContactGroupOutcome describeContactListByContactGroup(const Model::DescribeContactListByContactGroupRequest &request)const; + void describeContactListByContactGroupAsync(const Model::DescribeContactListByContactGroupRequest& request, const DescribeContactListByContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeContactListByContactGroupOutcomeCallable describeContactListByContactGroupCallable(const Model::DescribeContactListByContactGroupRequest& request) const; + DescribeCustomEventAttributeOutcome describeCustomEventAttribute(const Model::DescribeCustomEventAttributeRequest &request)const; + void describeCustomEventAttributeAsync(const Model::DescribeCustomEventAttributeRequest& request, const DescribeCustomEventAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomEventAttributeOutcomeCallable describeCustomEventAttributeCallable(const Model::DescribeCustomEventAttributeRequest& request) const; + DescribeCustomEventCountOutcome describeCustomEventCount(const Model::DescribeCustomEventCountRequest &request)const; + void describeCustomEventCountAsync(const Model::DescribeCustomEventCountRequest& request, const DescribeCustomEventCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomEventCountOutcomeCallable describeCustomEventCountCallable(const Model::DescribeCustomEventCountRequest& request) const; + DescribeCustomEventHistogramOutcome describeCustomEventHistogram(const Model::DescribeCustomEventHistogramRequest &request)const; + void describeCustomEventHistogramAsync(const Model::DescribeCustomEventHistogramRequest& request, const DescribeCustomEventHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomEventHistogramOutcomeCallable describeCustomEventHistogramCallable(const Model::DescribeCustomEventHistogramRequest& request) const; + DescribeCustomMetricListOutcome describeCustomMetricList(const Model::DescribeCustomMetricListRequest &request)const; + void describeCustomMetricListAsync(const Model::DescribeCustomMetricListRequest& request, const DescribeCustomMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeCustomMetricListOutcomeCallable describeCustomMetricListCallable(const Model::DescribeCustomMetricListRequest& request) const; + DescribeEventRuleAttributeOutcome describeEventRuleAttribute(const Model::DescribeEventRuleAttributeRequest &request)const; + void describeEventRuleAttributeAsync(const Model::DescribeEventRuleAttributeRequest& request, const DescribeEventRuleAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventRuleAttributeOutcomeCallable describeEventRuleAttributeCallable(const Model::DescribeEventRuleAttributeRequest& request) const; + DescribeEventRuleListOutcome describeEventRuleList(const Model::DescribeEventRuleListRequest &request)const; + void describeEventRuleListAsync(const Model::DescribeEventRuleListRequest& request, const DescribeEventRuleListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventRuleListOutcomeCallable describeEventRuleListCallable(const Model::DescribeEventRuleListRequest& request) const; + DescribeEventRuleTargetListOutcome describeEventRuleTargetList(const Model::DescribeEventRuleTargetListRequest &request)const; + void describeEventRuleTargetListAsync(const Model::DescribeEventRuleTargetListRequest& request, const DescribeEventRuleTargetListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeEventRuleTargetListOutcomeCallable describeEventRuleTargetListCallable(const Model::DescribeEventRuleTargetListRequest& 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; + 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; + DescribeMetricLastOutcome describeMetricLast(const Model::DescribeMetricLastRequest &request)const; + void describeMetricLastAsync(const Model::DescribeMetricLastRequest& request, const DescribeMetricLastAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetricLastOutcomeCallable describeMetricLastCallable(const Model::DescribeMetricLastRequest& request) const; + DescribeMetricListOutcome describeMetricList(const Model::DescribeMetricListRequest &request)const; + void describeMetricListAsync(const Model::DescribeMetricListRequest& request, const DescribeMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetricListOutcomeCallable describeMetricListCallable(const Model::DescribeMetricListRequest& request) const; + DescribeMetricMetaListOutcome describeMetricMetaList(const Model::DescribeMetricMetaListRequest &request)const; + void describeMetricMetaListAsync(const Model::DescribeMetricMetaListRequest& request, const DescribeMetricMetaListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetricMetaListOutcomeCallable describeMetricMetaListCallable(const Model::DescribeMetricMetaListRequest& request) const; + DescribeMetricRuleCountOutcome describeMetricRuleCount(const Model::DescribeMetricRuleCountRequest &request)const; + void describeMetricRuleCountAsync(const Model::DescribeMetricRuleCountRequest& request, const DescribeMetricRuleCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetricRuleCountOutcomeCallable describeMetricRuleCountCallable(const Model::DescribeMetricRuleCountRequest& request) const; + DescribeMetricRuleListOutcome describeMetricRuleList(const Model::DescribeMetricRuleListRequest &request)const; + void describeMetricRuleListAsync(const Model::DescribeMetricRuleListRequest& request, const DescribeMetricRuleListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetricRuleListOutcomeCallable describeMetricRuleListCallable(const Model::DescribeMetricRuleListRequest& request) const; DescribeMetricRuleTargetsOutcome describeMetricRuleTargets(const Model::DescribeMetricRuleTargetsRequest &request)const; void describeMetricRuleTargetsAsync(const Model::DescribeMetricRuleTargetsRequest& request, const DescribeMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeMetricRuleTargetsOutcomeCallable describeMetricRuleTargetsCallable(const Model::DescribeMetricRuleTargetsRequest& request) const; - DescribeSiteMonitorISPAreaCityOutcome describeSiteMonitorISPAreaCity(const Model::DescribeSiteMonitorISPAreaCityRequest &request)const; - void describeSiteMonitorISPAreaCityAsync(const Model::DescribeSiteMonitorISPAreaCityRequest& request, const DescribeSiteMonitorISPAreaCityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeSiteMonitorISPAreaCityOutcomeCallable describeSiteMonitorISPAreaCityCallable(const Model::DescribeSiteMonitorISPAreaCityRequest& request) const; + DescribeMetricRuleTemplateAttributeOutcome describeMetricRuleTemplateAttribute(const Model::DescribeMetricRuleTemplateAttributeRequest &request)const; + void describeMetricRuleTemplateAttributeAsync(const Model::DescribeMetricRuleTemplateAttributeRequest& request, const DescribeMetricRuleTemplateAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetricRuleTemplateAttributeOutcomeCallable describeMetricRuleTemplateAttributeCallable(const Model::DescribeMetricRuleTemplateAttributeRequest& request) const; + DescribeMetricRuleTemplateListOutcome describeMetricRuleTemplateList(const Model::DescribeMetricRuleTemplateListRequest &request)const; + void describeMetricRuleTemplateListAsync(const Model::DescribeMetricRuleTemplateListRequest& request, const DescribeMetricRuleTemplateListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetricRuleTemplateListOutcomeCallable describeMetricRuleTemplateListCallable(const Model::DescribeMetricRuleTemplateListRequest& request) const; + DescribeMetricTopOutcome describeMetricTop(const Model::DescribeMetricTopRequest &request)const; + void describeMetricTopAsync(const Model::DescribeMetricTopRequest& request, const DescribeMetricTopAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMetricTopOutcomeCallable describeMetricTopCallable(const Model::DescribeMetricTopRequest& request) const; + DescribeMonitorGroupCategoriesOutcome describeMonitorGroupCategories(const Model::DescribeMonitorGroupCategoriesRequest &request)const; + void describeMonitorGroupCategoriesAsync(const Model::DescribeMonitorGroupCategoriesRequest& request, const DescribeMonitorGroupCategoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitorGroupCategoriesOutcomeCallable describeMonitorGroupCategoriesCallable(const Model::DescribeMonitorGroupCategoriesRequest& request) const; + DescribeMonitorGroupDynamicRulesOutcome describeMonitorGroupDynamicRules(const Model::DescribeMonitorGroupDynamicRulesRequest &request)const; + void describeMonitorGroupDynamicRulesAsync(const Model::DescribeMonitorGroupDynamicRulesRequest& request, const DescribeMonitorGroupDynamicRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitorGroupDynamicRulesOutcomeCallable describeMonitorGroupDynamicRulesCallable(const Model::DescribeMonitorGroupDynamicRulesRequest& request) const; + DescribeMonitorGroupInstanceAttributeOutcome describeMonitorGroupInstanceAttribute(const Model::DescribeMonitorGroupInstanceAttributeRequest &request)const; + void describeMonitorGroupInstanceAttributeAsync(const Model::DescribeMonitorGroupInstanceAttributeRequest& request, const DescribeMonitorGroupInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitorGroupInstanceAttributeOutcomeCallable describeMonitorGroupInstanceAttributeCallable(const Model::DescribeMonitorGroupInstanceAttributeRequest& request) const; + DescribeMonitorGroupInstancesOutcome describeMonitorGroupInstances(const Model::DescribeMonitorGroupInstancesRequest &request)const; + void describeMonitorGroupInstancesAsync(const Model::DescribeMonitorGroupInstancesRequest& request, const DescribeMonitorGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitorGroupInstancesOutcomeCallable describeMonitorGroupInstancesCallable(const Model::DescribeMonitorGroupInstancesRequest& request) const; + DescribeMonitorGroupNotifyPolicyListOutcome describeMonitorGroupNotifyPolicyList(const Model::DescribeMonitorGroupNotifyPolicyListRequest &request)const; + void describeMonitorGroupNotifyPolicyListAsync(const Model::DescribeMonitorGroupNotifyPolicyListRequest& request, const DescribeMonitorGroupNotifyPolicyListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitorGroupNotifyPolicyListOutcomeCallable describeMonitorGroupNotifyPolicyListCallable(const Model::DescribeMonitorGroupNotifyPolicyListRequest& request) const; + 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; + 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; + DescribeMonitoringAgentConfigOutcome describeMonitoringAgentConfig(const Model::DescribeMonitoringAgentConfigRequest &request)const; + void describeMonitoringAgentConfigAsync(const Model::DescribeMonitoringAgentConfigRequest& request, const DescribeMonitoringAgentConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitoringAgentConfigOutcomeCallable describeMonitoringAgentConfigCallable(const Model::DescribeMonitoringAgentConfigRequest& request) const; + DescribeMonitoringAgentHostsOutcome describeMonitoringAgentHosts(const Model::DescribeMonitoringAgentHostsRequest &request)const; + void describeMonitoringAgentHostsAsync(const Model::DescribeMonitoringAgentHostsRequest& request, const DescribeMonitoringAgentHostsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitoringAgentHostsOutcomeCallable describeMonitoringAgentHostsCallable(const Model::DescribeMonitoringAgentHostsRequest& request) const; + DescribeMonitoringAgentProcessesOutcome describeMonitoringAgentProcesses(const Model::DescribeMonitoringAgentProcessesRequest &request)const; + void describeMonitoringAgentProcessesAsync(const Model::DescribeMonitoringAgentProcessesRequest& request, const DescribeMonitoringAgentProcessesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitoringAgentProcessesOutcomeCallable describeMonitoringAgentProcessesCallable(const Model::DescribeMonitoringAgentProcessesRequest& request) const; + DescribeMonitoringAgentStatusesOutcome describeMonitoringAgentStatuses(const Model::DescribeMonitoringAgentStatusesRequest &request)const; + void describeMonitoringAgentStatusesAsync(const Model::DescribeMonitoringAgentStatusesRequest& request, const DescribeMonitoringAgentStatusesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitoringAgentStatusesOutcomeCallable describeMonitoringAgentStatusesCallable(const Model::DescribeMonitoringAgentStatusesRequest& request) const; + DescribeMonitoringConfigOutcome describeMonitoringConfig(const Model::DescribeMonitoringConfigRequest &request)const; + void describeMonitoringConfigAsync(const Model::DescribeMonitoringConfigRequest& request, const DescribeMonitoringConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeMonitoringConfigOutcomeCallable describeMonitoringConfigCallable(const Model::DescribeMonitoringConfigRequest& request) const; + DescribeProductsOfActiveMetricRuleOutcome describeProductsOfActiveMetricRule(const Model::DescribeProductsOfActiveMetricRuleRequest &request)const; + void describeProductsOfActiveMetricRuleAsync(const Model::DescribeProductsOfActiveMetricRuleRequest& request, const DescribeProductsOfActiveMetricRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProductsOfActiveMetricRuleOutcomeCallable describeProductsOfActiveMetricRuleCallable(const Model::DescribeProductsOfActiveMetricRuleRequest& request) const; + DescribeProjectMetaOutcome describeProjectMeta(const Model::DescribeProjectMetaRequest &request)const; + void describeProjectMetaAsync(const Model::DescribeProjectMetaRequest& request, const DescribeProjectMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeProjectMetaOutcomeCallable describeProjectMetaCallable(const Model::DescribeProjectMetaRequest& request) const; + DescribeSiteMonitorAttributeOutcome describeSiteMonitorAttribute(const Model::DescribeSiteMonitorAttributeRequest &request)const; + void describeSiteMonitorAttributeAsync(const Model::DescribeSiteMonitorAttributeRequest& request, const DescribeSiteMonitorAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSiteMonitorAttributeOutcomeCallable describeSiteMonitorAttributeCallable(const Model::DescribeSiteMonitorAttributeRequest& request) const; + DescribeSiteMonitorDataOutcome describeSiteMonitorData(const Model::DescribeSiteMonitorDataRequest &request)const; + void describeSiteMonitorDataAsync(const Model::DescribeSiteMonitorDataRequest& request, const DescribeSiteMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSiteMonitorDataOutcomeCallable describeSiteMonitorDataCallable(const Model::DescribeSiteMonitorDataRequest& request) const; DescribeSiteMonitorISPCityListOutcome describeSiteMonitorISPCityList(const Model::DescribeSiteMonitorISPCityListRequest &request)const; void describeSiteMonitorISPCityListAsync(const Model::DescribeSiteMonitorISPCityListRequest& request, const DescribeSiteMonitorISPCityListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; DescribeSiteMonitorISPCityListOutcomeCallable describeSiteMonitorISPCityListCallable(const Model::DescribeSiteMonitorISPCityListRequest& request) const; - DescribeTaskDetailOutcome describeTaskDetail(const Model::DescribeTaskDetailRequest &request)const; - void describeTaskDetailAsync(const Model::DescribeTaskDetailRequest& request, const DescribeTaskDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTaskDetailOutcomeCallable describeTaskDetailCallable(const Model::DescribeTaskDetailRequest& request) const; - DescribeTasksOutcome describeTasks(const Model::DescribeTasksRequest &request)const; - void describeTasksAsync(const Model::DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DescribeTasksOutcomeCallable describeTasksCallable(const Model::DescribeTasksRequest& request) const; - DisableActiveAlertOutcome disableActiveAlert(const Model::DisableActiveAlertRequest &request)const; - void disableActiveAlertAsync(const Model::DisableActiveAlertRequest& request, const DisableActiveAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisableActiveAlertOutcomeCallable disableActiveAlertCallable(const Model::DisableActiveAlertRequest& request) const; - DisableAlarmOutcome disableAlarm(const Model::DisableAlarmRequest &request)const; - void disableAlarmAsync(const Model::DisableAlarmRequest& request, const DisableAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisableAlarmOutcomeCallable disableAlarmCallable(const Model::DisableAlarmRequest& request) const; - DisableEventRuleOutcome disableEventRule(const Model::DisableEventRuleRequest &request)const; - void disableEventRuleAsync(const Model::DisableEventRuleRequest& request, const DisableEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - DisableEventRuleOutcomeCallable disableEventRuleCallable(const Model::DisableEventRuleRequest& request) const; - EnableActiveAlertOutcome enableActiveAlert(const Model::EnableActiveAlertRequest &request)const; - void enableActiveAlertAsync(const Model::EnableActiveAlertRequest& request, const EnableActiveAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EnableActiveAlertOutcomeCallable enableActiveAlertCallable(const Model::EnableActiveAlertRequest& request) const; - EnableAlarmOutcome enableAlarm(const Model::EnableAlarmRequest &request)const; - void enableAlarmAsync(const Model::EnableAlarmRequest& request, const EnableAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EnableAlarmOutcomeCallable enableAlarmCallable(const Model::EnableAlarmRequest& request) const; - EnableEventRuleOutcome enableEventRule(const Model::EnableEventRuleRequest &request)const; - void enableEventRuleAsync(const Model::EnableEventRuleRequest& request, const EnableEventRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - EnableEventRuleOutcomeCallable enableEventRuleCallable(const Model::EnableEventRuleRequest& request) const; - GetContactsOutcome getContacts(const Model::GetContactsRequest &request)const; - void getContactsAsync(const Model::GetContactsRequest& request, const GetContactsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetContactsOutcomeCallable getContactsCallable(const Model::GetContactsRequest& request) const; - GetMonitoringTemplateOutcome getMonitoringTemplate(const Model::GetMonitoringTemplateRequest &request)const; - void getMonitoringTemplateAsync(const Model::GetMonitoringTemplateRequest& request, const GetMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetMonitoringTemplateOutcomeCallable getMonitoringTemplateCallable(const Model::GetMonitoringTemplateRequest& request) const; - GetMyGroupAlertOutcome getMyGroupAlert(const Model::GetMyGroupAlertRequest &request)const; - void getMyGroupAlertAsync(const Model::GetMyGroupAlertRequest& request, const GetMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetMyGroupAlertOutcomeCallable getMyGroupAlertCallable(const Model::GetMyGroupAlertRequest& request) const; - GetMyGroupsOutcome getMyGroups(const Model::GetMyGroupsRequest &request)const; - void getMyGroupsAsync(const Model::GetMyGroupsRequest& request, const GetMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetMyGroupsOutcomeCallable getMyGroupsCallable(const Model::GetMyGroupsRequest& request) const; - GetNotifyPolicyOutcome getNotifyPolicy(const Model::GetNotifyPolicyRequest &request)const; - void getNotifyPolicyAsync(const Model::GetNotifyPolicyRequest& request, const GetNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - GetNotifyPolicyOutcomeCallable getNotifyPolicyCallable(const Model::GetNotifyPolicyRequest& request) const; - ListActiveAlertRuleOutcome listActiveAlertRule(const Model::ListActiveAlertRuleRequest &request)const; - void listActiveAlertRuleAsync(const Model::ListActiveAlertRuleRequest& request, const ListActiveAlertRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListActiveAlertRuleOutcomeCallable listActiveAlertRuleCallable(const Model::ListActiveAlertRuleRequest& request) const; - ListAlarmOutcome listAlarm(const Model::ListAlarmRequest &request)const; - void listAlarmAsync(const Model::ListAlarmRequest& request, const ListAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlarmOutcomeCallable listAlarmCallable(const Model::ListAlarmRequest& request) const; - ListAlarmHistoryOutcome listAlarmHistory(const Model::ListAlarmHistoryRequest &request)const; - void listAlarmHistoryAsync(const Model::ListAlarmHistoryRequest& request, const ListAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListAlarmHistoryOutcomeCallable listAlarmHistoryCallable(const Model::ListAlarmHistoryRequest& request) const; - ListContactGroupOutcome listContactGroup(const Model::ListContactGroupRequest &request)const; - void listContactGroupAsync(const Model::ListContactGroupRequest& request, const ListContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListContactGroupOutcomeCallable listContactGroupCallable(const Model::ListContactGroupRequest& request) const; - ListEventRulesOutcome listEventRules(const Model::ListEventRulesRequest &request)const; - void listEventRulesAsync(const Model::ListEventRulesRequest& request, const ListEventRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListEventRulesOutcomeCallable listEventRulesCallable(const Model::ListEventRulesRequest& request) const; - ListEventTargetsByRuleOutcome listEventTargetsByRule(const Model::ListEventTargetsByRuleRequest &request)const; - void listEventTargetsByRuleAsync(const Model::ListEventTargetsByRuleRequest& request, const ListEventTargetsByRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListEventTargetsByRuleOutcomeCallable listEventTargetsByRuleCallable(const Model::ListEventTargetsByRuleRequest& request) const; - ListGroupDynamicRuleOutcome listGroupDynamicRule(const Model::ListGroupDynamicRuleRequest &request)const; - void listGroupDynamicRuleAsync(const Model::ListGroupDynamicRuleRequest& request, const ListGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListGroupDynamicRuleOutcomeCallable listGroupDynamicRuleCallable(const Model::ListGroupDynamicRuleRequest& request) const; - ListMonitoringTemplatesOutcome listMonitoringTemplates(const Model::ListMonitoringTemplatesRequest &request)const; - void listMonitoringTemplatesAsync(const Model::ListMonitoringTemplatesRequest& request, const ListMonitoringTemplatesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMonitoringTemplatesOutcomeCallable listMonitoringTemplatesCallable(const Model::ListMonitoringTemplatesRequest& request) const; - ListMyGroupCategoriesOutcome listMyGroupCategories(const Model::ListMyGroupCategoriesRequest &request)const; - void listMyGroupCategoriesAsync(const Model::ListMyGroupCategoriesRequest& request, const ListMyGroupCategoriesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMyGroupCategoriesOutcomeCallable listMyGroupCategoriesCallable(const Model::ListMyGroupCategoriesRequest& request) const; - ListMyGroupInstancesOutcome listMyGroupInstances(const Model::ListMyGroupInstancesRequest &request)const; - void listMyGroupInstancesAsync(const Model::ListMyGroupInstancesRequest& request, const ListMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMyGroupInstancesOutcomeCallable listMyGroupInstancesCallable(const Model::ListMyGroupInstancesRequest& request) const; - ListMyGroupInstancesDetailsOutcome listMyGroupInstancesDetails(const Model::ListMyGroupInstancesDetailsRequest &request)const; - void listMyGroupInstancesDetailsAsync(const Model::ListMyGroupInstancesDetailsRequest& request, const ListMyGroupInstancesDetailsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMyGroupInstancesDetailsOutcomeCallable listMyGroupInstancesDetailsCallable(const Model::ListMyGroupInstancesDetailsRequest& request) const; - ListMyGroupsOutcome listMyGroups(const Model::ListMyGroupsRequest &request)const; - void listMyGroupsAsync(const Model::ListMyGroupsRequest& request, const ListMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListMyGroupsOutcomeCallable listMyGroupsCallable(const Model::ListMyGroupsRequest& request) const; - ListNotifyPolicyOutcome listNotifyPolicy(const Model::ListNotifyPolicyRequest &request)const; - void listNotifyPolicyAsync(const Model::ListNotifyPolicyRequest& request, const ListNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListNotifyPolicyOutcomeCallable listNotifyPolicyCallable(const Model::ListNotifyPolicyRequest& request) const; - ListProductOfActiveAlertOutcome listProductOfActiveAlert(const Model::ListProductOfActiveAlertRequest &request)const; - void listProductOfActiveAlertAsync(const Model::ListProductOfActiveAlertRequest& request, const ListProductOfActiveAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ListProductOfActiveAlertOutcomeCallable listProductOfActiveAlertCallable(const Model::ListProductOfActiveAlertRequest& request) const; - ModifyTaskOutcome modifyTask(const Model::ModifyTaskRequest &request)const; - void modifyTaskAsync(const Model::ModifyTaskRequest& request, const ModifyTaskAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ModifyTaskOutcomeCallable modifyTaskCallable(const Model::ModifyTaskRequest& request) const; - NodeInstallOutcome nodeInstall(const Model::NodeInstallRequest &request)const; - void nodeInstallAsync(const Model::NodeInstallRequest& request, const NodeInstallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeInstallOutcomeCallable nodeInstallCallable(const Model::NodeInstallRequest& request) const; - NodeListOutcome nodeList(const Model::NodeListRequest &request)const; - void nodeListAsync(const Model::NodeListRequest& request, const NodeListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeListOutcomeCallable nodeListCallable(const Model::NodeListRequest& request) const; - NodeProcessCreateOutcome nodeProcessCreate(const Model::NodeProcessCreateRequest &request)const; - void nodeProcessCreateAsync(const Model::NodeProcessCreateRequest& request, const NodeProcessCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeProcessCreateOutcomeCallable nodeProcessCreateCallable(const Model::NodeProcessCreateRequest& request) const; - NodeProcessDeleteOutcome nodeProcessDelete(const Model::NodeProcessDeleteRequest &request)const; - void nodeProcessDeleteAsync(const Model::NodeProcessDeleteRequest& request, const NodeProcessDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeProcessDeleteOutcomeCallable nodeProcessDeleteCallable(const Model::NodeProcessDeleteRequest& request) const; - NodeProcessesOutcome nodeProcesses(const Model::NodeProcessesRequest &request)const; - void nodeProcessesAsync(const Model::NodeProcessesRequest& request, const NodeProcessesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeProcessesOutcomeCallable nodeProcessesCallable(const Model::NodeProcessesRequest& request) const; - NodeStatusOutcome nodeStatus(const Model::NodeStatusRequest &request)const; - void nodeStatusAsync(const Model::NodeStatusRequest& request, const NodeStatusAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeStatusOutcomeCallable nodeStatusCallable(const Model::NodeStatusRequest& request) const; - NodeStatusListOutcome nodeStatusList(const Model::NodeStatusListRequest &request)const; - void nodeStatusListAsync(const Model::NodeStatusListRequest& request, const NodeStatusListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeStatusListOutcomeCallable nodeStatusListCallable(const Model::NodeStatusListRequest& request) const; - NodeUninstallOutcome nodeUninstall(const Model::NodeUninstallRequest &request)const; - void nodeUninstallAsync(const Model::NodeUninstallRequest& request, const NodeUninstallAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - NodeUninstallOutcomeCallable nodeUninstallCallable(const Model::NodeUninstallRequest& request) const; - ProfileGetOutcome profileGet(const Model::ProfileGetRequest &request)const; - void profileGetAsync(const Model::ProfileGetRequest& request, const ProfileGetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ProfileGetOutcomeCallable profileGetCallable(const Model::ProfileGetRequest& request) const; - ProfileSetOutcome profileSet(const Model::ProfileSetRequest &request)const; - void profileSetAsync(const Model::ProfileSetRequest& request, const ProfileSetAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - ProfileSetOutcomeCallable profileSetCallable(const Model::ProfileSetRequest& request) const; + DescribeSiteMonitorListOutcome describeSiteMonitorList(const Model::DescribeSiteMonitorListRequest &request)const; + void describeSiteMonitorListAsync(const Model::DescribeSiteMonitorListRequest& request, const DescribeSiteMonitorListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSiteMonitorListOutcomeCallable describeSiteMonitorListCallable(const Model::DescribeSiteMonitorListRequest& request) const; + DescribeSiteMonitorQuotaOutcome describeSiteMonitorQuota(const Model::DescribeSiteMonitorQuotaRequest &request)const; + void describeSiteMonitorQuotaAsync(const Model::DescribeSiteMonitorQuotaRequest& request, const DescribeSiteMonitorQuotaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSiteMonitorQuotaOutcomeCallable describeSiteMonitorQuotaCallable(const Model::DescribeSiteMonitorQuotaRequest& request) const; + DescribeSiteMonitorStatisticsOutcome describeSiteMonitorStatistics(const Model::DescribeSiteMonitorStatisticsRequest &request)const; + void describeSiteMonitorStatisticsAsync(const Model::DescribeSiteMonitorStatisticsRequest& request, const DescribeSiteMonitorStatisticsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSiteMonitorStatisticsOutcomeCallable describeSiteMonitorStatisticsCallable(const Model::DescribeSiteMonitorStatisticsRequest& request) const; + DescribeSystemEventAttributeOutcome describeSystemEventAttribute(const Model::DescribeSystemEventAttributeRequest &request)const; + void describeSystemEventAttributeAsync(const Model::DescribeSystemEventAttributeRequest& request, const DescribeSystemEventAttributeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSystemEventAttributeOutcomeCallable describeSystemEventAttributeCallable(const Model::DescribeSystemEventAttributeRequest& request) const; + DescribeSystemEventCountOutcome describeSystemEventCount(const Model::DescribeSystemEventCountRequest &request)const; + void describeSystemEventCountAsync(const Model::DescribeSystemEventCountRequest& request, const DescribeSystemEventCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSystemEventCountOutcomeCallable describeSystemEventCountCallable(const Model::DescribeSystemEventCountRequest& request) const; + DescribeSystemEventHistogramOutcome describeSystemEventHistogram(const Model::DescribeSystemEventHistogramRequest &request)const; + void describeSystemEventHistogramAsync(const Model::DescribeSystemEventHistogramRequest& request, const DescribeSystemEventHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSystemEventHistogramOutcomeCallable describeSystemEventHistogramCallable(const Model::DescribeSystemEventHistogramRequest& request) const; + DescribeSystemEventMetaListOutcome describeSystemEventMetaList(const Model::DescribeSystemEventMetaListRequest &request)const; + void describeSystemEventMetaListAsync(const Model::DescribeSystemEventMetaListRequest& request, const DescribeSystemEventMetaListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeSystemEventMetaListOutcomeCallable describeSystemEventMetaListCallable(const Model::DescribeSystemEventMetaListRequest& request) const; + DescribeTagKeyListOutcome describeTagKeyList(const Model::DescribeTagKeyListRequest &request)const; + void describeTagKeyListAsync(const Model::DescribeTagKeyListRequest& request, const DescribeTagKeyListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagKeyListOutcomeCallable describeTagKeyListCallable(const Model::DescribeTagKeyListRequest& request) const; + DescribeTagValueListOutcome describeTagValueList(const Model::DescribeTagValueListRequest &request)const; + void describeTagValueListAsync(const Model::DescribeTagValueListRequest& request, const DescribeTagValueListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeTagValueListOutcomeCallable describeTagValueListCallable(const Model::DescribeTagValueListRequest& request) const; + DescribeUnhealthyHostAvailabilityOutcome describeUnhealthyHostAvailability(const Model::DescribeUnhealthyHostAvailabilityRequest &request)const; + void describeUnhealthyHostAvailabilityAsync(const Model::DescribeUnhealthyHostAvailabilityRequest& request, const DescribeUnhealthyHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DescribeUnhealthyHostAvailabilityOutcomeCallable describeUnhealthyHostAvailabilityCallable(const Model::DescribeUnhealthyHostAvailabilityRequest& request) const; + DisableActiveMetricRuleOutcome disableActiveMetricRule(const Model::DisableActiveMetricRuleRequest &request)const; + void disableActiveMetricRuleAsync(const Model::DisableActiveMetricRuleRequest& request, const DisableActiveMetricRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableActiveMetricRuleOutcomeCallable disableActiveMetricRuleCallable(const Model::DisableActiveMetricRuleRequest& request) const; + DisableEventRulesOutcome disableEventRules(const Model::DisableEventRulesRequest &request)const; + void disableEventRulesAsync(const Model::DisableEventRulesRequest& request, const DisableEventRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableEventRulesOutcomeCallable disableEventRulesCallable(const Model::DisableEventRulesRequest& request) const; + DisableHostAvailabilityOutcome disableHostAvailability(const Model::DisableHostAvailabilityRequest &request)const; + void disableHostAvailabilityAsync(const Model::DisableHostAvailabilityRequest& request, const DisableHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableHostAvailabilityOutcomeCallable disableHostAvailabilityCallable(const Model::DisableHostAvailabilityRequest& request) const; + DisableMetricRulesOutcome disableMetricRules(const Model::DisableMetricRulesRequest &request)const; + void disableMetricRulesAsync(const Model::DisableMetricRulesRequest& request, const DisableMetricRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableMetricRulesOutcomeCallable disableMetricRulesCallable(const Model::DisableMetricRulesRequest& request) const; + DisableSiteMonitorsOutcome disableSiteMonitors(const Model::DisableSiteMonitorsRequest &request)const; + void disableSiteMonitorsAsync(const Model::DisableSiteMonitorsRequest& request, const DisableSiteMonitorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + DisableSiteMonitorsOutcomeCallable disableSiteMonitorsCallable(const Model::DisableSiteMonitorsRequest& request) const; + EnableActiveMetricRuleOutcome enableActiveMetricRule(const Model::EnableActiveMetricRuleRequest &request)const; + void enableActiveMetricRuleAsync(const Model::EnableActiveMetricRuleRequest& request, const EnableActiveMetricRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableActiveMetricRuleOutcomeCallable enableActiveMetricRuleCallable(const Model::EnableActiveMetricRuleRequest& request) const; + EnableEventRulesOutcome enableEventRules(const Model::EnableEventRulesRequest &request)const; + void enableEventRulesAsync(const Model::EnableEventRulesRequest& request, const EnableEventRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableEventRulesOutcomeCallable enableEventRulesCallable(const Model::EnableEventRulesRequest& request) const; + EnableHostAvailabilityOutcome enableHostAvailability(const Model::EnableHostAvailabilityRequest &request)const; + void enableHostAvailabilityAsync(const Model::EnableHostAvailabilityRequest& request, const EnableHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableHostAvailabilityOutcomeCallable enableHostAvailabilityCallable(const Model::EnableHostAvailabilityRequest& request) const; + EnableMetricRulesOutcome enableMetricRules(const Model::EnableMetricRulesRequest &request)const; + void enableMetricRulesAsync(const Model::EnableMetricRulesRequest& request, const EnableMetricRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableMetricRulesOutcomeCallable enableMetricRulesCallable(const Model::EnableMetricRulesRequest& request) const; + EnableSiteMonitorsOutcome enableSiteMonitors(const Model::EnableSiteMonitorsRequest &request)const; + void enableSiteMonitorsAsync(const Model::EnableSiteMonitorsRequest& request, const EnableSiteMonitorsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + EnableSiteMonitorsOutcomeCallable enableSiteMonitorsCallable(const Model::EnableSiteMonitorsRequest& request) const; + InstallMonitoringAgentOutcome installMonitoringAgent(const Model::InstallMonitoringAgentRequest &request)const; + void installMonitoringAgentAsync(const Model::InstallMonitoringAgentRequest& request, const InstallMonitoringAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + InstallMonitoringAgentOutcomeCallable installMonitoringAgentCallable(const Model::InstallMonitoringAgentRequest& request) const; + ModifyGroupMonitoringAgentProcessOutcome modifyGroupMonitoringAgentProcess(const Model::ModifyGroupMonitoringAgentProcessRequest &request)const; + void modifyGroupMonitoringAgentProcessAsync(const Model::ModifyGroupMonitoringAgentProcessRequest& request, const ModifyGroupMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyGroupMonitoringAgentProcessOutcomeCallable modifyGroupMonitoringAgentProcessCallable(const Model::ModifyGroupMonitoringAgentProcessRequest& request) const; + 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; + 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; + ModifyMonitorGroupOutcome modifyMonitorGroup(const Model::ModifyMonitorGroupRequest &request)const; + void modifyMonitorGroupAsync(const Model::ModifyMonitorGroupRequest& request, const ModifyMonitorGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyMonitorGroupOutcomeCallable modifyMonitorGroupCallable(const Model::ModifyMonitorGroupRequest& request) const; + ModifyMonitorGroupInstancesOutcome modifyMonitorGroupInstances(const Model::ModifyMonitorGroupInstancesRequest &request)const; + void modifyMonitorGroupInstancesAsync(const Model::ModifyMonitorGroupInstancesRequest& request, const ModifyMonitorGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + ModifyMonitorGroupInstancesOutcomeCallable modifyMonitorGroupInstancesCallable(const Model::ModifyMonitorGroupInstancesRequest& request) const; + 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; + 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; + PutContactGroupOutcome putContactGroup(const Model::PutContactGroupRequest &request)const; + void putContactGroupAsync(const Model::PutContactGroupRequest& request, const PutContactGroupAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutContactGroupOutcomeCallable putContactGroupCallable(const Model::PutContactGroupRequest& request) const; + 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; 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; - PutEventOutcome putEvent(const Model::PutEventRequest &request)const; - void putEventAsync(const Model::PutEventRequest& request, const PutEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutEventOutcomeCallable putEventCallable(const Model::PutEventRequest& 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; - PutEventTargetsOutcome putEventTargets(const Model::PutEventTargetsRequest &request)const; - void putEventTargetsAsync(const Model::PutEventTargetsRequest& request, const PutEventTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutEventTargetsOutcomeCallable putEventTargetsCallable(const Model::PutEventTargetsRequest& request) const; - PutGroupDynamicRuleOutcome putGroupDynamicRule(const Model::PutGroupDynamicRuleRequest &request)const; - void putGroupDynamicRuleAsync(const Model::PutGroupDynamicRuleRequest& request, const PutGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutGroupDynamicRuleOutcomeCallable putGroupDynamicRuleCallable(const Model::PutGroupDynamicRuleRequest& request) const; - PutMetricAlarmOutcome putMetricAlarm(const Model::PutMetricAlarmRequest &request)const; - void putMetricAlarmAsync(const Model::PutMetricAlarmRequest& request, const PutMetricAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - PutMetricAlarmOutcomeCallable putMetricAlarmCallable(const Model::PutMetricAlarmRequest& request) const; + PutEventRuleTargetsOutcome putEventRuleTargets(const Model::PutEventRuleTargetsRequest &request)const; + void putEventRuleTargetsAsync(const Model::PutEventRuleTargetsRequest& request, const PutEventRuleTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutEventRuleTargetsOutcomeCallable putEventRuleTargetsCallable(const Model::PutEventRuleTargetsRequest& request) const; + 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; 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; - QueryCustomEventCountOutcome queryCustomEventCount(const Model::QueryCustomEventCountRequest &request)const; - void queryCustomEventCountAsync(const Model::QueryCustomEventCountRequest& request, const QueryCustomEventCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCustomEventCountOutcomeCallable queryCustomEventCountCallable(const Model::QueryCustomEventCountRequest& request) const; - QueryCustomEventDetailOutcome queryCustomEventDetail(const Model::QueryCustomEventDetailRequest &request)const; - void queryCustomEventDetailAsync(const Model::QueryCustomEventDetailRequest& request, const QueryCustomEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCustomEventDetailOutcomeCallable queryCustomEventDetailCallable(const Model::QueryCustomEventDetailRequest& request) const; - QueryCustomEventHistogramOutcome queryCustomEventHistogram(const Model::QueryCustomEventHistogramRequest &request)const; - void queryCustomEventHistogramAsync(const Model::QueryCustomEventHistogramRequest& request, const QueryCustomEventHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCustomEventHistogramOutcomeCallable queryCustomEventHistogramCallable(const Model::QueryCustomEventHistogramRequest& request) const; - QueryCustomMetricListOutcome queryCustomMetricList(const Model::QueryCustomMetricListRequest &request)const; - void queryCustomMetricListAsync(const Model::QueryCustomMetricListRequest& request, const QueryCustomMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryCustomMetricListOutcomeCallable queryCustomMetricListCallable(const Model::QueryCustomMetricListRequest& request) const; - QueryErrorDistributionOutcome queryErrorDistribution(const Model::QueryErrorDistributionRequest &request)const; - void queryErrorDistributionAsync(const Model::QueryErrorDistributionRequest& request, const QueryErrorDistributionAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryErrorDistributionOutcomeCallable queryErrorDistributionCallable(const Model::QueryErrorDistributionRequest& request) const; - QueryMetricDataOutcome queryMetricData(const Model::QueryMetricDataRequest &request)const; - void queryMetricDataAsync(const Model::QueryMetricDataRequest& request, const QueryMetricDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMetricDataOutcomeCallable queryMetricDataCallable(const Model::QueryMetricDataRequest& request) const; - QueryMetricLastOutcome queryMetricLast(const Model::QueryMetricLastRequest &request)const; - void queryMetricLastAsync(const Model::QueryMetricLastRequest& request, const QueryMetricLastAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMetricLastOutcomeCallable queryMetricLastCallable(const Model::QueryMetricLastRequest& request) const; - QueryMetricListOutcome queryMetricList(const Model::QueryMetricListRequest &request)const; - void queryMetricListAsync(const Model::QueryMetricListRequest& request, const QueryMetricListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMetricListOutcomeCallable queryMetricListCallable(const Model::QueryMetricListRequest& request) const; - QueryMetricMetaOutcome queryMetricMeta(const Model::QueryMetricMetaRequest &request)const; - void queryMetricMetaAsync(const Model::QueryMetricMetaRequest& request, const QueryMetricMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMetricMetaOutcomeCallable queryMetricMetaCallable(const Model::QueryMetricMetaRequest& request) const; - QueryMetricTopOutcome queryMetricTop(const Model::QueryMetricTopRequest &request)const; - void queryMetricTopAsync(const Model::QueryMetricTopRequest& request, const QueryMetricTopAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMetricTopOutcomeCallable queryMetricTopCallable(const Model::QueryMetricTopRequest& request) const; - QueryMonitorDataOutcome queryMonitorData(const Model::QueryMonitorDataRequest &request)const; - void queryMonitorDataAsync(const Model::QueryMonitorDataRequest& request, const QueryMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryMonitorDataOutcomeCallable queryMonitorDataCallable(const Model::QueryMonitorDataRequest& request) const; - QueryProjectMetaOutcome queryProjectMeta(const Model::QueryProjectMetaRequest &request)const; - void queryProjectMetaAsync(const Model::QueryProjectMetaRequest& request, const QueryProjectMetaAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryProjectMetaOutcomeCallable queryProjectMetaCallable(const Model::QueryProjectMetaRequest& request) const; - QueryStaticsAvailabilityOutcome queryStaticsAvailability(const Model::QueryStaticsAvailabilityRequest &request)const; - void queryStaticsAvailabilityAsync(const Model::QueryStaticsAvailabilityRequest& request, const QueryStaticsAvailabilityAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryStaticsAvailabilityOutcomeCallable queryStaticsAvailabilityCallable(const Model::QueryStaticsAvailabilityRequest& request) const; - QueryStaticsErrorRateOutcome queryStaticsErrorRate(const Model::QueryStaticsErrorRateRequest &request)const; - void queryStaticsErrorRateAsync(const Model::QueryStaticsErrorRateRequest& request, const QueryStaticsErrorRateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryStaticsErrorRateOutcomeCallable queryStaticsErrorRateCallable(const Model::QueryStaticsErrorRateRequest& request) const; - QueryStaticsResponseTimeOutcome queryStaticsResponseTime(const Model::QueryStaticsResponseTimeRequest &request)const; - void queryStaticsResponseTimeAsync(const Model::QueryStaticsResponseTimeRequest& request, const QueryStaticsResponseTimeAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryStaticsResponseTimeOutcomeCallable queryStaticsResponseTimeCallable(const Model::QueryStaticsResponseTimeRequest& request) const; - QuerySystemEventCountOutcome querySystemEventCount(const Model::QuerySystemEventCountRequest &request)const; - void querySystemEventCountAsync(const Model::QuerySystemEventCountRequest& request, const QuerySystemEventCountAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySystemEventCountOutcomeCallable querySystemEventCountCallable(const Model::QuerySystemEventCountRequest& request) const; - QuerySystemEventDemoOutcome querySystemEventDemo(const Model::QuerySystemEventDemoRequest &request)const; - void querySystemEventDemoAsync(const Model::QuerySystemEventDemoRequest& request, const QuerySystemEventDemoAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySystemEventDemoOutcomeCallable querySystemEventDemoCallable(const Model::QuerySystemEventDemoRequest& request) const; - QuerySystemEventDetailOutcome querySystemEventDetail(const Model::QuerySystemEventDetailRequest &request)const; - void querySystemEventDetailAsync(const Model::QuerySystemEventDetailRequest& request, const QuerySystemEventDetailAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySystemEventDetailOutcomeCallable querySystemEventDetailCallable(const Model::QuerySystemEventDetailRequest& request) const; - QuerySystemEventHistogramOutcome querySystemEventHistogram(const Model::QuerySystemEventHistogramRequest &request)const; - void querySystemEventHistogramAsync(const Model::QuerySystemEventHistogramRequest& request, const QuerySystemEventHistogramAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QuerySystemEventHistogramOutcomeCallable querySystemEventHistogramCallable(const Model::QuerySystemEventHistogramRequest& request) const; - QueryTaskConfigOutcome queryTaskConfig(const Model::QueryTaskConfigRequest &request)const; - void queryTaskConfigAsync(const Model::QueryTaskConfigRequest& request, const QueryTaskConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryTaskConfigOutcomeCallable queryTaskConfigCallable(const Model::QueryTaskConfigRequest& request) const; - QueryTaskMonitorDataOutcome queryTaskMonitorData(const Model::QueryTaskMonitorDataRequest &request)const; - void queryTaskMonitorDataAsync(const Model::QueryTaskMonitorDataRequest& request, const QueryTaskMonitorDataAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - QueryTaskMonitorDataOutcomeCallable queryTaskMonitorDataCallable(const Model::QueryTaskMonitorDataRequest& request) const; - RemoveMetricRuleTargetsOutcome removeMetricRuleTargets(const Model::RemoveMetricRuleTargetsRequest &request)const; - void removeMetricRuleTargetsAsync(const Model::RemoveMetricRuleTargetsRequest& request, const RemoveMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - RemoveMetricRuleTargetsOutcomeCallable removeMetricRuleTargetsCallable(const Model::RemoveMetricRuleTargetsRequest& request) const; + PutMonitorGroupDynamicRuleOutcome putMonitorGroupDynamicRule(const Model::PutMonitorGroupDynamicRuleRequest &request)const; + void putMonitorGroupDynamicRuleAsync(const Model::PutMonitorGroupDynamicRuleRequest& request, const PutMonitorGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutMonitorGroupDynamicRuleOutcomeCallable putMonitorGroupDynamicRuleCallable(const Model::PutMonitorGroupDynamicRuleRequest& request) const; + PutMonitoringConfigOutcome putMonitoringConfig(const Model::PutMonitoringConfigRequest &request)const; + void putMonitoringConfigAsync(const Model::PutMonitoringConfigRequest& request, const PutMonitoringConfigAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutMonitoringConfigOutcomeCallable putMonitoringConfigCallable(const Model::PutMonitoringConfigRequest& request) const; + PutResourceMetricRuleOutcome putResourceMetricRule(const Model::PutResourceMetricRuleRequest &request)const; + void putResourceMetricRuleAsync(const Model::PutResourceMetricRuleRequest& request, const PutResourceMetricRuleAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutResourceMetricRuleOutcomeCallable putResourceMetricRuleCallable(const Model::PutResourceMetricRuleRequest& request) const; + PutResourceMetricRulesOutcome putResourceMetricRules(const Model::PutResourceMetricRulesRequest &request)const; + void putResourceMetricRulesAsync(const Model::PutResourceMetricRulesRequest& request, const PutResourceMetricRulesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + PutResourceMetricRulesOutcomeCallable putResourceMetricRulesCallable(const Model::PutResourceMetricRulesRequest& request) const; + RemoveTagsOutcome removeTags(const Model::RemoveTagsRequest &request)const; + void removeTagsAsync(const Model::RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + RemoveTagsOutcomeCallable removeTagsCallable(const Model::RemoveTagsRequest& request) const; SendDryRunSystemEventOutcome sendDryRunSystemEvent(const Model::SendDryRunSystemEventRequest &request)const; void sendDryRunSystemEventAsync(const Model::SendDryRunSystemEventRequest& request, const SendDryRunSystemEventAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; SendDryRunSystemEventOutcomeCallable sendDryRunSystemEventCallable(const Model::SendDryRunSystemEventRequest& request) const; - StartTasksOutcome startTasks(const Model::StartTasksRequest &request)const; - void startTasksAsync(const Model::StartTasksRequest& request, const StartTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StartTasksOutcomeCallable startTasksCallable(const Model::StartTasksRequest& request) const; - StopTasksOutcome stopTasks(const Model::StopTasksRequest &request)const; - void stopTasksAsync(const Model::StopTasksRequest& request, const StopTasksAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - StopTasksOutcomeCallable stopTasksCallable(const Model::StopTasksRequest& request) const; - TaskConfigCreateOutcome taskConfigCreate(const Model::TaskConfigCreateRequest &request)const; - void taskConfigCreateAsync(const Model::TaskConfigCreateRequest& request, const TaskConfigCreateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TaskConfigCreateOutcomeCallable taskConfigCreateCallable(const Model::TaskConfigCreateRequest& request) const; - TaskConfigDeleteOutcome taskConfigDelete(const Model::TaskConfigDeleteRequest &request)const; - void taskConfigDeleteAsync(const Model::TaskConfigDeleteRequest& request, const TaskConfigDeleteAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TaskConfigDeleteOutcomeCallable taskConfigDeleteCallable(const Model::TaskConfigDeleteRequest& request) const; - TaskConfigEnableOutcome taskConfigEnable(const Model::TaskConfigEnableRequest &request)const; - void taskConfigEnableAsync(const Model::TaskConfigEnableRequest& request, const TaskConfigEnableAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TaskConfigEnableOutcomeCallable taskConfigEnableCallable(const Model::TaskConfigEnableRequest& request) const; - TaskConfigListOutcome taskConfigList(const Model::TaskConfigListRequest &request)const; - void taskConfigListAsync(const Model::TaskConfigListRequest& request, const TaskConfigListAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TaskConfigListOutcomeCallable taskConfigListCallable(const Model::TaskConfigListRequest& request) const; - TaskConfigModifyOutcome taskConfigModify(const Model::TaskConfigModifyRequest &request)const; - void taskConfigModifyAsync(const Model::TaskConfigModifyRequest& request, const TaskConfigModifyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TaskConfigModifyOutcomeCallable taskConfigModifyCallable(const Model::TaskConfigModifyRequest& request) const; - TaskConfigUnhealthyOutcome taskConfigUnhealthy(const Model::TaskConfigUnhealthyRequest &request)const; - void taskConfigUnhealthyAsync(const Model::TaskConfigUnhealthyRequest& request, const TaskConfigUnhealthyAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - TaskConfigUnhealthyOutcomeCallable taskConfigUnhealthyCallable(const Model::TaskConfigUnhealthyRequest& request) const; - UpdateAlarmOutcome updateAlarm(const Model::UpdateAlarmRequest &request)const; - void updateAlarmAsync(const Model::UpdateAlarmRequest& request, const UpdateAlarmAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateAlarmOutcomeCallable updateAlarmCallable(const Model::UpdateAlarmRequest& request) const; - UpdateMonitoringTemplateOutcome updateMonitoringTemplate(const Model::UpdateMonitoringTemplateRequest &request)const; - void updateMonitoringTemplateAsync(const Model::UpdateMonitoringTemplateRequest& request, const UpdateMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateMonitoringTemplateOutcomeCallable updateMonitoringTemplateCallable(const Model::UpdateMonitoringTemplateRequest& request) const; - UpdateMyGroupAlertOutcome updateMyGroupAlert(const Model::UpdateMyGroupAlertRequest &request)const; - void updateMyGroupAlertAsync(const Model::UpdateMyGroupAlertRequest& request, const UpdateMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateMyGroupAlertOutcomeCallable updateMyGroupAlertCallable(const Model::UpdateMyGroupAlertRequest& request) const; - UpdateMyGroupInstancesOutcome updateMyGroupInstances(const Model::UpdateMyGroupInstancesRequest &request)const; - void updateMyGroupInstancesAsync(const Model::UpdateMyGroupInstancesRequest& request, const UpdateMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateMyGroupInstancesOutcomeCallable updateMyGroupInstancesCallable(const Model::UpdateMyGroupInstancesRequest& request) const; - UpdateMyGroupMembersOutcome updateMyGroupMembers(const Model::UpdateMyGroupMembersRequest &request)const; - void updateMyGroupMembersAsync(const Model::UpdateMyGroupMembersRequest& request, const UpdateMyGroupMembersAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateMyGroupMembersOutcomeCallable updateMyGroupMembersCallable(const Model::UpdateMyGroupMembersRequest& request) const; - UpdateMyGroupsOutcome updateMyGroups(const Model::UpdateMyGroupsRequest &request)const; - void updateMyGroupsAsync(const Model::UpdateMyGroupsRequest& request, const UpdateMyGroupsAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; - UpdateMyGroupsOutcomeCallable updateMyGroupsCallable(const Model::UpdateMyGroupsRequest& request) const; + UninstallMonitoringAgentOutcome uninstallMonitoringAgent(const Model::UninstallMonitoringAgentRequest &request)const; + void uninstallMonitoringAgentAsync(const Model::UninstallMonitoringAgentRequest& request, const UninstallMonitoringAgentAsyncHandler& handler, const std::shared_ptr& context = nullptr) const; + UninstallMonitoringAgentOutcomeCallable uninstallMonitoringAgentCallable(const Model::UninstallMonitoringAgentRequest& request) const; private: std::shared_ptr endpointProvider_; diff --git a/cms/include/alibabacloud/cms/model/AddMyGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/AddMyGroupInstancesResult.h deleted file mode 100644 index 51b792ee1..000000000 --- a/cms/include/alibabacloud/cms/model/AddMyGroupInstancesResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_ADDMYGROUPINSTANCESRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_ADDMYGROUPINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT AddMyGroupInstancesResult : public ServiceResult - { - public: - - - AddMyGroupInstancesResult(); - explicit AddMyGroupInstancesResult(const std::string &payload); - ~AddMyGroupInstancesResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_ADDMYGROUPINSTANCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/AddTagsRequest.h b/cms/include/alibabacloud/cms/model/AddTagsRequest.h new file mode 100644 index 000000000..50b94e3e8 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/AddTagsRequest.h @@ -0,0 +1,56 @@ +/* + * 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_ADDTAGSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ADDTAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT AddTagsRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + AddTagsRequest(); + ~AddTagsRequest(); + + std::vector getGroupIds()const; + void setGroupIds(const std::vector& groupIds); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + std::vector groupIds_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_ADDTAGSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateAlarmResult.h b/cms/include/alibabacloud/cms/model/AddTagsResult.h similarity index 76% rename from cms/include/alibabacloud/cms/model/UpdateAlarmResult.h rename to cms/include/alibabacloud/cms/model/AddTagsResult.h index 2985a92d3..1f37979c3 100644 --- a/cms/include/alibabacloud/cms/model/UpdateAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/AddTagsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEALARMRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEALARMRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_ADDTAGSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_ADDTAGSRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT UpdateAlarmResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT AddTagsResult : public ServiceResult { public: - UpdateAlarmResult(); - explicit UpdateAlarmResult(const std::string &payload); - ~UpdateAlarmResult(); + AddTagsResult(); + explicit AddTagsResult(const std::string &payload); + ~AddTagsResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEALARMRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_ADDTAGSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateRequest.h b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h similarity index 83% rename from cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateRequest.h rename to cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h index 8ffe37469..7f6f3c81f 100644 --- a/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateRequest.h +++ b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATEREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ApplyMonitoringTemplateRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT ApplyMetricRuleTemplateRequest : public RpcServiceRequest { public: - ApplyMonitoringTemplateRequest(); - ~ApplyMonitoringTemplateRequest(); + ApplyMetricRuleTemplateRequest(); + ~ApplyMetricRuleTemplateRequest(); std::string getApplyMode()const; void setApplyMode(const std::string& applyMode); @@ -66,4 +66,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h similarity index 66% rename from cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateResult.h rename to cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h index 26d0c477a..f524bd333 100644 --- a/cms/include/alibabacloud/cms/model/ApplyMonitoringTemplateResult.h +++ b/cms/include/alibabacloud/cms/model/ApplyMetricRuleTemplateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATERESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATERESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ApplyMonitoringTemplateResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT ApplyMetricRuleTemplateResult : public ServiceResult { public: struct Resource @@ -37,36 +37,35 @@ namespace AlibabaCloud struct Result { std::string message; - std::string displayName; - int code; + std::string ruleId; + std::string code; + std::string ruleName; bool success; long groupId; - std::string name; }; - std::vector eventResults; std::vector alertResults; long groupId; }; - ApplyMonitoringTemplateResult(); - explicit ApplyMonitoringTemplateResult(const std::string &payload); - ~ApplyMonitoringTemplateResult(); + ApplyMetricRuleTemplateResult(); + explicit ApplyMetricRuleTemplateResult(const std::string &payload); + ~ApplyMetricRuleTemplateResult(); + std::string getMessage()const; Resource getResource()const; - int getErrorCode()const; - std::string getErrorMessage()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; Resource resource_; - int errorCode_; - std::string errorMessage_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_APPLYMONITORINGTEMPLATERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_APPLYMETRICRULETEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ApplyTemplateRequest.h b/cms/include/alibabacloud/cms/model/ApplyTemplateRequest.h deleted file mode 100644 index c7693e595..000000000 --- a/cms/include/alibabacloud/cms/model/ApplyTemplateRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ApplyTemplateRequest : public RpcServiceRequest - { - - public: - ApplyTemplateRequest(); - ~ApplyTemplateRequest(); - - std::string getApplyMode()const; - void setApplyMode(const std::string& applyMode); - std::string getTemplateIds()const; - void setTemplateIds(const std::string& templateIds); - long getEnableEndTime()const; - void setEnableEndTime(long enableEndTime); - long getGroupId()const; - void setGroupId(long groupId); - long getNotifyLevel()const; - void setNotifyLevel(long notifyLevel); - long getEnableStartTime()const; - void setEnableStartTime(long enableStartTime); - long getSilenceTime()const; - void setSilenceTime(long silenceTime); - - private: - std::string applyMode_; - std::string templateIds_; - long enableEndTime_; - long groupId_; - long notifyLevel_; - long enableStartTime_; - long silenceTime_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ApplyTemplateResult.h b/cms/include/alibabacloud/cms/model/ApplyTemplateResult.h deleted file mode 100644 index 0c9207e57..000000000 --- a/cms/include/alibabacloud/cms/model/ApplyTemplateResult.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ApplyTemplateResult : public ServiceResult - { - public: - struct Resource - { - struct AlertResult - { - std::string metricName; - std::string message; - std::string displayName; - std::string metricNamespace; - std::string success; - std::string name; - }; - std::vector createAlertResults; - }; - - - ApplyTemplateResult(); - explicit ApplyTemplateResult(const std::string &payload); - ~ApplyTemplateResult(); - Resource getResource()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - Resource resource_; - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_APPLYTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateAlarmRequest.h b/cms/include/alibabacloud/cms/model/CreateAlarmRequest.h deleted file mode 100644 index 4c3e3e498..000000000 --- a/cms/include/alibabacloud/cms/model/CreateAlarmRequest.h +++ /dev/null @@ -1,93 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEALARMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEALARMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateAlarmRequest : public RpcServiceRequest - { - - public: - CreateAlarmRequest(); - ~CreateAlarmRequest(); - - std::string getWebhook()const; - void setWebhook(const std::string& webhook); - std::string getThreshold()const; - void setThreshold(const std::string& threshold); - int getStartTime()const; - void setStartTime(int startTime); - int getEvaluationCount()const; - void setEvaluationCount(int evaluationCount); - int getSilenceTime()const; - void setSilenceTime(int silenceTime); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - int getNotifyType()const; - void setNotifyType(int notifyType); - int getPeriod()const; - void setPeriod(int period); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getContactGroups()const; - void setContactGroups(const std::string& contactGroups); - int getEndTime()const; - void setEndTime(int endTime); - std::string getName()const; - void setName(const std::string& name); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getComparisonOperator()const; - void setComparisonOperator(const std::string& comparisonOperator); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - std::string getStatistics()const; - void setStatistics(const std::string& statistics); - - private: - std::string webhook_; - std::string threshold_; - int startTime_; - int evaluationCount_; - int silenceTime_; - std::string metricName_; - int notifyType_; - int period_; - bool dryRun_; - std::string contactGroups_; - int endTime_; - std::string name_; - std::string _namespace_; - std::string comparisonOperator_; - std::string dimensions_; - std::string statistics_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEALARMREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateGroupMetricRulesRequest.h b/cms/include/alibabacloud/cms/model/CreateGroupMetricRulesRequest.h new file mode 100644 index 000000000..cfa789cda --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateGroupMetricRulesRequest.h @@ -0,0 +1,79 @@ +/* + * 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_CREATEGROUPMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateGroupMetricRulesRequest : public RpcServiceRequest + { + struct GroupMetricRules + { + std::string webhook; + std::string escalationsWarnComparisonOperator; + std::string ruleName; + std::string escalationsInfoStatistics; + std::string effectiveInterval; + std::string escalationsInfoComparisonOperator; + std::string noEffectiveInterval; + std::string emailSubject; + int silenceTime; + std::string metricName; + int escalationsWarnTimes; + std::string period; + std::string escalationsWarnThreshold; + std::string escalationsCriticalStatistics; + int escalationsInfoTimes; + int escalationsCriticalTimes; + std::string escalationsWarnStatistics; + std::string escalationsInfoThreshold; + std::string _namespace; + std::string interval; + std::string category; + std::string ruleId; + std::string escalationsCriticalComparisonOperator; + std::string escalationsCriticalThreshold; + std::string dimensions; + }; + + public: + CreateGroupMetricRulesRequest(); + ~CreateGroupMetricRulesRequest(); + + long getGroupId()const; + void setGroupId(long groupId); + std::vector getGroupMetricRules()const; + void setGroupMetricRules(const std::vector& groupMetricRules); + + private: + long groupId_; + std::vector groupMetricRules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchResult.h b/cms/include/alibabacloud/cms/model/CreateGroupMetricRulesResult.h similarity index 63% rename from cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchResult.h rename to cms/include/alibabacloud/cms/model/CreateGroupMetricRulesResult.h index 34c90b2b2..4bd8a446d 100644 --- a/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchResult.h +++ b/cms/include/alibabacloud/cms/model/CreateGroupMetricRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESRESULT_H_ #include #include @@ -29,40 +29,37 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT CreateMyGroupAlertBatchResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT CreateGroupMetricRulesResult : public ServiceResult { public: struct AlertResult { - std::string metricName; - std::string alertName; std::string message; - std::string displayName; - std::string metricNamespace; + std::string ruleId; int code; + std::string ruleName; bool success; - long groupId; }; - CreateMyGroupAlertBatchResult(); - explicit CreateMyGroupAlertBatchResult(const std::string &payload); - ~CreateMyGroupAlertBatchResult(); + CreateGroupMetricRulesResult(); + explicit CreateGroupMetricRulesResult(const std::string &payload); + ~CreateGroupMetricRulesResult(); + std::string getMessage()const; std::vector getResources()const; - int getErrorCode()const; - std::string getErrorMessage()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; std::vector resources_; - int errorCode_; - std::string errorMessage_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessRequest.h new file mode 100644 index 000000000..90ef105fa --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessRequest.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_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateGroupMonitoringAgentProcessRequest : public RpcServiceRequest + { + struct AlertConfig + { + std::string times; + std::string noEffectiveInterval; + std::string webhook; + std::string silenceTime; + std::string threshold; + std::string effectiveInterval; + std::string comparisonOperator; + std::string escalationsLevel; + std::string statistics; + }; + struct MatchExpress + { + std::string function; + std::string name; + std::string value; + }; + + public: + CreateGroupMonitoringAgentProcessRequest(); + ~CreateGroupMonitoringAgentProcessRequest(); + + std::vector getAlertConfig()const; + void setAlertConfig(const std::vector& alertConfig); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getProcessName()const; + void setProcessName(const std::string& processName); + std::string getMatchExpressFilterRelation()const; + void setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation); + std::vector getMatchExpress()const; + void setMatchExpress(const std::vector& matchExpress); + + private: + std::vector alertConfig_; + std::string groupId_; + std::string processName_; + std::string matchExpressFilterRelation_; + std::vector matchExpress_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessResult.h b/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessResult.h new file mode 100644 index 000000000..602f2b642 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateGroupMonitoringAgentProcessResult.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_CREATEGROUPMONITORINGAGENTPROCESSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateGroupMonitoringAgentProcessResult : public ServiceResult + { + public: + + + CreateGroupMonitoringAgentProcessResult(); + explicit CreateGroupMonitoringAgentProcessResult(const std::string &payload); + ~CreateGroupMonitoringAgentProcessResult(); + 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_CREATEGROUPMONITORINGAGENTPROCESSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h new file mode 100644 index 000000000..f3591a19e --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateHostAvailabilityRequest.h @@ -0,0 +1,104 @@ +/* + * 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_CREATEHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateHostAvailabilityRequest : public RpcServiceRequest + { + struct AlertConfigEscalationList + { + int times; + std::string metricName; + std::string value; + std::string _operator; + std::string aggregate; + }; + + public: + CreateHostAvailabilityRequest(); + ~CreateHostAvailabilityRequest(); + + std::string getTaskOptionHttpMethod()const; + void setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod); + std::vector getAlertConfigEscalationList()const; + void setAlertConfigEscalationList(const std::vector& alertConfigEscalationList); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + int getAlertConfigSilenceTime()const; + void setAlertConfigSilenceTime(int alertConfigSilenceTime); + std::string getTaskOptionHttpResponseCharset()const; + void setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset); + bool getTaskOptionHttpNegative()const; + void setTaskOptionHttpNegative(bool taskOptionHttpNegative); + int getAlertConfigNotifyType()const; + void setAlertConfigNotifyType(int alertConfigNotifyType); + std::string getTaskOptionTelnetOrPingHost()const; + void setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost); + std::string getTaskOptionHttpResponseMatchContent()const; + void setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent); + std::vector getInstanceList()const; + void setInstanceList(const std::vector& instanceList); + std::string getTaskType()const; + void setTaskType(const std::string& taskType); + long getGroupId()const; + void setGroupId(long groupId); + int getAlertConfigEndTime()const; + void setAlertConfigEndTime(int alertConfigEndTime); + std::string getTaskOptionHttpURI()const; + void setTaskOptionHttpURI(const std::string& taskOptionHttpURI); + std::string getTaskScope()const; + void setTaskScope(const std::string& taskScope); + int getAlertConfigStartTime()const; + void setAlertConfigStartTime(int alertConfigStartTime); + std::string getAlertConfigWebHook()const; + void setAlertConfigWebHook(const std::string& alertConfigWebHook); + + private: + std::string taskOptionHttpMethod_; + std::vector alertConfigEscalationList_; + std::string taskName_; + int alertConfigSilenceTime_; + std::string taskOptionHttpResponseCharset_; + bool taskOptionHttpNegative_; + int alertConfigNotifyType_; + std::string taskOptionTelnetOrPingHost_; + std::string taskOptionHttpResponseMatchContent_; + std::vector instanceList_; + std::string taskType_; + long groupId_; + int alertConfigEndTime_; + std::string taskOptionHttpURI_; + std::string taskScope_; + int alertConfigStartTime_; + std::string alertConfigWebHook_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateHostAvailabilityResult.h b/cms/include/alibabacloud/cms/model/CreateHostAvailabilityResult.h new file mode 100644 index 000000000..3fb7a2c30 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateHostAvailabilityResult.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_CREATEHOSTAVAILABILITYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateHostAvailabilityResult : public ServiceResult + { + public: + + + CreateHostAvailabilityResult(); + explicit CreateHostAvailabilityResult(const std::string &payload); + ~CreateHostAvailabilityResult(); + long getTaskId()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + long taskId_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventHistogramRequest.h b/cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesRequest.h similarity index 57% rename from cms/include/alibabacloud/cms/model/QuerySystemEventHistogramRequest.h rename to cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesRequest.h index 323b27ea2..1cdf47d53 100644 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventHistogramRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTHISTOGRAMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTHISTOGRAMREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULERESOURCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULERESOURCESREQUEST_H_ #include #include @@ -28,21 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QuerySystemEventHistogramRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleResourcesRequest : public RpcServiceRequest { public: - QuerySystemEventHistogramRequest(); - ~QuerySystemEventHistogramRequest(); + CreateMetricRuleResourcesRequest(); + ~CreateMetricRuleResourcesRequest(); - std::string getQueryJson()const; - void setQueryJson(const std::string& queryJson); + std::string getResources()const; + void setResources(const std::string& resources); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + std::string getOverwrite()const; + void setOverwrite(const std::string& overwrite); private: - std::string queryJson_; + std::string resources_; + std::string ruleId_; + std::string overwrite_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTHISTOGRAMREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULERESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesResult.h b/cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesResult.h new file mode 100644 index 000000000..243bb50e0 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMetricRuleResourcesResult.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_CREATEMETRICRULERESOURCESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULERESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleResourcesResult : public ServiceResult + { + public: + + + CreateMetricRuleResourcesResult(); + explicit CreateMetricRuleResourcesResult(const std::string &payload); + ~CreateMetricRuleResourcesResult(); + 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_CREATEMETRICRULERESOURCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateRequest.h b/cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateRequest.h new file mode 100644 index 000000000..f662b1808 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateRequest.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleTemplateRequest : public RpcServiceRequest + { + struct AlertTemplates + { + int period; + std::string escalationsWarnThreshold; + std::string webhook; + std::string escalationsWarnComparisonOperator; + std::string escalationsCriticalStatistics; + int escalationsInfoTimes; + std::string ruleName; + std::string escalationsInfoStatistics; + int escalationsCriticalTimes; + std::string escalationsInfoComparisonOperator; + std::string escalationsWarnStatistics; + std::string escalationsInfoThreshold; + std::string _namespace; + std::string selector; + std::string metricName; + std::string category; + std::string escalationsCriticalComparisonOperator; + int escalationsWarnTimes; + std::string escalationsCriticalThreshold; + }; + + public: + CreateMetricRuleTemplateRequest(); + ~CreateMetricRuleTemplateRequest(); + + std::string getDescription()const; + void setDescription(const std::string& description); + std::string getName()const; + void setName(const std::string& name); + std::vector getAlertTemplates()const; + void setAlertTemplates(const std::vector& alertTemplates); + + private: + std::string description_; + std::string name_; + std::vector alertTemplates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h b/cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateResult.h similarity index 70% rename from cms/include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h rename to cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateResult.h index 226c9cedb..caaff9ee7 100644 --- a/cms/include/alibabacloud/cms/model/ListProductOfActiveAlertResult.h +++ b/cms/include/alibabacloud/cms/model/CreateMetricRuleTemplateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATERESULT_H_ #include #include @@ -29,16 +29,16 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListProductOfActiveAlertResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT CreateMetricRuleTemplateResult : public ServiceResult { public: - ListProductOfActiveAlertResult(); - explicit ListProductOfActiveAlertResult(const std::string &payload); - ~ListProductOfActiveAlertResult(); + CreateMetricRuleTemplateResult(); + explicit CreateMetricRuleTemplateResult(const std::string &payload); + ~CreateMetricRuleTemplateResult(); std::string getMessage()const; - std::string getDatapoints()const; + long getId()const; int getCode()const; bool getSuccess()const; @@ -46,7 +46,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - std::string datapoints_; + long id_; int code_; bool success_; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeProcessCreateRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessRequest.h similarity index 69% rename from cms/include/alibabacloud/cms/model/NodeProcessCreateRequest.h rename to cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessRequest.h index 6ebbd7eb8..baa423d68 100644 --- a/cms/include/alibabacloud/cms/model/NodeProcessCreateRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODEPROCESSCREATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEPROCESSCREATEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSREQUEST_H_ #include #include @@ -28,33 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeProcessCreateRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT CreateMonitorAgentProcessRequest : public RpcServiceRequest { public: - NodeProcessCreateRequest(); - ~NodeProcessCreateRequest(); + CreateMonitorAgentProcessRequest(); + ~CreateMonitorAgentProcessRequest(); std::string getProcessName()const; void setProcessName(const std::string& processName); - std::string getCommand()const; - void setCommand(const std::string& command); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); std::string getProcessUser()const; void setProcessUser(const std::string& processUser); private: std::string processName_; - std::string command_; std::string instanceId_; - std::string name_; std::string processUser_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODEPROCESSCREATEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessResult.h b/cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessResult.h new file mode 100644 index 000000000..2f235c443 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMonitorAgentProcessResult.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_CREATEMONITORAGENTPROCESSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMonitorAgentProcessResult : public ServiceResult + { + public: + + + CreateMonitorAgentProcessResult(); + explicit CreateMonitorAgentProcessResult(const std::string &payload); + ~CreateMonitorAgentProcessResult(); + std::string getMessage()const; + long getId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long id_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORAGENTPROCESSRESULT_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 new file mode 100644 index 000000000..34b74910d --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesRequest.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupInstancesRequest : public RpcServiceRequest + { + struct Instances + { + std::string instanceId; + std::string instanceName; + std::string regionId; + std::string category; + }; + + public: + CreateMonitorGroupInstancesRequest(); + ~CreateMonitorGroupInstancesRequest(); + + std::vector getInstances()const; + void setInstances(const std::vector& instances); + long getGroupId()const; + void setGroupId(long groupId); + + private: + std::vector instances_; + long groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesResult.h new file mode 100644 index 000000000..92e739cea --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupInstancesResult.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_CREATEMONITORGROUPINSTANCESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupInstancesResult : public ServiceResult + { + public: + + + CreateMonitorGroupInstancesResult(); + explicit CreateMonitorGroupInstancesResult(const std::string &payload); + ~CreateMonitorGroupInstancesResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPINSTANCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyRequest.h similarity index 63% rename from cms/include/alibabacloud/cms/model/CreateNotifyPolicyRequest.h rename to cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyRequest.h index ed4abc921..5e8a5f4ad 100644 --- a/cms/include/alibabacloud/cms/model/CreateNotifyPolicyRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_CREATENOTIFYPOLICYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATENOTIFYPOLICYREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYREQUEST_H_ #include #include @@ -28,39 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT CreateNotifyPolicyRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupNotifyPolicyRequest : public RpcServiceRequest { public: - CreateNotifyPolicyRequest(); - ~CreateNotifyPolicyRequest(); + CreateMonitorGroupNotifyPolicyRequest(); + ~CreateMonitorGroupNotifyPolicyRequest(); std::string getPolicyType()const; void setPolicyType(const std::string& policyType); - std::string getAlertName()const; - void setAlertName(const std::string& alertName); std::string getGroupId()const; void setGroupId(const std::string& groupId); long getEndTime()const; void setEndTime(long endTime); long getStartTime()const; void setStartTime(long startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); private: std::string policyType_; - std::string alertName_; std::string groupId_; long endTime_; long startTime_; - std::string accessKeyId_; - std::string dimensions_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_CREATENOTIFYPOLICYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyResult.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyResult.h similarity index 70% rename from cms/include/alibabacloud/cms/model/DeleteNotifyPolicyResult.h rename to cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyResult.h index 565df44b4..8d345bb87 100644 --- a/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyResult.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupNotifyPolicyResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETENOTIFYPOLICYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETENOTIFYPOLICYRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteNotifyPolicyResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupNotifyPolicyResult : public ServiceResult { public: - DeleteNotifyPolicyResult(); - explicit DeleteNotifyPolicyResult(const std::string &payload); - ~DeleteNotifyPolicyResult(); + CreateMonitorGroupNotifyPolicyResult(); + explicit CreateMonitorGroupNotifyPolicyResult(const std::string &payload); + ~CreateMonitorGroupNotifyPolicyResult(); std::string getMessage()const; std::string getCode()const; std::string getSuccess()const; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETENOTIFYPOLICYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPNOTIFYPOLICYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMyGroupsRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupRequest.h similarity index 81% rename from cms/include/alibabacloud/cms/model/CreateMyGroupsRequest.h rename to cms/include/alibabacloud/cms/model/CreateMonitorGroupRequest.h index c3d6cb8cc..2b3ce8f6d 100644 --- a/cms/include/alibabacloud/cms/model/CreateMyGroupsRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT CreateMyGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupRequest : public RpcServiceRequest { public: - CreateMyGroupsRequest(); - ~CreateMyGroupsRequest(); + CreateMonitorGroupRequest(); + ~CreateMonitorGroupRequest(); std::string getContactGroups()const; void setContactGroups(const std::string& contactGroups); @@ -60,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMonitorGroupResult.h b/cms/include/alibabacloud/cms/model/CreateMonitorGroupResult.h new file mode 100644 index 000000000..35286adfb --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMonitorGroupResult.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_CREATEMONITORGROUPRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMonitorGroupResult : public ServiceResult + { + public: + + + CreateMonitorGroupResult(); + explicit CreateMonitorGroupResult(const std::string &payload); + ~CreateMonitorGroupResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + long getGroupId()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + long groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORGROUPRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeProcessesRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessRequest.h similarity index 60% rename from cms/include/alibabacloud/cms/model/NodeProcessesRequest.h rename to cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessRequest.h index ca59c6df8..461bba631 100644 --- a/cms/include/alibabacloud/cms/model/NodeProcessesRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODEPROCESSESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEPROCESSESREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSREQUEST_H_ #include #include @@ -28,21 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeProcessesRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT CreateMonitoringAgentProcessRequest : public RpcServiceRequest { public: - NodeProcessesRequest(); - ~NodeProcessesRequest(); + CreateMonitoringAgentProcessRequest(); + ~CreateMonitoringAgentProcessRequest(); + std::string getProcessName()const; + void setProcessName(const std::string& processName); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); + std::string getProcessUser()const; + void setProcessUser(const std::string& processUser); private: + std::string processName_; std::string instanceId_; + std::string processUser_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODEPROCESSESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessResult.h b/cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessResult.h new file mode 100644 index 000000000..baa2cc61b --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateMonitoringAgentProcessResult.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_CREATEMONITORINGAGENTPROCESSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateMonitoringAgentProcessResult : public ServiceResult + { + public: + + + CreateMonitoringAgentProcessResult(); + explicit CreateMonitoringAgentProcessResult(const std::string &payload); + ~CreateMonitoringAgentProcessResult(); + std::string getMessage()const; + long getId()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long id_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGAGENTPROCESSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateRequest.h b/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateRequest.h deleted file mode 100644 index 1e33df3a8..000000000 --- a/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateRequest.h +++ /dev/null @@ -1,60 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMonitoringTemplateRequest : public RpcServiceRequest - { - - public: - CreateMonitoringTemplateRequest(); - ~CreateMonitoringTemplateRequest(); - - std::string getEventRuleTemplatesJson()const; - void setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson); - std::string getName()const; - void setName(const std::string& name); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getAlertTemplatesJson()const; - void setAlertTemplatesJson(const std::string& alertTemplatesJson); - - private: - std::string eventRuleTemplatesJson_; - std::string name_; - std::string _namespace_; - std::string description_; - std::string alertTemplatesJson_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateResult.h deleted file mode 100644 index 9165dd3af..000000000 --- a/cms/include/alibabacloud/cms/model/CreateMonitoringTemplateResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMonitoringTemplateResult : public ServiceResult - { - public: - - - CreateMonitoringTemplateResult(); - explicit CreateMonitoringTemplateResult(const std::string &payload); - ~CreateMonitoringTemplateResult(); - int getErrorCode()const; - long getId()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - long id_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMONITORINGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMyGroupsResult.h b/cms/include/alibabacloud/cms/model/CreateMyGroupsResult.h deleted file mode 100644 index 4385555ba..000000000 --- a/cms/include/alibabacloud/cms/model/CreateMyGroupsResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT CreateMyGroupsResult : public ServiceResult - { - public: - - - CreateMyGroupsResult(); - explicit CreateMyGroupsResult(const std::string &payload); - ~CreateMyGroupsResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - long getGroupId()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - long groupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateTaskRequest.h b/cms/include/alibabacloud/cms/model/CreateSiteMonitorRequest.h similarity index 65% rename from cms/include/alibabacloud/cms/model/CreateTaskRequest.h rename to cms/include/alibabacloud/cms/model/CreateSiteMonitorRequest.h index a90cd3110..48edecfea 100644 --- a/cms/include/alibabacloud/cms/model/CreateTaskRequest.h +++ b/cms/include/alibabacloud/cms/model/CreateSiteMonitorRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_CREATETASKREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATETASKREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORREQUEST_H_ #include #include @@ -28,45 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT CreateTaskRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT CreateSiteMonitorRequest : public RpcServiceRequest { public: - CreateTaskRequest(); - ~CreateTaskRequest(); + CreateSiteMonitorRequest(); + ~CreateSiteMonitorRequest(); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - std::string getAlertIds()const; - void setAlertIds(const std::string& alertIds); - std::string getOptions()const; - void setOptions(const std::string& options); std::string getAddress()const; void setAddress(const std::string& address); std::string getTaskType()const; void setTaskType(const std::string& taskType); - std::string getCaller()const; - void setCaller(const std::string& caller); - std::string getIspCity()const; - void setIspCity(const std::string& ispCity); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + std::string getIspCities()const; + void setIspCities(const std::string& ispCities); + std::string getOptionsJson()const; + void setOptionsJson(const std::string& optionsJson); + std::string getAlertIds()const; + void setAlertIds(const std::string& alertIds); std::string getInterval()const; void setInterval(const std::string& interval); - std::string getAlertRule()const; - void setAlertRule(const std::string& alertRule); private: - std::string taskName_; - std::string alertIds_; - std::string options_; std::string address_; std::string taskType_; - std::string caller_; - std::string ispCity_; + std::string taskName_; + std::string ispCities_; + std::string optionsJson_; + std::string alertIds_; std::string interval_; - std::string alertRule_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_CREATETASKREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateSiteMonitorResult.h b/cms/include/alibabacloud/cms/model/CreateSiteMonitorResult.h new file mode 100644 index 000000000..daaa5db75 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/CreateSiteMonitorResult.h @@ -0,0 +1,71 @@ +/* + * 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_CREATESITEMONITORRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT CreateSiteMonitorResult : public ServiceResult + { + public: + struct Data + { + struct Contact + { + std::string message; + std::string requestId; + std::string ruleId; + std::string code; + std::string success; + }; + std::vector attachAlertResult; + }; + + + CreateSiteMonitorResult(); + explicit CreateSiteMonitorResult(const std::string &payload); + ~CreateSiteMonitorResult(); + std::string getMessage()const; + Data getData()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::string code_; + std::string success_; + std::string alertRule_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_CREATESITEMONITORRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteContactGroupRequest.h b/cms/include/alibabacloud/cms/model/DeleteContactGroupRequest.h new file mode 100644 index 000000000..0be5945b6 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteContactGroupRequest.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_DELETECONTACTGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteContactGroupRequest : public RpcServiceRequest + { + + public: + DeleteContactGroupRequest(); + ~DeleteContactGroupRequest(); + + std::string getContactGroupName()const; + void setContactGroupName(const std::string& contactGroupName); + + private: + std::string contactGroupName_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteEventTargetsResult.h b/cms/include/alibabacloud/cms/model/DeleteContactGroupResult.h similarity index 75% rename from cms/include/alibabacloud/cms/model/DeleteEventTargetsResult.h rename to cms/include/alibabacloud/cms/model/DeleteContactGroupResult.h index ebd93eb0d..05705e8e6 100644 --- a/cms/include/alibabacloud/cms/model/DeleteEventTargetsResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteContactGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteEventTargetsResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteContactGroupResult : public ServiceResult { public: - DeleteEventTargetsResult(); - explicit DeleteEventTargetsResult(const std::string &payload); - ~DeleteEventTargetsResult(); + DeleteContactGroupResult(); + explicit DeleteContactGroupResult(const std::string &payload); + ~DeleteContactGroupResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETECONTACTGROUPRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeContactRequest.h b/cms/include/alibabacloud/cms/model/DeleteContactRequest.h similarity index 75% rename from cms/include/alibabacloud/cms/model/DescribeContactRequest.h rename to cms/include/alibabacloud/cms/model/DeleteContactRequest.h index 291da28ca..fc17de74b 100644 --- a/cms/include/alibabacloud/cms/model/DescribeContactRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteContactRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETECONTACTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETECONTACTREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeContactRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteContactRequest : public RpcServiceRequest { public: - DescribeContactRequest(); - ~DescribeContactRequest(); + DeleteContactRequest(); + ~DeleteContactRequest(); std::string getContactName()const; void setContactName(const std::string& contactName); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETECONTACTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableAlarmResult.h b/cms/include/alibabacloud/cms/model/DeleteContactResult.h similarity index 75% rename from cms/include/alibabacloud/cms/model/DisableAlarmResult.h rename to cms/include/alibabacloud/cms/model/DeleteContactResult.h index 6207c97da..ecaef0bd7 100644 --- a/cms/include/alibabacloud/cms/model/DisableAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteContactResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEALARMRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEALARMRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETECONTACTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETECONTACTRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DisableAlarmResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteContactResult : public ServiceResult { public: - DisableAlarmResult(); - explicit DisableAlarmResult(const std::string &payload); - ~DisableAlarmResult(); + DeleteContactResult(); + explicit DeleteContactResult(const std::string &payload); + ~DeleteContactResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEALARMRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETECONTACTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteCustomMetricResult.h b/cms/include/alibabacloud/cms/model/DeleteCustomMetricResult.h index a4162a1c4..565851043 100644 --- a/cms/include/alibabacloud/cms/model/DeleteCustomMetricResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteCustomMetricResult.h @@ -39,14 +39,12 @@ namespace AlibabaCloud ~DeleteCustomMetricResult(); std::string getMessage()const; std::string getCode()const; - std::string getResult()const; protected: void parse(const std::string &payload); private: std::string message_; std::string code_; - std::string result_; }; } diff --git a/cms/include/alibabacloud/cms/model/DeleteEventTargetsRequest.h b/cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsRequest.h similarity index 75% rename from cms/include/alibabacloud/cms/model/DeleteEventTargetsRequest.h rename to cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsRequest.h index b1024b5c9..22a82c8cb 100644 --- a/cms/include/alibabacloud/cms/model/DeleteEventTargetsRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULETARGETSREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteEventTargetsRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteEventRuleTargetsRequest : public RpcServiceRequest { public: - DeleteEventTargetsRequest(); - ~DeleteEventTargetsRequest(); + DeleteEventRuleTargetsRequest(); + ~DeleteEventRuleTargetsRequest(); std::string getRuleName()const; void setRuleName(const std::string& ruleName); @@ -48,4 +48,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTTARGETSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULETARGETSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsResult.h b/cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsResult.h new file mode 100644 index 000000000..c58bf224d --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteEventRuleTargetsResult.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_DELETEEVENTRULETARGETSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULETARGETSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteEventRuleTargetsResult : public ServiceResult + { + public: + + + DeleteEventRuleTargetsResult(); + explicit DeleteEventRuleTargetsResult(const std::string &payload); + ~DeleteEventRuleTargetsResult(); + 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_DELETEEVENTRULETARGETSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableEventRuleRequest.h b/cms/include/alibabacloud/cms/model/DeleteEventRulesRequest.h similarity index 71% rename from cms/include/alibabacloud/cms/model/DisableEventRuleRequest.h rename to cms/include/alibabacloud/cms/model/DeleteEventRulesRequest.h index 2e38263f0..555248aa4 100644 --- a/cms/include/alibabacloud/cms/model/DisableEventRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteEventRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESREQUEST_H_ #include #include @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DisableEventRuleRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteEventRulesRequest : public RpcServiceRequest { public: - DisableEventRuleRequest(); - ~DisableEventRuleRequest(); + DeleteEventRulesRequest(); + ~DeleteEventRulesRequest(); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); std::vector getRuleNames()const; void setRuleNames(const std::vector& ruleNames); private: - std::string ruleName_; std::vector ruleNames_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableEventRuleResult.h b/cms/include/alibabacloud/cms/model/DeleteEventRulesResult.h similarity index 75% rename from cms/include/alibabacloud/cms/model/DisableEventRuleResult.h rename to cms/include/alibabacloud/cms/model/DeleteEventRulesResult.h index ca58422b0..6ab7af39c 100644 --- a/cms/include/alibabacloud/cms/model/DisableEventRuleResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteEventRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULERESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DisableEventRuleResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteEventRulesResult : public ServiceResult { public: - DisableEventRuleResult(); - explicit DisableEventRuleResult(const std::string &payload); - ~DisableEventRuleResult(); + DeleteEventRulesResult(); + explicit DeleteEventRulesResult(const std::string &payload); + ~DeleteEventRulesResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleResult.h b/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleResult.h deleted file mode 100644 index c8cf60cb7..000000000 --- a/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteGroupDynamicRuleResult : public ServiceResult - { - public: - - - DeleteGroupDynamicRuleResult(); - explicit DeleteGroupDynamicRuleResult(const std::string &payload); - ~DeleteGroupDynamicRuleResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableAlarmRequest.h b/cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessRequest.h similarity index 64% rename from cms/include/alibabacloud/cms/model/EnableAlarmRequest.h rename to cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessRequest.h index e5aca4d4c..41c25d047 100644 --- a/cms/include/alibabacloud/cms/model/EnableAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEALARMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEALARMREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSREQUEST_H_ #include #include @@ -28,21 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT EnableAlarmRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteGroupMonitoringAgentProcessRequest : public RpcServiceRequest { public: - EnableAlarmRequest(); - ~EnableAlarmRequest(); + DeleteGroupMonitoringAgentProcessRequest(); + ~DeleteGroupMonitoringAgentProcessRequest(); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); std::string getId()const; void setId(const std::string& id); private: + std::string groupId_; std::string id_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEALARMREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessResult.h b/cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessResult.h new file mode 100644 index 000000000..20c4d3513 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteGroupMonitoringAgentProcessResult.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_DELETEGROUPMONITORINGAGENTPROCESSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEGROUPMONITORINGAGENTPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteGroupMonitoringAgentProcessResult : public ServiceResult + { + public: + + + DeleteGroupMonitoringAgentProcessResult(); + explicit DeleteGroupMonitoringAgentProcessResult(const std::string &payload); + ~DeleteGroupMonitoringAgentProcessResult(); + 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_DELETEGROUPMONITORINGAGENTPROCESSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryCustomEventDetailRequest.h b/cms/include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.h similarity index 66% rename from cms/include/alibabacloud/cms/model/QueryCustomEventDetailRequest.h rename to cms/include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.h index 92f70f109..b7e4c14ad 100644 --- a/cms/include/alibabacloud/cms/model/QueryCustomEventDetailRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteHostAvailabilityRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTDETAILREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTDETAILREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEHOSTAVAILABILITYREQUEST_H_ #include #include @@ -28,21 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryCustomEventDetailRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteHostAvailabilityRequest : public RpcServiceRequest { public: - QueryCustomEventDetailRequest(); - ~QueryCustomEventDetailRequest(); + DeleteHostAvailabilityRequest(); + ~DeleteHostAvailabilityRequest(); - std::string getQueryJson()const; - void setQueryJson(const std::string& queryJson); + std::vector getId()const; + void setId(const std::vector& id); private: - std::string queryJson_; + std::vector id_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTDETAILREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteHostAvailabilityResult.h b/cms/include/alibabacloud/cms/model/DeleteHostAvailabilityResult.h new file mode 100644 index 000000000..c201a4155 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteHostAvailabilityResult.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_DELETEHOSTAVAILABILITYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEHOSTAVAILABILITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteHostAvailabilityResult : public ServiceResult + { + public: + + + DeleteHostAvailabilityResult(); + explicit DeleteHostAvailabilityResult(const std::string &payload); + ~DeleteHostAvailabilityResult(); + 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_DELETEHOSTAVAILABILITYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryCustomEventHistogramRequest.h b/cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesRequest.h similarity index 61% rename from cms/include/alibabacloud/cms/model/QueryCustomEventHistogramRequest.h rename to cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesRequest.h index 619ab1497..b61212559 100644 --- a/cms/include/alibabacloud/cms/model/QueryCustomEventHistogramRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTHISTOGRAMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTHISTOGRAMREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULERESOURCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULERESOURCESREQUEST_H_ #include #include @@ -28,21 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryCustomEventHistogramRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleResourcesRequest : public RpcServiceRequest { public: - QueryCustomEventHistogramRequest(); - ~QueryCustomEventHistogramRequest(); + DeleteMetricRuleResourcesRequest(); + ~DeleteMetricRuleResourcesRequest(); - std::string getQueryJson()const; - void setQueryJson(const std::string& queryJson); + std::string getResources()const; + void setResources(const std::string& resources); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); private: - std::string queryJson_; + std::string resources_; + std::string ruleId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTHISTOGRAMREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULERESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesResult.h b/cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesResult.h new file mode 100644 index 000000000..361ba764b --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRuleResourcesResult.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_DELETEMETRICRULERESOURCESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULERESOURCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleResourcesResult : public ServiceResult + { + public: + + + DeleteMetricRuleResourcesResult(); + explicit DeleteMetricRuleResourcesResult(const std::string &payload); + ~DeleteMetricRuleResourcesResult(); + 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_DELETEMETRICRULERESOURCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsRequest.h new file mode 100644 index 000000000..695d4eb7c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsRequest.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_DELETEMETRICRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleTargetsRequest : public RpcServiceRequest + { + + public: + DeleteMetricRuleTargetsRequest(); + ~DeleteMetricRuleTargetsRequest(); + + std::vector getTargetIds()const; + void setTargetIds(const std::vector& targetIds); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + + private: + std::vector targetIds_; + std::string ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsResult.h similarity index 76% rename from cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h rename to cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsResult.h index e16459fcc..715e2fa0f 100644 --- a/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTargetsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT RemoveMetricRuleTargetsResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleTargetsResult : public ServiceResult { public: struct FailIds @@ -38,9 +38,9 @@ namespace AlibabaCloud }; - RemoveMetricRuleTargetsResult(); - explicit RemoveMetricRuleTargetsResult(const std::string &payload); - ~RemoveMetricRuleTargetsResult(); + DeleteMetricRuleTargetsResult(); + explicit DeleteMetricRuleTargetsResult(const std::string &payload); + ~DeleteMetricRuleTargetsResult(); std::string getMessage()const; std::string getCode()const; FailIds getFailIds()const; @@ -58,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETARGETSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListProductOfActiveAlertRequest.h b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateRequest.h similarity index 66% rename from cms/include/alibabacloud/cms/model/ListProductOfActiveAlertRequest.h rename to cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateRequest.h index 024e0ea17..0cddc80d6 100644 --- a/cms/include/alibabacloud/cms/model/ListProductOfActiveAlertRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATEREQUEST_H_ #include #include @@ -28,21 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListProductOfActiveAlertRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleTemplateRequest : public RpcServiceRequest { public: - ListProductOfActiveAlertRequest(); - ~ListProductOfActiveAlertRequest(); + DeleteMetricRuleTemplateRequest(); + ~DeleteMetricRuleTemplateRequest(); - std::string getUserId()const; - void setUserId(const std::string& userId); + std::string getTemplateId()const; + void setTemplateId(const std::string& templateId); private: - std::string userId_; + std::string templateId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTPRODUCTOFACTIVEALERTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetContactsResult.h b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateResult.h similarity index 66% rename from cms/include/alibabacloud/cms/model/GetContactsResult.h rename to cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateResult.h index 21ad6107d..f395bf5b4 100644 --- a/cms/include/alibabacloud/cms/model/GetContactsResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRuleTemplateResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_GETCONTACTSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_GETCONTACTSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATERESULT_H_ #include #include @@ -29,22 +29,20 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT GetContactsResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteMetricRuleTemplateResult : public ServiceResult { public: - struct Datapoints + struct Resource { - std::vector contacts; - std::string name; + std::string templateId; }; - GetContactsResult(); - explicit GetContactsResult(const std::string &payload); - ~GetContactsResult(); + DeleteMetricRuleTemplateResult(); + explicit DeleteMetricRuleTemplateResult(const std::string &payload); + ~DeleteMetricRuleTemplateResult(); std::string getMessage()const; - int getHttpStatusCode()const; - Datapoints getDatapoints()const; + Resource getResource()const; int getCode()const; bool getSuccess()const; @@ -52,8 +50,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - int httpStatusCode_; - Datapoints datapoints_; + Resource resource_; int code_; bool success_; @@ -61,4 +58,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_GETCONTACTSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULETEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMetricRulesRequest.h b/cms/include/alibabacloud/cms/model/DeleteMetricRulesRequest.h new file mode 100644 index 000000000..c1d72063f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRulesRequest.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_DELETEMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteMetricRulesRequest : public RpcServiceRequest + { + + public: + DeleteMetricRulesRequest(); + ~DeleteMetricRulesRequest(); + + std::vector getId()const; + void setId(const std::vector& id); + + private: + std::vector id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableActiveAlertResult.h b/cms/include/alibabacloud/cms/model/DeleteMetricRulesResult.h similarity index 75% rename from cms/include/alibabacloud/cms/model/EnableActiveAlertResult.h rename to cms/include/alibabacloud/cms/model/DeleteMetricRulesResult.h index 7c5d875c1..d1e3c324b 100644 --- a/cms/include/alibabacloud/cms/model/EnableActiveAlertResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteMetricRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT EnableActiveAlertResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteMetricRulesResult : public ServiceResult { public: - EnableActiveAlertResult(); - explicit EnableActiveAlertResult(const std::string &payload); - ~EnableActiveAlertResult(); + DeleteMetricRulesResult(); + explicit DeleteMetricRulesResult(const std::string &payload); + ~DeleteMetricRulesResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMETRICRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleRequest.h similarity index 72% rename from cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.h rename to cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleRequest.h index ad237b02b..28c45fdfc 100644 --- a/cms/include/alibabacloud/cms/model/DeleteGroupDynamicRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULEREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteGroupDynamicRuleRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupDynamicRuleRequest : public RpcServiceRequest { public: - DeleteGroupDynamicRuleRequest(); - ~DeleteGroupDynamicRuleRequest(); + DeleteMonitorGroupDynamicRuleRequest(); + ~DeleteMonitorGroupDynamicRuleRequest(); long getGroupId()const; void setGroupId(long groupId); @@ -48,4 +48,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleResult.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleResult.h new file mode 100644 index 000000000..50c4e3b2e --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupDynamicRuleResult.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_DELETEMONITORGROUPDYNAMICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupDynamicRuleResult : public ServiceResult + { + public: + + + DeleteMonitorGroupDynamicRuleResult(); + explicit DeleteMonitorGroupDynamicRuleResult(const std::string &payload); + ~DeleteMonitorGroupDynamicRuleResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPDYNAMICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesRequest.h similarity index 70% rename from cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h rename to cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesRequest.h index 5fee80f4e..a716bc27c 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPINSTANCESREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESREQUEST_H_ #include #include @@ -28,17 +28,15 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteMyGroupInstancesRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupInstancesRequest : public RpcServiceRequest { public: - DeleteMyGroupInstancesRequest(); - ~DeleteMyGroupInstancesRequest(); + DeleteMonitorGroupInstancesRequest(); + ~DeleteMonitorGroupInstancesRequest(); long getGroupId()const; void setGroupId(long groupId); - std::string getInstanceIds()const; - void setInstanceIds(const std::string& instanceIds); std::string getInstanceIdList()const; void setInstanceIdList(const std::string& instanceIdList); std::string getCategory()const; @@ -46,7 +44,6 @@ namespace AlibabaCloud private: long groupId_; - std::string instanceIds_; std::string instanceIdList_; std::string category_; @@ -54,4 +51,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPINSTANCESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesResult.h new file mode 100644 index 000000000..017cf8910 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupInstancesResult.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_DELETEMONITORGROUPINSTANCESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupInstancesResult : public ServiceResult + { + public: + + + DeleteMonitorGroupInstancesResult(); + explicit DeleteMonitorGroupInstancesResult(const std::string &payload); + ~DeleteMonitorGroupInstancesResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPINSTANCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyRequest.h similarity index 61% rename from cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.h rename to cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyRequest.h index aabe0df58..2530912ff 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorISPAreaCityRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupNotifyPolicyRequest : public RpcServiceRequest { public: - DescribeSiteMonitorISPAreaCityRequest(); - ~DescribeSiteMonitorISPAreaCityRequest(); + DeleteMonitorGroupNotifyPolicyRequest(); + ~DeleteMonitorGroupNotifyPolicyRequest(); - std::string getCity()const; - void setCity(const std::string& city); - std::string getIsp()const; - void setIsp(const std::string& isp); + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); private: - std::string city_; - std::string isp_; + std::string policyType_; + std::string groupId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateNotifyPolicyResult.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyResult.h similarity index 70% rename from cms/include/alibabacloud/cms/model/CreateNotifyPolicyResult.h rename to cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyResult.h index 29ea3d06d..8b2729b80 100644 --- a/cms/include/alibabacloud/cms/model/CreateNotifyPolicyResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupNotifyPolicyResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_CREATENOTIFYPOLICYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATENOTIFYPOLICYRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT CreateNotifyPolicyResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupNotifyPolicyResult : public ServiceResult { public: - CreateNotifyPolicyResult(); - explicit CreateNotifyPolicyResult(const std::string &payload); - ~CreateNotifyPolicyResult(); + DeleteMonitorGroupNotifyPolicyResult(); + explicit DeleteMonitorGroupNotifyPolicyResult(const std::string &payload); + ~DeleteMonitorGroupNotifyPolicyResult(); std::string getMessage()const; std::string getCode()const; std::string getSuccess()const; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_CREATENOTIFYPOLICYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPNOTIFYPOLICYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMyGroupsRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupRequest.h similarity index 73% rename from cms/include/alibabacloud/cms/model/DeleteMyGroupsRequest.h rename to cms/include/alibabacloud/cms/model/DeleteMonitorGroupRequest.h index eb4524f15..acdcd7cc0 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMyGroupsRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteMyGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupRequest : public RpcServiceRequest { public: - DeleteMyGroupsRequest(); - ~DeleteMyGroupsRequest(); + DeleteMonitorGroupRequest(); + ~DeleteMonitorGroupRequest(); long getGroupId()const; void setGroupId(long groupId); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMyGroupsResult.h b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupResult.h similarity index 68% rename from cms/include/alibabacloud/cms/model/GetMyGroupsResult.h rename to cms/include/alibabacloud/cms/model/DeleteMonitorGroupResult.h index d003f4462..7b416cdcf 100644 --- a/cms/include/alibabacloud/cms/model/GetMyGroupsResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitorGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_GETMYGROUPSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_GETMYGROUPSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT GetMyGroupsResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteMonitorGroupResult : public ServiceResult { public: struct Group @@ -40,31 +40,27 @@ namespace AlibabaCloud }; std::string groupName; std::vector contactGroups; - std::string type; - std::string bindUrl; - long groupId; - long serviceId; }; - GetMyGroupsResult(); - explicit GetMyGroupsResult(const std::string &payload); - ~GetMyGroupsResult(); + DeleteMonitorGroupResult(); + explicit DeleteMonitorGroupResult(const std::string &payload); + ~DeleteMonitorGroupResult(); Group getGroup()const; - int getErrorCode()const; - std::string getErrorMessage()const; + std::string getMessage()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: Group group_; - int errorCode_; - std::string errorMessage_; + std::string message_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_GETMYGROUPSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORGROUPRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeProcessDeleteRequest.h b/cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessRequest.h similarity index 60% rename from cms/include/alibabacloud/cms/model/NodeProcessDeleteRequest.h rename to cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessRequest.h index bfdc4a31f..f5759e07c 100644 --- a/cms/include/alibabacloud/cms/model/NodeProcessDeleteRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODEPROCESSDELETEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEPROCESSDELETEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGAGENTPROCESSREQUEST_H_ #include #include @@ -28,27 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeProcessDeleteRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteMonitoringAgentProcessRequest : public RpcServiceRequest { public: - NodeProcessDeleteRequest(); - ~NodeProcessDeleteRequest(); + DeleteMonitoringAgentProcessRequest(); + ~DeleteMonitoringAgentProcessRequest(); + std::string getProcessName()const; + void setProcessName(const std::string& processName); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); - std::string getName()const; - void setName(const std::string& name); - std::string getId()const; - void setId(const std::string& id); + std::string getProcessId()const; + void setProcessId(const std::string& processId); private: + std::string processName_; std::string instanceId_; - std::string name_; - std::string id_; + std::string processId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODEPROCESSDELETEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessResult.h b/cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessResult.h new file mode 100644 index 000000000..6ebe317e6 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DeleteMonitoringAgentProcessResult.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_DELETEMONITORINGAGENTPROCESSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGAGENTPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DeleteMonitoringAgentProcessResult : public ServiceResult + { + public: + + + DeleteMonitoringAgentProcessResult(); + explicit DeleteMonitoringAgentProcessResult(const std::string &payload); + ~DeleteMonitoringAgentProcessResult(); + 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_DELETEMONITORINGAGENTPROCESSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateResult.h deleted file mode 100644 index 5e00d7863..000000000 --- a/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMonitoringTemplateResult : public ServiceResult - { - public: - struct Resource - { - std::string description; - std::string alertTemplatesJson; - std::string restVersion; - std::string _namespace; - std::string id; - std::string eventRuleTemplatesJson; - std::string name; - }; - - - DeleteMonitoringTemplateResult(); - explicit DeleteMonitoringTemplateResult(const std::string &payload); - ~DeleteMonitoringTemplateResult(); - Resource getResource()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - Resource resource_; - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h deleted file mode 100644 index 004d57464..000000000 --- a/cms/include/alibabacloud/cms/model/DeleteMyGroupInstancesResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPINSTANCESRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMyGroupInstancesResult : public ServiceResult - { - public: - - - DeleteMyGroupInstancesResult(); - explicit DeleteMyGroupInstancesResult(const std::string &payload); - ~DeleteMyGroupInstancesResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPINSTANCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMyGroupsResult.h b/cms/include/alibabacloud/cms/model/DeleteMyGroupsResult.h deleted file mode 100644 index 9f483ad7f..000000000 --- a/cms/include/alibabacloud/cms/model/DeleteMyGroupsResult.h +++ /dev/null @@ -1,70 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteMyGroupsResult : public ServiceResult - { - public: - struct Group - { - struct ContactGroup - { - std::string name; - }; - std::string groupName; - std::vector contactGroups; - std::string type; - std::string bindUrls; - long groupId; - std::string serviceId; - }; - - - DeleteMyGroupsResult(); - explicit DeleteMyGroupsResult(const std::string &payload); - ~DeleteMyGroupsResult(); - Group getGroup()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - Group group_; - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMYGROUPSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h deleted file mode 100644 index 0835f4bed..000000000 --- a/cms/include/alibabacloud/cms/model/DeleteNotifyPolicyRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DELETENOTIFYPOLICYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETENOTIFYPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DeleteNotifyPolicyRequest : public RpcServiceRequest - { - - public: - DeleteNotifyPolicyRequest(); - ~DeleteNotifyPolicyRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getAlertName()const; - void setAlertName(const std::string& alertName); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getId()const; - void setId(const std::string& id); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string policyType_; - std::string alertName_; - std::string groupId_; - std::string accessKeyId_; - std::string id_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DELETENOTIFYPOLICYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteTasksRequest.h b/cms/include/alibabacloud/cms/model/DeleteSiteMonitorsRequest.h similarity index 68% rename from cms/include/alibabacloud/cms/model/DeleteTasksRequest.h rename to cms/include/alibabacloud/cms/model/DeleteSiteMonitorsRequest.h index 4cae3829d..f2ac8bb80 100644 --- a/cms/include/alibabacloud/cms/model/DeleteTasksRequest.h +++ b/cms/include/alibabacloud/cms/model/DeleteSiteMonitorsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETETASKSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETETASKSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteTasksRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DeleteSiteMonitorsRequest : public RpcServiceRequest { public: - DeleteTasksRequest(); - ~DeleteTasksRequest(); + DeleteSiteMonitorsRequest(); + ~DeleteSiteMonitorsRequest(); - int getIsDeleteAlarms()const; - void setIsDeleteAlarms(int isDeleteAlarms); + bool getIsDeleteAlarms()const; + void setIsDeleteAlarms(bool isDeleteAlarms); std::string getTaskIds()const; void setTaskIds(const std::string& taskIds); private: - int isDeleteAlarms_; + bool isDeleteAlarms_; std::string taskIds_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETETASKSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTaskDetailResult.h b/cms/include/alibabacloud/cms/model/DeleteSiteMonitorsResult.h similarity index 76% rename from cms/include/alibabacloud/cms/model/DescribeTaskDetailResult.h rename to cms/include/alibabacloud/cms/model/DeleteSiteMonitorsResult.h index fa5c60d63..4c3df9256 100644 --- a/cms/include/alibabacloud/cms/model/DescribeTaskDetailResult.h +++ b/cms/include/alibabacloud/cms/model/DeleteSiteMonitorsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeTaskDetailResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DeleteSiteMonitorsResult : public ServiceResult { public: - DescribeTaskDetailResult(); - explicit DescribeTaskDetailResult(const std::string &payload); - ~DescribeTaskDetailResult(); + DeleteSiteMonitorsResult(); + explicit DeleteSiteMonitorsResult(const std::string &payload); + ~DeleteSiteMonitorsResult(); std::string getMessage()const; std::string getData()const; std::string getCode()const; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DELETESITEMONITORSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableActiveAlertRequest.h b/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListRequest.h similarity index 69% rename from cms/include/alibabacloud/cms/model/EnableActiveAlertRequest.h rename to cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListRequest.h index bc14c06de..a40f0f588 100644 --- a/cms/include/alibabacloud/cms/model/EnableActiveAlertRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTREQUEST_H_ #include #include @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT EnableActiveAlertRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeActiveMetricRuleListRequest : public RpcServiceRequest { public: - EnableActiveAlertRequest(); - ~EnableActiveAlertRequest(); + DescribeActiveMetricRuleListRequest(); + ~DescribeActiveMetricRuleListRequest(); std::string getProduct()const; void setProduct(const std::string& product); - std::string getUserId()const; - void setUserId(const std::string& userId); private: std::string product_; - std::string userId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEALERTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListActiveAlertRuleResult.h b/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListResult.h similarity index 77% rename from cms/include/alibabacloud/cms/model/ListActiveAlertRuleResult.h rename to cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListResult.h index d5e314914..b5c013e3c 100644 --- a/cms/include/alibabacloud/cms/model/ListActiveAlertRuleResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeActiveMetricRuleListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTACTIVEALERTRULERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTACTIVEALERTRULERESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTRESULT_H_ #include #include @@ -29,24 +29,22 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListActiveAlertRuleResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeActiveMetricRuleListResult : public ServiceResult { public: struct Alarm { std::string silenceTime; - std::string notifyType; std::string contactGroups; std::string comparisonOperator; std::string endTime; + std::string ruleId; std::string startTime; std::string period; std::string evaluationCount; std::string _namespace; std::string statistics; - std::string name; std::string metricName; - std::string uuid; std::string state; std::string enable; std::string webhook; @@ -55,9 +53,9 @@ namespace AlibabaCloud }; - ListActiveAlertRuleResult(); - explicit ListActiveAlertRuleResult(const std::string &payload); - ~ListActiveAlertRuleResult(); + DescribeActiveMetricRuleListResult(); + explicit DescribeActiveMetricRuleListResult(const std::string &payload); + ~DescribeActiveMetricRuleListResult(); std::string getMessage()const; std::vector getDatapoints()const; std::string getCode()const; @@ -75,4 +73,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTACTIVEALERTRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEACTIVEMETRICRULELISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmHistoryResult.h b/cms/include/alibabacloud/cms/model/DescribeAlarmHistoryResult.h deleted file mode 100644 index d89156539..000000000 --- a/cms/include/alibabacloud/cms/model/DescribeAlarmHistoryResult.h +++ /dev/null @@ -1,86 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMHISTORYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMHISTORYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeAlarmHistoryResult : public ServiceResult - { - public: - struct AlarmHistory - { - int status; - std::vector contactGroups; - std::string alertName; - std::string dimensions; - int evaluationCount; - std::string _namespace; - std::vector contactMails; - std::vector contactSmses; - long alertTime; - std::string groupId; - std::string instanceName; - std::string metricName; - std::vector contacts; - std::string expression; - std::string state; - std::string userId; - std::string value; - std::string webhooks; - std::string level; - std::string id; - std::string preLevel; - long lastTime; - std::string ruleName; - std::vector contactALIIMs; - }; - - - DescribeAlarmHistoryResult(); - explicit DescribeAlarmHistoryResult(const std::string &payload); - ~DescribeAlarmHistoryResult(); - std::vector getAlarmHistoryList()const; - std::string getMessage()const; - std::string getTotal()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::vector alarmHistoryList_; - std::string message_; - std::string total_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMHISTORYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesResult.h b/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesResult.h deleted file mode 100644 index e43c681db..000000000 --- a/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesResult.h +++ /dev/null @@ -1,116 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeAlarmsForResourcesResult : public ServiceResult - { - public: - struct Alarm - { - 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 groupName; - std::string noEffectiveInterval; - std::string silenceTime; - std::string contactGroups; - std::string comparisonOperator; - std::string period; - std::string evaluationCount; - std::string _namespace; - std::string effectiveInterval; - std::string statistics; - std::string subject; - std::string name; - std::string groupId; - std::string metricName; - std::string uuid; - std::string state; - Escalations escalations; - std::string displayName; - bool enable; - std::string webhook; - std::string level; - std::string resources; - std::string threshold; - }; - - - DescribeAlarmsForResourcesResult(); - explicit DescribeAlarmsForResourcesResult(const std::string &payload); - ~DescribeAlarmsForResourcesResult(); - std::string getMessage()const; - std::string getTotal()const; - std::string getTraceId()const; - std::string getDimensions()const; - std::vector getDatapoints()const; - int getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string total_; - std::string traceId_; - std::string dimensions_; - std::vector datapoints_; - int code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmsRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlarmsRequest.h deleted file mode 100644 index 0dcfc0381..000000000 --- a/cms/include/alibabacloud/cms/model/DescribeAlarmsRequest.h +++ /dev/null @@ -1,78 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeAlarmsRequest : public RpcServiceRequest - { - - public: - DescribeAlarmsRequest(); - ~DescribeAlarmsRequest(); - - bool getEnableState()const; - void setEnableState(bool enableState); - std::string getPageSize()const; - void setPageSize(const std::string& pageSize); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getGroupBy()const; - void setGroupBy(const std::string& groupBy); - std::string getNames()const; - void setNames(const std::string& names); - std::string getDisplayName()const; - void setDisplayName(const std::string& displayName); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getAlertState()const; - void setAlertState(const std::string& alertState); - std::string getNameKeyword()const; - void setNameKeyword(const std::string& nameKeyword); - std::string getPage()const; - void setPage(const std::string& page); - - private: - bool enableState_; - std::string pageSize_; - std::string metricName_; - std::string groupId_; - std::string groupBy_; - std::string names_; - std::string displayName_; - std::string _namespace_; - std::string alertState_; - std::string nameKeyword_; - std::string page_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h index 92fe26b8e..3322029a9 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListRequest.h @@ -35,50 +35,44 @@ namespace AlibabaCloud DescribeAlertHistoryListRequest(); ~DescribeAlertHistoryListRequest(); - std::string getAlertName()const; - void setAlertName(const std::string& alertName); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - bool getOnlyCount()const; - void setOnlyCount(bool onlyCount); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getState()const; - void setState(const std::string& state); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getEndTime()const; - void setEndTime(const std::string& endTime); - bool getAscending()const; - void setAscending(bool ascending); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - int getPage()const; - void setPage(int page); - std::string getStatus()const; - void setStatus(const std::string& status); + std::string getAlertStatus()const; + void setAlertStatus(const std::string& alertStatus); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getState()const; + void setState(const std::string& state); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + bool getAscending()const; + void setAscending(bool ascending); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + int getPage()const; + void setPage(int page); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); private: - std::string alertName_; - std::string ruleName_; - std::string startTime_; - std::string accessKeyId_; - bool onlyCount_; - int pageSize_; - std::string state_; - std::string metricName_; - std::string groupId_; - std::string endTime_; - bool ascending_; - std::string _namespace_; - int page_; - std::string status_; + std::string alertStatus_; + std::string ruleName_; + std::string startTime_; + int pageSize_; + std::string state_; + std::string metricName_; + std::string groupId_; + std::string endTime_; + bool ascending_; + std::string _namespace_; + int page_; + std::string ruleId_; }; } diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h index 2c0c31dbb..371e51290 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertHistoryListResult.h @@ -37,24 +37,22 @@ namespace AlibabaCloud int status; std::vector contactGroups; std::string alertName; + std::string ruleId; std::string dimensions; int evaluationCount; std::string _namespace; std::vector contactMails; std::vector contactSmses; long alertTime; + std::string alertState; std::string groupId; std::string instanceName; std::string metricName; std::vector contacts; std::string expression; - std::string state; - std::string userId; std::string value; std::string webhooks; std::string level; - std::string id; - std::string preLevel; long lastTime; std::string ruleName; std::vector contactALIIMs; diff --git a/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.h new file mode 100644 index 000000000..d4541813d --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesRequest.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_DESCRIBEALERTINGMETRICRULERESOURCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeAlertingMetricRuleResourcesRequest : public RpcServiceRequest + { + + public: + DescribeAlertingMetricRuleResourcesRequest(); + ~DescribeAlertingMetricRuleResourcesRequest(); + + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + int getPageSize()const; + void setPageSize(int pageSize); + int getPage()const; + void setPage(int page); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + + private: + std::string groupId_; + int pageSize_; + int page_; + std::string ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListAlarmResult.h b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h similarity index 54% rename from cms/include/alibabacloud/cms/model/ListAlarmResult.h rename to cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h index 2b9333416..c9890e723 100644 --- a/cms/include/alibabacloud/cms/model/ListAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeAlertingMetricRuleResourcesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTALARMRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTALARMRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESRESULT_H_ #include #include @@ -29,54 +29,45 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListAlarmResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeAlertingMetricRuleResourcesResult : public ServiceResult { public: - struct Alarm + struct Resource { - int silenceTime; - int notifyType; - std::string contactGroups; - std::string comparisonOperator; - int endTime; - int startTime; - std::string dimensions; - int period; - int evaluationCount; - std::string _namespace; - std::string statistics; - std::string name; - std::string metricName; - std::string state; - bool enable; - std::string webhook; - std::string id; + std::string lastAlertTime; + std::string ruleId; + std::string resource; + std::string startTime; + std::string enable; + std::string metricValues; + std::string lastModifyTime; + std::string ruleName; + std::string retryTimes; + std::string groupId; std::string threshold; }; - ListAlarmResult(); - explicit ListAlarmResult(const std::string &payload); - ~ListAlarmResult(); + DescribeAlertingMetricRuleResourcesResult(); + explicit DescribeAlertingMetricRuleResourcesResult(const std::string &payload); + ~DescribeAlertingMetricRuleResourcesResult(); std::string getMessage()const; - int getNextToken()const; - std::vector getAlarmList()const; int getTotal()const; - std::string getCode()const; + std::vector getResources()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; - int nextToken_; - std::vector alarmList_; int total_; - std::string code_; + std::vector resources_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTALARMRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTINGMETRICRULERESOURCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeContactGroupListRequest.h b/cms/include/alibabacloud/cms/model/DescribeContactGroupListRequest.h new file mode 100644 index 000000000..3a40041b8 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeContactGroupListRequest.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_DESCRIBECONTACTGROUPLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeContactGroupListRequest : public RpcServiceRequest + { + + public: + DescribeContactGroupListRequest(); + ~DescribeContactGroupListRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + int pageNumber_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListContactGroupResult.h b/cms/include/alibabacloud/cms/model/DescribeContactGroupListResult.h similarity index 74% rename from cms/include/alibabacloud/cms/model/ListContactGroupResult.h rename to cms/include/alibabacloud/cms/model/DescribeContactGroupListResult.h index c0d544a63..8b201718e 100644 --- a/cms/include/alibabacloud/cms/model/ListContactGroupResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeContactGroupListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTCONTACTGROUPRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTCONTACTGROUPRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTRESULT_H_ #include #include @@ -29,17 +29,16 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListContactGroupResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeContactGroupListResult : public ServiceResult { public: - ListContactGroupResult(); - explicit ListContactGroupResult(const std::string &payload); - ~ListContactGroupResult(); + DescribeContactGroupListResult(); + explicit DescribeContactGroupListResult(const std::string &payload); + ~DescribeContactGroupListResult(); std::vector getContactGroups()const; std::string getMessage()const; - int getNextToken()const; int getTotal()const; std::string getCode()const; bool getSuccess()const; @@ -49,7 +48,6 @@ namespace AlibabaCloud private: std::vector contactGroups_; std::string message_; - int nextToken_; int total_; std::string code_; bool success_; @@ -58,4 +56,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTCONTACTGROUPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTGROUPLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/AddMyGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupRequest.h similarity index 60% rename from cms/include/alibabacloud/cms/model/AddMyGroupInstancesRequest.h rename to cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupRequest.h index 16037025f..4dca1a8a8 100644 --- a/cms/include/alibabacloud/cms/model/AddMyGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ADDMYGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ADDMYGROUPINSTANCESREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPREQUEST_H_ #include #include @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT AddMyGroupInstancesRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeContactListByContactGroupRequest : public RpcServiceRequest { public: - AddMyGroupInstancesRequest(); - ~AddMyGroupInstancesRequest(); + DescribeContactListByContactGroupRequest(); + ~DescribeContactListByContactGroupRequest(); - std::string getInstances()const; - void setInstances(const std::string& instances); - long getGroupId()const; - void setGroupId(long groupId); + std::string getContactGroupName()const; + void setContactGroupName(const std::string& contactGroupName); private: - std::string instances_; - long groupId_; + std::string contactGroupName_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ADDMYGROUPINSTANCESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListAlarmHistoryResult.h b/cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupResult.h similarity index 56% rename from cms/include/alibabacloud/cms/model/ListAlarmHistoryResult.h rename to cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupResult.h index 021cb6e6c..642d707e9 100644 --- a/cms/include/alibabacloud/cms/model/ListAlarmHistoryResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeContactListByContactGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTALARMHISTORYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTALARMHISTORYRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPRESULT_H_ #include #include @@ -29,42 +29,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListAlarmHistoryResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeContactListByContactGroupResult : public ServiceResult { public: - struct AlarmHistory + struct Contact { - int status; - std::string contactGroups; - int evaluationCount; - std::string _namespace; - std::string dimension; + struct Channels + { + std::string mail; + std::string aliIM; + std::string dingWebHook; + std::string sMS; + }; + std::string desc; + long createTime; + long updateTime; + Channels channels; std::string name; - std::string instanceName; - std::string metricName; - long alarmTime; - std::string state; - std::string value; - std::string id; - long lastTime; }; - ListAlarmHistoryResult(); - explicit ListAlarmHistoryResult(const std::string &payload); - ~ListAlarmHistoryResult(); - std::vector getAlarmHistoryList()const; + DescribeContactListByContactGroupResult(); + explicit DescribeContactListByContactGroupResult(const std::string &payload); + ~DescribeContactListByContactGroupResult(); + std::vector getContacts()const; std::string getMessage()const; - std::string getCursor()const; std::string getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: - std::vector alarmHistoryList_; + std::vector contacts_; std::string message_; - std::string cursor_; std::string code_; bool success_; @@ -72,4 +69,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTALARMHISTORYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTBYCONTACTGROUPRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h b/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h new file mode 100644 index 000000000..94790d54f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeContactListRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeContactListRequest : public RpcServiceRequest + { + + public: + DescribeContactListRequest(); + ~DescribeContactListRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + std::string getContactName()const; + void setContactName(const std::string& contactName); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + int pageNumber_; + std::string contactName_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeContactListResult.h b/cms/include/alibabacloud/cms/model/DescribeContactListResult.h new file mode 100644 index 000000000..fc4d80ee8 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeContactListResult.h @@ -0,0 +1,74 @@ +/* + * 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_DESCRIBECONTACTLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeContactListResult : public ServiceResult + { + public: + struct Contact + { + struct Channels + { + std::string mail; + std::string aliIM; + std::string dingWebHook; + std::string sMS; + }; + std::string desc; + long createTime; + long updateTime; + Channels channels; + std::string name; + }; + + + DescribeContactListResult(); + explicit DescribeContactListResult(const std::string &payload); + ~DescribeContactListResult(); + std::vector getContacts()const; + std::string getMessage()const; + int getTotal()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector contacts_; + std::string message_; + int total_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListAlarmRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h similarity index 50% rename from cms/include/alibabacloud/cms/model/ListAlarmRequest.h rename to cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h index 5c4759354..4b57c3b94 100644 --- a/cms/include/alibabacloud/cms/model/ListAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTALARMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTALARMREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTEREQUEST_H_ #include #include @@ -28,42 +28,45 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListAlarmRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventAttributeRequest : public RpcServiceRequest { public: - ListAlarmRequest(); - ~ListAlarmRequest(); + DescribeCustomEventAttributeRequest(); + ~DescribeCustomEventAttributeRequest(); + std::string getEventId()const; + void setEventId(const std::string& eventId); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getSearchKeywords()const; + void setSearchKeywords(const std::string& searchKeywords); int getPageNumber()const; void setPageNumber(int pageNumber); - bool getIsEnable()const; - void setIsEnable(bool isEnable); - std::string getName()const; - void setName(const std::string& name); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); int getPageSize()const; void setPageSize(int pageSize); - std::string getId()const; - void setId(const std::string& id); - std::string getState()const; - void setState(const std::string& state); - std::string getDimension()const; - void setDimension(const std::string& dimension); + std::string getLevel()const; + void setLevel(const std::string& level); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getName()const; + void setName(const std::string& name); private: + std::string eventId_; + std::string startTime_; + std::string searchKeywords_; int pageNumber_; - bool isEnable_; - std::string name_; - std::string _namespace_; int pageSize_; - std::string id_; - std::string state_; - std::string dimension_; + std::string level_; + std::string groupId_; + std::string endTime_; + std::string name_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTALARMREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeResult.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeResult.h new file mode 100644 index 000000000..613aea971 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventAttributeResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventAttributeResult : public ServiceResult + { + public: + struct CustomEvent + { + std::string content; + std::string time; + std::string id; + std::string groupId; + std::string name; + }; + + + DescribeCustomEventAttributeResult(); + explicit DescribeCustomEventAttributeResult(const std::string &payload); + ~DescribeCustomEventAttributeResult(); + std::vector getCustomEvents()const; + std::string getMessage()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector customEvents_; + std::string message_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListAlarmHistoryRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h similarity index 53% rename from cms/include/alibabacloud/cms/model/ListAlarmHistoryRequest.h rename to cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h index 7da8f0632..f051bb1eb 100644 --- a/cms/include/alibabacloud/cms/model/ListAlarmHistoryRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventCountRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTALARMHISTORYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTALARMHISTORYREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTREQUEST_H_ #include #include @@ -28,36 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListAlarmHistoryRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventCountRequest : public RpcServiceRequest { public: - ListAlarmHistoryRequest(); - ~ListAlarmHistoryRequest(); + DescribeCustomEventCountRequest(); + ~DescribeCustomEventCountRequest(); - std::string getCursor()const; - void setCursor(const std::string& cursor); + 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; void setEndTime(const std::string& endTime); std::string getStartTime()const; void setStartTime(const std::string& startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getSize()const; - void setSize(int size); - std::string getId()const; - void setId(const std::string& id); + std::string getSearchKeywords()const; + void setSearchKeywords(const std::string& searchKeywords); + std::string getName()const; + void setName(const std::string& name); private: - std::string cursor_; + std::string eventId_; + std::string level_; + std::string groupId_; std::string endTime_; std::string startTime_; - std::string accessKeyId_; - int size_; - std::string id_; + std::string searchKeywords_; + std::string name_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTALARMHISTORYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeCustomEventCountResult.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventCountResult.h new file mode 100644 index 000000000..c835899c4 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventCountResult.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_DESCRIBECUSTOMEVENTCOUNTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventCountResult : public ServiceResult + { + public: + struct CustomEventCount + { + int num; + long time; + std::string name; + }; + + + DescribeCustomEventCountResult(); + explicit DescribeCustomEventCountResult(const std::string &payload); + ~DescribeCustomEventCountResult(); + std::vector getCustomEventCounts()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector customEventCounts_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTCOUNTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMonitorDataRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramRequest.h similarity index 53% rename from cms/include/alibabacloud/cms/model/QueryMonitorDataRequest.h rename to cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramRequest.h index 22f782b67..a0ae5a694 100644 --- a/cms/include/alibabacloud/cms/model/QueryMonitorDataRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATAREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMREQUEST_H_ #include #include @@ -28,42 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMonitorDataRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventHistogramRequest : public RpcServiceRequest { public: - QueryMonitorDataRequest(); - ~QueryMonitorDataRequest(); + DescribeCustomEventHistogramRequest(); + ~DescribeCustomEventHistogramRequest(); - std::string getCursor()const; - void setCursor(const std::string& cursor); - std::string getPeriod()const; - void setPeriod(const std::string& period); - int getLength()const; - void setLength(int length); + 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; void setEndTime(const std::string& endTime); std::string getStartTime()const; void setStartTime(const std::string& startTime); - std::string getType()const; - void setType(const std::string& type); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); + std::string getSearchKeywords()const; + void setSearchKeywords(const std::string& searchKeywords); + std::string getName()const; + void setName(const std::string& name); private: - std::string cursor_; - std::string period_; - int length_; + std::string eventId_; + std::string level_; + std::string groupId_; std::string endTime_; std::string startTime_; - std::string type_; - std::string metricName_; - std::string taskId_; + std::string searchKeywords_; + std::string name_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetNotifyPolicyResult.h b/cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramResult.h similarity index 65% rename from cms/include/alibabacloud/cms/model/GetNotifyPolicyResult.h rename to cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramResult.h index 811052c48..5cf1fb701 100644 --- a/cms/include/alibabacloud/cms/model/GetNotifyPolicyResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomEventHistogramResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMRESULT_H_ #include #include @@ -29,39 +29,35 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT GetNotifyPolicyResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeCustomEventHistogramResult : public ServiceResult { public: - struct Result + struct EventHistogram { - std::string type; - std::string alertName; long endTime; long startTime; - std::string dimensions; - std::string id; - std::string groupId; + long count; }; - GetNotifyPolicyResult(); - explicit GetNotifyPolicyResult(const std::string &payload); - ~GetNotifyPolicyResult(); + DescribeCustomEventHistogramResult(); + explicit DescribeCustomEventHistogramResult(const std::string &payload); + ~DescribeCustomEventHistogramResult(); std::string getMessage()const; + std::vector getEventHistograms()const; std::string getCode()const; std::string getSuccess()const; - Result getResult()const; protected: void parse(const std::string &payload); private: std::string message_; + std::vector eventHistograms_; std::string code_; std::string success_; - Result result_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMEVENTHISTOGRAMRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryCustomMetricListRequest.h b/cms/include/alibabacloud/cms/model/DescribeCustomMetricListRequest.h similarity index 65% rename from cms/include/alibabacloud/cms/model/QueryCustomMetricListRequest.h rename to cms/include/alibabacloud/cms/model/DescribeCustomMetricListRequest.h index 336fc1999..d5b11aec6 100644 --- a/cms/include/alibabacloud/cms/model/QueryCustomMetricListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomMetricListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMMETRICLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMMETRICLISTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTREQUEST_H_ #include #include @@ -28,21 +28,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryCustomMetricListRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeCustomMetricListRequest : public RpcServiceRequest { public: - QueryCustomMetricListRequest(); - ~QueryCustomMetricListRequest(); + DescribeCustomMetricListRequest(); + ~DescribeCustomMetricListRequest(); std::string getGroupId()const; void setGroupId(const std::string& groupId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getSize()const; - void setSize(const std::string& size); - std::string getPage()const; - void setPage(const std::string& page); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); + std::string getPageSize()const; + void setPageSize(const std::string& pageSize); std::string getMetricName()const; void setMetricName(const std::string& metricName); std::string getDimension()const; @@ -52,9 +50,8 @@ namespace AlibabaCloud private: std::string groupId_; - std::string accessKeyId_; - std::string size_; - std::string page_; + std::string pageNumber_; + std::string pageSize_; std::string metricName_; std::string dimension_; std::string md5_; @@ -63,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMMETRICLISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryCustomMetricListResult.h b/cms/include/alibabacloud/cms/model/DescribeCustomMetricListResult.h similarity index 71% rename from cms/include/alibabacloud/cms/model/QueryCustomMetricListResult.h rename to cms/include/alibabacloud/cms/model/DescribeCustomMetricListResult.h index 3912b4c94..790c24ee4 100644 --- a/cms/include/alibabacloud/cms/model/QueryCustomMetricListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeCustomMetricListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMMETRICLISTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMMETRICLISTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryCustomMetricListResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeCustomMetricListResult : public ServiceResult { public: - QueryCustomMetricListResult(); - explicit QueryCustomMetricListResult(const std::string &payload); - ~QueryCustomMetricListResult(); + DescribeCustomMetricListResult(); + explicit DescribeCustomMetricListResult(const std::string &payload); + ~DescribeCustomMetricListResult(); std::string getMessage()const; std::string getCode()const; std::string getResult()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMMETRICLISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECUSTOMMETRICLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeEventRuleRequest.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeRequest.h similarity index 71% rename from cms/include/alibabacloud/cms/model/DescribeEventRuleRequest.h rename to cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeRequest.h index e6135ce63..bfb0568ee 100644 --- a/cms/include/alibabacloud/cms/model/DescribeEventRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTEREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleAttributeRequest : public RpcServiceRequest { public: - DescribeEventRuleRequest(); - ~DescribeEventRuleRequest(); + DescribeEventRuleAttributeRequest(); + ~DescribeEventRuleAttributeRequest(); std::string getRuleName()const; void setRuleName(const std::string& ruleName); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeEventRuleResult.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeResult.h similarity index 77% rename from cms/include/alibabacloud/cms/model/DescribeEventRuleResult.h rename to cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeResult.h index 0f36e0d9f..adcfb9f95 100644 --- a/cms/include/alibabacloud/cms/model/DescribeEventRuleResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleAttributeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULERESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTERESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleAttributeResult : public ServiceResult { public: struct Result @@ -50,9 +50,9 @@ namespace AlibabaCloud }; - DescribeEventRuleResult(); - explicit DescribeEventRuleResult(const std::string &payload); - ~DescribeEventRuleResult(); + DescribeEventRuleAttributeResult(); + explicit DescribeEventRuleAttributeResult(const std::string &payload); + ~DescribeEventRuleAttributeResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -70,4 +70,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListEventRulesRequest.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleListRequest.h similarity index 71% rename from cms/include/alibabacloud/cms/model/ListEventRulesRequest.h rename to cms/include/alibabacloud/cms/model/DescribeEventRuleListRequest.h index cd25eeea9..a7adbdead 100644 --- a/cms/include/alibabacloud/cms/model/ListEventRulesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTREQUEST_H_ #include #include @@ -28,30 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListEventRulesRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleListRequest : public RpcServiceRequest { public: - ListEventRulesRequest(); - ~ListEventRulesRequest(); + DescribeEventRuleListRequest(); + ~DescribeEventRuleListRequest(); std::string getGroupId()const; void setGroupId(const std::string& groupId); + std::string getPageNumber()const; + void setPageNumber(const std::string& pageNumber); std::string getPageSize()const; void setPageSize(const std::string& pageSize); std::string getNamePrefix()const; void setNamePrefix(const std::string& namePrefix); - std::string getPage()const; - void setPage(const std::string& page); private: std::string groupId_; + std::string pageNumber_; std::string pageSize_; std::string namePrefix_; - std::string page_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListEventRulesResult.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleListResult.h similarity index 71% rename from cms/include/alibabacloud/cms/model/ListEventRulesResult.h rename to cms/include/alibabacloud/cms/model/DescribeEventRuleListResult.h index de52775bb..f09d2e2af 100644 --- a/cms/include/alibabacloud/cms/model/ListEventRulesResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListEventRulesResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleListResult : public ServiceResult { public: struct EventRule @@ -38,7 +38,6 @@ namespace AlibabaCloud { std::vector nameList; std::vector levelList; - std::vector statusList; std::vector eventTypeList; std::string product; }; @@ -51,14 +50,12 @@ namespace AlibabaCloud }; - ListEventRulesResult(); - explicit ListEventRulesResult(const std::string &payload); - ~ListEventRulesResult(); + DescribeEventRuleListResult(); + explicit DescribeEventRuleListResult(const std::string &payload); + ~DescribeEventRuleListResult(); std::string getMessage()const; - std::string getNextToken()const; - int getCurrentPage()const; int getTotal()const; - std::vector getDatapoints()const; + std::vector getEventRules()const; std::string getCode()const; bool getSuccess()const; @@ -66,10 +63,8 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - std::string nextToken_; - int currentPage_; int total_; - std::vector datapoints_; + std::vector eventRules_; std::string code_; bool success_; @@ -77,4 +72,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTEVENTRULESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULELISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleRequest.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListRequest.h similarity index 71% rename from cms/include/alibabacloud/cms/model/ListEventTargetsByRuleRequest.h rename to cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListRequest.h index 1c61f9e8d..f779af939 100644 --- a/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListEventTargetsByRuleRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleTargetListRequest : public RpcServiceRequest { public: - ListEventTargetsByRuleRequest(); - ~ListEventTargetsByRuleRequest(); + DescribeEventRuleTargetListRequest(); + ~DescribeEventRuleTargetListRequest(); std::string getRuleName()const; void setRuleName(const std::string& ruleName); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleResult.h b/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListResult.h similarity index 81% rename from cms/include/alibabacloud/cms/model/ListEventTargetsByRuleResult.h rename to cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListResult.h index e4c459c60..5463d6ce5 100644 --- a/cms/include/alibabacloud/cms/model/ListEventTargetsByRuleResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeEventRuleTargetListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULERESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListEventTargetsByRuleResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeEventRuleTargetListResult : public ServiceResult { public: struct ContactParameter @@ -44,11 +44,13 @@ namespace AlibabaCloud std::string serviceName; std::string region; std::string id; + std::string arn; }; struct MnsParameter { std::string region; std::string id; + std::string arn; std::string queue; }; struct WebhookParameter @@ -64,13 +66,13 @@ namespace AlibabaCloud std::string logStore; std::string region; std::string id; + std::string arn; }; - ListEventTargetsByRuleResult(); - explicit ListEventTargetsByRuleResult(const std::string &payload); - ~ListEventTargetsByRuleResult(); - int getParameterCount()const; + DescribeEventRuleTargetListResult(); + explicit DescribeEventRuleTargetListResult(const std::string &payload); + ~DescribeEventRuleTargetListResult(); std::vector getContactParameters()const; std::string getMessage()const; std::vector getSlsParameters()const; @@ -82,7 +84,6 @@ namespace AlibabaCloud protected: void parse(const std::string &payload); private: - int parameterCount_; std::vector contactParameters_; std::string message_; std::vector slsParameters_; @@ -95,4 +96,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTEVENTTARGETSBYRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEEVENTRULETARGETLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessRequest.h new file mode 100644 index 000000000..f3d1ed8e5 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessRequest.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_DESCRIBEGROUPMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeGroupMonitoringAgentProcessRequest : public RpcServiceRequest + { + + public: + DescribeGroupMonitoringAgentProcessRequest(); + ~DescribeGroupMonitoringAgentProcessRequest(); + + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getProcessName()const; + void setProcessName(const std::string& processName); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string groupId_; + std::string processName_; + int pageNumber_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h new file mode 100644 index 000000000..4f7fdd94f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeGroupMonitoringAgentProcessResult.h @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeGroupMonitoringAgentProcessResult : public ServiceResult + { + public: + struct Process + { + struct MatchExpressItem + { + std::string function; + std::string value; + std::string name; + }; + struct AlertConfigItem + { + std::string noEffectiveInterval; + std::string silenceTime; + std::string comparisonOperator; + std::string times; + std::string webhook; + std::string effectiveInterval; + std::string escalationsLevel; + std::string statistics; + std::string threshold; + }; + std::string processName; + std::string matchExpressFilterRelation; + std::vector alertConfig; + std::vector matchExpress; + std::string id; + std::string groupId; + }; + + + DescribeGroupMonitoringAgentProcessResult(); + explicit DescribeGroupMonitoringAgentProcessResult(const std::string &payload); + ~DescribeGroupMonitoringAgentProcessResult(); + std::string getMessage()const; + std::vector getProcesses()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector processes_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEGROUPMONITORINGAGENTPROCESSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigListRequest.h b/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListRequest.h similarity index 76% rename from cms/include/alibabacloud/cms/model/TaskConfigListRequest.h rename to cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListRequest.h index 8856bb7d9..772c4e119 100644 --- a/cms/include/alibabacloud/cms/model/TaskConfigListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT TaskConfigListRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeHostAvailabilityListRequest : public RpcServiceRequest { public: - TaskConfigListRequest(); - ~TaskConfigListRequest(); + DescribeHostAvailabilityListRequest(); + ~DescribeHostAvailabilityListRequest(); long getGroupId()const; void setGroupId(long groupId); @@ -57,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigListResult.h b/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListResult.h similarity index 50% rename from cms/include/alibabacloud/cms/model/TaskConfigListResult.h rename to cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListResult.h index e0f6a978d..fdd8746c0 100644 --- a/cms/include/alibabacloud/cms/model/TaskConfigListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeHostAvailabilityListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTRESULT_H_ #include #include @@ -29,50 +29,70 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT TaskConfigListResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeHostAvailabilityListResult : public ServiceResult { public: struct NodeTaskConfig { + struct TaskOption + { + std::string telnetOrPingHost; + std::string httpResponseCharset; + std::string httpKeyword; + std::string httpURI; + bool httpNegative; + std::string httpMethod; + }; + struct AlertConfig + { + struct EscalationListItem + { + std::string metricName; + std::string times; + std::string value; + std::string _operator; + std::string aggregate; + }; + int notifyType; + int silenceTime; + int endTime; + int startTime; + std::string webHook; + std::vector escalationList; + }; std::string groupName; - std::string alertConfig; + std::vector instances; + TaskOption taskOption; + AlertConfig alertConfig; std::string taskName; std::string taskScope; std::string taskType; long id; bool disabled; - std::vector instanceList; - std::string jsonData; long groupId; }; - TaskConfigListResult(); - explicit TaskConfigListResult(const std::string &payload); - ~TaskConfigListResult(); - int getPageSize()const; - int getPageNumber()const; - int getPageTotal()const; + DescribeHostAvailabilityListResult(); + explicit DescribeHostAvailabilityListResult(const std::string &payload); + ~DescribeHostAvailabilityListResult(); + std::string getMessage()const; std::vector getTaskList()const; int getTotal()const; - int getErrorCode()const; - std::string getErrorMessage()const; + std::string getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: - int pageSize_; - int pageNumber_; - int pageTotal_; + std::string message_; std::vector taskList_; int total_; - int errorCode_; - std::string errorMessage_; + std::string code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGLISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEHOSTAVAILABILITYLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeISPAreaCityRequest.h b/cms/include/alibabacloud/cms/model/DescribeISPAreaCityRequest.h deleted file mode 100644 index 9f2105f43..000000000 --- a/cms/include/alibabacloud/cms/model/DescribeISPAreaCityRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEISPAREACITYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEISPAREACITYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT DescribeISPAreaCityRequest : public RpcServiceRequest - { - - public: - DescribeISPAreaCityRequest(); - ~DescribeISPAreaCityRequest(); - - std::string getCity()const; - void setCity(const std::string& city); - std::string getIsp()const; - void setIsp(const std::string& isp); - - private: - std::string city_; - std::string isp_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEISPAREACITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricDataRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricDataRequest.h similarity index 65% rename from cms/include/alibabacloud/cms/model/QueryMetricDataRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMetricDataRequest.h index ec9a3684e..c3bb0321b 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricDataRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricDataRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATAREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATAREQUEST_H_ #include #include @@ -28,48 +28,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricDataRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMetricDataRequest : public RpcServiceRequest { public: - QueryMetricDataRequest(); - ~QueryMetricDataRequest(); + DescribeMetricDataRequest(); + ~DescribeMetricDataRequest(); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); std::string getPeriod()const; void setPeriod(const std::string& period); std::string getLength()const; void setLength(const std::string& length); - std::string getProject()const; - void setProject(const std::string& project); std::string getEndTime()const; void setEndTime(const std::string& endTime); std::string getExpress()const; void setExpress(const std::string& express); std::string getStartTime()const; void setStartTime(const std::string& startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getMetric()const; - void setMetric(const std::string& metric); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); std::string getDimensions()const; void setDimensions(const std::string& dimensions); private: - long resourceOwnerId_; std::string period_; std::string length_; - std::string project_; std::string endTime_; std::string express_; std::string startTime_; - std::string accessKeyId_; - std::string metric_; + std::string _namespace_; + std::string metricName_; std::string dimensions_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATAREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricDataResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricDataResult.h similarity index 75% rename from cms/include/alibabacloud/cms/model/QueryMetricDataResult.h rename to cms/include/alibabacloud/cms/model/DescribeMetricDataResult.h index dd87d5a6c..e066c9726 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricDataResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricDataResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATARESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATARESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATARESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricDataResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMetricDataResult : public ServiceResult { public: - QueryMetricDataResult(); - explicit QueryMetricDataResult(const std::string &payload); - ~QueryMetricDataResult(); + DescribeMetricDataResult(); + explicit DescribeMetricDataResult(const std::string &payload); + ~DescribeMetricDataResult(); std::string getMessage()const; std::string getPeriod()const; std::string getDatapoints()const; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICDATARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICDATARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricLastRequest.h similarity index 62% rename from cms/include/alibabacloud/cms/model/QueryMetricListRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMetricLastRequest.h index 6bb5914d4..359326e7a 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricLastRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICLISTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTREQUEST_H_ #include #include @@ -28,51 +28,45 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricListRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMetricLastRequest : public RpcServiceRequest { public: - QueryMetricListRequest(); - ~QueryMetricListRequest(); + DescribeMetricLastRequest(); + ~DescribeMetricLastRequest(); - std::string getCursor()const; - void setCursor(const std::string& cursor); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getProject()const; - void setProject(const std::string& project); std::string getExpress()const; void setExpress(const std::string& express); std::string getStartTime()const; void setStartTime(const std::string& startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); std::string getPeriod()const; void setPeriod(const std::string& period); std::string getLength()const; void setLength(const std::string& length); std::string getEndTime()const; void setEndTime(const std::string& endTime); - std::string getMetric()const; - void setMetric(const std::string& metric); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); std::string getDimensions()const; void setDimensions(const std::string& dimensions); private: - std::string cursor_; - long resourceOwnerId_; - std::string project_; std::string express_; std::string startTime_; - std::string accessKeyId_; + std::string nextToken_; + std::string metricName_; std::string period_; std::string length_; std::string endTime_; - std::string metric_; + std::string _namespace_; std::string dimensions_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICLISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricLastResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricLastResult.h similarity index 70% rename from cms/include/alibabacloud/cms/model/QueryMetricLastResult.h rename to cms/include/alibabacloud/cms/model/DescribeMetricLastResult.h index 3116f5d5d..d7cd2c075 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricLastResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricLastResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICLASTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICLASTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTRESULT_H_ #include #include @@ -29,33 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricLastResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMetricLastResult : public ServiceResult { public: - QueryMetricLastResult(); - explicit QueryMetricLastResult(const std::string &payload); - ~QueryMetricLastResult(); + DescribeMetricLastResult(); + explicit DescribeMetricLastResult(const std::string &payload); + ~DescribeMetricLastResult(); std::string getMessage()const; + std::string getNextToken()const; std::string getPeriod()const; - std::string getCursor()const; std::string getDatapoints()const; std::string getCode()const; - std::string getSuccess()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; + std::string nextToken_; std::string period_; - std::string cursor_; std::string datapoints_; std::string code_; - std::string success_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICLASTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLASTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricLastRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricListRequest.h similarity index 60% rename from cms/include/alibabacloud/cms/model/QueryMetricLastRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMetricListRequest.h index 4a7aba998..9955b63aa 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricLastRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICLASTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICLASTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ #include #include @@ -28,54 +28,45 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricLastRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMetricListRequest : public RpcServiceRequest { public: - QueryMetricLastRequest(); - ~QueryMetricLastRequest(); + DescribeMetricListRequest(); + ~DescribeMetricListRequest(); - std::string getCursor()const; - void setCursor(const std::string& cursor); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getProject()const; - void setProject(const std::string& project); std::string getExpress()const; void setExpress(const std::string& express); std::string getStartTime()const; void setStartTime(const std::string& startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); std::string getPeriod()const; void setPeriod(const std::string& period); std::string getLength()const; void setLength(const std::string& length); std::string getEndTime()const; void setEndTime(const std::string& endTime); - std::string getMetric()const; - void setMetric(const std::string& metric); - std::string getPage()const; - void setPage(const std::string& page); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); std::string getDimensions()const; void setDimensions(const std::string& dimensions); private: - std::string cursor_; - long resourceOwnerId_; - std::string project_; std::string express_; std::string startTime_; - std::string accessKeyId_; + std::string nextToken_; + std::string metricName_; std::string period_; std::string length_; std::string endTime_; - std::string metric_; - std::string page_; + std::string _namespace_; std::string dimensions_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICLASTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricListResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricListResult.h similarity index 70% rename from cms/include/alibabacloud/cms/model/QueryMetricListResult.h rename to cms/include/alibabacloud/cms/model/DescribeMetricListResult.h index 977cc043e..c50bc5f83 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICLISTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICLISTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTRESULT_H_ #include #include @@ -29,33 +29,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricListResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMetricListResult : public ServiceResult { public: - QueryMetricListResult(); - explicit QueryMetricListResult(const std::string &payload); - ~QueryMetricListResult(); + DescribeMetricListResult(); + explicit DescribeMetricListResult(const std::string &payload); + ~DescribeMetricListResult(); std::string getMessage()const; + std::string getNextToken()const; std::string getPeriod()const; - std::string getCursor()const; std::string getDatapoints()const; std::string getCode()const; - std::string getSuccess()const; + bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string message_; + std::string nextToken_; std::string period_; - std::string cursor_; std::string datapoints_; std::string code_; - std::string success_; + bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICLISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricMetaRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricMetaListRequest.h similarity index 65% rename from cms/include/alibabacloud/cms/model/QueryMetricMetaRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMetricMetaListRequest.h index 08c9dbe25..783b16898 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricMetaRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricMetaListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETAREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTREQUEST_H_ #include #include @@ -28,33 +28,33 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricMetaRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMetricMetaListRequest : public RpcServiceRequest { public: - QueryMetricMetaRequest(); - ~QueryMetricMetaRequest(); + DescribeMetricMetaListRequest(); + ~DescribeMetricMetaListRequest(); - std::string getMetric()const; - void setMetric(const std::string& metric); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getProject()const; - void setProject(const std::string& project); int getPageNumber()const; void setPageNumber(int pageNumber); std::string getLabels()const; void setLabels(const std::string& labels); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); private: - std::string metric_; - int pageSize_; - std::string project_; int pageNumber_; std::string labels_; + std::string _namespace_; + int pageSize_; + std::string metricName_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricMetaResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricMetaListResult.h similarity index 65% rename from cms/include/alibabacloud/cms/model/QueryMetricMetaResult.h rename to cms/include/alibabacloud/cms/model/DescribeMetricMetaListResult.h index 806f957cb..38d30c268 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricMetaResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricMetaListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETARESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETARESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTRESULT_H_ #include #include @@ -29,40 +29,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricMetaResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMetricMetaListResult : public ServiceResult { public: struct Resource { - std::string project; + std::string metricName; std::string periods; std::string description; std::string dimensions; - std::string metric; + std::string _namespace; std::string labels; std::string unit; std::string statistics; }; - QueryMetricMetaResult(); - explicit QueryMetricMetaResult(const std::string &payload); - ~QueryMetricMetaResult(); + DescribeMetricMetaListResult(); + explicit DescribeMetricMetaListResult(const std::string &payload); + ~DescribeMetricMetaListResult(); + std::string getTotalCount()const; + std::string getMessage()const; std::vector getResources()const; - std::string getErrorCode()const; - std::string getErrorMessage()const; + std::string getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string totalCount_; + std::string message_; std::vector resources_; - std::string errorCode_; - std::string errorMessage_; + std::string code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICMETARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICMETALISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountRequest.h similarity index 60% rename from cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMetricRuleCountRequest.h index 30af39d61..4db366d90 100644 --- a/cms/include/alibabacloud/cms/model/CreateMyGroupAlertBatchRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT CreateMyGroupAlertBatchRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleCountRequest : public RpcServiceRequest { public: - CreateMyGroupAlertBatchRequest(); - ~CreateMyGroupAlertBatchRequest(); + DescribeMetricRuleCountRequest(); + ~DescribeMetricRuleCountRequest(); - long getGroupId()const; - void setGroupId(long groupId); - std::string getGroupAlertJsonArray()const; - void setGroupAlertJsonArray(const std::string& groupAlertJsonArray); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); private: - long groupId_; - std::string groupAlertJsonArray_; + std::string _namespace_; + std::string metricName_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEMYGROUPALERTBATCHREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountResult.h new file mode 100644 index 000000000..2281de35f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleCountResult.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleCountResult : public ServiceResult + { + public: + struct MetricRuleCount + { + int alarm; + int total; + int ok; + int disable; + int nodata; + }; + + + DescribeMetricRuleCountResult(); + explicit DescribeMetricRuleCountResult(const std::string &payload); + ~DescribeMetricRuleCountResult(); + MetricRuleCount getMetricRuleCount()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + MetricRuleCount metricRuleCount_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULECOUNTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h similarity index 74% rename from cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h index 2fc02f910..fbbfb9283 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlarmsForResourcesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTREQUEST_H_ #include #include @@ -28,42 +28,48 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeAlarmsForResourcesRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleListRequest : public RpcServiceRequest { public: - DescribeAlarmsForResourcesRequest(); - ~DescribeAlarmsForResourcesRequest(); + DescribeMetricRuleListRequest(); + ~DescribeMetricRuleListRequest(); bool getEnableState()const; void setEnableState(bool enableState); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); std::string getPageSize()const; void setPageSize(const std::string& pageSize); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getRuleIds()const; + void setRuleIds(const std::string& ruleIds); + std::string get_Namespace()const; + 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); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); std::string getDimensions()const; void setDimensions(const std::string& dimensions); private: bool enableState_; - std::string groupId_; - std::string _namespace_; + std::string ruleName_; std::string pageSize_; + std::string metricName_; + std::string groupId_; + std::string ruleIds_; + std::string _namespace_; std::string alertState_; std::string page_; - std::string metricName_; std::string dimensions_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSFORRESOURCESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmsResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListResult.h similarity index 73% rename from cms/include/alibabacloud/cms/model/DescribeAlarmsResult.h rename to cms/include/alibabacloud/cms/model/DescribeMetricRuleListResult.h index eaf162be5..057210ea6 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlarmsResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeAlarmsResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleListResult : public ServiceResult { public: struct Alarm @@ -63,39 +63,32 @@ namespace AlibabaCloud }; std::string groupName; std::string noEffectiveInterval; - std::string comparisonOperator; - std::string evaluationCount; - std::string name; - std::string metricName; - std::string displayName; - bool enable; - std::string ruleName; - std::string threshold; std::string silenceTime; std::string contactGroups; + std::string mailSubject; + std::string ruleId; + std::string sourceType; std::string period; std::string dimensions; std::string _namespace; std::string effectiveInterval; - std::string statistics; - std::string subject; + std::string alertState; std::string groupId; - std::string uuid; - std::string state; + std::string metricName; Escalations escalations; + bool enableState; std::string webhook; - std::string level; std::string resources; + std::string ruleName; }; - DescribeAlarmsResult(); - explicit DescribeAlarmsResult(const std::string &payload); - ~DescribeAlarmsResult(); + DescribeMetricRuleListResult(); + explicit DescribeMetricRuleListResult(const std::string &payload); + ~DescribeMetricRuleListResult(); std::string getMessage()const; std::string getTotal()const; - std::string getTraceId()const; - std::vector getDatapoints()const; + std::vector getAlarms()const; int getCode()const; bool getSuccess()const; @@ -104,8 +97,7 @@ namespace AlibabaCloud private: std::string message_; std::string total_; - std::string traceId_; - std::vector datapoints_; + std::vector alarms_; int code_; bool success_; @@ -113,4 +105,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULELISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h index c8b1c42dd..a2618eb4a 100644 --- a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTargetsRequest.h @@ -35,11 +35,11 @@ namespace AlibabaCloud DescribeMetricRuleTargetsRequest(); ~DescribeMetricRuleTargetsRequest(); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); private: - std::string ruleName_; + std::string ruleId_; }; } diff --git a/cms/include/alibabacloud/cms/model/GetMonitoringTemplateRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h similarity index 63% rename from cms/include/alibabacloud/cms/model/GetMonitoringTemplateRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h index f529f60a5..612860a00 100644 --- a/cms/include/alibabacloud/cms/model/GetMonitoringTemplateRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTEREQUEST_H_ #include #include @@ -28,24 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT GetMonitoringTemplateRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTemplateAttributeRequest : public RpcServiceRequest { public: - GetMonitoringTemplateRequest(); - ~GetMonitoringTemplateRequest(); + DescribeMetricRuleTemplateAttributeRequest(); + ~DescribeMetricRuleTemplateAttributeRequest(); std::string getName()const; void setName(const std::string& name); - std::string getId()const; - void setId(const std::string& id); + std::string getTemplateId()const; + void setTemplateId(const std::string& templateId); private: std::string name_; - std::string id_; + std::string templateId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeResult.h new file mode 100644 index 000000000..2c7ac8502 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateAttributeResult.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_DESCRIBEMETRICRULETEMPLATEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTemplateAttributeResult : public ServiceResult + { + public: + struct Resource + { + struct AlertTemplate + { + struct Escalations + { + struct Info + { + std::string comparisonOperator; + int times; + std::string statistics; + std::string threshold; + }; + struct Warn + { + std::string comparisonOperator; + int times; + std::string statistics; + std::string threshold; + }; + struct Critical + { + std::string comparisonOperator; + int times; + std::string statistics; + std::string threshold; + }; + Critical critical; + Info info; + Warn warn; + }; + std::string metricName; + std::string category; + Escalations escalations; + std::string _namespace; + std::string webhook; + std::string ruleName; + std::string selector; + }; + std::vector alertTemplates; + std::string description; + std::string restVersion; + std::string templateId; + std::string name; + }; + + + DescribeMetricRuleTemplateAttributeResult(); + explicit DescribeMetricRuleTemplateAttributeResult(const std::string &payload); + ~DescribeMetricRuleTemplateAttributeResult(); + std::string getMessage()const; + Resource getResource()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + Resource resource_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListRequest.h similarity index 72% rename from cms/include/alibabacloud/cms/model/ListMonitoringTemplatesRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListRequest.h index 8e2509c77..3b07e6704 100644 --- a/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTREQUEST_H_ #include #include @@ -28,39 +28,36 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMonitoringTemplatesRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTemplateListRequest : public RpcServiceRequest { public: - ListMonitoringTemplatesRequest(); - ~ListMonitoringTemplatesRequest(); + DescribeMetricRuleTemplateListRequest(); + ~DescribeMetricRuleTemplateListRequest(); bool getHistory()const; void setHistory(bool history); + long getTemplateId()const; + void setTemplateId(long templateId); long getPageNumber()const; void setPageNumber(long pageNumber); - bool getTotal()const; - void setTotal(bool total); std::string getName()const; void setName(const std::string& name); long getPageSize()const; void setPageSize(long pageSize); - long getId()const; - void setId(long id); std::string getKeyword()const; void setKeyword(const std::string& keyword); private: bool history_; + long templateId_; long pageNumber_; - bool total_; std::string name_; long pageSize_; - long id_; std::string keyword_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListResult.h similarity index 57% rename from cms/include/alibabacloud/cms/model/ListMonitoringTemplatesResult.h rename to cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListResult.h index 5b5816793..aab5836e6 100644 --- a/cms/include/alibabacloud/cms/model/ListMonitoringTemplatesResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricRuleTemplateListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTRESULT_H_ #include #include @@ -29,10 +29,10 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMonitoringTemplatesResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMetricRuleTemplateListResult : public ServiceResult { public: - struct Resource + struct _Template { struct ApplyHistory { @@ -42,41 +42,34 @@ namespace AlibabaCloud }; long gmtCreate; std::string description; - std::string alertTemplatesJson; long gmtModified; - std::string _namespace; long restVersion; - long id; - std::vector applyHistories; - std::string eventRuleTemplatesJson; + std::vector<_Template::ApplyHistory> applyHistories; + long templateId; std::string name; }; - ListMonitoringTemplatesResult(); - explicit ListMonitoringTemplatesResult(const std::string &payload); - ~ListMonitoringTemplatesResult(); - long getPageSize()const; - long getPageNumber()const; + DescribeMetricRuleTemplateListResult(); + explicit DescribeMetricRuleTemplateListResult(const std::string &payload); + ~DescribeMetricRuleTemplateListResult(); + std::string getMessage()const; long getTotal()const; - std::vector getResources()const; - int getErrorCode()const; - std::string getErrorMessage()const; + std::vector<_Template> getTemplates()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: - long pageSize_; - long pageNumber_; + std::string message_; long total_; - std::vector resources_; - int errorCode_; - std::string errorMessage_; + std::vector<_Template> templates_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMONITORINGTEMPLATESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICRULETEMPLATELISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricTopRequest.h b/cms/include/alibabacloud/cms/model/DescribeMetricTopRequest.h similarity index 68% rename from cms/include/alibabacloud/cms/model/QueryMetricTopRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMetricTopRequest.h index 772b43031..33a76a3bb 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricTopRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricTopRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPREQUEST_H_ #include #include @@ -28,23 +28,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricTopRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMetricTopRequest : public RpcServiceRequest { public: - QueryMetricTopRequest(); - ~QueryMetricTopRequest(); + DescribeMetricTopRequest(); + ~DescribeMetricTopRequest(); - long getResourceOwnerId()const; - void setResourceOwnerId(long resourceOwnerId); - std::string getProject()const; - void setProject(const std::string& project); std::string getExpress()const; void setExpress(const std::string& express); std::string getStartTime()const; void setStartTime(const std::string& startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); std::string getPeriod()const; void setPeriod(const std::string& period); std::string getLength()const; @@ -55,27 +51,25 @@ namespace AlibabaCloud void setOrderby(const std::string& orderby); std::string getOrderDesc()const; void setOrderDesc(const std::string& orderDesc); - std::string getMetric()const; - void setMetric(const std::string& metric); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); std::string getDimensions()const; void setDimensions(const std::string& dimensions); private: - long resourceOwnerId_; - std::string project_; std::string express_; std::string startTime_; - std::string accessKeyId_; + std::string metricName_; std::string period_; std::string length_; std::string endTime_; std::string orderby_; std::string orderDesc_; - std::string metric_; + std::string _namespace_; std::string dimensions_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMetricTopResult.h b/cms/include/alibabacloud/cms/model/DescribeMetricTopResult.h similarity index 75% rename from cms/include/alibabacloud/cms/model/QueryMetricTopResult.h rename to cms/include/alibabacloud/cms/model/DescribeMetricTopResult.h index 92895168a..adbf3e740 100644 --- a/cms/include/alibabacloud/cms/model/QueryMetricTopResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMetricTopResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryMetricTopResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMetricTopResult : public ServiceResult { public: - QueryMetricTopResult(); - explicit QueryMetricTopResult(const std::string &payload); - ~QueryMetricTopResult(); + DescribeMetricTopResult(); + explicit DescribeMetricTopResult(const std::string &payload); + ~DescribeMetricTopResult(); std::string getMessage()const; std::string getPeriod()const; std::string getDatapoints()const; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMETRICTOPRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMETRICTOPRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesRequest.h similarity index 70% rename from cms/include/alibabacloud/cms/model/ListGroupDynamicRuleRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesRequest.h index c5a4b1b7c..c1425dd5b 100644 --- a/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListGroupDynamicRuleRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupCategoriesRequest : public RpcServiceRequest { public: - ListGroupDynamicRuleRequest(); - ~ListGroupDynamicRuleRequest(); + DescribeMonitorGroupCategoriesRequest(); + ~DescribeMonitorGroupCategoriesRequest(); long getGroupId()const; void setGroupId(long groupId); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesResult.h similarity index 58% rename from cms/include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesResult.h index ff590a9ce..10ee29266 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupCategoriesResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupCategoriesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMYGROUPCATEGORIESRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMYGROUPCATEGORIESRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESRESULT_H_ #include #include @@ -29,39 +29,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMyGroupCategoriesResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupCategoriesResult : public ServiceResult { public: - struct Category + struct MonitorGroupCategories { struct CategoryItem { std::string category; int count; }; - std::vector categoryItems; + std::vector monitorGroupCategory; long groupId; }; - ListMyGroupCategoriesResult(); - explicit ListMyGroupCategoriesResult(const std::string &payload); - ~ListMyGroupCategoriesResult(); - Category getCategory()const; - int getErrorCode()const; - std::string getErrorMessage()const; + DescribeMonitorGroupCategoriesResult(); + explicit DescribeMonitorGroupCategoriesResult(const std::string &payload); + ~DescribeMonitorGroupCategoriesResult(); + std::string getMessage()const; + MonitorGroupCategories getMonitorGroupCategories()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: - Category category_; - int errorCode_; - std::string errorMessage_; + std::string message_; + MonitorGroupCategories monitorGroupCategories_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMYGROUPCATEGORIESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPCATEGORIESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupCategoriesRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesRequest.h similarity index 69% rename from cms/include/alibabacloud/cms/model/ListMyGroupCategoriesRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesRequest.h index 73eb908ca..14e714e07 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupCategoriesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMYGROUPCATEGORIESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMYGROUPCATEGORIESREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMyGroupCategoriesRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupDynamicRulesRequest : public RpcServiceRequest { public: - ListMyGroupCategoriesRequest(); - ~ListMyGroupCategoriesRequest(); + DescribeMonitorGroupDynamicRulesRequest(); + ~DescribeMonitorGroupDynamicRulesRequest(); long getGroupId()const; void setGroupId(long groupId); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMYGROUPCATEGORIESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesResult.h similarity index 71% rename from cms/include/alibabacloud/cms/model/ListGroupDynamicRuleResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesResult.h index cd94734dd..40faacea8 100644 --- a/cms/include/alibabacloud/cms/model/ListGroupDynamicRuleResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupDynamicRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULERESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListGroupDynamicRuleResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupDynamicRulesResult : public ServiceResult { public: struct ResourceItem @@ -47,30 +47,30 @@ namespace AlibabaCloud }; - ListGroupDynamicRuleResult(); - explicit ListGroupDynamicRuleResult(const std::string &payload); - ~ListGroupDynamicRuleResult(); + DescribeMonitorGroupDynamicRulesResult(); + 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 getErrorCode()const; - std::string getErrorMessage()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; int pageSize_; int pageNumber_; int total_; std::vector resource_; - int errorCode_; - std::string errorMessage_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTGROUPDYNAMICRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPDYNAMICRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeRequest.h similarity index 76% rename from cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeRequest.h index a971b9a1e..655ed8a36 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESDETAILSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESDETAILSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTEREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMyGroupInstancesDetailsRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupInstanceAttributeRequest : public RpcServiceRequest { public: - ListMyGroupInstancesDetailsRequest(); - ~ListMyGroupInstancesDetailsRequest(); + DescribeMonitorGroupInstanceAttributeRequest(); + ~DescribeMonitorGroupInstanceAttributeRequest(); long getGroupId()const; void setGroupId(long groupId); @@ -63,4 +63,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESDETAILSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeResult.h similarity index 73% rename from cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeResult.h index db2900981..f6a316bb9 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesDetailsResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstanceAttributeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESDETAILSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESDETAILSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTERESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMyGroupInstancesDetailsResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupInstanceAttributeResult : public ServiceResult { public: struct Resource @@ -58,34 +58,33 @@ namespace AlibabaCloud Region region; std::string dimension; std::vector tags; - long aliUid; }; - ListMyGroupInstancesDetailsResult(); - explicit ListMyGroupInstancesDetailsResult(const std::string &payload); - ~ListMyGroupInstancesDetailsResult(); + DescribeMonitorGroupInstanceAttributeResult(); + explicit DescribeMonitorGroupInstanceAttributeResult(const std::string &payload); + ~DescribeMonitorGroupInstanceAttributeResult(); + std::string getMessage()const; int getPageSize()const; int getPageNumber()const; int getTotal()const; std::vector getResources()const; - int getErrorCode()const; - std::string getErrorMessage()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; int pageSize_; int pageNumber_; int total_; std::vector resources_; - int errorCode_; - std::string errorMessage_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESDETAILSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCEATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesRequest.h similarity index 77% rename from cms/include/alibabacloud/cms/model/ListMyGroupInstancesRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesRequest.h index 9d0fc541f..7a0d6a83c 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESREQUEST_H_ #include #include @@ -28,19 +28,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMyGroupInstancesRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupInstancesRequest : public RpcServiceRequest { public: - ListMyGroupInstancesRequest(); - ~ListMyGroupInstancesRequest(); + DescribeMonitorGroupInstancesRequest(); + ~DescribeMonitorGroupInstancesRequest(); long getGroupId()const; void setGroupId(long groupId); int getPageNumber()const; void setPageNumber(int pageNumber); - bool getTotal()const; - void setTotal(bool total); std::string getInstanceIds()const; void setInstanceIds(const std::string& instanceIds); int getPageSize()const; @@ -53,7 +51,6 @@ namespace AlibabaCloud private: long groupId_; int pageNumber_; - bool total_; std::string instanceIds_; int pageSize_; std::string category_; @@ -63,4 +60,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesResult.h similarity index 70% rename from cms/include/alibabacloud/cms/model/ListMyGroupInstancesResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesResult.h index a5b404f96..08b8e549f 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupInstancesResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupInstancesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMyGroupInstancesResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupInstancesResult : public ServiceResult { public: struct Resource @@ -39,34 +39,33 @@ namespace AlibabaCloud std::string instanceId; long id; std::string regionId; - long aliUid; }; - ListMyGroupInstancesResult(); - explicit ListMyGroupInstancesResult(const std::string &payload); - ~ListMyGroupInstancesResult(); + DescribeMonitorGroupInstancesResult(); + explicit DescribeMonitorGroupInstancesResult(const std::string &payload); + ~DescribeMonitorGroupInstancesResult(); + std::string getMessage()const; int getPageSize()const; int getPageNumber()const; int getTotal()const; std::vector getResources()const; - int getErrorCode()const; - std::string getErrorMessage()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; int pageSize_; int pageNumber_; int total_; std::vector resources_; - int errorCode_; - std::string errorMessage_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMYGROUPINSTANCESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPINSTANCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListRequest.h new file mode 100644 index 000000000..e4c02d35e --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListRequest.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_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupNotifyPolicyListRequest : public RpcServiceRequest + { + + public: + DescribeMonitorGroupNotifyPolicyListRequest(); + ~DescribeMonitorGroupNotifyPolicyListRequest(); + + std::string getPolicyType()const; + void setPolicyType(const std::string& policyType); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + + private: + std::string policyType_; + std::string groupId_; + int pageNumber_; + int pageSize_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListNotifyPolicyResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListResult.h similarity index 73% rename from cms/include/alibabacloud/cms/model/ListNotifyPolicyResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListResult.h index ccbdcc672..26aee0f9b 100644 --- a/cms/include/alibabacloud/cms/model/ListNotifyPolicyResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupNotifyPolicyListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTNOTIFYPOLICYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTNOTIFYPOLICYRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTRESULT_H_ #include #include @@ -29,24 +29,22 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListNotifyPolicyResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupNotifyPolicyListResult : public ServiceResult { public: struct NotifyPolicy { std::string type; - std::string alertName; long endTime; long startTime; - std::string dimensions; std::string id; std::string groupId; }; - ListNotifyPolicyResult(); - explicit ListNotifyPolicyResult(const std::string &payload); - ~ListNotifyPolicyResult(); + DescribeMonitorGroupNotifyPolicyListResult(); + explicit DescribeMonitorGroupNotifyPolicyListResult(const std::string &payload); + ~DescribeMonitorGroupNotifyPolicyListResult(); std::vector getNotifyPolicyList()const; std::string getMessage()const; int getTotal()const; @@ -66,4 +64,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTNOTIFYPOLICYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPNOTIFYPOLICYLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupsRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h similarity index 69% rename from cms/include/alibabacloud/cms/model/ListMyGroupsRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h index e4f8a96d2..0dc8eace4 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupsRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMYGROUPSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMYGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSREQUEST_H_ #include #include @@ -28,42 +28,50 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMyGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupsRequest : public RpcServiceRequest { + struct Tag + { + std::string value; + std::string key; + }; public: - ListMyGroupsRequest(); - ~ListMyGroupsRequest(); + DescribeMonitorGroupsRequest(); + ~DescribeMonitorGroupsRequest(); bool getSelectContactGroups()const; void setSelectContactGroups(bool selectContactGroups); + bool getIncludeTemplateHistory()const; + void setIncludeTemplateHistory(bool includeTemplateHistory); std::string getType()const; void setType(const std::string& type); std::string getGroupName()const; void setGroupName(const std::string& groupName); int getPageNumber()const; void setPageNumber(int pageNumber); - std::string getBindUrls()const; - void setBindUrls(const std::string& bindUrls); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); int getPageSize()const; void setPageSize(int pageSize); + std::vector getTag()const; + void setTag(const std::vector& tag); std::string getKeyword()const; void setKeyword(const std::string& keyword); private: bool selectContactGroups_; + bool includeTemplateHistory_; std::string type_; std::string groupName_; int pageNumber_; - std::string bindUrls_; std::string instanceId_; int pageSize_; + std::vector tag_; std::string keyword_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMYGROUPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListMyGroupsResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsResult.h similarity index 69% rename from cms/include/alibabacloud/cms/model/ListMyGroupsResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitorGroupsResult.h index fcd545276..53c434a4b 100644 --- a/cms/include/alibabacloud/cms/model/ListMyGroupsResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitorGroupsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTMYGROUPSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTMYGROUPSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListMyGroupsResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitorGroupsResult : public ServiceResult { public: struct Resource @@ -38,42 +38,48 @@ namespace AlibabaCloud { std::string name; }; + struct Tag + { + std::string value; + std::string key; + }; std::string groupName; std::vector contactGroups; std::string type; long gmtCreate; std::string bindUrl; long gmtModified; - std::string bindUrls; + std::vector templateIds; + std::vector tags; long groupId; std::string serviceId; }; - ListMyGroupsResult(); - explicit ListMyGroupsResult(const std::string &payload); - ~ListMyGroupsResult(); + DescribeMonitorGroupsResult(); + explicit DescribeMonitorGroupsResult(const std::string &payload); + ~DescribeMonitorGroupsResult(); + std::string getMessage()const; int getPageSize()const; int getPageNumber()const; int getTotal()const; std::vector getResources()const; - int getErrorCode()const; - std::string getErrorMessage()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; int pageSize_; int pageNumber_; int total_; std::vector resources_; - int errorCode_; - std::string errorMessage_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTMYGROUPSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORGROUPSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableAlarmRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyRequest.h similarity index 67% rename from cms/include/alibabacloud/cms/model/DisableAlarmRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyRequest.h index f16caacac..ac0c78a18 100644 --- a/cms/include/alibabacloud/cms/model/DisableAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEALARMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEALARMREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYREQUEST_H_ #include #include @@ -28,21 +28,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DisableAlarmRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentAccessKeyRequest : public RpcServiceRequest { public: - DisableAlarmRequest(); - ~DisableAlarmRequest(); + DescribeMonitoringAgentAccessKeyRequest(); + ~DescribeMonitoringAgentAccessKeyRequest(); - std::string getId()const; - void setId(const std::string& id); private: - std::string id_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEALARMREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/AccessKeyGetResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyResult.h similarity index 65% rename from cms/include/alibabacloud/cms/model/AccessKeyGetResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyResult.h index d3b2fb57f..ae800d4b3 100644 --- a/cms/include/alibabacloud/cms/model/AccessKeyGetResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentAccessKeyResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ACCESSKEYGETRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_ACCESSKEYGETRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYRESULT_H_ #include #include @@ -29,33 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT AccessKeyGetResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentAccessKeyResult : public ServiceResult { public: - AccessKeyGetResult(); - explicit AccessKeyGetResult(const std::string &payload); - ~AccessKeyGetResult(); + DescribeMonitoringAgentAccessKeyResult(); + explicit DescribeMonitoringAgentAccessKeyResult(const std::string &payload); + ~DescribeMonitoringAgentAccessKeyResult(); std::string getSecretKey()const; - long getUserId()const; - int getErrorCode()const; + std::string getMessage()const; std::string getAccessKey()const; - std::string getErrorMessage()const; + int getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: std::string secretKey_; - long userId_; - int errorCode_; + std::string message_; std::string accessKey_; - std::string errorMessage_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ACCESSKEYGETRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTACCESSKEYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteAlarmRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigRequest.h similarity index 68% rename from cms/include/alibabacloud/cms/model/DeleteAlarmRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigRequest.h index c2eb5bb76..b86e35d2a 100644 --- a/cms/include/alibabacloud/cms/model/DeleteAlarmRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEALARMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEALARMREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGREQUEST_H_ #include #include @@ -28,21 +28,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteAlarmRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentConfigRequest : public RpcServiceRequest { public: - DeleteAlarmRequest(); - ~DeleteAlarmRequest(); + DescribeMonitoringAgentConfigRequest(); + ~DescribeMonitoringAgentConfigRequest(); - std::string getId()const; - void setId(const std::string& id); private: - std::string id_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEALARMREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ProfileGetResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigResult.h similarity index 67% rename from cms/include/alibabacloud/cms/model/ProfileGetResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigResult.h index ca1a557b5..f834ae4f5 100644 --- a/cms/include/alibabacloud/cms/model/ProfileGetResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentConfigResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PROFILEGETRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_PROFILEGETRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGRESULT_H_ #include #include @@ -29,20 +29,19 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ProfileGetResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentConfigResult : public ServiceResult { public: - ProfileGetResult(); - explicit ProfileGetResult(const std::string &payload); - ~ProfileGetResult(); + DescribeMonitoringAgentConfigResult(); + explicit DescribeMonitoringAgentConfigResult(const std::string &payload); + ~DescribeMonitoringAgentConfigResult(); bool getAutoInstall()const; std::string getEnableActiveAlert()const; bool getEnableInstallAgentNewECS()const; - long getUserId()const; - int getErrorCode()const; - std::string getErrorMessage()const; + std::string getMessage()const; + std::string getCode()const; bool getSuccess()const; protected: @@ -51,13 +50,12 @@ namespace AlibabaCloud bool autoInstall_; std::string enableActiveAlert_; bool enableInstallAgentNewECS_; - long userId_; - int errorCode_; - std::string errorMessage_; + std::string message_; + std::string code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PROFILEGETRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTCONFIGRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h similarity index 77% rename from cms/include/alibabacloud/cms/model/NodeListRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h index b227b690e..d6d1dae6a 100644 --- a/cms/include/alibabacloud/cms/model/NodeListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODELISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_NODELISTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSREQUEST_H_ #include #include @@ -28,15 +28,13 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeListRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentHostsRequest : public RpcServiceRequest { public: - NodeListRequest(); - ~NodeListRequest(); + DescribeMonitoringAgentHostsRequest(); + ~DescribeMonitoringAgentHostsRequest(); - long getUserId()const; - void setUserId(long userId); std::string getSerialNumbers()const; void setSerialNumbers(const std::string& serialNumbers); int getPageNumber()const; @@ -51,11 +49,8 @@ namespace AlibabaCloud void setPageSize(int pageSize); std::string getKeyWord()const; void setKeyWord(const std::string& keyWord); - std::string getStatus()const; - void setStatus(const std::string& status); private: - long userId_; std::string serialNumbers_; int pageNumber_; std::string hostName_; @@ -63,10 +58,9 @@ namespace AlibabaCloud std::string instanceRegionId_; int pageSize_; std::string keyWord_; - std::string status_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODELISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeListResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsResult.h similarity index 66% rename from cms/include/alibabacloud/cms/model/NodeListResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsResult.h index 46bbc4117..e246142f1 100644 --- a/cms/include/alibabacloud/cms/model/NodeListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentHostsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODELISTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_NODELISTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSRESULT_H_ #include #include @@ -29,18 +29,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeListResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentHostsResult : public ServiceResult { public: - struct Node + struct Host { std::string operatingSystem; - std::string tianjimonVersion; std::string instanceId; + std::string agentVersion; std::string instanceTypeFamily; + bool isAliyunHost; std::string natIp; std::string serialNumber; - bool aliyunHost; std::string networkType; std::string eipAddress; std::string region; @@ -51,32 +51,28 @@ namespace AlibabaCloud }; - NodeListResult(); - explicit NodeListResult(const std::string &payload); - ~NodeListResult(); - int getPageSize()const; - int getPageNumber()const; + DescribeMonitoringAgentHostsResult(); + explicit DescribeMonitoringAgentHostsResult(const std::string &payload); + ~DescribeMonitoringAgentHostsResult(); + std::vector getHosts()const; + std::string getMessage()const; int getPageTotal()const; int getTotal()const; - int getErrorCode()const; - std::string getErrorMessage()const; - std::vector getNodes()const; + std::string getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: - int pageSize_; - int pageNumber_; + std::vector hosts_; + std::string message_; int pageTotal_; int total_; - int errorCode_; - std::string errorMessage_; - std::vector nodes_; + std::string code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODELISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTHOSTSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeUninstallRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesRequest.h similarity index 70% rename from cms/include/alibabacloud/cms/model/NodeUninstallRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesRequest.h index 2bed3691c..b24469e4e 100644 --- a/cms/include/alibabacloud/cms/model/NodeUninstallRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODEUNINSTALLREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEUNINSTALLREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeUninstallRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentProcessesRequest : public RpcServiceRequest { public: - NodeUninstallRequest(); - ~NodeUninstallRequest(); + DescribeMonitoringAgentProcessesRequest(); + ~DescribeMonitoringAgentProcessesRequest(); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODEUNINSTALLREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeProcessesResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesResult.h similarity index 65% rename from cms/include/alibabacloud/cms/model/NodeProcessesResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesResult.h index 0d8091473..b6b66c940 100644 --- a/cms/include/alibabacloud/cms/model/NodeProcessesResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentProcessesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODEPROCESSESRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEPROCESSESRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeProcessesResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentProcessesResult : public ServiceResult { public: struct NodeProcess @@ -38,29 +38,29 @@ namespace AlibabaCloud std::string instanceId; std::string command; std::string processUser; - long id; - std::string name; + long processId; + std::string groupId; }; - NodeProcessesResult(); - explicit NodeProcessesResult(const std::string &payload); - ~NodeProcessesResult(); + DescribeMonitoringAgentProcessesResult(); + explicit DescribeMonitoringAgentProcessesResult(const std::string &payload); + ~DescribeMonitoringAgentProcessesResult(); + std::string getMessage()const; std::vector getNodeProcesses()const; - int getErrorCode()const; - std::string getErrorMessage()const; + std::string getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; std::vector nodeProcesses_; - int errorCode_; - std::string errorMessage_; + std::string code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODEPROCESSESRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTPROCESSESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeStatusListRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesRequest.h similarity index 70% rename from cms/include/alibabacloud/cms/model/NodeStatusListRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesRequest.h index 1448832f0..1b5c2dae1 100644 --- a/cms/include/alibabacloud/cms/model/NodeStatusListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODESTATUSLISTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_NODESTATUSLISTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeStatusListRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentStatusesRequest : public RpcServiceRequest { public: - NodeStatusListRequest(); - ~NodeStatusListRequest(); + DescribeMonitoringAgentStatusesRequest(); + ~DescribeMonitoringAgentStatusesRequest(); std::string getInstanceIds()const; void setInstanceIds(const std::string& instanceIds); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODESTATUSLISTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeStatusListResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesResult.h similarity index 66% rename from cms/include/alibabacloud/cms/model/NodeStatusListResult.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesResult.h index f1ce96997..2a06c2ed0 100644 --- a/cms/include/alibabacloud/cms/model/NodeStatusListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringAgentStatusesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODESTATUSLISTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_NODESTATUSLISTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeStatusListResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringAgentStatusesResult : public ServiceResult { public: struct NodeStatus @@ -40,24 +40,24 @@ namespace AlibabaCloud }; - NodeStatusListResult(); - explicit NodeStatusListResult(const std::string &payload); - ~NodeStatusListResult(); + DescribeMonitoringAgentStatusesResult(); + explicit DescribeMonitoringAgentStatusesResult(const std::string &payload); + ~DescribeMonitoringAgentStatusesResult(); + std::string getMessage()const; std::vector getNodeStatusList()const; - int getErrorCode()const; - std::string getErrorMessage()const; + std::string getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; std::vector nodeStatusList_; - int errorCode_; - std::string errorMessage_; + std::string code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODESTATUSLISTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGAGENTSTATUSESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryTaskConfigRequest.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringConfigRequest.h similarity index 70% rename from cms/include/alibabacloud/cms/model/QueryTaskConfigRequest.h rename to cms/include/alibabacloud/cms/model/DescribeMonitoringConfigRequest.h index f6f19414e..dc10177b0 100644 --- a/cms/include/alibabacloud/cms/model/QueryTaskConfigRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringConfigRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryTaskConfigRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringConfigRequest : public RpcServiceRequest { public: - QueryTaskConfigRequest(); - ~QueryTaskConfigRequest(); + DescribeMonitoringConfigRequest(); + ~DescribeMonitoringConfigRequest(); private: @@ -42,4 +42,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeMonitoringConfigResult.h b/cms/include/alibabacloud/cms/model/DescribeMonitoringConfigResult.h new file mode 100644 index 000000000..43077521c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeMonitoringConfigResult.h @@ -0,0 +1,59 @@ +/* + * 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_DESCRIBEMONITORINGCONFIGRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeMonitoringConfigResult : public ServiceResult + { + public: + + + DescribeMonitoringConfigResult(); + explicit DescribeMonitoringConfigResult(const std::string &payload); + ~DescribeMonitoringConfigResult(); + bool getAutoInstall()const; + bool getEnableInstallAgentNewECS()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + bool autoInstall_; + bool enableInstallAgentNewECS_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEMONITORINGCONFIGRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleRequest.h new file mode 100644 index 000000000..f44fe0180 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleRequest.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_DESCRIBEPRODUCTSOFACTIVEMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeProductsOfActiveMetricRuleRequest : public RpcServiceRequest + { + + public: + DescribeProductsOfActiveMetricRuleRequest(); + ~DescribeProductsOfActiveMetricRuleRequest(); + + + private: + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutMetricAlarmResult.h b/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleResult.h similarity index 67% rename from cms/include/alibabacloud/cms/model/PutMetricAlarmResult.h rename to cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleResult.h index 176d4f704..9efa6e317 100644 --- a/cms/include/alibabacloud/cms/model/PutMetricAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeProductsOfActiveMetricRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULERESULT_H_ #include #include @@ -29,17 +29,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT PutMetricAlarmResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeProductsOfActiveMetricRuleResult : public ServiceResult { public: - PutMetricAlarmResult(); - explicit PutMetricAlarmResult(const std::string &payload); - ~PutMetricAlarmResult(); + DescribeProductsOfActiveMetricRuleResult(); + explicit DescribeProductsOfActiveMetricRuleResult(const std::string &payload); + ~DescribeProductsOfActiveMetricRuleResult(); std::string getMessage()const; std::string getDatapoints()const; - std::string getCode()const; + int getCode()const; bool getSuccess()const; protected: @@ -47,11 +47,11 @@ namespace AlibabaCloud private: std::string message_; std::string datapoints_; - std::string code_; + int code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPRODUCTSOFACTIVEMETRICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryProjectMetaRequest.h b/cms/include/alibabacloud/cms/model/DescribeProjectMetaRequest.h similarity index 76% rename from cms/include/alibabacloud/cms/model/QueryProjectMetaRequest.h rename to cms/include/alibabacloud/cms/model/DescribeProjectMetaRequest.h index 2c3943d5b..14612c91b 100644 --- a/cms/include/alibabacloud/cms/model/QueryProjectMetaRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeProjectMetaRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETAREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETAREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryProjectMetaRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeProjectMetaRequest : public RpcServiceRequest { public: - QueryProjectMetaRequest(); - ~QueryProjectMetaRequest(); + DescribeProjectMetaRequest(); + ~DescribeProjectMetaRequest(); int getPageSize()const; void setPageSize(int pageSize); @@ -51,4 +51,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETAREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryProjectMetaResult.h b/cms/include/alibabacloud/cms/model/DescribeProjectMetaResult.h similarity index 61% rename from cms/include/alibabacloud/cms/model/QueryProjectMetaResult.h rename to cms/include/alibabacloud/cms/model/DescribeProjectMetaResult.h index 4cba3882b..8c8d41093 100644 --- a/cms/include/alibabacloud/cms/model/QueryProjectMetaResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeProjectMetaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETARESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETARESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETARESULT_H_ #include #include @@ -29,35 +29,41 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryProjectMetaResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeProjectMetaResult : public ServiceResult { public: struct Resource { - std::string project; std::string description; + std::string _namespace; std::string labels; }; - QueryProjectMetaResult(); - explicit QueryProjectMetaResult(const std::string &payload); - ~QueryProjectMetaResult(); + DescribeProjectMetaResult(); + explicit DescribeProjectMetaResult(const std::string &payload); + ~DescribeProjectMetaResult(); + std::string getMessage()const; + std::string getPageSize()const; + std::string getPageNumber()const; + std::string getTotal()const; std::vector getResources()const; - std::string getErrorCode()const; - std::string getErrorMessage()const; + std::string getCode()const; bool getSuccess()const; protected: void parse(const std::string &payload); private: + std::string message_; + std::string pageSize_; + std::string pageNumber_; + std::string total_; std::vector resources_; - std::string errorCode_; - std::string errorMessage_; + std::string code_; bool success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYPROJECTMETARESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEPROJECTMETARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTaskDetailRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeRequest.h similarity index 66% rename from cms/include/alibabacloud/cms/model/DescribeTaskDetailRequest.h rename to cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeRequest.h index c1f2b5125..6af069017 100644 --- a/cms/include/alibabacloud/cms/model/DescribeTaskDetailRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTEREQUEST_H_ #include #include @@ -28,21 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeTaskDetailRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorAttributeRequest : public RpcServiceRequest { public: - DescribeTaskDetailRequest(); - ~DescribeTaskDetailRequest(); + DescribeSiteMonitorAttributeRequest(); + ~DescribeSiteMonitorAttributeRequest(); + bool getIncludeAlert()const; + void setIncludeAlert(bool includeAlert); std::string getTaskId()const; void setTaskId(const std::string& taskId); private: + bool includeAlert_; std::string taskId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETASKDETAILREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeResult.h new file mode 100644 index 000000000..4ddc2e00b --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorAttributeResult.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_DESCRIBESITEMONITORATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorAttributeResult : public ServiceResult + { + public: + struct SiteMonitors + { + struct IspCity + { + std::string ispName; + std::string isp; + std::string cityName; + std::string city; + }; + std::string optionJson; + std::string taskId; + std::string address; + std::string taskName; + std::string taskType; + std::vector ispCities; + std::string taskState; + std::string interval; + }; + struct MetricRule + { + std::string comparisonOperator; + std::string ruleId; + std::string period; + std::string evaluationCount; + std::string dimensions; + std::string _namespace; + std::string statistics; + std::string alarmActions; + std::string metricName; + std::string okActions; + std::string expression; + std::string actionEnable; + std::string stateValue; + std::string level; + std::string ruleName; + std::string threshold; + }; + + + DescribeSiteMonitorAttributeResult(); + explicit DescribeSiteMonitorAttributeResult(const std::string &payload); + ~DescribeSiteMonitorAttributeResult(); + std::vector getMetricRules()const; + std::string getMessage()const; + std::string getCode()const; + SiteMonitors getSiteMonitors()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector metricRules_; + std::string message_; + std::string code_; + SiteMonitors siteMonitors_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataRequest.h similarity index 76% rename from cms/include/alibabacloud/cms/model/QueryTaskMonitorDataRequest.h rename to cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataRequest.h index ae038d2fb..46bf567d9 100644 --- a/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATAREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATAREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATAREQUEST_H_ #include #include @@ -28,42 +28,42 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryTaskMonitorDataRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorDataRequest : public RpcServiceRequest { public: - QueryTaskMonitorDataRequest(); - ~QueryTaskMonitorDataRequest(); + DescribeSiteMonitorDataRequest(); + ~DescribeSiteMonitorDataRequest(); - std::string getCursor()const; - void setCursor(const std::string& cursor); - std::string getStartTime()const; - void setStartTime(const std::string& startTime); - std::string getType()const; - void setType(const std::string& type); - std::string getMetricName()const; - void setMetricName(const std::string& metricName); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); std::string getPeriod()const; void setPeriod(const std::string& period); int getLength()const; void setLength(int length); std::string getEndTime()const; void setEndTime(const std::string& endTime); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getType()const; + void setType(const std::string& type); + std::string getNextToken()const; + void setNextToken(const std::string& nextToken); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); private: - std::string cursor_; - std::string startTime_; - std::string type_; - std::string metricName_; - std::string taskId_; std::string period_; int length_; std::string endTime_; + std::string startTime_; + std::string type_; + std::string nextToken_; + std::string metricName_; + std::string taskId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATAREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATAREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateTaskResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataResult.h similarity index 70% rename from cms/include/alibabacloud/cms/model/CreateTaskResult.h rename to cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataResult.h index e3055245f..528ae2b12 100644 --- a/cms/include/alibabacloud/cms/model/CreateTaskResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorDataResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_CREATETASKRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATETASKRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATARESULT_H_ #include #include @@ -29,31 +29,31 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT CreateTaskResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorDataResult : public ServiceResult { public: - CreateTaskResult(); - explicit CreateTaskResult(const std::string &payload); - ~CreateTaskResult(); + DescribeSiteMonitorDataResult(); + explicit DescribeSiteMonitorDataResult(const std::string &payload); + ~DescribeSiteMonitorDataResult(); std::string getMessage()const; + std::string getNextToken()const; std::string getData()const; std::string getCode()const; std::string getSuccess()const; - std::string getAlertRule()const; protected: void parse(const std::string &payload); private: std::string message_; + std::string nextToken_; std::string data_; std::string code_; std::string success_; - std::string alertRule_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_CREATETASKRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORDATARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h index a54fae0f2..11b1a0007 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListRequest.h @@ -35,14 +35,14 @@ namespace AlibabaCloud DescribeSiteMonitorISPCityListRequest(); ~DescribeSiteMonitorISPCityListRequest(); - std::string getCity()const; - void setCity(const std::string& city); - std::string getIsp()const; - void setIsp(const std::string& isp); + std::string getCity()const; + void setCity(const std::string& city); + std::string getIsp()const; + void setIsp(const std::string& isp); private: - std::string city_; - std::string isp_; + std::string city_; + std::string isp_; }; } diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h index 2a9525175..ef78d1057 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPCityListResult.h @@ -35,11 +35,15 @@ namespace AlibabaCloud struct IspCity { std::string ispNamezh_CN; + std::string ispNameen; std::string cityNamezh_CN; std::string isp; std::string regionzh_CN; std::string countryzh_CN; + std::string cityNameen; + std::string regionen; std::string city; + std::string countryen; }; diff --git a/cms/include/alibabacloud/cms/model/DescribeTasksRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorListRequest.h similarity index 78% rename from cms/include/alibabacloud/cms/model/DescribeTasksRequest.h rename to cms/include/alibabacloud/cms/model/DescribeSiteMonitorListRequest.h index 76df931e5..2f2e6086f 100644 --- a/cms/include/alibabacloud/cms/model/DescribeTasksRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeTasksRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorListRequest : public RpcServiceRequest { public: - DescribeTasksRequest(); - ~DescribeTasksRequest(); + DescribeSiteMonitorListRequest(); + ~DescribeSiteMonitorListRequest(); std::string getTaskType()const; void setTaskType(const std::string& taskType); @@ -57,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTasksResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorListResult.h similarity index 61% rename from cms/include/alibabacloud/cms/model/DescribeTasksResult.h rename to cms/include/alibabacloud/cms/model/DescribeSiteMonitorListResult.h index bcd4061d6..315f6c872 100644 --- a/cms/include/alibabacloud/cms/model/DescribeTasksResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTRESULT_H_ #include #include @@ -29,20 +29,32 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeTasksResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorListResult : public ServiceResult { public: + struct SiteMonitor + { + std::string taskId; + std::string address; + std::string taskName; + std::string optionsJson; + std::string taskType; + std::string createTime; + std::string updateTime; + std::string taskState; + std::string interval; + }; - DescribeTasksResult(); - explicit DescribeTasksResult(const std::string &payload); - ~DescribeTasksResult(); + DescribeSiteMonitorListResult(); + explicit DescribeSiteMonitorListResult(const std::string &payload); + ~DescribeSiteMonitorListResult(); int getTotalCount()const; std::string getMessage()const; int getPageSize()const; int getPageNumber()const; - std::string getData()const; std::string getCode()const; + std::vector getSiteMonitors()const; std::string getSuccess()const; protected: @@ -52,12 +64,12 @@ namespace AlibabaCloud std::string message_; int pageSize_; int pageNumber_; - std::string data_; std::string code_; + std::vector siteMonitors_; std::string success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETASKSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ProfileGetRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaRequest.h similarity index 70% rename from cms/include/alibabacloud/cms/model/ProfileGetRequest.h rename to cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaRequest.h index f94c98fb2..d76306630 100644 --- a/cms/include/alibabacloud/cms/model/ProfileGetRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PROFILEGETREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PROFILEGETREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTAREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTAREQUEST_H_ #include #include @@ -28,21 +28,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ProfileGetRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorQuotaRequest : public RpcServiceRequest { public: - ProfileGetRequest(); - ~ProfileGetRequest(); + DescribeSiteMonitorQuotaRequest(); + ~DescribeSiteMonitorQuotaRequest(); - long getUserId()const; - void setUserId(long userId); private: - long userId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PROFILEGETREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTAREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h similarity index 64% rename from cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityResult.h rename to cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h index 2ddd36cd5..bc2f159a4 100644 --- a/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorQuotaResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTARESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTARESULT_H_ #include #include @@ -29,16 +29,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryStaticsAvailabilityResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorQuotaResult : public ServiceResult { public: + struct Data + { + std::string siteMonitorVersion; + int siteMonitorQuotaTaskUsed; + int siteMonitorOperatorQuotaQuota; + int siteMonitorTaskQuota; + int siteMonitorIdcQuota; + }; - QueryStaticsAvailabilityResult(); - explicit QueryStaticsAvailabilityResult(const std::string &payload); - ~QueryStaticsAvailabilityResult(); + DescribeSiteMonitorQuotaResult(); + explicit DescribeSiteMonitorQuotaResult(const std::string &payload); + ~DescribeSiteMonitorQuotaResult(); std::string getMessage()const; - std::string getData()const; + Data getData()const; std::string getCode()const; std::string getSuccess()const; @@ -46,7 +54,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - std::string data_; + Data data_; std::string code_; std::string success_; @@ -54,4 +62,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORQUOTARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsRequest.h similarity index 62% rename from cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityRequest.h rename to cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsRequest.h index 53220d94b..9f3a31361 100644 --- a/cms/include/alibabacloud/cms/model/QueryStaticsAvailabilityRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSREQUEST_H_ #include #include @@ -28,24 +28,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryStaticsAvailabilityRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorStatisticsRequest : public RpcServiceRequest { public: - QueryStaticsAvailabilityRequest(); - ~QueryStaticsAvailabilityRequest(); + DescribeSiteMonitorStatisticsRequest(); + ~DescribeSiteMonitorStatisticsRequest(); std::string getTimeRange()const; void setTimeRange(const std::string& timeRange); + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); std::string getTaskId()const; void setTaskId(const std::string& taskId); private: std::string timeRange_; + std::string startTime_; + std::string metricName_; std::string taskId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSAVAILABILITYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsResult.h b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsResult.h new file mode 100644 index 000000000..e5b1d4be8 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeSiteMonitorStatisticsResult.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_DESCRIBESITEMONITORSTATISTICSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorStatisticsResult : public ServiceResult + { + public: + + + DescribeSiteMonitorStatisticsResult(); + explicit DescribeSiteMonitorStatisticsResult(const std::string &payload); + ~DescribeSiteMonitorStatisticsResult(); + std::string getMessage()const; + long getData()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + long data_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORSTATISTICSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeAlarmHistoryRequest.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeRequest.h similarity index 51% rename from cms/include/alibabacloud/cms/model/DescribeAlarmHistoryRequest.h rename to cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeRequest.h index 9e4965347..a12246cdc 100644 --- a/cms/include/alibabacloud/cms/model/DescribeAlarmHistoryRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMHISTORYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMHISTORYREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTEREQUEST_H_ #include #include @@ -28,60 +28,51 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeAlarmHistoryRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventAttributeRequest : public RpcServiceRequest { public: - DescribeAlarmHistoryRequest(); - ~DescribeAlarmHistoryRequest(); + DescribeSystemEventAttributeRequest(); + ~DescribeSystemEventAttributeRequest(); - std::string getAlertName()const; - void setAlertName(const std::string& alertName); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); std::string getStartTime()const; void setStartTime(const std::string& startTime); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - bool getOnlyCount()const; - void setOnlyCount(bool onlyCount); + 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 getState()const; - void setState(const std::string& state); - 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); std::string getEndTime()const; void setEndTime(const std::string& endTime); - bool getAscending()const; - void setAscending(bool ascending); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - int getPage()const; - void setPage(int page); + std::string getName()const; + void setName(const std::string& name); + std::string getEventType()const; + void setEventType(const std::string& eventType); std::string getStatus()const; void setStatus(const std::string& status); private: - std::string alertName_; - std::string ruleName_; std::string startTime_; - std::string accessKeyId_; - bool onlyCount_; + std::string searchKeywords_; + int pageNumber_; int pageSize_; - std::string state_; - std::string metricName_; + std::string product_; + std::string level_; std::string groupId_; std::string endTime_; - bool ascending_; - std::string _namespace_; - int page_; + std::string name_; + std::string eventType_; std::string status_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALARMHISTORYREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h similarity index 57% rename from cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.h rename to cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h index df7eb1d51..101f94290 100644 --- a/cms/include/alibabacloud/cms/model/DescribeSiteMonitorISPAreaCityResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventAttributeResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTERESULT_H_ #include #include @@ -29,40 +29,43 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeSiteMonitorISPAreaCityResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventAttributeResult : public ServiceResult { public: - struct IspCity + struct SystemEvent { - std::string ispName; - std::string isp; - std::string country; - std::string region; - std::string city; - std::string cityName; + std::string status; + std::string instanceName; + std::string resourceId; + std::string content; + long num; + std::string product; + std::string level; + long time; + std::string regionId; + std::string name; + std::string groupId; }; - DescribeSiteMonitorISPAreaCityResult(); - explicit DescribeSiteMonitorISPAreaCityResult(const std::string &payload); - ~DescribeSiteMonitorISPAreaCityResult(); + DescribeSystemEventAttributeResult(); + explicit DescribeSystemEventAttributeResult(const std::string &payload); + ~DescribeSystemEventAttributeResult(); + std::vector getSystemEvents()const; std::string getMessage()const; - std::string getData()const; std::string getCode()const; - std::vector getIspCityList()const; std::string getSuccess()const; protected: void parse(const std::string &payload); private: + std::vector systemEvents_; std::string message_; - std::string data_; std::string code_; - std::vector ispCityList_; std::string success_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESITEMONITORISPAREACITYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTATTRIBUTERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventCountRequest.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventCountRequest.h new file mode 100644 index 000000000..7243ac051 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventCountRequest.h @@ -0,0 +1,72 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventCountRequest : public RpcServiceRequest + { + + public: + DescribeSystemEventCountRequest(); + ~DescribeSystemEventCountRequest(); + + std::string getStartTime()const; + void setStartTime(const std::string& startTime); + std::string getSearchKeywords()const; + void setSearchKeywords(const std::string& searchKeywords); + 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); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getName()const; + void setName(const std::string& name); + std::string getEventType()const; + void setEventType(const std::string& eventType); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string startTime_; + std::string searchKeywords_; + std::string product_; + std::string level_; + std::string groupId_; + std::string endTime_; + std::string name_; + std::string eventType_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeResult.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventCountResult.h similarity index 58% rename from cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeResult.h rename to cms/include/alibabacloud/cms/model/DescribeSystemEventCountResult.h index d1fb85b15..6539464fd 100644 --- a/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventCountResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMERESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTRESULT_H_ #include #include @@ -29,16 +29,30 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryStaticsResponseTimeResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventCountResult : public ServiceResult { public: + struct SystemEventCount + { + std::string status; + std::string instanceName; + std::string resourceId; + std::string content; + long num; + std::string product; + std::string level; + long time; + std::string regionId; + std::string name; + std::string groupId; + }; - QueryStaticsResponseTimeResult(); - explicit QueryStaticsResponseTimeResult(const std::string &payload); - ~QueryStaticsResponseTimeResult(); + DescribeSystemEventCountResult(); + explicit DescribeSystemEventCountResult(const std::string &payload); + ~DescribeSystemEventCountResult(); std::string getMessage()const; - std::string getData()const; + std::vector getSystemEventCounts()const; std::string getCode()const; std::string getSuccess()const; @@ -46,7 +60,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - std::string data_; + std::vector systemEventCounts_; std::string code_; std::string success_; @@ -54,4 +68,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTCOUNTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.h new file mode 100644 index 000000000..93260a2e3 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramRequest.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_DESCRIBESYSTEMEVENTHISTOGRAMREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventHistogramRequest : public RpcServiceRequest + { + + public: + DescribeSystemEventHistogramRequest(); + ~DescribeSystemEventHistogramRequest(); + + std::string getStartTime()const; + 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; + void setLevel(const std::string& level); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getEndTime()const; + void setEndTime(const std::string& endTime); + std::string getName()const; + void setName(const std::string& name); + std::string getEventType()const; + void setEventType(const std::string& eventType); + std::string getStatus()const; + void setStatus(const std::string& status); + + private: + std::string startTime_; + std::string searchKeywords_; + int pageNumber_; + int pageSize_; + std::string product_; + std::string level_; + std::string groupId_; + std::string endTime_; + std::string name_; + std::string eventType_; + std::string status_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramResult.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramResult.h new file mode 100644 index 000000000..d98ca0c58 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventHistogramResult.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_DESCRIBESYSTEMEVENTHISTOGRAMRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventHistogramResult : public ServiceResult + { + public: + struct SystemEventHistogram + { + long endTime; + long startTime; + long count; + }; + + + DescribeSystemEventHistogramResult(); + explicit DescribeSystemEventHistogramResult(const std::string &payload); + ~DescribeSystemEventHistogramResult(); + std::vector getSystemEventHistograms()const; + std::string getMessage()const; + std::string getCode()const; + std::string getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector systemEventHistograms_; + std::string message_; + std::string code_; + std::string success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTHISTOGRAMRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/AccessKeyGetRequest.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListRequest.h similarity index 69% rename from cms/include/alibabacloud/cms/model/AccessKeyGetRequest.h rename to cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListRequest.h index 3722b6456..71c3b9e67 100644 --- a/cms/include/alibabacloud/cms/model/AccessKeyGetRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ACCESSKEYGETREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ACCESSKEYGETREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTREQUEST_H_ #include #include @@ -28,21 +28,18 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT AccessKeyGetRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventMetaListRequest : public RpcServiceRequest { public: - AccessKeyGetRequest(); - ~AccessKeyGetRequest(); + DescribeSystemEventMetaListRequest(); + ~DescribeSystemEventMetaListRequest(); - long getUserId()const; - void setUserId(long userId); private: - long userId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ACCESSKEYGETREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeContactResult.h b/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListResult.h similarity index 61% rename from cms/include/alibabacloud/cms/model/DescribeContactResult.h rename to cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListResult.h index 986af4fad..e634ce18c 100644 --- a/cms/include/alibabacloud/cms/model/DescribeContactResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeSystemEventMetaListResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTRESULT_H_ #include #include @@ -29,26 +29,26 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeContactResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeSystemEventMetaListResult : public ServiceResult { public: - struct Datapoints + struct Resource { - struct Channel - { - std::string type; - std::string value; - }; - std::vector channels; + std::string status; + std::string statusDesc; + std::string nameDesc; + std::string eventType; + std::string product; + std::string level; std::string name; }; - DescribeContactResult(); - explicit DescribeContactResult(const std::string &payload); - ~DescribeContactResult(); + DescribeSystemEventMetaListResult(); + explicit DescribeSystemEventMetaListResult(const std::string &payload); + ~DescribeSystemEventMetaListResult(); std::string getMessage()const; - Datapoints getDatapoints()const; + std::vector getData()const; int getCode()const; bool getSuccess()const; @@ -56,7 +56,7 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - Datapoints datapoints_; + std::vector data_; int code_; bool success_; @@ -64,4 +64,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBECONTACTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBESYSTEMEVENTMETALISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListContactGroupRequest.h b/cms/include/alibabacloud/cms/model/DescribeTagKeyListRequest.h similarity index 75% rename from cms/include/alibabacloud/cms/model/ListContactGroupRequest.h rename to cms/include/alibabacloud/cms/model/DescribeTagKeyListRequest.h index 33757c91a..079290a16 100644 --- a/cms/include/alibabacloud/cms/model/ListContactGroupRequest.h +++ b/cms/include/alibabacloud/cms/model/DescribeTagKeyListRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTCONTACTGROUPREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTCONTACTGROUPREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListContactGroupRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DescribeTagKeyListRequest : public RpcServiceRequest { public: - ListContactGroupRequest(); - ~ListContactGroupRequest(); + DescribeTagKeyListRequest(); + ~DescribeTagKeyListRequest(); int getPageNumber()const; void setPageNumber(int pageNumber); @@ -48,4 +48,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTCONTACTGROUPREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTagKeyListResult.h b/cms/include/alibabacloud/cms/model/DescribeTagKeyListResult.h new file mode 100644 index 000000000..6a87a9a4f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeTagKeyListResult.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_DESCRIBETAGKEYLISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeTagKeyListResult : public ServiceResult + { + public: + + + DescribeTagKeyListResult(); + explicit DescribeTagKeyListResult(const std::string &payload); + ~DescribeTagKeyListResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getTagKeys()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector tagKeys_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETAGKEYLISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTagValueListRequest.h b/cms/include/alibabacloud/cms/model/DescribeTagValueListRequest.h new file mode 100644 index 000000000..8dfddf97f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeTagValueListRequest.h @@ -0,0 +1,54 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeTagValueListRequest : public RpcServiceRequest + { + + public: + DescribeTagValueListRequest(); + ~DescribeTagValueListRequest(); + + int getPageNumber()const; + void setPageNumber(int pageNumber); + int getPageSize()const; + void setPageSize(int pageSize); + std::string getTagKey()const; + void setTagKey(const std::string& tagKey); + + private: + int pageNumber_; + int pageSize_; + std::string tagKey_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeTagValueListResult.h b/cms/include/alibabacloud/cms/model/DescribeTagValueListResult.h new file mode 100644 index 000000000..6ccc27b3c --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeTagValueListResult.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_DESCRIBETAGVALUELISTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeTagValueListResult : public ServiceResult + { + public: + + + DescribeTagValueListResult(); + explicit DescribeTagValueListResult(const std::string &payload); + ~DescribeTagValueListResult(); + std::string getMessage()const; + std::string getCode()const; + std::vector getTagValues()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::string code_; + std::vector tagValues_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBETAGVALUELISTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityRequest.h new file mode 100644 index 000000000..97fb67849 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityRequest.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_DESCRIBEUNHEALTHYHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DescribeUnhealthyHostAvailabilityRequest : public RpcServiceRequest + { + + public: + DescribeUnhealthyHostAvailabilityRequest(); + ~DescribeUnhealthyHostAvailabilityRequest(); + + std::vector getId()const; + void setId(const std::vector& id); + + private: + std::vector id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyResult.h b/cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityResult.h similarity index 65% rename from cms/include/alibabacloud/cms/model/TaskConfigUnhealthyResult.h rename to cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityResult.h index ff2f344a8..fd137028c 100644 --- a/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyResult.h +++ b/cms/include/alibabacloud/cms/model/DescribeUnhealthyHostAvailabilityResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYRESULT_H_ #include #include @@ -29,29 +29,29 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT TaskConfigUnhealthyResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DescribeUnhealthyHostAvailabilityResult : public ServiceResult { public: struct NodeTaskInstance { - long taskId; + long id; std::vector instanceList; }; - TaskConfigUnhealthyResult(); - explicit TaskConfigUnhealthyResult(const std::string &payload); - ~TaskConfigUnhealthyResult(); - int getErrorCode()const; - std::string getErrorMessage()const; + DescribeUnhealthyHostAvailabilityResult(); + explicit DescribeUnhealthyHostAvailabilityResult(const std::string &payload); + ~DescribeUnhealthyHostAvailabilityResult(); + std::string getMessage()const; + std::string getCode()const; bool getSuccess()const; std::vector getUnhealthyList()const; protected: void parse(const std::string &payload); private: - int errorCode_; - std::string errorMessage_; + std::string message_; + std::string code_; bool success_; std::vector unhealthyList_; @@ -59,4 +59,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEUNHEALTHYHOSTAVAILABILITYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableActiveAlertRequest.h b/cms/include/alibabacloud/cms/model/DisableActiveMetricRuleRequest.h similarity index 68% rename from cms/include/alibabacloud/cms/model/DisableActiveAlertRequest.h rename to cms/include/alibabacloud/cms/model/DisableActiveMetricRuleRequest.h index 6caa5147a..d8b1662b5 100644 --- a/cms/include/alibabacloud/cms/model/DisableActiveAlertRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableActiveMetricRuleRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEMETRICRULEREQUEST_H_ #include #include @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DisableActiveAlertRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DisableActiveMetricRuleRequest : public RpcServiceRequest { public: - DisableActiveAlertRequest(); - ~DisableActiveAlertRequest(); + DisableActiveMetricRuleRequest(); + ~DisableActiveMetricRuleRequest(); std::string getProduct()const; void setProduct(const std::string& product); - std::string getUserId()const; - void setUserId(const std::string& userId); private: std::string product_; - std::string userId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEMETRICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableActiveMetricRuleResult.h b/cms/include/alibabacloud/cms/model/DisableActiveMetricRuleResult.h new file mode 100644 index 000000000..b7bf5ae17 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DisableActiveMetricRuleResult.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_DISABLEACTIVEMETRICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEMETRICRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DisableActiveMetricRuleResult : public ServiceResult + { + public: + + + DisableActiveMetricRuleResult(); + explicit DisableActiveMetricRuleResult(const std::string &payload); + ~DisableActiveMetricRuleResult(); + 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_DISABLEACTIVEMETRICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableEventRuleRequest.h b/cms/include/alibabacloud/cms/model/DisableEventRulesRequest.h similarity index 70% rename from cms/include/alibabacloud/cms/model/EnableEventRuleRequest.h rename to cms/include/alibabacloud/cms/model/DisableEventRulesRequest.h index c1166d13e..3c6f4cabc 100644 --- a/cms/include/alibabacloud/cms/model/EnableEventRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableEventRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESREQUEST_H_ #include #include @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT EnableEventRuleRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DisableEventRulesRequest : public RpcServiceRequest { public: - EnableEventRuleRequest(); - ~EnableEventRuleRequest(); + DisableEventRulesRequest(); + ~DisableEventRulesRequest(); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); std::vector getRuleNames()const; void setRuleNames(const std::vector& ruleNames); private: - std::string ruleName_; std::vector ruleNames_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteAlarmResult.h b/cms/include/alibabacloud/cms/model/DisableEventRulesResult.h similarity index 74% rename from cms/include/alibabacloud/cms/model/DeleteAlarmResult.h rename to cms/include/alibabacloud/cms/model/DisableEventRulesResult.h index 2b320be20..7fb6d2c37 100644 --- a/cms/include/alibabacloud/cms/model/DeleteAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/DisableEventRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEALARMRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEALARMRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteAlarmResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DisableEventRulesResult : public ServiceResult { public: - DeleteAlarmResult(); - explicit DeleteAlarmResult(const std::string &payload); - ~DeleteAlarmResult(); + DisableEventRulesResult(); + explicit DisableEventRulesResult(const std::string &payload); + ~DisableEventRulesResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEALARMRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEEVENTRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateRequest.h b/cms/include/alibabacloud/cms/model/DisableHostAvailabilityRequest.h similarity index 64% rename from cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateRequest.h rename to cms/include/alibabacloud/cms/model/DisableHostAvailabilityRequest.h index c241f296a..b717fb75d 100644 --- a/cms/include/alibabacloud/cms/model/DeleteMonitoringTemplateRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableHostAvailabilityRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEHOSTAVAILABILITYREQUEST_H_ #include #include @@ -28,21 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteMonitoringTemplateRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DisableHostAvailabilityRequest : public RpcServiceRequest { public: - DeleteMonitoringTemplateRequest(); - ~DeleteMonitoringTemplateRequest(); + DisableHostAvailabilityRequest(); + ~DisableHostAvailabilityRequest(); - std::string getId()const; - void setId(const std::string& id); + std::vector getId()const; + void setId(const std::vector& id); private: - std::string id_; + std::vector id_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableHostAvailabilityResult.h b/cms/include/alibabacloud/cms/model/DisableHostAvailabilityResult.h new file mode 100644 index 000000000..a003f1e69 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/DisableHostAvailabilityResult.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_DISABLEHOSTAVAILABILITYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEHOSTAVAILABILITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT DisableHostAvailabilityResult : public ServiceResult + { + public: + + + DisableHostAvailabilityResult(); + explicit DisableHostAvailabilityResult(const std::string &payload); + ~DisableHostAvailabilityResult(); + 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_DISABLEHOSTAVAILABILITYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertRequest.h b/cms/include/alibabacloud/cms/model/DisableMetricRulesRequest.h similarity index 66% rename from cms/include/alibabacloud/cms/model/UpdateMyGroupAlertRequest.h rename to cms/include/alibabacloud/cms/model/DisableMetricRulesRequest.h index 2cc93316e..c093a3ad6 100644 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableMetricRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESREQUEST_H_ #include #include @@ -28,21 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupAlertRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DisableMetricRulesRequest : public RpcServiceRequest { public: - UpdateMyGroupAlertRequest(); - ~UpdateMyGroupAlertRequest(); + DisableMetricRulesRequest(); + ~DisableMetricRulesRequest(); - std::string getGroupAlertJson()const; - void setGroupAlertJson(const std::string& groupAlertJson); + std::vector getRuleId()const; + void setRuleId(const std::vector& ruleId); private: - std::string groupAlertJson_; + std::vector ruleId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DisableActiveAlertResult.h b/cms/include/alibabacloud/cms/model/DisableMetricRulesResult.h similarity index 75% rename from cms/include/alibabacloud/cms/model/DisableActiveAlertResult.h rename to cms/include/alibabacloud/cms/model/DisableMetricRulesResult.h index 698081af8..f0f2cb455 100644 --- a/cms/include/alibabacloud/cms/model/DisableActiveAlertResult.h +++ b/cms/include/alibabacloud/cms/model/DisableMetricRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DisableActiveAlertResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DisableMetricRulesResult : public ServiceResult { public: - DisableActiveAlertResult(); - explicit DisableActiveAlertResult(const std::string &payload); - ~DisableActiveAlertResult(); + DisableMetricRulesResult(); + explicit DisableMetricRulesResult(const std::string &payload); + ~DisableMetricRulesResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEACTIVEALERTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLEMETRICRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/StopTasksRequest.h b/cms/include/alibabacloud/cms/model/DisableSiteMonitorsRequest.h similarity index 74% rename from cms/include/alibabacloud/cms/model/StopTasksRequest.h rename to cms/include/alibabacloud/cms/model/DisableSiteMonitorsRequest.h index 2cc4a5af1..f0d529fbe 100644 --- a/cms/include/alibabacloud/cms/model/StopTasksRequest.h +++ b/cms/include/alibabacloud/cms/model/DisableSiteMonitorsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_STOPTASKSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_STOPTASKSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT StopTasksRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT DisableSiteMonitorsRequest : public RpcServiceRequest { public: - StopTasksRequest(); - ~StopTasksRequest(); + DisableSiteMonitorsRequest(); + ~DisableSiteMonitorsRequest(); std::string getTaskIds()const; void setTaskIds(const std::string& taskIds); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_STOPTASKSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DescribeISPAreaCityResult.h b/cms/include/alibabacloud/cms/model/DisableSiteMonitorsResult.h similarity index 76% rename from cms/include/alibabacloud/cms/model/DescribeISPAreaCityResult.h rename to cms/include/alibabacloud/cms/model/DisableSiteMonitorsResult.h index ecec637fe..e4663997e 100644 --- a/cms/include/alibabacloud/cms/model/DescribeISPAreaCityResult.h +++ b/cms/include/alibabacloud/cms/model/DisableSiteMonitorsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DESCRIBEISPAREACITYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DESCRIBEISPAREACITYRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DescribeISPAreaCityResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT DisableSiteMonitorsResult : public ServiceResult { public: - DescribeISPAreaCityResult(); - explicit DescribeISPAreaCityResult(const std::string &payload); - ~DescribeISPAreaCityResult(); + DisableSiteMonitorsResult(); + explicit DisableSiteMonitorsResult(const std::string &payload); + ~DisableSiteMonitorsResult(); std::string getMessage()const; std::string getData()const; std::string getCode()const; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEISPAREACITYRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_DISABLESITEMONITORSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListActiveAlertRuleRequest.h b/cms/include/alibabacloud/cms/model/EnableActiveMetricRuleRequest.h similarity index 68% rename from cms/include/alibabacloud/cms/model/ListActiveAlertRuleRequest.h rename to cms/include/alibabacloud/cms/model/EnableActiveMetricRuleRequest.h index 4a1e31e1c..d34c5bb70 100644 --- a/cms/include/alibabacloud/cms/model/ListActiveAlertRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableActiveMetricRuleRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_LISTACTIVEALERTRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTACTIVEALERTRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEMETRICRULEREQUEST_H_ #include #include @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ListActiveAlertRuleRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT EnableActiveMetricRuleRequest : public RpcServiceRequest { public: - ListActiveAlertRuleRequest(); - ~ListActiveAlertRuleRequest(); + EnableActiveMetricRuleRequest(); + ~EnableActiveMetricRuleRequest(); std::string getProduct()const; void setProduct(const std::string& product); - std::string getUserId()const; - void setUserId(const std::string& userId); private: std::string product_; - std::string userId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_LISTACTIVEALERTRULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEMETRICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableActiveMetricRuleResult.h b/cms/include/alibabacloud/cms/model/EnableActiveMetricRuleResult.h new file mode 100644 index 000000000..faacbdea6 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/EnableActiveMetricRuleResult.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_ENABLEACTIVEMETRICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEACTIVEMETRICRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT EnableActiveMetricRuleResult : public ServiceResult + { + public: + + + EnableActiveMetricRuleResult(); + explicit EnableActiveMetricRuleResult(const std::string &payload); + ~EnableActiveMetricRuleResult(); + 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_ENABLEACTIVEMETRICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteEventRuleRequest.h b/cms/include/alibabacloud/cms/model/EnableEventRulesRequest.h similarity index 70% rename from cms/include/alibabacloud/cms/model/DeleteEventRuleRequest.h rename to cms/include/alibabacloud/cms/model/EnableEventRulesRequest.h index 13ccbc5b7..37422b8d8 100644 --- a/cms/include/alibabacloud/cms/model/DeleteEventRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableEventRulesRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULEREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESREQUEST_H_ #include #include @@ -28,24 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteEventRuleRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT EnableEventRulesRequest : public RpcServiceRequest { public: - DeleteEventRuleRequest(); - ~DeleteEventRuleRequest(); + EnableEventRulesRequest(); + ~EnableEventRulesRequest(); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); std::vector getRuleNames()const; void setRuleNames(const std::vector& ruleNames); private: - std::string ruleName_; std::vector ruleNames_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULEREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteEventRuleResult.h b/cms/include/alibabacloud/cms/model/EnableEventRulesResult.h similarity index 74% rename from cms/include/alibabacloud/cms/model/DeleteEventRuleResult.h rename to cms/include/alibabacloud/cms/model/EnableEventRulesResult.h index 85556951f..348415730 100644 --- a/cms/include/alibabacloud/cms/model/DeleteEventRuleResult.h +++ b/cms/include/alibabacloud/cms/model/EnableEventRulesResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULERESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteEventRuleResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT EnableEventRulesResult : public ServiceResult { public: - DeleteEventRuleResult(); - explicit DeleteEventRuleResult(const std::string &payload); - ~DeleteEventRuleResult(); + EnableEventRulesResult(); + explicit EnableEventRulesResult(const std::string &payload); + ~EnableEventRulesResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETEEVENTRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventDetailRequest.h b/cms/include/alibabacloud/cms/model/EnableHostAvailabilityRequest.h similarity index 66% rename from cms/include/alibabacloud/cms/model/QuerySystemEventDetailRequest.h rename to cms/include/alibabacloud/cms/model/EnableHostAvailabilityRequest.h index 7a2b7b015..e39b2f412 100644 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventDetailRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableHostAvailabilityRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDETAILREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDETAILREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEHOSTAVAILABILITYREQUEST_H_ #include #include @@ -28,21 +28,21 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QuerySystemEventDetailRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT EnableHostAvailabilityRequest : public RpcServiceRequest { public: - QuerySystemEventDetailRequest(); - ~QuerySystemEventDetailRequest(); + EnableHostAvailabilityRequest(); + ~EnableHostAvailabilityRequest(); - std::string getQueryJson()const; - void setQueryJson(const std::string& queryJson); + std::vector getId()const; + void setId(const std::vector& id); private: - std::string queryJson_; + std::vector id_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDETAILREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableHostAvailabilityResult.h b/cms/include/alibabacloud/cms/model/EnableHostAvailabilityResult.h new file mode 100644 index 000000000..e81b2022a --- /dev/null +++ b/cms/include/alibabacloud/cms/model/EnableHostAvailabilityResult.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_ENABLEHOSTAVAILABILITYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEHOSTAVAILABILITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT EnableHostAvailabilityResult : public ServiceResult + { + public: + + + EnableHostAvailabilityResult(); + explicit EnableHostAvailabilityResult(const std::string &payload); + ~EnableHostAvailabilityResult(); + 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_ENABLEHOSTAVAILABILITYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableMetricRulesRequest.h b/cms/include/alibabacloud/cms/model/EnableMetricRulesRequest.h new file mode 100644 index 000000000..7399141ed --- /dev/null +++ b/cms/include/alibabacloud/cms/model/EnableMetricRulesRequest.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_ENABLEMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEMETRICRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT EnableMetricRulesRequest : public RpcServiceRequest + { + + public: + EnableMetricRulesRequest(); + ~EnableMetricRulesRequest(); + + std::vector getRuleId()const; + void setRuleId(const std::vector& ruleId); + + private: + std::vector ruleId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEMETRICRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableMetricRulesResult.h b/cms/include/alibabacloud/cms/model/EnableMetricRulesResult.h new file mode 100644 index 000000000..d302021c7 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/EnableMetricRulesResult.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_ENABLEMETRICRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLEMETRICRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT EnableMetricRulesResult : public ServiceResult + { + public: + + + EnableMetricRulesResult(); + explicit EnableMetricRulesResult(const std::string &payload); + ~EnableMetricRulesResult(); + 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_ENABLEMETRICRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/StartTasksRequest.h b/cms/include/alibabacloud/cms/model/EnableSiteMonitorsRequest.h similarity index 74% rename from cms/include/alibabacloud/cms/model/StartTasksRequest.h rename to cms/include/alibabacloud/cms/model/EnableSiteMonitorsRequest.h index fdd9298c9..460c5f08f 100644 --- a/cms/include/alibabacloud/cms/model/StartTasksRequest.h +++ b/cms/include/alibabacloud/cms/model/EnableSiteMonitorsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_STARTTASKSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_STARTTASKSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT StartTasksRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT EnableSiteMonitorsRequest : public RpcServiceRequest { public: - StartTasksRequest(); - ~StartTasksRequest(); + EnableSiteMonitorsRequest(); + ~EnableSiteMonitorsRequest(); std::string getTaskIds()const; void setTaskIds(const std::string& taskIds); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_STARTTASKSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryTaskConfigResult.h b/cms/include/alibabacloud/cms/model/EnableSiteMonitorsResult.h similarity index 74% rename from cms/include/alibabacloud/cms/model/QueryTaskConfigResult.h rename to cms/include/alibabacloud/cms/model/EnableSiteMonitorsResult.h index d22c4e196..c8516b42d 100644 --- a/cms/include/alibabacloud/cms/model/QueryTaskConfigResult.h +++ b/cms/include/alibabacloud/cms/model/EnableSiteMonitorsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT QueryTaskConfigResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT EnableSiteMonitorsResult : public ServiceResult { public: - QueryTaskConfigResult(); - explicit QueryTaskConfigResult(const std::string &payload); - ~QueryTaskConfigResult(); + EnableSiteMonitorsResult(); + explicit EnableSiteMonitorsResult(const std::string &payload); + ~EnableSiteMonitorsResult(); std::string getMessage()const; std::string getData()const; std::string getCode()const; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYTASKCONFIGRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_ENABLESITEMONITORSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetContactsRequest.h b/cms/include/alibabacloud/cms/model/GetContactsRequest.h deleted file mode 100644 index 11430b281..000000000 --- a/cms/include/alibabacloud/cms/model/GetContactsRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_GETCONTACTSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_GETCONTACTSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT GetContactsRequest : public RpcServiceRequest - { - - public: - GetContactsRequest(); - ~GetContactsRequest(); - - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - - private: - std::string groupName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_GETCONTACTSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/GetMonitoringTemplateResult.h deleted file mode 100644 index 33df31b4a..000000000 --- a/cms/include/alibabacloud/cms/model/GetMonitoringTemplateResult.h +++ /dev/null @@ -1,67 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT GetMonitoringTemplateResult : public ServiceResult - { - public: - struct Resource - { - std::string description; - std::string alertTemplatesJson; - std::string restVersion; - std::string _namespace; - std::string id; - std::string eventRuleTemplatesJson; - std::string name; - }; - - - GetMonitoringTemplateResult(); - explicit GetMonitoringTemplateResult(const std::string &payload); - ~GetMonitoringTemplateResult(); - Resource getResource()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - Resource resource_; - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_GETMONITORINGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMyGroupAlertResult.h b/cms/include/alibabacloud/cms/model/GetMyGroupAlertResult.h deleted file mode 100644 index 55f58602c..000000000 --- a/cms/include/alibabacloud/cms/model/GetMyGroupAlertResult.h +++ /dev/null @@ -1,104 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT GetMyGroupAlertResult : public ServiceResult - { - public: - struct GroupAlert - { - struct Escalations - { - struct Info - { - std::string comparisonOperator; - int times; - std::string statistics; - std::string threshold; - }; - struct Warn - { - std::string comparisonOperator; - int times; - std::string statistics; - std::string threshold; - }; - struct Critical - { - std::string comparisonOperator; - int times; - std::string statistics; - std::string threshold; - }; - Critical critical; - Info info; - Warn warn; - }; - int silenceTime; - std::string alertName; - std::string category; - std::string description; - int period; - std::string enableEndTime; - std::string _namespace; - std::string subject; - std::string groupId; - std::string metricName; - std::string state; - Escalations escalations; - std::string displayName; - bool enable; - std::string webhook; - std::string enableStartTime; - std::string selector; - }; - - - GetMyGroupAlertResult(); - explicit GetMyGroupAlertResult(const std::string &payload); - ~GetMyGroupAlertResult(); - GroupAlert getGroupAlert()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - GroupAlert groupAlert_; - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMyGroupsRequest.h b/cms/include/alibabacloud/cms/model/GetMyGroupsRequest.h deleted file mode 100644 index ab293040e..000000000 --- a/cms/include/alibabacloud/cms/model/GetMyGroupsRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_GETMYGROUPSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_GETMYGROUPSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT GetMyGroupsRequest : public RpcServiceRequest - { - - public: - GetMyGroupsRequest(); - ~GetMyGroupsRequest(); - - bool getSelectContactGroups()const; - void setSelectContactGroups(bool selectContactGroups); - long getGroupId()const; - void setGroupId(long groupId); - std::string getType()const; - void setType(const std::string& type); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); - std::string getBindUrl()const; - void setBindUrl(const std::string& bindUrl); - - private: - bool selectContactGroups_; - long groupId_; - std::string type_; - std::string groupName_; - std::string instanceId_; - std::string bindUrl_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_GETMYGROUPSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/GetNotifyPolicyRequest.h deleted file mode 100644 index 05ccd9a33..000000000 --- a/cms/include/alibabacloud/cms/model/GetNotifyPolicyRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT GetNotifyPolicyRequest : public RpcServiceRequest - { - - public: - GetNotifyPolicyRequest(); - ~GetNotifyPolicyRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getAlertName()const; - void setAlertName(const std::string& alertName); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - std::string getId()const; - void setId(const std::string& id); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string policyType_; - std::string alertName_; - std::string groupId_; - std::string accessKeyId_; - std::string id_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_GETNOTIFYPOLICYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeInstallRequest.h b/cms/include/alibabacloud/cms/model/InstallMonitoringAgentRequest.h similarity index 64% rename from cms/include/alibabacloud/cms/model/NodeInstallRequest.h rename to cms/include/alibabacloud/cms/model/InstallMonitoringAgentRequest.h index 3c6ce4d05..3514dc521 100644 --- a/cms/include/alibabacloud/cms/model/NodeInstallRequest.h +++ b/cms/include/alibabacloud/cms/model/InstallMonitoringAgentRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODEINSTALLREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEINSTALLREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_INSTALLMONITORINGAGENTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_INSTALLMONITORINGAGENTREQUEST_H_ #include #include @@ -28,27 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeInstallRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT InstallMonitoringAgentRequest : public RpcServiceRequest { public: - NodeInstallRequest(); - ~NodeInstallRequest(); + InstallMonitoringAgentRequest(); + ~InstallMonitoringAgentRequest(); - std::string getInstanceId()const; - void setInstanceId(const std::string& instanceId); + std::vector getInstanceIds()const; + void setInstanceIds(const std::vector& instanceIds); bool getForce()const; void setForce(bool force); - std::string getUserId()const; - void setUserId(const std::string& userId); private: - std::string instanceId_; + std::vector instanceIds_; bool force_; - std::string userId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODEINSTALLREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_INSTALLMONITORINGAGENTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/InstallMonitoringAgentResult.h b/cms/include/alibabacloud/cms/model/InstallMonitoringAgentResult.h new file mode 100644 index 000000000..bb4e84dd2 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/InstallMonitoringAgentResult.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_INSTALLMONITORINGAGENTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_INSTALLMONITORINGAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT InstallMonitoringAgentResult : public ServiceResult + { + public: + + + InstallMonitoringAgentResult(); + explicit InstallMonitoringAgentResult(const std::string &payload); + ~InstallMonitoringAgentResult(); + 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_INSTALLMONITORINGAGENTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ListNotifyPolicyRequest.h b/cms/include/alibabacloud/cms/model/ListNotifyPolicyRequest.h deleted file mode 100644 index c9a66179c..000000000 --- a/cms/include/alibabacloud/cms/model/ListNotifyPolicyRequest.h +++ /dev/null @@ -1,66 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_LISTNOTIFYPOLICYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_LISTNOTIFYPOLICYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ListNotifyPolicyRequest : public RpcServiceRequest - { - - public: - ListNotifyPolicyRequest(); - ~ListNotifyPolicyRequest(); - - std::string getPolicyType()const; - void setPolicyType(const std::string& policyType); - std::string getAlertName()const; - void setAlertName(const std::string& alertName); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getAccessKeyId()const; - void setAccessKeyId(const std::string& accessKeyId); - int getPageSize()const; - void setPageSize(int pageSize); - std::string getId()const; - void setId(const std::string& id); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - - private: - std::string policyType_; - std::string alertName_; - std::string groupId_; - std::string accessKeyId_; - int pageSize_; - std::string id_; - std::string dimensions_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_LISTNOTIFYPOLICYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h b/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h new file mode 100644 index 000000000..92b444d55 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessRequest.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyGroupMonitoringAgentProcessRequest : public RpcServiceRequest + { + struct AlertConfig + { + std::string times; + std::string noEffectiveInterval; + std::string silenceTime; + std::string threshold; + std::string effectiveInterval; + std::string comparisonOperator; + std::string escalationsLevel; + std::string statistics; + }; + + public: + ModifyGroupMonitoringAgentProcessRequest(); + ~ModifyGroupMonitoringAgentProcessRequest(); + + std::vector getAlertConfig()const; + void setAlertConfig(const std::vector& alertConfig); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + std::string getMatchExpressFilterRelation()const; + void setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation); + std::string getId()const; + void setId(const std::string& id); + + private: + std::vector alertConfig_; + std::string groupId_; + std::string matchExpressFilterRelation_; + std::string id_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessResult.h b/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessResult.h new file mode 100644 index 000000000..f853cbe46 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyGroupMonitoringAgentProcessResult.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_MODIFYGROUPMONITORINGAGENTPROCESSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYGROUPMONITORINGAGENTPROCESSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyGroupMonitoringAgentProcessResult : public ServiceResult + { + public: + + + ModifyGroupMonitoringAgentProcessResult(); + explicit ModifyGroupMonitoringAgentProcessResult(const std::string &payload); + ~ModifyGroupMonitoringAgentProcessResult(); + 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_MODIFYGROUPMONITORINGAGENTPROCESSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h b/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h new file mode 100644 index 000000000..bb678c407 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityRequest.h @@ -0,0 +1,104 @@ +/* + * 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_MODIFYHOSTAVAILABILITYREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTAVAILABILITYREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyHostAvailabilityRequest : public RpcServiceRequest + { + struct AlertConfigEscalationList + { + int times; + std::string metricName; + std::string value; + std::string _operator; + std::string aggregate; + }; + + public: + ModifyHostAvailabilityRequest(); + ~ModifyHostAvailabilityRequest(); + + std::string getTaskOptionHttpMethod()const; + void setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod); + std::vector getAlertConfigEscalationList()const; + void setAlertConfigEscalationList(const std::vector& alertConfigEscalationList); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + int getAlertConfigSilenceTime()const; + void setAlertConfigSilenceTime(int alertConfigSilenceTime); + std::string getTaskOptionHttpResponseCharset()const; + void setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset); + bool getTaskOptionHttpNegative()const; + void setTaskOptionHttpNegative(bool taskOptionHttpNegative); + int getAlertConfigNotifyType()const; + void setAlertConfigNotifyType(int alertConfigNotifyType); + std::string getTaskOptionTelnetOrPingHost()const; + void setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost); + std::string getTaskOptionHttpResponseMatchContent()const; + void setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent); + long getId()const; + void setId(long id); + std::vector getInstanceList()const; + void setInstanceList(const std::vector& instanceList); + long getGroupId()const; + void setGroupId(long groupId); + int getAlertConfigEndTime()const; + void setAlertConfigEndTime(int alertConfigEndTime); + std::string getTaskOptionHttpURI()const; + void setTaskOptionHttpURI(const std::string& taskOptionHttpURI); + std::string getTaskScope()const; + void setTaskScope(const std::string& taskScope); + int getAlertConfigStartTime()const; + void setAlertConfigStartTime(int alertConfigStartTime); + std::string getAlertConfigWebHook()const; + void setAlertConfigWebHook(const std::string& alertConfigWebHook); + + private: + std::string taskOptionHttpMethod_; + std::vector alertConfigEscalationList_; + std::string taskName_; + int alertConfigSilenceTime_; + std::string taskOptionHttpResponseCharset_; + bool taskOptionHttpNegative_; + int alertConfigNotifyType_; + std::string taskOptionTelnetOrPingHost_; + std::string taskOptionHttpResponseMatchContent_; + long id_; + std::vector instanceList_; + long groupId_; + int alertConfigEndTime_; + std::string taskOptionHttpURI_; + std::string taskScope_; + int alertConfigStartTime_; + std::string alertConfigWebHook_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYHOSTAVAILABILITYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityResult.h b/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityResult.h new file mode 100644 index 000000000..02960a390 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyHostAvailabilityResult.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_MODIFYHOSTAVAILABILITYRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYHOSTAVAILABILITYRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyHostAvailabilityResult : public ServiceResult + { + public: + + + ModifyHostAvailabilityResult(); + explicit ModifyHostAvailabilityResult(const std::string &payload); + ~ModifyHostAvailabilityResult(); + 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_MODIFYHOSTAVAILABILITYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateRequest.h b/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateRequest.h new file mode 100644 index 000000000..64a937cd0 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyMetricRuleTemplateRequest : public RpcServiceRequest + { + struct AlertTemplates + { + int period; + std::string escalationsWarnThreshold; + std::string webhook; + std::string escalationsWarnComparisonOperator; + std::string escalationsCriticalStatistics; + int escalationsInfoTimes; + std::string ruleName; + std::string escalationsInfoStatistics; + int escalationsCriticalTimes; + std::string escalationsInfoComparisonOperator; + std::string escalationsWarnStatistics; + std::string escalationsInfoThreshold; + std::string _namespace; + std::string selector; + std::string metricName; + std::string category; + std::string escalationsCriticalComparisonOperator; + int escalationsWarnTimes; + std::string escalationsCriticalThreshold; + }; + + public: + ModifyMetricRuleTemplateRequest(); + ~ModifyMetricRuleTemplateRequest(); + + long getRestVersion()const; + void setRestVersion(long restVersion); + std::string getDescription()const; + void setDescription(const std::string& description); + long getTemplateId()const; + void setTemplateId(long templateId); + std::string getName()const; + void setName(const std::string& name); + std::vector getAlertTemplates()const; + void setAlertTemplates(const std::vector& alertTemplates); + + private: + long restVersion_; + std::string description_; + long templateId_; + std::string name_; + std::vector alertTemplates_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateResult.h b/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateResult.h new file mode 100644 index 000000000..ca7ba136e --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyMetricRuleTemplateResult.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_MODIFYMETRICRULETEMPLATERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyMetricRuleTemplateResult : public ServiceResult + { + public: + + + ModifyMetricRuleTemplateResult(); + explicit ModifyMetricRuleTemplateResult(const std::string &payload); + ~ModifyMetricRuleTemplateResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMETRICRULETEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesRequest.h new file mode 100644 index 000000000..fa4f05f5a --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesRequest.h @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyMonitorGroupInstancesRequest : public RpcServiceRequest + { + struct Instances + { + std::string instanceId; + std::string instanceName; + std::string regionId; + std::string category; + }; + + public: + ModifyMonitorGroupInstancesRequest(); + ~ModifyMonitorGroupInstancesRequest(); + + std::vector getInstances()const; + void setInstances(const std::vector& instances); + long getGroupId()const; + void setGroupId(long groupId); + + private: + std::vector instances_; + long groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesResult.h new file mode 100644 index 000000000..bf7bb4a39 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupInstancesResult.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_MODIFYMONITORGROUPINSTANCESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyMonitorGroupInstancesResult : public ServiceResult + { + public: + + + ModifyMonitorGroupInstancesResult(); + explicit ModifyMonitorGroupInstancesResult(const std::string &payload); + ~ModifyMonitorGroupInstancesResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPINSTANCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupsRequest.h b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupRequest.h similarity index 77% rename from cms/include/alibabacloud/cms/model/UpdateMyGroupsRequest.h rename to cms/include/alibabacloud/cms/model/ModifyMonitorGroupRequest.h index 23181dc7c..0189f4ff0 100644 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupsRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPREQUEST_H_ #include #include @@ -28,19 +28,17 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupsRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT ModifyMonitorGroupRequest : public RpcServiceRequest { public: - UpdateMyGroupsRequest(); - ~UpdateMyGroupsRequest(); + ModifyMonitorGroupRequest(); + ~ModifyMonitorGroupRequest(); std::string getContactGroups()const; void setContactGroups(const std::string& contactGroups); std::string getGroupId()const; void setGroupId(const std::string& groupId); - std::string getType()const; - void setType(const std::string& type); std::string getGroupName()const; void setGroupName(const std::string& groupName); std::string getBindUrls()const; @@ -51,7 +49,6 @@ namespace AlibabaCloud private: std::string contactGroups_; std::string groupId_; - std::string type_; std::string groupName_; std::string bindUrls_; long serviceId_; @@ -60,4 +57,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyMonitorGroupResult.h b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupResult.h new file mode 100644 index 000000000..a2bc9239d --- /dev/null +++ b/cms/include/alibabacloud/cms/model/ModifyMonitorGroupResult.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_MODIFYMONITORGROUPRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT ModifyMonitorGroupResult : public ServiceResult + { + public: + + + ModifyMonitorGroupResult(); + explicit ModifyMonitorGroupResult(const std::string &payload); + ~ModifyMonitorGroupResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYMONITORGROUPRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyTaskRequest.h b/cms/include/alibabacloud/cms/model/ModifySiteMonitorRequest.h similarity index 65% rename from cms/include/alibabacloud/cms/model/ModifyTaskRequest.h rename to cms/include/alibabacloud/cms/model/ModifySiteMonitorRequest.h index 24d601ef0..cf08fca30 100644 --- a/cms/include/alibabacloud/cms/model/ModifyTaskRequest.h +++ b/cms/include/alibabacloud/cms/model/ModifySiteMonitorRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYTASKREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_MODIFYTASKREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORREQUEST_H_ #include #include @@ -28,45 +28,39 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ModifyTaskRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT ModifySiteMonitorRequest : public RpcServiceRequest { public: - ModifyTaskRequest(); - ~ModifyTaskRequest(); + ModifySiteMonitorRequest(); + ~ModifySiteMonitorRequest(); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - std::string getAlertIds()const; - void setAlertIds(const std::string& alertIds); - std::string getOptions()const; - void setOptions(const std::string& options); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); std::string getAddress()const; void setAddress(const std::string& address); - std::string getCaller()const; - void setCaller(const std::string& caller); - std::string getIspCity()const; - void setIspCity(const std::string& ispCity); + std::string getTaskName()const; + void setTaskName(const std::string& taskName); + std::string getIspCities()const; + void setIspCities(const std::string& ispCities); + std::string getOptionsJson()const; + void setOptionsJson(const std::string& optionsJson); + std::string getAlertIds()const; + void setAlertIds(const std::string& alertIds); std::string getInterval()const; void setInterval(const std::string& interval); - std::string getAlertRule()const; - void setAlertRule(const std::string& alertRule); + std::string getTaskId()const; + void setTaskId(const std::string& taskId); private: - std::string taskName_; - std::string alertIds_; - std::string options_; - std::string taskId_; std::string address_; - std::string caller_; - std::string ispCity_; + std::string taskName_; + std::string ispCities_; + std::string optionsJson_; + std::string alertIds_; std::string interval_; - std::string alertRule_; + std::string taskId_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYTASKREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/DeleteTasksResult.h b/cms/include/alibabacloud/cms/model/ModifySiteMonitorResult.h similarity index 75% rename from cms/include/alibabacloud/cms/model/DeleteTasksResult.h rename to cms/include/alibabacloud/cms/model/ModifySiteMonitorResult.h index 864fb1ec8..71ce45e52 100644 --- a/cms/include/alibabacloud/cms/model/DeleteTasksResult.h +++ b/cms/include/alibabacloud/cms/model/ModifySiteMonitorResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_DELETETASKSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_DELETETASKSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT DeleteTasksResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT ModifySiteMonitorResult : public ServiceResult { public: - DeleteTasksResult(); - explicit DeleteTasksResult(const std::string &payload); - ~DeleteTasksResult(); + ModifySiteMonitorResult(); + explicit ModifySiteMonitorResult(const std::string &payload); + ~ModifySiteMonitorResult(); std::string getMessage()const; std::string getData()const; std::string getCode()const; @@ -54,4 +54,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_DELETETASKSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYSITEMONITORRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ModifyTaskResult.h b/cms/include/alibabacloud/cms/model/ModifyTaskResult.h deleted file mode 100644 index 0328346ef..000000000 --- a/cms/include/alibabacloud/cms/model/ModifyTaskResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_MODIFYTASKRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_MODIFYTASKRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ModifyTaskResult : public ServiceResult - { - public: - - - ModifyTaskResult(); - explicit ModifyTaskResult(const std::string &payload); - ~ModifyTaskResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_MODIFYTASKRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeInstallResult.h b/cms/include/alibabacloud/cms/model/NodeInstallResult.h deleted file mode 100644 index 621d5484f..000000000 --- a/cms/include/alibabacloud/cms/model/NodeInstallResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_NODEINSTALLRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEINSTALLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT NodeInstallResult : public ServiceResult - { - public: - - - NodeInstallResult(); - explicit NodeInstallResult(const std::string &payload); - ~NodeInstallResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_NODEINSTALLRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeProcessCreateResult.h b/cms/include/alibabacloud/cms/model/NodeProcessCreateResult.h deleted file mode 100644 index 7d984e094..000000000 --- a/cms/include/alibabacloud/cms/model/NodeProcessCreateResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_NODEPROCESSCREATERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEPROCESSCREATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT NodeProcessCreateResult : public ServiceResult - { - public: - - - NodeProcessCreateResult(); - explicit NodeProcessCreateResult(const std::string &payload); - ~NodeProcessCreateResult(); - int getErrorCode()const; - long getId()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - long id_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_NODEPROCESSCREATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeProcessDeleteResult.h b/cms/include/alibabacloud/cms/model/NodeProcessDeleteResult.h deleted file mode 100644 index b43b9a2dd..000000000 --- a/cms/include/alibabacloud/cms/model/NodeProcessDeleteResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_NODEPROCESSDELETERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEPROCESSDELETERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT NodeProcessDeleteResult : public ServiceResult - { - public: - - - NodeProcessDeleteResult(); - explicit NodeProcessDeleteResult(const std::string &payload); - ~NodeProcessDeleteResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_NODEPROCESSDELETERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeStatusResult.h b/cms/include/alibabacloud/cms/model/NodeStatusResult.h deleted file mode 100644 index a67f24ac6..000000000 --- a/cms/include/alibabacloud/cms/model/NodeStatusResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_NODESTATUSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_NODESTATUSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT NodeStatusResult : public ServiceResult - { - public: - - - NodeStatusResult(); - explicit NodeStatusResult(const std::string &payload); - ~NodeStatusResult(); - std::string getStatus()const; - bool getAutoInstall()const; - std::string getInstanceId()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string status_; - bool autoInstall_; - std::string instanceId_; - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_NODESTATUSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeUninstallResult.h b/cms/include/alibabacloud/cms/model/NodeUninstallResult.h deleted file mode 100644 index 60d21c952..000000000 --- a/cms/include/alibabacloud/cms/model/NodeUninstallResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_NODEUNINSTALLRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_NODEUNINSTALLRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT NodeUninstallResult : public ServiceResult - { - public: - - - NodeUninstallResult(); - explicit NodeUninstallResult(const std::string &payload); - ~NodeUninstallResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_NODEUNINSTALLRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ProfileSetResult.h b/cms/include/alibabacloud/cms/model/ProfileSetResult.h deleted file mode 100644 index 518c5be6e..000000000 --- a/cms/include/alibabacloud/cms/model/ProfileSetResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_PROFILESETRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_PROFILESETRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT ProfileSetResult : public ServiceResult - { - public: - - - ProfileSetResult(); - explicit ProfileSetResult(const std::string &payload); - ~ProfileSetResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PROFILESETRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/GetMyGroupAlertRequest.h b/cms/include/alibabacloud/cms/model/PutContactGroupRequest.h similarity index 54% rename from cms/include/alibabacloud/cms/model/GetMyGroupAlertRequest.h rename to cms/include/alibabacloud/cms/model/PutContactGroupRequest.h index 0f6ff9352..5dff66853 100644 --- a/cms/include/alibabacloud/cms/model/GetMyGroupAlertRequest.h +++ b/cms/include/alibabacloud/cms/model/PutContactGroupRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPREQUEST_H_ #include #include @@ -28,24 +28,27 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT GetMyGroupAlertRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT PutContactGroupRequest : public RpcServiceRequest { public: - GetMyGroupAlertRequest(); - ~GetMyGroupAlertRequest(); + PutContactGroupRequest(); + ~PutContactGroupRequest(); - long getGroupId()const; - void setGroupId(long groupId); - std::string getAlertName()const; - void setAlertName(const std::string& alertName); + std::string getContactGroupName()const; + void setContactGroupName(const std::string& contactGroupName); + std::string getDescribe()const; + void setDescribe(const std::string& describe); + std::vector getContactNames()const; + void setContactNames(const std::vector& contactNames); private: - long groupId_; - std::string alertName_; + std::string contactGroupName_; + std::string describe_; + std::vector contactNames_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_GETMYGROUPALERTREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableEventRuleResult.h b/cms/include/alibabacloud/cms/model/PutContactGroupResult.h similarity index 75% rename from cms/include/alibabacloud/cms/model/EnableEventRuleResult.h rename to cms/include/alibabacloud/cms/model/PutContactGroupResult.h index d0e9d8b17..6353b209d 100644 --- a/cms/include/alibabacloud/cms/model/EnableEventRuleResult.h +++ b/cms/include/alibabacloud/cms/model/PutContactGroupResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULERESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT EnableEventRuleResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT PutContactGroupResult : public ServiceResult { public: - EnableEventRuleResult(); - explicit EnableEventRuleResult(const std::string &payload); - ~EnableEventRuleResult(); + PutContactGroupResult(); + explicit PutContactGroupResult(const std::string &payload); + ~PutContactGroupResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEEVENTRULERESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCONTACTGROUPRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutContactRequest.h b/cms/include/alibabacloud/cms/model/PutContactRequest.h new file mode 100644 index 000000000..410e2a196 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutContactRequest.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_PUTCONTACTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCONTACTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutContactRequest : public RpcServiceRequest + { + + public: + PutContactRequest(); + ~PutContactRequest(); + + std::string getChannelsDingWebHook()const; + void setChannelsDingWebHook(const std::string& channelsDingWebHook); + std::string getContactName()const; + void setContactName(const std::string& contactName); + std::string getChannelsMail()const; + void setChannelsMail(const std::string& channelsMail); + std::string getChannelsAliIM()const; + void setChannelsAliIM(const std::string& channelsAliIM); + std::string getDescribe()const; + void setDescribe(const std::string& describe); + std::string getChannelsSMS()const; + void setChannelsSMS(const std::string& channelsSMS); + + private: + std::string channelsDingWebHook_; + std::string contactName_; + std::string channelsMail_; + std::string channelsAliIM_; + std::string describe_; + std::string channelsSMS_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCONTACTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/EnableAlarmResult.h b/cms/include/alibabacloud/cms/model/PutContactResult.h similarity index 76% rename from cms/include/alibabacloud/cms/model/EnableAlarmResult.h rename to cms/include/alibabacloud/cms/model/PutContactResult.h index 1789b29f2..4c3174813 100644 --- a/cms/include/alibabacloud/cms/model/EnableAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/PutContactResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_ENABLEALARMRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_ENABLEALARMRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCONTACTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCONTACTRESULT_H_ #include #include @@ -29,14 +29,14 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT EnableAlarmResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT PutContactResult : public ServiceResult { public: - EnableAlarmResult(); - explicit EnableAlarmResult(const std::string &payload); - ~EnableAlarmResult(); + PutContactResult(); + explicit PutContactResult(const std::string &payload); + ~PutContactResult(); std::string getMessage()const; std::string getCode()const; bool getSuccess()const; @@ -52,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_ENABLEALARMRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCONTACTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutCustomEventRequest.h b/cms/include/alibabacloud/cms/model/PutCustomEventRequest.h new file mode 100644 index 000000000..81643d54a --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutCustomEventRequest.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_PUTCUSTOMEVENTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutCustomEventRequest : public RpcServiceRequest + { + struct EventInfo + { + std::string groupId; + std::string time; + std::string eventName; + std::string content; + }; + + public: + PutCustomEventRequest(); + ~PutCustomEventRequest(); + + std::vector getEventInfo()const; + void setEventInfo(const std::vector& eventInfo); + + private: + std::vector eventInfo_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutEventResult.h b/cms/include/alibabacloud/cms/model/PutCustomEventResult.h similarity index 73% rename from cms/include/alibabacloud/cms/model/PutEventResult.h rename to cms/include/alibabacloud/cms/model/PutCustomEventResult.h index b4eee0ccd..751189f2a 100644 --- a/cms/include/alibabacloud/cms/model/PutEventResult.h +++ b/cms/include/alibabacloud/cms/model/PutCustomEventResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PUTEVENTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTEVENTRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRESULT_H_ #include #include @@ -29,27 +29,25 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT PutEventResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT PutCustomEventResult : public ServiceResult { public: - PutEventResult(); - explicit PutEventResult(const std::string &payload); - ~PutEventResult(); + PutCustomEventResult(); + explicit PutCustomEventResult(const std::string &payload); + ~PutCustomEventResult(); std::string getMessage()const; - std::string getData()const; std::string getCode()const; protected: void parse(const std::string &payload); private: std::string message_; - std::string data_; std::string code_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTCUSTOMEVENTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutCustomMetricRequest.h b/cms/include/alibabacloud/cms/model/PutCustomMetricRequest.h index 713692648..697c64466 100644 --- a/cms/include/alibabacloud/cms/model/PutCustomMetricRequest.h +++ b/cms/include/alibabacloud/cms/model/PutCustomMetricRequest.h @@ -30,16 +30,26 @@ namespace AlibabaCloud { class ALIBABACLOUD_CMS_EXPORT PutCustomMetricRequest : public RpcServiceRequest { + struct MetricList + { + std::string period; + std::string groupId; + std::string values; + std::string time; + std::string metricName; + std::string type; + std::string dimensions; + }; public: PutCustomMetricRequest(); ~PutCustomMetricRequest(); - std::string getMetricList()const; - void setMetricList(const std::string& metricList); + std::vector getMetricList()const; + void setMetricList(const std::vector& metricList); private: - std::string metricList_; + std::vector metricList_; }; } diff --git a/cms/include/alibabacloud/cms/model/PutCustomMetricResult.h b/cms/include/alibabacloud/cms/model/PutCustomMetricResult.h index 23de19392..26929fbca 100644 --- a/cms/include/alibabacloud/cms/model/PutCustomMetricResult.h +++ b/cms/include/alibabacloud/cms/model/PutCustomMetricResult.h @@ -38,14 +38,12 @@ namespace AlibabaCloud explicit PutCustomMetricResult(const std::string &payload); ~PutCustomMetricResult(); std::string getMessage()const; - std::string getData()const; std::string getCode()const; protected: void parse(const std::string &payload); private: std::string message_; - std::string data_; std::string code_; }; diff --git a/cms/include/alibabacloud/cms/model/PutEventRequest.h b/cms/include/alibabacloud/cms/model/PutEventRequest.h deleted file mode 100644 index 035eaf5e8..000000000 --- a/cms/include/alibabacloud/cms/model/PutEventRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_PUTEVENTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTEVENTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutEventRequest : public RpcServiceRequest - { - - public: - PutEventRequest(); - ~PutEventRequest(); - - std::string getEventInfo()const; - void setEventInfo(const std::string& eventInfo); - - private: - std::string eventInfo_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h b/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h index ba8d10caa..d3de82990 100644 --- a/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h +++ b/cms/include/alibabacloud/cms/model/PutEventRuleRequest.h @@ -47,10 +47,10 @@ namespace AlibabaCloud void setGroupId(const std::string& groupId); std::string getDescription()const; void setDescription(const std::string& description); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); std::vector getEventPattern()const; void setEventPattern(const std::vector& eventPattern); - std::string getName()const; - void setName(const std::string& name); std::string getEventType()const; void setEventType(const std::string& eventType); std::string getState()const; @@ -59,8 +59,8 @@ namespace AlibabaCloud private: std::string groupId_; std::string description_; + std::string ruleName_; std::vector eventPattern_; - std::string name_; std::string eventType_; std::string state_; diff --git a/cms/include/alibabacloud/cms/model/PutEventTargetsRequest.h b/cms/include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h similarity index 86% rename from cms/include/alibabacloud/cms/model/PutEventTargetsRequest.h rename to cms/include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h index 9bd4f9d49..d9a940226 100644 --- a/cms/include/alibabacloud/cms/model/PutEventTargetsRequest.h +++ b/cms/include/alibabacloud/cms/model/PutEventRuleTargetsRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSREQUEST_H_ #include #include @@ -28,7 +28,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT PutEventTargetsRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT PutEventRuleTargetsRequest : public RpcServiceRequest { struct WebhookParameters { @@ -65,8 +65,8 @@ namespace AlibabaCloud }; public: - PutEventTargetsRequest(); - ~PutEventTargetsRequest(); + PutEventRuleTargetsRequest(); + ~PutEventRuleTargetsRequest(); std::vector getWebhookParameters()const; void setWebhookParameters(const std::vector& webhookParameters); @@ -93,4 +93,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutEventTargetsResult.h b/cms/include/alibabacloud/cms/model/PutEventRuleTargetsResult.h similarity index 64% rename from cms/include/alibabacloud/cms/model/PutEventTargetsResult.h rename to cms/include/alibabacloud/cms/model/PutEventRuleTargetsResult.h index 25a4c1614..d1130a268 100644 --- a/cms/include/alibabacloud/cms/model/PutEventTargetsResult.h +++ b/cms/include/alibabacloud/cms/model/PutEventRuleTargetsResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSRESULT_H_ #include #include @@ -29,7 +29,7 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT PutEventTargetsResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT PutEventRuleTargetsResult : public ServiceResult { public: struct ContactParameter @@ -51,49 +51,32 @@ namespace AlibabaCloud std::string region; int id; }; - struct FailedSlsParameter - { - std::string project; - std::string logStore; - std::string region; - std::string id; - }; - PutEventTargetsResult(); - explicit PutEventTargetsResult(const std::string &payload); - ~PutEventTargetsResult(); - std::string getParameterCount()const; - std::vector getContactParameters()const; + PutEventRuleTargetsResult(); + explicit PutEventRuleTargetsResult(const std::string &payload); + ~PutEventRuleTargetsResult(); std::string getMessage()const; std::vector getFailedMnsParameters()const; std::vector getFailedFcParameters()const; - std::vector getFcParameters()const; std::string getFailedParameterCount()const; std::vector getFailedContactParameters()const; std::string getCode()const; - std::vector getFailedSlsParameters()const; bool getSuccess()const; - std::vector getMnsParameters()const; protected: void parse(const std::string &payload); private: - std::string parameterCount_; - std::vector contactParameters_; std::string message_; std::vector failedMnsParameters_; std::vector failedFcParameters_; - std::vector fcParameters_; std::string failedParameterCount_; std::vector failedContactParameters_; std::string code_; - std::vector failedSlsParameters_; bool success_; - std::vector mnsParameters_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTTARGETSRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTEVENTRULETARGETSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleRequest.h b/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleRequest.h deleted file mode 100644 index 0e573b229..000000000 --- a/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutGroupDynamicRuleRequest : public RpcServiceRequest - { - - public: - PutGroupDynamicRuleRequest(); - ~PutGroupDynamicRuleRequest(); - - long getGroupId()const; - void setGroupId(long groupId); - std::string getGroupRuleArrayJson()const; - void setGroupRuleArrayJson(const std::string& groupRuleArrayJson); - - private: - long groupId_; - std::string groupRuleArrayJson_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleResult.h b/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleResult.h deleted file mode 100644 index bed3f01fb..000000000 --- a/cms/include/alibabacloud/cms/model/PutGroupDynamicRuleResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutGroupDynamicRuleResult : public ServiceResult - { - public: - - - PutGroupDynamicRuleResult(); - explicit PutGroupDynamicRuleResult(const std::string &payload); - ~PutGroupDynamicRuleResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTGROUPDYNAMICRULERESULT_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 new file mode 100644 index 000000000..13c350d5b --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutGroupMetricRuleRequest.h @@ -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. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTGROUPMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTGROUPMETRICRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutGroupMetricRuleRequest : public RpcServiceRequest + { + + public: + PutGroupMetricRuleRequest(); + ~PutGroupMetricRuleRequest(); + + std::string getWebhook()const; + void setWebhook(const std::string& webhook); + std::string getEscalationsWarnComparisonOperator()const; + void setEscalationsWarnComparisonOperator(const std::string& escalationsWarnComparisonOperator); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + std::string getEscalationsInfoStatistics()const; + void setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics); + std::string getEffectiveInterval()const; + void setEffectiveInterval(const std::string& effectiveInterval); + std::string getEscalationsInfoComparisonOperator()const; + void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator); + std::string getNoEffectiveInterval()const; + void setNoEffectiveInterval(const std::string& noEffectiveInterval); + std::string getEmailSubject()const; + void setEmailSubject(const std::string& emailSubject); + int getSilenceTime()const; + void setSilenceTime(int silenceTime); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + int getEscalationsWarnTimes()const; + void setEscalationsWarnTimes(int escalationsWarnTimes); + std::string getPeriod()const; + void setPeriod(const std::string& period); + std::string getEscalationsWarnThreshold()const; + void setEscalationsWarnThreshold(const std::string& escalationsWarnThreshold); + std::string getEscalationsCriticalStatistics()const; + void setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics); + std::string getGroupId()const; + void setGroupId(const std::string& groupId); + int getEscalationsInfoTimes()const; + void setEscalationsInfoTimes(int escalationsInfoTimes); + int getEscalationsCriticalTimes()const; + void setEscalationsCriticalTimes(int escalationsCriticalTimes); + std::string getEscalationsWarnStatistics()const; + void setEscalationsWarnStatistics(const std::string& escalationsWarnStatistics); + std::string getEscalationsInfoThreshold()const; + void setEscalationsInfoThreshold(const std::string& escalationsInfoThreshold); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + std::string getCategory()const; + void setCategory(const std::string& category); + std::string getEscalationsCriticalComparisonOperator()const; + void setEscalationsCriticalComparisonOperator(const std::string& escalationsCriticalComparisonOperator); + std::string getEscalationsCriticalThreshold()const; + void setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold); + std::string getDimensions()const; + void setDimensions(const std::string& dimensions); + + private: + std::string webhook_; + std::string escalationsWarnComparisonOperator_; + std::string ruleName_; + std::string escalationsInfoStatistics_; + std::string effectiveInterval_; + std::string escalationsInfoComparisonOperator_; + std::string noEffectiveInterval_; + std::string emailSubject_; + int silenceTime_; + std::string metricName_; + int escalationsWarnTimes_; + std::string period_; + std::string escalationsWarnThreshold_; + std::string escalationsCriticalStatistics_; + std::string groupId_; + int escalationsInfoTimes_; + int escalationsCriticalTimes_; + std::string escalationsWarnStatistics_; + std::string escalationsInfoThreshold_; + std::string _namespace_; + std::string interval_; + std::string ruleId_; + std::string category_; + std::string escalationsCriticalComparisonOperator_; + std::string escalationsCriticalThreshold_; + std::string dimensions_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTGROUPMETRICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutGroupMetricRuleResult.h b/cms/include/alibabacloud/cms/model/PutGroupMetricRuleResult.h new file mode 100644 index 000000000..46844f989 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutGroupMetricRuleResult.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_PUTGROUPMETRICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTGROUPMETRICRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutGroupMetricRuleResult : public ServiceResult + { + public: + + + PutGroupMetricRuleResult(); + explicit PutGroupMetricRuleResult(const std::string &payload); + ~PutGroupMetricRuleResult(); + 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_PUTGROUPMETRICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutMetricAlarmRequest.h b/cms/include/alibabacloud/cms/model/PutMetricAlarmRequest.h deleted file mode 100644 index 946b71393..000000000 --- a/cms/include/alibabacloud/cms/model/PutMetricAlarmRequest.h +++ /dev/null @@ -1,117 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT PutMetricAlarmRequest : public RpcServiceRequest - { - - public: - PutMetricAlarmRequest(); - ~PutMetricAlarmRequest(); - - std::string getWebhook()const; - void setWebhook(const std::string& webhook); - std::string getSubject()const; - void setSubject(const std::string& subject); - std::string getAlertName()const; - void setAlertName(const std::string& alertName); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getThreshold()const; - void setThreshold(const std::string& threshold); - std::string getEffectiveInterval()const; - void setEffectiveInterval(const std::string& effectiveInterval); - std::string getNoEffectiveInterval()const; - void setNoEffectiveInterval(const std::string& noEffectiveInterval); - 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 getDeepDive()const; - void setDeepDive(const std::string& deepDive); - std::string getPeriod()const; - void setPeriod(const std::string& period); - std::string getContactGroups()const; - void setContactGroups(const std::string& contactGroups); - int getLevel()const; - void setLevel(int level); - std::string getGroupId()const; - void setGroupId(const std::string& groupId); - std::string getResources()const; - void setResources(const std::string& resources); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getFilter()const; - void setFilter(const std::string& filter); - std::string getDisplayName()const; - void setDisplayName(const std::string& displayName); - std::string get_Namespace()const; - void set_Namespace(const std::string& _namespace); - std::string getInterval()const; - void setInterval(const std::string& interval); - std::string getComparisonOperator()const; - void setComparisonOperator(const std::string& comparisonOperator); - std::string getDimensions()const; - void setDimensions(const std::string& dimensions); - std::string getStatistics()const; - void setStatistics(const std::string& statistics); - - private: - std::string webhook_; - std::string subject_; - std::string alertName_; - std::string description_; - std::string threshold_; - std::string effectiveInterval_; - std::string noEffectiveInterval_; - int evaluationCount_; - int silenceTime_; - std::string metricName_; - std::string deepDive_; - std::string period_; - std::string contactGroups_; - int level_; - std::string groupId_; - std::string resources_; - std::string groupName_; - std::string filter_; - std::string displayName_; - std::string _namespace_; - std::string interval_; - std::string comparisonOperator_; - std::string dimensions_; - std::string statistics_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_PUTMETRICALARMREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h index e0de771fa..794e7adb0 100644 --- a/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h +++ b/cms/include/alibabacloud/cms/model/PutMetricRuleTargetsRequest.h @@ -30,28 +30,25 @@ namespace AlibabaCloud { class ALIBABACLOUD_CMS_EXPORT PutMetricRuleTargetsRequest : public RpcServiceRequest { - struct Targets - { - std::string level; - std::string id; - std::string arn; - }; + struct Targets + { + std::string level; + std::string id; + std::string arn; + }; public: PutMetricRuleTargetsRequest(); ~PutMetricRuleTargetsRequest(); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::vector getTargets()const; - void setTargets(const std::vector& targets); - std::string getActions()const; - void setActions(const std::string& actions); + std::vector getTargets()const; + void setTargets(const std::vector& targets); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); private: - std::string ruleName_; - std::vector targets_; - std::string actions_; + std::vector targets_; + std::string ruleId_; }; } diff --git a/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleRequest.h b/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleRequest.h new file mode 100644 index 000000000..5bb7b6a18 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleRequest.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_PUTMONITORGROUPDYNAMICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMONITORGROUPDYNAMICRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutMonitorGroupDynamicRuleRequest : public RpcServiceRequest + { + struct GroupRules + { + std::string filterRelation; + struct Filters + { + std::string function; + std::string name; + std::string value; + }; + std::vector filters; + std::string category; + }; + + public: + PutMonitorGroupDynamicRuleRequest(); + ~PutMonitorGroupDynamicRuleRequest(); + + std::vector getGroupRules()const; + void setGroupRules(const std::vector& groupRules); + long getGroupId()const; + void setGroupId(long groupId); + + private: + std::vector groupRules_; + long groupId_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMONITORGROUPDYNAMICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleResult.h b/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleResult.h new file mode 100644 index 000000000..4443eb679 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutMonitorGroupDynamicRuleResult.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_PUTMONITORGROUPDYNAMICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMONITORGROUPDYNAMICRULERESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutMonitorGroupDynamicRuleResult : public ServiceResult + { + public: + + + PutMonitorGroupDynamicRuleResult(); + explicit PutMonitorGroupDynamicRuleResult(const std::string &payload); + ~PutMonitorGroupDynamicRuleResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMONITORGROUPDYNAMICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/ProfileSetRequest.h b/cms/include/alibabacloud/cms/model/PutMonitoringConfigRequest.h similarity index 68% rename from cms/include/alibabacloud/cms/model/ProfileSetRequest.h rename to cms/include/alibabacloud/cms/model/PutMonitoringConfigRequest.h index a84fa8f2e..3200b686d 100644 --- a/cms/include/alibabacloud/cms/model/ProfileSetRequest.h +++ b/cms/include/alibabacloud/cms/model/PutMonitoringConfigRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_PROFILESETREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_PROFILESETREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGREQUEST_H_ #include #include @@ -28,30 +28,24 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT ProfileSetRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT PutMonitoringConfigRequest : public RpcServiceRequest { public: - ProfileSetRequest(); - ~ProfileSetRequest(); + PutMonitoringConfigRequest(); + ~PutMonitoringConfigRequest(); - bool getEnableInstallAgentNewECS()const; - void setEnableInstallAgentNewECS(bool enableInstallAgentNewECS); - std::string getEnableActiveAlert()const; - void setEnableActiveAlert(const std::string& enableActiveAlert); bool getAutoInstall()const; void setAutoInstall(bool autoInstall); - long getUserId()const; - void setUserId(long userId); + bool getEnableInstallAgentNewECS()const; + void setEnableInstallAgentNewECS(bool enableInstallAgentNewECS); private: - bool enableInstallAgentNewECS_; - std::string enableActiveAlert_; bool autoInstall_; - long userId_; + bool enableInstallAgentNewECS_; }; } } } -#endif // !ALIBABACLOUD_CMS_MODEL_PROFILESETREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutMonitoringConfigResult.h b/cms/include/alibabacloud/cms/model/PutMonitoringConfigResult.h new file mode 100644 index 000000000..c07b57c73 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutMonitoringConfigResult.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_PUTMONITORINGCONFIGRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutMonitoringConfigResult : public ServiceResult + { + public: + + + PutMonitoringConfigResult(); + explicit PutMonitoringConfigResult(const std::string &payload); + ~PutMonitoringConfigResult(); + std::string getMessage()const; + int getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + int code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTMONITORINGCONFIGRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutResourceMetricRuleRequest.h b/cms/include/alibabacloud/cms/model/PutResourceMetricRuleRequest.h new file mode 100644 index 000000000..dcd21ad32 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutResourceMetricRuleRequest.h @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULEREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULEREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutResourceMetricRuleRequest : public RpcServiceRequest + { + + public: + PutResourceMetricRuleRequest(); + ~PutResourceMetricRuleRequest(); + + std::string getWebhook()const; + void setWebhook(const std::string& webhook); + std::string getEscalationsWarnComparisonOperator()const; + void setEscalationsWarnComparisonOperator(const std::string& escalationsWarnComparisonOperator); + std::string getRuleName()const; + void setRuleName(const std::string& ruleName); + std::string getEscalationsInfoStatistics()const; + void setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics); + std::string getEffectiveInterval()const; + void setEffectiveInterval(const std::string& effectiveInterval); + std::string getEscalationsInfoComparisonOperator()const; + void setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator); + std::string getNoEffectiveInterval()const; + void setNoEffectiveInterval(const std::string& noEffectiveInterval); + std::string getEmailSubject()const; + void setEmailSubject(const std::string& emailSubject); + int getSilenceTime()const; + void setSilenceTime(int silenceTime); + std::string getMetricName()const; + void setMetricName(const std::string& metricName); + int getEscalationsWarnTimes()const; + void setEscalationsWarnTimes(int escalationsWarnTimes); + std::string getPeriod()const; + 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 getResources()const; + void setResources(const std::string& resources); + int getEscalationsInfoTimes()const; + void setEscalationsInfoTimes(int escalationsInfoTimes); + int getEscalationsCriticalTimes()const; + void setEscalationsCriticalTimes(int escalationsCriticalTimes); + std::string getEscalationsWarnStatistics()const; + void setEscalationsWarnStatistics(const std::string& escalationsWarnStatistics); + std::string getEscalationsInfoThreshold()const; + void setEscalationsInfoThreshold(const std::string& escalationsInfoThreshold); + std::string get_Namespace()const; + void set_Namespace(const std::string& _namespace); + std::string getInterval()const; + void setInterval(const std::string& interval); + std::string getRuleId()const; + void setRuleId(const std::string& ruleId); + std::string getEscalationsCriticalComparisonOperator()const; + void setEscalationsCriticalComparisonOperator(const std::string& escalationsCriticalComparisonOperator); + std::string getEscalationsCriticalThreshold()const; + void setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold); + + private: + std::string webhook_; + std::string escalationsWarnComparisonOperator_; + std::string ruleName_; + std::string escalationsInfoStatistics_; + std::string effectiveInterval_; + std::string escalationsInfoComparisonOperator_; + std::string noEffectiveInterval_; + std::string emailSubject_; + int silenceTime_; + std::string metricName_; + int escalationsWarnTimes_; + std::string period_; + std::string escalationsWarnThreshold_; + std::string contactGroups_; + std::string escalationsCriticalStatistics_; + std::string resources_; + int escalationsInfoTimes_; + int escalationsCriticalTimes_; + std::string escalationsWarnStatistics_; + std::string escalationsInfoThreshold_; + std::string _namespace_; + std::string interval_; + std::string ruleId_; + std::string escalationsCriticalComparisonOperator_; + std::string escalationsCriticalThreshold_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/CreateAlarmResult.h b/cms/include/alibabacloud/cms/model/PutResourceMetricRuleResult.h similarity index 72% rename from cms/include/alibabacloud/cms/model/CreateAlarmResult.h rename to cms/include/alibabacloud/cms/model/PutResourceMetricRuleResult.h index 2cce0a639..ddf2d4d42 100644 --- a/cms/include/alibabacloud/cms/model/CreateAlarmResult.h +++ b/cms/include/alibabacloud/cms/model/PutResourceMetricRuleResult.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_CREATEALARMRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_CREATEALARMRESULT_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULERESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULERESULT_H_ #include #include @@ -29,16 +29,15 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT CreateAlarmResult : public ServiceResult + class ALIBABACLOUD_CMS_EXPORT PutResourceMetricRuleResult : public ServiceResult { public: - CreateAlarmResult(); - explicit CreateAlarmResult(const std::string &payload); - ~CreateAlarmResult(); + PutResourceMetricRuleResult(); + explicit PutResourceMetricRuleResult(const std::string &payload); + ~PutResourceMetricRuleResult(); std::string getMessage()const; - std::string getData()const; std::string getCode()const; bool getSuccess()const; @@ -46,7 +45,6 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - std::string data_; std::string code_; bool success_; @@ -54,4 +52,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_CREATEALARMRESULT_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutResourceMetricRulesRequest.h b/cms/include/alibabacloud/cms/model/PutResourceMetricRulesRequest.h new file mode 100644 index 000000000..f7ff16131 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutResourceMetricRulesRequest.h @@ -0,0 +1,76 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutResourceMetricRulesRequest : public RpcServiceRequest + { + struct Rules + { + std::string webhook; + std::string escalationsWarnComparisonOperator; + std::string ruleName; + std::string escalationsInfoStatistics; + std::string effectiveInterval; + std::string escalationsInfoComparisonOperator; + std::string noEffectiveInterval; + std::string emailSubject; + int silenceTime; + std::string metricName; + int escalationsWarnTimes; + std::string period; + std::string escalationsWarnThreshold; + std::string contactGroups; + std::string escalationsCriticalStatistics; + std::string resources; + int escalationsInfoTimes; + int escalationsCriticalTimes; + std::string escalationsWarnStatistics; + std::string escalationsInfoThreshold; + std::string _namespace; + std::string interval; + std::string ruleId; + std::string escalationsCriticalComparisonOperator; + std::string escalationsCriticalThreshold; + }; + + public: + PutResourceMetricRulesRequest(); + ~PutResourceMetricRulesRequest(); + + std::vector getRules()const; + void setRules(const std::vector& rules); + + private: + std::vector rules_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/PutResourceMetricRulesResult.h b/cms/include/alibabacloud/cms/model/PutResourceMetricRulesResult.h new file mode 100644 index 000000000..eafb5aa07 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/PutResourceMetricRulesResult.h @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#ifndef ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT PutResourceMetricRulesResult : public ServiceResult + { + public: + struct Target + { + struct Result + { + std::string message; + std::string code; + bool success; + }; + std::string ruleId; + Result result; + }; + + + PutResourceMetricRulesResult(); + explicit PutResourceMetricRulesResult(const std::string &payload); + ~PutResourceMetricRulesResult(); + std::vector getFailedListResult()const; + std::string getMessage()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::vector failedListResult_; + std::string message_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_PUTRESOURCEMETRICRULESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryCustomEventCountRequest.h b/cms/include/alibabacloud/cms/model/QueryCustomEventCountRequest.h deleted file mode 100644 index 55683579b..000000000 --- a/cms/include/alibabacloud/cms/model/QueryCustomEventCountRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTCOUNTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryCustomEventCountRequest : public RpcServiceRequest - { - - public: - QueryCustomEventCountRequest(); - ~QueryCustomEventCountRequest(); - - std::string getQueryJson()const; - void setQueryJson(const std::string& queryJson); - - private: - std::string queryJson_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTCOUNTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryCustomEventCountResult.h b/cms/include/alibabacloud/cms/model/QueryCustomEventCountResult.h deleted file mode 100644 index 4f3221c04..000000000 --- a/cms/include/alibabacloud/cms/model/QueryCustomEventCountResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTCOUNTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryCustomEventCountResult : public ServiceResult - { - public: - - - QueryCustomEventCountResult(); - explicit QueryCustomEventCountResult(const std::string &payload); - ~QueryCustomEventCountResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTCOUNTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryCustomEventDetailResult.h b/cms/include/alibabacloud/cms/model/QueryCustomEventDetailResult.h deleted file mode 100644 index 5503815b4..000000000 --- a/cms/include/alibabacloud/cms/model/QueryCustomEventDetailResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTDETAILRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryCustomEventDetailResult : public ServiceResult - { - public: - - - QueryCustomEventDetailResult(); - explicit QueryCustomEventDetailResult(const std::string &payload); - ~QueryCustomEventDetailResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTDETAILRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h b/cms/include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h deleted file mode 100644 index c019b3055..000000000 --- a/cms/include/alibabacloud/cms/model/QueryCustomEventHistogramResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTHISTOGRAMRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTHISTOGRAMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryCustomEventHistogramResult : public ServiceResult - { - public: - - - QueryCustomEventHistogramResult(); - explicit QueryCustomEventHistogramResult(const std::string &payload); - ~QueryCustomEventHistogramResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYCUSTOMEVENTHISTOGRAMRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryErrorDistributionRequest.h b/cms/include/alibabacloud/cms/model/QueryErrorDistributionRequest.h deleted file mode 100644 index 6953b0998..000000000 --- a/cms/include/alibabacloud/cms/model/QueryErrorDistributionRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryErrorDistributionRequest : public RpcServiceRequest - { - - public: - QueryErrorDistributionRequest(); - ~QueryErrorDistributionRequest(); - - std::string getTimeRange()const; - void setTimeRange(const std::string& timeRange); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string timeRange_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryErrorDistributionResult.h b/cms/include/alibabacloud/cms/model/QueryErrorDistributionResult.h deleted file mode 100644 index 108fb6b8f..000000000 --- a/cms/include/alibabacloud/cms/model/QueryErrorDistributionResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryErrorDistributionResult : public ServiceResult - { - public: - - - QueryErrorDistributionResult(); - explicit QueryErrorDistributionResult(const std::string &payload); - ~QueryErrorDistributionResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYERRORDISTRIBUTIONRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryMonitorDataResult.h b/cms/include/alibabacloud/cms/model/QueryMonitorDataResult.h deleted file mode 100644 index e0e85127f..000000000 --- a/cms/include/alibabacloud/cms/model/QueryMonitorDataResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATARESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryMonitorDataResult : public ServiceResult - { - public: - - - QueryMonitorDataResult(); - explicit QueryMonitorDataResult(const std::string &payload); - ~QueryMonitorDataResult(); - std::string getMessage()const; - std::string getTraceId()const; - std::string getData()const; - std::string getCursor()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string traceId_; - std::string data_; - std::string cursor_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYMONITORDATARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateRequest.h b/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateRequest.h deleted file mode 100644 index 6c76c0130..000000000 --- a/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryStaticsErrorRateRequest : public RpcServiceRequest - { - - public: - QueryStaticsErrorRateRequest(); - ~QueryStaticsErrorRateRequest(); - - std::string getTimeRange()const; - void setTimeRange(const std::string& timeRange); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string timeRange_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateResult.h b/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateResult.h deleted file mode 100644 index 53ccdf2bc..000000000 --- a/cms/include/alibabacloud/cms/model/QueryStaticsErrorRateResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryStaticsErrorRateResult : public ServiceResult - { - public: - - - QueryStaticsErrorRateResult(); - explicit QueryStaticsErrorRateResult(const std::string &payload); - ~QueryStaticsErrorRateResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSERRORRATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeRequest.h b/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeRequest.h deleted file mode 100644 index 19bb5d6b2..000000000 --- a/cms/include/alibabacloud/cms/model/QueryStaticsResponseTimeRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryStaticsResponseTimeRequest : public RpcServiceRequest - { - - public: - QueryStaticsResponseTimeRequest(); - ~QueryStaticsResponseTimeRequest(); - - std::string getTimeRange()const; - void setTimeRange(const std::string& timeRange); - std::string getTaskId()const; - void setTaskId(const std::string& taskId); - - private: - std::string timeRange_; - std::string taskId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSTATICSRESPONSETIMEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventCountRequest.h b/cms/include/alibabacloud/cms/model/QuerySystemEventCountRequest.h deleted file mode 100644 index a35e919cc..000000000 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventCountRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTCOUNTREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTCOUNTREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QuerySystemEventCountRequest : public RpcServiceRequest - { - - public: - QuerySystemEventCountRequest(); - ~QuerySystemEventCountRequest(); - - std::string getQueryJson()const; - void setQueryJson(const std::string& queryJson); - - private: - std::string queryJson_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTCOUNTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventCountResult.h b/cms/include/alibabacloud/cms/model/QuerySystemEventCountResult.h deleted file mode 100644 index 37f160e2b..000000000 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventCountResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTCOUNTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTCOUNTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QuerySystemEventCountResult : public ServiceResult - { - public: - - - QuerySystemEventCountResult(); - explicit QuerySystemEventCountResult(const std::string &payload); - ~QuerySystemEventCountResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTCOUNTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventDemoRequest.h b/cms/include/alibabacloud/cms/model/QuerySystemEventDemoRequest.h deleted file mode 100644 index 5388bc1f2..000000000 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventDemoRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMOREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMOREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QuerySystemEventDemoRequest : public RpcServiceRequest - { - - public: - QuerySystemEventDemoRequest(); - ~QuerySystemEventDemoRequest(); - - std::string getProduct()const; - void setProduct(const std::string& product); - std::string getEventName()const; - void setEventName(const std::string& eventName); - - private: - std::string product_; - std::string eventName_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMOREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventDemoResult.h b/cms/include/alibabacloud/cms/model/QuerySystemEventDemoResult.h deleted file mode 100644 index 2bbb2c697..000000000 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventDemoResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMORESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMORESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QuerySystemEventDemoResult : public ServiceResult - { - public: - - - QuerySystemEventDemoResult(); - explicit QuerySystemEventDemoResult(const std::string &payload); - ~QuerySystemEventDemoResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDEMORESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventDetailResult.h b/cms/include/alibabacloud/cms/model/QuerySystemEventDetailResult.h deleted file mode 100644 index 091c9d958..000000000 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventDetailResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDETAILRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDETAILRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QuerySystemEventDetailResult : public ServiceResult - { - public: - - - QuerySystemEventDetailResult(); - explicit QuerySystemEventDetailResult(const std::string &payload); - ~QuerySystemEventDetailResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTDETAILRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h b/cms/include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h deleted file mode 100644 index 2210b108b..000000000 --- a/cms/include/alibabacloud/cms/model/QuerySystemEventHistogramResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTHISTOGRAMRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTHISTOGRAMRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QuerySystemEventHistogramResult : public ServiceResult - { - public: - - - QuerySystemEventHistogramResult(); - explicit QuerySystemEventHistogramResult(const std::string &payload); - ~QuerySystemEventHistogramResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYSYSTEMEVENTHISTOGRAMRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataResult.h b/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataResult.h deleted file mode 100644 index 00c7e7bb6..000000000 --- a/cms/include/alibabacloud/cms/model/QueryTaskMonitorDataResult.h +++ /dev/null @@ -1,61 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATARESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATARESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT QueryTaskMonitorDataResult : public ServiceResult - { - public: - - - QueryTaskMonitorDataResult(); - explicit QueryTaskMonitorDataResult(const std::string &payload); - ~QueryTaskMonitorDataResult(); - std::string getMessage()const; - std::string getTraceId()const; - std::string getData()const; - std::string getCursor()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string traceId_; - std::string data_; - std::string cursor_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_QUERYTASKMONITORDATARESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsRequest.h b/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsRequest.h deleted file mode 100644 index ebd9f075f..000000000 --- a/cms/include/alibabacloud/cms/model/RemoveMetricRuleTargetsRequest.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT RemoveMetricRuleTargetsRequest : public RpcServiceRequest - { - - public: - RemoveMetricRuleTargetsRequest(); - ~RemoveMetricRuleTargetsRequest(); - - std::vector getTargetIds()const; - void setTargetIds(const std::vector& targetIds); - std::string getRuleName()const; - void setRuleName(const std::string& ruleName); - std::vector getContactGroupTargetIds()const; - void setContactGroupTargetIds(const std::vector& contactGroupTargetIds); - std::vector getWebhookTargetIds()const; - void setWebhookTargetIds(const std::vector& webhookTargetIds); - - private: - std::vector targetIds_; - std::string ruleName_; - std::vector contactGroupTargetIds_; - std::vector webhookTargetIds_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_REMOVEMETRICRULETARGETSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/RemoveTagsRequest.h b/cms/include/alibabacloud/cms/model/RemoveTagsRequest.h new file mode 100644 index 000000000..0c4117ac7 --- /dev/null +++ b/cms/include/alibabacloud/cms/model/RemoveTagsRequest.h @@ -0,0 +1,56 @@ +/* + * 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_REMOVETAGSREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_REMOVETAGSREQUEST_H_ + +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT RemoveTagsRequest : public RpcServiceRequest + { + struct Tag + { + std::string value; + std::string key; + }; + + public: + RemoveTagsRequest(); + ~RemoveTagsRequest(); + + std::vector getGroupIds()const; + void setGroupIds(const std::vector& groupIds); + std::vector getTag()const; + void setTag(const std::vector& tag); + + private: + std::vector groupIds_; + std::vector tag_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_REMOVETAGSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/RemoveTagsResult.h b/cms/include/alibabacloud/cms/model/RemoveTagsResult.h new file mode 100644 index 000000000..6a2fccc1f --- /dev/null +++ b/cms/include/alibabacloud/cms/model/RemoveTagsResult.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_REMOVETAGSRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_REMOVETAGSRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT RemoveTagsResult : public ServiceResult + { + public: + + + RemoveTagsResult(); + explicit RemoveTagsResult(const std::string &payload); + ~RemoveTagsResult(); + std::string getMessage()const; + std::vector getTag()const; + std::string getCode()const; + bool getSuccess()const; + + protected: + void parse(const std::string &payload); + private: + std::string message_; + std::vector tag_; + std::string code_; + bool success_; + + }; + } + } +} +#endif // !ALIBABACLOUD_CMS_MODEL_REMOVETAGSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/SendDryRunSystemEventResult.h b/cms/include/alibabacloud/cms/model/SendDryRunSystemEventResult.h index f5e764d8e..7856fec9e 100644 --- a/cms/include/alibabacloud/cms/model/SendDryRunSystemEventResult.h +++ b/cms/include/alibabacloud/cms/model/SendDryRunSystemEventResult.h @@ -38,7 +38,6 @@ namespace AlibabaCloud explicit SendDryRunSystemEventResult(const std::string &payload); ~SendDryRunSystemEventResult(); std::string getMessage()const; - std::string getData()const; std::string getCode()const; std::string getSuccess()const; @@ -46,7 +45,6 @@ namespace AlibabaCloud void parse(const std::string &payload); private: std::string message_; - std::string data_; std::string code_; std::string success_; diff --git a/cms/include/alibabacloud/cms/model/StartTasksResult.h b/cms/include/alibabacloud/cms/model/StartTasksResult.h deleted file mode 100644 index 2ca85d9c3..000000000 --- a/cms/include/alibabacloud/cms/model/StartTasksResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_STARTTASKSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_STARTTASKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT StartTasksResult : public ServiceResult - { - public: - - - StartTasksResult(); - explicit StartTasksResult(const std::string &payload); - ~StartTasksResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_STARTTASKSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/StopTasksResult.h b/cms/include/alibabacloud/cms/model/StopTasksResult.h deleted file mode 100644 index 87cc9fe3a..000000000 --- a/cms/include/alibabacloud/cms/model/StopTasksResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_STOPTASKSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_STOPTASKSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT StopTasksResult : public ServiceResult - { - public: - - - StopTasksResult(); - explicit StopTasksResult(const std::string &payload); - ~StopTasksResult(); - std::string getMessage()const; - std::string getData()const; - std::string getCode()const; - std::string getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - std::string message_; - std::string data_; - std::string code_; - std::string success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_STOPTASKSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigCreateRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigCreateRequest.h deleted file mode 100644 index 2552644c8..000000000 --- a/cms/include/alibabacloud/cms/model/TaskConfigCreateRequest.h +++ /dev/null @@ -1,69 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT TaskConfigCreateRequest : public RpcServiceRequest - { - - public: - TaskConfigCreateRequest(); - ~TaskConfigCreateRequest(); - - std::vector getInstanceList()const; - void setInstanceList(const std::vector& instanceList); - std::string getJsonData()const; - void setJsonData(const std::string& jsonData); - std::string getTaskType()const; - void setTaskType(const std::string& taskType); - std::string getAlertConfig()const; - void setAlertConfig(const std::string& alertConfig); - long getGroupId()const; - void setGroupId(long groupId); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getTaskScope()const; - void setTaskScope(const std::string& taskScope); - - private: - std::vector instanceList_; - std::string jsonData_; - std::string taskType_; - std::string alertConfig_; - long groupId_; - std::string taskName_; - std::string groupName_; - std::string taskScope_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigCreateResult.h b/cms/include/alibabacloud/cms/model/TaskConfigCreateResult.h deleted file mode 100644 index 3e0444025..000000000 --- a/cms/include/alibabacloud/cms/model/TaskConfigCreateResult.h +++ /dev/null @@ -1,57 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT TaskConfigCreateResult : public ServiceResult - { - public: - - - TaskConfigCreateResult(); - explicit TaskConfigCreateResult(const std::string &payload); - ~TaskConfigCreateResult(); - long getTaskId()const; - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - long taskId_; - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGCREATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigDeleteRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigDeleteRequest.h deleted file mode 100644 index 9f7ca425c..000000000 --- a/cms/include/alibabacloud/cms/model/TaskConfigDeleteRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT TaskConfigDeleteRequest : public RpcServiceRequest - { - - public: - TaskConfigDeleteRequest(); - ~TaskConfigDeleteRequest(); - - std::vector getIdList()const; - void setIdList(const std::vector& idList); - - private: - std::vector idList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigDeleteResult.h b/cms/include/alibabacloud/cms/model/TaskConfigDeleteResult.h deleted file mode 100644 index f8a6fb905..000000000 --- a/cms/include/alibabacloud/cms/model/TaskConfigDeleteResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT TaskConfigDeleteResult : public ServiceResult - { - public: - - - TaskConfigDeleteResult(); - explicit TaskConfigDeleteResult(const std::string &payload); - ~TaskConfigDeleteResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGDELETERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigEnableRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigEnableRequest.h deleted file mode 100644 index bce832445..000000000 --- a/cms/include/alibabacloud/cms/model/TaskConfigEnableRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT TaskConfigEnableRequest : public RpcServiceRequest - { - - public: - TaskConfigEnableRequest(); - ~TaskConfigEnableRequest(); - - std::vector getIdList()const; - void setIdList(const std::vector& idList); - bool getEnabled()const; - void setEnabled(bool enabled); - - private: - std::vector idList_; - bool enabled_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigEnableResult.h b/cms/include/alibabacloud/cms/model/TaskConfigEnableResult.h deleted file mode 100644 index 2c7b7407a..000000000 --- a/cms/include/alibabacloud/cms/model/TaskConfigEnableResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT TaskConfigEnableResult : public ServiceResult - { - public: - - - TaskConfigEnableResult(); - explicit TaskConfigEnableResult(const std::string &payload); - ~TaskConfigEnableResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGENABLERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigModifyRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigModifyRequest.h deleted file mode 100644 index c7ac8d7f8..000000000 --- a/cms/include/alibabacloud/cms/model/TaskConfigModifyRequest.h +++ /dev/null @@ -1,72 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT TaskConfigModifyRequest : public RpcServiceRequest - { - - public: - TaskConfigModifyRequest(); - ~TaskConfigModifyRequest(); - - std::vector getInstanceList()const; - void setInstanceList(const std::vector& instanceList); - std::string getJsonData()const; - void setJsonData(const std::string& jsonData); - std::string getTaskType()const; - void setTaskType(const std::string& taskType); - std::string getAlertConfig()const; - void setAlertConfig(const std::string& alertConfig); - long getGroupId()const; - void setGroupId(long groupId); - std::string getTaskName()const; - void setTaskName(const std::string& taskName); - std::string getGroupName()const; - void setGroupName(const std::string& groupName); - std::string getTaskScope()const; - void setTaskScope(const std::string& taskScope); - long getId()const; - void setId(long id); - - private: - std::vector instanceList_; - std::string jsonData_; - std::string taskType_; - std::string alertConfig_; - long groupId_; - std::string taskName_; - std::string groupName_; - std::string taskScope_; - long id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigModifyResult.h b/cms/include/alibabacloud/cms/model/TaskConfigModifyResult.h deleted file mode 100644 index 5d46fc9b6..000000000 --- a/cms/include/alibabacloud/cms/model/TaskConfigModifyResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT TaskConfigModifyResult : public ServiceResult - { - public: - - - TaskConfigModifyResult(); - explicit TaskConfigModifyResult(const std::string &payload); - ~TaskConfigModifyResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGMODIFYRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyRequest.h b/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyRequest.h deleted file mode 100644 index ebf493755..000000000 --- a/cms/include/alibabacloud/cms/model/TaskConfigUnhealthyRequest.h +++ /dev/null @@ -1,48 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT TaskConfigUnhealthyRequest : public RpcServiceRequest - { - - public: - TaskConfigUnhealthyRequest(); - ~TaskConfigUnhealthyRequest(); - - std::vector getTaskIdList()const; - void setTaskIdList(const std::vector& taskIdList); - - private: - std::vector taskIdList_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_TASKCONFIGUNHEALTHYREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/NodeStatusRequest.h b/cms/include/alibabacloud/cms/model/UninstallMonitoringAgentRequest.h similarity index 72% rename from cms/include/alibabacloud/cms/model/NodeStatusRequest.h rename to cms/include/alibabacloud/cms/model/UninstallMonitoringAgentRequest.h index caad6740c..850e764a3 100644 --- a/cms/include/alibabacloud/cms/model/NodeStatusRequest.h +++ b/cms/include/alibabacloud/cms/model/UninstallMonitoringAgentRequest.h @@ -14,8 +14,8 @@ * limitations under the License. */ -#ifndef ALIBABACLOUD_CMS_MODEL_NODESTATUSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_NODESTATUSREQUEST_H_ +#ifndef ALIBABACLOUD_CMS_MODEL_UNINSTALLMONITORINGAGENTREQUEST_H_ +#define ALIBABACLOUD_CMS_MODEL_UNINSTALLMONITORINGAGENTREQUEST_H_ #include #include @@ -28,12 +28,12 @@ namespace AlibabaCloud { namespace Model { - class ALIBABACLOUD_CMS_EXPORT NodeStatusRequest : public RpcServiceRequest + class ALIBABACLOUD_CMS_EXPORT UninstallMonitoringAgentRequest : public RpcServiceRequest { public: - NodeStatusRequest(); - ~NodeStatusRequest(); + UninstallMonitoringAgentRequest(); + ~UninstallMonitoringAgentRequest(); std::string getInstanceId()const; void setInstanceId(const std::string& instanceId); @@ -45,4 +45,4 @@ namespace AlibabaCloud } } } -#endif // !ALIBABACLOUD_CMS_MODEL_NODESTATUSREQUEST_H_ \ No newline at end of file +#endif // !ALIBABACLOUD_CMS_MODEL_UNINSTALLMONITORINGAGENTREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UninstallMonitoringAgentResult.h b/cms/include/alibabacloud/cms/model/UninstallMonitoringAgentResult.h new file mode 100644 index 000000000..489bff1fb --- /dev/null +++ b/cms/include/alibabacloud/cms/model/UninstallMonitoringAgentResult.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_UNINSTALLMONITORINGAGENTRESULT_H_ +#define ALIBABACLOUD_CMS_MODEL_UNINSTALLMONITORINGAGENTRESULT_H_ + +#include +#include +#include +#include +#include + +namespace AlibabaCloud +{ + namespace Cms + { + namespace Model + { + class ALIBABACLOUD_CMS_EXPORT UninstallMonitoringAgentResult : public ServiceResult + { + public: + + + UninstallMonitoringAgentResult(); + explicit UninstallMonitoringAgentResult(const std::string &payload); + ~UninstallMonitoringAgentResult(); + 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_UNINSTALLMONITORINGAGENTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateAlarmRequest.h b/cms/include/alibabacloud/cms/model/UpdateAlarmRequest.h deleted file mode 100644 index 4e183d578..000000000 --- a/cms/include/alibabacloud/cms/model/UpdateAlarmRequest.h +++ /dev/null @@ -1,87 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEALARMREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEALARMREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UpdateAlarmRequest : public RpcServiceRequest - { - - public: - UpdateAlarmRequest(); - ~UpdateAlarmRequest(); - - std::string getWebhook()const; - void setWebhook(const std::string& webhook); - std::string getThreshold()const; - void setThreshold(const std::string& threshold); - int getStartTime()const; - void setStartTime(int startTime); - int getEvaluationCount()const; - void setEvaluationCount(int evaluationCount); - int getSilenceTime()const; - void setSilenceTime(int silenceTime); - std::string getId()const; - void setId(const std::string& id); - int getNotifyType()const; - void setNotifyType(int notifyType); - int getPeriod()const; - void setPeriod(int period); - bool getDryRun()const; - void setDryRun(bool dryRun); - std::string getContactGroups()const; - void setContactGroups(const std::string& contactGroups); - int getEndTime()const; - void setEndTime(int endTime); - std::string getName()const; - void setName(const std::string& name); - 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 threshold_; - int startTime_; - int evaluationCount_; - int silenceTime_; - std::string id_; - int notifyType_; - int period_; - bool dryRun_; - std::string contactGroups_; - int endTime_; - std::string name_; - std::string comparisonOperator_; - std::string statistics_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEALARMREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateRequest.h b/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateRequest.h deleted file mode 100644 index b4272addb..000000000 --- a/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateRequest.h +++ /dev/null @@ -1,63 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATEREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATEREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UpdateMonitoringTemplateRequest : public RpcServiceRequest - { - - public: - UpdateMonitoringTemplateRequest(); - ~UpdateMonitoringTemplateRequest(); - - std::string getEventRuleTemplatesJson()const; - void setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson); - long getRestVersion()const; - void setRestVersion(long restVersion); - std::string getDescription()const; - void setDescription(const std::string& description); - std::string getAlertTemplatesJson()const; - void setAlertTemplatesJson(const std::string& alertTemplatesJson); - std::string getName()const; - void setName(const std::string& name); - long getId()const; - void setId(long id); - - private: - std::string eventRuleTemplatesJson_; - long restVersion_; - std::string description_; - std::string alertTemplatesJson_; - std::string name_; - long id_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATEREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateResult.h b/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateResult.h deleted file mode 100644 index eeae5c074..000000000 --- a/cms/include/alibabacloud/cms/model/UpdateMonitoringTemplateResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATERESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATERESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UpdateMonitoringTemplateResult : public ServiceResult - { - public: - - - UpdateMonitoringTemplateResult(); - explicit UpdateMonitoringTemplateResult(const std::string &payload); - ~UpdateMonitoringTemplateResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMONITORINGTEMPLATERESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertResult.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertResult.h deleted file mode 100644 index c86575368..000000000 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupAlertResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupAlertResult : public ServiceResult - { - public: - - - UpdateMyGroupAlertResult(); - explicit UpdateMyGroupAlertResult(const std::string &payload); - ~UpdateMyGroupAlertResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPALERTRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesRequest.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesRequest.h deleted file mode 100644 index 78d735931..000000000 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesRequest.h +++ /dev/null @@ -1,51 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPINSTANCESREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPINSTANCESREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupInstancesRequest : public RpcServiceRequest - { - - public: - UpdateMyGroupInstancesRequest(); - ~UpdateMyGroupInstancesRequest(); - - std::string getInstances()const; - void setInstances(const std::string& instances); - long getGroupId()const; - void setGroupId(long groupId); - - private: - std::string instances_; - long groupId_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPINSTANCESREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesResult.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesResult.h deleted file mode 100644 index 7a6723ec4..000000000 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupInstancesResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPINSTANCESRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPINSTANCESRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupInstancesResult : public ServiceResult - { - public: - - - UpdateMyGroupInstancesResult(); - explicit UpdateMyGroupInstancesResult(const std::string &payload); - ~UpdateMyGroupInstancesResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPINSTANCESRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersRequest.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersRequest.h deleted file mode 100644 index 3a402631a..000000000 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersRequest.h +++ /dev/null @@ -1,54 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSREQUEST_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSREQUEST_H_ - -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupMembersRequest : public RpcServiceRequest - { - - public: - UpdateMyGroupMembersRequest(); - ~UpdateMyGroupMembersRequest(); - - std::string getReaders()const; - void setReaders(const std::string& readers); - long getGroupId()const; - void setGroupId(long groupId); - std::string getMasters()const; - void setMasters(const std::string& masters); - - private: - std::string readers_; - long groupId_; - std::string masters_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSREQUEST_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersResult.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersResult.h deleted file mode 100644 index 4d7817455..000000000 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupMembersResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupMembersResult : public ServiceResult - { - public: - - - UpdateMyGroupMembersResult(); - explicit UpdateMyGroupMembersResult(const std::string &payload); - ~UpdateMyGroupMembersResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPMEMBERSRESULT_H_ \ No newline at end of file diff --git a/cms/include/alibabacloud/cms/model/UpdateMyGroupsResult.h b/cms/include/alibabacloud/cms/model/UpdateMyGroupsResult.h deleted file mode 100644 index 411ff8bd7..000000000 --- a/cms/include/alibabacloud/cms/model/UpdateMyGroupsResult.h +++ /dev/null @@ -1,55 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#ifndef ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPSRESULT_H_ -#define ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPSRESULT_H_ - -#include -#include -#include -#include -#include - -namespace AlibabaCloud -{ - namespace Cms - { - namespace Model - { - class ALIBABACLOUD_CMS_EXPORT UpdateMyGroupsResult : public ServiceResult - { - public: - - - UpdateMyGroupsResult(); - explicit UpdateMyGroupsResult(const std::string &payload); - ~UpdateMyGroupsResult(); - int getErrorCode()const; - std::string getErrorMessage()const; - bool getSuccess()const; - - protected: - void parse(const std::string &payload); - private: - int errorCode_; - std::string errorMessage_; - bool success_; - - }; - } - } -} -#endif // !ALIBABACLOUD_CMS_MODEL_UPDATEMYGROUPSRESULT_H_ \ No newline at end of file diff --git a/cms/src/CmsClient.cc b/cms/src/CmsClient.cc index 4bfc617ce..32ac61093 100644 --- a/cms/src/CmsClient.cc +++ b/cms/src/CmsClient.cc @@ -51,396 +51,540 @@ CmsClient::CmsClient(const std::string & accessKeyId, const std::string & access CmsClient::~CmsClient() {} -CmsClient::AccessKeyGetOutcome CmsClient::accessKeyGet(const AccessKeyGetRequest &request) const +CmsClient::AddTagsOutcome CmsClient::addTags(const AddTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AccessKeyGetOutcome(endpointOutcome.error()); + return AddTagsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AccessKeyGetOutcome(AccessKeyGetResult(outcome.result())); + return AddTagsOutcome(AddTagsResult(outcome.result())); else - return AccessKeyGetOutcome(outcome.error()); + return AddTagsOutcome(outcome.error()); } -void CmsClient::accessKeyGetAsync(const AccessKeyGetRequest& request, const AccessKeyGetAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::addTagsAsync(const AddTagsRequest& request, const AddTagsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, accessKeyGet(request), context); + handler(this, request, addTags(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::AccessKeyGetOutcomeCallable CmsClient::accessKeyGetCallable(const AccessKeyGetRequest &request) const +CmsClient::AddTagsOutcomeCallable CmsClient::addTagsCallable(const AddTagsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->accessKeyGet(request); + return this->addTags(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::AddMyGroupInstancesOutcome CmsClient::addMyGroupInstances(const AddMyGroupInstancesRequest &request) const +CmsClient::ApplyMetricRuleTemplateOutcome CmsClient::applyMetricRuleTemplate(const ApplyMetricRuleTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return AddMyGroupInstancesOutcome(endpointOutcome.error()); + return ApplyMetricRuleTemplateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return AddMyGroupInstancesOutcome(AddMyGroupInstancesResult(outcome.result())); + return ApplyMetricRuleTemplateOutcome(ApplyMetricRuleTemplateResult(outcome.result())); else - return AddMyGroupInstancesOutcome(outcome.error()); + return ApplyMetricRuleTemplateOutcome(outcome.error()); } -void CmsClient::addMyGroupInstancesAsync(const AddMyGroupInstancesRequest& request, const AddMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::applyMetricRuleTemplateAsync(const ApplyMetricRuleTemplateRequest& request, const ApplyMetricRuleTemplateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, addMyGroupInstances(request), context); + handler(this, request, applyMetricRuleTemplate(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::AddMyGroupInstancesOutcomeCallable CmsClient::addMyGroupInstancesCallable(const AddMyGroupInstancesRequest &request) const +CmsClient::ApplyMetricRuleTemplateOutcomeCallable CmsClient::applyMetricRuleTemplateCallable(const ApplyMetricRuleTemplateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->addMyGroupInstances(request); + return this->applyMetricRuleTemplate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ApplyMonitoringTemplateOutcome CmsClient::applyMonitoringTemplate(const ApplyMonitoringTemplateRequest &request) const +CmsClient::CreateGroupMetricRulesOutcome CmsClient::createGroupMetricRules(const CreateGroupMetricRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ApplyMonitoringTemplateOutcome(endpointOutcome.error()); + return CreateGroupMetricRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ApplyMonitoringTemplateOutcome(ApplyMonitoringTemplateResult(outcome.result())); + return CreateGroupMetricRulesOutcome(CreateGroupMetricRulesResult(outcome.result())); else - return ApplyMonitoringTemplateOutcome(outcome.error()); + return CreateGroupMetricRulesOutcome(outcome.error()); } -void CmsClient::applyMonitoringTemplateAsync(const ApplyMonitoringTemplateRequest& request, const ApplyMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createGroupMetricRulesAsync(const CreateGroupMetricRulesRequest& request, const CreateGroupMetricRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, applyMonitoringTemplate(request), context); + handler(this, request, createGroupMetricRules(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ApplyMonitoringTemplateOutcomeCallable CmsClient::applyMonitoringTemplateCallable(const ApplyMonitoringTemplateRequest &request) const +CmsClient::CreateGroupMetricRulesOutcomeCallable CmsClient::createGroupMetricRulesCallable(const CreateGroupMetricRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->applyMonitoringTemplate(request); + return this->createGroupMetricRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ApplyTemplateOutcome CmsClient::applyTemplate(const ApplyTemplateRequest &request) const +CmsClient::CreateGroupMonitoringAgentProcessOutcome CmsClient::createGroupMonitoringAgentProcess(const CreateGroupMonitoringAgentProcessRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ApplyTemplateOutcome(endpointOutcome.error()); + return CreateGroupMonitoringAgentProcessOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ApplyTemplateOutcome(ApplyTemplateResult(outcome.result())); + return CreateGroupMonitoringAgentProcessOutcome(CreateGroupMonitoringAgentProcessResult(outcome.result())); else - return ApplyTemplateOutcome(outcome.error()); + return CreateGroupMonitoringAgentProcessOutcome(outcome.error()); } -void CmsClient::applyTemplateAsync(const ApplyTemplateRequest& request, const ApplyTemplateAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createGroupMonitoringAgentProcessAsync(const CreateGroupMonitoringAgentProcessRequest& request, const CreateGroupMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, applyTemplate(request), context); + handler(this, request, createGroupMonitoringAgentProcess(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ApplyTemplateOutcomeCallable CmsClient::applyTemplateCallable(const ApplyTemplateRequest &request) const +CmsClient::CreateGroupMonitoringAgentProcessOutcomeCallable CmsClient::createGroupMonitoringAgentProcessCallable(const CreateGroupMonitoringAgentProcessRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->applyTemplate(request); + return this->createGroupMonitoringAgentProcess(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::CreateAlarmOutcome CmsClient::createAlarm(const CreateAlarmRequest &request) const +CmsClient::CreateHostAvailabilityOutcome CmsClient::createHostAvailability(const CreateHostAvailabilityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateAlarmOutcome(endpointOutcome.error()); + return CreateHostAvailabilityOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateAlarmOutcome(CreateAlarmResult(outcome.result())); + return CreateHostAvailabilityOutcome(CreateHostAvailabilityResult(outcome.result())); else - return CreateAlarmOutcome(outcome.error()); + return CreateHostAvailabilityOutcome(outcome.error()); } -void CmsClient::createAlarmAsync(const CreateAlarmRequest& request, const CreateAlarmAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createHostAvailabilityAsync(const CreateHostAvailabilityRequest& request, const CreateHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createAlarm(request), context); + handler(this, request, createHostAvailability(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::CreateAlarmOutcomeCallable CmsClient::createAlarmCallable(const CreateAlarmRequest &request) const +CmsClient::CreateHostAvailabilityOutcomeCallable CmsClient::createHostAvailabilityCallable(const CreateHostAvailabilityRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createAlarm(request); + return this->createHostAvailability(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::CreateMonitoringTemplateOutcome CmsClient::createMonitoringTemplate(const CreateMonitoringTemplateRequest &request) const +CmsClient::CreateMetricRuleResourcesOutcome CmsClient::createMetricRuleResources(const CreateMetricRuleResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateMonitoringTemplateOutcome(endpointOutcome.error()); + return CreateMetricRuleResourcesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateMonitoringTemplateOutcome(CreateMonitoringTemplateResult(outcome.result())); + return CreateMetricRuleResourcesOutcome(CreateMetricRuleResourcesResult(outcome.result())); else - return CreateMonitoringTemplateOutcome(outcome.error()); + return CreateMetricRuleResourcesOutcome(outcome.error()); } -void CmsClient::createMonitoringTemplateAsync(const CreateMonitoringTemplateRequest& request, const CreateMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createMetricRuleResourcesAsync(const CreateMetricRuleResourcesRequest& request, const CreateMetricRuleResourcesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createMonitoringTemplate(request), context); + handler(this, request, createMetricRuleResources(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::CreateMonitoringTemplateOutcomeCallable CmsClient::createMonitoringTemplateCallable(const CreateMonitoringTemplateRequest &request) const +CmsClient::CreateMetricRuleResourcesOutcomeCallable CmsClient::createMetricRuleResourcesCallable(const CreateMetricRuleResourcesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createMonitoringTemplate(request); + return this->createMetricRuleResources(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::CreateMyGroupAlertBatchOutcome CmsClient::createMyGroupAlertBatch(const CreateMyGroupAlertBatchRequest &request) const +CmsClient::CreateMetricRuleTemplateOutcome CmsClient::createMetricRuleTemplate(const CreateMetricRuleTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateMyGroupAlertBatchOutcome(endpointOutcome.error()); + return CreateMetricRuleTemplateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateMyGroupAlertBatchOutcome(CreateMyGroupAlertBatchResult(outcome.result())); + return CreateMetricRuleTemplateOutcome(CreateMetricRuleTemplateResult(outcome.result())); else - return CreateMyGroupAlertBatchOutcome(outcome.error()); + return CreateMetricRuleTemplateOutcome(outcome.error()); } -void CmsClient::createMyGroupAlertBatchAsync(const CreateMyGroupAlertBatchRequest& request, const CreateMyGroupAlertBatchAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createMetricRuleTemplateAsync(const CreateMetricRuleTemplateRequest& request, const CreateMetricRuleTemplateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createMyGroupAlertBatch(request), context); + handler(this, request, createMetricRuleTemplate(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::CreateMyGroupAlertBatchOutcomeCallable CmsClient::createMyGroupAlertBatchCallable(const CreateMyGroupAlertBatchRequest &request) const +CmsClient::CreateMetricRuleTemplateOutcomeCallable CmsClient::createMetricRuleTemplateCallable(const CreateMetricRuleTemplateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createMyGroupAlertBatch(request); + return this->createMetricRuleTemplate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::CreateMyGroupsOutcome CmsClient::createMyGroups(const CreateMyGroupsRequest &request) const +CmsClient::CreateMonitorAgentProcessOutcome CmsClient::createMonitorAgentProcess(const CreateMonitorAgentProcessRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateMyGroupsOutcome(endpointOutcome.error()); + return CreateMonitorAgentProcessOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateMyGroupsOutcome(CreateMyGroupsResult(outcome.result())); + return CreateMonitorAgentProcessOutcome(CreateMonitorAgentProcessResult(outcome.result())); else - return CreateMyGroupsOutcome(outcome.error()); + return CreateMonitorAgentProcessOutcome(outcome.error()); } -void CmsClient::createMyGroupsAsync(const CreateMyGroupsRequest& request, const CreateMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createMonitorAgentProcessAsync(const CreateMonitorAgentProcessRequest& request, const CreateMonitorAgentProcessAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createMyGroups(request), context); + handler(this, request, createMonitorAgentProcess(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::CreateMyGroupsOutcomeCallable CmsClient::createMyGroupsCallable(const CreateMyGroupsRequest &request) const +CmsClient::CreateMonitorAgentProcessOutcomeCallable CmsClient::createMonitorAgentProcessCallable(const CreateMonitorAgentProcessRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createMyGroups(request); + return this->createMonitorAgentProcess(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::CreateNotifyPolicyOutcome CmsClient::createNotifyPolicy(const CreateNotifyPolicyRequest &request) const +CmsClient::CreateMonitorGroupOutcome CmsClient::createMonitorGroup(const CreateMonitorGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateNotifyPolicyOutcome(endpointOutcome.error()); + return CreateMonitorGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateNotifyPolicyOutcome(CreateNotifyPolicyResult(outcome.result())); + return CreateMonitorGroupOutcome(CreateMonitorGroupResult(outcome.result())); else - return CreateNotifyPolicyOutcome(outcome.error()); + return CreateMonitorGroupOutcome(outcome.error()); } -void CmsClient::createNotifyPolicyAsync(const CreateNotifyPolicyRequest& request, const CreateNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createMonitorGroupAsync(const CreateMonitorGroupRequest& request, const CreateMonitorGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createNotifyPolicy(request), context); + handler(this, request, createMonitorGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::CreateNotifyPolicyOutcomeCallable CmsClient::createNotifyPolicyCallable(const CreateNotifyPolicyRequest &request) const +CmsClient::CreateMonitorGroupOutcomeCallable CmsClient::createMonitorGroupCallable(const CreateMonitorGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createNotifyPolicy(request); + return this->createMonitorGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::CreateTaskOutcome CmsClient::createTask(const CreateTaskRequest &request) const +CmsClient::CreateMonitorGroupInstancesOutcome CmsClient::createMonitorGroupInstances(const CreateMonitorGroupInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return CreateTaskOutcome(endpointOutcome.error()); + return CreateMonitorGroupInstancesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return CreateTaskOutcome(CreateTaskResult(outcome.result())); + return CreateMonitorGroupInstancesOutcome(CreateMonitorGroupInstancesResult(outcome.result())); else - return CreateTaskOutcome(outcome.error()); + return CreateMonitorGroupInstancesOutcome(outcome.error()); } -void CmsClient::createTaskAsync(const CreateTaskRequest& request, const CreateTaskAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createMonitorGroupInstancesAsync(const CreateMonitorGroupInstancesRequest& request, const CreateMonitorGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, createTask(request), context); + handler(this, request, createMonitorGroupInstances(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::CreateTaskOutcomeCallable CmsClient::createTaskCallable(const CreateTaskRequest &request) const +CmsClient::CreateMonitorGroupInstancesOutcomeCallable CmsClient::createMonitorGroupInstancesCallable(const CreateMonitorGroupInstancesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->createTask(request); + return this->createMonitorGroupInstances(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DeleteAlarmOutcome CmsClient::deleteAlarm(const DeleteAlarmRequest &request) const +CmsClient::CreateMonitorGroupNotifyPolicyOutcome CmsClient::createMonitorGroupNotifyPolicy(const CreateMonitorGroupNotifyPolicyRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteAlarmOutcome(endpointOutcome.error()); + return CreateMonitorGroupNotifyPolicyOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteAlarmOutcome(DeleteAlarmResult(outcome.result())); + return CreateMonitorGroupNotifyPolicyOutcome(CreateMonitorGroupNotifyPolicyResult(outcome.result())); else - return DeleteAlarmOutcome(outcome.error()); + return CreateMonitorGroupNotifyPolicyOutcome(outcome.error()); } -void CmsClient::deleteAlarmAsync(const DeleteAlarmRequest& request, const DeleteAlarmAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::createMonitorGroupNotifyPolicyAsync(const CreateMonitorGroupNotifyPolicyRequest& request, const CreateMonitorGroupNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteAlarm(request), context); + handler(this, request, createMonitorGroupNotifyPolicy(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteAlarmOutcomeCallable CmsClient::deleteAlarmCallable(const DeleteAlarmRequest &request) const +CmsClient::CreateMonitorGroupNotifyPolicyOutcomeCallable CmsClient::createMonitorGroupNotifyPolicyCallable(const CreateMonitorGroupNotifyPolicyRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteAlarm(request); + return this->createMonitorGroupNotifyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::CreateMonitoringAgentProcessOutcome CmsClient::createMonitoringAgentProcess(const CreateMonitoringAgentProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateMonitoringAgentProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateMonitoringAgentProcessOutcome(CreateMonitoringAgentProcessResult(outcome.result())); + else + return CreateMonitoringAgentProcessOutcome(outcome.error()); +} + +void CmsClient::createMonitoringAgentProcessAsync(const CreateMonitoringAgentProcessRequest& request, const CreateMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createMonitoringAgentProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::CreateMonitoringAgentProcessOutcomeCallable CmsClient::createMonitoringAgentProcessCallable(const CreateMonitoringAgentProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createMonitoringAgentProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::CreateSiteMonitorOutcome CmsClient::createSiteMonitor(const CreateSiteMonitorRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return CreateSiteMonitorOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return CreateSiteMonitorOutcome(CreateSiteMonitorResult(outcome.result())); + else + return CreateSiteMonitorOutcome(outcome.error()); +} + +void CmsClient::createSiteMonitorAsync(const CreateSiteMonitorRequest& request, const CreateSiteMonitorAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, createSiteMonitor(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::CreateSiteMonitorOutcomeCallable CmsClient::createSiteMonitorCallable(const CreateSiteMonitorRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->createSiteMonitor(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DeleteContactOutcome CmsClient::deleteContact(const DeleteContactRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteContactOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteContactOutcome(DeleteContactResult(outcome.result())); + else + return DeleteContactOutcome(outcome.error()); +} + +void CmsClient::deleteContactAsync(const DeleteContactRequest& request, const DeleteContactAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteContact(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteContactOutcomeCallable CmsClient::deleteContactCallable(const DeleteContactRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteContact(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DeleteContactGroupOutcome CmsClient::deleteContactGroup(const DeleteContactGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteContactGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteContactGroupOutcome(DeleteContactGroupResult(outcome.result())); + else + return DeleteContactGroupOutcome(outcome.error()); +} + +void CmsClient::deleteContactGroupAsync(const DeleteContactGroupRequest& request, const DeleteContactGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteContactGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteContactGroupOutcomeCallable CmsClient::deleteContactGroupCallable(const DeleteContactGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteContactGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -483,396 +627,540 @@ CmsClient::DeleteCustomMetricOutcomeCallable CmsClient::deleteCustomMetricCallab return task->get_future(); } -CmsClient::DeleteEventRuleOutcome CmsClient::deleteEventRule(const DeleteEventRuleRequest &request) const +CmsClient::DeleteEventRuleTargetsOutcome CmsClient::deleteEventRuleTargets(const DeleteEventRuleTargetsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteEventRuleOutcome(endpointOutcome.error()); + return DeleteEventRuleTargetsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteEventRuleOutcome(DeleteEventRuleResult(outcome.result())); + return DeleteEventRuleTargetsOutcome(DeleteEventRuleTargetsResult(outcome.result())); else - return DeleteEventRuleOutcome(outcome.error()); + return DeleteEventRuleTargetsOutcome(outcome.error()); } -void CmsClient::deleteEventRuleAsync(const DeleteEventRuleRequest& request, const DeleteEventRuleAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteEventRuleTargetsAsync(const DeleteEventRuleTargetsRequest& request, const DeleteEventRuleTargetsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteEventRule(request), context); + handler(this, request, deleteEventRuleTargets(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteEventRuleOutcomeCallable CmsClient::deleteEventRuleCallable(const DeleteEventRuleRequest &request) const +CmsClient::DeleteEventRuleTargetsOutcomeCallable CmsClient::deleteEventRuleTargetsCallable(const DeleteEventRuleTargetsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteEventRule(request); + return this->deleteEventRuleTargets(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DeleteEventTargetsOutcome CmsClient::deleteEventTargets(const DeleteEventTargetsRequest &request) const +CmsClient::DeleteEventRulesOutcome CmsClient::deleteEventRules(const DeleteEventRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteEventTargetsOutcome(endpointOutcome.error()); + return DeleteEventRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteEventTargetsOutcome(DeleteEventTargetsResult(outcome.result())); + return DeleteEventRulesOutcome(DeleteEventRulesResult(outcome.result())); else - return DeleteEventTargetsOutcome(outcome.error()); + return DeleteEventRulesOutcome(outcome.error()); } -void CmsClient::deleteEventTargetsAsync(const DeleteEventTargetsRequest& request, const DeleteEventTargetsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteEventRulesAsync(const DeleteEventRulesRequest& request, const DeleteEventRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteEventTargets(request), context); + handler(this, request, deleteEventRules(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteEventTargetsOutcomeCallable CmsClient::deleteEventTargetsCallable(const DeleteEventTargetsRequest &request) const +CmsClient::DeleteEventRulesOutcomeCallable CmsClient::deleteEventRulesCallable(const DeleteEventRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteEventTargets(request); + return this->deleteEventRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DeleteGroupDynamicRuleOutcome CmsClient::deleteGroupDynamicRule(const DeleteGroupDynamicRuleRequest &request) const +CmsClient::DeleteGroupMonitoringAgentProcessOutcome CmsClient::deleteGroupMonitoringAgentProcess(const DeleteGroupMonitoringAgentProcessRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteGroupDynamicRuleOutcome(endpointOutcome.error()); + return DeleteGroupMonitoringAgentProcessOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteGroupDynamicRuleOutcome(DeleteGroupDynamicRuleResult(outcome.result())); + return DeleteGroupMonitoringAgentProcessOutcome(DeleteGroupMonitoringAgentProcessResult(outcome.result())); else - return DeleteGroupDynamicRuleOutcome(outcome.error()); + return DeleteGroupMonitoringAgentProcessOutcome(outcome.error()); } -void CmsClient::deleteGroupDynamicRuleAsync(const DeleteGroupDynamicRuleRequest& request, const DeleteGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteGroupMonitoringAgentProcessAsync(const DeleteGroupMonitoringAgentProcessRequest& request, const DeleteGroupMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteGroupDynamicRule(request), context); + handler(this, request, deleteGroupMonitoringAgentProcess(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteGroupDynamicRuleOutcomeCallable CmsClient::deleteGroupDynamicRuleCallable(const DeleteGroupDynamicRuleRequest &request) const +CmsClient::DeleteGroupMonitoringAgentProcessOutcomeCallable CmsClient::deleteGroupMonitoringAgentProcessCallable(const DeleteGroupMonitoringAgentProcessRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteGroupDynamicRule(request); + return this->deleteGroupMonitoringAgentProcess(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DeleteMonitoringTemplateOutcome CmsClient::deleteMonitoringTemplate(const DeleteMonitoringTemplateRequest &request) const +CmsClient::DeleteHostAvailabilityOutcome CmsClient::deleteHostAvailability(const DeleteHostAvailabilityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteMonitoringTemplateOutcome(endpointOutcome.error()); + return DeleteHostAvailabilityOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteMonitoringTemplateOutcome(DeleteMonitoringTemplateResult(outcome.result())); + return DeleteHostAvailabilityOutcome(DeleteHostAvailabilityResult(outcome.result())); else - return DeleteMonitoringTemplateOutcome(outcome.error()); + return DeleteHostAvailabilityOutcome(outcome.error()); } -void CmsClient::deleteMonitoringTemplateAsync(const DeleteMonitoringTemplateRequest& request, const DeleteMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteHostAvailabilityAsync(const DeleteHostAvailabilityRequest& request, const DeleteHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteMonitoringTemplate(request), context); + handler(this, request, deleteHostAvailability(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteMonitoringTemplateOutcomeCallable CmsClient::deleteMonitoringTemplateCallable(const DeleteMonitoringTemplateRequest &request) const +CmsClient::DeleteHostAvailabilityOutcomeCallable CmsClient::deleteHostAvailabilityCallable(const DeleteHostAvailabilityRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteMonitoringTemplate(request); + return this->deleteHostAvailability(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DeleteMyGroupInstancesOutcome CmsClient::deleteMyGroupInstances(const DeleteMyGroupInstancesRequest &request) const +CmsClient::DeleteMetricRuleResourcesOutcome CmsClient::deleteMetricRuleResources(const DeleteMetricRuleResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteMyGroupInstancesOutcome(endpointOutcome.error()); + return DeleteMetricRuleResourcesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteMyGroupInstancesOutcome(DeleteMyGroupInstancesResult(outcome.result())); + return DeleteMetricRuleResourcesOutcome(DeleteMetricRuleResourcesResult(outcome.result())); else - return DeleteMyGroupInstancesOutcome(outcome.error()); + return DeleteMetricRuleResourcesOutcome(outcome.error()); } -void CmsClient::deleteMyGroupInstancesAsync(const DeleteMyGroupInstancesRequest& request, const DeleteMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteMetricRuleResourcesAsync(const DeleteMetricRuleResourcesRequest& request, const DeleteMetricRuleResourcesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteMyGroupInstances(request), context); + handler(this, request, deleteMetricRuleResources(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteMyGroupInstancesOutcomeCallable CmsClient::deleteMyGroupInstancesCallable(const DeleteMyGroupInstancesRequest &request) const +CmsClient::DeleteMetricRuleResourcesOutcomeCallable CmsClient::deleteMetricRuleResourcesCallable(const DeleteMetricRuleResourcesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteMyGroupInstances(request); + return this->deleteMetricRuleResources(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DeleteMyGroupsOutcome CmsClient::deleteMyGroups(const DeleteMyGroupsRequest &request) const +CmsClient::DeleteMetricRuleTargetsOutcome CmsClient::deleteMetricRuleTargets(const DeleteMetricRuleTargetsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteMyGroupsOutcome(endpointOutcome.error()); + return DeleteMetricRuleTargetsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteMyGroupsOutcome(DeleteMyGroupsResult(outcome.result())); + return DeleteMetricRuleTargetsOutcome(DeleteMetricRuleTargetsResult(outcome.result())); else - return DeleteMyGroupsOutcome(outcome.error()); + return DeleteMetricRuleTargetsOutcome(outcome.error()); } -void CmsClient::deleteMyGroupsAsync(const DeleteMyGroupsRequest& request, const DeleteMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteMetricRuleTargetsAsync(const DeleteMetricRuleTargetsRequest& request, const DeleteMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteMyGroups(request), context); + handler(this, request, deleteMetricRuleTargets(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteMyGroupsOutcomeCallable CmsClient::deleteMyGroupsCallable(const DeleteMyGroupsRequest &request) const +CmsClient::DeleteMetricRuleTargetsOutcomeCallable CmsClient::deleteMetricRuleTargetsCallable(const DeleteMetricRuleTargetsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteMyGroups(request); + return this->deleteMetricRuleTargets(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DeleteNotifyPolicyOutcome CmsClient::deleteNotifyPolicy(const DeleteNotifyPolicyRequest &request) const +CmsClient::DeleteMetricRuleTemplateOutcome CmsClient::deleteMetricRuleTemplate(const DeleteMetricRuleTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteNotifyPolicyOutcome(endpointOutcome.error()); + return DeleteMetricRuleTemplateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteNotifyPolicyOutcome(DeleteNotifyPolicyResult(outcome.result())); + return DeleteMetricRuleTemplateOutcome(DeleteMetricRuleTemplateResult(outcome.result())); else - return DeleteNotifyPolicyOutcome(outcome.error()); + return DeleteMetricRuleTemplateOutcome(outcome.error()); } -void CmsClient::deleteNotifyPolicyAsync(const DeleteNotifyPolicyRequest& request, const DeleteNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteMetricRuleTemplateAsync(const DeleteMetricRuleTemplateRequest& request, const DeleteMetricRuleTemplateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteNotifyPolicy(request), context); + handler(this, request, deleteMetricRuleTemplate(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteNotifyPolicyOutcomeCallable CmsClient::deleteNotifyPolicyCallable(const DeleteNotifyPolicyRequest &request) const +CmsClient::DeleteMetricRuleTemplateOutcomeCallable CmsClient::deleteMetricRuleTemplateCallable(const DeleteMetricRuleTemplateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteNotifyPolicy(request); + return this->deleteMetricRuleTemplate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DeleteTasksOutcome CmsClient::deleteTasks(const DeleteTasksRequest &request) const +CmsClient::DeleteMetricRulesOutcome CmsClient::deleteMetricRules(const DeleteMetricRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DeleteTasksOutcome(endpointOutcome.error()); + return DeleteMetricRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DeleteTasksOutcome(DeleteTasksResult(outcome.result())); + return DeleteMetricRulesOutcome(DeleteMetricRulesResult(outcome.result())); else - return DeleteTasksOutcome(outcome.error()); + return DeleteMetricRulesOutcome(outcome.error()); } -void CmsClient::deleteTasksAsync(const DeleteTasksRequest& request, const DeleteTasksAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteMetricRulesAsync(const DeleteMetricRulesRequest& request, const DeleteMetricRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, deleteTasks(request), context); + handler(this, request, deleteMetricRules(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DeleteTasksOutcomeCallable CmsClient::deleteTasksCallable(const DeleteTasksRequest &request) const +CmsClient::DeleteMetricRulesOutcomeCallable CmsClient::deleteMetricRulesCallable(const DeleteMetricRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->deleteTasks(request); + return this->deleteMetricRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DescribeAlarmHistoryOutcome CmsClient::describeAlarmHistory(const DescribeAlarmHistoryRequest &request) const +CmsClient::DeleteMonitorGroupOutcome CmsClient::deleteMonitorGroup(const DeleteMonitorGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeAlarmHistoryOutcome(endpointOutcome.error()); + return DeleteMonitorGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeAlarmHistoryOutcome(DescribeAlarmHistoryResult(outcome.result())); + return DeleteMonitorGroupOutcome(DeleteMonitorGroupResult(outcome.result())); else - return DescribeAlarmHistoryOutcome(outcome.error()); + return DeleteMonitorGroupOutcome(outcome.error()); } -void CmsClient::describeAlarmHistoryAsync(const DescribeAlarmHistoryRequest& request, const DescribeAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteMonitorGroupAsync(const DeleteMonitorGroupRequest& request, const DeleteMonitorGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeAlarmHistory(request), context); + handler(this, request, deleteMonitorGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeAlarmHistoryOutcomeCallable CmsClient::describeAlarmHistoryCallable(const DescribeAlarmHistoryRequest &request) const +CmsClient::DeleteMonitorGroupOutcomeCallable CmsClient::deleteMonitorGroupCallable(const DeleteMonitorGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeAlarmHistory(request); + return this->deleteMonitorGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DescribeAlarmsOutcome CmsClient::describeAlarms(const DescribeAlarmsRequest &request) const +CmsClient::DeleteMonitorGroupDynamicRuleOutcome CmsClient::deleteMonitorGroupDynamicRule(const DeleteMonitorGroupDynamicRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeAlarmsOutcome(endpointOutcome.error()); + return DeleteMonitorGroupDynamicRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeAlarmsOutcome(DescribeAlarmsResult(outcome.result())); + return DeleteMonitorGroupDynamicRuleOutcome(DeleteMonitorGroupDynamicRuleResult(outcome.result())); else - return DescribeAlarmsOutcome(outcome.error()); + return DeleteMonitorGroupDynamicRuleOutcome(outcome.error()); } -void CmsClient::describeAlarmsAsync(const DescribeAlarmsRequest& request, const DescribeAlarmsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteMonitorGroupDynamicRuleAsync(const DeleteMonitorGroupDynamicRuleRequest& request, const DeleteMonitorGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeAlarms(request), context); + handler(this, request, deleteMonitorGroupDynamicRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeAlarmsOutcomeCallable CmsClient::describeAlarmsCallable(const DescribeAlarmsRequest &request) const +CmsClient::DeleteMonitorGroupDynamicRuleOutcomeCallable CmsClient::deleteMonitorGroupDynamicRuleCallable(const DeleteMonitorGroupDynamicRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeAlarms(request); + return this->deleteMonitorGroupDynamicRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DescribeAlarmsForResourcesOutcome CmsClient::describeAlarmsForResources(const DescribeAlarmsForResourcesRequest &request) const +CmsClient::DeleteMonitorGroupInstancesOutcome CmsClient::deleteMonitorGroupInstances(const DeleteMonitorGroupInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeAlarmsForResourcesOutcome(endpointOutcome.error()); + return DeleteMonitorGroupInstancesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeAlarmsForResourcesOutcome(DescribeAlarmsForResourcesResult(outcome.result())); + return DeleteMonitorGroupInstancesOutcome(DeleteMonitorGroupInstancesResult(outcome.result())); else - return DescribeAlarmsForResourcesOutcome(outcome.error()); + return DeleteMonitorGroupInstancesOutcome(outcome.error()); } -void CmsClient::describeAlarmsForResourcesAsync(const DescribeAlarmsForResourcesRequest& request, const DescribeAlarmsForResourcesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::deleteMonitorGroupInstancesAsync(const DeleteMonitorGroupInstancesRequest& request, const DeleteMonitorGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeAlarmsForResources(request), context); + handler(this, request, deleteMonitorGroupInstances(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeAlarmsForResourcesOutcomeCallable CmsClient::describeAlarmsForResourcesCallable(const DescribeAlarmsForResourcesRequest &request) const +CmsClient::DeleteMonitorGroupInstancesOutcomeCallable CmsClient::deleteMonitorGroupInstancesCallable(const DeleteMonitorGroupInstancesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeAlarmsForResources(request); + return this->deleteMonitorGroupInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DeleteMonitorGroupNotifyPolicyOutcome CmsClient::deleteMonitorGroupNotifyPolicy(const DeleteMonitorGroupNotifyPolicyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMonitorGroupNotifyPolicyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMonitorGroupNotifyPolicyOutcome(DeleteMonitorGroupNotifyPolicyResult(outcome.result())); + else + return DeleteMonitorGroupNotifyPolicyOutcome(outcome.error()); +} + +void CmsClient::deleteMonitorGroupNotifyPolicyAsync(const DeleteMonitorGroupNotifyPolicyRequest& request, const DeleteMonitorGroupNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMonitorGroupNotifyPolicy(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteMonitorGroupNotifyPolicyOutcomeCallable CmsClient::deleteMonitorGroupNotifyPolicyCallable(const DeleteMonitorGroupNotifyPolicyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMonitorGroupNotifyPolicy(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DeleteMonitoringAgentProcessOutcome CmsClient::deleteMonitoringAgentProcess(const DeleteMonitoringAgentProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteMonitoringAgentProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteMonitoringAgentProcessOutcome(DeleteMonitoringAgentProcessResult(outcome.result())); + else + return DeleteMonitoringAgentProcessOutcome(outcome.error()); +} + +void CmsClient::deleteMonitoringAgentProcessAsync(const DeleteMonitoringAgentProcessRequest& request, const DeleteMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteMonitoringAgentProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteMonitoringAgentProcessOutcomeCallable CmsClient::deleteMonitoringAgentProcessCallable(const DeleteMonitoringAgentProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteMonitoringAgentProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DeleteSiteMonitorsOutcome CmsClient::deleteSiteMonitors(const DeleteSiteMonitorsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DeleteSiteMonitorsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DeleteSiteMonitorsOutcome(DeleteSiteMonitorsResult(outcome.result())); + else + return DeleteSiteMonitorsOutcome(outcome.error()); +} + +void CmsClient::deleteSiteMonitorsAsync(const DeleteSiteMonitorsRequest& request, const DeleteSiteMonitorsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, deleteSiteMonitors(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DeleteSiteMonitorsOutcomeCallable CmsClient::deleteSiteMonitorsCallable(const DeleteSiteMonitorsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->deleteSiteMonitors(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeActiveMetricRuleListOutcome CmsClient::describeActiveMetricRuleList(const DescribeActiveMetricRuleListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeActiveMetricRuleListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeActiveMetricRuleListOutcome(DescribeActiveMetricRuleListResult(outcome.result())); + else + return DescribeActiveMetricRuleListOutcome(outcome.error()); +} + +void CmsClient::describeActiveMetricRuleListAsync(const DescribeActiveMetricRuleListRequest& request, const DescribeActiveMetricRuleListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeActiveMetricRuleList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeActiveMetricRuleListOutcomeCallable CmsClient::describeActiveMetricRuleListCallable(const DescribeActiveMetricRuleListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeActiveMetricRuleList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -915,108 +1203,684 @@ CmsClient::DescribeAlertHistoryListOutcomeCallable CmsClient::describeAlertHisto return task->get_future(); } -CmsClient::DescribeContactOutcome CmsClient::describeContact(const DescribeContactRequest &request) const +CmsClient::DescribeAlertingMetricRuleResourcesOutcome CmsClient::describeAlertingMetricRuleResources(const DescribeAlertingMetricRuleResourcesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeContactOutcome(endpointOutcome.error()); + return DescribeAlertingMetricRuleResourcesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeContactOutcome(DescribeContactResult(outcome.result())); + return DescribeAlertingMetricRuleResourcesOutcome(DescribeAlertingMetricRuleResourcesResult(outcome.result())); else - return DescribeContactOutcome(outcome.error()); + return DescribeAlertingMetricRuleResourcesOutcome(outcome.error()); } -void CmsClient::describeContactAsync(const DescribeContactRequest& request, const DescribeContactAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeAlertingMetricRuleResourcesAsync(const DescribeAlertingMetricRuleResourcesRequest& request, const DescribeAlertingMetricRuleResourcesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeContact(request), context); + handler(this, request, describeAlertingMetricRuleResources(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeContactOutcomeCallable CmsClient::describeContactCallable(const DescribeContactRequest &request) const +CmsClient::DescribeAlertingMetricRuleResourcesOutcomeCallable CmsClient::describeAlertingMetricRuleResourcesCallable(const DescribeAlertingMetricRuleResourcesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeContact(request); + return this->describeAlertingMetricRuleResources(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DescribeEventRuleOutcome CmsClient::describeEventRule(const DescribeEventRuleRequest &request) const +CmsClient::DescribeContactGroupListOutcome CmsClient::describeContactGroupList(const DescribeContactGroupListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeEventRuleOutcome(endpointOutcome.error()); + return DescribeContactGroupListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeEventRuleOutcome(DescribeEventRuleResult(outcome.result())); + return DescribeContactGroupListOutcome(DescribeContactGroupListResult(outcome.result())); else - return DescribeEventRuleOutcome(outcome.error()); + return DescribeContactGroupListOutcome(outcome.error()); } -void CmsClient::describeEventRuleAsync(const DescribeEventRuleRequest& request, const DescribeEventRuleAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeContactGroupListAsync(const DescribeContactGroupListRequest& request, const DescribeContactGroupListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeEventRule(request), context); + handler(this, request, describeContactGroupList(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeEventRuleOutcomeCallable CmsClient::describeEventRuleCallable(const DescribeEventRuleRequest &request) const +CmsClient::DescribeContactGroupListOutcomeCallable CmsClient::describeContactGroupListCallable(const DescribeContactGroupListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeEventRule(request); + return this->describeContactGroupList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DescribeISPAreaCityOutcome CmsClient::describeISPAreaCity(const DescribeISPAreaCityRequest &request) const +CmsClient::DescribeContactListOutcome CmsClient::describeContactList(const DescribeContactListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeISPAreaCityOutcome(endpointOutcome.error()); + return DescribeContactListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeISPAreaCityOutcome(DescribeISPAreaCityResult(outcome.result())); + return DescribeContactListOutcome(DescribeContactListResult(outcome.result())); else - return DescribeISPAreaCityOutcome(outcome.error()); + return DescribeContactListOutcome(outcome.error()); } -void CmsClient::describeISPAreaCityAsync(const DescribeISPAreaCityRequest& request, const DescribeISPAreaCityAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeContactListAsync(const DescribeContactListRequest& request, const DescribeContactListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeISPAreaCity(request), context); + handler(this, request, describeContactList(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeISPAreaCityOutcomeCallable CmsClient::describeISPAreaCityCallable(const DescribeISPAreaCityRequest &request) const +CmsClient::DescribeContactListOutcomeCallable CmsClient::describeContactListCallable(const DescribeContactListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeISPAreaCity(request); + return this->describeContactList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeContactListByContactGroupOutcome CmsClient::describeContactListByContactGroup(const DescribeContactListByContactGroupRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeContactListByContactGroupOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeContactListByContactGroupOutcome(DescribeContactListByContactGroupResult(outcome.result())); + else + return DescribeContactListByContactGroupOutcome(outcome.error()); +} + +void CmsClient::describeContactListByContactGroupAsync(const DescribeContactListByContactGroupRequest& request, const DescribeContactListByContactGroupAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeContactListByContactGroup(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeContactListByContactGroupOutcomeCallable CmsClient::describeContactListByContactGroupCallable(const DescribeContactListByContactGroupRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeContactListByContactGroup(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeCustomEventAttributeOutcome CmsClient::describeCustomEventAttribute(const DescribeCustomEventAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomEventAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomEventAttributeOutcome(DescribeCustomEventAttributeResult(outcome.result())); + else + return DescribeCustomEventAttributeOutcome(outcome.error()); +} + +void CmsClient::describeCustomEventAttributeAsync(const DescribeCustomEventAttributeRequest& request, const DescribeCustomEventAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomEventAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeCustomEventAttributeOutcomeCallable CmsClient::describeCustomEventAttributeCallable(const DescribeCustomEventAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomEventAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeCustomEventCountOutcome CmsClient::describeCustomEventCount(const DescribeCustomEventCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomEventCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomEventCountOutcome(DescribeCustomEventCountResult(outcome.result())); + else + return DescribeCustomEventCountOutcome(outcome.error()); +} + +void CmsClient::describeCustomEventCountAsync(const DescribeCustomEventCountRequest& request, const DescribeCustomEventCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomEventCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeCustomEventCountOutcomeCallable CmsClient::describeCustomEventCountCallable(const DescribeCustomEventCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomEventCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeCustomEventHistogramOutcome CmsClient::describeCustomEventHistogram(const DescribeCustomEventHistogramRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomEventHistogramOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomEventHistogramOutcome(DescribeCustomEventHistogramResult(outcome.result())); + else + return DescribeCustomEventHistogramOutcome(outcome.error()); +} + +void CmsClient::describeCustomEventHistogramAsync(const DescribeCustomEventHistogramRequest& request, const DescribeCustomEventHistogramAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomEventHistogram(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeCustomEventHistogramOutcomeCallable CmsClient::describeCustomEventHistogramCallable(const DescribeCustomEventHistogramRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomEventHistogram(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeCustomMetricListOutcome CmsClient::describeCustomMetricList(const DescribeCustomMetricListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeCustomMetricListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeCustomMetricListOutcome(DescribeCustomMetricListResult(outcome.result())); + else + return DescribeCustomMetricListOutcome(outcome.error()); +} + +void CmsClient::describeCustomMetricListAsync(const DescribeCustomMetricListRequest& request, const DescribeCustomMetricListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeCustomMetricList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeCustomMetricListOutcomeCallable CmsClient::describeCustomMetricListCallable(const DescribeCustomMetricListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeCustomMetricList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeEventRuleAttributeOutcome CmsClient::describeEventRuleAttribute(const DescribeEventRuleAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventRuleAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventRuleAttributeOutcome(DescribeEventRuleAttributeResult(outcome.result())); + else + return DescribeEventRuleAttributeOutcome(outcome.error()); +} + +void CmsClient::describeEventRuleAttributeAsync(const DescribeEventRuleAttributeRequest& request, const DescribeEventRuleAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventRuleAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeEventRuleAttributeOutcomeCallable CmsClient::describeEventRuleAttributeCallable(const DescribeEventRuleAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventRuleAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeEventRuleListOutcome CmsClient::describeEventRuleList(const DescribeEventRuleListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventRuleListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventRuleListOutcome(DescribeEventRuleListResult(outcome.result())); + else + return DescribeEventRuleListOutcome(outcome.error()); +} + +void CmsClient::describeEventRuleListAsync(const DescribeEventRuleListRequest& request, const DescribeEventRuleListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventRuleList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeEventRuleListOutcomeCallable CmsClient::describeEventRuleListCallable(const DescribeEventRuleListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventRuleList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeEventRuleTargetListOutcome CmsClient::describeEventRuleTargetList(const DescribeEventRuleTargetListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeEventRuleTargetListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeEventRuleTargetListOutcome(DescribeEventRuleTargetListResult(outcome.result())); + else + return DescribeEventRuleTargetListOutcome(outcome.error()); +} + +void CmsClient::describeEventRuleTargetListAsync(const DescribeEventRuleTargetListRequest& request, const DescribeEventRuleTargetListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeEventRuleTargetList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeEventRuleTargetListOutcomeCallable CmsClient::describeEventRuleTargetListCallable(const DescribeEventRuleTargetListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeEventRuleTargetList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeGroupMonitoringAgentProcessOutcome CmsClient::describeGroupMonitoringAgentProcess(const DescribeGroupMonitoringAgentProcessRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeGroupMonitoringAgentProcessOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeGroupMonitoringAgentProcessOutcome(DescribeGroupMonitoringAgentProcessResult(outcome.result())); + else + return DescribeGroupMonitoringAgentProcessOutcome(outcome.error()); +} + +void CmsClient::describeGroupMonitoringAgentProcessAsync(const DescribeGroupMonitoringAgentProcessRequest& request, const DescribeGroupMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeGroupMonitoringAgentProcess(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeGroupMonitoringAgentProcessOutcomeCallable CmsClient::describeGroupMonitoringAgentProcessCallable(const DescribeGroupMonitoringAgentProcessRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeGroupMonitoringAgentProcess(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeHostAvailabilityListOutcome CmsClient::describeHostAvailabilityList(const DescribeHostAvailabilityListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeHostAvailabilityListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeHostAvailabilityListOutcome(DescribeHostAvailabilityListResult(outcome.result())); + else + return DescribeHostAvailabilityListOutcome(outcome.error()); +} + +void CmsClient::describeHostAvailabilityListAsync(const DescribeHostAvailabilityListRequest& request, const DescribeHostAvailabilityListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeHostAvailabilityList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeHostAvailabilityListOutcomeCallable CmsClient::describeHostAvailabilityListCallable(const DescribeHostAvailabilityListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeHostAvailabilityList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMetricDataOutcome CmsClient::describeMetricData(const DescribeMetricDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetricDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetricDataOutcome(DescribeMetricDataResult(outcome.result())); + else + return DescribeMetricDataOutcome(outcome.error()); +} + +void CmsClient::describeMetricDataAsync(const DescribeMetricDataRequest& request, const DescribeMetricDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetricData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMetricDataOutcomeCallable CmsClient::describeMetricDataCallable(const DescribeMetricDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetricData(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMetricLastOutcome CmsClient::describeMetricLast(const DescribeMetricLastRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetricLastOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetricLastOutcome(DescribeMetricLastResult(outcome.result())); + else + return DescribeMetricLastOutcome(outcome.error()); +} + +void CmsClient::describeMetricLastAsync(const DescribeMetricLastRequest& request, const DescribeMetricLastAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetricLast(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMetricLastOutcomeCallable CmsClient::describeMetricLastCallable(const DescribeMetricLastRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetricLast(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMetricListOutcome CmsClient::describeMetricList(const DescribeMetricListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetricListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetricListOutcome(DescribeMetricListResult(outcome.result())); + else + return DescribeMetricListOutcome(outcome.error()); +} + +void CmsClient::describeMetricListAsync(const DescribeMetricListRequest& request, const DescribeMetricListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetricList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMetricListOutcomeCallable CmsClient::describeMetricListCallable(const DescribeMetricListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetricList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMetricMetaListOutcome CmsClient::describeMetricMetaList(const DescribeMetricMetaListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetricMetaListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetricMetaListOutcome(DescribeMetricMetaListResult(outcome.result())); + else + return DescribeMetricMetaListOutcome(outcome.error()); +} + +void CmsClient::describeMetricMetaListAsync(const DescribeMetricMetaListRequest& request, const DescribeMetricMetaListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetricMetaList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMetricMetaListOutcomeCallable CmsClient::describeMetricMetaListCallable(const DescribeMetricMetaListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetricMetaList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMetricRuleCountOutcome CmsClient::describeMetricRuleCount(const DescribeMetricRuleCountRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetricRuleCountOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetricRuleCountOutcome(DescribeMetricRuleCountResult(outcome.result())); + else + return DescribeMetricRuleCountOutcome(outcome.error()); +} + +void CmsClient::describeMetricRuleCountAsync(const DescribeMetricRuleCountRequest& request, const DescribeMetricRuleCountAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetricRuleCount(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMetricRuleCountOutcomeCallable CmsClient::describeMetricRuleCountCallable(const DescribeMetricRuleCountRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetricRuleCount(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMetricRuleListOutcome CmsClient::describeMetricRuleList(const DescribeMetricRuleListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetricRuleListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetricRuleListOutcome(DescribeMetricRuleListResult(outcome.result())); + else + return DescribeMetricRuleListOutcome(outcome.error()); +} + +void CmsClient::describeMetricRuleListAsync(const DescribeMetricRuleListRequest& request, const DescribeMetricRuleListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetricRuleList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMetricRuleListOutcomeCallable CmsClient::describeMetricRuleListCallable(const DescribeMetricRuleListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetricRuleList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1059,36 +1923,684 @@ CmsClient::DescribeMetricRuleTargetsOutcomeCallable CmsClient::describeMetricRul return task->get_future(); } -CmsClient::DescribeSiteMonitorISPAreaCityOutcome CmsClient::describeSiteMonitorISPAreaCity(const DescribeSiteMonitorISPAreaCityRequest &request) const +CmsClient::DescribeMetricRuleTemplateAttributeOutcome CmsClient::describeMetricRuleTemplateAttribute(const DescribeMetricRuleTemplateAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeSiteMonitorISPAreaCityOutcome(endpointOutcome.error()); + return DescribeMetricRuleTemplateAttributeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeSiteMonitorISPAreaCityOutcome(DescribeSiteMonitorISPAreaCityResult(outcome.result())); + return DescribeMetricRuleTemplateAttributeOutcome(DescribeMetricRuleTemplateAttributeResult(outcome.result())); else - return DescribeSiteMonitorISPAreaCityOutcome(outcome.error()); + return DescribeMetricRuleTemplateAttributeOutcome(outcome.error()); } -void CmsClient::describeSiteMonitorISPAreaCityAsync(const DescribeSiteMonitorISPAreaCityRequest& request, const DescribeSiteMonitorISPAreaCityAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeMetricRuleTemplateAttributeAsync(const DescribeMetricRuleTemplateAttributeRequest& request, const DescribeMetricRuleTemplateAttributeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeSiteMonitorISPAreaCity(request), context); + handler(this, request, describeMetricRuleTemplateAttribute(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeSiteMonitorISPAreaCityOutcomeCallable CmsClient::describeSiteMonitorISPAreaCityCallable(const DescribeSiteMonitorISPAreaCityRequest &request) const +CmsClient::DescribeMetricRuleTemplateAttributeOutcomeCallable CmsClient::describeMetricRuleTemplateAttributeCallable(const DescribeMetricRuleTemplateAttributeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeSiteMonitorISPAreaCity(request); + return this->describeMetricRuleTemplateAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMetricRuleTemplateListOutcome CmsClient::describeMetricRuleTemplateList(const DescribeMetricRuleTemplateListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetricRuleTemplateListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetricRuleTemplateListOutcome(DescribeMetricRuleTemplateListResult(outcome.result())); + else + return DescribeMetricRuleTemplateListOutcome(outcome.error()); +} + +void CmsClient::describeMetricRuleTemplateListAsync(const DescribeMetricRuleTemplateListRequest& request, const DescribeMetricRuleTemplateListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetricRuleTemplateList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMetricRuleTemplateListOutcomeCallable CmsClient::describeMetricRuleTemplateListCallable(const DescribeMetricRuleTemplateListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetricRuleTemplateList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMetricTopOutcome CmsClient::describeMetricTop(const DescribeMetricTopRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMetricTopOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMetricTopOutcome(DescribeMetricTopResult(outcome.result())); + else + return DescribeMetricTopOutcome(outcome.error()); +} + +void CmsClient::describeMetricTopAsync(const DescribeMetricTopRequest& request, const DescribeMetricTopAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMetricTop(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMetricTopOutcomeCallable CmsClient::describeMetricTopCallable(const DescribeMetricTopRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMetricTop(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitorGroupCategoriesOutcome CmsClient::describeMonitorGroupCategories(const DescribeMonitorGroupCategoriesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitorGroupCategoriesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitorGroupCategoriesOutcome(DescribeMonitorGroupCategoriesResult(outcome.result())); + else + return DescribeMonitorGroupCategoriesOutcome(outcome.error()); +} + +void CmsClient::describeMonitorGroupCategoriesAsync(const DescribeMonitorGroupCategoriesRequest& request, const DescribeMonitorGroupCategoriesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitorGroupCategories(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitorGroupCategoriesOutcomeCallable CmsClient::describeMonitorGroupCategoriesCallable(const DescribeMonitorGroupCategoriesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitorGroupCategories(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitorGroupDynamicRulesOutcome CmsClient::describeMonitorGroupDynamicRules(const DescribeMonitorGroupDynamicRulesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitorGroupDynamicRulesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitorGroupDynamicRulesOutcome(DescribeMonitorGroupDynamicRulesResult(outcome.result())); + else + return DescribeMonitorGroupDynamicRulesOutcome(outcome.error()); +} + +void CmsClient::describeMonitorGroupDynamicRulesAsync(const DescribeMonitorGroupDynamicRulesRequest& request, const DescribeMonitorGroupDynamicRulesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitorGroupDynamicRules(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitorGroupDynamicRulesOutcomeCallable CmsClient::describeMonitorGroupDynamicRulesCallable(const DescribeMonitorGroupDynamicRulesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitorGroupDynamicRules(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitorGroupInstanceAttributeOutcome CmsClient::describeMonitorGroupInstanceAttribute(const DescribeMonitorGroupInstanceAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitorGroupInstanceAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitorGroupInstanceAttributeOutcome(DescribeMonitorGroupInstanceAttributeResult(outcome.result())); + else + return DescribeMonitorGroupInstanceAttributeOutcome(outcome.error()); +} + +void CmsClient::describeMonitorGroupInstanceAttributeAsync(const DescribeMonitorGroupInstanceAttributeRequest& request, const DescribeMonitorGroupInstanceAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitorGroupInstanceAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitorGroupInstanceAttributeOutcomeCallable CmsClient::describeMonitorGroupInstanceAttributeCallable(const DescribeMonitorGroupInstanceAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitorGroupInstanceAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitorGroupInstancesOutcome CmsClient::describeMonitorGroupInstances(const DescribeMonitorGroupInstancesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitorGroupInstancesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitorGroupInstancesOutcome(DescribeMonitorGroupInstancesResult(outcome.result())); + else + return DescribeMonitorGroupInstancesOutcome(outcome.error()); +} + +void CmsClient::describeMonitorGroupInstancesAsync(const DescribeMonitorGroupInstancesRequest& request, const DescribeMonitorGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitorGroupInstances(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitorGroupInstancesOutcomeCallable CmsClient::describeMonitorGroupInstancesCallable(const DescribeMonitorGroupInstancesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitorGroupInstances(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitorGroupNotifyPolicyListOutcome CmsClient::describeMonitorGroupNotifyPolicyList(const DescribeMonitorGroupNotifyPolicyListRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitorGroupNotifyPolicyListOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitorGroupNotifyPolicyListOutcome(DescribeMonitorGroupNotifyPolicyListResult(outcome.result())); + else + return DescribeMonitorGroupNotifyPolicyListOutcome(outcome.error()); +} + +void CmsClient::describeMonitorGroupNotifyPolicyListAsync(const DescribeMonitorGroupNotifyPolicyListRequest& request, const DescribeMonitorGroupNotifyPolicyListAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitorGroupNotifyPolicyList(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitorGroupNotifyPolicyListOutcomeCallable CmsClient::describeMonitorGroupNotifyPolicyListCallable(const DescribeMonitorGroupNotifyPolicyListRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitorGroupNotifyPolicyList(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitorGroupsOutcome CmsClient::describeMonitorGroups(const DescribeMonitorGroupsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitorGroupsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitorGroupsOutcome(DescribeMonitorGroupsResult(outcome.result())); + else + return DescribeMonitorGroupsOutcome(outcome.error()); +} + +void CmsClient::describeMonitorGroupsAsync(const DescribeMonitorGroupsRequest& request, const DescribeMonitorGroupsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitorGroups(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitorGroupsOutcomeCallable CmsClient::describeMonitorGroupsCallable(const DescribeMonitorGroupsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitorGroups(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitoringAgentAccessKeyOutcome CmsClient::describeMonitoringAgentAccessKey(const DescribeMonitoringAgentAccessKeyRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitoringAgentAccessKeyOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitoringAgentAccessKeyOutcome(DescribeMonitoringAgentAccessKeyResult(outcome.result())); + else + return DescribeMonitoringAgentAccessKeyOutcome(outcome.error()); +} + +void CmsClient::describeMonitoringAgentAccessKeyAsync(const DescribeMonitoringAgentAccessKeyRequest& request, const DescribeMonitoringAgentAccessKeyAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitoringAgentAccessKey(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitoringAgentAccessKeyOutcomeCallable CmsClient::describeMonitoringAgentAccessKeyCallable(const DescribeMonitoringAgentAccessKeyRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitoringAgentAccessKey(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitoringAgentConfigOutcome CmsClient::describeMonitoringAgentConfig(const DescribeMonitoringAgentConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitoringAgentConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitoringAgentConfigOutcome(DescribeMonitoringAgentConfigResult(outcome.result())); + else + return DescribeMonitoringAgentConfigOutcome(outcome.error()); +} + +void CmsClient::describeMonitoringAgentConfigAsync(const DescribeMonitoringAgentConfigRequest& request, const DescribeMonitoringAgentConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitoringAgentConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitoringAgentConfigOutcomeCallable CmsClient::describeMonitoringAgentConfigCallable(const DescribeMonitoringAgentConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitoringAgentConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitoringAgentHostsOutcome CmsClient::describeMonitoringAgentHosts(const DescribeMonitoringAgentHostsRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitoringAgentHostsOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitoringAgentHostsOutcome(DescribeMonitoringAgentHostsResult(outcome.result())); + else + return DescribeMonitoringAgentHostsOutcome(outcome.error()); +} + +void CmsClient::describeMonitoringAgentHostsAsync(const DescribeMonitoringAgentHostsRequest& request, const DescribeMonitoringAgentHostsAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitoringAgentHosts(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitoringAgentHostsOutcomeCallable CmsClient::describeMonitoringAgentHostsCallable(const DescribeMonitoringAgentHostsRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitoringAgentHosts(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitoringAgentProcessesOutcome CmsClient::describeMonitoringAgentProcesses(const DescribeMonitoringAgentProcessesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitoringAgentProcessesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitoringAgentProcessesOutcome(DescribeMonitoringAgentProcessesResult(outcome.result())); + else + return DescribeMonitoringAgentProcessesOutcome(outcome.error()); +} + +void CmsClient::describeMonitoringAgentProcessesAsync(const DescribeMonitoringAgentProcessesRequest& request, const DescribeMonitoringAgentProcessesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitoringAgentProcesses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitoringAgentProcessesOutcomeCallable CmsClient::describeMonitoringAgentProcessesCallable(const DescribeMonitoringAgentProcessesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitoringAgentProcesses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitoringAgentStatusesOutcome CmsClient::describeMonitoringAgentStatuses(const DescribeMonitoringAgentStatusesRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitoringAgentStatusesOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitoringAgentStatusesOutcome(DescribeMonitoringAgentStatusesResult(outcome.result())); + else + return DescribeMonitoringAgentStatusesOutcome(outcome.error()); +} + +void CmsClient::describeMonitoringAgentStatusesAsync(const DescribeMonitoringAgentStatusesRequest& request, const DescribeMonitoringAgentStatusesAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitoringAgentStatuses(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitoringAgentStatusesOutcomeCallable CmsClient::describeMonitoringAgentStatusesCallable(const DescribeMonitoringAgentStatusesRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitoringAgentStatuses(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeMonitoringConfigOutcome CmsClient::describeMonitoringConfig(const DescribeMonitoringConfigRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeMonitoringConfigOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeMonitoringConfigOutcome(DescribeMonitoringConfigResult(outcome.result())); + else + return DescribeMonitoringConfigOutcome(outcome.error()); +} + +void CmsClient::describeMonitoringConfigAsync(const DescribeMonitoringConfigRequest& request, const DescribeMonitoringConfigAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeMonitoringConfig(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeMonitoringConfigOutcomeCallable CmsClient::describeMonitoringConfigCallable(const DescribeMonitoringConfigRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeMonitoringConfig(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeProductsOfActiveMetricRuleOutcome CmsClient::describeProductsOfActiveMetricRule(const DescribeProductsOfActiveMetricRuleRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProductsOfActiveMetricRuleOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProductsOfActiveMetricRuleOutcome(DescribeProductsOfActiveMetricRuleResult(outcome.result())); + else + return DescribeProductsOfActiveMetricRuleOutcome(outcome.error()); +} + +void CmsClient::describeProductsOfActiveMetricRuleAsync(const DescribeProductsOfActiveMetricRuleRequest& request, const DescribeProductsOfActiveMetricRuleAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProductsOfActiveMetricRule(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeProductsOfActiveMetricRuleOutcomeCallable CmsClient::describeProductsOfActiveMetricRuleCallable(const DescribeProductsOfActiveMetricRuleRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProductsOfActiveMetricRule(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeProjectMetaOutcome CmsClient::describeProjectMeta(const DescribeProjectMetaRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeProjectMetaOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeProjectMetaOutcome(DescribeProjectMetaResult(outcome.result())); + else + return DescribeProjectMetaOutcome(outcome.error()); +} + +void CmsClient::describeProjectMetaAsync(const DescribeProjectMetaRequest& request, const DescribeProjectMetaAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeProjectMeta(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeProjectMetaOutcomeCallable CmsClient::describeProjectMetaCallable(const DescribeProjectMetaRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeProjectMeta(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeSiteMonitorAttributeOutcome CmsClient::describeSiteMonitorAttribute(const DescribeSiteMonitorAttributeRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSiteMonitorAttributeOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSiteMonitorAttributeOutcome(DescribeSiteMonitorAttributeResult(outcome.result())); + else + return DescribeSiteMonitorAttributeOutcome(outcome.error()); +} + +void CmsClient::describeSiteMonitorAttributeAsync(const DescribeSiteMonitorAttributeRequest& request, const DescribeSiteMonitorAttributeAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSiteMonitorAttribute(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeSiteMonitorAttributeOutcomeCallable CmsClient::describeSiteMonitorAttributeCallable(const DescribeSiteMonitorAttributeRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSiteMonitorAttribute(request); + }); + + asyncExecute(new Runnable([task]() { (*task)(); })); + return task->get_future(); +} + +CmsClient::DescribeSiteMonitorDataOutcome CmsClient::describeSiteMonitorData(const DescribeSiteMonitorDataRequest &request) const +{ + auto endpointOutcome = endpointProvider_->getEndpoint(); + if (!endpointOutcome.isSuccess()) + return DescribeSiteMonitorDataOutcome(endpointOutcome.error()); + + auto outcome = makeRequest(endpointOutcome.result(), request); + + if (outcome.isSuccess()) + return DescribeSiteMonitorDataOutcome(DescribeSiteMonitorDataResult(outcome.result())); + else + return DescribeSiteMonitorDataOutcome(outcome.error()); +} + +void CmsClient::describeSiteMonitorDataAsync(const DescribeSiteMonitorDataRequest& request, const DescribeSiteMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const +{ + auto fn = [this, request, handler, context]() + { + handler(this, request, describeSiteMonitorData(request), context); + }; + + asyncExecute(new Runnable(fn)); +} + +CmsClient::DescribeSiteMonitorDataOutcomeCallable CmsClient::describeSiteMonitorDataCallable(const DescribeSiteMonitorDataRequest &request) const +{ + auto task = std::make_shared>( + [this, request]() + { + return this->describeSiteMonitorData(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -1131,1368 +2643,1080 @@ CmsClient::DescribeSiteMonitorISPCityListOutcomeCallable CmsClient::describeSite return task->get_future(); } -CmsClient::DescribeTaskDetailOutcome CmsClient::describeTaskDetail(const DescribeTaskDetailRequest &request) const +CmsClient::DescribeSiteMonitorListOutcome CmsClient::describeSiteMonitorList(const DescribeSiteMonitorListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeTaskDetailOutcome(endpointOutcome.error()); + return DescribeSiteMonitorListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeTaskDetailOutcome(DescribeTaskDetailResult(outcome.result())); + return DescribeSiteMonitorListOutcome(DescribeSiteMonitorListResult(outcome.result())); else - return DescribeTaskDetailOutcome(outcome.error()); + return DescribeSiteMonitorListOutcome(outcome.error()); } -void CmsClient::describeTaskDetailAsync(const DescribeTaskDetailRequest& request, const DescribeTaskDetailAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeSiteMonitorListAsync(const DescribeSiteMonitorListRequest& request, const DescribeSiteMonitorListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeTaskDetail(request), context); + handler(this, request, describeSiteMonitorList(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeTaskDetailOutcomeCallable CmsClient::describeTaskDetailCallable(const DescribeTaskDetailRequest &request) const +CmsClient::DescribeSiteMonitorListOutcomeCallable CmsClient::describeSiteMonitorListCallable(const DescribeSiteMonitorListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeTaskDetail(request); + return this->describeSiteMonitorList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DescribeTasksOutcome CmsClient::describeTasks(const DescribeTasksRequest &request) const +CmsClient::DescribeSiteMonitorQuotaOutcome CmsClient::describeSiteMonitorQuota(const DescribeSiteMonitorQuotaRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DescribeTasksOutcome(endpointOutcome.error()); + return DescribeSiteMonitorQuotaOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DescribeTasksOutcome(DescribeTasksResult(outcome.result())); + return DescribeSiteMonitorQuotaOutcome(DescribeSiteMonitorQuotaResult(outcome.result())); else - return DescribeTasksOutcome(outcome.error()); + return DescribeSiteMonitorQuotaOutcome(outcome.error()); } -void CmsClient::describeTasksAsync(const DescribeTasksRequest& request, const DescribeTasksAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeSiteMonitorQuotaAsync(const DescribeSiteMonitorQuotaRequest& request, const DescribeSiteMonitorQuotaAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, describeTasks(request), context); + handler(this, request, describeSiteMonitorQuota(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DescribeTasksOutcomeCallable CmsClient::describeTasksCallable(const DescribeTasksRequest &request) const +CmsClient::DescribeSiteMonitorQuotaOutcomeCallable CmsClient::describeSiteMonitorQuotaCallable(const DescribeSiteMonitorQuotaRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->describeTasks(request); + return this->describeSiteMonitorQuota(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DisableActiveAlertOutcome CmsClient::disableActiveAlert(const DisableActiveAlertRequest &request) const +CmsClient::DescribeSiteMonitorStatisticsOutcome CmsClient::describeSiteMonitorStatistics(const DescribeSiteMonitorStatisticsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DisableActiveAlertOutcome(endpointOutcome.error()); + return DescribeSiteMonitorStatisticsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DisableActiveAlertOutcome(DisableActiveAlertResult(outcome.result())); + return DescribeSiteMonitorStatisticsOutcome(DescribeSiteMonitorStatisticsResult(outcome.result())); else - return DisableActiveAlertOutcome(outcome.error()); + return DescribeSiteMonitorStatisticsOutcome(outcome.error()); } -void CmsClient::disableActiveAlertAsync(const DisableActiveAlertRequest& request, const DisableActiveAlertAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeSiteMonitorStatisticsAsync(const DescribeSiteMonitorStatisticsRequest& request, const DescribeSiteMonitorStatisticsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, disableActiveAlert(request), context); + handler(this, request, describeSiteMonitorStatistics(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DisableActiveAlertOutcomeCallable CmsClient::disableActiveAlertCallable(const DisableActiveAlertRequest &request) const +CmsClient::DescribeSiteMonitorStatisticsOutcomeCallable CmsClient::describeSiteMonitorStatisticsCallable(const DescribeSiteMonitorStatisticsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->disableActiveAlert(request); + return this->describeSiteMonitorStatistics(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DisableAlarmOutcome CmsClient::disableAlarm(const DisableAlarmRequest &request) const +CmsClient::DescribeSystemEventAttributeOutcome CmsClient::describeSystemEventAttribute(const DescribeSystemEventAttributeRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DisableAlarmOutcome(endpointOutcome.error()); + return DescribeSystemEventAttributeOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DisableAlarmOutcome(DisableAlarmResult(outcome.result())); + return DescribeSystemEventAttributeOutcome(DescribeSystemEventAttributeResult(outcome.result())); else - return DisableAlarmOutcome(outcome.error()); + return DescribeSystemEventAttributeOutcome(outcome.error()); } -void CmsClient::disableAlarmAsync(const DisableAlarmRequest& request, const DisableAlarmAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeSystemEventAttributeAsync(const DescribeSystemEventAttributeRequest& request, const DescribeSystemEventAttributeAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, disableAlarm(request), context); + handler(this, request, describeSystemEventAttribute(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DisableAlarmOutcomeCallable CmsClient::disableAlarmCallable(const DisableAlarmRequest &request) const +CmsClient::DescribeSystemEventAttributeOutcomeCallable CmsClient::describeSystemEventAttributeCallable(const DescribeSystemEventAttributeRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->disableAlarm(request); + return this->describeSystemEventAttribute(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::DisableEventRuleOutcome CmsClient::disableEventRule(const DisableEventRuleRequest &request) const +CmsClient::DescribeSystemEventCountOutcome CmsClient::describeSystemEventCount(const DescribeSystemEventCountRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return DisableEventRuleOutcome(endpointOutcome.error()); + return DescribeSystemEventCountOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return DisableEventRuleOutcome(DisableEventRuleResult(outcome.result())); + return DescribeSystemEventCountOutcome(DescribeSystemEventCountResult(outcome.result())); else - return DisableEventRuleOutcome(outcome.error()); + return DescribeSystemEventCountOutcome(outcome.error()); } -void CmsClient::disableEventRuleAsync(const DisableEventRuleRequest& request, const DisableEventRuleAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeSystemEventCountAsync(const DescribeSystemEventCountRequest& request, const DescribeSystemEventCountAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, disableEventRule(request), context); + handler(this, request, describeSystemEventCount(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::DisableEventRuleOutcomeCallable CmsClient::disableEventRuleCallable(const DisableEventRuleRequest &request) const +CmsClient::DescribeSystemEventCountOutcomeCallable CmsClient::describeSystemEventCountCallable(const DescribeSystemEventCountRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->disableEventRule(request); + return this->describeSystemEventCount(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::EnableActiveAlertOutcome CmsClient::enableActiveAlert(const EnableActiveAlertRequest &request) const +CmsClient::DescribeSystemEventHistogramOutcome CmsClient::describeSystemEventHistogram(const DescribeSystemEventHistogramRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return EnableActiveAlertOutcome(endpointOutcome.error()); + return DescribeSystemEventHistogramOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return EnableActiveAlertOutcome(EnableActiveAlertResult(outcome.result())); + return DescribeSystemEventHistogramOutcome(DescribeSystemEventHistogramResult(outcome.result())); else - return EnableActiveAlertOutcome(outcome.error()); + return DescribeSystemEventHistogramOutcome(outcome.error()); } -void CmsClient::enableActiveAlertAsync(const EnableActiveAlertRequest& request, const EnableActiveAlertAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeSystemEventHistogramAsync(const DescribeSystemEventHistogramRequest& request, const DescribeSystemEventHistogramAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, enableActiveAlert(request), context); + handler(this, request, describeSystemEventHistogram(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::EnableActiveAlertOutcomeCallable CmsClient::enableActiveAlertCallable(const EnableActiveAlertRequest &request) const +CmsClient::DescribeSystemEventHistogramOutcomeCallable CmsClient::describeSystemEventHistogramCallable(const DescribeSystemEventHistogramRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->enableActiveAlert(request); + return this->describeSystemEventHistogram(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::EnableAlarmOutcome CmsClient::enableAlarm(const EnableAlarmRequest &request) const +CmsClient::DescribeSystemEventMetaListOutcome CmsClient::describeSystemEventMetaList(const DescribeSystemEventMetaListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return EnableAlarmOutcome(endpointOutcome.error()); + return DescribeSystemEventMetaListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return EnableAlarmOutcome(EnableAlarmResult(outcome.result())); + return DescribeSystemEventMetaListOutcome(DescribeSystemEventMetaListResult(outcome.result())); else - return EnableAlarmOutcome(outcome.error()); + return DescribeSystemEventMetaListOutcome(outcome.error()); } -void CmsClient::enableAlarmAsync(const EnableAlarmRequest& request, const EnableAlarmAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeSystemEventMetaListAsync(const DescribeSystemEventMetaListRequest& request, const DescribeSystemEventMetaListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, enableAlarm(request), context); + handler(this, request, describeSystemEventMetaList(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::EnableAlarmOutcomeCallable CmsClient::enableAlarmCallable(const EnableAlarmRequest &request) const +CmsClient::DescribeSystemEventMetaListOutcomeCallable CmsClient::describeSystemEventMetaListCallable(const DescribeSystemEventMetaListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->enableAlarm(request); + return this->describeSystemEventMetaList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::EnableEventRuleOutcome CmsClient::enableEventRule(const EnableEventRuleRequest &request) const +CmsClient::DescribeTagKeyListOutcome CmsClient::describeTagKeyList(const DescribeTagKeyListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return EnableEventRuleOutcome(endpointOutcome.error()); + return DescribeTagKeyListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return EnableEventRuleOutcome(EnableEventRuleResult(outcome.result())); + return DescribeTagKeyListOutcome(DescribeTagKeyListResult(outcome.result())); else - return EnableEventRuleOutcome(outcome.error()); + return DescribeTagKeyListOutcome(outcome.error()); } -void CmsClient::enableEventRuleAsync(const EnableEventRuleRequest& request, const EnableEventRuleAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeTagKeyListAsync(const DescribeTagKeyListRequest& request, const DescribeTagKeyListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, enableEventRule(request), context); + handler(this, request, describeTagKeyList(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::EnableEventRuleOutcomeCallable CmsClient::enableEventRuleCallable(const EnableEventRuleRequest &request) const +CmsClient::DescribeTagKeyListOutcomeCallable CmsClient::describeTagKeyListCallable(const DescribeTagKeyListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->enableEventRule(request); + return this->describeTagKeyList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::GetContactsOutcome CmsClient::getContacts(const GetContactsRequest &request) const +CmsClient::DescribeTagValueListOutcome CmsClient::describeTagValueList(const DescribeTagValueListRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetContactsOutcome(endpointOutcome.error()); + return DescribeTagValueListOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetContactsOutcome(GetContactsResult(outcome.result())); + return DescribeTagValueListOutcome(DescribeTagValueListResult(outcome.result())); else - return GetContactsOutcome(outcome.error()); + return DescribeTagValueListOutcome(outcome.error()); } -void CmsClient::getContactsAsync(const GetContactsRequest& request, const GetContactsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeTagValueListAsync(const DescribeTagValueListRequest& request, const DescribeTagValueListAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getContacts(request), context); + handler(this, request, describeTagValueList(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::GetContactsOutcomeCallable CmsClient::getContactsCallable(const GetContactsRequest &request) const +CmsClient::DescribeTagValueListOutcomeCallable CmsClient::describeTagValueListCallable(const DescribeTagValueListRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getContacts(request); + return this->describeTagValueList(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::GetMonitoringTemplateOutcome CmsClient::getMonitoringTemplate(const GetMonitoringTemplateRequest &request) const +CmsClient::DescribeUnhealthyHostAvailabilityOutcome CmsClient::describeUnhealthyHostAvailability(const DescribeUnhealthyHostAvailabilityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetMonitoringTemplateOutcome(endpointOutcome.error()); + return DescribeUnhealthyHostAvailabilityOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetMonitoringTemplateOutcome(GetMonitoringTemplateResult(outcome.result())); + return DescribeUnhealthyHostAvailabilityOutcome(DescribeUnhealthyHostAvailabilityResult(outcome.result())); else - return GetMonitoringTemplateOutcome(outcome.error()); + return DescribeUnhealthyHostAvailabilityOutcome(outcome.error()); } -void CmsClient::getMonitoringTemplateAsync(const GetMonitoringTemplateRequest& request, const GetMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::describeUnhealthyHostAvailabilityAsync(const DescribeUnhealthyHostAvailabilityRequest& request, const DescribeUnhealthyHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getMonitoringTemplate(request), context); + handler(this, request, describeUnhealthyHostAvailability(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::GetMonitoringTemplateOutcomeCallable CmsClient::getMonitoringTemplateCallable(const GetMonitoringTemplateRequest &request) const +CmsClient::DescribeUnhealthyHostAvailabilityOutcomeCallable CmsClient::describeUnhealthyHostAvailabilityCallable(const DescribeUnhealthyHostAvailabilityRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getMonitoringTemplate(request); + return this->describeUnhealthyHostAvailability(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::GetMyGroupAlertOutcome CmsClient::getMyGroupAlert(const GetMyGroupAlertRequest &request) const +CmsClient::DisableActiveMetricRuleOutcome CmsClient::disableActiveMetricRule(const DisableActiveMetricRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetMyGroupAlertOutcome(endpointOutcome.error()); + return DisableActiveMetricRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetMyGroupAlertOutcome(GetMyGroupAlertResult(outcome.result())); + return DisableActiveMetricRuleOutcome(DisableActiveMetricRuleResult(outcome.result())); else - return GetMyGroupAlertOutcome(outcome.error()); + return DisableActiveMetricRuleOutcome(outcome.error()); } -void CmsClient::getMyGroupAlertAsync(const GetMyGroupAlertRequest& request, const GetMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::disableActiveMetricRuleAsync(const DisableActiveMetricRuleRequest& request, const DisableActiveMetricRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getMyGroupAlert(request), context); + handler(this, request, disableActiveMetricRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::GetMyGroupAlertOutcomeCallable CmsClient::getMyGroupAlertCallable(const GetMyGroupAlertRequest &request) const +CmsClient::DisableActiveMetricRuleOutcomeCallable CmsClient::disableActiveMetricRuleCallable(const DisableActiveMetricRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getMyGroupAlert(request); + return this->disableActiveMetricRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::GetMyGroupsOutcome CmsClient::getMyGroups(const GetMyGroupsRequest &request) const +CmsClient::DisableEventRulesOutcome CmsClient::disableEventRules(const DisableEventRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetMyGroupsOutcome(endpointOutcome.error()); + return DisableEventRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetMyGroupsOutcome(GetMyGroupsResult(outcome.result())); + return DisableEventRulesOutcome(DisableEventRulesResult(outcome.result())); else - return GetMyGroupsOutcome(outcome.error()); + return DisableEventRulesOutcome(outcome.error()); } -void CmsClient::getMyGroupsAsync(const GetMyGroupsRequest& request, const GetMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::disableEventRulesAsync(const DisableEventRulesRequest& request, const DisableEventRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getMyGroups(request), context); + handler(this, request, disableEventRules(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::GetMyGroupsOutcomeCallable CmsClient::getMyGroupsCallable(const GetMyGroupsRequest &request) const +CmsClient::DisableEventRulesOutcomeCallable CmsClient::disableEventRulesCallable(const DisableEventRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getMyGroups(request); + return this->disableEventRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::GetNotifyPolicyOutcome CmsClient::getNotifyPolicy(const GetNotifyPolicyRequest &request) const +CmsClient::DisableHostAvailabilityOutcome CmsClient::disableHostAvailability(const DisableHostAvailabilityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return GetNotifyPolicyOutcome(endpointOutcome.error()); + return DisableHostAvailabilityOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return GetNotifyPolicyOutcome(GetNotifyPolicyResult(outcome.result())); + return DisableHostAvailabilityOutcome(DisableHostAvailabilityResult(outcome.result())); else - return GetNotifyPolicyOutcome(outcome.error()); + return DisableHostAvailabilityOutcome(outcome.error()); } -void CmsClient::getNotifyPolicyAsync(const GetNotifyPolicyRequest& request, const GetNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::disableHostAvailabilityAsync(const DisableHostAvailabilityRequest& request, const DisableHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, getNotifyPolicy(request), context); + handler(this, request, disableHostAvailability(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::GetNotifyPolicyOutcomeCallable CmsClient::getNotifyPolicyCallable(const GetNotifyPolicyRequest &request) const +CmsClient::DisableHostAvailabilityOutcomeCallable CmsClient::disableHostAvailabilityCallable(const DisableHostAvailabilityRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->getNotifyPolicy(request); + return this->disableHostAvailability(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListActiveAlertRuleOutcome CmsClient::listActiveAlertRule(const ListActiveAlertRuleRequest &request) const +CmsClient::DisableMetricRulesOutcome CmsClient::disableMetricRules(const DisableMetricRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListActiveAlertRuleOutcome(endpointOutcome.error()); + return DisableMetricRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListActiveAlertRuleOutcome(ListActiveAlertRuleResult(outcome.result())); + return DisableMetricRulesOutcome(DisableMetricRulesResult(outcome.result())); else - return ListActiveAlertRuleOutcome(outcome.error()); + return DisableMetricRulesOutcome(outcome.error()); } -void CmsClient::listActiveAlertRuleAsync(const ListActiveAlertRuleRequest& request, const ListActiveAlertRuleAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::disableMetricRulesAsync(const DisableMetricRulesRequest& request, const DisableMetricRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listActiveAlertRule(request), context); + handler(this, request, disableMetricRules(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListActiveAlertRuleOutcomeCallable CmsClient::listActiveAlertRuleCallable(const ListActiveAlertRuleRequest &request) const +CmsClient::DisableMetricRulesOutcomeCallable CmsClient::disableMetricRulesCallable(const DisableMetricRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listActiveAlertRule(request); + return this->disableMetricRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListAlarmOutcome CmsClient::listAlarm(const ListAlarmRequest &request) const +CmsClient::DisableSiteMonitorsOutcome CmsClient::disableSiteMonitors(const DisableSiteMonitorsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListAlarmOutcome(endpointOutcome.error()); + return DisableSiteMonitorsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListAlarmOutcome(ListAlarmResult(outcome.result())); + return DisableSiteMonitorsOutcome(DisableSiteMonitorsResult(outcome.result())); else - return ListAlarmOutcome(outcome.error()); + return DisableSiteMonitorsOutcome(outcome.error()); } -void CmsClient::listAlarmAsync(const ListAlarmRequest& request, const ListAlarmAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::disableSiteMonitorsAsync(const DisableSiteMonitorsRequest& request, const DisableSiteMonitorsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listAlarm(request), context); + handler(this, request, disableSiteMonitors(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListAlarmOutcomeCallable CmsClient::listAlarmCallable(const ListAlarmRequest &request) const +CmsClient::DisableSiteMonitorsOutcomeCallable CmsClient::disableSiteMonitorsCallable(const DisableSiteMonitorsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listAlarm(request); + return this->disableSiteMonitors(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListAlarmHistoryOutcome CmsClient::listAlarmHistory(const ListAlarmHistoryRequest &request) const +CmsClient::EnableActiveMetricRuleOutcome CmsClient::enableActiveMetricRule(const EnableActiveMetricRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListAlarmHistoryOutcome(endpointOutcome.error()); + return EnableActiveMetricRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListAlarmHistoryOutcome(ListAlarmHistoryResult(outcome.result())); + return EnableActiveMetricRuleOutcome(EnableActiveMetricRuleResult(outcome.result())); else - return ListAlarmHistoryOutcome(outcome.error()); + return EnableActiveMetricRuleOutcome(outcome.error()); } -void CmsClient::listAlarmHistoryAsync(const ListAlarmHistoryRequest& request, const ListAlarmHistoryAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::enableActiveMetricRuleAsync(const EnableActiveMetricRuleRequest& request, const EnableActiveMetricRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listAlarmHistory(request), context); + handler(this, request, enableActiveMetricRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListAlarmHistoryOutcomeCallable CmsClient::listAlarmHistoryCallable(const ListAlarmHistoryRequest &request) const +CmsClient::EnableActiveMetricRuleOutcomeCallable CmsClient::enableActiveMetricRuleCallable(const EnableActiveMetricRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listAlarmHistory(request); + return this->enableActiveMetricRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListContactGroupOutcome CmsClient::listContactGroup(const ListContactGroupRequest &request) const +CmsClient::EnableEventRulesOutcome CmsClient::enableEventRules(const EnableEventRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListContactGroupOutcome(endpointOutcome.error()); + return EnableEventRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListContactGroupOutcome(ListContactGroupResult(outcome.result())); + return EnableEventRulesOutcome(EnableEventRulesResult(outcome.result())); else - return ListContactGroupOutcome(outcome.error()); + return EnableEventRulesOutcome(outcome.error()); } -void CmsClient::listContactGroupAsync(const ListContactGroupRequest& request, const ListContactGroupAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::enableEventRulesAsync(const EnableEventRulesRequest& request, const EnableEventRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listContactGroup(request), context); + handler(this, request, enableEventRules(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListContactGroupOutcomeCallable CmsClient::listContactGroupCallable(const ListContactGroupRequest &request) const +CmsClient::EnableEventRulesOutcomeCallable CmsClient::enableEventRulesCallable(const EnableEventRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listContactGroup(request); + return this->enableEventRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListEventRulesOutcome CmsClient::listEventRules(const ListEventRulesRequest &request) const +CmsClient::EnableHostAvailabilityOutcome CmsClient::enableHostAvailability(const EnableHostAvailabilityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListEventRulesOutcome(endpointOutcome.error()); + return EnableHostAvailabilityOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListEventRulesOutcome(ListEventRulesResult(outcome.result())); + return EnableHostAvailabilityOutcome(EnableHostAvailabilityResult(outcome.result())); else - return ListEventRulesOutcome(outcome.error()); + return EnableHostAvailabilityOutcome(outcome.error()); } -void CmsClient::listEventRulesAsync(const ListEventRulesRequest& request, const ListEventRulesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::enableHostAvailabilityAsync(const EnableHostAvailabilityRequest& request, const EnableHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listEventRules(request), context); + handler(this, request, enableHostAvailability(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListEventRulesOutcomeCallable CmsClient::listEventRulesCallable(const ListEventRulesRequest &request) const +CmsClient::EnableHostAvailabilityOutcomeCallable CmsClient::enableHostAvailabilityCallable(const EnableHostAvailabilityRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listEventRules(request); + return this->enableHostAvailability(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListEventTargetsByRuleOutcome CmsClient::listEventTargetsByRule(const ListEventTargetsByRuleRequest &request) const +CmsClient::EnableMetricRulesOutcome CmsClient::enableMetricRules(const EnableMetricRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListEventTargetsByRuleOutcome(endpointOutcome.error()); + return EnableMetricRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListEventTargetsByRuleOutcome(ListEventTargetsByRuleResult(outcome.result())); + return EnableMetricRulesOutcome(EnableMetricRulesResult(outcome.result())); else - return ListEventTargetsByRuleOutcome(outcome.error()); + return EnableMetricRulesOutcome(outcome.error()); } -void CmsClient::listEventTargetsByRuleAsync(const ListEventTargetsByRuleRequest& request, const ListEventTargetsByRuleAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::enableMetricRulesAsync(const EnableMetricRulesRequest& request, const EnableMetricRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listEventTargetsByRule(request), context); + handler(this, request, enableMetricRules(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListEventTargetsByRuleOutcomeCallable CmsClient::listEventTargetsByRuleCallable(const ListEventTargetsByRuleRequest &request) const +CmsClient::EnableMetricRulesOutcomeCallable CmsClient::enableMetricRulesCallable(const EnableMetricRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listEventTargetsByRule(request); + return this->enableMetricRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListGroupDynamicRuleOutcome CmsClient::listGroupDynamicRule(const ListGroupDynamicRuleRequest &request) const +CmsClient::EnableSiteMonitorsOutcome CmsClient::enableSiteMonitors(const EnableSiteMonitorsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListGroupDynamicRuleOutcome(endpointOutcome.error()); + return EnableSiteMonitorsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListGroupDynamicRuleOutcome(ListGroupDynamicRuleResult(outcome.result())); + return EnableSiteMonitorsOutcome(EnableSiteMonitorsResult(outcome.result())); else - return ListGroupDynamicRuleOutcome(outcome.error()); + return EnableSiteMonitorsOutcome(outcome.error()); } -void CmsClient::listGroupDynamicRuleAsync(const ListGroupDynamicRuleRequest& request, const ListGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::enableSiteMonitorsAsync(const EnableSiteMonitorsRequest& request, const EnableSiteMonitorsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listGroupDynamicRule(request), context); + handler(this, request, enableSiteMonitors(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListGroupDynamicRuleOutcomeCallable CmsClient::listGroupDynamicRuleCallable(const ListGroupDynamicRuleRequest &request) const +CmsClient::EnableSiteMonitorsOutcomeCallable CmsClient::enableSiteMonitorsCallable(const EnableSiteMonitorsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listGroupDynamicRule(request); + return this->enableSiteMonitors(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListMonitoringTemplatesOutcome CmsClient::listMonitoringTemplates(const ListMonitoringTemplatesRequest &request) const +CmsClient::InstallMonitoringAgentOutcome CmsClient::installMonitoringAgent(const InstallMonitoringAgentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListMonitoringTemplatesOutcome(endpointOutcome.error()); + return InstallMonitoringAgentOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListMonitoringTemplatesOutcome(ListMonitoringTemplatesResult(outcome.result())); + return InstallMonitoringAgentOutcome(InstallMonitoringAgentResult(outcome.result())); else - return ListMonitoringTemplatesOutcome(outcome.error()); + return InstallMonitoringAgentOutcome(outcome.error()); } -void CmsClient::listMonitoringTemplatesAsync(const ListMonitoringTemplatesRequest& request, const ListMonitoringTemplatesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::installMonitoringAgentAsync(const InstallMonitoringAgentRequest& request, const InstallMonitoringAgentAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listMonitoringTemplates(request), context); + handler(this, request, installMonitoringAgent(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListMonitoringTemplatesOutcomeCallable CmsClient::listMonitoringTemplatesCallable(const ListMonitoringTemplatesRequest &request) const +CmsClient::InstallMonitoringAgentOutcomeCallable CmsClient::installMonitoringAgentCallable(const InstallMonitoringAgentRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listMonitoringTemplates(request); + return this->installMonitoringAgent(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListMyGroupCategoriesOutcome CmsClient::listMyGroupCategories(const ListMyGroupCategoriesRequest &request) const +CmsClient::ModifyGroupMonitoringAgentProcessOutcome CmsClient::modifyGroupMonitoringAgentProcess(const ModifyGroupMonitoringAgentProcessRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListMyGroupCategoriesOutcome(endpointOutcome.error()); + return ModifyGroupMonitoringAgentProcessOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListMyGroupCategoriesOutcome(ListMyGroupCategoriesResult(outcome.result())); + return ModifyGroupMonitoringAgentProcessOutcome(ModifyGroupMonitoringAgentProcessResult(outcome.result())); else - return ListMyGroupCategoriesOutcome(outcome.error()); + return ModifyGroupMonitoringAgentProcessOutcome(outcome.error()); } -void CmsClient::listMyGroupCategoriesAsync(const ListMyGroupCategoriesRequest& request, const ListMyGroupCategoriesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::modifyGroupMonitoringAgentProcessAsync(const ModifyGroupMonitoringAgentProcessRequest& request, const ModifyGroupMonitoringAgentProcessAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listMyGroupCategories(request), context); + handler(this, request, modifyGroupMonitoringAgentProcess(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListMyGroupCategoriesOutcomeCallable CmsClient::listMyGroupCategoriesCallable(const ListMyGroupCategoriesRequest &request) const +CmsClient::ModifyGroupMonitoringAgentProcessOutcomeCallable CmsClient::modifyGroupMonitoringAgentProcessCallable(const ModifyGroupMonitoringAgentProcessRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listMyGroupCategories(request); + return this->modifyGroupMonitoringAgentProcess(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListMyGroupInstancesOutcome CmsClient::listMyGroupInstances(const ListMyGroupInstancesRequest &request) const +CmsClient::ModifyHostAvailabilityOutcome CmsClient::modifyHostAvailability(const ModifyHostAvailabilityRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListMyGroupInstancesOutcome(endpointOutcome.error()); + return ModifyHostAvailabilityOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListMyGroupInstancesOutcome(ListMyGroupInstancesResult(outcome.result())); + return ModifyHostAvailabilityOutcome(ModifyHostAvailabilityResult(outcome.result())); else - return ListMyGroupInstancesOutcome(outcome.error()); + return ModifyHostAvailabilityOutcome(outcome.error()); } -void CmsClient::listMyGroupInstancesAsync(const ListMyGroupInstancesRequest& request, const ListMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::modifyHostAvailabilityAsync(const ModifyHostAvailabilityRequest& request, const ModifyHostAvailabilityAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listMyGroupInstances(request), context); + handler(this, request, modifyHostAvailability(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListMyGroupInstancesOutcomeCallable CmsClient::listMyGroupInstancesCallable(const ListMyGroupInstancesRequest &request) const +CmsClient::ModifyHostAvailabilityOutcomeCallable CmsClient::modifyHostAvailabilityCallable(const ModifyHostAvailabilityRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listMyGroupInstances(request); + return this->modifyHostAvailability(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListMyGroupInstancesDetailsOutcome CmsClient::listMyGroupInstancesDetails(const ListMyGroupInstancesDetailsRequest &request) const +CmsClient::ModifyMetricRuleTemplateOutcome CmsClient::modifyMetricRuleTemplate(const ModifyMetricRuleTemplateRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListMyGroupInstancesDetailsOutcome(endpointOutcome.error()); + return ModifyMetricRuleTemplateOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListMyGroupInstancesDetailsOutcome(ListMyGroupInstancesDetailsResult(outcome.result())); + return ModifyMetricRuleTemplateOutcome(ModifyMetricRuleTemplateResult(outcome.result())); else - return ListMyGroupInstancesDetailsOutcome(outcome.error()); + return ModifyMetricRuleTemplateOutcome(outcome.error()); } -void CmsClient::listMyGroupInstancesDetailsAsync(const ListMyGroupInstancesDetailsRequest& request, const ListMyGroupInstancesDetailsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::modifyMetricRuleTemplateAsync(const ModifyMetricRuleTemplateRequest& request, const ModifyMetricRuleTemplateAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listMyGroupInstancesDetails(request), context); + handler(this, request, modifyMetricRuleTemplate(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListMyGroupInstancesDetailsOutcomeCallable CmsClient::listMyGroupInstancesDetailsCallable(const ListMyGroupInstancesDetailsRequest &request) const +CmsClient::ModifyMetricRuleTemplateOutcomeCallable CmsClient::modifyMetricRuleTemplateCallable(const ModifyMetricRuleTemplateRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listMyGroupInstancesDetails(request); + return this->modifyMetricRuleTemplate(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListMyGroupsOutcome CmsClient::listMyGroups(const ListMyGroupsRequest &request) const +CmsClient::ModifyMonitorGroupOutcome CmsClient::modifyMonitorGroup(const ModifyMonitorGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListMyGroupsOutcome(endpointOutcome.error()); + return ModifyMonitorGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListMyGroupsOutcome(ListMyGroupsResult(outcome.result())); + return ModifyMonitorGroupOutcome(ModifyMonitorGroupResult(outcome.result())); else - return ListMyGroupsOutcome(outcome.error()); + return ModifyMonitorGroupOutcome(outcome.error()); } -void CmsClient::listMyGroupsAsync(const ListMyGroupsRequest& request, const ListMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::modifyMonitorGroupAsync(const ModifyMonitorGroupRequest& request, const ModifyMonitorGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listMyGroups(request), context); + handler(this, request, modifyMonitorGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListMyGroupsOutcomeCallable CmsClient::listMyGroupsCallable(const ListMyGroupsRequest &request) const +CmsClient::ModifyMonitorGroupOutcomeCallable CmsClient::modifyMonitorGroupCallable(const ModifyMonitorGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listMyGroups(request); + return this->modifyMonitorGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListNotifyPolicyOutcome CmsClient::listNotifyPolicy(const ListNotifyPolicyRequest &request) const +CmsClient::ModifyMonitorGroupInstancesOutcome CmsClient::modifyMonitorGroupInstances(const ModifyMonitorGroupInstancesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListNotifyPolicyOutcome(endpointOutcome.error()); + return ModifyMonitorGroupInstancesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListNotifyPolicyOutcome(ListNotifyPolicyResult(outcome.result())); + return ModifyMonitorGroupInstancesOutcome(ModifyMonitorGroupInstancesResult(outcome.result())); else - return ListNotifyPolicyOutcome(outcome.error()); + return ModifyMonitorGroupInstancesOutcome(outcome.error()); } -void CmsClient::listNotifyPolicyAsync(const ListNotifyPolicyRequest& request, const ListNotifyPolicyAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::modifyMonitorGroupInstancesAsync(const ModifyMonitorGroupInstancesRequest& request, const ModifyMonitorGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listNotifyPolicy(request), context); + handler(this, request, modifyMonitorGroupInstances(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListNotifyPolicyOutcomeCallable CmsClient::listNotifyPolicyCallable(const ListNotifyPolicyRequest &request) const +CmsClient::ModifyMonitorGroupInstancesOutcomeCallable CmsClient::modifyMonitorGroupInstancesCallable(const ModifyMonitorGroupInstancesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listNotifyPolicy(request); + return this->modifyMonitorGroupInstances(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ListProductOfActiveAlertOutcome CmsClient::listProductOfActiveAlert(const ListProductOfActiveAlertRequest &request) const +CmsClient::ModifySiteMonitorOutcome CmsClient::modifySiteMonitor(const ModifySiteMonitorRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ListProductOfActiveAlertOutcome(endpointOutcome.error()); + return ModifySiteMonitorOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ListProductOfActiveAlertOutcome(ListProductOfActiveAlertResult(outcome.result())); + return ModifySiteMonitorOutcome(ModifySiteMonitorResult(outcome.result())); else - return ListProductOfActiveAlertOutcome(outcome.error()); + return ModifySiteMonitorOutcome(outcome.error()); } -void CmsClient::listProductOfActiveAlertAsync(const ListProductOfActiveAlertRequest& request, const ListProductOfActiveAlertAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::modifySiteMonitorAsync(const ModifySiteMonitorRequest& request, const ModifySiteMonitorAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, listProductOfActiveAlert(request), context); + handler(this, request, modifySiteMonitor(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ListProductOfActiveAlertOutcomeCallable CmsClient::listProductOfActiveAlertCallable(const ListProductOfActiveAlertRequest &request) const +CmsClient::ModifySiteMonitorOutcomeCallable CmsClient::modifySiteMonitorCallable(const ModifySiteMonitorRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->listProductOfActiveAlert(request); + return this->modifySiteMonitor(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::ModifyTaskOutcome CmsClient::modifyTask(const ModifyTaskRequest &request) const +CmsClient::PutContactOutcome CmsClient::putContact(const PutContactRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return ModifyTaskOutcome(endpointOutcome.error()); + return PutContactOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return ModifyTaskOutcome(ModifyTaskResult(outcome.result())); + return PutContactOutcome(PutContactResult(outcome.result())); else - return ModifyTaskOutcome(outcome.error()); + return PutContactOutcome(outcome.error()); } -void CmsClient::modifyTaskAsync(const ModifyTaskRequest& request, const ModifyTaskAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putContactAsync(const PutContactRequest& request, const PutContactAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, modifyTask(request), context); + handler(this, request, putContact(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::ModifyTaskOutcomeCallable CmsClient::modifyTaskCallable(const ModifyTaskRequest &request) const +CmsClient::PutContactOutcomeCallable CmsClient::putContactCallable(const PutContactRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->modifyTask(request); + return this->putContact(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::NodeInstallOutcome CmsClient::nodeInstall(const NodeInstallRequest &request) const +CmsClient::PutContactGroupOutcome CmsClient::putContactGroup(const PutContactGroupRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return NodeInstallOutcome(endpointOutcome.error()); + return PutContactGroupOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return NodeInstallOutcome(NodeInstallResult(outcome.result())); + return PutContactGroupOutcome(PutContactGroupResult(outcome.result())); else - return NodeInstallOutcome(outcome.error()); + return PutContactGroupOutcome(outcome.error()); } -void CmsClient::nodeInstallAsync(const NodeInstallRequest& request, const NodeInstallAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putContactGroupAsync(const PutContactGroupRequest& request, const PutContactGroupAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, nodeInstall(request), context); + handler(this, request, putContactGroup(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::NodeInstallOutcomeCallable CmsClient::nodeInstallCallable(const NodeInstallRequest &request) const +CmsClient::PutContactGroupOutcomeCallable CmsClient::putContactGroupCallable(const PutContactGroupRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->nodeInstall(request); + return this->putContactGroup(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::NodeListOutcome CmsClient::nodeList(const NodeListRequest &request) const +CmsClient::PutCustomEventOutcome CmsClient::putCustomEvent(const PutCustomEventRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return NodeListOutcome(endpointOutcome.error()); + return PutCustomEventOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return NodeListOutcome(NodeListResult(outcome.result())); + return PutCustomEventOutcome(PutCustomEventResult(outcome.result())); else - return NodeListOutcome(outcome.error()); + return PutCustomEventOutcome(outcome.error()); } -void CmsClient::nodeListAsync(const NodeListRequest& request, const NodeListAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putCustomEventAsync(const PutCustomEventRequest& request, const PutCustomEventAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, nodeList(request), context); + handler(this, request, putCustomEvent(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::NodeListOutcomeCallable CmsClient::nodeListCallable(const NodeListRequest &request) const +CmsClient::PutCustomEventOutcomeCallable CmsClient::putCustomEventCallable(const PutCustomEventRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->nodeList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::NodeProcessCreateOutcome CmsClient::nodeProcessCreate(const NodeProcessCreateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return NodeProcessCreateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return NodeProcessCreateOutcome(NodeProcessCreateResult(outcome.result())); - else - return NodeProcessCreateOutcome(outcome.error()); -} - -void CmsClient::nodeProcessCreateAsync(const NodeProcessCreateRequest& request, const NodeProcessCreateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, nodeProcessCreate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::NodeProcessCreateOutcomeCallable CmsClient::nodeProcessCreateCallable(const NodeProcessCreateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->nodeProcessCreate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::NodeProcessDeleteOutcome CmsClient::nodeProcessDelete(const NodeProcessDeleteRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return NodeProcessDeleteOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return NodeProcessDeleteOutcome(NodeProcessDeleteResult(outcome.result())); - else - return NodeProcessDeleteOutcome(outcome.error()); -} - -void CmsClient::nodeProcessDeleteAsync(const NodeProcessDeleteRequest& request, const NodeProcessDeleteAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, nodeProcessDelete(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::NodeProcessDeleteOutcomeCallable CmsClient::nodeProcessDeleteCallable(const NodeProcessDeleteRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->nodeProcessDelete(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::NodeProcessesOutcome CmsClient::nodeProcesses(const NodeProcessesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return NodeProcessesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return NodeProcessesOutcome(NodeProcessesResult(outcome.result())); - else - return NodeProcessesOutcome(outcome.error()); -} - -void CmsClient::nodeProcessesAsync(const NodeProcessesRequest& request, const NodeProcessesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, nodeProcesses(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::NodeProcessesOutcomeCallable CmsClient::nodeProcessesCallable(const NodeProcessesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->nodeProcesses(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::NodeStatusOutcome CmsClient::nodeStatus(const NodeStatusRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return NodeStatusOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return NodeStatusOutcome(NodeStatusResult(outcome.result())); - else - return NodeStatusOutcome(outcome.error()); -} - -void CmsClient::nodeStatusAsync(const NodeStatusRequest& request, const NodeStatusAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, nodeStatus(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::NodeStatusOutcomeCallable CmsClient::nodeStatusCallable(const NodeStatusRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->nodeStatus(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::NodeStatusListOutcome CmsClient::nodeStatusList(const NodeStatusListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return NodeStatusListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return NodeStatusListOutcome(NodeStatusListResult(outcome.result())); - else - return NodeStatusListOutcome(outcome.error()); -} - -void CmsClient::nodeStatusListAsync(const NodeStatusListRequest& request, const NodeStatusListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, nodeStatusList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::NodeStatusListOutcomeCallable CmsClient::nodeStatusListCallable(const NodeStatusListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->nodeStatusList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::NodeUninstallOutcome CmsClient::nodeUninstall(const NodeUninstallRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return NodeUninstallOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return NodeUninstallOutcome(NodeUninstallResult(outcome.result())); - else - return NodeUninstallOutcome(outcome.error()); -} - -void CmsClient::nodeUninstallAsync(const NodeUninstallRequest& request, const NodeUninstallAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, nodeUninstall(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::NodeUninstallOutcomeCallable CmsClient::nodeUninstallCallable(const NodeUninstallRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->nodeUninstall(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::ProfileGetOutcome CmsClient::profileGet(const ProfileGetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ProfileGetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ProfileGetOutcome(ProfileGetResult(outcome.result())); - else - return ProfileGetOutcome(outcome.error()); -} - -void CmsClient::profileGetAsync(const ProfileGetRequest& request, const ProfileGetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, profileGet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::ProfileGetOutcomeCallable CmsClient::profileGetCallable(const ProfileGetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->profileGet(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::ProfileSetOutcome CmsClient::profileSet(const ProfileSetRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return ProfileSetOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return ProfileSetOutcome(ProfileSetResult(outcome.result())); - else - return ProfileSetOutcome(outcome.error()); -} - -void CmsClient::profileSetAsync(const ProfileSetRequest& request, const ProfileSetAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, profileSet(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::ProfileSetOutcomeCallable CmsClient::profileSetCallable(const ProfileSetRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->profileSet(request); + return this->putCustomEvent(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2535,42 +3759,6 @@ CmsClient::PutCustomMetricOutcomeCallable CmsClient::putCustomMetricCallable(con return task->get_future(); } -CmsClient::PutEventOutcome CmsClient::putEvent(const PutEventRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PutEventOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PutEventOutcome(PutEventResult(outcome.result())); - else - return PutEventOutcome(outcome.error()); -} - -void CmsClient::putEventAsync(const PutEventRequest& request, const PutEventAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, putEvent(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::PutEventOutcomeCallable CmsClient::putEventCallable(const PutEventRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->putEvent(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - CmsClient::PutEventRuleOutcome CmsClient::putEventRule(const PutEventRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); @@ -2607,108 +3795,72 @@ CmsClient::PutEventRuleOutcomeCallable CmsClient::putEventRuleCallable(const Put return task->get_future(); } -CmsClient::PutEventTargetsOutcome CmsClient::putEventTargets(const PutEventTargetsRequest &request) const +CmsClient::PutEventRuleTargetsOutcome CmsClient::putEventRuleTargets(const PutEventRuleTargetsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutEventTargetsOutcome(endpointOutcome.error()); + return PutEventRuleTargetsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutEventTargetsOutcome(PutEventTargetsResult(outcome.result())); + return PutEventRuleTargetsOutcome(PutEventRuleTargetsResult(outcome.result())); else - return PutEventTargetsOutcome(outcome.error()); + return PutEventRuleTargetsOutcome(outcome.error()); } -void CmsClient::putEventTargetsAsync(const PutEventTargetsRequest& request, const PutEventTargetsAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putEventRuleTargetsAsync(const PutEventRuleTargetsRequest& request, const PutEventRuleTargetsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putEventTargets(request), context); + handler(this, request, putEventRuleTargets(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::PutEventTargetsOutcomeCallable CmsClient::putEventTargetsCallable(const PutEventTargetsRequest &request) const +CmsClient::PutEventRuleTargetsOutcomeCallable CmsClient::putEventRuleTargetsCallable(const PutEventRuleTargetsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putEventTargets(request); + return this->putEventRuleTargets(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::PutGroupDynamicRuleOutcome CmsClient::putGroupDynamicRule(const PutGroupDynamicRuleRequest &request) const +CmsClient::PutGroupMetricRuleOutcome CmsClient::putGroupMetricRule(const PutGroupMetricRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return PutGroupDynamicRuleOutcome(endpointOutcome.error()); + return PutGroupMetricRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return PutGroupDynamicRuleOutcome(PutGroupDynamicRuleResult(outcome.result())); + return PutGroupMetricRuleOutcome(PutGroupMetricRuleResult(outcome.result())); else - return PutGroupDynamicRuleOutcome(outcome.error()); + return PutGroupMetricRuleOutcome(outcome.error()); } -void CmsClient::putGroupDynamicRuleAsync(const PutGroupDynamicRuleRequest& request, const PutGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putGroupMetricRuleAsync(const PutGroupMetricRuleRequest& request, const PutGroupMetricRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, putGroupDynamicRule(request), context); + handler(this, request, putGroupMetricRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::PutGroupDynamicRuleOutcomeCallable CmsClient::putGroupDynamicRuleCallable(const PutGroupDynamicRuleRequest &request) const +CmsClient::PutGroupMetricRuleOutcomeCallable CmsClient::putGroupMetricRuleCallable(const PutGroupMetricRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->putGroupDynamicRule(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::PutMetricAlarmOutcome CmsClient::putMetricAlarm(const PutMetricAlarmRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return PutMetricAlarmOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return PutMetricAlarmOutcome(PutMetricAlarmResult(outcome.result())); - else - return PutMetricAlarmOutcome(outcome.error()); -} - -void CmsClient::putMetricAlarmAsync(const PutMetricAlarmRequest& request, const PutMetricAlarmAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, putMetricAlarm(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::PutMetricAlarmOutcomeCallable CmsClient::putMetricAlarmCallable(const PutMetricAlarmRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->putMetricAlarm(request); + return this->putGroupMetricRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -2751,792 +3903,180 @@ CmsClient::PutMetricRuleTargetsOutcomeCallable CmsClient::putMetricRuleTargetsCa return task->get_future(); } -CmsClient::QueryCustomEventCountOutcome CmsClient::queryCustomEventCount(const QueryCustomEventCountRequest &request) const +CmsClient::PutMonitorGroupDynamicRuleOutcome CmsClient::putMonitorGroupDynamicRule(const PutMonitorGroupDynamicRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryCustomEventCountOutcome(endpointOutcome.error()); + return PutMonitorGroupDynamicRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryCustomEventCountOutcome(QueryCustomEventCountResult(outcome.result())); + return PutMonitorGroupDynamicRuleOutcome(PutMonitorGroupDynamicRuleResult(outcome.result())); else - return QueryCustomEventCountOutcome(outcome.error()); + return PutMonitorGroupDynamicRuleOutcome(outcome.error()); } -void CmsClient::queryCustomEventCountAsync(const QueryCustomEventCountRequest& request, const QueryCustomEventCountAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putMonitorGroupDynamicRuleAsync(const PutMonitorGroupDynamicRuleRequest& request, const PutMonitorGroupDynamicRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryCustomEventCount(request), context); + handler(this, request, putMonitorGroupDynamicRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::QueryCustomEventCountOutcomeCallable CmsClient::queryCustomEventCountCallable(const QueryCustomEventCountRequest &request) const +CmsClient::PutMonitorGroupDynamicRuleOutcomeCallable CmsClient::putMonitorGroupDynamicRuleCallable(const PutMonitorGroupDynamicRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryCustomEventCount(request); + return this->putMonitorGroupDynamicRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::QueryCustomEventDetailOutcome CmsClient::queryCustomEventDetail(const QueryCustomEventDetailRequest &request) const +CmsClient::PutMonitoringConfigOutcome CmsClient::putMonitoringConfig(const PutMonitoringConfigRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryCustomEventDetailOutcome(endpointOutcome.error()); + return PutMonitoringConfigOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryCustomEventDetailOutcome(QueryCustomEventDetailResult(outcome.result())); + return PutMonitoringConfigOutcome(PutMonitoringConfigResult(outcome.result())); else - return QueryCustomEventDetailOutcome(outcome.error()); + return PutMonitoringConfigOutcome(outcome.error()); } -void CmsClient::queryCustomEventDetailAsync(const QueryCustomEventDetailRequest& request, const QueryCustomEventDetailAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putMonitoringConfigAsync(const PutMonitoringConfigRequest& request, const PutMonitoringConfigAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryCustomEventDetail(request), context); + handler(this, request, putMonitoringConfig(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::QueryCustomEventDetailOutcomeCallable CmsClient::queryCustomEventDetailCallable(const QueryCustomEventDetailRequest &request) const +CmsClient::PutMonitoringConfigOutcomeCallable CmsClient::putMonitoringConfigCallable(const PutMonitoringConfigRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryCustomEventDetail(request); + return this->putMonitoringConfig(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::QueryCustomEventHistogramOutcome CmsClient::queryCustomEventHistogram(const QueryCustomEventHistogramRequest &request) const +CmsClient::PutResourceMetricRuleOutcome CmsClient::putResourceMetricRule(const PutResourceMetricRuleRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryCustomEventHistogramOutcome(endpointOutcome.error()); + return PutResourceMetricRuleOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryCustomEventHistogramOutcome(QueryCustomEventHistogramResult(outcome.result())); + return PutResourceMetricRuleOutcome(PutResourceMetricRuleResult(outcome.result())); else - return QueryCustomEventHistogramOutcome(outcome.error()); + return PutResourceMetricRuleOutcome(outcome.error()); } -void CmsClient::queryCustomEventHistogramAsync(const QueryCustomEventHistogramRequest& request, const QueryCustomEventHistogramAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putResourceMetricRuleAsync(const PutResourceMetricRuleRequest& request, const PutResourceMetricRuleAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryCustomEventHistogram(request), context); + handler(this, request, putResourceMetricRule(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::QueryCustomEventHistogramOutcomeCallable CmsClient::queryCustomEventHistogramCallable(const QueryCustomEventHistogramRequest &request) const +CmsClient::PutResourceMetricRuleOutcomeCallable CmsClient::putResourceMetricRuleCallable(const PutResourceMetricRuleRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryCustomEventHistogram(request); + return this->putResourceMetricRule(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::QueryCustomMetricListOutcome CmsClient::queryCustomMetricList(const QueryCustomMetricListRequest &request) const +CmsClient::PutResourceMetricRulesOutcome CmsClient::putResourceMetricRules(const PutResourceMetricRulesRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryCustomMetricListOutcome(endpointOutcome.error()); + return PutResourceMetricRulesOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryCustomMetricListOutcome(QueryCustomMetricListResult(outcome.result())); + return PutResourceMetricRulesOutcome(PutResourceMetricRulesResult(outcome.result())); else - return QueryCustomMetricListOutcome(outcome.error()); + return PutResourceMetricRulesOutcome(outcome.error()); } -void CmsClient::queryCustomMetricListAsync(const QueryCustomMetricListRequest& request, const QueryCustomMetricListAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::putResourceMetricRulesAsync(const PutResourceMetricRulesRequest& request, const PutResourceMetricRulesAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryCustomMetricList(request), context); + handler(this, request, putResourceMetricRules(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::QueryCustomMetricListOutcomeCallable CmsClient::queryCustomMetricListCallable(const QueryCustomMetricListRequest &request) const +CmsClient::PutResourceMetricRulesOutcomeCallable CmsClient::putResourceMetricRulesCallable(const PutResourceMetricRulesRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryCustomMetricList(request); + return this->putResourceMetricRules(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); return task->get_future(); } -CmsClient::QueryErrorDistributionOutcome CmsClient::queryErrorDistribution(const QueryErrorDistributionRequest &request) const +CmsClient::RemoveTagsOutcome CmsClient::removeTags(const RemoveTagsRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return QueryErrorDistributionOutcome(endpointOutcome.error()); + return RemoveTagsOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return QueryErrorDistributionOutcome(QueryErrorDistributionResult(outcome.result())); + return RemoveTagsOutcome(RemoveTagsResult(outcome.result())); else - return QueryErrorDistributionOutcome(outcome.error()); + return RemoveTagsOutcome(outcome.error()); } -void CmsClient::queryErrorDistributionAsync(const QueryErrorDistributionRequest& request, const QueryErrorDistributionAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::removeTagsAsync(const RemoveTagsRequest& request, const RemoveTagsAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, queryErrorDistribution(request), context); + handler(this, request, removeTags(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::QueryErrorDistributionOutcomeCallable CmsClient::queryErrorDistributionCallable(const QueryErrorDistributionRequest &request) const +CmsClient::RemoveTagsOutcomeCallable CmsClient::removeTagsCallable(const RemoveTagsRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->queryErrorDistribution(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryMetricDataOutcome CmsClient::queryMetricData(const QueryMetricDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryMetricDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryMetricDataOutcome(QueryMetricDataResult(outcome.result())); - else - return QueryMetricDataOutcome(outcome.error()); -} - -void CmsClient::queryMetricDataAsync(const QueryMetricDataRequest& request, const QueryMetricDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryMetricData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryMetricDataOutcomeCallable CmsClient::queryMetricDataCallable(const QueryMetricDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryMetricData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryMetricLastOutcome CmsClient::queryMetricLast(const QueryMetricLastRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryMetricLastOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryMetricLastOutcome(QueryMetricLastResult(outcome.result())); - else - return QueryMetricLastOutcome(outcome.error()); -} - -void CmsClient::queryMetricLastAsync(const QueryMetricLastRequest& request, const QueryMetricLastAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryMetricLast(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryMetricLastOutcomeCallable CmsClient::queryMetricLastCallable(const QueryMetricLastRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryMetricLast(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryMetricListOutcome CmsClient::queryMetricList(const QueryMetricListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryMetricListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryMetricListOutcome(QueryMetricListResult(outcome.result())); - else - return QueryMetricListOutcome(outcome.error()); -} - -void CmsClient::queryMetricListAsync(const QueryMetricListRequest& request, const QueryMetricListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryMetricList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryMetricListOutcomeCallable CmsClient::queryMetricListCallable(const QueryMetricListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryMetricList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryMetricMetaOutcome CmsClient::queryMetricMeta(const QueryMetricMetaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryMetricMetaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryMetricMetaOutcome(QueryMetricMetaResult(outcome.result())); - else - return QueryMetricMetaOutcome(outcome.error()); -} - -void CmsClient::queryMetricMetaAsync(const QueryMetricMetaRequest& request, const QueryMetricMetaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryMetricMeta(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryMetricMetaOutcomeCallable CmsClient::queryMetricMetaCallable(const QueryMetricMetaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryMetricMeta(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryMetricTopOutcome CmsClient::queryMetricTop(const QueryMetricTopRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryMetricTopOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryMetricTopOutcome(QueryMetricTopResult(outcome.result())); - else - return QueryMetricTopOutcome(outcome.error()); -} - -void CmsClient::queryMetricTopAsync(const QueryMetricTopRequest& request, const QueryMetricTopAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryMetricTop(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryMetricTopOutcomeCallable CmsClient::queryMetricTopCallable(const QueryMetricTopRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryMetricTop(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryMonitorDataOutcome CmsClient::queryMonitorData(const QueryMonitorDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryMonitorDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryMonitorDataOutcome(QueryMonitorDataResult(outcome.result())); - else - return QueryMonitorDataOutcome(outcome.error()); -} - -void CmsClient::queryMonitorDataAsync(const QueryMonitorDataRequest& request, const QueryMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryMonitorData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryMonitorDataOutcomeCallable CmsClient::queryMonitorDataCallable(const QueryMonitorDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryMonitorData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryProjectMetaOutcome CmsClient::queryProjectMeta(const QueryProjectMetaRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryProjectMetaOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryProjectMetaOutcome(QueryProjectMetaResult(outcome.result())); - else - return QueryProjectMetaOutcome(outcome.error()); -} - -void CmsClient::queryProjectMetaAsync(const QueryProjectMetaRequest& request, const QueryProjectMetaAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryProjectMeta(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryProjectMetaOutcomeCallable CmsClient::queryProjectMetaCallable(const QueryProjectMetaRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryProjectMeta(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryStaticsAvailabilityOutcome CmsClient::queryStaticsAvailability(const QueryStaticsAvailabilityRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryStaticsAvailabilityOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryStaticsAvailabilityOutcome(QueryStaticsAvailabilityResult(outcome.result())); - else - return QueryStaticsAvailabilityOutcome(outcome.error()); -} - -void CmsClient::queryStaticsAvailabilityAsync(const QueryStaticsAvailabilityRequest& request, const QueryStaticsAvailabilityAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryStaticsAvailability(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryStaticsAvailabilityOutcomeCallable CmsClient::queryStaticsAvailabilityCallable(const QueryStaticsAvailabilityRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryStaticsAvailability(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryStaticsErrorRateOutcome CmsClient::queryStaticsErrorRate(const QueryStaticsErrorRateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryStaticsErrorRateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryStaticsErrorRateOutcome(QueryStaticsErrorRateResult(outcome.result())); - else - return QueryStaticsErrorRateOutcome(outcome.error()); -} - -void CmsClient::queryStaticsErrorRateAsync(const QueryStaticsErrorRateRequest& request, const QueryStaticsErrorRateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryStaticsErrorRate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryStaticsErrorRateOutcomeCallable CmsClient::queryStaticsErrorRateCallable(const QueryStaticsErrorRateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryStaticsErrorRate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryStaticsResponseTimeOutcome CmsClient::queryStaticsResponseTime(const QueryStaticsResponseTimeRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryStaticsResponseTimeOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryStaticsResponseTimeOutcome(QueryStaticsResponseTimeResult(outcome.result())); - else - return QueryStaticsResponseTimeOutcome(outcome.error()); -} - -void CmsClient::queryStaticsResponseTimeAsync(const QueryStaticsResponseTimeRequest& request, const QueryStaticsResponseTimeAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryStaticsResponseTime(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryStaticsResponseTimeOutcomeCallable CmsClient::queryStaticsResponseTimeCallable(const QueryStaticsResponseTimeRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryStaticsResponseTime(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QuerySystemEventCountOutcome CmsClient::querySystemEventCount(const QuerySystemEventCountRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QuerySystemEventCountOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QuerySystemEventCountOutcome(QuerySystemEventCountResult(outcome.result())); - else - return QuerySystemEventCountOutcome(outcome.error()); -} - -void CmsClient::querySystemEventCountAsync(const QuerySystemEventCountRequest& request, const QuerySystemEventCountAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, querySystemEventCount(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QuerySystemEventCountOutcomeCallable CmsClient::querySystemEventCountCallable(const QuerySystemEventCountRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->querySystemEventCount(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QuerySystemEventDemoOutcome CmsClient::querySystemEventDemo(const QuerySystemEventDemoRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QuerySystemEventDemoOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QuerySystemEventDemoOutcome(QuerySystemEventDemoResult(outcome.result())); - else - return QuerySystemEventDemoOutcome(outcome.error()); -} - -void CmsClient::querySystemEventDemoAsync(const QuerySystemEventDemoRequest& request, const QuerySystemEventDemoAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, querySystemEventDemo(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QuerySystemEventDemoOutcomeCallable CmsClient::querySystemEventDemoCallable(const QuerySystemEventDemoRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->querySystemEventDemo(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QuerySystemEventDetailOutcome CmsClient::querySystemEventDetail(const QuerySystemEventDetailRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QuerySystemEventDetailOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QuerySystemEventDetailOutcome(QuerySystemEventDetailResult(outcome.result())); - else - return QuerySystemEventDetailOutcome(outcome.error()); -} - -void CmsClient::querySystemEventDetailAsync(const QuerySystemEventDetailRequest& request, const QuerySystemEventDetailAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, querySystemEventDetail(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QuerySystemEventDetailOutcomeCallable CmsClient::querySystemEventDetailCallable(const QuerySystemEventDetailRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->querySystemEventDetail(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QuerySystemEventHistogramOutcome CmsClient::querySystemEventHistogram(const QuerySystemEventHistogramRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QuerySystemEventHistogramOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QuerySystemEventHistogramOutcome(QuerySystemEventHistogramResult(outcome.result())); - else - return QuerySystemEventHistogramOutcome(outcome.error()); -} - -void CmsClient::querySystemEventHistogramAsync(const QuerySystemEventHistogramRequest& request, const QuerySystemEventHistogramAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, querySystemEventHistogram(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QuerySystemEventHistogramOutcomeCallable CmsClient::querySystemEventHistogramCallable(const QuerySystemEventHistogramRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->querySystemEventHistogram(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryTaskConfigOutcome CmsClient::queryTaskConfig(const QueryTaskConfigRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryTaskConfigOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryTaskConfigOutcome(QueryTaskConfigResult(outcome.result())); - else - return QueryTaskConfigOutcome(outcome.error()); -} - -void CmsClient::queryTaskConfigAsync(const QueryTaskConfigRequest& request, const QueryTaskConfigAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryTaskConfig(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryTaskConfigOutcomeCallable CmsClient::queryTaskConfigCallable(const QueryTaskConfigRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryTaskConfig(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::QueryTaskMonitorDataOutcome CmsClient::queryTaskMonitorData(const QueryTaskMonitorDataRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return QueryTaskMonitorDataOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return QueryTaskMonitorDataOutcome(QueryTaskMonitorDataResult(outcome.result())); - else - return QueryTaskMonitorDataOutcome(outcome.error()); -} - -void CmsClient::queryTaskMonitorDataAsync(const QueryTaskMonitorDataRequest& request, const QueryTaskMonitorDataAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, queryTaskMonitorData(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::QueryTaskMonitorDataOutcomeCallable CmsClient::queryTaskMonitorDataCallable(const QueryTaskMonitorDataRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->queryTaskMonitorData(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::RemoveMetricRuleTargetsOutcome CmsClient::removeMetricRuleTargets(const RemoveMetricRuleTargetsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return RemoveMetricRuleTargetsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return RemoveMetricRuleTargetsOutcome(RemoveMetricRuleTargetsResult(outcome.result())); - else - return RemoveMetricRuleTargetsOutcome(outcome.error()); -} - -void CmsClient::removeMetricRuleTargetsAsync(const RemoveMetricRuleTargetsRequest& request, const RemoveMetricRuleTargetsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, removeMetricRuleTargets(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::RemoveMetricRuleTargetsOutcomeCallable CmsClient::removeMetricRuleTargetsCallable(const RemoveMetricRuleTargetsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->removeMetricRuleTargets(request); + return this->removeTags(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); @@ -3579,504 +4119,36 @@ CmsClient::SendDryRunSystemEventOutcomeCallable CmsClient::sendDryRunSystemEvent return task->get_future(); } -CmsClient::StartTasksOutcome CmsClient::startTasks(const StartTasksRequest &request) const +CmsClient::UninstallMonitoringAgentOutcome CmsClient::uninstallMonitoringAgent(const UninstallMonitoringAgentRequest &request) const { auto endpointOutcome = endpointProvider_->getEndpoint(); if (!endpointOutcome.isSuccess()) - return StartTasksOutcome(endpointOutcome.error()); + return UninstallMonitoringAgentOutcome(endpointOutcome.error()); auto outcome = makeRequest(endpointOutcome.result(), request); if (outcome.isSuccess()) - return StartTasksOutcome(StartTasksResult(outcome.result())); + return UninstallMonitoringAgentOutcome(UninstallMonitoringAgentResult(outcome.result())); else - return StartTasksOutcome(outcome.error()); + return UninstallMonitoringAgentOutcome(outcome.error()); } -void CmsClient::startTasksAsync(const StartTasksRequest& request, const StartTasksAsyncHandler& handler, const std::shared_ptr& context) const +void CmsClient::uninstallMonitoringAgentAsync(const UninstallMonitoringAgentRequest& request, const UninstallMonitoringAgentAsyncHandler& handler, const std::shared_ptr& context) const { auto fn = [this, request, handler, context]() { - handler(this, request, startTasks(request), context); + handler(this, request, uninstallMonitoringAgent(request), context); }; asyncExecute(new Runnable(fn)); } -CmsClient::StartTasksOutcomeCallable CmsClient::startTasksCallable(const StartTasksRequest &request) const +CmsClient::UninstallMonitoringAgentOutcomeCallable CmsClient::uninstallMonitoringAgentCallable(const UninstallMonitoringAgentRequest &request) const { - auto task = std::make_shared>( + auto task = std::make_shared>( [this, request]() { - return this->startTasks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::StopTasksOutcome CmsClient::stopTasks(const StopTasksRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return StopTasksOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return StopTasksOutcome(StopTasksResult(outcome.result())); - else - return StopTasksOutcome(outcome.error()); -} - -void CmsClient::stopTasksAsync(const StopTasksRequest& request, const StopTasksAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, stopTasks(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::StopTasksOutcomeCallable CmsClient::stopTasksCallable(const StopTasksRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->stopTasks(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::TaskConfigCreateOutcome CmsClient::taskConfigCreate(const TaskConfigCreateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TaskConfigCreateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TaskConfigCreateOutcome(TaskConfigCreateResult(outcome.result())); - else - return TaskConfigCreateOutcome(outcome.error()); -} - -void CmsClient::taskConfigCreateAsync(const TaskConfigCreateRequest& request, const TaskConfigCreateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, taskConfigCreate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::TaskConfigCreateOutcomeCallable CmsClient::taskConfigCreateCallable(const TaskConfigCreateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->taskConfigCreate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::TaskConfigDeleteOutcome CmsClient::taskConfigDelete(const TaskConfigDeleteRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TaskConfigDeleteOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TaskConfigDeleteOutcome(TaskConfigDeleteResult(outcome.result())); - else - return TaskConfigDeleteOutcome(outcome.error()); -} - -void CmsClient::taskConfigDeleteAsync(const TaskConfigDeleteRequest& request, const TaskConfigDeleteAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, taskConfigDelete(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::TaskConfigDeleteOutcomeCallable CmsClient::taskConfigDeleteCallable(const TaskConfigDeleteRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->taskConfigDelete(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::TaskConfigEnableOutcome CmsClient::taskConfigEnable(const TaskConfigEnableRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TaskConfigEnableOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TaskConfigEnableOutcome(TaskConfigEnableResult(outcome.result())); - else - return TaskConfigEnableOutcome(outcome.error()); -} - -void CmsClient::taskConfigEnableAsync(const TaskConfigEnableRequest& request, const TaskConfigEnableAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, taskConfigEnable(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::TaskConfigEnableOutcomeCallable CmsClient::taskConfigEnableCallable(const TaskConfigEnableRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->taskConfigEnable(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::TaskConfigListOutcome CmsClient::taskConfigList(const TaskConfigListRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TaskConfigListOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TaskConfigListOutcome(TaskConfigListResult(outcome.result())); - else - return TaskConfigListOutcome(outcome.error()); -} - -void CmsClient::taskConfigListAsync(const TaskConfigListRequest& request, const TaskConfigListAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, taskConfigList(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::TaskConfigListOutcomeCallable CmsClient::taskConfigListCallable(const TaskConfigListRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->taskConfigList(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::TaskConfigModifyOutcome CmsClient::taskConfigModify(const TaskConfigModifyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TaskConfigModifyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TaskConfigModifyOutcome(TaskConfigModifyResult(outcome.result())); - else - return TaskConfigModifyOutcome(outcome.error()); -} - -void CmsClient::taskConfigModifyAsync(const TaskConfigModifyRequest& request, const TaskConfigModifyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, taskConfigModify(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::TaskConfigModifyOutcomeCallable CmsClient::taskConfigModifyCallable(const TaskConfigModifyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->taskConfigModify(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::TaskConfigUnhealthyOutcome CmsClient::taskConfigUnhealthy(const TaskConfigUnhealthyRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return TaskConfigUnhealthyOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return TaskConfigUnhealthyOutcome(TaskConfigUnhealthyResult(outcome.result())); - else - return TaskConfigUnhealthyOutcome(outcome.error()); -} - -void CmsClient::taskConfigUnhealthyAsync(const TaskConfigUnhealthyRequest& request, const TaskConfigUnhealthyAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, taskConfigUnhealthy(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::TaskConfigUnhealthyOutcomeCallable CmsClient::taskConfigUnhealthyCallable(const TaskConfigUnhealthyRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->taskConfigUnhealthy(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::UpdateAlarmOutcome CmsClient::updateAlarm(const UpdateAlarmRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateAlarmOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateAlarmOutcome(UpdateAlarmResult(outcome.result())); - else - return UpdateAlarmOutcome(outcome.error()); -} - -void CmsClient::updateAlarmAsync(const UpdateAlarmRequest& request, const UpdateAlarmAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateAlarm(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::UpdateAlarmOutcomeCallable CmsClient::updateAlarmCallable(const UpdateAlarmRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateAlarm(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::UpdateMonitoringTemplateOutcome CmsClient::updateMonitoringTemplate(const UpdateMonitoringTemplateRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateMonitoringTemplateOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateMonitoringTemplateOutcome(UpdateMonitoringTemplateResult(outcome.result())); - else - return UpdateMonitoringTemplateOutcome(outcome.error()); -} - -void CmsClient::updateMonitoringTemplateAsync(const UpdateMonitoringTemplateRequest& request, const UpdateMonitoringTemplateAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateMonitoringTemplate(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::UpdateMonitoringTemplateOutcomeCallable CmsClient::updateMonitoringTemplateCallable(const UpdateMonitoringTemplateRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateMonitoringTemplate(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::UpdateMyGroupAlertOutcome CmsClient::updateMyGroupAlert(const UpdateMyGroupAlertRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateMyGroupAlertOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateMyGroupAlertOutcome(UpdateMyGroupAlertResult(outcome.result())); - else - return UpdateMyGroupAlertOutcome(outcome.error()); -} - -void CmsClient::updateMyGroupAlertAsync(const UpdateMyGroupAlertRequest& request, const UpdateMyGroupAlertAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateMyGroupAlert(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::UpdateMyGroupAlertOutcomeCallable CmsClient::updateMyGroupAlertCallable(const UpdateMyGroupAlertRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateMyGroupAlert(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::UpdateMyGroupInstancesOutcome CmsClient::updateMyGroupInstances(const UpdateMyGroupInstancesRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateMyGroupInstancesOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateMyGroupInstancesOutcome(UpdateMyGroupInstancesResult(outcome.result())); - else - return UpdateMyGroupInstancesOutcome(outcome.error()); -} - -void CmsClient::updateMyGroupInstancesAsync(const UpdateMyGroupInstancesRequest& request, const UpdateMyGroupInstancesAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateMyGroupInstances(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::UpdateMyGroupInstancesOutcomeCallable CmsClient::updateMyGroupInstancesCallable(const UpdateMyGroupInstancesRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateMyGroupInstances(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::UpdateMyGroupMembersOutcome CmsClient::updateMyGroupMembers(const UpdateMyGroupMembersRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateMyGroupMembersOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateMyGroupMembersOutcome(UpdateMyGroupMembersResult(outcome.result())); - else - return UpdateMyGroupMembersOutcome(outcome.error()); -} - -void CmsClient::updateMyGroupMembersAsync(const UpdateMyGroupMembersRequest& request, const UpdateMyGroupMembersAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateMyGroupMembers(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::UpdateMyGroupMembersOutcomeCallable CmsClient::updateMyGroupMembersCallable(const UpdateMyGroupMembersRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateMyGroupMembers(request); - }); - - asyncExecute(new Runnable([task]() { (*task)(); })); - return task->get_future(); -} - -CmsClient::UpdateMyGroupsOutcome CmsClient::updateMyGroups(const UpdateMyGroupsRequest &request) const -{ - auto endpointOutcome = endpointProvider_->getEndpoint(); - if (!endpointOutcome.isSuccess()) - return UpdateMyGroupsOutcome(endpointOutcome.error()); - - auto outcome = makeRequest(endpointOutcome.result(), request); - - if (outcome.isSuccess()) - return UpdateMyGroupsOutcome(UpdateMyGroupsResult(outcome.result())); - else - return UpdateMyGroupsOutcome(outcome.error()); -} - -void CmsClient::updateMyGroupsAsync(const UpdateMyGroupsRequest& request, const UpdateMyGroupsAsyncHandler& handler, const std::shared_ptr& context) const -{ - auto fn = [this, request, handler, context]() - { - handler(this, request, updateMyGroups(request), context); - }; - - asyncExecute(new Runnable(fn)); -} - -CmsClient::UpdateMyGroupsOutcomeCallable CmsClient::updateMyGroupsCallable(const UpdateMyGroupsRequest &request) const -{ - auto task = std::make_shared>( - [this, request]() - { - return this->updateMyGroups(request); + return this->uninstallMonitoringAgent(request); }); asyncExecute(new Runnable([task]() { (*task)(); })); diff --git a/cms/src/model/AccessKeyGetRequest.cc b/cms/src/model/AccessKeyGetRequest.cc deleted file mode 100644 index 14c9d04e0..000000000 --- a/cms/src/model/AccessKeyGetRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::AccessKeyGetRequest; - -AccessKeyGetRequest::AccessKeyGetRequest() : - RpcServiceRequest("cms", "2018-03-08", "AccessKeyGet") -{} - -AccessKeyGetRequest::~AccessKeyGetRequest() -{} - -long AccessKeyGetRequest::getUserId()const -{ - return userId_; -} - -void AccessKeyGetRequest::setUserId(long userId) -{ - userId_ = userId; - setCoreParameter("UserId", std::to_string(userId)); -} - diff --git a/cms/src/model/AddMyGroupInstancesRequest.cc b/cms/src/model/AddMyGroupInstancesRequest.cc deleted file mode 100644 index 86128e8ba..000000000 --- a/cms/src/model/AddMyGroupInstancesRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::AddMyGroupInstancesRequest; - -AddMyGroupInstancesRequest::AddMyGroupInstancesRequest() : - RpcServiceRequest("cms", "2018-03-08", "AddMyGroupInstances") -{} - -AddMyGroupInstancesRequest::~AddMyGroupInstancesRequest() -{} - -std::string AddMyGroupInstancesRequest::getInstances()const -{ - return instances_; -} - -void AddMyGroupInstancesRequest::setInstances(const std::string& instances) -{ - instances_ = instances; - setCoreParameter("Instances", instances); -} - -long AddMyGroupInstancesRequest::getGroupId()const -{ - return groupId_; -} - -void AddMyGroupInstancesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - diff --git a/cms/src/model/AddMyGroupInstancesResult.cc b/cms/src/model/AddMyGroupInstancesResult.cc deleted file mode 100644 index c6bc046c7..000000000 --- a/cms/src/model/AddMyGroupInstancesResult.cc +++ /dev/null @@ -1,65 +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; - -AddMyGroupInstancesResult::AddMyGroupInstancesResult() : - ServiceResult() -{} - -AddMyGroupInstancesResult::AddMyGroupInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -AddMyGroupInstancesResult::~AddMyGroupInstancesResult() -{} - -void AddMyGroupInstancesResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -int AddMyGroupInstancesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string AddMyGroupInstancesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool AddMyGroupInstancesResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/AddTagsRequest.cc b/cms/src/model/AddTagsRequest.cc new file mode 100644 index 000000000..3d10f976b --- /dev/null +++ b/cms/src/model/AddTagsRequest.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::AddTagsRequest; + +AddTagsRequest::AddTagsRequest() : + RpcServiceRequest("cms", "2019-01-01", "AddTags") +{ + setMethod(HttpRequest::Method::Post); +} + +AddTagsRequest::~AddTagsRequest() +{} + +std::vector AddTagsRequest::getGroupIds()const +{ + return groupIds_; +} + +void AddTagsRequest::setGroupIds(const std::vector& groupIds) +{ + groupIds_ = groupIds; + for(int dep1 = 0; dep1!= groupIds.size(); dep1++) { + setCoreParameter("GroupIds."+ std::to_string(dep1), groupIds.at(dep1)); + } +} + +std::vector AddTagsRequest::getTag()const +{ + return tag_; +} + +void AddTagsRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1); + setCoreParameter(tagObjStr + ".Value", tagObj.value); + setCoreParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/cms/src/model/DeleteAlarmResult.cc b/cms/src/model/AddTagsResult.cc similarity index 75% rename from cms/src/model/DeleteAlarmResult.cc rename to cms/src/model/AddTagsResult.cc index 041d669c6..38e760b30 100644 --- a/cms/src/model/DeleteAlarmResult.cc +++ b/cms/src/model/AddTagsResult.cc @@ -14,51 +14,51 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DeleteAlarmResult::DeleteAlarmResult() : +AddTagsResult::AddTagsResult() : ServiceResult() {} -DeleteAlarmResult::DeleteAlarmResult(const std::string &payload) : +AddTagsResult::AddTagsResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteAlarmResult::~DeleteAlarmResult() +AddTagsResult::~AddTagsResult() {} -void DeleteAlarmResult::parse(const std::string &payload) +void AddTagsResult::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(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string DeleteAlarmResult::getMessage()const +std::string AddTagsResult::getMessage()const { return message_; } -std::string DeleteAlarmResult::getCode()const +std::string AddTagsResult::getCode()const { return code_; } -bool DeleteAlarmResult::getSuccess()const +bool AddTagsResult::getSuccess()const { return success_; } diff --git a/cms/src/model/ApplyMonitoringTemplateRequest.cc b/cms/src/model/ApplyMetricRuleTemplateRequest.cc similarity index 53% rename from cms/src/model/ApplyMonitoringTemplateRequest.cc rename to cms/src/model/ApplyMetricRuleTemplateRequest.cc index 8f0d8290a..7d0591c66 100644 --- a/cms/src/model/ApplyMonitoringTemplateRequest.cc +++ b/cms/src/model/ApplyMetricRuleTemplateRequest.cc @@ -14,100 +14,102 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::ApplyMonitoringTemplateRequest; +using AlibabaCloud::Cms::Model::ApplyMetricRuleTemplateRequest; -ApplyMonitoringTemplateRequest::ApplyMonitoringTemplateRequest() : - RpcServiceRequest("cms", "2018-03-08", "ApplyMonitoringTemplate") +ApplyMetricRuleTemplateRequest::ApplyMetricRuleTemplateRequest() : + RpcServiceRequest("cms", "2019-01-01", "ApplyMetricRuleTemplate") +{ + setMethod(HttpRequest::Method::Post); +} + +ApplyMetricRuleTemplateRequest::~ApplyMetricRuleTemplateRequest() {} -ApplyMonitoringTemplateRequest::~ApplyMonitoringTemplateRequest() -{} - -std::string ApplyMonitoringTemplateRequest::getApplyMode()const +std::string ApplyMetricRuleTemplateRequest::getApplyMode()const { return applyMode_; } -void ApplyMonitoringTemplateRequest::setApplyMode(const std::string& applyMode) +void ApplyMetricRuleTemplateRequest::setApplyMode(const std::string& applyMode) { applyMode_ = applyMode; setCoreParameter("ApplyMode", applyMode); } -std::string ApplyMonitoringTemplateRequest::getWebhook()const +std::string ApplyMetricRuleTemplateRequest::getWebhook()const { return webhook_; } -void ApplyMonitoringTemplateRequest::setWebhook(const std::string& webhook) +void ApplyMetricRuleTemplateRequest::setWebhook(const std::string& webhook) { webhook_ = webhook; setCoreParameter("Webhook", webhook); } -std::string ApplyMonitoringTemplateRequest::getTemplateIds()const +std::string ApplyMetricRuleTemplateRequest::getTemplateIds()const { return templateIds_; } -void ApplyMonitoringTemplateRequest::setTemplateIds(const std::string& templateIds) +void ApplyMetricRuleTemplateRequest::setTemplateIds(const std::string& templateIds) { templateIds_ = templateIds; setCoreParameter("TemplateIds", templateIds); } -long ApplyMonitoringTemplateRequest::getEnableEndTime()const +long ApplyMetricRuleTemplateRequest::getEnableEndTime()const { return enableEndTime_; } -void ApplyMonitoringTemplateRequest::setEnableEndTime(long enableEndTime) +void ApplyMetricRuleTemplateRequest::setEnableEndTime(long enableEndTime) { enableEndTime_ = enableEndTime; setCoreParameter("EnableEndTime", std::to_string(enableEndTime)); } -long ApplyMonitoringTemplateRequest::getGroupId()const +long ApplyMetricRuleTemplateRequest::getGroupId()const { return groupId_; } -void ApplyMonitoringTemplateRequest::setGroupId(long groupId) +void ApplyMetricRuleTemplateRequest::setGroupId(long groupId) { groupId_ = groupId; setCoreParameter("GroupId", std::to_string(groupId)); } -long ApplyMonitoringTemplateRequest::getNotifyLevel()const +long ApplyMetricRuleTemplateRequest::getNotifyLevel()const { return notifyLevel_; } -void ApplyMonitoringTemplateRequest::setNotifyLevel(long notifyLevel) +void ApplyMetricRuleTemplateRequest::setNotifyLevel(long notifyLevel) { notifyLevel_ = notifyLevel; setCoreParameter("NotifyLevel", std::to_string(notifyLevel)); } -long ApplyMonitoringTemplateRequest::getEnableStartTime()const +long ApplyMetricRuleTemplateRequest::getEnableStartTime()const { return enableStartTime_; } -void ApplyMonitoringTemplateRequest::setEnableStartTime(long enableStartTime) +void ApplyMetricRuleTemplateRequest::setEnableStartTime(long enableStartTime) { enableStartTime_ = enableStartTime; setCoreParameter("EnableStartTime", std::to_string(enableStartTime)); } -long ApplyMonitoringTemplateRequest::getSilenceTime()const +long ApplyMetricRuleTemplateRequest::getSilenceTime()const { return silenceTime_; } -void ApplyMonitoringTemplateRequest::setSilenceTime(long silenceTime) +void ApplyMetricRuleTemplateRequest::setSilenceTime(long silenceTime) { silenceTime_ = silenceTime; setCoreParameter("SilenceTime", std::to_string(silenceTime)); diff --git a/cms/src/model/ApplyMetricRuleTemplateResult.cc b/cms/src/model/ApplyMetricRuleTemplateResult.cc new file mode 100644 index 000000000..13097685b --- /dev/null +++ b/cms/src/model/ApplyMetricRuleTemplateResult.cc @@ -0,0 +1,91 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +ApplyMetricRuleTemplateResult::ApplyMetricRuleTemplateResult() : + ServiceResult() +{} + +ApplyMetricRuleTemplateResult::ApplyMetricRuleTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ApplyMetricRuleTemplateResult::~ApplyMetricRuleTemplateResult() +{} + +void ApplyMetricRuleTemplateResult::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["GroupId"].isNull()) + resource_.groupId = std::stol(resourceNode["GroupId"].asString()); + auto allAlertResultsNode = resourceNode["AlertResults"]["Result"]; + 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()) + resultObject.message = resourceNodeAlertResultsResult["Message"].asString(); + if(!resourceNodeAlertResultsResult["RuleName"].isNull()) + resultObject.ruleName = resourceNodeAlertResultsResult["RuleName"].asString(); + if(!resourceNodeAlertResultsResult["Code"].isNull()) + resultObject.code = resourceNodeAlertResultsResult["Code"].asString(); + if(!resourceNodeAlertResultsResult["Success"].isNull()) + resultObject.success = resourceNodeAlertResultsResult["Success"].asString() == "true"; + resource_.alertResults.push_back(resultObject); + } + 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(); + +} + +std::string ApplyMetricRuleTemplateResult::getMessage()const +{ + return message_; +} + +ApplyMetricRuleTemplateResult::Resource ApplyMetricRuleTemplateResult::getResource()const +{ + return resource_; +} + +int ApplyMetricRuleTemplateResult::getCode()const +{ + return code_; +} + +bool ApplyMetricRuleTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ApplyMonitoringTemplateResult.cc b/cms/src/model/ApplyMonitoringTemplateResult.cc deleted file mode 100644 index de21ddc62..000000000 --- a/cms/src/model/ApplyMonitoringTemplateResult.cc +++ /dev/null @@ -1,109 +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; - -ApplyMonitoringTemplateResult::ApplyMonitoringTemplateResult() : - ServiceResult() -{} - -ApplyMonitoringTemplateResult::ApplyMonitoringTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ApplyMonitoringTemplateResult::~ApplyMonitoringTemplateResult() -{} - -void ApplyMonitoringTemplateResult::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["GroupId"].isNull()) - resource_.groupId = std::stol(resourceNode["GroupId"].asString()); - auto allEventResultsNode = resourceNode["EventResults"]["Result"]; - for (auto resourceNodeEventResultsResult : allEventResultsNode) - { - Resource::Result resultObject; - if(!resourceNodeEventResultsResult["GroupId"].isNull()) - resultObject.groupId = std::stol(resourceNodeEventResultsResult["GroupId"].asString()); - if(!resourceNodeEventResultsResult["Name"].isNull()) - resultObject.name = resourceNodeEventResultsResult["Name"].asString(); - if(!resourceNodeEventResultsResult["Message"].isNull()) - resultObject.message = resourceNodeEventResultsResult["Message"].asString(); - if(!resourceNodeEventResultsResult["DisplayName"].isNull()) - resultObject.displayName = resourceNodeEventResultsResult["DisplayName"].asString(); - if(!resourceNodeEventResultsResult["Code"].isNull()) - resultObject.code = std::stoi(resourceNodeEventResultsResult["Code"].asString()); - if(!resourceNodeEventResultsResult["Success"].isNull()) - resultObject.success = resourceNodeEventResultsResult["Success"].asString() == "true"; - resource_.eventResults.push_back(resultObject); - } - auto allAlertResultsNode = resourceNode["AlertResults"]["Result"]; - for (auto resourceNodeAlertResultsResult : allAlertResultsNode) - { - Resource::Result resultObject; - if(!resourceNodeAlertResultsResult["GroupId"].isNull()) - resultObject.groupId = std::stol(resourceNodeAlertResultsResult["GroupId"].asString()); - if(!resourceNodeAlertResultsResult["Name"].isNull()) - resultObject.name = resourceNodeAlertResultsResult["Name"].asString(); - if(!resourceNodeAlertResultsResult["Message"].isNull()) - resultObject.message = resourceNodeAlertResultsResult["Message"].asString(); - if(!resourceNodeAlertResultsResult["DisplayName"].isNull()) - resultObject.displayName = resourceNodeAlertResultsResult["DisplayName"].asString(); - if(!resourceNodeAlertResultsResult["Code"].isNull()) - resultObject.code = std::stoi(resourceNodeAlertResultsResult["Code"].asString()); - if(!resourceNodeAlertResultsResult["Success"].isNull()) - resultObject.success = resourceNodeAlertResultsResult["Success"].asString() == "true"; - resource_.alertResults.push_back(resultObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -ApplyMonitoringTemplateResult::Resource ApplyMonitoringTemplateResult::getResource()const -{ - return resource_; -} - -int ApplyMonitoringTemplateResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ApplyMonitoringTemplateResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ApplyMonitoringTemplateResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/ApplyTemplateRequest.cc b/cms/src/model/ApplyTemplateRequest.cc deleted file mode 100644 index 1abe7666d..000000000 --- a/cms/src/model/ApplyTemplateRequest.cc +++ /dev/null @@ -1,104 +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 - -using AlibabaCloud::Cms::Model::ApplyTemplateRequest; - -ApplyTemplateRequest::ApplyTemplateRequest() : - RpcServiceRequest("cms", "2018-03-08", "ApplyTemplate") -{} - -ApplyTemplateRequest::~ApplyTemplateRequest() -{} - -std::string ApplyTemplateRequest::getApplyMode()const -{ - return applyMode_; -} - -void ApplyTemplateRequest::setApplyMode(const std::string& applyMode) -{ - applyMode_ = applyMode; - setCoreParameter("ApplyMode", applyMode); -} - -std::string ApplyTemplateRequest::getTemplateIds()const -{ - return templateIds_; -} - -void ApplyTemplateRequest::setTemplateIds(const std::string& templateIds) -{ - templateIds_ = templateIds; - setCoreParameter("TemplateIds", templateIds); -} - -long ApplyTemplateRequest::getEnableEndTime()const -{ - return enableEndTime_; -} - -void ApplyTemplateRequest::setEnableEndTime(long enableEndTime) -{ - enableEndTime_ = enableEndTime; - setCoreParameter("EnableEndTime", std::to_string(enableEndTime)); -} - -long ApplyTemplateRequest::getGroupId()const -{ - return groupId_; -} - -void ApplyTemplateRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -long ApplyTemplateRequest::getNotifyLevel()const -{ - return notifyLevel_; -} - -void ApplyTemplateRequest::setNotifyLevel(long notifyLevel) -{ - notifyLevel_ = notifyLevel; - setCoreParameter("NotifyLevel", std::to_string(notifyLevel)); -} - -long ApplyTemplateRequest::getEnableStartTime()const -{ - return enableStartTime_; -} - -void ApplyTemplateRequest::setEnableStartTime(long enableStartTime) -{ - enableStartTime_ = enableStartTime; - setCoreParameter("EnableStartTime", std::to_string(enableStartTime)); -} - -long ApplyTemplateRequest::getSilenceTime()const -{ - return silenceTime_; -} - -void ApplyTemplateRequest::setSilenceTime(long silenceTime) -{ - silenceTime_ = silenceTime; - setCoreParameter("SilenceTime", std::to_string(silenceTime)); -} - diff --git a/cms/src/model/ApplyTemplateResult.cc b/cms/src/model/ApplyTemplateResult.cc deleted file mode 100644 index 17d709989..000000000 --- a/cms/src/model/ApplyTemplateResult.cc +++ /dev/null @@ -1,89 +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; - -ApplyTemplateResult::ApplyTemplateResult() : - ServiceResult() -{} - -ApplyTemplateResult::ApplyTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ApplyTemplateResult::~ApplyTemplateResult() -{} - -void ApplyTemplateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto resourceNode = value["Resource"]; - auto allCreateAlertResultsNode = resourceNode["CreateAlertResults"]["AlertResult"]; - for (auto resourceNodeCreateAlertResultsAlertResult : allCreateAlertResultsNode) - { - Resource::AlertResult alertResultObject; - if(!resourceNodeCreateAlertResultsAlertResult["Name"].isNull()) - alertResultObject.name = resourceNodeCreateAlertResultsAlertResult["Name"].asString(); - if(!resourceNodeCreateAlertResultsAlertResult["DisplayName"].isNull()) - alertResultObject.displayName = resourceNodeCreateAlertResultsAlertResult["DisplayName"].asString(); - if(!resourceNodeCreateAlertResultsAlertResult["MetricNamespace"].isNull()) - alertResultObject.metricNamespace = resourceNodeCreateAlertResultsAlertResult["MetricNamespace"].asString(); - if(!resourceNodeCreateAlertResultsAlertResult["MetricName"].isNull()) - alertResultObject.metricName = resourceNodeCreateAlertResultsAlertResult["MetricName"].asString(); - if(!resourceNodeCreateAlertResultsAlertResult["Message"].isNull()) - alertResultObject.message = resourceNodeCreateAlertResultsAlertResult["Message"].asString(); - if(!resourceNodeCreateAlertResultsAlertResult["Success"].isNull()) - alertResultObject.success = resourceNodeCreateAlertResultsAlertResult["Success"].asString(); - resource_.createAlertResults.push_back(alertResultObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -ApplyTemplateResult::Resource ApplyTemplateResult::getResource()const -{ - return resource_; -} - -int ApplyTemplateResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ApplyTemplateResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ApplyTemplateResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/CreateAlarmRequest.cc b/cms/src/model/CreateAlarmRequest.cc deleted file mode 100644 index 2a7af87f9..000000000 --- a/cms/src/model/CreateAlarmRequest.cc +++ /dev/null @@ -1,203 +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 - -using AlibabaCloud::Cms::Model::CreateAlarmRequest; - -CreateAlarmRequest::CreateAlarmRequest() : - RpcServiceRequest("cms", "2018-03-08", "CreateAlarm") -{} - -CreateAlarmRequest::~CreateAlarmRequest() -{} - -std::string CreateAlarmRequest::getWebhook()const -{ - return webhook_; -} - -void CreateAlarmRequest::setWebhook(const std::string& webhook) -{ - webhook_ = webhook; - setCoreParameter("Webhook", webhook); -} - -std::string CreateAlarmRequest::getThreshold()const -{ - return threshold_; -} - -void CreateAlarmRequest::setThreshold(const std::string& threshold) -{ - threshold_ = threshold; - setCoreParameter("Threshold", threshold); -} - -int CreateAlarmRequest::getStartTime()const -{ - return startTime_; -} - -void CreateAlarmRequest::setStartTime(int startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", std::to_string(startTime)); -} - -int CreateAlarmRequest::getEvaluationCount()const -{ - return evaluationCount_; -} - -void CreateAlarmRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setCoreParameter("EvaluationCount", std::to_string(evaluationCount)); -} - -int CreateAlarmRequest::getSilenceTime()const -{ - return silenceTime_; -} - -void CreateAlarmRequest::setSilenceTime(int silenceTime) -{ - silenceTime_ = silenceTime; - setCoreParameter("SilenceTime", std::to_string(silenceTime)); -} - -std::string CreateAlarmRequest::getMetricName()const -{ - return metricName_; -} - -void CreateAlarmRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setCoreParameter("MetricName", metricName); -} - -int CreateAlarmRequest::getNotifyType()const -{ - return notifyType_; -} - -void CreateAlarmRequest::setNotifyType(int notifyType) -{ - notifyType_ = notifyType; - setCoreParameter("NotifyType", std::to_string(notifyType)); -} - -int CreateAlarmRequest::getPeriod()const -{ - return period_; -} - -void CreateAlarmRequest::setPeriod(int period) -{ - period_ = period; - setCoreParameter("Period", std::to_string(period)); -} - -bool CreateAlarmRequest::getDryRun()const -{ - return dryRun_; -} - -void CreateAlarmRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setCoreParameter("DryRun", dryRun ? "true" : "false"); -} - -std::string CreateAlarmRequest::getContactGroups()const -{ - return contactGroups_; -} - -void CreateAlarmRequest::setContactGroups(const std::string& contactGroups) -{ - contactGroups_ = contactGroups; - setCoreParameter("ContactGroups", contactGroups); -} - -int CreateAlarmRequest::getEndTime()const -{ - return endTime_; -} - -void CreateAlarmRequest::setEndTime(int endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", std::to_string(endTime)); -} - -std::string CreateAlarmRequest::getName()const -{ - return name_; -} - -void CreateAlarmRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -std::string CreateAlarmRequest::get_Namespace()const -{ - return _namespace_; -} - -void CreateAlarmRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setCoreParameter("_Namespace", _namespace); -} - -std::string CreateAlarmRequest::getComparisonOperator()const -{ - return comparisonOperator_; -} - -void CreateAlarmRequest::setComparisonOperator(const std::string& comparisonOperator) -{ - comparisonOperator_ = comparisonOperator; - setCoreParameter("ComparisonOperator", comparisonOperator); -} - -std::string CreateAlarmRequest::getDimensions()const -{ - return dimensions_; -} - -void CreateAlarmRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - -std::string CreateAlarmRequest::getStatistics()const -{ - return statistics_; -} - -void CreateAlarmRequest::setStatistics(const std::string& statistics) -{ - statistics_ = statistics; - setCoreParameter("Statistics", statistics); -} - diff --git a/cms/src/model/CreateGroupMetricRulesRequest.cc b/cms/src/model/CreateGroupMetricRulesRequest.cc new file mode 100644 index 000000000..4b9fa3e07 --- /dev/null +++ b/cms/src/model/CreateGroupMetricRulesRequest.cc @@ -0,0 +1,79 @@ +/* + * 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::CreateGroupMetricRulesRequest; + +CreateGroupMetricRulesRequest::CreateGroupMetricRulesRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateGroupMetricRules") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateGroupMetricRulesRequest::~CreateGroupMetricRulesRequest() +{} + +long CreateGroupMetricRulesRequest::getGroupId()const +{ + return groupId_; +} + +void CreateGroupMetricRulesRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + +std::vector CreateGroupMetricRulesRequest::getGroupMetricRules()const +{ + return groupMetricRules_; +} + +void CreateGroupMetricRulesRequest::setGroupMetricRules(const std::vector& groupMetricRules) +{ + groupMetricRules_ = groupMetricRules; + for(int dep1 = 0; dep1!= groupMetricRules.size(); dep1++) { + auto groupMetricRulesObj = groupMetricRules.at(dep1); + std::string groupMetricRulesObjStr = "GroupMetricRules." + std::to_string(dep1); + setCoreParameter(groupMetricRulesObjStr + ".Webhook", groupMetricRulesObj.webhook); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnComparisonOperator", groupMetricRulesObj.escalationsWarnComparisonOperator); + setCoreParameter(groupMetricRulesObjStr + ".RuleName", groupMetricRulesObj.ruleName); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoStatistics", groupMetricRulesObj.escalationsInfoStatistics); + setCoreParameter(groupMetricRulesObjStr + ".EffectiveInterval", groupMetricRulesObj.effectiveInterval); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoComparisonOperator", groupMetricRulesObj.escalationsInfoComparisonOperator); + setCoreParameter(groupMetricRulesObjStr + ".NoEffectiveInterval", groupMetricRulesObj.noEffectiveInterval); + setCoreParameter(groupMetricRulesObjStr + ".EmailSubject", groupMetricRulesObj.emailSubject); + setCoreParameter(groupMetricRulesObjStr + ".SilenceTime", std::to_string(groupMetricRulesObj.silenceTime)); + setCoreParameter(groupMetricRulesObjStr + ".MetricName", groupMetricRulesObj.metricName); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnTimes", std::to_string(groupMetricRulesObj.escalationsWarnTimes)); + setCoreParameter(groupMetricRulesObjStr + ".Period", groupMetricRulesObj.period); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnThreshold", groupMetricRulesObj.escalationsWarnThreshold); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalStatistics", groupMetricRulesObj.escalationsCriticalStatistics); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoTimes", std::to_string(groupMetricRulesObj.escalationsInfoTimes)); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalTimes", std::to_string(groupMetricRulesObj.escalationsCriticalTimes)); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsWarnStatistics", groupMetricRulesObj.escalationsWarnStatistics); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsInfoThreshold", groupMetricRulesObj.escalationsInfoThreshold); + setCoreParameter(groupMetricRulesObjStr + "._Namespace", groupMetricRulesObj._namespace); + setCoreParameter(groupMetricRulesObjStr + ".Interval", groupMetricRulesObj.interval); + setCoreParameter(groupMetricRulesObjStr + ".Category", groupMetricRulesObj.category); + setCoreParameter(groupMetricRulesObjStr + ".RuleId", groupMetricRulesObj.ruleId); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalComparisonOperator", groupMetricRulesObj.escalationsCriticalComparisonOperator); + setCoreParameter(groupMetricRulesObjStr + ".EscalationsCriticalThreshold", groupMetricRulesObj.escalationsCriticalThreshold); + setCoreParameter(groupMetricRulesObjStr + ".Dimensions", groupMetricRulesObj.dimensions); + } +} + diff --git a/cms/src/model/CreateMyGroupAlertBatchResult.cc b/cms/src/model/CreateGroupMetricRulesResult.cc similarity index 51% rename from cms/src/model/CreateMyGroupAlertBatchResult.cc rename to cms/src/model/CreateGroupMetricRulesResult.cc index 7a7fc7b1f..ac04997e6 100644 --- a/cms/src/model/CreateMyGroupAlertBatchResult.cc +++ b/cms/src/model/CreateGroupMetricRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -CreateMyGroupAlertBatchResult::CreateMyGroupAlertBatchResult() : +CreateGroupMetricRulesResult::CreateGroupMetricRulesResult() : ServiceResult() {} -CreateMyGroupAlertBatchResult::CreateMyGroupAlertBatchResult(const std::string &payload) : +CreateGroupMetricRulesResult::CreateGroupMetricRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateMyGroupAlertBatchResult::~CreateMyGroupAlertBatchResult() +CreateGroupMetricRulesResult::~CreateGroupMetricRulesResult() {} -void CreateMyGroupAlertBatchResult::parse(const std::string &payload) +void CreateGroupMetricRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,49 +43,43 @@ void CreateMyGroupAlertBatchResult::parse(const std::string &payload) for (auto valueResourcesAlertResult : allResourcesNode) { AlertResult resourcesObject; - if(!valueResourcesAlertResult["AlertName"].isNull()) - resourcesObject.alertName = valueResourcesAlertResult["AlertName"].asString(); - if(!valueResourcesAlertResult["DisplayName"].isNull()) - resourcesObject.displayName = valueResourcesAlertResult["DisplayName"].asString(); - if(!valueResourcesAlertResult["MetricNamespace"].isNull()) - resourcesObject.metricNamespace = valueResourcesAlertResult["MetricNamespace"].asString(); - if(!valueResourcesAlertResult["MetricName"].isNull()) - resourcesObject.metricName = valueResourcesAlertResult["MetricName"].asString(); + if(!valueResourcesAlertResult["RuleId"].isNull()) + resourcesObject.ruleId = valueResourcesAlertResult["RuleId"].asString(); + if(!valueResourcesAlertResult["RuleName"].isNull()) + resourcesObject.ruleName = valueResourcesAlertResult["RuleName"].asString(); if(!valueResourcesAlertResult["Message"].isNull()) resourcesObject.message = valueResourcesAlertResult["Message"].asString(); if(!valueResourcesAlertResult["Code"].isNull()) resourcesObject.code = std::stoi(valueResourcesAlertResult["Code"].asString()); if(!valueResourcesAlertResult["Success"].isNull()) resourcesObject.success = valueResourcesAlertResult["Success"].asString() == "true"; - if(!valueResourcesAlertResult["GroupId"].isNull()) - resourcesObject.groupId = std::stol(valueResourcesAlertResult["GroupId"].asString()); resources_.push_back(resourcesObject); } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -std::vector CreateMyGroupAlertBatchResult::getResources()const +std::string CreateGroupMetricRulesResult::getMessage()const +{ + return message_; +} + +std::vector CreateGroupMetricRulesResult::getResources()const { return resources_; } -int CreateMyGroupAlertBatchResult::getErrorCode()const +int CreateGroupMetricRulesResult::getCode()const { - return errorCode_; + return code_; } -std::string CreateMyGroupAlertBatchResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool CreateMyGroupAlertBatchResult::getSuccess()const +bool CreateGroupMetricRulesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/CreateGroupMonitoringAgentProcessRequest.cc b/cms/src/model/CreateGroupMonitoringAgentProcessRequest.cc new file mode 100644 index 000000000..b00d6c1fe --- /dev/null +++ b/cms/src/model/CreateGroupMonitoringAgentProcessRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cms::Model::CreateGroupMonitoringAgentProcessRequest; + +CreateGroupMonitoringAgentProcessRequest::CreateGroupMonitoringAgentProcessRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateGroupMonitoringAgentProcess") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateGroupMonitoringAgentProcessRequest::~CreateGroupMonitoringAgentProcessRequest() +{} + +std::vector CreateGroupMonitoringAgentProcessRequest::getAlertConfig()const +{ + return alertConfig_; +} + +void CreateGroupMonitoringAgentProcessRequest::setAlertConfig(const std::vector& alertConfig) +{ + alertConfig_ = alertConfig; + for(int dep1 = 0; dep1!= alertConfig.size(); dep1++) { + auto alertConfigObj = alertConfig.at(dep1); + std::string alertConfigObjStr = "AlertConfig." + std::to_string(dep1); + setCoreParameter(alertConfigObjStr + ".Times", alertConfigObj.times); + setCoreParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval); + setCoreParameter(alertConfigObjStr + ".Webhook", alertConfigObj.webhook); + setCoreParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime); + setCoreParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold); + setCoreParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval); + setCoreParameter(alertConfigObjStr + ".ComparisonOperator", alertConfigObj.comparisonOperator); + setCoreParameter(alertConfigObjStr + ".EscalationsLevel", alertConfigObj.escalationsLevel); + setCoreParameter(alertConfigObjStr + ".Statistics", alertConfigObj.statistics); + } +} + +std::string CreateGroupMonitoringAgentProcessRequest::getGroupId()const +{ + return groupId_; +} + +void CreateGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string CreateGroupMonitoringAgentProcessRequest::getProcessName()const +{ + return processName_; +} + +void CreateGroupMonitoringAgentProcessRequest::setProcessName(const std::string& processName) +{ + processName_ = processName; + setCoreParameter("ProcessName", processName); +} + +std::string CreateGroupMonitoringAgentProcessRequest::getMatchExpressFilterRelation()const +{ + return matchExpressFilterRelation_; +} + +void CreateGroupMonitoringAgentProcessRequest::setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation) +{ + matchExpressFilterRelation_ = matchExpressFilterRelation; + setCoreParameter("MatchExpressFilterRelation", matchExpressFilterRelation); +} + +std::vector CreateGroupMonitoringAgentProcessRequest::getMatchExpress()const +{ + return matchExpress_; +} + +void CreateGroupMonitoringAgentProcessRequest::setMatchExpress(const std::vector& matchExpress) +{ + matchExpress_ = matchExpress; + for(int dep1 = 0; dep1!= matchExpress.size(); dep1++) { + auto matchExpressObj = matchExpress.at(dep1); + std::string matchExpressObjStr = "MatchExpress." + std::to_string(dep1); + setCoreParameter(matchExpressObjStr + ".Function", matchExpressObj.function); + setCoreParameter(matchExpressObjStr + ".Name", matchExpressObj.name); + setCoreParameter(matchExpressObjStr + ".Value", matchExpressObj.value); + } +} + diff --git a/cms/src/model/CreateGroupMonitoringAgentProcessResult.cc b/cms/src/model/CreateGroupMonitoringAgentProcessResult.cc new file mode 100644 index 000000000..9a82ac641 --- /dev/null +++ b/cms/src/model/CreateGroupMonitoringAgentProcessResult.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; + +CreateGroupMonitoringAgentProcessResult::CreateGroupMonitoringAgentProcessResult() : + ServiceResult() +{} + +CreateGroupMonitoringAgentProcessResult::CreateGroupMonitoringAgentProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateGroupMonitoringAgentProcessResult::~CreateGroupMonitoringAgentProcessResult() +{} + +void CreateGroupMonitoringAgentProcessResult::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 CreateGroupMonitoringAgentProcessResult::getMessage()const +{ + return message_; +} + +std::string CreateGroupMonitoringAgentProcessResult::getCode()const +{ + return code_; +} + +bool CreateGroupMonitoringAgentProcessResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/CreateHostAvailabilityRequest.cc b/cms/src/model/CreateHostAvailabilityRequest.cc new file mode 100644 index 000000000..136d98b2c --- /dev/null +++ b/cms/src/model/CreateHostAvailabilityRequest.cc @@ -0,0 +1,226 @@ +/* + * 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::CreateHostAvailabilityRequest; + +CreateHostAvailabilityRequest::CreateHostAvailabilityRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateHostAvailability") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateHostAvailabilityRequest::~CreateHostAvailabilityRequest() +{} + +std::string CreateHostAvailabilityRequest::getTaskOptionHttpMethod()const +{ + return taskOptionHttpMethod_; +} + +void CreateHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod) +{ + taskOptionHttpMethod_ = taskOptionHttpMethod; + setCoreParameter("TaskOptionHttpMethod", taskOptionHttpMethod); +} + +std::vector CreateHostAvailabilityRequest::getAlertConfigEscalationList()const +{ + return alertConfigEscalationList_; +} + +void CreateHostAvailabilityRequest::setAlertConfigEscalationList(const std::vector& alertConfigEscalationList) +{ + alertConfigEscalationList_ = alertConfigEscalationList; + for(int dep1 = 0; dep1!= alertConfigEscalationList.size(); dep1++) { + auto alertConfigEscalationListObj = alertConfigEscalationList.at(dep1); + std::string alertConfigEscalationListObjStr = "AlertConfigEscalationList." + std::to_string(dep1); + setCoreParameter(alertConfigEscalationListObjStr + ".Times", std::to_string(alertConfigEscalationListObj.times)); + setCoreParameter(alertConfigEscalationListObjStr + ".MetricName", alertConfigEscalationListObj.metricName); + setCoreParameter(alertConfigEscalationListObjStr + ".Value", alertConfigEscalationListObj.value); + setCoreParameter(alertConfigEscalationListObjStr + "._Operator", alertConfigEscalationListObj._operator); + setCoreParameter(alertConfigEscalationListObjStr + ".Aggregate", alertConfigEscalationListObj.aggregate); + } +} + +std::string CreateHostAvailabilityRequest::getTaskName()const +{ + return taskName_; +} + +void CreateHostAvailabilityRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setCoreParameter("TaskName", taskName); +} + +int CreateHostAvailabilityRequest::getAlertConfigSilenceTime()const +{ + return alertConfigSilenceTime_; +} + +void CreateHostAvailabilityRequest::setAlertConfigSilenceTime(int alertConfigSilenceTime) +{ + alertConfigSilenceTime_ = alertConfigSilenceTime; + setCoreParameter("AlertConfigSilenceTime", std::to_string(alertConfigSilenceTime)); +} + +std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseCharset()const +{ + return taskOptionHttpResponseCharset_; +} + +void CreateHostAvailabilityRequest::setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset) +{ + taskOptionHttpResponseCharset_ = taskOptionHttpResponseCharset; + setCoreParameter("TaskOptionHttpResponseCharset", taskOptionHttpResponseCharset); +} + +bool CreateHostAvailabilityRequest::getTaskOptionHttpNegative()const +{ + return taskOptionHttpNegative_; +} + +void CreateHostAvailabilityRequest::setTaskOptionHttpNegative(bool taskOptionHttpNegative) +{ + taskOptionHttpNegative_ = taskOptionHttpNegative; + setCoreParameter("TaskOptionHttpNegative", taskOptionHttpNegative ? "true" : "false"); +} + +int CreateHostAvailabilityRequest::getAlertConfigNotifyType()const +{ + return alertConfigNotifyType_; +} + +void CreateHostAvailabilityRequest::setAlertConfigNotifyType(int alertConfigNotifyType) +{ + alertConfigNotifyType_ = alertConfigNotifyType; + setCoreParameter("AlertConfigNotifyType", std::to_string(alertConfigNotifyType)); +} + +std::string CreateHostAvailabilityRequest::getTaskOptionTelnetOrPingHost()const +{ + return taskOptionTelnetOrPingHost_; +} + +void CreateHostAvailabilityRequest::setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost) +{ + taskOptionTelnetOrPingHost_ = taskOptionTelnetOrPingHost; + setCoreParameter("TaskOptionTelnetOrPingHost", taskOptionTelnetOrPingHost); +} + +std::string CreateHostAvailabilityRequest::getTaskOptionHttpResponseMatchContent()const +{ + return taskOptionHttpResponseMatchContent_; +} + +void CreateHostAvailabilityRequest::setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent) +{ + taskOptionHttpResponseMatchContent_ = taskOptionHttpResponseMatchContent; + setCoreParameter("TaskOptionHttpResponseMatchContent", taskOptionHttpResponseMatchContent); +} + +std::vector CreateHostAvailabilityRequest::getInstanceList()const +{ + return instanceList_; +} + +void CreateHostAvailabilityRequest::setInstanceList(const std::vector& instanceList) +{ + instanceList_ = instanceList; + for(int dep1 = 0; dep1!= instanceList.size(); dep1++) { + setCoreParameter("InstanceList."+ std::to_string(dep1), instanceList.at(dep1)); + } +} + +std::string CreateHostAvailabilityRequest::getTaskType()const +{ + return taskType_; +} + +void CreateHostAvailabilityRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setCoreParameter("TaskType", taskType); +} + +long CreateHostAvailabilityRequest::getGroupId()const +{ + return groupId_; +} + +void CreateHostAvailabilityRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + +int CreateHostAvailabilityRequest::getAlertConfigEndTime()const +{ + return alertConfigEndTime_; +} + +void CreateHostAvailabilityRequest::setAlertConfigEndTime(int alertConfigEndTime) +{ + alertConfigEndTime_ = alertConfigEndTime; + setCoreParameter("AlertConfigEndTime", std::to_string(alertConfigEndTime)); +} + +std::string CreateHostAvailabilityRequest::getTaskOptionHttpURI()const +{ + return taskOptionHttpURI_; +} + +void CreateHostAvailabilityRequest::setTaskOptionHttpURI(const std::string& taskOptionHttpURI) +{ + taskOptionHttpURI_ = taskOptionHttpURI; + setCoreParameter("TaskOptionHttpURI", taskOptionHttpURI); +} + +std::string CreateHostAvailabilityRequest::getTaskScope()const +{ + return taskScope_; +} + +void CreateHostAvailabilityRequest::setTaskScope(const std::string& taskScope) +{ + taskScope_ = taskScope; + setCoreParameter("TaskScope", taskScope); +} + +int CreateHostAvailabilityRequest::getAlertConfigStartTime()const +{ + return alertConfigStartTime_; +} + +void CreateHostAvailabilityRequest::setAlertConfigStartTime(int alertConfigStartTime) +{ + alertConfigStartTime_ = alertConfigStartTime; + setCoreParameter("AlertConfigStartTime", std::to_string(alertConfigStartTime)); +} + +std::string CreateHostAvailabilityRequest::getAlertConfigWebHook()const +{ + return alertConfigWebHook_; +} + +void CreateHostAvailabilityRequest::setAlertConfigWebHook(const std::string& alertConfigWebHook) +{ + alertConfigWebHook_ = alertConfigWebHook; + setCoreParameter("AlertConfigWebHook", alertConfigWebHook); +} + diff --git a/cms/src/model/QueryCustomEventCountResult.cc b/cms/src/model/CreateHostAvailabilityResult.cc similarity index 64% rename from cms/src/model/QueryCustomEventCountResult.cc rename to cms/src/model/CreateHostAvailabilityResult.cc index 80443d410..ad3880d9b 100644 --- a/cms/src/model/QueryCustomEventCountResult.cc +++ b/cms/src/model/CreateHostAvailabilityResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QueryCustomEventCountResult::QueryCustomEventCountResult() : +CreateHostAvailabilityResult::CreateHostAvailabilityResult() : ServiceResult() {} -QueryCustomEventCountResult::QueryCustomEventCountResult(const std::string &payload) : +CreateHostAvailabilityResult::CreateHostAvailabilityResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryCustomEventCountResult::~QueryCustomEventCountResult() +CreateHostAvailabilityResult::~CreateHostAvailabilityResult() {} -void QueryCustomEventCountResult::parse(const std::string &payload) +void CreateHostAvailabilityResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,29 +43,29 @@ void QueryCustomEventCountResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; + if(!value["TaskId"].isNull()) + taskId_ = std::stol(value["TaskId"].asString()); } -std::string QueryCustomEventCountResult::getMessage()const +long CreateHostAvailabilityResult::getTaskId()const +{ + return taskId_; +} + +std::string CreateHostAvailabilityResult::getMessage()const { return message_; } -std::string QueryCustomEventCountResult::getData()const -{ - return data_; -} - -std::string QueryCustomEventCountResult::getCode()const +std::string CreateHostAvailabilityResult::getCode()const { return code_; } -bool QueryCustomEventCountResult::getSuccess()const +bool CreateHostAvailabilityResult::getSuccess()const { return success_; } diff --git a/cms/src/model/CreateMetricRuleResourcesRequest.cc b/cms/src/model/CreateMetricRuleResourcesRequest.cc new file mode 100644 index 000000000..411ca97e2 --- /dev/null +++ b/cms/src/model/CreateMetricRuleResourcesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMetricRuleResourcesRequest; + +CreateMetricRuleResourcesRequest::CreateMetricRuleResourcesRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateMetricRuleResources") +{ + setMethod(HttpRequest::Method::Put); +} + +CreateMetricRuleResourcesRequest::~CreateMetricRuleResourcesRequest() +{} + +std::string CreateMetricRuleResourcesRequest::getResources()const +{ + return resources_; +} + +void CreateMetricRuleResourcesRequest::setResources(const std::string& resources) +{ + resources_ = resources; + setCoreParameter("Resources", resources); +} + +std::string CreateMetricRuleResourcesRequest::getRuleId()const +{ + return ruleId_; +} + +void CreateMetricRuleResourcesRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", ruleId); +} + +std::string CreateMetricRuleResourcesRequest::getOverwrite()const +{ + return overwrite_; +} + +void CreateMetricRuleResourcesRequest::setOverwrite(const std::string& overwrite) +{ + overwrite_ = overwrite; + setCoreParameter("Overwrite", overwrite); +} + diff --git a/cms/src/model/CreateMetricRuleResourcesResult.cc b/cms/src/model/CreateMetricRuleResourcesResult.cc new file mode 100644 index 000000000..a76974c3d --- /dev/null +++ b/cms/src/model/CreateMetricRuleResourcesResult.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; + +CreateMetricRuleResourcesResult::CreateMetricRuleResourcesResult() : + ServiceResult() +{} + +CreateMetricRuleResourcesResult::CreateMetricRuleResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMetricRuleResourcesResult::~CreateMetricRuleResourcesResult() +{} + +void CreateMetricRuleResourcesResult::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 CreateMetricRuleResourcesResult::getMessage()const +{ + return message_; +} + +std::string CreateMetricRuleResourcesResult::getCode()const +{ + return code_; +} + +bool CreateMetricRuleResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/CreateMetricRuleTemplateRequest.cc b/cms/src/model/CreateMetricRuleTemplateRequest.cc new file mode 100644 index 000000000..8da1addac --- /dev/null +++ b/cms/src/model/CreateMetricRuleTemplateRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMetricRuleTemplateRequest; + +CreateMetricRuleTemplateRequest::CreateMetricRuleTemplateRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateMetricRuleTemplate") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateMetricRuleTemplateRequest::~CreateMetricRuleTemplateRequest() +{} + +std::string CreateMetricRuleTemplateRequest::getDescription()const +{ + return description_; +} + +void CreateMetricRuleTemplateRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +std::string CreateMetricRuleTemplateRequest::getName()const +{ + return name_; +} + +void CreateMetricRuleTemplateRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::vector CreateMetricRuleTemplateRequest::getAlertTemplates()const +{ + return alertTemplates_; +} + +void CreateMetricRuleTemplateRequest::setAlertTemplates(const std::vector& alertTemplates) +{ + alertTemplates_ = alertTemplates; + for(int dep1 = 0; dep1!= alertTemplates.size(); dep1++) { + auto alertTemplatesObj = alertTemplates.at(dep1); + std::string alertTemplatesObjStr = "AlertTemplates." + std::to_string(dep1); + setCoreParameter(alertTemplatesObjStr + ".Period", std::to_string(alertTemplatesObj.period)); + setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnThreshold", alertTemplatesObj.escalationsWarnThreshold); + setCoreParameter(alertTemplatesObjStr + ".Webhook", alertTemplatesObj.webhook); + setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnComparisonOperator", alertTemplatesObj.escalationsWarnComparisonOperator); + setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalStatistics", alertTemplatesObj.escalationsCriticalStatistics); + setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoTimes", std::to_string(alertTemplatesObj.escalationsInfoTimes)); + setCoreParameter(alertTemplatesObjStr + ".RuleName", alertTemplatesObj.ruleName); + setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoStatistics", alertTemplatesObj.escalationsInfoStatistics); + setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalTimes", std::to_string(alertTemplatesObj.escalationsCriticalTimes)); + setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoComparisonOperator", alertTemplatesObj.escalationsInfoComparisonOperator); + setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnStatistics", alertTemplatesObj.escalationsWarnStatistics); + setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoThreshold", alertTemplatesObj.escalationsInfoThreshold); + setCoreParameter(alertTemplatesObjStr + "._Namespace", alertTemplatesObj._namespace); + setCoreParameter(alertTemplatesObjStr + ".Selector", alertTemplatesObj.selector); + setCoreParameter(alertTemplatesObjStr + ".MetricName", alertTemplatesObj.metricName); + setCoreParameter(alertTemplatesObjStr + ".Category", alertTemplatesObj.category); + setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalComparisonOperator", alertTemplatesObj.escalationsCriticalComparisonOperator); + setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnTimes", std::to_string(alertTemplatesObj.escalationsWarnTimes)); + setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalThreshold", alertTemplatesObj.escalationsCriticalThreshold); + } +} + diff --git a/cms/src/model/ListProductOfActiveAlertResult.cc b/cms/src/model/CreateMetricRuleTemplateResult.cc similarity index 65% rename from cms/src/model/ListProductOfActiveAlertResult.cc rename to cms/src/model/CreateMetricRuleTemplateResult.cc index 08d98a826..ca0d8da41 100644 --- a/cms/src/model/ListProductOfActiveAlertResult.cc +++ b/cms/src/model/CreateMetricRuleTemplateResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListProductOfActiveAlertResult::ListProductOfActiveAlertResult() : +CreateMetricRuleTemplateResult::CreateMetricRuleTemplateResult() : ServiceResult() {} -ListProductOfActiveAlertResult::ListProductOfActiveAlertResult(const std::string &payload) : +CreateMetricRuleTemplateResult::CreateMetricRuleTemplateResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListProductOfActiveAlertResult::~ListProductOfActiveAlertResult() +CreateMetricRuleTemplateResult::~CreateMetricRuleTemplateResult() {} -void ListProductOfActiveAlertResult::parse(const std::string &payload) +void CreateMetricRuleTemplateResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -45,27 +45,27 @@ void ListProductOfActiveAlertResult::parse(const std::string &payload) code_ = std::stoi(value["Code"].asString()); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Datapoints"].isNull()) - datapoints_ = value["Datapoints"].asString(); + if(!value["Id"].isNull()) + id_ = std::stol(value["Id"].asString()); } -std::string ListProductOfActiveAlertResult::getMessage()const +std::string CreateMetricRuleTemplateResult::getMessage()const { return message_; } -std::string ListProductOfActiveAlertResult::getDatapoints()const +long CreateMetricRuleTemplateResult::getId()const { - return datapoints_; + return id_; } -int ListProductOfActiveAlertResult::getCode()const +int CreateMetricRuleTemplateResult::getCode()const { return code_; } -bool ListProductOfActiveAlertResult::getSuccess()const +bool CreateMetricRuleTemplateResult::getSuccess()const { return success_; } diff --git a/cms/src/model/CreateMonitorAgentProcessRequest.cc b/cms/src/model/CreateMonitorAgentProcessRequest.cc new file mode 100644 index 000000000..76e4d7ae1 --- /dev/null +++ b/cms/src/model/CreateMonitorAgentProcessRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMonitorAgentProcessRequest; + +CreateMonitorAgentProcessRequest::CreateMonitorAgentProcessRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateMonitorAgentProcess") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateMonitorAgentProcessRequest::~CreateMonitorAgentProcessRequest() +{} + +std::string CreateMonitorAgentProcessRequest::getProcessName()const +{ + return processName_; +} + +void CreateMonitorAgentProcessRequest::setProcessName(const std::string& processName) +{ + processName_ = processName; + setCoreParameter("ProcessName", processName); +} + +std::string CreateMonitorAgentProcessRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateMonitorAgentProcessRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CreateMonitorAgentProcessRequest::getProcessUser()const +{ + return processUser_; +} + +void CreateMonitorAgentProcessRequest::setProcessUser(const std::string& processUser) +{ + processUser_ = processUser; + setCoreParameter("ProcessUser", processUser); +} + diff --git a/cms/src/model/QueryCustomEventHistogramResult.cc b/cms/src/model/CreateMonitorAgentProcessResult.cc similarity index 63% rename from cms/src/model/QueryCustomEventHistogramResult.cc rename to cms/src/model/CreateMonitorAgentProcessResult.cc index a3039346a..117916418 100644 --- a/cms/src/model/QueryCustomEventHistogramResult.cc +++ b/cms/src/model/CreateMonitorAgentProcessResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QueryCustomEventHistogramResult::QueryCustomEventHistogramResult() : +CreateMonitorAgentProcessResult::CreateMonitorAgentProcessResult() : ServiceResult() {} -QueryCustomEventHistogramResult::QueryCustomEventHistogramResult(const std::string &payload) : +CreateMonitorAgentProcessResult::CreateMonitorAgentProcessResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryCustomEventHistogramResult::~QueryCustomEventHistogramResult() +CreateMonitorAgentProcessResult::~CreateMonitorAgentProcessResult() {} -void QueryCustomEventHistogramResult::parse(const std::string &payload) +void CreateMonitorAgentProcessResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,29 +43,29 @@ void QueryCustomEventHistogramResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); if(!value["Success"].isNull()) - success_ = value["Success"].asString(); + success_ = value["Success"].asString() == "true"; + if(!value["Id"].isNull()) + id_ = std::stol(value["Id"].asString()); } -std::string QueryCustomEventHistogramResult::getMessage()const +std::string CreateMonitorAgentProcessResult::getMessage()const { return message_; } -std::string QueryCustomEventHistogramResult::getData()const +long CreateMonitorAgentProcessResult::getId()const { - return data_; + return id_; } -std::string QueryCustomEventHistogramResult::getCode()const +std::string CreateMonitorAgentProcessResult::getCode()const { return code_; } -std::string QueryCustomEventHistogramResult::getSuccess()const +bool CreateMonitorAgentProcessResult::getSuccess()const { return success_; } diff --git a/cms/src/model/CreateMonitorGroupInstancesRequest.cc b/cms/src/model/CreateMonitorGroupInstancesRequest.cc new file mode 100644 index 000000000..7ab445de2 --- /dev/null +++ b/cms/src/model/CreateMonitorGroupInstancesRequest.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMonitorGroupInstancesRequest; + +CreateMonitorGroupInstancesRequest::CreateMonitorGroupInstancesRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupInstances") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateMonitorGroupInstancesRequest::~CreateMonitorGroupInstancesRequest() +{} + +std::vector CreateMonitorGroupInstancesRequest::getInstances()const +{ + return instances_; +} + +void CreateMonitorGroupInstancesRequest::setInstances(const std::vector& instances) +{ + instances_ = instances; + for(int dep1 = 0; dep1!= instances.size(); dep1++) { + auto instancesObj = instances.at(dep1); + std::string instancesObjStr = "Instances." + std::to_string(dep1); + setCoreParameter(instancesObjStr + ".InstanceId", instancesObj.instanceId); + setCoreParameter(instancesObjStr + ".InstanceName", instancesObj.instanceName); + setCoreParameter(instancesObjStr + ".RegionId", instancesObj.regionId); + setCoreParameter(instancesObjStr + ".Category", instancesObj.category); + } +} + +long CreateMonitorGroupInstancesRequest::getGroupId()const +{ + return groupId_; +} + +void CreateMonitorGroupInstancesRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + diff --git a/cms/src/model/CreateMonitorGroupInstancesResult.cc b/cms/src/model/CreateMonitorGroupInstancesResult.cc new file mode 100644 index 000000000..3e9385ac5 --- /dev/null +++ b/cms/src/model/CreateMonitorGroupInstancesResult.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; + +CreateMonitorGroupInstancesResult::CreateMonitorGroupInstancesResult() : + ServiceResult() +{} + +CreateMonitorGroupInstancesResult::CreateMonitorGroupInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMonitorGroupInstancesResult::~CreateMonitorGroupInstancesResult() +{} + +void CreateMonitorGroupInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string CreateMonitorGroupInstancesResult::getMessage()const +{ + return message_; +} + +int CreateMonitorGroupInstancesResult::getCode()const +{ + return code_; +} + +bool CreateMonitorGroupInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/CreateMonitorGroupNotifyPolicyRequest.cc b/cms/src/model/CreateMonitorGroupNotifyPolicyRequest.cc new file mode 100644 index 000000000..25e148c07 --- /dev/null +++ b/cms/src/model/CreateMonitorGroupNotifyPolicyRequest.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::CreateMonitorGroupNotifyPolicyRequest; + +CreateMonitorGroupNotifyPolicyRequest::CreateMonitorGroupNotifyPolicyRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroupNotifyPolicy") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateMonitorGroupNotifyPolicyRequest::~CreateMonitorGroupNotifyPolicyRequest() +{} + +std::string CreateMonitorGroupNotifyPolicyRequest::getPolicyType()const +{ + return policyType_; +} + +void CreateMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string& policyType) +{ + policyType_ = policyType; + setCoreParameter("PolicyType", policyType); +} + +std::string CreateMonitorGroupNotifyPolicyRequest::getGroupId()const +{ + return groupId_; +} + +void CreateMonitorGroupNotifyPolicyRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +long CreateMonitorGroupNotifyPolicyRequest::getEndTime()const +{ + return endTime_; +} + +void CreateMonitorGroupNotifyPolicyRequest::setEndTime(long endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", std::to_string(endTime)); +} + +long CreateMonitorGroupNotifyPolicyRequest::getStartTime()const +{ + return startTime_; +} + +void CreateMonitorGroupNotifyPolicyRequest::setStartTime(long startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", std::to_string(startTime)); +} + diff --git a/cms/src/model/CreateNotifyPolicyResult.cc b/cms/src/model/CreateMonitorGroupNotifyPolicyResult.cc similarity index 66% rename from cms/src/model/CreateNotifyPolicyResult.cc rename to cms/src/model/CreateMonitorGroupNotifyPolicyResult.cc index 748f76631..40b28724d 100644 --- a/cms/src/model/CreateNotifyPolicyResult.cc +++ b/cms/src/model/CreateMonitorGroupNotifyPolicyResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -CreateNotifyPolicyResult::CreateNotifyPolicyResult() : +CreateMonitorGroupNotifyPolicyResult::CreateMonitorGroupNotifyPolicyResult() : ServiceResult() {} -CreateNotifyPolicyResult::CreateNotifyPolicyResult(const std::string &payload) : +CreateMonitorGroupNotifyPolicyResult::CreateMonitorGroupNotifyPolicyResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateNotifyPolicyResult::~CreateNotifyPolicyResult() +CreateMonitorGroupNotifyPolicyResult::~CreateMonitorGroupNotifyPolicyResult() {} -void CreateNotifyPolicyResult::parse(const std::string &payload) +void CreateMonitorGroupNotifyPolicyResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -50,22 +50,22 @@ void CreateNotifyPolicyResult::parse(const std::string &payload) } -std::string CreateNotifyPolicyResult::getMessage()const +std::string CreateMonitorGroupNotifyPolicyResult::getMessage()const { return message_; } -std::string CreateNotifyPolicyResult::getCode()const +std::string CreateMonitorGroupNotifyPolicyResult::getCode()const { return code_; } -std::string CreateNotifyPolicyResult::getSuccess()const +std::string CreateMonitorGroupNotifyPolicyResult::getSuccess()const { return success_; } -int CreateNotifyPolicyResult::getResult()const +int CreateMonitorGroupNotifyPolicyResult::getResult()const { return result_; } diff --git a/cms/src/model/CreateMyGroupsRequest.cc b/cms/src/model/CreateMonitorGroupRequest.cc similarity index 50% rename from cms/src/model/CreateMyGroupsRequest.cc rename to cms/src/model/CreateMonitorGroupRequest.cc index df51f73d5..d71ac896a 100644 --- a/cms/src/model/CreateMyGroupsRequest.cc +++ b/cms/src/model/CreateMonitorGroupRequest.cc @@ -14,78 +14,80 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::CreateMyGroupsRequest; +using AlibabaCloud::Cms::Model::CreateMonitorGroupRequest; -CreateMyGroupsRequest::CreateMyGroupsRequest() : - RpcServiceRequest("cms", "2018-03-08", "CreateMyGroups") +CreateMonitorGroupRequest::CreateMonitorGroupRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateMonitorGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateMonitorGroupRequest::~CreateMonitorGroupRequest() {} -CreateMyGroupsRequest::~CreateMyGroupsRequest() -{} - -std::string CreateMyGroupsRequest::getContactGroups()const +std::string CreateMonitorGroupRequest::getContactGroups()const { return contactGroups_; } -void CreateMyGroupsRequest::setContactGroups(const std::string& contactGroups) +void CreateMonitorGroupRequest::setContactGroups(const std::string& contactGroups) { contactGroups_ = contactGroups; setCoreParameter("ContactGroups", contactGroups); } -std::string CreateMyGroupsRequest::getType()const +std::string CreateMonitorGroupRequest::getType()const { return type_; } -void CreateMyGroupsRequest::setType(const std::string& type) +void CreateMonitorGroupRequest::setType(const std::string& type) { type_ = type; setCoreParameter("Type", type); } -std::string CreateMyGroupsRequest::getGroupName()const +std::string CreateMonitorGroupRequest::getGroupName()const { return groupName_; } -void CreateMyGroupsRequest::setGroupName(const std::string& groupName) +void CreateMonitorGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; setCoreParameter("GroupName", groupName); } -std::string CreateMyGroupsRequest::getOptions()const +std::string CreateMonitorGroupRequest::getOptions()const { return options_; } -void CreateMyGroupsRequest::setOptions(const std::string& options) +void CreateMonitorGroupRequest::setOptions(const std::string& options) { options_ = options; setCoreParameter("Options", options); } -long CreateMyGroupsRequest::getServiceId()const +long CreateMonitorGroupRequest::getServiceId()const { return serviceId_; } -void CreateMyGroupsRequest::setServiceId(long serviceId) +void CreateMonitorGroupRequest::setServiceId(long serviceId) { serviceId_ = serviceId; setCoreParameter("ServiceId", std::to_string(serviceId)); } -std::string CreateMyGroupsRequest::getBindUrl()const +std::string CreateMonitorGroupRequest::getBindUrl()const { return bindUrl_; } -void CreateMyGroupsRequest::setBindUrl(const std::string& bindUrl) +void CreateMonitorGroupRequest::setBindUrl(const std::string& bindUrl) { bindUrl_ = bindUrl; setCoreParameter("BindUrl", bindUrl); diff --git a/cms/src/model/CreateMonitorGroupResult.cc b/cms/src/model/CreateMonitorGroupResult.cc new file mode 100644 index 000000000..a3f062d21 --- /dev/null +++ b/cms/src/model/CreateMonitorGroupResult.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; + +CreateMonitorGroupResult::CreateMonitorGroupResult() : + ServiceResult() +{} + +CreateMonitorGroupResult::CreateMonitorGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMonitorGroupResult::~CreateMonitorGroupResult() +{} + +void CreateMonitorGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["GroupId"].isNull()) + groupId_ = std::stol(value["GroupId"].asString()); + +} + +std::string CreateMonitorGroupResult::getMessage()const +{ + return message_; +} + +int CreateMonitorGroupResult::getCode()const +{ + return code_; +} + +bool CreateMonitorGroupResult::getSuccess()const +{ + return success_; +} + +long CreateMonitorGroupResult::getGroupId()const +{ + return groupId_; +} + diff --git a/cms/src/model/CreateMonitoringAgentProcessRequest.cc b/cms/src/model/CreateMonitoringAgentProcessRequest.cc new file mode 100644 index 000000000..2c20c610a --- /dev/null +++ b/cms/src/model/CreateMonitoringAgentProcessRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::CreateMonitoringAgentProcessRequest; + +CreateMonitoringAgentProcessRequest::CreateMonitoringAgentProcessRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateMonitoringAgentProcess") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateMonitoringAgentProcessRequest::~CreateMonitoringAgentProcessRequest() +{} + +std::string CreateMonitoringAgentProcessRequest::getProcessName()const +{ + return processName_; +} + +void CreateMonitoringAgentProcessRequest::setProcessName(const std::string& processName) +{ + processName_ = processName; + setCoreParameter("ProcessName", processName); +} + +std::string CreateMonitoringAgentProcessRequest::getInstanceId()const +{ + return instanceId_; +} + +void CreateMonitoringAgentProcessRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string CreateMonitoringAgentProcessRequest::getProcessUser()const +{ + return processUser_; +} + +void CreateMonitoringAgentProcessRequest::setProcessUser(const std::string& processUser) +{ + processUser_ = processUser; + setCoreParameter("ProcessUser", processUser); +} + diff --git a/cms/src/model/CreateMonitoringAgentProcessResult.cc b/cms/src/model/CreateMonitoringAgentProcessResult.cc new file mode 100644 index 000000000..1a1b3f79a --- /dev/null +++ b/cms/src/model/CreateMonitoringAgentProcessResult.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; + +CreateMonitoringAgentProcessResult::CreateMonitoringAgentProcessResult() : + ServiceResult() +{} + +CreateMonitoringAgentProcessResult::CreateMonitoringAgentProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateMonitoringAgentProcessResult::~CreateMonitoringAgentProcessResult() +{} + +void CreateMonitoringAgentProcessResult::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["Id"].isNull()) + id_ = std::stol(value["Id"].asString()); + +} + +std::string CreateMonitoringAgentProcessResult::getMessage()const +{ + return message_; +} + +long CreateMonitoringAgentProcessResult::getId()const +{ + return id_; +} + +std::string CreateMonitoringAgentProcessResult::getCode()const +{ + return code_; +} + +bool CreateMonitoringAgentProcessResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/CreateMonitoringTemplateRequest.cc b/cms/src/model/CreateMonitoringTemplateRequest.cc deleted file mode 100644 index f85b68c46..000000000 --- a/cms/src/model/CreateMonitoringTemplateRequest.cc +++ /dev/null @@ -1,82 +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 - -using AlibabaCloud::Cms::Model::CreateMonitoringTemplateRequest; - -CreateMonitoringTemplateRequest::CreateMonitoringTemplateRequest() : - RpcServiceRequest("cms", "2018-03-08", "CreateMonitoringTemplate") -{} - -CreateMonitoringTemplateRequest::~CreateMonitoringTemplateRequest() -{} - -std::string CreateMonitoringTemplateRequest::getEventRuleTemplatesJson()const -{ - return eventRuleTemplatesJson_; -} - -void CreateMonitoringTemplateRequest::setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson) -{ - eventRuleTemplatesJson_ = eventRuleTemplatesJson; - setCoreParameter("EventRuleTemplatesJson", eventRuleTemplatesJson); -} - -std::string CreateMonitoringTemplateRequest::getName()const -{ - return name_; -} - -void CreateMonitoringTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -std::string CreateMonitoringTemplateRequest::get_Namespace()const -{ - return _namespace_; -} - -void CreateMonitoringTemplateRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setCoreParameter("_Namespace", _namespace); -} - -std::string CreateMonitoringTemplateRequest::getDescription()const -{ - return description_; -} - -void CreateMonitoringTemplateRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string CreateMonitoringTemplateRequest::getAlertTemplatesJson()const -{ - return alertTemplatesJson_; -} - -void CreateMonitoringTemplateRequest::setAlertTemplatesJson(const std::string& alertTemplatesJson) -{ - alertTemplatesJson_ = alertTemplatesJson; - setCoreParameter("AlertTemplatesJson", alertTemplatesJson); -} - diff --git a/cms/src/model/CreateMonitoringTemplateResult.cc b/cms/src/model/CreateMonitoringTemplateResult.cc deleted file mode 100644 index c327b91f4..000000000 --- a/cms/src/model/CreateMonitoringTemplateResult.cc +++ /dev/null @@ -1,72 +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; - -CreateMonitoringTemplateResult::CreateMonitoringTemplateResult() : - ServiceResult() -{} - -CreateMonitoringTemplateResult::CreateMonitoringTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateMonitoringTemplateResult::~CreateMonitoringTemplateResult() -{} - -void CreateMonitoringTemplateResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Id"].isNull()) - id_ = std::stol(value["Id"].asString()); - -} - -int CreateMonitoringTemplateResult::getErrorCode()const -{ - return errorCode_; -} - -long CreateMonitoringTemplateResult::getId()const -{ - return id_; -} - -std::string CreateMonitoringTemplateResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool CreateMonitoringTemplateResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/CreateMyGroupAlertBatchRequest.cc b/cms/src/model/CreateMyGroupAlertBatchRequest.cc deleted file mode 100644 index ac3f1a623..000000000 --- a/cms/src/model/CreateMyGroupAlertBatchRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::CreateMyGroupAlertBatchRequest; - -CreateMyGroupAlertBatchRequest::CreateMyGroupAlertBatchRequest() : - RpcServiceRequest("cms", "2018-03-08", "CreateMyGroupAlertBatch") -{} - -CreateMyGroupAlertBatchRequest::~CreateMyGroupAlertBatchRequest() -{} - -long CreateMyGroupAlertBatchRequest::getGroupId()const -{ - return groupId_; -} - -void CreateMyGroupAlertBatchRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -std::string CreateMyGroupAlertBatchRequest::getGroupAlertJsonArray()const -{ - return groupAlertJsonArray_; -} - -void CreateMyGroupAlertBatchRequest::setGroupAlertJsonArray(const std::string& groupAlertJsonArray) -{ - groupAlertJsonArray_ = groupAlertJsonArray; - setCoreParameter("GroupAlertJsonArray", groupAlertJsonArray); -} - diff --git a/cms/src/model/CreateMyGroupsResult.cc b/cms/src/model/CreateMyGroupsResult.cc deleted file mode 100644 index 79bc70e24..000000000 --- a/cms/src/model/CreateMyGroupsResult.cc +++ /dev/null @@ -1,72 +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; - -CreateMyGroupsResult::CreateMyGroupsResult() : - ServiceResult() -{} - -CreateMyGroupsResult::CreateMyGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -CreateMyGroupsResult::~CreateMyGroupsResult() -{} - -void CreateMyGroupsResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["GroupId"].isNull()) - groupId_ = std::stol(value["GroupId"].asString()); - -} - -int CreateMyGroupsResult::getErrorCode()const -{ - return errorCode_; -} - -std::string CreateMyGroupsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool CreateMyGroupsResult::getSuccess()const -{ - return success_; -} - -long CreateMyGroupsResult::getGroupId()const -{ - return groupId_; -} - diff --git a/cms/src/model/CreateNotifyPolicyRequest.cc b/cms/src/model/CreateNotifyPolicyRequest.cc deleted file mode 100644 index 1f5b6e6da..000000000 --- a/cms/src/model/CreateNotifyPolicyRequest.cc +++ /dev/null @@ -1,104 +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 - -using AlibabaCloud::Cms::Model::CreateNotifyPolicyRequest; - -CreateNotifyPolicyRequest::CreateNotifyPolicyRequest() : - RpcServiceRequest("cms", "2018-03-08", "CreateNotifyPolicy") -{} - -CreateNotifyPolicyRequest::~CreateNotifyPolicyRequest() -{} - -std::string CreateNotifyPolicyRequest::getPolicyType()const -{ - return policyType_; -} - -void CreateNotifyPolicyRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setCoreParameter("PolicyType", policyType); -} - -std::string CreateNotifyPolicyRequest::getAlertName()const -{ - return alertName_; -} - -void CreateNotifyPolicyRequest::setAlertName(const std::string& alertName) -{ - alertName_ = alertName; - setCoreParameter("AlertName", alertName); -} - -std::string CreateNotifyPolicyRequest::getGroupId()const -{ - return groupId_; -} - -void CreateNotifyPolicyRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -long CreateNotifyPolicyRequest::getEndTime()const -{ - return endTime_; -} - -void CreateNotifyPolicyRequest::setEndTime(long endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", std::to_string(endTime)); -} - -long CreateNotifyPolicyRequest::getStartTime()const -{ - return startTime_; -} - -void CreateNotifyPolicyRequest::setStartTime(long startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", std::to_string(startTime)); -} - -std::string CreateNotifyPolicyRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void CreateNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string CreateNotifyPolicyRequest::getDimensions()const -{ - return dimensions_; -} - -void CreateNotifyPolicyRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - diff --git a/cms/src/model/CreateSiteMonitorRequest.cc b/cms/src/model/CreateSiteMonitorRequest.cc new file mode 100644 index 000000000..568847cb3 --- /dev/null +++ b/cms/src/model/CreateSiteMonitorRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::CreateSiteMonitorRequest; + +CreateSiteMonitorRequest::CreateSiteMonitorRequest() : + RpcServiceRequest("cms", "2019-01-01", "CreateSiteMonitor") +{ + setMethod(HttpRequest::Method::Post); +} + +CreateSiteMonitorRequest::~CreateSiteMonitorRequest() +{} + +std::string CreateSiteMonitorRequest::getAddress()const +{ + return address_; +} + +void CreateSiteMonitorRequest::setAddress(const std::string& address) +{ + address_ = address; + setCoreParameter("Address", address); +} + +std::string CreateSiteMonitorRequest::getTaskType()const +{ + return taskType_; +} + +void CreateSiteMonitorRequest::setTaskType(const std::string& taskType) +{ + taskType_ = taskType; + setCoreParameter("TaskType", taskType); +} + +std::string CreateSiteMonitorRequest::getTaskName()const +{ + return taskName_; +} + +void CreateSiteMonitorRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setCoreParameter("TaskName", taskName); +} + +std::string CreateSiteMonitorRequest::getIspCities()const +{ + return ispCities_; +} + +void CreateSiteMonitorRequest::setIspCities(const std::string& ispCities) +{ + ispCities_ = ispCities; + setCoreParameter("IspCities", ispCities); +} + +std::string CreateSiteMonitorRequest::getOptionsJson()const +{ + return optionsJson_; +} + +void CreateSiteMonitorRequest::setOptionsJson(const std::string& optionsJson) +{ + optionsJson_ = optionsJson; + setCoreParameter("OptionsJson", optionsJson); +} + +std::string CreateSiteMonitorRequest::getAlertIds()const +{ + return alertIds_; +} + +void CreateSiteMonitorRequest::setAlertIds(const std::string& alertIds) +{ + alertIds_ = alertIds; + setCoreParameter("AlertIds", alertIds); +} + +std::string CreateSiteMonitorRequest::getInterval()const +{ + return interval_; +} + +void CreateSiteMonitorRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + diff --git a/cms/src/model/CreateSiteMonitorResult.cc b/cms/src/model/CreateSiteMonitorResult.cc new file mode 100644 index 000000000..a015a49ce --- /dev/null +++ b/cms/src/model/CreateSiteMonitorResult.cc @@ -0,0 +1,94 @@ +/* + * 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; + +CreateSiteMonitorResult::CreateSiteMonitorResult() : + ServiceResult() +{} + +CreateSiteMonitorResult::CreateSiteMonitorResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +CreateSiteMonitorResult::~CreateSiteMonitorResult() +{} + +void CreateSiteMonitorResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + auto allAttachAlertResultNode = dataNode["AttachAlertResult"]["Contact"]; + for (auto dataNodeAttachAlertResultContact : allAttachAlertResultNode) + { + Data::Contact contactObject; + if(!dataNodeAttachAlertResultContact["Message"].isNull()) + contactObject.message = dataNodeAttachAlertResultContact["Message"].asString(); + if(!dataNodeAttachAlertResultContact["RequestId"].isNull()) + contactObject.requestId = dataNodeAttachAlertResultContact["RequestId"].asString(); + if(!dataNodeAttachAlertResultContact["Code"].isNull()) + contactObject.code = dataNodeAttachAlertResultContact["Code"].asString(); + if(!dataNodeAttachAlertResultContact["Success"].isNull()) + contactObject.success = dataNodeAttachAlertResultContact["Success"].asString(); + if(!dataNodeAttachAlertResultContact["RuleId"].isNull()) + contactObject.ruleId = dataNodeAttachAlertResultContact["RuleId"].asString(); + data_.attachAlertResult.push_back(contactObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + if(!value["AlertRule"].isNull()) + alertRule_ = value["AlertRule"].asString(); + +} + +std::string CreateSiteMonitorResult::getMessage()const +{ + return message_; +} + +CreateSiteMonitorResult::Data CreateSiteMonitorResult::getData()const +{ + return data_; +} + +std::string CreateSiteMonitorResult::getCode()const +{ + return code_; +} + +std::string CreateSiteMonitorResult::getSuccess()const +{ + return success_; +} + +std::string CreateSiteMonitorResult::getAlertRule()const +{ + return alertRule_; +} + diff --git a/cms/src/model/CreateTaskRequest.cc b/cms/src/model/CreateTaskRequest.cc deleted file mode 100644 index 1f2f61e68..000000000 --- a/cms/src/model/CreateTaskRequest.cc +++ /dev/null @@ -1,126 +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 - -using AlibabaCloud::Cms::Model::CreateTaskRequest; - -CreateTaskRequest::CreateTaskRequest() : - RpcServiceRequest("cms", "2018-03-08", "CreateTask") -{} - -CreateTaskRequest::~CreateTaskRequest() -{} - -std::string CreateTaskRequest::getTaskName()const -{ - return taskName_; -} - -void CreateTaskRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setCoreParameter("TaskName", taskName); -} - -std::string CreateTaskRequest::getAlertIds()const -{ - return alertIds_; -} - -void CreateTaskRequest::setAlertIds(const std::string& alertIds) -{ - alertIds_ = alertIds; - setCoreParameter("AlertIds", alertIds); -} - -std::string CreateTaskRequest::getOptions()const -{ - return options_; -} - -void CreateTaskRequest::setOptions(const std::string& options) -{ - options_ = options; - setCoreParameter("Options", options); -} - -std::string CreateTaskRequest::getAddress()const -{ - return address_; -} - -void CreateTaskRequest::setAddress(const std::string& address) -{ - address_ = address; - setCoreParameter("Address", address); -} - -std::string CreateTaskRequest::getTaskType()const -{ - return taskType_; -} - -void CreateTaskRequest::setTaskType(const std::string& taskType) -{ - taskType_ = taskType; - setCoreParameter("TaskType", taskType); -} - -std::string CreateTaskRequest::getCaller()const -{ - return caller_; -} - -void CreateTaskRequest::setCaller(const std::string& caller) -{ - caller_ = caller; - setCoreParameter("Caller", caller); -} - -std::string CreateTaskRequest::getIspCity()const -{ - return ispCity_; -} - -void CreateTaskRequest::setIspCity(const std::string& ispCity) -{ - ispCity_ = ispCity; - setCoreParameter("IspCity", ispCity); -} - -std::string CreateTaskRequest::getInterval()const -{ - return interval_; -} - -void CreateTaskRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setCoreParameter("Interval", interval); -} - -std::string CreateTaskRequest::getAlertRule()const -{ - return alertRule_; -} - -void CreateTaskRequest::setAlertRule(const std::string& alertRule) -{ - alertRule_ = alertRule; - setCoreParameter("AlertRule", alertRule); -} - diff --git a/cms/src/model/QueryCustomEventHistogramRequest.cc b/cms/src/model/DeleteContactGroupRequest.cc similarity index 50% rename from cms/src/model/QueryCustomEventHistogramRequest.cc rename to cms/src/model/DeleteContactGroupRequest.cc index 93a2682d3..15b53e749 100644 --- a/cms/src/model/QueryCustomEventHistogramRequest.cc +++ b/cms/src/model/DeleteContactGroupRequest.cc @@ -14,25 +14,27 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::QueryCustomEventHistogramRequest; +using AlibabaCloud::Cms::Model::DeleteContactGroupRequest; -QueryCustomEventHistogramRequest::QueryCustomEventHistogramRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryCustomEventHistogram") +DeleteContactGroupRequest::DeleteContactGroupRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteContactGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteContactGroupRequest::~DeleteContactGroupRequest() {} -QueryCustomEventHistogramRequest::~QueryCustomEventHistogramRequest() -{} - -std::string QueryCustomEventHistogramRequest::getQueryJson()const +std::string DeleteContactGroupRequest::getContactGroupName()const { - return queryJson_; + return contactGroupName_; } -void QueryCustomEventHistogramRequest::setQueryJson(const std::string& queryJson) +void DeleteContactGroupRequest::setContactGroupName(const std::string& contactGroupName) { - queryJson_ = queryJson; - setCoreParameter("QueryJson", queryJson); + contactGroupName_ = contactGroupName; + setCoreParameter("ContactGroupName", contactGroupName); } diff --git a/cms/src/model/DisableActiveAlertResult.cc b/cms/src/model/DeleteContactGroupResult.cc similarity index 72% rename from cms/src/model/DisableActiveAlertResult.cc rename to cms/src/model/DeleteContactGroupResult.cc index 6b6527819..e451a434c 100644 --- a/cms/src/model/DisableActiveAlertResult.cc +++ b/cms/src/model/DeleteContactGroupResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DisableActiveAlertResult::DisableActiveAlertResult() : +DeleteContactGroupResult::DeleteContactGroupResult() : ServiceResult() {} -DisableActiveAlertResult::DisableActiveAlertResult(const std::string &payload) : +DeleteContactGroupResult::DeleteContactGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -DisableActiveAlertResult::~DisableActiveAlertResult() +DeleteContactGroupResult::~DeleteContactGroupResult() {} -void DisableActiveAlertResult::parse(const std::string &payload) +void DeleteContactGroupResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void DisableActiveAlertResult::parse(const std::string &payload) } -std::string DisableActiveAlertResult::getMessage()const +std::string DeleteContactGroupResult::getMessage()const { return message_; } -std::string DisableActiveAlertResult::getCode()const +std::string DeleteContactGroupResult::getCode()const { return code_; } -bool DisableActiveAlertResult::getSuccess()const +bool DeleteContactGroupResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeContactRequest.cc b/cms/src/model/DeleteContactRequest.cc similarity index 62% rename from cms/src/model/DescribeContactRequest.cc rename to cms/src/model/DeleteContactRequest.cc index 20f3f99fd..1436ff6f9 100644 --- a/cms/src/model/DescribeContactRequest.cc +++ b/cms/src/model/DeleteContactRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DescribeContactRequest; +using AlibabaCloud::Cms::Model::DeleteContactRequest; -DescribeContactRequest::DescribeContactRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeContact") +DeleteContactRequest::DeleteContactRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteContact") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteContactRequest::~DeleteContactRequest() {} -DescribeContactRequest::~DescribeContactRequest() -{} - -std::string DescribeContactRequest::getContactName()const +std::string DeleteContactRequest::getContactName()const { return contactName_; } -void DescribeContactRequest::setContactName(const std::string& contactName) +void DeleteContactRequest::setContactName(const std::string& contactName) { contactName_ = contactName; setCoreParameter("ContactName", contactName); diff --git a/cms/src/model/DisableAlarmResult.cc b/cms/src/model/DeleteContactResult.cc similarity index 74% rename from cms/src/model/DisableAlarmResult.cc rename to cms/src/model/DeleteContactResult.cc index 94c5da643..4cc81d547 100644 --- a/cms/src/model/DisableAlarmResult.cc +++ b/cms/src/model/DeleteContactResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DisableAlarmResult::DisableAlarmResult() : +DeleteContactResult::DeleteContactResult() : ServiceResult() {} -DisableAlarmResult::DisableAlarmResult(const std::string &payload) : +DeleteContactResult::DeleteContactResult(const std::string &payload) : ServiceResult() { parse(payload); } -DisableAlarmResult::~DisableAlarmResult() +DeleteContactResult::~DeleteContactResult() {} -void DisableAlarmResult::parse(const std::string &payload) +void DeleteContactResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void DisableAlarmResult::parse(const std::string &payload) } -std::string DisableAlarmResult::getMessage()const +std::string DeleteContactResult::getMessage()const { return message_; } -std::string DisableAlarmResult::getCode()const +std::string DeleteContactResult::getCode()const { return code_; } -bool DisableAlarmResult::getSuccess()const +bool DeleteContactResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DeleteCustomMetricRequest.cc b/cms/src/model/DeleteCustomMetricRequest.cc index 3fc1c8da4..e6a2266a2 100644 --- a/cms/src/model/DeleteCustomMetricRequest.cc +++ b/cms/src/model/DeleteCustomMetricRequest.cc @@ -19,8 +19,10 @@ using AlibabaCloud::Cms::Model::DeleteCustomMetricRequest; DeleteCustomMetricRequest::DeleteCustomMetricRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteCustomMetric") -{} + RpcServiceRequest("cms", "2019-01-01", "DeleteCustomMetric") +{ + setMethod(HttpRequest::Method::Post); +} DeleteCustomMetricRequest::~DeleteCustomMetricRequest() {} diff --git a/cms/src/model/DeleteCustomMetricResult.cc b/cms/src/model/DeleteCustomMetricResult.cc index 026b533b2..68d76c51a 100644 --- a/cms/src/model/DeleteCustomMetricResult.cc +++ b/cms/src/model/DeleteCustomMetricResult.cc @@ -43,8 +43,6 @@ void DeleteCustomMetricResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Result"].isNull()) - result_ = value["Result"].asString(); } @@ -58,8 +56,3 @@ std::string DeleteCustomMetricResult::getCode()const return code_; } -std::string DeleteCustomMetricResult::getResult()const -{ - return result_; -} - diff --git a/cms/src/model/DeleteEventRuleRequest.cc b/cms/src/model/DeleteEventRuleRequest.cc deleted file mode 100644 index 47d2bc7a8..000000000 --- a/cms/src/model/DeleteEventRuleRequest.cc +++ /dev/null @@ -1,50 +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 - -using AlibabaCloud::Cms::Model::DeleteEventRuleRequest; - -DeleteEventRuleRequest::DeleteEventRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteEventRule") -{} - -DeleteEventRuleRequest::~DeleteEventRuleRequest() -{} - -std::string DeleteEventRuleRequest::getRuleName()const -{ - return ruleName_; -} - -void DeleteEventRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - -std::vector DeleteEventRuleRequest::getRuleNames()const -{ - return ruleNames_; -} - -void DeleteEventRuleRequest::setRuleNames(const std::vector& ruleNames) -{ - ruleNames_ = ruleNames; - for(int i = 0; i!= ruleNames.size(); i++) - setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); -} - diff --git a/cms/src/model/DeleteEventRuleTargetsRequest.cc b/cms/src/model/DeleteEventRuleTargetsRequest.cc new file mode 100644 index 000000000..621a153d6 --- /dev/null +++ b/cms/src/model/DeleteEventRuleTargetsRequest.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteEventRuleTargetsRequest; + +DeleteEventRuleTargetsRequest::DeleteEventRuleTargetsRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteEventRuleTargets") +{ + setMethod(HttpRequest::Method::Put); +} + +DeleteEventRuleTargetsRequest::~DeleteEventRuleTargetsRequest() +{} + +std::string DeleteEventRuleTargetsRequest::getRuleName()const +{ + return ruleName_; +} + +void DeleteEventRuleTargetsRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + +std::vector DeleteEventRuleTargetsRequest::getIds()const +{ + return ids_; +} + +void DeleteEventRuleTargetsRequest::setIds(const std::vector& ids) +{ + ids_ = ids; + for(int dep1 = 0; dep1!= ids.size(); dep1++) { + setCoreParameter("Ids."+ std::to_string(dep1), ids.at(dep1)); + } +} + diff --git a/cms/src/model/DeleteEventRuleTargetsResult.cc b/cms/src/model/DeleteEventRuleTargetsResult.cc new file mode 100644 index 000000000..1409bc78a --- /dev/null +++ b/cms/src/model/DeleteEventRuleTargetsResult.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; + +DeleteEventRuleTargetsResult::DeleteEventRuleTargetsResult() : + ServiceResult() +{} + +DeleteEventRuleTargetsResult::DeleteEventRuleTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteEventRuleTargetsResult::~DeleteEventRuleTargetsResult() +{} + +void DeleteEventRuleTargetsResult::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 DeleteEventRuleTargetsResult::getMessage()const +{ + return message_; +} + +std::string DeleteEventRuleTargetsResult::getCode()const +{ + return code_; +} + +bool DeleteEventRuleTargetsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteEventRulesRequest.cc b/cms/src/model/DeleteEventRulesRequest.cc new file mode 100644 index 000000000..abc3f8f0a --- /dev/null +++ b/cms/src/model/DeleteEventRulesRequest.cc @@ -0,0 +1,42 @@ +/* + * 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::DeleteEventRulesRequest; + +DeleteEventRulesRequest::DeleteEventRulesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteEventRules") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteEventRulesRequest::~DeleteEventRulesRequest() +{} + +std::vector DeleteEventRulesRequest::getRuleNames()const +{ + return ruleNames_; +} + +void DeleteEventRulesRequest::setRuleNames(const std::vector& ruleNames) +{ + ruleNames_ = ruleNames; + for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) { + setCoreParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1)); + } +} + diff --git a/cms/src/model/DisableEventRuleResult.cc b/cms/src/model/DeleteEventRulesResult.cc similarity index 73% rename from cms/src/model/DisableEventRuleResult.cc rename to cms/src/model/DeleteEventRulesResult.cc index 2e2e11ecc..de7ca41e2 100644 --- a/cms/src/model/DisableEventRuleResult.cc +++ b/cms/src/model/DeleteEventRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DisableEventRuleResult::DisableEventRuleResult() : +DeleteEventRulesResult::DeleteEventRulesResult() : ServiceResult() {} -DisableEventRuleResult::DisableEventRuleResult(const std::string &payload) : +DeleteEventRulesResult::DeleteEventRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -DisableEventRuleResult::~DisableEventRuleResult() +DeleteEventRulesResult::~DeleteEventRulesResult() {} -void DisableEventRuleResult::parse(const std::string &payload) +void DeleteEventRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void DisableEventRuleResult::parse(const std::string &payload) } -std::string DisableEventRuleResult::getMessage()const +std::string DeleteEventRulesResult::getMessage()const { return message_; } -std::string DisableEventRuleResult::getCode()const +std::string DeleteEventRulesResult::getCode()const { return code_; } -bool DisableEventRuleResult::getSuccess()const +bool DeleteEventRulesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DeleteEventTargetsRequest.cc b/cms/src/model/DeleteEventTargetsRequest.cc deleted file mode 100644 index 7df3b0c74..000000000 --- a/cms/src/model/DeleteEventTargetsRequest.cc +++ /dev/null @@ -1,50 +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 - -using AlibabaCloud::Cms::Model::DeleteEventTargetsRequest; - -DeleteEventTargetsRequest::DeleteEventTargetsRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteEventTargets") -{} - -DeleteEventTargetsRequest::~DeleteEventTargetsRequest() -{} - -std::string DeleteEventTargetsRequest::getRuleName()const -{ - return ruleName_; -} - -void DeleteEventTargetsRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - -std::vector DeleteEventTargetsRequest::getIds()const -{ - return ids_; -} - -void DeleteEventTargetsRequest::setIds(const std::vector& ids) -{ - ids_ = ids; - for(int i = 0; i!= ids.size(); i++) - setCoreParameter("Ids."+ std::to_string(i), ids.at(i)); -} - diff --git a/cms/src/model/DeleteGroupDynamicRuleResult.cc b/cms/src/model/DeleteGroupDynamicRuleResult.cc deleted file mode 100644 index 1d99e7bd9..000000000 --- a/cms/src/model/DeleteGroupDynamicRuleResult.cc +++ /dev/null @@ -1,65 +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; - -DeleteGroupDynamicRuleResult::DeleteGroupDynamicRuleResult() : - ServiceResult() -{} - -DeleteGroupDynamicRuleResult::DeleteGroupDynamicRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteGroupDynamicRuleResult::~DeleteGroupDynamicRuleResult() -{} - -void DeleteGroupDynamicRuleResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -int DeleteGroupDynamicRuleResult::getErrorCode()const -{ - return errorCode_; -} - -std::string DeleteGroupDynamicRuleResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool DeleteGroupDynamicRuleResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DeleteGroupMonitoringAgentProcessRequest.cc b/cms/src/model/DeleteGroupMonitoringAgentProcessRequest.cc new file mode 100644 index 000000000..8b3f7c669 --- /dev/null +++ b/cms/src/model/DeleteGroupMonitoringAgentProcessRequest.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::DeleteGroupMonitoringAgentProcessRequest; + +DeleteGroupMonitoringAgentProcessRequest::DeleteGroupMonitoringAgentProcessRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteGroupMonitoringAgentProcess") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteGroupMonitoringAgentProcessRequest::~DeleteGroupMonitoringAgentProcessRequest() +{} + +std::string DeleteGroupMonitoringAgentProcessRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DeleteGroupMonitoringAgentProcessRequest::getId()const +{ + return id_; +} + +void DeleteGroupMonitoringAgentProcessRequest::setId(const std::string& id) +{ + id_ = id; + setCoreParameter("Id", id); +} + diff --git a/cms/src/model/DeleteGroupMonitoringAgentProcessResult.cc b/cms/src/model/DeleteGroupMonitoringAgentProcessResult.cc new file mode 100644 index 000000000..08c362da9 --- /dev/null +++ b/cms/src/model/DeleteGroupMonitoringAgentProcessResult.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; + +DeleteGroupMonitoringAgentProcessResult::DeleteGroupMonitoringAgentProcessResult() : + ServiceResult() +{} + +DeleteGroupMonitoringAgentProcessResult::DeleteGroupMonitoringAgentProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteGroupMonitoringAgentProcessResult::~DeleteGroupMonitoringAgentProcessResult() +{} + +void DeleteGroupMonitoringAgentProcessResult::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 DeleteGroupMonitoringAgentProcessResult::getMessage()const +{ + return message_; +} + +std::string DeleteGroupMonitoringAgentProcessResult::getCode()const +{ + return code_; +} + +bool DeleteGroupMonitoringAgentProcessResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteHostAvailabilityRequest.cc b/cms/src/model/DeleteHostAvailabilityRequest.cc new file mode 100644 index 000000000..448813a62 --- /dev/null +++ b/cms/src/model/DeleteHostAvailabilityRequest.cc @@ -0,0 +1,42 @@ +/* + * 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::DeleteHostAvailabilityRequest; + +DeleteHostAvailabilityRequest::DeleteHostAvailabilityRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteHostAvailability") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteHostAvailabilityRequest::~DeleteHostAvailabilityRequest() +{} + +std::vector DeleteHostAvailabilityRequest::getId()const +{ + return id_; +} + +void DeleteHostAvailabilityRequest::setId(const std::vector& id) +{ + id_ = id; + for(int dep1 = 0; dep1!= id.size(); dep1++) { + setCoreParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1))); + } +} + diff --git a/cms/src/model/DeleteHostAvailabilityResult.cc b/cms/src/model/DeleteHostAvailabilityResult.cc new file mode 100644 index 000000000..5387a67ae --- /dev/null +++ b/cms/src/model/DeleteHostAvailabilityResult.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; + +DeleteHostAvailabilityResult::DeleteHostAvailabilityResult() : + ServiceResult() +{} + +DeleteHostAvailabilityResult::DeleteHostAvailabilityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteHostAvailabilityResult::~DeleteHostAvailabilityResult() +{} + +void DeleteHostAvailabilityResult::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 DeleteHostAvailabilityResult::getMessage()const +{ + return message_; +} + +std::string DeleteHostAvailabilityResult::getCode()const +{ + return code_; +} + +bool DeleteHostAvailabilityResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteMetricRuleResourcesRequest.cc b/cms/src/model/DeleteMetricRuleResourcesRequest.cc new file mode 100644 index 000000000..3b3bd47f1 --- /dev/null +++ b/cms/src/model/DeleteMetricRuleResourcesRequest.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::DeleteMetricRuleResourcesRequest; + +DeleteMetricRuleResourcesRequest::DeleteMetricRuleResourcesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleResources") +{ + setMethod(HttpRequest::Method::Put); +} + +DeleteMetricRuleResourcesRequest::~DeleteMetricRuleResourcesRequest() +{} + +std::string DeleteMetricRuleResourcesRequest::getResources()const +{ + return resources_; +} + +void DeleteMetricRuleResourcesRequest::setResources(const std::string& resources) +{ + resources_ = resources; + setCoreParameter("Resources", resources); +} + +std::string DeleteMetricRuleResourcesRequest::getRuleId()const +{ + return ruleId_; +} + +void DeleteMetricRuleResourcesRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", ruleId); +} + diff --git a/cms/src/model/DeleteMetricRuleResourcesResult.cc b/cms/src/model/DeleteMetricRuleResourcesResult.cc new file mode 100644 index 000000000..90593aa9b --- /dev/null +++ b/cms/src/model/DeleteMetricRuleResourcesResult.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; + +DeleteMetricRuleResourcesResult::DeleteMetricRuleResourcesResult() : + ServiceResult() +{} + +DeleteMetricRuleResourcesResult::DeleteMetricRuleResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMetricRuleResourcesResult::~DeleteMetricRuleResourcesResult() +{} + +void DeleteMetricRuleResourcesResult::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 DeleteMetricRuleResourcesResult::getMessage()const +{ + return message_; +} + +std::string DeleteMetricRuleResourcesResult::getCode()const +{ + return code_; +} + +bool DeleteMetricRuleResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteMetricRuleTargetsRequest.cc b/cms/src/model/DeleteMetricRuleTargetsRequest.cc new file mode 100644 index 000000000..f89f269b5 --- /dev/null +++ b/cms/src/model/DeleteMetricRuleTargetsRequest.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMetricRuleTargetsRequest; + +DeleteMetricRuleTargetsRequest::DeleteMetricRuleTargetsRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleTargets") +{ + setMethod(HttpRequest::Method::Put); +} + +DeleteMetricRuleTargetsRequest::~DeleteMetricRuleTargetsRequest() +{} + +std::vector DeleteMetricRuleTargetsRequest::getTargetIds()const +{ + return targetIds_; +} + +void DeleteMetricRuleTargetsRequest::setTargetIds(const std::vector& targetIds) +{ + targetIds_ = targetIds; + for(int dep1 = 0; dep1!= targetIds.size(); dep1++) { + setCoreParameter("TargetIds."+ std::to_string(dep1), targetIds.at(dep1)); + } +} + +std::string DeleteMetricRuleTargetsRequest::getRuleId()const +{ + return ruleId_; +} + +void DeleteMetricRuleTargetsRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", ruleId); +} + diff --git a/cms/src/model/RemoveMetricRuleTargetsResult.cc b/cms/src/model/DeleteMetricRuleTargetsResult.cc similarity index 72% rename from cms/src/model/RemoveMetricRuleTargetsResult.cc rename to cms/src/model/DeleteMetricRuleTargetsResult.cc index 1d133f5e5..852a8bc95 100644 --- a/cms/src/model/RemoveMetricRuleTargetsResult.cc +++ b/cms/src/model/DeleteMetricRuleTargetsResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -RemoveMetricRuleTargetsResult::RemoveMetricRuleTargetsResult() : +DeleteMetricRuleTargetsResult::DeleteMetricRuleTargetsResult() : ServiceResult() {} -RemoveMetricRuleTargetsResult::RemoveMetricRuleTargetsResult(const std::string &payload) : +DeleteMetricRuleTargetsResult::DeleteMetricRuleTargetsResult(const std::string &payload) : ServiceResult() { parse(payload); } -RemoveMetricRuleTargetsResult::~RemoveMetricRuleTargetsResult() +DeleteMetricRuleTargetsResult::~DeleteMetricRuleTargetsResult() {} -void RemoveMetricRuleTargetsResult::parse(const std::string &payload) +void DeleteMetricRuleTargetsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -52,22 +52,22 @@ void RemoveMetricRuleTargetsResult::parse(const std::string &payload) } -std::string RemoveMetricRuleTargetsResult::getMessage()const +std::string DeleteMetricRuleTargetsResult::getMessage()const { return message_; } -std::string RemoveMetricRuleTargetsResult::getCode()const +std::string DeleteMetricRuleTargetsResult::getCode()const { return code_; } -RemoveMetricRuleTargetsResult::FailIds RemoveMetricRuleTargetsResult::getFailIds()const +DeleteMetricRuleTargetsResult::FailIds DeleteMetricRuleTargetsResult::getFailIds()const { return failIds_; } -bool RemoveMetricRuleTargetsResult::getSuccess()const +bool DeleteMetricRuleTargetsResult::getSuccess()const { return success_; } diff --git a/cms/src/model/ListProductOfActiveAlertRequest.cc b/cms/src/model/DeleteMetricRuleTemplateRequest.cc similarity index 51% rename from cms/src/model/ListProductOfActiveAlertRequest.cc rename to cms/src/model/DeleteMetricRuleTemplateRequest.cc index 31e73073c..3c4e0900b 100644 --- a/cms/src/model/ListProductOfActiveAlertRequest.cc +++ b/cms/src/model/DeleteMetricRuleTemplateRequest.cc @@ -14,25 +14,27 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::ListProductOfActiveAlertRequest; +using AlibabaCloud::Cms::Model::DeleteMetricRuleTemplateRequest; -ListProductOfActiveAlertRequest::ListProductOfActiveAlertRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListProductOfActiveAlert") +DeleteMetricRuleTemplateRequest::DeleteMetricRuleTemplateRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRuleTemplate") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteMetricRuleTemplateRequest::~DeleteMetricRuleTemplateRequest() {} -ListProductOfActiveAlertRequest::~ListProductOfActiveAlertRequest() -{} - -std::string ListProductOfActiveAlertRequest::getUserId()const +std::string DeleteMetricRuleTemplateRequest::getTemplateId()const { - return userId_; + return templateId_; } -void ListProductOfActiveAlertRequest::setUserId(const std::string& userId) +void DeleteMetricRuleTemplateRequest::setTemplateId(const std::string& templateId) { - userId_ = userId; - setCoreParameter("UserId", userId); + templateId_ = templateId; + setCoreParameter("TemplateId", templateId); } diff --git a/cms/src/model/DeleteMetricRuleTemplateResult.cc b/cms/src/model/DeleteMetricRuleTemplateResult.cc new file mode 100644 index 000000000..df5df1d09 --- /dev/null +++ b/cms/src/model/DeleteMetricRuleTemplateResult.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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DeleteMetricRuleTemplateResult::DeleteMetricRuleTemplateResult() : + ServiceResult() +{} + +DeleteMetricRuleTemplateResult::DeleteMetricRuleTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMetricRuleTemplateResult::~DeleteMetricRuleTemplateResult() +{} + +void DeleteMetricRuleTemplateResult::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["TemplateId"].isNull()) + resource_.templateId = resourceNode["TemplateId"].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(); + +} + +std::string DeleteMetricRuleTemplateResult::getMessage()const +{ + return message_; +} + +DeleteMetricRuleTemplateResult::Resource DeleteMetricRuleTemplateResult::getResource()const +{ + return resource_; +} + +int DeleteMetricRuleTemplateResult::getCode()const +{ + return code_; +} + +bool DeleteMetricRuleTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteMonitoringTemplateRequest.cc b/cms/src/model/DeleteMetricRulesRequest.cc similarity index 52% rename from cms/src/model/DeleteMonitoringTemplateRequest.cc rename to cms/src/model/DeleteMetricRulesRequest.cc index 34b93acf8..88d22647b 100644 --- a/cms/src/model/DeleteMonitoringTemplateRequest.cc +++ b/cms/src/model/DeleteMetricRulesRequest.cc @@ -14,25 +14,29 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DeleteMonitoringTemplateRequest; +using AlibabaCloud::Cms::Model::DeleteMetricRulesRequest; -DeleteMonitoringTemplateRequest::DeleteMonitoringTemplateRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteMonitoringTemplate") +DeleteMetricRulesRequest::DeleteMetricRulesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteMetricRules") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteMetricRulesRequest::~DeleteMetricRulesRequest() {} -DeleteMonitoringTemplateRequest::~DeleteMonitoringTemplateRequest() -{} - -std::string DeleteMonitoringTemplateRequest::getId()const +std::vector DeleteMetricRulesRequest::getId()const { return id_; } -void DeleteMonitoringTemplateRequest::setId(const std::string& id) +void DeleteMetricRulesRequest::setId(const std::vector& id) { id_ = id; - setCoreParameter("Id", id); + for(int dep1 = 0; dep1!= id.size(); dep1++) { + setCoreParameter("Id."+ std::to_string(dep1), id.at(dep1)); + } } diff --git a/cms/src/model/EnableActiveAlertResult.cc b/cms/src/model/DeleteMetricRulesResult.cc similarity index 73% rename from cms/src/model/EnableActiveAlertResult.cc rename to cms/src/model/DeleteMetricRulesResult.cc index cd7c2417b..2316927b3 100644 --- a/cms/src/model/EnableActiveAlertResult.cc +++ b/cms/src/model/DeleteMetricRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -EnableActiveAlertResult::EnableActiveAlertResult() : +DeleteMetricRulesResult::DeleteMetricRulesResult() : ServiceResult() {} -EnableActiveAlertResult::EnableActiveAlertResult(const std::string &payload) : +DeleteMetricRulesResult::DeleteMetricRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -EnableActiveAlertResult::~EnableActiveAlertResult() +DeleteMetricRulesResult::~DeleteMetricRulesResult() {} -void EnableActiveAlertResult::parse(const std::string &payload) +void DeleteMetricRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void EnableActiveAlertResult::parse(const std::string &payload) } -std::string EnableActiveAlertResult::getMessage()const +std::string DeleteMetricRulesResult::getMessage()const { return message_; } -std::string EnableActiveAlertResult::getCode()const +std::string DeleteMetricRulesResult::getCode()const { return code_; } -bool EnableActiveAlertResult::getSuccess()const +bool DeleteMetricRulesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DeleteGroupDynamicRuleRequest.cc b/cms/src/model/DeleteMonitorGroupDynamicRuleRequest.cc similarity index 53% rename from cms/src/model/DeleteGroupDynamicRuleRequest.cc rename to cms/src/model/DeleteMonitorGroupDynamicRuleRequest.cc index 73417128f..4b0b6b948 100644 --- a/cms/src/model/DeleteGroupDynamicRuleRequest.cc +++ b/cms/src/model/DeleteMonitorGroupDynamicRuleRequest.cc @@ -14,34 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DeleteGroupDynamicRuleRequest; +using AlibabaCloud::Cms::Model::DeleteMonitorGroupDynamicRuleRequest; -DeleteGroupDynamicRuleRequest::DeleteGroupDynamicRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteGroupDynamicRule") +DeleteMonitorGroupDynamicRuleRequest::DeleteMonitorGroupDynamicRuleRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupDynamicRule") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteMonitorGroupDynamicRuleRequest::~DeleteMonitorGroupDynamicRuleRequest() {} -DeleteGroupDynamicRuleRequest::~DeleteGroupDynamicRuleRequest() -{} - -long DeleteGroupDynamicRuleRequest::getGroupId()const +long DeleteMonitorGroupDynamicRuleRequest::getGroupId()const { return groupId_; } -void DeleteGroupDynamicRuleRequest::setGroupId(long groupId) +void DeleteMonitorGroupDynamicRuleRequest::setGroupId(long groupId) { groupId_ = groupId; setCoreParameter("GroupId", std::to_string(groupId)); } -std::string DeleteGroupDynamicRuleRequest::getCategory()const +std::string DeleteMonitorGroupDynamicRuleRequest::getCategory()const { return category_; } -void DeleteGroupDynamicRuleRequest::setCategory(const std::string& category) +void DeleteMonitorGroupDynamicRuleRequest::setCategory(const std::string& category) { category_ = category; setCoreParameter("Category", category); diff --git a/cms/src/model/DeleteMonitorGroupDynamicRuleResult.cc b/cms/src/model/DeleteMonitorGroupDynamicRuleResult.cc new file mode 100644 index 000000000..82c753017 --- /dev/null +++ b/cms/src/model/DeleteMonitorGroupDynamicRuleResult.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; + +DeleteMonitorGroupDynamicRuleResult::DeleteMonitorGroupDynamicRuleResult() : + ServiceResult() +{} + +DeleteMonitorGroupDynamicRuleResult::DeleteMonitorGroupDynamicRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMonitorGroupDynamicRuleResult::~DeleteMonitorGroupDynamicRuleResult() +{} + +void DeleteMonitorGroupDynamicRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteMonitorGroupDynamicRuleResult::getMessage()const +{ + return message_; +} + +int DeleteMonitorGroupDynamicRuleResult::getCode()const +{ + return code_; +} + +bool DeleteMonitorGroupDynamicRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteMonitorGroupInstancesRequest.cc b/cms/src/model/DeleteMonitorGroupInstancesRequest.cc new file mode 100644 index 000000000..6eccd32b9 --- /dev/null +++ b/cms/src/model/DeleteMonitorGroupInstancesRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMonitorGroupInstancesRequest; + +DeleteMonitorGroupInstancesRequest::DeleteMonitorGroupInstancesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupInstances") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteMonitorGroupInstancesRequest::~DeleteMonitorGroupInstancesRequest() +{} + +long DeleteMonitorGroupInstancesRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteMonitorGroupInstancesRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + +std::string DeleteMonitorGroupInstancesRequest::getInstanceIdList()const +{ + return instanceIdList_; +} + +void DeleteMonitorGroupInstancesRequest::setInstanceIdList(const std::string& instanceIdList) +{ + instanceIdList_ = instanceIdList; + setCoreParameter("InstanceIdList", instanceIdList); +} + +std::string DeleteMonitorGroupInstancesRequest::getCategory()const +{ + return category_; +} + +void DeleteMonitorGroupInstancesRequest::setCategory(const std::string& category) +{ + category_ = category; + setCoreParameter("Category", category); +} + diff --git a/cms/src/model/DeleteMonitorGroupInstancesResult.cc b/cms/src/model/DeleteMonitorGroupInstancesResult.cc new file mode 100644 index 000000000..6ab6b29f2 --- /dev/null +++ b/cms/src/model/DeleteMonitorGroupInstancesResult.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; + +DeleteMonitorGroupInstancesResult::DeleteMonitorGroupInstancesResult() : + ServiceResult() +{} + +DeleteMonitorGroupInstancesResult::DeleteMonitorGroupInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMonitorGroupInstancesResult::~DeleteMonitorGroupInstancesResult() +{} + +void DeleteMonitorGroupInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string DeleteMonitorGroupInstancesResult::getMessage()const +{ + return message_; +} + +int DeleteMonitorGroupInstancesResult::getCode()const +{ + return code_; +} + +bool DeleteMonitorGroupInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteMonitorGroupNotifyPolicyRequest.cc b/cms/src/model/DeleteMonitorGroupNotifyPolicyRequest.cc new file mode 100644 index 000000000..e06ce98c7 --- /dev/null +++ b/cms/src/model/DeleteMonitorGroupNotifyPolicyRequest.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::DeleteMonitorGroupNotifyPolicyRequest; + +DeleteMonitorGroupNotifyPolicyRequest::DeleteMonitorGroupNotifyPolicyRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroupNotifyPolicy") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteMonitorGroupNotifyPolicyRequest::~DeleteMonitorGroupNotifyPolicyRequest() +{} + +std::string DeleteMonitorGroupNotifyPolicyRequest::getPolicyType()const +{ + return policyType_; +} + +void DeleteMonitorGroupNotifyPolicyRequest::setPolicyType(const std::string& policyType) +{ + policyType_ = policyType; + setCoreParameter("PolicyType", policyType); +} + +std::string DeleteMonitorGroupNotifyPolicyRequest::getGroupId()const +{ + return groupId_; +} + +void DeleteMonitorGroupNotifyPolicyRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + diff --git a/cms/src/model/DeleteNotifyPolicyResult.cc b/cms/src/model/DeleteMonitorGroupNotifyPolicyResult.cc similarity index 66% rename from cms/src/model/DeleteNotifyPolicyResult.cc rename to cms/src/model/DeleteMonitorGroupNotifyPolicyResult.cc index 31d4b36a9..a419baddc 100644 --- a/cms/src/model/DeleteNotifyPolicyResult.cc +++ b/cms/src/model/DeleteMonitorGroupNotifyPolicyResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DeleteNotifyPolicyResult::DeleteNotifyPolicyResult() : +DeleteMonitorGroupNotifyPolicyResult::DeleteMonitorGroupNotifyPolicyResult() : ServiceResult() {} -DeleteNotifyPolicyResult::DeleteNotifyPolicyResult(const std::string &payload) : +DeleteMonitorGroupNotifyPolicyResult::DeleteMonitorGroupNotifyPolicyResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteNotifyPolicyResult::~DeleteNotifyPolicyResult() +DeleteMonitorGroupNotifyPolicyResult::~DeleteMonitorGroupNotifyPolicyResult() {} -void DeleteNotifyPolicyResult::parse(const std::string &payload) +void DeleteMonitorGroupNotifyPolicyResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -50,22 +50,22 @@ void DeleteNotifyPolicyResult::parse(const std::string &payload) } -std::string DeleteNotifyPolicyResult::getMessage()const +std::string DeleteMonitorGroupNotifyPolicyResult::getMessage()const { return message_; } -std::string DeleteNotifyPolicyResult::getCode()const +std::string DeleteMonitorGroupNotifyPolicyResult::getCode()const { return code_; } -std::string DeleteNotifyPolicyResult::getSuccess()const +std::string DeleteMonitorGroupNotifyPolicyResult::getSuccess()const { return success_; } -int DeleteNotifyPolicyResult::getResult()const +int DeleteMonitorGroupNotifyPolicyResult::getResult()const { return result_; } diff --git a/cms/src/model/DeleteMyGroupsRequest.cc b/cms/src/model/DeleteMonitorGroupRequest.cc similarity index 61% rename from cms/src/model/DeleteMyGroupsRequest.cc rename to cms/src/model/DeleteMonitorGroupRequest.cc index 1bf2c0dc5..735e6d333 100644 --- a/cms/src/model/DeleteMyGroupsRequest.cc +++ b/cms/src/model/DeleteMonitorGroupRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DeleteMyGroupsRequest; +using AlibabaCloud::Cms::Model::DeleteMonitorGroupRequest; -DeleteMyGroupsRequest::DeleteMyGroupsRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteMyGroups") +DeleteMonitorGroupRequest::DeleteMonitorGroupRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteMonitorGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteMonitorGroupRequest::~DeleteMonitorGroupRequest() {} -DeleteMyGroupsRequest::~DeleteMyGroupsRequest() -{} - -long DeleteMyGroupsRequest::getGroupId()const +long DeleteMonitorGroupRequest::getGroupId()const { return groupId_; } -void DeleteMyGroupsRequest::setGroupId(long groupId) +void DeleteMonitorGroupRequest::setGroupId(long groupId) { groupId_ = groupId; setCoreParameter("GroupId", std::to_string(groupId)); diff --git a/cms/src/model/GetMyGroupsResult.cc b/cms/src/model/DeleteMonitorGroupResult.cc similarity index 59% rename from cms/src/model/GetMyGroupsResult.cc rename to cms/src/model/DeleteMonitorGroupResult.cc index cf5b37414..ce3182d3c 100644 --- a/cms/src/model/GetMyGroupsResult.cc +++ b/cms/src/model/DeleteMonitorGroupResult.cc @@ -14,42 +14,34 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -GetMyGroupsResult::GetMyGroupsResult() : +DeleteMonitorGroupResult::DeleteMonitorGroupResult() : ServiceResult() {} -GetMyGroupsResult::GetMyGroupsResult(const std::string &payload) : +DeleteMonitorGroupResult::DeleteMonitorGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -GetMyGroupsResult::~GetMyGroupsResult() +DeleteMonitorGroupResult::~DeleteMonitorGroupResult() {} -void GetMyGroupsResult::parse(const std::string &payload) +void DeleteMonitorGroupResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); auto groupNode = value["Group"]; - if(!groupNode["GroupId"].isNull()) - group_.groupId = std::stol(groupNode["GroupId"].asString()); if(!groupNode["GroupName"].isNull()) group_.groupName = groupNode["GroupName"].asString(); - if(!groupNode["ServiceId"].isNull()) - group_.serviceId = std::stol(groupNode["ServiceId"].asString()); - if(!groupNode["BindUrl"].isNull()) - group_.bindUrl = groupNode["BindUrl"].asString(); - if(!groupNode["Type"].isNull()) - group_.type = groupNode["Type"].asString(); auto allContactGroupsNode = groupNode["ContactGroups"]["ContactGroup"]; for (auto groupNodeContactGroupsContactGroup : allContactGroupsNode) { @@ -60,29 +52,29 @@ void GetMyGroupsResult::parse(const std::string &payload) } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); } -GetMyGroupsResult::Group GetMyGroupsResult::getGroup()const +DeleteMonitorGroupResult::Group DeleteMonitorGroupResult::getGroup()const { return group_; } -int GetMyGroupsResult::getErrorCode()const +std::string DeleteMonitorGroupResult::getMessage()const { - return errorCode_; + return message_; } -std::string GetMyGroupsResult::getErrorMessage()const +int DeleteMonitorGroupResult::getCode()const { - return errorMessage_; + return code_; } -bool GetMyGroupsResult::getSuccess()const +bool DeleteMonitorGroupResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DeleteMonitoringAgentProcessRequest.cc b/cms/src/model/DeleteMonitoringAgentProcessRequest.cc new file mode 100644 index 000000000..7df0ef20d --- /dev/null +++ b/cms/src/model/DeleteMonitoringAgentProcessRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DeleteMonitoringAgentProcessRequest; + +DeleteMonitoringAgentProcessRequest::DeleteMonitoringAgentProcessRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteMonitoringAgentProcess") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteMonitoringAgentProcessRequest::~DeleteMonitoringAgentProcessRequest() +{} + +std::string DeleteMonitoringAgentProcessRequest::getProcessName()const +{ + return processName_; +} + +void DeleteMonitoringAgentProcessRequest::setProcessName(const std::string& processName) +{ + processName_ = processName; + setCoreParameter("ProcessName", processName); +} + +std::string DeleteMonitoringAgentProcessRequest::getInstanceId()const +{ + return instanceId_; +} + +void DeleteMonitoringAgentProcessRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +std::string DeleteMonitoringAgentProcessRequest::getProcessId()const +{ + return processId_; +} + +void DeleteMonitoringAgentProcessRequest::setProcessId(const std::string& processId) +{ + processId_ = processId; + setCoreParameter("ProcessId", processId); +} + diff --git a/cms/src/model/DeleteMonitoringAgentProcessResult.cc b/cms/src/model/DeleteMonitoringAgentProcessResult.cc new file mode 100644 index 000000000..b3fe3e816 --- /dev/null +++ b/cms/src/model/DeleteMonitoringAgentProcessResult.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; + +DeleteMonitoringAgentProcessResult::DeleteMonitoringAgentProcessResult() : + ServiceResult() +{} + +DeleteMonitoringAgentProcessResult::DeleteMonitoringAgentProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DeleteMonitoringAgentProcessResult::~DeleteMonitoringAgentProcessResult() +{} + +void DeleteMonitoringAgentProcessResult::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 DeleteMonitoringAgentProcessResult::getMessage()const +{ + return message_; +} + +std::string DeleteMonitoringAgentProcessResult::getCode()const +{ + return code_; +} + +bool DeleteMonitoringAgentProcessResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteMonitoringTemplateResult.cc b/cms/src/model/DeleteMonitoringTemplateResult.cc deleted file mode 100644 index 59ee61061..000000000 --- a/cms/src/model/DeleteMonitoringTemplateResult.cc +++ /dev/null @@ -1,85 +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; - -DeleteMonitoringTemplateResult::DeleteMonitoringTemplateResult() : - ServiceResult() -{} - -DeleteMonitoringTemplateResult::DeleteMonitoringTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteMonitoringTemplateResult::~DeleteMonitoringTemplateResult() -{} - -void DeleteMonitoringTemplateResult::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["Id"].isNull()) - resource_.id = resourceNode["Id"].asString(); - if(!resourceNode["RestVersion"].isNull()) - resource_.restVersion = resourceNode["RestVersion"].asString(); - if(!resourceNode["Namespace"].isNull()) - resource_._namespace = resourceNode["Namespace"].asString(); - if(!resourceNode["Description"].isNull()) - resource_.description = resourceNode["Description"].asString(); - if(!resourceNode["AlertTemplatesJson"].isNull()) - resource_.alertTemplatesJson = resourceNode["AlertTemplatesJson"].asString(); - if(!resourceNode["EventRuleTemplatesJson"].isNull()) - resource_.eventRuleTemplatesJson = resourceNode["EventRuleTemplatesJson"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -DeleteMonitoringTemplateResult::Resource DeleteMonitoringTemplateResult::getResource()const -{ - return resource_; -} - -int DeleteMonitoringTemplateResult::getErrorCode()const -{ - return errorCode_; -} - -std::string DeleteMonitoringTemplateResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool DeleteMonitoringTemplateResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DeleteMyGroupInstancesRequest.cc b/cms/src/model/DeleteMyGroupInstancesRequest.cc deleted file mode 100644 index a6ed34b12..000000000 --- a/cms/src/model/DeleteMyGroupInstancesRequest.cc +++ /dev/null @@ -1,71 +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 - -using AlibabaCloud::Cms::Model::DeleteMyGroupInstancesRequest; - -DeleteMyGroupInstancesRequest::DeleteMyGroupInstancesRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteMyGroupInstances") -{} - -DeleteMyGroupInstancesRequest::~DeleteMyGroupInstancesRequest() -{} - -long DeleteMyGroupInstancesRequest::getGroupId()const -{ - return groupId_; -} - -void DeleteMyGroupInstancesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -std::string DeleteMyGroupInstancesRequest::getInstanceIds()const -{ - return instanceIds_; -} - -void DeleteMyGroupInstancesRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setCoreParameter("InstanceIds", instanceIds); -} - -std::string DeleteMyGroupInstancesRequest::getInstanceIdList()const -{ - return instanceIdList_; -} - -void DeleteMyGroupInstancesRequest::setInstanceIdList(const std::string& instanceIdList) -{ - instanceIdList_ = instanceIdList; - setCoreParameter("InstanceIdList", instanceIdList); -} - -std::string DeleteMyGroupInstancesRequest::getCategory()const -{ - return category_; -} - -void DeleteMyGroupInstancesRequest::setCategory(const std::string& category) -{ - category_ = category; - setCoreParameter("Category", category); -} - diff --git a/cms/src/model/DeleteMyGroupInstancesResult.cc b/cms/src/model/DeleteMyGroupInstancesResult.cc deleted file mode 100644 index a181b3834..000000000 --- a/cms/src/model/DeleteMyGroupInstancesResult.cc +++ /dev/null @@ -1,65 +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; - -DeleteMyGroupInstancesResult::DeleteMyGroupInstancesResult() : - ServiceResult() -{} - -DeleteMyGroupInstancesResult::DeleteMyGroupInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteMyGroupInstancesResult::~DeleteMyGroupInstancesResult() -{} - -void DeleteMyGroupInstancesResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -int DeleteMyGroupInstancesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string DeleteMyGroupInstancesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool DeleteMyGroupInstancesResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DeleteMyGroupsResult.cc b/cms/src/model/DeleteMyGroupsResult.cc deleted file mode 100644 index e547cedeb..000000000 --- a/cms/src/model/DeleteMyGroupsResult.cc +++ /dev/null @@ -1,89 +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; - -DeleteMyGroupsResult::DeleteMyGroupsResult() : - ServiceResult() -{} - -DeleteMyGroupsResult::DeleteMyGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteMyGroupsResult::~DeleteMyGroupsResult() -{} - -void DeleteMyGroupsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto groupNode = value["Group"]; - if(!groupNode["GroupId"].isNull()) - group_.groupId = std::stol(groupNode["GroupId"].asString()); - if(!groupNode["GroupName"].isNull()) - group_.groupName = groupNode["GroupName"].asString(); - if(!groupNode["ServiceId"].isNull()) - group_.serviceId = groupNode["ServiceId"].asString(); - if(!groupNode["BindUrls"].isNull()) - group_.bindUrls = groupNode["BindUrls"].asString(); - if(!groupNode["Type"].isNull()) - group_.type = groupNode["Type"].asString(); - auto allContactGroupsNode = groupNode["ContactGroups"]["ContactGroup"]; - for (auto groupNodeContactGroupsContactGroup : allContactGroupsNode) - { - Group::ContactGroup contactGroupObject; - if(!groupNodeContactGroupsContactGroup["Name"].isNull()) - contactGroupObject.name = groupNodeContactGroupsContactGroup["Name"].asString(); - group_.contactGroups.push_back(contactGroupObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -DeleteMyGroupsResult::Group DeleteMyGroupsResult::getGroup()const -{ - return group_; -} - -int DeleteMyGroupsResult::getErrorCode()const -{ - return errorCode_; -} - -std::string DeleteMyGroupsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool DeleteMyGroupsResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DeleteNotifyPolicyRequest.cc b/cms/src/model/DeleteNotifyPolicyRequest.cc deleted file mode 100644 index 1cc027eea..000000000 --- a/cms/src/model/DeleteNotifyPolicyRequest.cc +++ /dev/null @@ -1,93 +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 - -using AlibabaCloud::Cms::Model::DeleteNotifyPolicyRequest; - -DeleteNotifyPolicyRequest::DeleteNotifyPolicyRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteNotifyPolicy") -{} - -DeleteNotifyPolicyRequest::~DeleteNotifyPolicyRequest() -{} - -std::string DeleteNotifyPolicyRequest::getPolicyType()const -{ - return policyType_; -} - -void DeleteNotifyPolicyRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setCoreParameter("PolicyType", policyType); -} - -std::string DeleteNotifyPolicyRequest::getAlertName()const -{ - return alertName_; -} - -void DeleteNotifyPolicyRequest::setAlertName(const std::string& alertName) -{ - alertName_ = alertName; - setCoreParameter("AlertName", alertName); -} - -std::string DeleteNotifyPolicyRequest::getGroupId()const -{ - return groupId_; -} - -void DeleteNotifyPolicyRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string DeleteNotifyPolicyRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DeleteNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string DeleteNotifyPolicyRequest::getId()const -{ - return id_; -} - -void DeleteNotifyPolicyRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - -std::string DeleteNotifyPolicyRequest::getDimensions()const -{ - return dimensions_; -} - -void DeleteNotifyPolicyRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - diff --git a/cms/src/model/DeleteTasksRequest.cc b/cms/src/model/DeleteSiteMonitorsRequest.cc similarity index 53% rename from cms/src/model/DeleteTasksRequest.cc rename to cms/src/model/DeleteSiteMonitorsRequest.cc index a17456f5a..b80c29b83 100644 --- a/cms/src/model/DeleteTasksRequest.cc +++ b/cms/src/model/DeleteSiteMonitorsRequest.cc @@ -14,34 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DeleteTasksRequest; +using AlibabaCloud::Cms::Model::DeleteSiteMonitorsRequest; -DeleteTasksRequest::DeleteTasksRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteTasks") +DeleteSiteMonitorsRequest::DeleteSiteMonitorsRequest() : + RpcServiceRequest("cms", "2019-01-01", "DeleteSiteMonitors") +{ + setMethod(HttpRequest::Method::Post); +} + +DeleteSiteMonitorsRequest::~DeleteSiteMonitorsRequest() {} -DeleteTasksRequest::~DeleteTasksRequest() -{} - -int DeleteTasksRequest::getIsDeleteAlarms()const +bool DeleteSiteMonitorsRequest::getIsDeleteAlarms()const { return isDeleteAlarms_; } -void DeleteTasksRequest::setIsDeleteAlarms(int isDeleteAlarms) +void DeleteSiteMonitorsRequest::setIsDeleteAlarms(bool isDeleteAlarms) { isDeleteAlarms_ = isDeleteAlarms; - setCoreParameter("IsDeleteAlarms", std::to_string(isDeleteAlarms)); + setCoreParameter("IsDeleteAlarms", isDeleteAlarms ? "true" : "false"); } -std::string DeleteTasksRequest::getTaskIds()const +std::string DeleteSiteMonitorsRequest::getTaskIds()const { return taskIds_; } -void DeleteTasksRequest::setTaskIds(const std::string& taskIds) +void DeleteSiteMonitorsRequest::setTaskIds(const std::string& taskIds) { taskIds_ = taskIds; setCoreParameter("TaskIds", taskIds); diff --git a/cms/src/model/DescribeTaskDetailResult.cc b/cms/src/model/DeleteSiteMonitorsResult.cc similarity index 71% rename from cms/src/model/DescribeTaskDetailResult.cc rename to cms/src/model/DeleteSiteMonitorsResult.cc index 3d739006d..5bd26232f 100644 --- a/cms/src/model/DescribeTaskDetailResult.cc +++ b/cms/src/model/DeleteSiteMonitorsResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DescribeTaskDetailResult::DescribeTaskDetailResult() : +DeleteSiteMonitorsResult::DeleteSiteMonitorsResult() : ServiceResult() {} -DescribeTaskDetailResult::DescribeTaskDetailResult(const std::string &payload) : +DeleteSiteMonitorsResult::DeleteSiteMonitorsResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeTaskDetailResult::~DescribeTaskDetailResult() +DeleteSiteMonitorsResult::~DeleteSiteMonitorsResult() {} -void DescribeTaskDetailResult::parse(const std::string &payload) +void DeleteSiteMonitorsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -50,22 +50,22 @@ void DescribeTaskDetailResult::parse(const std::string &payload) } -std::string DescribeTaskDetailResult::getMessage()const +std::string DeleteSiteMonitorsResult::getMessage()const { return message_; } -std::string DescribeTaskDetailResult::getData()const +std::string DeleteSiteMonitorsResult::getData()const { return data_; } -std::string DescribeTaskDetailResult::getCode()const +std::string DeleteSiteMonitorsResult::getCode()const { return code_; } -std::string DescribeTaskDetailResult::getSuccess()const +std::string DeleteSiteMonitorsResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DeleteTasksResult.cc b/cms/src/model/DeleteTasksResult.cc deleted file mode 100644 index c3d8d7063..000000000 --- a/cms/src/model/DeleteTasksResult.cc +++ /dev/null @@ -1,72 +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; - -DeleteTasksResult::DeleteTasksResult() : - ServiceResult() -{} - -DeleteTasksResult::DeleteTasksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DeleteTasksResult::~DeleteTasksResult() -{} - -void DeleteTasksResult::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(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - -} - -std::string DeleteTasksResult::getMessage()const -{ - return message_; -} - -std::string DeleteTasksResult::getData()const -{ - return data_; -} - -std::string DeleteTasksResult::getCode()const -{ - return code_; -} - -std::string DeleteTasksResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DisableActiveAlertRequest.cc b/cms/src/model/DescribeActiveMetricRuleListRequest.cc similarity index 52% rename from cms/src/model/DisableActiveAlertRequest.cc rename to cms/src/model/DescribeActiveMetricRuleListRequest.cc index d59d17fa8..170012250 100644 --- a/cms/src/model/DisableActiveAlertRequest.cc +++ b/cms/src/model/DescribeActiveMetricRuleListRequest.cc @@ -14,36 +14,27 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DisableActiveAlertRequest; +using AlibabaCloud::Cms::Model::DescribeActiveMetricRuleListRequest; -DisableActiveAlertRequest::DisableActiveAlertRequest() : - RpcServiceRequest("cms", "2018-03-08", "DisableActiveAlert") +DescribeActiveMetricRuleListRequest::DescribeActiveMetricRuleListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeActiveMetricRuleList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeActiveMetricRuleListRequest::~DescribeActiveMetricRuleListRequest() {} -DisableActiveAlertRequest::~DisableActiveAlertRequest() -{} - -std::string DisableActiveAlertRequest::getProduct()const +std::string DescribeActiveMetricRuleListRequest::getProduct()const { return product_; } -void DisableActiveAlertRequest::setProduct(const std::string& product) +void DescribeActiveMetricRuleListRequest::setProduct(const std::string& product) { product_ = product; setCoreParameter("Product", product); } -std::string DisableActiveAlertRequest::getUserId()const -{ - return userId_; -} - -void DisableActiveAlertRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setCoreParameter("UserId", userId); -} - diff --git a/cms/src/model/ListActiveAlertRuleResult.cc b/cms/src/model/DescribeActiveMetricRuleListResult.cc similarity index 78% rename from cms/src/model/ListActiveAlertRuleResult.cc rename to cms/src/model/DescribeActiveMetricRuleListResult.cc index 0594087aa..11ccb8f9f 100644 --- a/cms/src/model/ListActiveAlertRuleResult.cc +++ b/cms/src/model/DescribeActiveMetricRuleListResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListActiveAlertRuleResult::ListActiveAlertRuleResult() : +DescribeActiveMetricRuleListResult::DescribeActiveMetricRuleListResult() : ServiceResult() {} -ListActiveAlertRuleResult::ListActiveAlertRuleResult(const std::string &payload) : +DescribeActiveMetricRuleListResult::DescribeActiveMetricRuleListResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListActiveAlertRuleResult::~ListActiveAlertRuleResult() +DescribeActiveMetricRuleListResult::~DescribeActiveMetricRuleListResult() {} -void ListActiveAlertRuleResult::parse(const std::string &payload) +void DescribeActiveMetricRuleListResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,10 +43,8 @@ void ListActiveAlertRuleResult::parse(const std::string &payload) for (auto valueDatapointsAlarm : allDatapointsNode) { Alarm datapointsObject; - if(!valueDatapointsAlarm["Uuid"].isNull()) - datapointsObject.uuid = valueDatapointsAlarm["Uuid"].asString(); - if(!valueDatapointsAlarm["Name"].isNull()) - datapointsObject.name = valueDatapointsAlarm["Name"].asString(); + if(!valueDatapointsAlarm["RuleId"].isNull()) + datapointsObject.ruleId = valueDatapointsAlarm["RuleId"].asString(); if(!valueDatapointsAlarm["Namespace"].isNull()) datapointsObject._namespace = valueDatapointsAlarm["Namespace"].asString(); if(!valueDatapointsAlarm["MetricName"].isNull()) @@ -67,8 +65,6 @@ void ListActiveAlertRuleResult::parse(const std::string &payload) datapointsObject.endTime = valueDatapointsAlarm["EndTime"].asString(); if(!valueDatapointsAlarm["SilenceTime"].isNull()) datapointsObject.silenceTime = valueDatapointsAlarm["SilenceTime"].asString(); - if(!valueDatapointsAlarm["NotifyType"].isNull()) - datapointsObject.notifyType = valueDatapointsAlarm["NotifyType"].asString(); if(!valueDatapointsAlarm["Enable"].isNull()) datapointsObject.enable = valueDatapointsAlarm["Enable"].asString(); if(!valueDatapointsAlarm["State"].isNull()) @@ -90,22 +86,22 @@ void ListActiveAlertRuleResult::parse(const std::string &payload) } -std::string ListActiveAlertRuleResult::getMessage()const +std::string DescribeActiveMetricRuleListResult::getMessage()const { return message_; } -std::vector ListActiveAlertRuleResult::getDatapoints()const +std::vector DescribeActiveMetricRuleListResult::getDatapoints()const { return datapoints_; } -std::string ListActiveAlertRuleResult::getCode()const +std::string DescribeActiveMetricRuleListResult::getCode()const { return code_; } -bool ListActiveAlertRuleResult::getSuccess()const +bool DescribeActiveMetricRuleListResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeAlarmHistoryRequest.cc b/cms/src/model/DescribeAlarmHistoryRequest.cc deleted file mode 100644 index f999b0bb7..000000000 --- a/cms/src/model/DescribeAlarmHistoryRequest.cc +++ /dev/null @@ -1,181 +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 - -using AlibabaCloud::Cms::Model::DescribeAlarmHistoryRequest; - -DescribeAlarmHistoryRequest::DescribeAlarmHistoryRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeAlarmHistory") -{} - -DescribeAlarmHistoryRequest::~DescribeAlarmHistoryRequest() -{} - -std::string DescribeAlarmHistoryRequest::getAlertName()const -{ - return alertName_; -} - -void DescribeAlarmHistoryRequest::setAlertName(const std::string& alertName) -{ - alertName_ = alertName; - setCoreParameter("AlertName", alertName); -} - -std::string DescribeAlarmHistoryRequest::getRuleName()const -{ - return ruleName_; -} - -void DescribeAlarmHistoryRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - -std::string DescribeAlarmHistoryRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeAlarmHistoryRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string DescribeAlarmHistoryRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeAlarmHistoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -bool DescribeAlarmHistoryRequest::getOnlyCount()const -{ - return onlyCount_; -} - -void DescribeAlarmHistoryRequest::setOnlyCount(bool onlyCount) -{ - onlyCount_ = onlyCount; - setCoreParameter("OnlyCount", onlyCount ? "true" : "false"); -} - -int DescribeAlarmHistoryRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeAlarmHistoryRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeAlarmHistoryRequest::getState()const -{ - return state_; -} - -void DescribeAlarmHistoryRequest::setState(const std::string& state) -{ - state_ = state; - setCoreParameter("State", state); -} - -std::string DescribeAlarmHistoryRequest::getMetricName()const -{ - return metricName_; -} - -void DescribeAlarmHistoryRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setCoreParameter("MetricName", metricName); -} - -std::string DescribeAlarmHistoryRequest::getGroupId()const -{ - return groupId_; -} - -void DescribeAlarmHistoryRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string DescribeAlarmHistoryRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeAlarmHistoryRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - -bool DescribeAlarmHistoryRequest::getAscending()const -{ - return ascending_; -} - -void DescribeAlarmHistoryRequest::setAscending(bool ascending) -{ - ascending_ = ascending; - setCoreParameter("Ascending", ascending ? "true" : "false"); -} - -std::string DescribeAlarmHistoryRequest::get_Namespace()const -{ - return _namespace_; -} - -void DescribeAlarmHistoryRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setCoreParameter("_Namespace", _namespace); -} - -int DescribeAlarmHistoryRequest::getPage()const -{ - return page_; -} - -void DescribeAlarmHistoryRequest::setPage(int page) -{ - page_ = page; - setCoreParameter("Page", std::to_string(page)); -} - -std::string DescribeAlarmHistoryRequest::getStatus()const -{ - return status_; -} - -void DescribeAlarmHistoryRequest::setStatus(const std::string& status) -{ - status_ = status; - setCoreParameter("Status", status); -} - diff --git a/cms/src/model/DescribeAlarmHistoryResult.cc b/cms/src/model/DescribeAlarmHistoryResult.cc deleted file mode 100644 index b68a1c079..000000000 --- a/cms/src/model/DescribeAlarmHistoryResult.cc +++ /dev/null @@ -1,136 +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; - -DescribeAlarmHistoryResult::DescribeAlarmHistoryResult() : - ServiceResult() -{} - -DescribeAlarmHistoryResult::DescribeAlarmHistoryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAlarmHistoryResult::~DescribeAlarmHistoryResult() -{} - -void DescribeAlarmHistoryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allAlarmHistoryListNode = value["AlarmHistoryList"]["AlarmHistory"]; - for (auto valueAlarmHistoryListAlarmHistory : allAlarmHistoryListNode) - { - AlarmHistory alarmHistoryListObject; - if(!valueAlarmHistoryListAlarmHistory["Id"].isNull()) - alarmHistoryListObject.id = valueAlarmHistoryListAlarmHistory["Id"].asString(); - if(!valueAlarmHistoryListAlarmHistory["AlertName"].isNull()) - alarmHistoryListObject.alertName = valueAlarmHistoryListAlarmHistory["AlertName"].asString(); - if(!valueAlarmHistoryListAlarmHistory["GroupId"].isNull()) - alarmHistoryListObject.groupId = valueAlarmHistoryListAlarmHistory["GroupId"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Namespace"].isNull()) - alarmHistoryListObject._namespace = valueAlarmHistoryListAlarmHistory["Namespace"].asString(); - if(!valueAlarmHistoryListAlarmHistory["MetricName"].isNull()) - alarmHistoryListObject.metricName = valueAlarmHistoryListAlarmHistory["MetricName"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Dimensions"].isNull()) - alarmHistoryListObject.dimensions = valueAlarmHistoryListAlarmHistory["Dimensions"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Expression"].isNull()) - alarmHistoryListObject.expression = valueAlarmHistoryListAlarmHistory["Expression"].asString(); - if(!valueAlarmHistoryListAlarmHistory["EvaluationCount"].isNull()) - alarmHistoryListObject.evaluationCount = std::stoi(valueAlarmHistoryListAlarmHistory["EvaluationCount"].asString()); - if(!valueAlarmHistoryListAlarmHistory["Value"].isNull()) - alarmHistoryListObject.value = valueAlarmHistoryListAlarmHistory["Value"].asString(); - if(!valueAlarmHistoryListAlarmHistory["AlertTime"].isNull()) - alarmHistoryListObject.alertTime = std::stol(valueAlarmHistoryListAlarmHistory["AlertTime"].asString()); - if(!valueAlarmHistoryListAlarmHistory["LastTime"].isNull()) - alarmHistoryListObject.lastTime = std::stol(valueAlarmHistoryListAlarmHistory["LastTime"].asString()); - if(!valueAlarmHistoryListAlarmHistory["Level"].isNull()) - alarmHistoryListObject.level = valueAlarmHistoryListAlarmHistory["Level"].asString(); - if(!valueAlarmHistoryListAlarmHistory["PreLevel"].isNull()) - alarmHistoryListObject.preLevel = valueAlarmHistoryListAlarmHistory["PreLevel"].asString(); - if(!valueAlarmHistoryListAlarmHistory["RuleName"].isNull()) - alarmHistoryListObject.ruleName = valueAlarmHistoryListAlarmHistory["RuleName"].asString(); - if(!valueAlarmHistoryListAlarmHistory["State"].isNull()) - alarmHistoryListObject.state = valueAlarmHistoryListAlarmHistory["State"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Status"].isNull()) - alarmHistoryListObject.status = std::stoi(valueAlarmHistoryListAlarmHistory["Status"].asString()); - if(!valueAlarmHistoryListAlarmHistory["UserId"].isNull()) - alarmHistoryListObject.userId = valueAlarmHistoryListAlarmHistory["UserId"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Webhooks"].isNull()) - alarmHistoryListObject.webhooks = valueAlarmHistoryListAlarmHistory["Webhooks"].asString(); - if(!valueAlarmHistoryListAlarmHistory["InstanceName"].isNull()) - alarmHistoryListObject.instanceName = valueAlarmHistoryListAlarmHistory["InstanceName"].asString(); - auto allContactGroups = value["ContactGroups"]["ContactGroup"]; - for (auto value : allContactGroups) - alarmHistoryListObject.contactGroups.push_back(value.asString()); - auto allContacts = value["Contacts"]["Contact"]; - for (auto value : allContacts) - alarmHistoryListObject.contacts.push_back(value.asString()); - auto allContactALIIMs = value["ContactALIIMs"]["ContactALIIM"]; - for (auto value : allContactALIIMs) - alarmHistoryListObject.contactALIIMs.push_back(value.asString()); - auto allContactSmses = value["ContactSmses"]["ContactSms"]; - for (auto value : allContactSmses) - alarmHistoryListObject.contactSmses.push_back(value.asString()); - auto allContactMails = value["ContactMails"]["ContactMail"]; - for (auto value : allContactMails) - alarmHistoryListObject.contactMails.push_back(value.asString()); - alarmHistoryList_.push_back(alarmHistoryListObject); - } - 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(); - if(!value["Total"].isNull()) - total_ = value["Total"].asString(); - -} - -std::vector DescribeAlarmHistoryResult::getAlarmHistoryList()const -{ - return alarmHistoryList_; -} - -std::string DescribeAlarmHistoryResult::getMessage()const -{ - return message_; -} - -std::string DescribeAlarmHistoryResult::getTotal()const -{ - return total_; -} - -std::string DescribeAlarmHistoryResult::getCode()const -{ - return code_; -} - -bool DescribeAlarmHistoryResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DescribeAlarmsForResourcesRequest.cc b/cms/src/model/DescribeAlarmsForResourcesRequest.cc deleted file mode 100644 index a109c9dd4..000000000 --- a/cms/src/model/DescribeAlarmsForResourcesRequest.cc +++ /dev/null @@ -1,115 +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 - -using AlibabaCloud::Cms::Model::DescribeAlarmsForResourcesRequest; - -DescribeAlarmsForResourcesRequest::DescribeAlarmsForResourcesRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeAlarmsForResources") -{} - -DescribeAlarmsForResourcesRequest::~DescribeAlarmsForResourcesRequest() -{} - -bool DescribeAlarmsForResourcesRequest::getEnableState()const -{ - return enableState_; -} - -void DescribeAlarmsForResourcesRequest::setEnableState(bool enableState) -{ - enableState_ = enableState; - setCoreParameter("EnableState", enableState ? "true" : "false"); -} - -std::string DescribeAlarmsForResourcesRequest::getGroupId()const -{ - return groupId_; -} - -void DescribeAlarmsForResourcesRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string DescribeAlarmsForResourcesRequest::get_Namespace()const -{ - return _namespace_; -} - -void DescribeAlarmsForResourcesRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setCoreParameter("_Namespace", _namespace); -} - -std::string DescribeAlarmsForResourcesRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeAlarmsForResourcesRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", pageSize); -} - -std::string DescribeAlarmsForResourcesRequest::getAlertState()const -{ - return alertState_; -} - -void DescribeAlarmsForResourcesRequest::setAlertState(const std::string& alertState) -{ - alertState_ = alertState; - setCoreParameter("AlertState", alertState); -} - -std::string DescribeAlarmsForResourcesRequest::getPage()const -{ - return page_; -} - -void DescribeAlarmsForResourcesRequest::setPage(const std::string& page) -{ - page_ = page; - setCoreParameter("Page", page); -} - -std::string DescribeAlarmsForResourcesRequest::getMetricName()const -{ - return metricName_; -} - -void DescribeAlarmsForResourcesRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setCoreParameter("MetricName", metricName); -} - -std::string DescribeAlarmsForResourcesRequest::getDimensions()const -{ - return dimensions_; -} - -void DescribeAlarmsForResourcesRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - diff --git a/cms/src/model/DescribeAlarmsForResourcesResult.cc b/cms/src/model/DescribeAlarmsForResourcesResult.cc deleted file mode 100644 index 90ebea594..000000000 --- a/cms/src/model/DescribeAlarmsForResourcesResult.cc +++ /dev/null @@ -1,169 +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; - -DescribeAlarmsForResourcesResult::DescribeAlarmsForResourcesResult() : - ServiceResult() -{} - -DescribeAlarmsForResourcesResult::DescribeAlarmsForResourcesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAlarmsForResourcesResult::~DescribeAlarmsForResourcesResult() -{} - -void DescribeAlarmsForResourcesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDatapointsNode = value["Datapoints"]["Alarm"]; - for (auto valueDatapointsAlarm : allDatapointsNode) - { - Alarm datapointsObject; - if(!valueDatapointsAlarm["Uuid"].isNull()) - datapointsObject.uuid = valueDatapointsAlarm["Uuid"].asString(); - if(!valueDatapointsAlarm["Name"].isNull()) - datapointsObject.name = valueDatapointsAlarm["Name"].asString(); - if(!valueDatapointsAlarm["Namespace"].isNull()) - datapointsObject._namespace = valueDatapointsAlarm["Namespace"].asString(); - if(!valueDatapointsAlarm["MetricName"].isNull()) - datapointsObject.metricName = valueDatapointsAlarm["MetricName"].asString(); - if(!valueDatapointsAlarm["Period"].isNull()) - datapointsObject.period = valueDatapointsAlarm["Period"].asString(); - if(!valueDatapointsAlarm["EvaluationCount"].isNull()) - datapointsObject.evaluationCount = valueDatapointsAlarm["EvaluationCount"].asString(); - if(!valueDatapointsAlarm["EffectiveInterval"].isNull()) - datapointsObject.effectiveInterval = valueDatapointsAlarm["EffectiveInterval"].asString(); - if(!valueDatapointsAlarm["NoEffectiveInterval"].isNull()) - datapointsObject.noEffectiveInterval = valueDatapointsAlarm["NoEffectiveInterval"].asString(); - if(!valueDatapointsAlarm["SilenceTime"].isNull()) - datapointsObject.silenceTime = valueDatapointsAlarm["SilenceTime"].asString(); - if(!valueDatapointsAlarm["Enable"].isNull()) - datapointsObject.enable = valueDatapointsAlarm["Enable"].asString() == "true"; - if(!valueDatapointsAlarm["State"].isNull()) - datapointsObject.state = valueDatapointsAlarm["State"].asString(); - if(!valueDatapointsAlarm["ContactGroups"].isNull()) - datapointsObject.contactGroups = valueDatapointsAlarm["ContactGroups"].asString(); - if(!valueDatapointsAlarm["Webhook"].isNull()) - datapointsObject.webhook = valueDatapointsAlarm["Webhook"].asString(); - if(!valueDatapointsAlarm["Subject"].isNull()) - datapointsObject.subject = valueDatapointsAlarm["Subject"].asString(); - if(!valueDatapointsAlarm["DisplayName"].isNull()) - datapointsObject.displayName = valueDatapointsAlarm["DisplayName"].asString(); - if(!valueDatapointsAlarm["Resources"].isNull()) - datapointsObject.resources = valueDatapointsAlarm["Resources"].asString(); - if(!valueDatapointsAlarm["Level"].isNull()) - datapointsObject.level = valueDatapointsAlarm["Level"].asString(); - if(!valueDatapointsAlarm["GroupId"].isNull()) - datapointsObject.groupId = valueDatapointsAlarm["GroupId"].asString(); - if(!valueDatapointsAlarm["GroupName"].isNull()) - datapointsObject.groupName = valueDatapointsAlarm["GroupName"].asString(); - if(!valueDatapointsAlarm["Statistics"].isNull()) - datapointsObject.statistics = valueDatapointsAlarm["Statistics"].asString(); - if(!valueDatapointsAlarm["ComparisonOperator"].isNull()) - datapointsObject.comparisonOperator = valueDatapointsAlarm["ComparisonOperator"].asString(); - if(!valueDatapointsAlarm["Threshold"].isNull()) - datapointsObject.threshold = valueDatapointsAlarm["Threshold"].asString(); - auto escalationsNode = value["Escalations"]; - auto infoNode = escalationsNode["Info"]; - if(!infoNode["ComparisonOperator"].isNull()) - datapointsObject.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString(); - if(!infoNode["Statistics"].isNull()) - datapointsObject.escalations.info.statistics = infoNode["Statistics"].asString(); - if(!infoNode["Threshold"].isNull()) - datapointsObject.escalations.info.threshold = infoNode["Threshold"].asString(); - if(!infoNode["Times"].isNull()) - datapointsObject.escalations.info.times = infoNode["Times"].asString(); - auto warnNode = escalationsNode["Warn"]; - if(!warnNode["ComparisonOperator"].isNull()) - datapointsObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString(); - if(!warnNode["Statistics"].isNull()) - datapointsObject.escalations.warn.statistics = warnNode["Statistics"].asString(); - if(!warnNode["Threshold"].isNull()) - datapointsObject.escalations.warn.threshold = warnNode["Threshold"].asString(); - if(!warnNode["Times"].isNull()) - datapointsObject.escalations.warn.times = warnNode["Times"].asString(); - auto criticalNode = escalationsNode["Critical"]; - if(!criticalNode["ComparisonOperator"].isNull()) - datapointsObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString(); - if(!criticalNode["Statistics"].isNull()) - datapointsObject.escalations.critical.statistics = criticalNode["Statistics"].asString(); - if(!criticalNode["Threshold"].isNull()) - datapointsObject.escalations.critical.threshold = criticalNode["Threshold"].asString(); - if(!criticalNode["Times"].isNull()) - datapointsObject.escalations.critical.times = criticalNode["Times"].asString(); - datapoints_.push_back(datapointsObject); - } - if(!value["TraceId"].isNull()) - traceId_ = value["TraceId"].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["Total"].isNull()) - total_ = value["Total"].asString(); - if(!value["Dimensions"].isNull()) - dimensions_ = value["Dimensions"].asString(); - -} - -std::string DescribeAlarmsForResourcesResult::getMessage()const -{ - return message_; -} - -std::string DescribeAlarmsForResourcesResult::getTotal()const -{ - return total_; -} - -std::string DescribeAlarmsForResourcesResult::getTraceId()const -{ - return traceId_; -} - -std::string DescribeAlarmsForResourcesResult::getDimensions()const -{ - return dimensions_; -} - -std::vector DescribeAlarmsForResourcesResult::getDatapoints()const -{ - return datapoints_; -} - -int DescribeAlarmsForResourcesResult::getCode()const -{ - return code_; -} - -bool DescribeAlarmsForResourcesResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DescribeAlarmsRequest.cc b/cms/src/model/DescribeAlarmsRequest.cc deleted file mode 100644 index 62cd2baaa..000000000 --- a/cms/src/model/DescribeAlarmsRequest.cc +++ /dev/null @@ -1,148 +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 - -using AlibabaCloud::Cms::Model::DescribeAlarmsRequest; - -DescribeAlarmsRequest::DescribeAlarmsRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeAlarms") -{} - -DescribeAlarmsRequest::~DescribeAlarmsRequest() -{} - -bool DescribeAlarmsRequest::getEnableState()const -{ - return enableState_; -} - -void DescribeAlarmsRequest::setEnableState(bool enableState) -{ - enableState_ = enableState; - setCoreParameter("EnableState", enableState ? "true" : "false"); -} - -std::string DescribeAlarmsRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeAlarmsRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", pageSize); -} - -std::string DescribeAlarmsRequest::getMetricName()const -{ - return metricName_; -} - -void DescribeAlarmsRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setCoreParameter("MetricName", metricName); -} - -std::string DescribeAlarmsRequest::getGroupId()const -{ - return groupId_; -} - -void DescribeAlarmsRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string DescribeAlarmsRequest::getGroupBy()const -{ - return groupBy_; -} - -void DescribeAlarmsRequest::setGroupBy(const std::string& groupBy) -{ - groupBy_ = groupBy; - setCoreParameter("GroupBy", groupBy); -} - -std::string DescribeAlarmsRequest::getNames()const -{ - return names_; -} - -void DescribeAlarmsRequest::setNames(const std::string& names) -{ - names_ = names; - setCoreParameter("Names", names); -} - -std::string DescribeAlarmsRequest::getDisplayName()const -{ - return displayName_; -} - -void DescribeAlarmsRequest::setDisplayName(const std::string& displayName) -{ - displayName_ = displayName; - setCoreParameter("DisplayName", displayName); -} - -std::string DescribeAlarmsRequest::get_Namespace()const -{ - return _namespace_; -} - -void DescribeAlarmsRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setCoreParameter("_Namespace", _namespace); -} - -std::string DescribeAlarmsRequest::getAlertState()const -{ - return alertState_; -} - -void DescribeAlarmsRequest::setAlertState(const std::string& alertState) -{ - alertState_ = alertState; - setCoreParameter("AlertState", alertState); -} - -std::string DescribeAlarmsRequest::getNameKeyword()const -{ - return nameKeyword_; -} - -void DescribeAlarmsRequest::setNameKeyword(const std::string& nameKeyword) -{ - nameKeyword_ = nameKeyword; - setCoreParameter("NameKeyword", nameKeyword); -} - -std::string DescribeAlarmsRequest::getPage()const -{ - return page_; -} - -void DescribeAlarmsRequest::setPage(const std::string& page) -{ - page_ = page; - setCoreParameter("Page", page); -} - diff --git a/cms/src/model/DescribeAlarmsResult.cc b/cms/src/model/DescribeAlarmsResult.cc deleted file mode 100644 index d7b6c21ca..000000000 --- a/cms/src/model/DescribeAlarmsResult.cc +++ /dev/null @@ -1,166 +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; - -DescribeAlarmsResult::DescribeAlarmsResult() : - ServiceResult() -{} - -DescribeAlarmsResult::DescribeAlarmsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeAlarmsResult::~DescribeAlarmsResult() -{} - -void DescribeAlarmsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDatapointsNode = value["Datapoints"]["Alarm"]; - for (auto valueDatapointsAlarm : allDatapointsNode) - { - Alarm datapointsObject; - if(!valueDatapointsAlarm["Uuid"].isNull()) - datapointsObject.uuid = valueDatapointsAlarm["Uuid"].asString(); - if(!valueDatapointsAlarm["Name"].isNull()) - datapointsObject.name = valueDatapointsAlarm["Name"].asString(); - if(!valueDatapointsAlarm["Namespace"].isNull()) - datapointsObject._namespace = valueDatapointsAlarm["Namespace"].asString(); - if(!valueDatapointsAlarm["MetricName"].isNull()) - datapointsObject.metricName = valueDatapointsAlarm["MetricName"].asString(); - if(!valueDatapointsAlarm["Period"].isNull()) - datapointsObject.period = valueDatapointsAlarm["Period"].asString(); - if(!valueDatapointsAlarm["EvaluationCount"].isNull()) - datapointsObject.evaluationCount = valueDatapointsAlarm["EvaluationCount"].asString(); - if(!valueDatapointsAlarm["EffectiveInterval"].isNull()) - datapointsObject.effectiveInterval = valueDatapointsAlarm["EffectiveInterval"].asString(); - if(!valueDatapointsAlarm["NoEffectiveInterval"].isNull()) - datapointsObject.noEffectiveInterval = valueDatapointsAlarm["NoEffectiveInterval"].asString(); - if(!valueDatapointsAlarm["SilenceTime"].isNull()) - datapointsObject.silenceTime = valueDatapointsAlarm["SilenceTime"].asString(); - if(!valueDatapointsAlarm["Enable"].isNull()) - datapointsObject.enable = valueDatapointsAlarm["Enable"].asString() == "true"; - if(!valueDatapointsAlarm["State"].isNull()) - datapointsObject.state = valueDatapointsAlarm["State"].asString(); - if(!valueDatapointsAlarm["ContactGroups"].isNull()) - datapointsObject.contactGroups = valueDatapointsAlarm["ContactGroups"].asString(); - if(!valueDatapointsAlarm["Webhook"].isNull()) - datapointsObject.webhook = valueDatapointsAlarm["Webhook"].asString(); - if(!valueDatapointsAlarm["Subject"].isNull()) - datapointsObject.subject = valueDatapointsAlarm["Subject"].asString(); - if(!valueDatapointsAlarm["RuleName"].isNull()) - datapointsObject.ruleName = valueDatapointsAlarm["RuleName"].asString(); - if(!valueDatapointsAlarm["Resources"].isNull()) - datapointsObject.resources = valueDatapointsAlarm["Resources"].asString(); - if(!valueDatapointsAlarm["Level"].isNull()) - datapointsObject.level = valueDatapointsAlarm["Level"].asString(); - if(!valueDatapointsAlarm["GroupId"].isNull()) - datapointsObject.groupId = valueDatapointsAlarm["GroupId"].asString(); - if(!valueDatapointsAlarm["GroupName"].isNull()) - datapointsObject.groupName = valueDatapointsAlarm["GroupName"].asString(); - if(!valueDatapointsAlarm["Dimensions"].isNull()) - datapointsObject.dimensions = valueDatapointsAlarm["Dimensions"].asString(); - if(!valueDatapointsAlarm["Statistics"].isNull()) - datapointsObject.statistics = valueDatapointsAlarm["Statistics"].asString(); - if(!valueDatapointsAlarm["ComparisonOperator"].isNull()) - datapointsObject.comparisonOperator = valueDatapointsAlarm["ComparisonOperator"].asString(); - if(!valueDatapointsAlarm["Threshold"].isNull()) - datapointsObject.threshold = valueDatapointsAlarm["Threshold"].asString(); - if(!valueDatapointsAlarm["DisplayName"].isNull()) - datapointsObject.displayName = valueDatapointsAlarm["DisplayName"].asString(); - auto escalationsNode = value["Escalations"]; - auto infoNode = escalationsNode["Info"]; - if(!infoNode["ComparisonOperator"].isNull()) - datapointsObject.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString(); - if(!infoNode["Statistics"].isNull()) - datapointsObject.escalations.info.statistics = infoNode["Statistics"].asString(); - if(!infoNode["Threshold"].isNull()) - datapointsObject.escalations.info.threshold = infoNode["Threshold"].asString(); - if(!infoNode["Times"].isNull()) - datapointsObject.escalations.info.times = infoNode["Times"].asString(); - auto warnNode = escalationsNode["Warn"]; - if(!warnNode["ComparisonOperator"].isNull()) - datapointsObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString(); - if(!warnNode["Statistics"].isNull()) - datapointsObject.escalations.warn.statistics = warnNode["Statistics"].asString(); - if(!warnNode["Threshold"].isNull()) - datapointsObject.escalations.warn.threshold = warnNode["Threshold"].asString(); - if(!warnNode["Times"].isNull()) - datapointsObject.escalations.warn.times = warnNode["Times"].asString(); - auto criticalNode = escalationsNode["Critical"]; - if(!criticalNode["ComparisonOperator"].isNull()) - datapointsObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString(); - if(!criticalNode["Statistics"].isNull()) - datapointsObject.escalations.critical.statistics = criticalNode["Statistics"].asString(); - if(!criticalNode["Threshold"].isNull()) - datapointsObject.escalations.critical.threshold = criticalNode["Threshold"].asString(); - if(!criticalNode["Times"].isNull()) - datapointsObject.escalations.critical.times = criticalNode["Times"].asString(); - datapoints_.push_back(datapointsObject); - } - if(!value["TraceId"].isNull()) - traceId_ = value["TraceId"].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["Total"].isNull()) - total_ = value["Total"].asString(); - -} - -std::string DescribeAlarmsResult::getMessage()const -{ - return message_; -} - -std::string DescribeAlarmsResult::getTotal()const -{ - return total_; -} - -std::string DescribeAlarmsResult::getTraceId()const -{ - return traceId_; -} - -std::vector DescribeAlarmsResult::getDatapoints()const -{ - return datapoints_; -} - -int DescribeAlarmsResult::getCode()const -{ - return code_; -} - -bool DescribeAlarmsResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DescribeAlertHistoryListRequest.cc b/cms/src/model/DescribeAlertHistoryListRequest.cc index 719d20cbf..2b29e6f63 100644 --- a/cms/src/model/DescribeAlertHistoryListRequest.cc +++ b/cms/src/model/DescribeAlertHistoryListRequest.cc @@ -19,163 +19,143 @@ using AlibabaCloud::Cms::Model::DescribeAlertHistoryListRequest; DescribeAlertHistoryListRequest::DescribeAlertHistoryListRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeAlertHistoryList") -{} + RpcServiceRequest("cms", "2019-01-01", "DescribeAlertHistoryList") +{ + setMethod(HttpRequest::Method::Post); +} DescribeAlertHistoryListRequest::~DescribeAlertHistoryListRequest() {} -std::string DescribeAlertHistoryListRequest::getAlertName()const -{ - return alertName_; -} - -void DescribeAlertHistoryListRequest::setAlertName(const std::string& alertName) -{ - alertName_ = alertName; - setCoreParameter("AlertName", alertName); -} - -std::string DescribeAlertHistoryListRequest::getRuleName()const -{ - return ruleName_; -} - -void DescribeAlertHistoryListRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - -std::string DescribeAlertHistoryListRequest::getStartTime()const -{ - return startTime_; -} - -void DescribeAlertHistoryListRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string DescribeAlertHistoryListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void DescribeAlertHistoryListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -bool DescribeAlertHistoryListRequest::getOnlyCount()const -{ - return onlyCount_; -} - -void DescribeAlertHistoryListRequest::setOnlyCount(bool onlyCount) -{ - onlyCount_ = onlyCount; - setCoreParameter("OnlyCount", onlyCount ? "true" : "false"); -} - -int DescribeAlertHistoryListRequest::getPageSize()const -{ - return pageSize_; -} - -void DescribeAlertHistoryListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string DescribeAlertHistoryListRequest::getState()const -{ - return state_; -} - -void DescribeAlertHistoryListRequest::setState(const std::string& state) -{ - state_ = state; - setCoreParameter("State", state); -} - -std::string DescribeAlertHistoryListRequest::getMetricName()const -{ - return metricName_; -} - -void DescribeAlertHistoryListRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setCoreParameter("MetricName", metricName); -} - -std::string DescribeAlertHistoryListRequest::getGroupId()const -{ - return groupId_; -} - -void DescribeAlertHistoryListRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string DescribeAlertHistoryListRequest::getEndTime()const -{ - return endTime_; -} - -void DescribeAlertHistoryListRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - -bool DescribeAlertHistoryListRequest::getAscending()const -{ - return ascending_; -} - -void DescribeAlertHistoryListRequest::setAscending(bool ascending) -{ - ascending_ = ascending; - setCoreParameter("Ascending", ascending ? "true" : "false"); -} - -std::string DescribeAlertHistoryListRequest::get_Namespace()const -{ - return _namespace_; -} - -void DescribeAlertHistoryListRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setCoreParameter("_Namespace", _namespace); -} - -int DescribeAlertHistoryListRequest::getPage()const -{ - return page_; -} - -void DescribeAlertHistoryListRequest::setPage(int page) -{ - page_ = page; - setCoreParameter("Page", std::to_string(page)); -} - -std::string DescribeAlertHistoryListRequest::getStatus()const -{ - return status_; -} - -void DescribeAlertHistoryListRequest::setStatus(const std::string& status) -{ - status_ = status; - setCoreParameter("Status", status); -} - +std::string DescribeAlertHistoryListRequest::getAlertStatus()const +{ + return alertStatus_; +} + +void DescribeAlertHistoryListRequest::setAlertStatus(const std::string& alertStatus) +{ + alertStatus_ = alertStatus; + setCoreParameter("AlertStatus", alertStatus); +} + +std::string DescribeAlertHistoryListRequest::getRuleName()const +{ + return ruleName_; +} + +void DescribeAlertHistoryListRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + +std::string DescribeAlertHistoryListRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeAlertHistoryListRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +int DescribeAlertHistoryListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAlertHistoryListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeAlertHistoryListRequest::getState()const +{ + return state_; +} + +void DescribeAlertHistoryListRequest::setState(const std::string& state) +{ + state_ = state; + setCoreParameter("State", state); +} + +std::string DescribeAlertHistoryListRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeAlertHistoryListRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeAlertHistoryListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeAlertHistoryListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeAlertHistoryListRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeAlertHistoryListRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +bool DescribeAlertHistoryListRequest::getAscending()const +{ + return ascending_; +} + +void DescribeAlertHistoryListRequest::setAscending(bool ascending) +{ + ascending_ = ascending; + setCoreParameter("Ascending", ascending ? "true" : "false"); +} + +std::string DescribeAlertHistoryListRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeAlertHistoryListRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +int DescribeAlertHistoryListRequest::getPage()const +{ + return page_; +} + +void DescribeAlertHistoryListRequest::setPage(int page) +{ + page_ = page; + setCoreParameter("Page", std::to_string(page)); +} + +std::string DescribeAlertHistoryListRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribeAlertHistoryListRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", ruleId); +} + diff --git a/cms/src/model/DescribeAlertHistoryListResult.cc b/cms/src/model/DescribeAlertHistoryListResult.cc index 9cd9c85e7..f95658860 100644 --- a/cms/src/model/DescribeAlertHistoryListResult.cc +++ b/cms/src/model/DescribeAlertHistoryListResult.cc @@ -43,8 +43,8 @@ void DescribeAlertHistoryListResult::parse(const std::string &payload) for (auto valueAlarmHistoryListAlarmHistory : allAlarmHistoryListNode) { AlarmHistory alarmHistoryListObject; - if(!valueAlarmHistoryListAlarmHistory["Id"].isNull()) - alarmHistoryListObject.id = valueAlarmHistoryListAlarmHistory["Id"].asString(); + if(!valueAlarmHistoryListAlarmHistory["RuleId"].isNull()) + alarmHistoryListObject.ruleId = valueAlarmHistoryListAlarmHistory["RuleId"].asString(); if(!valueAlarmHistoryListAlarmHistory["AlertName"].isNull()) alarmHistoryListObject.alertName = valueAlarmHistoryListAlarmHistory["AlertName"].asString(); if(!valueAlarmHistoryListAlarmHistory["GroupId"].isNull()) @@ -67,16 +67,12 @@ void DescribeAlertHistoryListResult::parse(const std::string &payload) alarmHistoryListObject.lastTime = std::stol(valueAlarmHistoryListAlarmHistory["LastTime"].asString()); if(!valueAlarmHistoryListAlarmHistory["Level"].isNull()) alarmHistoryListObject.level = valueAlarmHistoryListAlarmHistory["Level"].asString(); - if(!valueAlarmHistoryListAlarmHistory["PreLevel"].isNull()) - alarmHistoryListObject.preLevel = valueAlarmHistoryListAlarmHistory["PreLevel"].asString(); if(!valueAlarmHistoryListAlarmHistory["RuleName"].isNull()) alarmHistoryListObject.ruleName = valueAlarmHistoryListAlarmHistory["RuleName"].asString(); - if(!valueAlarmHistoryListAlarmHistory["State"].isNull()) - alarmHistoryListObject.state = valueAlarmHistoryListAlarmHistory["State"].asString(); + if(!valueAlarmHistoryListAlarmHistory["AlertState"].isNull()) + alarmHistoryListObject.alertState = valueAlarmHistoryListAlarmHistory["AlertState"].asString(); if(!valueAlarmHistoryListAlarmHistory["Status"].isNull()) alarmHistoryListObject.status = std::stoi(valueAlarmHistoryListAlarmHistory["Status"].asString()); - if(!valueAlarmHistoryListAlarmHistory["UserId"].isNull()) - alarmHistoryListObject.userId = valueAlarmHistoryListAlarmHistory["UserId"].asString(); if(!valueAlarmHistoryListAlarmHistory["Webhooks"].isNull()) alarmHistoryListObject.webhooks = valueAlarmHistoryListAlarmHistory["Webhooks"].asString(); if(!valueAlarmHistoryListAlarmHistory["InstanceName"].isNull()) diff --git a/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.cc b/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.cc new file mode 100644 index 000000000..0fbdf4861 --- /dev/null +++ b/cms/src/model/DescribeAlertingMetricRuleResourcesRequest.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::DescribeAlertingMetricRuleResourcesRequest; + +DescribeAlertingMetricRuleResourcesRequest::DescribeAlertingMetricRuleResourcesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeAlertingMetricRuleResources") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeAlertingMetricRuleResourcesRequest::~DescribeAlertingMetricRuleResourcesRequest() +{} + +std::string DescribeAlertingMetricRuleResourcesRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeAlertingMetricRuleResourcesRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +int DescribeAlertingMetricRuleResourcesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeAlertingMetricRuleResourcesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +int DescribeAlertingMetricRuleResourcesRequest::getPage()const +{ + return page_; +} + +void DescribeAlertingMetricRuleResourcesRequest::setPage(int page) +{ + page_ = page; + setCoreParameter("Page", std::to_string(page)); +} + +std::string DescribeAlertingMetricRuleResourcesRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribeAlertingMetricRuleResourcesRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", ruleId); +} + diff --git a/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc b/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc new file mode 100644 index 000000000..8ff67e22c --- /dev/null +++ b/cms/src/model/DescribeAlertingMetricRuleResourcesResult.cc @@ -0,0 +1,105 @@ +/* + * 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; + +DescribeAlertingMetricRuleResourcesResult::DescribeAlertingMetricRuleResourcesResult() : + ServiceResult() +{} + +DescribeAlertingMetricRuleResourcesResult::DescribeAlertingMetricRuleResourcesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeAlertingMetricRuleResourcesResult::~DescribeAlertingMetricRuleResourcesResult() +{} + +void DescribeAlertingMetricRuleResourcesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allResourcesNode = value["Resources"]["Resource"]; + for (auto valueResourcesResource : allResourcesNode) + { + Resource resourcesObject; + if(!valueResourcesResource["RuleId"].isNull()) + resourcesObject.ruleId = valueResourcesResource["RuleId"].asString(); + if(!valueResourcesResource["RuleName"].isNull()) + resourcesObject.ruleName = valueResourcesResource["RuleName"].asString(); + if(!valueResourcesResource["GroupId"].isNull()) + resourcesObject.groupId = valueResourcesResource["GroupId"].asString(); + if(!valueResourcesResource["Resource"].isNull()) + resourcesObject.resource = valueResourcesResource["Resource"].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["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["Threshold"].isNull()) + resourcesObject.threshold = valueResourcesResource["Threshold"].asString(); + resources_.push_back(resourcesObject); + } + 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["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +std::string DescribeAlertingMetricRuleResourcesResult::getMessage()const +{ + return message_; +} + +int DescribeAlertingMetricRuleResourcesResult::getTotal()const +{ + return total_; +} + +std::vector DescribeAlertingMetricRuleResourcesResult::getResources()const +{ + return resources_; +} + +int DescribeAlertingMetricRuleResourcesResult::getCode()const +{ + return code_; +} + +bool DescribeAlertingMetricRuleResourcesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeContactGroupListRequest.cc b/cms/src/model/DescribeContactGroupListRequest.cc new file mode 100644 index 000000000..fa1bd3370 --- /dev/null +++ b/cms/src/model/DescribeContactGroupListRequest.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::DescribeContactGroupListRequest; + +DescribeContactGroupListRequest::DescribeContactGroupListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeContactGroupList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeContactGroupListRequest::~DescribeContactGroupListRequest() +{} + +int DescribeContactGroupListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeContactGroupListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeContactGroupListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeContactGroupListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/cms/src/model/ListContactGroupResult.cc b/cms/src/model/DescribeContactGroupListResult.cc similarity index 67% rename from cms/src/model/ListContactGroupResult.cc rename to cms/src/model/DescribeContactGroupListResult.cc index 8e777a3d8..4f6f2ab42 100644 --- a/cms/src/model/ListContactGroupResult.cc +++ b/cms/src/model/DescribeContactGroupListResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListContactGroupResult::ListContactGroupResult() : +DescribeContactGroupListResult::DescribeContactGroupListResult() : ServiceResult() {} -ListContactGroupResult::ListContactGroupResult(const std::string &payload) : +DescribeContactGroupListResult::DescribeContactGroupListResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListContactGroupResult::~ListContactGroupResult() +DescribeContactGroupListResult::~DescribeContactGroupListResult() {} -void ListContactGroupResult::parse(const std::string &payload) +void DescribeContactGroupListResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,39 +48,32 @@ void ListContactGroupResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["NextToken"].isNull()) - nextToken_ = std::stoi(value["NextToken"].asString()); if(!value["Total"].isNull()) total_ = std::stoi(value["Total"].asString()); } -std::vector ListContactGroupResult::getContactGroups()const +std::vector DescribeContactGroupListResult::getContactGroups()const { return contactGroups_; } -std::string ListContactGroupResult::getMessage()const +std::string DescribeContactGroupListResult::getMessage()const { return message_; } -int ListContactGroupResult::getNextToken()const -{ - return nextToken_; -} - -int ListContactGroupResult::getTotal()const +int DescribeContactGroupListResult::getTotal()const { return total_; } -std::string ListContactGroupResult::getCode()const +std::string DescribeContactGroupListResult::getCode()const { return code_; } -bool ListContactGroupResult::getSuccess()const +bool DescribeContactGroupListResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeContactListByContactGroupRequest.cc b/cms/src/model/DescribeContactListByContactGroupRequest.cc new file mode 100644 index 000000000..77f782afd --- /dev/null +++ b/cms/src/model/DescribeContactListByContactGroupRequest.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::DescribeContactListByContactGroupRequest; + +DescribeContactListByContactGroupRequest::DescribeContactListByContactGroupRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeContactListByContactGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeContactListByContactGroupRequest::~DescribeContactListByContactGroupRequest() +{} + +std::string DescribeContactListByContactGroupRequest::getContactGroupName()const +{ + return contactGroupName_; +} + +void DescribeContactListByContactGroupRequest::setContactGroupName(const std::string& contactGroupName) +{ + contactGroupName_ = contactGroupName; + setCoreParameter("ContactGroupName", contactGroupName); +} + diff --git a/cms/src/model/DescribeContactListByContactGroupResult.cc b/cms/src/model/DescribeContactListByContactGroupResult.cc new file mode 100644 index 000000000..7f0484ba1 --- /dev/null +++ b/cms/src/model/DescribeContactListByContactGroupResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeContactListByContactGroupResult::DescribeContactListByContactGroupResult() : + ServiceResult() +{} + +DescribeContactListByContactGroupResult::DescribeContactListByContactGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeContactListByContactGroupResult::~DescribeContactListByContactGroupResult() +{} + +void DescribeContactListByContactGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allContactsNode = value["Contacts"]["Contact"]; + for (auto valueContactsContact : allContactsNode) + { + Contact contactsObject; + if(!valueContactsContact["Name"].isNull()) + contactsObject.name = valueContactsContact["Name"].asString(); + if(!valueContactsContact["Desc"].isNull()) + contactsObject.desc = valueContactsContact["Desc"].asString(); + if(!valueContactsContact["CreateTime"].isNull()) + contactsObject.createTime = std::stol(valueContactsContact["CreateTime"].asString()); + if(!valueContactsContact["UpdateTime"].isNull()) + contactsObject.updateTime = std::stol(valueContactsContact["UpdateTime"].asString()); + auto channelsNode = value["Channels"]; + if(!channelsNode["SMS"].isNull()) + contactsObject.channels.sMS = channelsNode["SMS"].asString(); + if(!channelsNode["Mail"].isNull()) + contactsObject.channels.mail = channelsNode["Mail"].asString(); + if(!channelsNode["AliIM"].isNull()) + contactsObject.channels.aliIM = channelsNode["AliIM"].asString(); + if(!channelsNode["DingWebHook"].isNull()) + contactsObject.channels.dingWebHook = channelsNode["DingWebHook"].asString(); + contacts_.push_back(contactsObject); + } + 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::vector DescribeContactListByContactGroupResult::getContacts()const +{ + return contacts_; +} + +std::string DescribeContactListByContactGroupResult::getMessage()const +{ + return message_; +} + +std::string DescribeContactListByContactGroupResult::getCode()const +{ + return code_; +} + +bool DescribeContactListByContactGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeContactListRequest.cc b/cms/src/model/DescribeContactListRequest.cc new file mode 100644 index 000000000..72dd089d9 --- /dev/null +++ b/cms/src/model/DescribeContactListRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeContactListRequest; + +DescribeContactListRequest::DescribeContactListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeContactList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeContactListRequest::~DescribeContactListRequest() +{} + +int DescribeContactListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeContactListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeContactListRequest::getContactName()const +{ + return contactName_; +} + +void DescribeContactListRequest::setContactName(const std::string& contactName) +{ + contactName_ = contactName; + setCoreParameter("ContactName", contactName); +} + +int DescribeContactListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeContactListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/cms/src/model/DescribeContactListResult.cc b/cms/src/model/DescribeContactListResult.cc new file mode 100644 index 000000000..240d89f2e --- /dev/null +++ b/cms/src/model/DescribeContactListResult.cc @@ -0,0 +1,100 @@ +/* + * 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; + +DescribeContactListResult::DescribeContactListResult() : + ServiceResult() +{} + +DescribeContactListResult::DescribeContactListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeContactListResult::~DescribeContactListResult() +{} + +void DescribeContactListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allContactsNode = value["Contacts"]["Contact"]; + for (auto valueContactsContact : allContactsNode) + { + Contact contactsObject; + if(!valueContactsContact["Name"].isNull()) + contactsObject.name = valueContactsContact["Name"].asString(); + if(!valueContactsContact["Desc"].isNull()) + contactsObject.desc = valueContactsContact["Desc"].asString(); + if(!valueContactsContact["CreateTime"].isNull()) + contactsObject.createTime = std::stol(valueContactsContact["CreateTime"].asString()); + if(!valueContactsContact["UpdateTime"].isNull()) + contactsObject.updateTime = std::stol(valueContactsContact["UpdateTime"].asString()); + auto channelsNode = value["Channels"]; + if(!channelsNode["SMS"].isNull()) + contactsObject.channels.sMS = channelsNode["SMS"].asString(); + if(!channelsNode["Mail"].isNull()) + contactsObject.channels.mail = channelsNode["Mail"].asString(); + if(!channelsNode["AliIM"].isNull()) + contactsObject.channels.aliIM = channelsNode["AliIM"].asString(); + if(!channelsNode["DingWebHook"].isNull()) + contactsObject.channels.dingWebHook = channelsNode["DingWebHook"].asString(); + contacts_.push_back(contactsObject); + } + 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(); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +std::vector DescribeContactListResult::getContacts()const +{ + return contacts_; +} + +std::string DescribeContactListResult::getMessage()const +{ + return message_; +} + +int DescribeContactListResult::getTotal()const +{ + return total_; +} + +std::string DescribeContactListResult::getCode()const +{ + return code_; +} + +bool DescribeContactListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeContactResult.cc b/cms/src/model/DescribeContactResult.cc deleted file mode 100644 index e11cdbb81..000000000 --- a/cms/src/model/DescribeContactResult.cc +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cms; -using namespace AlibabaCloud::Cms::Model; - -DescribeContactResult::DescribeContactResult() : - ServiceResult() -{} - -DescribeContactResult::DescribeContactResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeContactResult::~DescribeContactResult() -{} - -void DescribeContactResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto datapointsNode = value["Datapoints"]; - if(!datapointsNode["Name"].isNull()) - datapoints_.name = datapointsNode["Name"].asString(); - auto allChannelsNode = datapointsNode["Channels"]["Channel"]; - for (auto datapointsNodeChannelsChannel : allChannelsNode) - { - Datapoints::Channel channelObject; - if(!datapointsNodeChannelsChannel["Type"].isNull()) - channelObject.type = datapointsNodeChannelsChannel["Type"].asString(); - if(!datapointsNodeChannelsChannel["Value"].isNull()) - channelObject.value = datapointsNodeChannelsChannel["Value"].asString(); - datapoints_.channels.push_back(channelObject); - } - 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(); - -} - -std::string DescribeContactResult::getMessage()const -{ - return message_; -} - -DescribeContactResult::Datapoints DescribeContactResult::getDatapoints()const -{ - return datapoints_; -} - -int DescribeContactResult::getCode()const -{ - return code_; -} - -bool DescribeContactResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DescribeCustomEventAttributeRequest.cc b/cms/src/model/DescribeCustomEventAttributeRequest.cc new file mode 100644 index 000000000..5fc93ca59 --- /dev/null +++ b/cms/src/model/DescribeCustomEventAttributeRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::DescribeCustomEventAttributeRequest; + +DescribeCustomEventAttributeRequest::DescribeCustomEventAttributeRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeCustomEventAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeCustomEventAttributeRequest::~DescribeCustomEventAttributeRequest() +{} + +std::string DescribeCustomEventAttributeRequest::getEventId()const +{ + return eventId_; +} + +void DescribeCustomEventAttributeRequest::setEventId(const std::string& eventId) +{ + eventId_ = eventId; + setCoreParameter("EventId", eventId); +} + +std::string DescribeCustomEventAttributeRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeCustomEventAttributeRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeCustomEventAttributeRequest::getSearchKeywords()const +{ + return searchKeywords_; +} + +void DescribeCustomEventAttributeRequest::setSearchKeywords(const std::string& searchKeywords) +{ + searchKeywords_ = searchKeywords; + setCoreParameter("SearchKeywords", searchKeywords); +} + +int DescribeCustomEventAttributeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCustomEventAttributeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeCustomEventAttributeRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCustomEventAttributeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeCustomEventAttributeRequest::getLevel()const +{ + return level_; +} + +void DescribeCustomEventAttributeRequest::setLevel(const std::string& level) +{ + level_ = level; + setCoreParameter("Level", level); +} + +std::string DescribeCustomEventAttributeRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeCustomEventAttributeRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeCustomEventAttributeRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeCustomEventAttributeRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeCustomEventAttributeRequest::getName()const +{ + return name_; +} + +void DescribeCustomEventAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/cms/src/model/DescribeCustomEventAttributeResult.cc b/cms/src/model/DescribeCustomEventAttributeResult.cc new file mode 100644 index 000000000..f141dbc65 --- /dev/null +++ b/cms/src/model/DescribeCustomEventAttributeResult.cc @@ -0,0 +1,86 @@ +/* + * 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; + +DescribeCustomEventAttributeResult::DescribeCustomEventAttributeResult() : + ServiceResult() +{} + +DescribeCustomEventAttributeResult::DescribeCustomEventAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomEventAttributeResult::~DescribeCustomEventAttributeResult() +{} + +void DescribeCustomEventAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCustomEventsNode = value["CustomEvents"]["CustomEvent"]; + for (auto valueCustomEventsCustomEvent : allCustomEventsNode) + { + CustomEvent customEventsObject; + if(!valueCustomEventsCustomEvent["Id"].isNull()) + customEventsObject.id = valueCustomEventsCustomEvent["Id"].asString(); + if(!valueCustomEventsCustomEvent["Content"].isNull()) + customEventsObject.content = valueCustomEventsCustomEvent["Content"].asString(); + if(!valueCustomEventsCustomEvent["GroupId"].isNull()) + customEventsObject.groupId = valueCustomEventsCustomEvent["GroupId"].asString(); + if(!valueCustomEventsCustomEvent["Name"].isNull()) + customEventsObject.name = valueCustomEventsCustomEvent["Name"].asString(); + if(!valueCustomEventsCustomEvent["Time"].isNull()) + customEventsObject.time = valueCustomEventsCustomEvent["Time"].asString(); + customEvents_.push_back(customEventsObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::vector DescribeCustomEventAttributeResult::getCustomEvents()const +{ + return customEvents_; +} + +std::string DescribeCustomEventAttributeResult::getMessage()const +{ + return message_; +} + +std::string DescribeCustomEventAttributeResult::getCode()const +{ + return code_; +} + +std::string DescribeCustomEventAttributeResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeCustomEventCountRequest.cc b/cms/src/model/DescribeCustomEventCountRequest.cc new file mode 100644 index 000000000..7455c7c14 --- /dev/null +++ b/cms/src/model/DescribeCustomEventCountRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::DescribeCustomEventCountRequest; + +DescribeCustomEventCountRequest::DescribeCustomEventCountRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeCustomEventCount") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeCustomEventCountRequest::~DescribeCustomEventCountRequest() +{} + +std::string DescribeCustomEventCountRequest::getEventId()const +{ + return eventId_; +} + +void DescribeCustomEventCountRequest::setEventId(const std::string& eventId) +{ + eventId_ = eventId; + setCoreParameter("EventId", eventId); +} + +std::string DescribeCustomEventCountRequest::getLevel()const +{ + return level_; +} + +void DescribeCustomEventCountRequest::setLevel(const std::string& level) +{ + level_ = level; + setCoreParameter("Level", level); +} + +std::string DescribeCustomEventCountRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeCustomEventCountRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeCustomEventCountRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeCustomEventCountRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeCustomEventCountRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeCustomEventCountRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeCustomEventCountRequest::getSearchKeywords()const +{ + return searchKeywords_; +} + +void DescribeCustomEventCountRequest::setSearchKeywords(const std::string& searchKeywords) +{ + searchKeywords_ = searchKeywords; + setCoreParameter("SearchKeywords", searchKeywords); +} + +std::string DescribeCustomEventCountRequest::getName()const +{ + return name_; +} + +void DescribeCustomEventCountRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/cms/src/model/DescribeCustomEventCountResult.cc b/cms/src/model/DescribeCustomEventCountResult.cc new file mode 100644 index 000000000..13d5fcde0 --- /dev/null +++ b/cms/src/model/DescribeCustomEventCountResult.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; + +DescribeCustomEventCountResult::DescribeCustomEventCountResult() : + ServiceResult() +{} + +DescribeCustomEventCountResult::DescribeCustomEventCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomEventCountResult::~DescribeCustomEventCountResult() +{} + +void DescribeCustomEventCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allCustomEventCountsNode = value["CustomEventCounts"]["CustomEventCount"]; + for (auto valueCustomEventCountsCustomEventCount : allCustomEventCountsNode) + { + CustomEventCount customEventCountsObject; + if(!valueCustomEventCountsCustomEventCount["Name"].isNull()) + customEventCountsObject.name = valueCustomEventCountsCustomEventCount["Name"].asString(); + if(!valueCustomEventCountsCustomEventCount["Num"].isNull()) + customEventCountsObject.num = std::stoi(valueCustomEventCountsCustomEventCount["Num"].asString()); + if(!valueCustomEventCountsCustomEventCount["Time"].isNull()) + customEventCountsObject.time = std::stol(valueCustomEventCountsCustomEventCount["Time"].asString()); + customEventCounts_.push_back(customEventCountsObject); + } + 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::vector DescribeCustomEventCountResult::getCustomEventCounts()const +{ + return customEventCounts_; +} + +std::string DescribeCustomEventCountResult::getMessage()const +{ + return message_; +} + +std::string DescribeCustomEventCountResult::getCode()const +{ + return code_; +} + +bool DescribeCustomEventCountResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeCustomEventHistogramRequest.cc b/cms/src/model/DescribeCustomEventHistogramRequest.cc new file mode 100644 index 000000000..75df245d4 --- /dev/null +++ b/cms/src/model/DescribeCustomEventHistogramRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::DescribeCustomEventHistogramRequest; + +DescribeCustomEventHistogramRequest::DescribeCustomEventHistogramRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeCustomEventHistogram") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeCustomEventHistogramRequest::~DescribeCustomEventHistogramRequest() +{} + +std::string DescribeCustomEventHistogramRequest::getEventId()const +{ + return eventId_; +} + +void DescribeCustomEventHistogramRequest::setEventId(const std::string& eventId) +{ + eventId_ = eventId; + setCoreParameter("EventId", eventId); +} + +std::string DescribeCustomEventHistogramRequest::getLevel()const +{ + return level_; +} + +void DescribeCustomEventHistogramRequest::setLevel(const std::string& level) +{ + level_ = level; + setCoreParameter("Level", level); +} + +std::string DescribeCustomEventHistogramRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeCustomEventHistogramRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeCustomEventHistogramRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeCustomEventHistogramRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeCustomEventHistogramRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeCustomEventHistogramRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeCustomEventHistogramRequest::getSearchKeywords()const +{ + return searchKeywords_; +} + +void DescribeCustomEventHistogramRequest::setSearchKeywords(const std::string& searchKeywords) +{ + searchKeywords_ = searchKeywords; + setCoreParameter("SearchKeywords", searchKeywords); +} + +std::string DescribeCustomEventHistogramRequest::getName()const +{ + return name_; +} + +void DescribeCustomEventHistogramRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + diff --git a/cms/src/model/DescribeCustomEventHistogramResult.cc b/cms/src/model/DescribeCustomEventHistogramResult.cc new file mode 100644 index 000000000..3d418cb48 --- /dev/null +++ b/cms/src/model/DescribeCustomEventHistogramResult.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; + +DescribeCustomEventHistogramResult::DescribeCustomEventHistogramResult() : + ServiceResult() +{} + +DescribeCustomEventHistogramResult::DescribeCustomEventHistogramResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeCustomEventHistogramResult::~DescribeCustomEventHistogramResult() +{} + +void DescribeCustomEventHistogramResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEventHistogramsNode = value["EventHistograms"]["EventHistogram"]; + for (auto valueEventHistogramsEventHistogram : allEventHistogramsNode) + { + EventHistogram eventHistogramsObject; + if(!valueEventHistogramsEventHistogram["Count"].isNull()) + eventHistogramsObject.count = std::stol(valueEventHistogramsEventHistogram["Count"].asString()); + if(!valueEventHistogramsEventHistogram["StartTime"].isNull()) + eventHistogramsObject.startTime = std::stol(valueEventHistogramsEventHistogram["StartTime"].asString()); + if(!valueEventHistogramsEventHistogram["EndTime"].isNull()) + eventHistogramsObject.endTime = std::stol(valueEventHistogramsEventHistogram["EndTime"].asString()); + eventHistograms_.push_back(eventHistogramsObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string DescribeCustomEventHistogramResult::getMessage()const +{ + return message_; +} + +std::vector DescribeCustomEventHistogramResult::getEventHistograms()const +{ + return eventHistograms_; +} + +std::string DescribeCustomEventHistogramResult::getCode()const +{ + return code_; +} + +std::string DescribeCustomEventHistogramResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeCustomMetricListRequest.cc b/cms/src/model/DescribeCustomMetricListRequest.cc new file mode 100644 index 000000000..57ab05837 --- /dev/null +++ b/cms/src/model/DescribeCustomMetricListRequest.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::DescribeCustomMetricListRequest; + +DescribeCustomMetricListRequest::DescribeCustomMetricListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeCustomMetricList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeCustomMetricListRequest::~DescribeCustomMetricListRequest() +{} + +std::string DescribeCustomMetricListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeCustomMetricListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeCustomMetricListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeCustomMetricListRequest::setPageNumber(const std::string& pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", pageNumber); +} + +std::string DescribeCustomMetricListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeCustomMetricListRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +std::string DescribeCustomMetricListRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeCustomMetricListRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeCustomMetricListRequest::getDimension()const +{ + return dimension_; +} + +void DescribeCustomMetricListRequest::setDimension(const std::string& dimension) +{ + dimension_ = dimension; + setCoreParameter("Dimension", dimension); +} + +std::string DescribeCustomMetricListRequest::getMd5()const +{ + return md5_; +} + +void DescribeCustomMetricListRequest::setMd5(const std::string& md5) +{ + md5_ = md5; + setCoreParameter("Md5", md5); +} + diff --git a/cms/src/model/QueryCustomMetricListResult.cc b/cms/src/model/DescribeCustomMetricListResult.cc similarity index 68% rename from cms/src/model/QueryCustomMetricListResult.cc rename to cms/src/model/DescribeCustomMetricListResult.cc index 57db4b56b..d07b6246b 100644 --- a/cms/src/model/QueryCustomMetricListResult.cc +++ b/cms/src/model/DescribeCustomMetricListResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QueryCustomMetricListResult::QueryCustomMetricListResult() : +DescribeCustomMetricListResult::DescribeCustomMetricListResult() : ServiceResult() {} -QueryCustomMetricListResult::QueryCustomMetricListResult(const std::string &payload) : +DescribeCustomMetricListResult::DescribeCustomMetricListResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryCustomMetricListResult::~QueryCustomMetricListResult() +DescribeCustomMetricListResult::~DescribeCustomMetricListResult() {} -void QueryCustomMetricListResult::parse(const std::string &payload) +void DescribeCustomMetricListResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void QueryCustomMetricListResult::parse(const std::string &payload) } -std::string QueryCustomMetricListResult::getMessage()const +std::string DescribeCustomMetricListResult::getMessage()const { return message_; } -std::string QueryCustomMetricListResult::getCode()const +std::string DescribeCustomMetricListResult::getCode()const { return code_; } -std::string QueryCustomMetricListResult::getResult()const +std::string DescribeCustomMetricListResult::getResult()const { return result_; } diff --git a/cms/src/model/DescribeEventRuleRequest.cc b/cms/src/model/DescribeEventRuleAttributeRequest.cc similarity index 56% rename from cms/src/model/DescribeEventRuleRequest.cc rename to cms/src/model/DescribeEventRuleAttributeRequest.cc index 28e87e8e6..776ecb7ff 100644 --- a/cms/src/model/DescribeEventRuleRequest.cc +++ b/cms/src/model/DescribeEventRuleAttributeRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DescribeEventRuleRequest; +using AlibabaCloud::Cms::Model::DescribeEventRuleAttributeRequest; -DescribeEventRuleRequest::DescribeEventRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeEventRule") +DescribeEventRuleAttributeRequest::DescribeEventRuleAttributeRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleAttribute") +{ + setMethod(HttpRequest::Method::Put); +} + +DescribeEventRuleAttributeRequest::~DescribeEventRuleAttributeRequest() {} -DescribeEventRuleRequest::~DescribeEventRuleRequest() -{} - -std::string DescribeEventRuleRequest::getRuleName()const +std::string DescribeEventRuleAttributeRequest::getRuleName()const { return ruleName_; } -void DescribeEventRuleRequest::setRuleName(const std::string& ruleName) +void DescribeEventRuleAttributeRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; setCoreParameter("RuleName", ruleName); diff --git a/cms/src/model/DescribeEventRuleResult.cc b/cms/src/model/DescribeEventRuleAttributeResult.cc similarity index 78% rename from cms/src/model/DescribeEventRuleResult.cc rename to cms/src/model/DescribeEventRuleAttributeResult.cc index ee0f02fec..5e3064300 100644 --- a/cms/src/model/DescribeEventRuleResult.cc +++ b/cms/src/model/DescribeEventRuleAttributeResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DescribeEventRuleResult::DescribeEventRuleResult() : +DescribeEventRuleAttributeResult::DescribeEventRuleAttributeResult() : ServiceResult() {} -DescribeEventRuleResult::DescribeEventRuleResult(const std::string &payload) : +DescribeEventRuleAttributeResult::DescribeEventRuleAttributeResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeEventRuleResult::~DescribeEventRuleResult() +DescribeEventRuleAttributeResult::~DescribeEventRuleAttributeResult() {} -void DescribeEventRuleResult::parse(const std::string &payload) +void DescribeEventRuleAttributeResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -71,22 +71,22 @@ void DescribeEventRuleResult::parse(const std::string &payload) } -std::string DescribeEventRuleResult::getMessage()const +std::string DescribeEventRuleAttributeResult::getMessage()const { return message_; } -std::string DescribeEventRuleResult::getCode()const +std::string DescribeEventRuleAttributeResult::getCode()const { return code_; } -bool DescribeEventRuleResult::getSuccess()const +bool DescribeEventRuleAttributeResult::getSuccess()const { return success_; } -DescribeEventRuleResult::Result DescribeEventRuleResult::getResult()const +DescribeEventRuleAttributeResult::Result DescribeEventRuleAttributeResult::getResult()const { return result_; } diff --git a/cms/src/model/DescribeEventRuleListRequest.cc b/cms/src/model/DescribeEventRuleListRequest.cc new file mode 100644 index 000000000..859e7fa4e --- /dev/null +++ b/cms/src/model/DescribeEventRuleListRequest.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::DescribeEventRuleListRequest; + +DescribeEventRuleListRequest::DescribeEventRuleListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleList") +{ + setMethod(HttpRequest::Method::Put); +} + +DescribeEventRuleListRequest::~DescribeEventRuleListRequest() +{} + +std::string DescribeEventRuleListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeEventRuleListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeEventRuleListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeEventRuleListRequest::setPageNumber(const std::string& pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", pageNumber); +} + +std::string DescribeEventRuleListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeEventRuleListRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +std::string DescribeEventRuleListRequest::getNamePrefix()const +{ + return namePrefix_; +} + +void DescribeEventRuleListRequest::setNamePrefix(const std::string& namePrefix) +{ + namePrefix_ = namePrefix; + setCoreParameter("NamePrefix", namePrefix); +} + diff --git a/cms/src/model/DescribeEventRuleListResult.cc b/cms/src/model/DescribeEventRuleListResult.cc new file mode 100644 index 000000000..1b66cc8c4 --- /dev/null +++ b/cms/src/model/DescribeEventRuleListResult.cc @@ -0,0 +1,110 @@ +/* + * 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; + +DescribeEventRuleListResult::DescribeEventRuleListResult() : + ServiceResult() +{} + +DescribeEventRuleListResult::DescribeEventRuleListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeEventRuleListResult::~DescribeEventRuleListResult() +{} + +void DescribeEventRuleListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allEventRulesNode = value["EventRules"]["EventRule"]; + for (auto valueEventRulesEventRule : allEventRulesNode) + { + EventRule eventRulesObject; + if(!valueEventRulesEventRule["Name"].isNull()) + eventRulesObject.name = valueEventRulesEventRule["Name"].asString(); + if(!valueEventRulesEventRule["GroupId"].isNull()) + eventRulesObject.groupId = valueEventRulesEventRule["GroupId"].asString(); + if(!valueEventRulesEventRule["EventType"].isNull()) + eventRulesObject.eventType = valueEventRulesEventRule["EventType"].asString(); + if(!valueEventRulesEventRule["State"].isNull()) + eventRulesObject.state = valueEventRulesEventRule["State"].asString(); + if(!valueEventRulesEventRule["Description"].isNull()) + eventRulesObject.description = valueEventRulesEventRule["Description"].asString(); + auto allEventPatternNode = allEventRulesNode["EventPattern"]["EventPatternItem"]; + for (auto allEventRulesNodeEventPatternEventPatternItem : allEventPatternNode) + { + EventRule::EventPatternItem eventPatternObject; + if(!allEventRulesNodeEventPatternEventPatternItem["Product"].isNull()) + eventPatternObject.product = allEventRulesNodeEventPatternEventPatternItem["Product"].asString(); + auto allNameList = value["NameList"]["NameList"]; + for (auto value : allNameList) + eventPatternObject.nameList.push_back(value.asString()); + auto allLevelList = value["LevelList"]["LevelList"]; + for (auto value : allLevelList) + eventPatternObject.levelList.push_back(value.asString()); + auto allEventTypeList = value["EventTypeList"]["EventTypeList"]; + for (auto value : allEventTypeList) + eventPatternObject.eventTypeList.push_back(value.asString()); + eventRulesObject.eventPattern.push_back(eventPatternObject); + } + eventRules_.push_back(eventRulesObject); + } + 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(); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +std::string DescribeEventRuleListResult::getMessage()const +{ + return message_; +} + +int DescribeEventRuleListResult::getTotal()const +{ + return total_; +} + +std::vector DescribeEventRuleListResult::getEventRules()const +{ + return eventRules_; +} + +std::string DescribeEventRuleListResult::getCode()const +{ + return code_; +} + +bool DescribeEventRuleListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListEventTargetsByRuleRequest.cc b/cms/src/model/DescribeEventRuleTargetListRequest.cc similarity index 56% rename from cms/src/model/ListEventTargetsByRuleRequest.cc rename to cms/src/model/DescribeEventRuleTargetListRequest.cc index 81c4994a5..9421c6b47 100644 --- a/cms/src/model/ListEventTargetsByRuleRequest.cc +++ b/cms/src/model/DescribeEventRuleTargetListRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::ListEventTargetsByRuleRequest; +using AlibabaCloud::Cms::Model::DescribeEventRuleTargetListRequest; -ListEventTargetsByRuleRequest::ListEventTargetsByRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListEventTargetsByRule") +DescribeEventRuleTargetListRequest::DescribeEventRuleTargetListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeEventRuleTargetList") +{ + setMethod(HttpRequest::Method::Put); +} + +DescribeEventRuleTargetListRequest::~DescribeEventRuleTargetListRequest() {} -ListEventTargetsByRuleRequest::~ListEventTargetsByRuleRequest() -{} - -std::string ListEventTargetsByRuleRequest::getRuleName()const +std::string DescribeEventRuleTargetListRequest::getRuleName()const { return ruleName_; } -void ListEventTargetsByRuleRequest::setRuleName(const std::string& ruleName) +void DescribeEventRuleTargetListRequest::setRuleName(const std::string& ruleName) { ruleName_ = ruleName; setCoreParameter("RuleName", ruleName); diff --git a/cms/src/model/ListEventTargetsByRuleResult.cc b/cms/src/model/DescribeEventRuleTargetListResult.cc similarity index 77% rename from cms/src/model/ListEventTargetsByRuleResult.cc rename to cms/src/model/DescribeEventRuleTargetListResult.cc index 78866b16c..fb1321d15 100644 --- a/cms/src/model/ListEventTargetsByRuleResult.cc +++ b/cms/src/model/DescribeEventRuleTargetListResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListEventTargetsByRuleResult::ListEventTargetsByRuleResult() : +DescribeEventRuleTargetListResult::DescribeEventRuleTargetListResult() : ServiceResult() {} -ListEventTargetsByRuleResult::ListEventTargetsByRuleResult(const std::string &payload) : +DescribeEventRuleTargetListResult::DescribeEventRuleTargetListResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListEventTargetsByRuleResult::~ListEventTargetsByRuleResult() +DescribeEventRuleTargetListResult::~DescribeEventRuleTargetListResult() {} -void ListEventTargetsByRuleResult::parse(const std::string &payload) +void DescribeEventRuleTargetListResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -63,6 +63,8 @@ void ListEventTargetsByRuleResult::parse(const std::string &payload) fcParametersObject.functionName = valueFcParametersFCParameter["FunctionName"].asString(); if(!valueFcParametersFCParameter["Id"].isNull()) fcParametersObject.id = valueFcParametersFCParameter["Id"].asString(); + if(!valueFcParametersFCParameter["Arn"].isNull()) + fcParametersObject.arn = valueFcParametersFCParameter["Arn"].asString(); fcParameters_.push_back(fcParametersObject); } auto allMnsParametersNode = value["MnsParameters"]["MnsParameter"]; @@ -75,6 +77,8 @@ void ListEventTargetsByRuleResult::parse(const std::string &payload) mnsParametersObject.queue = valueMnsParametersMnsParameter["Queue"].asString(); if(!valueMnsParametersMnsParameter["Id"].isNull()) mnsParametersObject.id = valueMnsParametersMnsParameter["Id"].asString(); + if(!valueMnsParametersMnsParameter["Arn"].isNull()) + mnsParametersObject.arn = valueMnsParametersMnsParameter["Arn"].asString(); mnsParameters_.push_back(mnsParametersObject); } auto allWebhookParametersNode = value["WebhookParameters"]["WebhookParameter"]; @@ -103,53 +107,48 @@ void ListEventTargetsByRuleResult::parse(const std::string &payload) slsParametersObject.project = valueSlsParametersSlsParameter["Project"].asString(); if(!valueSlsParametersSlsParameter["LogStore"].isNull()) slsParametersObject.logStore = valueSlsParametersSlsParameter["LogStore"].asString(); + if(!valueSlsParametersSlsParameter["Arn"].isNull()) + slsParametersObject.arn = valueSlsParametersSlsParameter["Arn"].asString(); slsParameters_.push_back(slsParametersObject); } if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["ParameterCount"].isNull()) - parameterCount_ = std::stoi(value["ParameterCount"].asString()); } -int ListEventTargetsByRuleResult::getParameterCount()const -{ - return parameterCount_; -} - -std::vector ListEventTargetsByRuleResult::getContactParameters()const +std::vector DescribeEventRuleTargetListResult::getContactParameters()const { return contactParameters_; } -std::string ListEventTargetsByRuleResult::getMessage()const +std::string DescribeEventRuleTargetListResult::getMessage()const { return message_; } -std::vector ListEventTargetsByRuleResult::getSlsParameters()const +std::vector DescribeEventRuleTargetListResult::getSlsParameters()const { return slsParameters_; } -std::vector ListEventTargetsByRuleResult::getWebhookParameters()const +std::vector DescribeEventRuleTargetListResult::getWebhookParameters()const { return webhookParameters_; } -std::vector ListEventTargetsByRuleResult::getFcParameters()const +std::vector DescribeEventRuleTargetListResult::getFcParameters()const { return fcParameters_; } -std::string ListEventTargetsByRuleResult::getCode()const +std::string DescribeEventRuleTargetListResult::getCode()const { return code_; } -std::vector ListEventTargetsByRuleResult::getMnsParameters()const +std::vector DescribeEventRuleTargetListResult::getMnsParameters()const { return mnsParameters_; } diff --git a/cms/src/model/DescribeGroupMonitoringAgentProcessRequest.cc b/cms/src/model/DescribeGroupMonitoringAgentProcessRequest.cc new file mode 100644 index 000000000..d32737c1b --- /dev/null +++ b/cms/src/model/DescribeGroupMonitoringAgentProcessRequest.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::DescribeGroupMonitoringAgentProcessRequest; + +DescribeGroupMonitoringAgentProcessRequest::DescribeGroupMonitoringAgentProcessRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeGroupMonitoringAgentProcess") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeGroupMonitoringAgentProcessRequest::~DescribeGroupMonitoringAgentProcessRequest() +{} + +std::string DescribeGroupMonitoringAgentProcessRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeGroupMonitoringAgentProcessRequest::getProcessName()const +{ + return processName_; +} + +void DescribeGroupMonitoringAgentProcessRequest::setProcessName(const std::string& processName) +{ + processName_ = processName; + setCoreParameter("ProcessName", processName); +} + +int DescribeGroupMonitoringAgentProcessRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeGroupMonitoringAgentProcessRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeGroupMonitoringAgentProcessRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeGroupMonitoringAgentProcessRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc b/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc new file mode 100644 index 000000000..8a87856d5 --- /dev/null +++ b/cms/src/model/DescribeGroupMonitoringAgentProcessResult.cc @@ -0,0 +1,120 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeGroupMonitoringAgentProcessResult::DescribeGroupMonitoringAgentProcessResult() : + ServiceResult() +{} + +DescribeGroupMonitoringAgentProcessResult::DescribeGroupMonitoringAgentProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeGroupMonitoringAgentProcessResult::~DescribeGroupMonitoringAgentProcessResult() +{} + +void DescribeGroupMonitoringAgentProcessResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allProcessesNode = value["Processes"]["Process"]; + for (auto valueProcessesProcess : allProcessesNode) + { + Process processesObject; + if(!valueProcessesProcess["Id"].isNull()) + processesObject.id = valueProcessesProcess["Id"].asString(); + if(!valueProcessesProcess["GroupId"].isNull()) + processesObject.groupId = valueProcessesProcess["GroupId"].asString(); + if(!valueProcessesProcess["ProcessName"].isNull()) + processesObject.processName = valueProcessesProcess["ProcessName"].asString(); + if(!valueProcessesProcess["MatchExpressFilterRelation"].isNull()) + processesObject.matchExpressFilterRelation = valueProcessesProcess["MatchExpressFilterRelation"].asString(); + auto allMatchExpressNode = allProcessesNode["MatchExpress"]["MatchExpressItem"]; + for (auto allProcessesNodeMatchExpressMatchExpressItem : 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(); + processesObject.matchExpress.push_back(matchExpressObject); + } + auto allAlertConfigNode = allProcessesNode["AlertConfig"]["AlertConfigItem"]; + for (auto allProcessesNodeAlertConfigAlertConfigItem : 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(); + processesObject.alertConfig.push_back(alertConfigObject); + } + processes_.push_back(processesObject); + } + 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 DescribeGroupMonitoringAgentProcessResult::getMessage()const +{ + return message_; +} + +std::vector DescribeGroupMonitoringAgentProcessResult::getProcesses()const +{ + return processes_; +} + +std::string DescribeGroupMonitoringAgentProcessResult::getCode()const +{ + return code_; +} + +bool DescribeGroupMonitoringAgentProcessResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/TaskConfigListRequest.cc b/cms/src/model/DescribeHostAvailabilityListRequest.cc similarity index 50% rename from cms/src/model/TaskConfigListRequest.cc rename to cms/src/model/DescribeHostAvailabilityListRequest.cc index f299fe219..48d357c3e 100644 --- a/cms/src/model/TaskConfigListRequest.cc +++ b/cms/src/model/DescribeHostAvailabilityListRequest.cc @@ -14,67 +14,69 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::TaskConfigListRequest; +using AlibabaCloud::Cms::Model::DescribeHostAvailabilityListRequest; -TaskConfigListRequest::TaskConfigListRequest() : - RpcServiceRequest("cms", "2018-03-08", "TaskConfigList") +DescribeHostAvailabilityListRequest::DescribeHostAvailabilityListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeHostAvailabilityList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeHostAvailabilityListRequest::~DescribeHostAvailabilityListRequest() {} -TaskConfigListRequest::~TaskConfigListRequest() -{} - -long TaskConfigListRequest::getGroupId()const +long DescribeHostAvailabilityListRequest::getGroupId()const { return groupId_; } -void TaskConfigListRequest::setGroupId(long groupId) +void DescribeHostAvailabilityListRequest::setGroupId(long groupId) { groupId_ = groupId; setCoreParameter("GroupId", std::to_string(groupId)); } -std::string TaskConfigListRequest::getTaskName()const +std::string DescribeHostAvailabilityListRequest::getTaskName()const { return taskName_; } -void TaskConfigListRequest::setTaskName(const std::string& taskName) +void DescribeHostAvailabilityListRequest::setTaskName(const std::string& taskName) { taskName_ = taskName; setCoreParameter("TaskName", taskName); } -int TaskConfigListRequest::getPageNumber()const +int DescribeHostAvailabilityListRequest::getPageNumber()const { return pageNumber_; } -void TaskConfigListRequest::setPageNumber(int pageNumber) +void DescribeHostAvailabilityListRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setCoreParameter("PageNumber", std::to_string(pageNumber)); } -int TaskConfigListRequest::getPageSize()const +int DescribeHostAvailabilityListRequest::getPageSize()const { return pageSize_; } -void TaskConfigListRequest::setPageSize(int pageSize) +void DescribeHostAvailabilityListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setCoreParameter("PageSize", std::to_string(pageSize)); } -long TaskConfigListRequest::getId()const +long DescribeHostAvailabilityListRequest::getId()const { return id_; } -void TaskConfigListRequest::setId(long id) +void DescribeHostAvailabilityListRequest::setId(long id) { id_ = id; setCoreParameter("Id", std::to_string(id)); diff --git a/cms/src/model/DescribeHostAvailabilityListResult.cc b/cms/src/model/DescribeHostAvailabilityListResult.cc new file mode 100644 index 000000000..9dba9b316 --- /dev/null +++ b/cms/src/model/DescribeHostAvailabilityListResult.cc @@ -0,0 +1,140 @@ +/* + * 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; + +DescribeHostAvailabilityListResult::DescribeHostAvailabilityListResult() : + ServiceResult() +{} + +DescribeHostAvailabilityListResult::DescribeHostAvailabilityListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeHostAvailabilityListResult::~DescribeHostAvailabilityListResult() +{} + +void DescribeHostAvailabilityListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTaskListNode = value["TaskList"]["NodeTaskConfig"]; + for (auto valueTaskListNodeTaskConfig : allTaskListNode) + { + NodeTaskConfig taskListObject; + if(!valueTaskListNodeTaskConfig["Id"].isNull()) + taskListObject.id = std::stol(valueTaskListNodeTaskConfig["Id"].asString()); + if(!valueTaskListNodeTaskConfig["TaskName"].isNull()) + taskListObject.taskName = valueTaskListNodeTaskConfig["TaskName"].asString(); + if(!valueTaskListNodeTaskConfig["TaskType"].isNull()) + taskListObject.taskType = valueTaskListNodeTaskConfig["TaskType"].asString(); + if(!valueTaskListNodeTaskConfig["TaskScope"].isNull()) + taskListObject.taskScope = valueTaskListNodeTaskConfig["TaskScope"].asString(); + if(!valueTaskListNodeTaskConfig["Disabled"].isNull()) + taskListObject.disabled = valueTaskListNodeTaskConfig["Disabled"].asString() == "true"; + if(!valueTaskListNodeTaskConfig["GroupId"].isNull()) + taskListObject.groupId = std::stol(valueTaskListNodeTaskConfig["GroupId"].asString()); + if(!valueTaskListNodeTaskConfig["GroupName"].isNull()) + taskListObject.groupName = valueTaskListNodeTaskConfig["GroupName"].asString(); + auto taskOptionNode = value["TaskOption"]; + if(!taskOptionNode["HttpURI"].isNull()) + taskListObject.taskOption.httpURI = taskOptionNode["HttpURI"].asString(); + if(!taskOptionNode["TelnetOrPingHost"].isNull()) + taskListObject.taskOption.telnetOrPingHost = taskOptionNode["TelnetOrPingHost"].asString(); + if(!taskOptionNode["HttpResponseCharset"].isNull()) + taskListObject.taskOption.httpResponseCharset = taskOptionNode["HttpResponseCharset"].asString(); + if(!taskOptionNode["HttpKeyword"].isNull()) + taskListObject.taskOption.httpKeyword = taskOptionNode["HttpKeyword"].asString(); + if(!taskOptionNode["HttpMethod"].isNull()) + taskListObject.taskOption.httpMethod = taskOptionNode["HttpMethod"].asString(); + if(!taskOptionNode["HttpNegative"].isNull()) + taskListObject.taskOption.httpNegative = taskOptionNode["HttpNegative"].asString() == "true"; + auto alertConfigNode = value["AlertConfig"]; + if(!alertConfigNode["NotifyType"].isNull()) + taskListObject.alertConfig.notifyType = std::stoi(alertConfigNode["NotifyType"].asString()); + if(!alertConfigNode["StartTime"].isNull()) + taskListObject.alertConfig.startTime = std::stoi(alertConfigNode["StartTime"].asString()); + if(!alertConfigNode["EndTime"].isNull()) + taskListObject.alertConfig.endTime = std::stoi(alertConfigNode["EndTime"].asString()); + if(!alertConfigNode["SilenceTime"].isNull()) + taskListObject.alertConfig.silenceTime = std::stoi(alertConfigNode["SilenceTime"].asString()); + if(!alertConfigNode["WebHook"].isNull()) + taskListObject.alertConfig.webHook = alertConfigNode["WebHook"].asString(); + auto allEscalationListNode = alertConfigNode["EscalationList"]["escalationListItem"]; + for (auto alertConfigNodeEscalationListescalationListItem : allEscalationListNode) + { + NodeTaskConfig::AlertConfig::EscalationListItem escalationListItemObject; + if(!alertConfigNodeEscalationListescalationListItem["MetricName"].isNull()) + escalationListItemObject.metricName = alertConfigNodeEscalationListescalationListItem["MetricName"].asString(); + if(!alertConfigNodeEscalationListescalationListItem["Aggregate"].isNull()) + escalationListItemObject.aggregate = alertConfigNodeEscalationListescalationListItem["Aggregate"].asString(); + if(!alertConfigNodeEscalationListescalationListItem["Operator"].isNull()) + escalationListItemObject._operator = alertConfigNodeEscalationListescalationListItem["Operator"].asString(); + if(!alertConfigNodeEscalationListescalationListItem["Value"].isNull()) + escalationListItemObject.value = alertConfigNodeEscalationListescalationListItem["Value"].asString(); + if(!alertConfigNodeEscalationListescalationListItem["Times"].isNull()) + escalationListItemObject.times = alertConfigNodeEscalationListescalationListItem["Times"].asString(); + taskListObject.alertConfig.escalationList.push_back(escalationListItemObject); + } + auto allInstances = value["Instances"]["Instance"]; + for (auto value : allInstances) + taskListObject.instances.push_back(value.asString()); + taskList_.push_back(taskListObject); + } + 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()); + +} + +std::string DescribeHostAvailabilityListResult::getMessage()const +{ + return message_; +} + +std::vector DescribeHostAvailabilityListResult::getTaskList()const +{ + return taskList_; +} + +int DescribeHostAvailabilityListResult::getTotal()const +{ + return total_; +} + +std::string DescribeHostAvailabilityListResult::getCode()const +{ + return code_; +} + +bool DescribeHostAvailabilityListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeISPAreaCityRequest.cc b/cms/src/model/DescribeISPAreaCityRequest.cc deleted file mode 100644 index a94f2e0fa..000000000 --- a/cms/src/model/DescribeISPAreaCityRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::DescribeISPAreaCityRequest; - -DescribeISPAreaCityRequest::DescribeISPAreaCityRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeISPAreaCity") -{} - -DescribeISPAreaCityRequest::~DescribeISPAreaCityRequest() -{} - -std::string DescribeISPAreaCityRequest::getCity()const -{ - return city_; -} - -void DescribeISPAreaCityRequest::setCity(const std::string& city) -{ - city_ = city; - setCoreParameter("City", city); -} - -std::string DescribeISPAreaCityRequest::getIsp()const -{ - return isp_; -} - -void DescribeISPAreaCityRequest::setIsp(const std::string& isp) -{ - isp_ = isp; - setCoreParameter("Isp", isp); -} - diff --git a/cms/src/model/DescribeMetricDataRequest.cc b/cms/src/model/DescribeMetricDataRequest.cc new file mode 100644 index 000000000..61d2fed30 --- /dev/null +++ b/cms/src/model/DescribeMetricDataRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricDataRequest; + +DescribeMetricDataRequest::DescribeMetricDataRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricData") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMetricDataRequest::~DescribeMetricDataRequest() +{} + +std::string DescribeMetricDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeMetricDataRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string DescribeMetricDataRequest::getLength()const +{ + return length_; +} + +void DescribeMetricDataRequest::setLength(const std::string& length) +{ + length_ = length; + setCoreParameter("Length", length); +} + +std::string DescribeMetricDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeMetricDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeMetricDataRequest::getExpress()const +{ + return express_; +} + +void DescribeMetricDataRequest::setExpress(const std::string& express) +{ + express_ = express; + setCoreParameter("Express", express); +} + +std::string DescribeMetricDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeMetricDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeMetricDataRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeMetricDataRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +std::string DescribeMetricDataRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeMetricDataRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeMetricDataRequest::getDimensions()const +{ + return dimensions_; +} + +void DescribeMetricDataRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setCoreParameter("Dimensions", dimensions); +} + diff --git a/cms/src/model/QueryMetricDataResult.cc b/cms/src/model/DescribeMetricDataResult.cc similarity index 70% rename from cms/src/model/QueryMetricDataResult.cc rename to cms/src/model/DescribeMetricDataResult.cc index c20873d49..0ee3ce57c 100644 --- a/cms/src/model/QueryMetricDataResult.cc +++ b/cms/src/model/DescribeMetricDataResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QueryMetricDataResult::QueryMetricDataResult() : +DescribeMetricDataResult::DescribeMetricDataResult() : ServiceResult() {} -QueryMetricDataResult::QueryMetricDataResult(const std::string &payload) : +DescribeMetricDataResult::DescribeMetricDataResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryMetricDataResult::~QueryMetricDataResult() +DescribeMetricDataResult::~DescribeMetricDataResult() {} -void QueryMetricDataResult::parse(const std::string &payload) +void DescribeMetricDataResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -50,22 +50,22 @@ void QueryMetricDataResult::parse(const std::string &payload) } -std::string QueryMetricDataResult::getMessage()const +std::string DescribeMetricDataResult::getMessage()const { return message_; } -std::string QueryMetricDataResult::getPeriod()const +std::string DescribeMetricDataResult::getPeriod()const { return period_; } -std::string QueryMetricDataResult::getDatapoints()const +std::string DescribeMetricDataResult::getDatapoints()const { return datapoints_; } -std::string QueryMetricDataResult::getCode()const +std::string DescribeMetricDataResult::getCode()const { return code_; } diff --git a/cms/src/model/DescribeMetricLastRequest.cc b/cms/src/model/DescribeMetricLastRequest.cc new file mode 100644 index 000000000..c056806c8 --- /dev/null +++ b/cms/src/model/DescribeMetricLastRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::DescribeMetricLastRequest; + +DescribeMetricLastRequest::DescribeMetricLastRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricLast") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMetricLastRequest::~DescribeMetricLastRequest() +{} + +std::string DescribeMetricLastRequest::getExpress()const +{ + return express_; +} + +void DescribeMetricLastRequest::setExpress(const std::string& express) +{ + express_ = express; + setCoreParameter("Express", express); +} + +std::string DescribeMetricLastRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeMetricLastRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeMetricLastRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeMetricLastRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setCoreParameter("NextToken", nextToken); +} + +std::string DescribeMetricLastRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeMetricLastRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeMetricLastRequest::getPeriod()const +{ + return period_; +} + +void DescribeMetricLastRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string DescribeMetricLastRequest::getLength()const +{ + return length_; +} + +void DescribeMetricLastRequest::setLength(const std::string& length) +{ + length_ = length; + setCoreParameter("Length", length); +} + +std::string DescribeMetricLastRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeMetricLastRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeMetricLastRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeMetricLastRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +std::string DescribeMetricLastRequest::getDimensions()const +{ + return dimensions_; +} + +void DescribeMetricLastRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setCoreParameter("Dimensions", dimensions); +} + diff --git a/cms/src/model/QueryMetricListResult.cc b/cms/src/model/DescribeMetricLastResult.cc similarity index 63% rename from cms/src/model/QueryMetricListResult.cc rename to cms/src/model/DescribeMetricLastResult.cc index 1253d6f56..cc80ba7e9 100644 --- a/cms/src/model/QueryMetricListResult.cc +++ b/cms/src/model/DescribeMetricLastResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QueryMetricListResult::QueryMetricListResult() : +DescribeMetricLastResult::DescribeMetricLastResult() : ServiceResult() {} -QueryMetricListResult::QueryMetricListResult(const std::string &payload) : +DescribeMetricLastResult::DescribeMetricLastResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryMetricListResult::~QueryMetricListResult() +DescribeMetricLastResult::~DescribeMetricLastResult() {} -void QueryMetricListResult::parse(const std::string &payload) +void DescribeMetricLastResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,43 +43,43 @@ void QueryMetricListResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Cursor"].isNull()) - cursor_ = value["Cursor"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); if(!value["Datapoints"].isNull()) datapoints_ = value["Datapoints"].asString(); if(!value["Period"].isNull()) period_ = value["Period"].asString(); if(!value["Success"].isNull()) - success_ = value["Success"].asString(); + success_ = value["Success"].asString() == "true"; } -std::string QueryMetricListResult::getMessage()const +std::string DescribeMetricLastResult::getMessage()const { return message_; } -std::string QueryMetricListResult::getPeriod()const +std::string DescribeMetricLastResult::getNextToken()const +{ + return nextToken_; +} + +std::string DescribeMetricLastResult::getPeriod()const { return period_; } -std::string QueryMetricListResult::getCursor()const -{ - return cursor_; -} - -std::string QueryMetricListResult::getDatapoints()const +std::string DescribeMetricLastResult::getDatapoints()const { return datapoints_; } -std::string QueryMetricListResult::getCode()const +std::string DescribeMetricLastResult::getCode()const { return code_; } -std::string QueryMetricListResult::getSuccess()const +bool DescribeMetricLastResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeMetricListRequest.cc b/cms/src/model/DescribeMetricListRequest.cc new file mode 100644 index 000000000..12923a953 --- /dev/null +++ b/cms/src/model/DescribeMetricListRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::DescribeMetricListRequest; + +DescribeMetricListRequest::DescribeMetricListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMetricListRequest::~DescribeMetricListRequest() +{} + +std::string DescribeMetricListRequest::getExpress()const +{ + return express_; +} + +void DescribeMetricListRequest::setExpress(const std::string& express) +{ + express_ = express; + setCoreParameter("Express", express); +} + +std::string DescribeMetricListRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeMetricListRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeMetricListRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeMetricListRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setCoreParameter("NextToken", nextToken); +} + +std::string DescribeMetricListRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeMetricListRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeMetricListRequest::getPeriod()const +{ + return period_; +} + +void DescribeMetricListRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string DescribeMetricListRequest::getLength()const +{ + return length_; +} + +void DescribeMetricListRequest::setLength(const std::string& length) +{ + length_ = length; + setCoreParameter("Length", length); +} + +std::string DescribeMetricListRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeMetricListRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeMetricListRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeMetricListRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +std::string DescribeMetricListRequest::getDimensions()const +{ + return dimensions_; +} + +void DescribeMetricListRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setCoreParameter("Dimensions", dimensions); +} + diff --git a/cms/src/model/QueryMetricLastResult.cc b/cms/src/model/DescribeMetricListResult.cc similarity index 63% rename from cms/src/model/QueryMetricLastResult.cc rename to cms/src/model/DescribeMetricListResult.cc index 953d8c1bc..43db629d0 100644 --- a/cms/src/model/QueryMetricLastResult.cc +++ b/cms/src/model/DescribeMetricListResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QueryMetricLastResult::QueryMetricLastResult() : +DescribeMetricListResult::DescribeMetricListResult() : ServiceResult() {} -QueryMetricLastResult::QueryMetricLastResult(const std::string &payload) : +DescribeMetricListResult::DescribeMetricListResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryMetricLastResult::~QueryMetricLastResult() +DescribeMetricListResult::~DescribeMetricListResult() {} -void QueryMetricLastResult::parse(const std::string &payload) +void DescribeMetricListResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,43 +43,43 @@ void QueryMetricLastResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Cursor"].isNull()) - cursor_ = value["Cursor"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); if(!value["Datapoints"].isNull()) datapoints_ = value["Datapoints"].asString(); if(!value["Period"].isNull()) period_ = value["Period"].asString(); if(!value["Success"].isNull()) - success_ = value["Success"].asString(); + success_ = value["Success"].asString() == "true"; } -std::string QueryMetricLastResult::getMessage()const +std::string DescribeMetricListResult::getMessage()const { return message_; } -std::string QueryMetricLastResult::getPeriod()const +std::string DescribeMetricListResult::getNextToken()const +{ + return nextToken_; +} + +std::string DescribeMetricListResult::getPeriod()const { return period_; } -std::string QueryMetricLastResult::getCursor()const -{ - return cursor_; -} - -std::string QueryMetricLastResult::getDatapoints()const +std::string DescribeMetricListResult::getDatapoints()const { return datapoints_; } -std::string QueryMetricLastResult::getCode()const +std::string DescribeMetricListResult::getCode()const { return code_; } -std::string QueryMetricLastResult::getSuccess()const +bool DescribeMetricListResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeMetricMetaListRequest.cc b/cms/src/model/DescribeMetricMetaListRequest.cc new file mode 100644 index 000000000..50fa61acc --- /dev/null +++ b/cms/src/model/DescribeMetricMetaListRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeMetricMetaListRequest; + +DescribeMetricMetaListRequest::DescribeMetricMetaListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricMetaList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMetricMetaListRequest::~DescribeMetricMetaListRequest() +{} + +int DescribeMetricMetaListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMetricMetaListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeMetricMetaListRequest::getLabels()const +{ + return labels_; +} + +void DescribeMetricMetaListRequest::setLabels(const std::string& labels) +{ + labels_ = labels; + setCoreParameter("Labels", labels); +} + +std::string DescribeMetricMetaListRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeMetricMetaListRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +int DescribeMetricMetaListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMetricMetaListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeMetricMetaListRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeMetricMetaListRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + diff --git a/cms/src/model/QueryMetricMetaResult.cc b/cms/src/model/DescribeMetricMetaListResult.cc similarity index 62% rename from cms/src/model/QueryMetricMetaResult.cc rename to cms/src/model/DescribeMetricMetaListResult.cc index 4ecebf1dd..e9c01909f 100644 --- a/cms/src/model/QueryMetricMetaResult.cc +++ b/cms/src/model/DescribeMetricMetaListResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QueryMetricMetaResult::QueryMetricMetaResult() : +DescribeMetricMetaListResult::DescribeMetricMetaListResult() : ServiceResult() {} -QueryMetricMetaResult::QueryMetricMetaResult(const std::string &payload) : +DescribeMetricMetaListResult::DescribeMetricMetaListResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryMetricMetaResult::~QueryMetricMetaResult() +DescribeMetricMetaListResult::~DescribeMetricMetaListResult() {} -void QueryMetricMetaResult::parse(const std::string &payload) +void DescribeMetricMetaListResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,10 +43,10 @@ void QueryMetricMetaResult::parse(const std::string &payload) for (auto valueResourcesResource : allResourcesNode) { Resource resourcesObject; - if(!valueResourcesResource["Project"].isNull()) - resourcesObject.project = valueResourcesResource["Project"].asString(); - if(!valueResourcesResource["Metric"].isNull()) - resourcesObject.metric = valueResourcesResource["Metric"].asString(); + if(!valueResourcesResource["Namespace"].isNull()) + resourcesObject._namespace = valueResourcesResource["Namespace"].asString(); + if(!valueResourcesResource["MetricName"].isNull()) + resourcesObject.metricName = valueResourcesResource["MetricName"].asString(); if(!valueResourcesResource["Statistics"].isNull()) resourcesObject.statistics = valueResourcesResource["Statistics"].asString(); if(!valueResourcesResource["Unit"].isNull()) @@ -63,29 +63,36 @@ void QueryMetricMetaResult::parse(const std::string &payload) } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["TotalCount"].isNull()) + totalCount_ = value["TotalCount"].asString(); } -std::vector QueryMetricMetaResult::getResources()const +std::string DescribeMetricMetaListResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeMetricMetaListResult::getMessage()const +{ + return message_; +} + +std::vector DescribeMetricMetaListResult::getResources()const { return resources_; } -std::string QueryMetricMetaResult::getErrorCode()const +std::string DescribeMetricMetaListResult::getCode()const { - return errorCode_; + return code_; } -std::string QueryMetricMetaResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool QueryMetricMetaResult::getSuccess()const +bool DescribeMetricMetaListResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeMetricRuleCountRequest.cc b/cms/src/model/DescribeMetricRuleCountRequest.cc new file mode 100644 index 000000000..941f226a6 --- /dev/null +++ b/cms/src/model/DescribeMetricRuleCountRequest.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::DescribeMetricRuleCountRequest; + +DescribeMetricRuleCountRequest::DescribeMetricRuleCountRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleCount") +{ + setMethod(HttpRequest::Method::Get); +} + +DescribeMetricRuleCountRequest::~DescribeMetricRuleCountRequest() +{} + +std::string DescribeMetricRuleCountRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeMetricRuleCountRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +std::string DescribeMetricRuleCountRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeMetricRuleCountRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + diff --git a/cms/src/model/DescribeMetricRuleCountResult.cc b/cms/src/model/DescribeMetricRuleCountResult.cc new file mode 100644 index 000000000..bda90325a --- /dev/null +++ b/cms/src/model/DescribeMetricRuleCountResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeMetricRuleCountResult::DescribeMetricRuleCountResult() : + ServiceResult() +{} + +DescribeMetricRuleCountResult::DescribeMetricRuleCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMetricRuleCountResult::~DescribeMetricRuleCountResult() +{} + +void DescribeMetricRuleCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto metricRuleCountNode = value["MetricRuleCount"]; + if(!metricRuleCountNode["Alarm"].isNull()) + metricRuleCount_.alarm = std::stoi(metricRuleCountNode["Alarm"].asString()); + if(!metricRuleCountNode["Disable"].isNull()) + metricRuleCount_.disable = std::stoi(metricRuleCountNode["Disable"].asString()); + if(!metricRuleCountNode["Nodata"].isNull()) + metricRuleCount_.nodata = std::stoi(metricRuleCountNode["Nodata"].asString()); + if(!metricRuleCountNode["Ok"].isNull()) + metricRuleCount_.ok = std::stoi(metricRuleCountNode["Ok"].asString()); + if(!metricRuleCountNode["Total"].isNull()) + metricRuleCount_.total = std::stoi(metricRuleCountNode["Total"].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(); + +} + +DescribeMetricRuleCountResult::MetricRuleCount DescribeMetricRuleCountResult::getMetricRuleCount()const +{ + return metricRuleCount_; +} + +std::string DescribeMetricRuleCountResult::getMessage()const +{ + return message_; +} + +std::string DescribeMetricRuleCountResult::getCode()const +{ + return code_; +} + +bool DescribeMetricRuleCountResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeMetricRuleListRequest.cc b/cms/src/model/DescribeMetricRuleListRequest.cc new file mode 100644 index 000000000..fec068750 --- /dev/null +++ b/cms/src/model/DescribeMetricRuleListRequest.cc @@ -0,0 +1,139 @@ +/* + * 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::DescribeMetricRuleListRequest; + +DescribeMetricRuleListRequest::DescribeMetricRuleListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMetricRuleListRequest::~DescribeMetricRuleListRequest() +{} + +bool DescribeMetricRuleListRequest::getEnableState()const +{ + return enableState_; +} + +void DescribeMetricRuleListRequest::setEnableState(bool enableState) +{ + enableState_ = enableState; + setCoreParameter("EnableState", enableState ? "true" : "false"); +} + +std::string DescribeMetricRuleListRequest::getRuleName()const +{ + return ruleName_; +} + +void DescribeMetricRuleListRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + +std::string DescribeMetricRuleListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMetricRuleListRequest::setPageSize(const std::string& pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", pageSize); +} + +std::string DescribeMetricRuleListRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeMetricRuleListRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeMetricRuleListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeMetricRuleListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeMetricRuleListRequest::getRuleIds()const +{ + return ruleIds_; +} + +void DescribeMetricRuleListRequest::setRuleIds(const std::string& ruleIds) +{ + ruleIds_ = ruleIds; + setCoreParameter("RuleIds", ruleIds); +} + +std::string DescribeMetricRuleListRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeMetricRuleListRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +std::string DescribeMetricRuleListRequest::getAlertState()const +{ + return alertState_; +} + +void DescribeMetricRuleListRequest::setAlertState(const std::string& alertState) +{ + alertState_ = alertState; + setCoreParameter("AlertState", alertState); +} + +std::string DescribeMetricRuleListRequest::getPage()const +{ + return page_; +} + +void DescribeMetricRuleListRequest::setPage(const std::string& page) +{ + page_ = page; + setCoreParameter("Page", page); +} + +std::string DescribeMetricRuleListRequest::getDimensions()const +{ + return dimensions_; +} + +void DescribeMetricRuleListRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setCoreParameter("Dimensions", dimensions); +} + diff --git a/cms/src/model/DescribeMetricRuleListResult.cc b/cms/src/model/DescribeMetricRuleListResult.cc new file mode 100644 index 000000000..096dad7f5 --- /dev/null +++ b/cms/src/model/DescribeMetricRuleListResult.cc @@ -0,0 +1,147 @@ +/* + * 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; + +DescribeMetricRuleListResult::DescribeMetricRuleListResult() : + ServiceResult() +{} + +DescribeMetricRuleListResult::DescribeMetricRuleListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMetricRuleListResult::~DescribeMetricRuleListResult() +{} + +void DescribeMetricRuleListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allAlarmsNode = value["Alarms"]["Alarm"]; + for (auto valueAlarmsAlarm : allAlarmsNode) + { + Alarm alarmsObject; + if(!valueAlarmsAlarm["RuleId"].isNull()) + alarmsObject.ruleId = valueAlarmsAlarm["RuleId"].asString(); + if(!valueAlarmsAlarm["Namespace"].isNull()) + alarmsObject._namespace = valueAlarmsAlarm["Namespace"].asString(); + if(!valueAlarmsAlarm["MetricName"].isNull()) + alarmsObject.metricName = valueAlarmsAlarm["MetricName"].asString(); + if(!valueAlarmsAlarm["Period"].isNull()) + alarmsObject.period = valueAlarmsAlarm["Period"].asString(); + if(!valueAlarmsAlarm["EffectiveInterval"].isNull()) + alarmsObject.effectiveInterval = valueAlarmsAlarm["EffectiveInterval"].asString(); + if(!valueAlarmsAlarm["NoEffectiveInterval"].isNull()) + alarmsObject.noEffectiveInterval = valueAlarmsAlarm["NoEffectiveInterval"].asString(); + if(!valueAlarmsAlarm["SilenceTime"].isNull()) + alarmsObject.silenceTime = valueAlarmsAlarm["SilenceTime"].asString(); + if(!valueAlarmsAlarm["EnableState"].isNull()) + alarmsObject.enableState = valueAlarmsAlarm["EnableState"].asString() == "true"; + if(!valueAlarmsAlarm["AlertState"].isNull()) + alarmsObject.alertState = valueAlarmsAlarm["AlertState"].asString(); + if(!valueAlarmsAlarm["ContactGroups"].isNull()) + alarmsObject.contactGroups = valueAlarmsAlarm["ContactGroups"].asString(); + if(!valueAlarmsAlarm["Webhook"].isNull()) + alarmsObject.webhook = valueAlarmsAlarm["Webhook"].asString(); + if(!valueAlarmsAlarm["MailSubject"].isNull()) + alarmsObject.mailSubject = valueAlarmsAlarm["MailSubject"].asString(); + if(!valueAlarmsAlarm["RuleName"].isNull()) + alarmsObject.ruleName = valueAlarmsAlarm["RuleName"].asString(); + if(!valueAlarmsAlarm["Resources"].isNull()) + alarmsObject.resources = valueAlarmsAlarm["Resources"].asString(); + if(!valueAlarmsAlarm["GroupId"].isNull()) + alarmsObject.groupId = valueAlarmsAlarm["GroupId"].asString(); + if(!valueAlarmsAlarm["GroupName"].isNull()) + alarmsObject.groupName = valueAlarmsAlarm["GroupName"].asString(); + if(!valueAlarmsAlarm["Dimensions"].isNull()) + alarmsObject.dimensions = valueAlarmsAlarm["Dimensions"].asString(); + if(!valueAlarmsAlarm["SourceType"].isNull()) + alarmsObject.sourceType = valueAlarmsAlarm["SourceType"].asString(); + auto escalationsNode = value["Escalations"]; + auto infoNode = escalationsNode["Info"]; + if(!infoNode["ComparisonOperator"].isNull()) + alarmsObject.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString(); + if(!infoNode["Statistics"].isNull()) + alarmsObject.escalations.info.statistics = infoNode["Statistics"].asString(); + if(!infoNode["Threshold"].isNull()) + alarmsObject.escalations.info.threshold = infoNode["Threshold"].asString(); + if(!infoNode["Times"].isNull()) + alarmsObject.escalations.info.times = infoNode["Times"].asString(); + auto warnNode = escalationsNode["Warn"]; + if(!warnNode["ComparisonOperator"].isNull()) + alarmsObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString(); + if(!warnNode["Statistics"].isNull()) + alarmsObject.escalations.warn.statistics = warnNode["Statistics"].asString(); + if(!warnNode["Threshold"].isNull()) + alarmsObject.escalations.warn.threshold = warnNode["Threshold"].asString(); + if(!warnNode["Times"].isNull()) + alarmsObject.escalations.warn.times = warnNode["Times"].asString(); + auto criticalNode = escalationsNode["Critical"]; + if(!criticalNode["ComparisonOperator"].isNull()) + alarmsObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString(); + if(!criticalNode["Statistics"].isNull()) + alarmsObject.escalations.critical.statistics = criticalNode["Statistics"].asString(); + if(!criticalNode["Threshold"].isNull()) + alarmsObject.escalations.critical.threshold = criticalNode["Threshold"].asString(); + if(!criticalNode["Times"].isNull()) + alarmsObject.escalations.critical.times = criticalNode["Times"].asString(); + alarms_.push_back(alarmsObject); + } + 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["Total"].isNull()) + total_ = value["Total"].asString(); + +} + +std::string DescribeMetricRuleListResult::getMessage()const +{ + return message_; +} + +std::string DescribeMetricRuleListResult::getTotal()const +{ + return total_; +} + +std::vector DescribeMetricRuleListResult::getAlarms()const +{ + return alarms_; +} + +int DescribeMetricRuleListResult::getCode()const +{ + return code_; +} + +bool DescribeMetricRuleListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeMetricRuleTargetsRequest.cc b/cms/src/model/DescribeMetricRuleTargetsRequest.cc index 22fc1e557..03dd95b56 100644 --- a/cms/src/model/DescribeMetricRuleTargetsRequest.cc +++ b/cms/src/model/DescribeMetricRuleTargetsRequest.cc @@ -19,20 +19,22 @@ using AlibabaCloud::Cms::Model::DescribeMetricRuleTargetsRequest; DescribeMetricRuleTargetsRequest::DescribeMetricRuleTargetsRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeMetricRuleTargets") -{} + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleTargets") +{ + setMethod(HttpRequest::Method::Put); +} DescribeMetricRuleTargetsRequest::~DescribeMetricRuleTargetsRequest() {} -std::string DescribeMetricRuleTargetsRequest::getRuleName()const -{ - return ruleName_; -} - -void DescribeMetricRuleTargetsRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - +std::string DescribeMetricRuleTargetsRequest::getRuleId()const +{ + return ruleId_; +} + +void DescribeMetricRuleTargetsRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", ruleId); +} + diff --git a/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.cc b/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.cc new file mode 100644 index 000000000..81550fa31 --- /dev/null +++ b/cms/src/model/DescribeMetricRuleTemplateAttributeRequest.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::DescribeMetricRuleTemplateAttributeRequest; + +DescribeMetricRuleTemplateAttributeRequest::DescribeMetricRuleTemplateAttributeRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleTemplateAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMetricRuleTemplateAttributeRequest::~DescribeMetricRuleTemplateAttributeRequest() +{} + +std::string DescribeMetricRuleTemplateAttributeRequest::getName()const +{ + return name_; +} + +void DescribeMetricRuleTemplateAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string DescribeMetricRuleTemplateAttributeRequest::getTemplateId()const +{ + return templateId_; +} + +void DescribeMetricRuleTemplateAttributeRequest::setTemplateId(const std::string& templateId) +{ + templateId_ = templateId; + setCoreParameter("TemplateId", templateId); +} + diff --git a/cms/src/model/DescribeMetricRuleTemplateAttributeResult.cc b/cms/src/model/DescribeMetricRuleTemplateAttributeResult.cc new file mode 100644 index 000000000..7578ffd74 --- /dev/null +++ b/cms/src/model/DescribeMetricRuleTemplateAttributeResult.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; + +DescribeMetricRuleTemplateAttributeResult::DescribeMetricRuleTemplateAttributeResult() : + ServiceResult() +{} + +DescribeMetricRuleTemplateAttributeResult::DescribeMetricRuleTemplateAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMetricRuleTemplateAttributeResult::~DescribeMetricRuleTemplateAttributeResult() +{} + +void DescribeMetricRuleTemplateAttributeResult::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["TemplateId"].isNull()) + resource_.templateId = resourceNode["TemplateId"].asString(); + if(!resourceNode["RestVersion"].isNull()) + resource_.restVersion = resourceNode["RestVersion"].asString(); + if(!resourceNode["Description"].isNull()) + resource_.description = resourceNode["Description"].asString(); + auto allAlertTemplatesNode = resourceNode["AlertTemplates"]["AlertTemplate"]; + for (auto resourceNodeAlertTemplatesAlertTemplate : allAlertTemplatesNode) + { + Resource::AlertTemplate alertTemplateObject; + if(!resourceNodeAlertTemplatesAlertTemplate["RuleName"].isNull()) + alertTemplateObject.ruleName = resourceNodeAlertTemplatesAlertTemplate["RuleName"].asString(); + if(!resourceNodeAlertTemplatesAlertTemplate["Category"].isNull()) + alertTemplateObject.category = resourceNodeAlertTemplatesAlertTemplate["Category"].asString(); + if(!resourceNodeAlertTemplatesAlertTemplate["Namespace"].isNull()) + alertTemplateObject._namespace = resourceNodeAlertTemplatesAlertTemplate["Namespace"].asString(); + if(!resourceNodeAlertTemplatesAlertTemplate["MetricName"].isNull()) + alertTemplateObject.metricName = resourceNodeAlertTemplatesAlertTemplate["MetricName"].asString(); + if(!resourceNodeAlertTemplatesAlertTemplate["Selector"].isNull()) + alertTemplateObject.selector = resourceNodeAlertTemplatesAlertTemplate["Selector"].asString(); + if(!resourceNodeAlertTemplatesAlertTemplate["Webhook"].isNull()) + alertTemplateObject.webhook = resourceNodeAlertTemplatesAlertTemplate["Webhook"].asString(); + auto escalationsNode = value["Escalations"]; + auto infoNode = escalationsNode["Info"]; + if(!infoNode["Statistics"].isNull()) + alertTemplateObject.escalations.info.statistics = infoNode["Statistics"].asString(); + if(!infoNode["ComparisonOperator"].isNull()) + alertTemplateObject.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString(); + if(!infoNode["Threshold"].isNull()) + alertTemplateObject.escalations.info.threshold = infoNode["Threshold"].asString(); + if(!infoNode["Times"].isNull()) + alertTemplateObject.escalations.info.times = std::stoi(infoNode["Times"].asString()); + auto warnNode = escalationsNode["Warn"]; + if(!warnNode["Statistics"].isNull()) + alertTemplateObject.escalations.warn.statistics = warnNode["Statistics"].asString(); + if(!warnNode["ComparisonOperator"].isNull()) + alertTemplateObject.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString(); + if(!warnNode["Threshold"].isNull()) + alertTemplateObject.escalations.warn.threshold = warnNode["Threshold"].asString(); + if(!warnNode["Times"].isNull()) + alertTemplateObject.escalations.warn.times = std::stoi(warnNode["Times"].asString()); + auto criticalNode = escalationsNode["Critical"]; + if(!criticalNode["Statistics"].isNull()) + alertTemplateObject.escalations.critical.statistics = criticalNode["Statistics"].asString(); + if(!criticalNode["ComparisonOperator"].isNull()) + alertTemplateObject.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString(); + if(!criticalNode["Threshold"].isNull()) + alertTemplateObject.escalations.critical.threshold = criticalNode["Threshold"].asString(); + if(!criticalNode["Times"].isNull()) + alertTemplateObject.escalations.critical.times = std::stoi(criticalNode["Times"].asString()); + resource_.alertTemplates.push_back(alertTemplateObject); + } + 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(); + +} + +std::string DescribeMetricRuleTemplateAttributeResult::getMessage()const +{ + return message_; +} + +DescribeMetricRuleTemplateAttributeResult::Resource DescribeMetricRuleTemplateAttributeResult::getResource()const +{ + return resource_; +} + +int DescribeMetricRuleTemplateAttributeResult::getCode()const +{ + return code_; +} + +bool DescribeMetricRuleTemplateAttributeResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeMetricRuleTemplateListRequest.cc b/cms/src/model/DescribeMetricRuleTemplateListRequest.cc new file mode 100644 index 000000000..ffaea6507 --- /dev/null +++ b/cms/src/model/DescribeMetricRuleTemplateListRequest.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::DescribeMetricRuleTemplateListRequest; + +DescribeMetricRuleTemplateListRequest::DescribeMetricRuleTemplateListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricRuleTemplateList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMetricRuleTemplateListRequest::~DescribeMetricRuleTemplateListRequest() +{} + +bool DescribeMetricRuleTemplateListRequest::getHistory()const +{ + return history_; +} + +void DescribeMetricRuleTemplateListRequest::setHistory(bool history) +{ + history_ = history; + setCoreParameter("History", history ? "true" : "false"); +} + +long DescribeMetricRuleTemplateListRequest::getTemplateId()const +{ + return templateId_; +} + +void DescribeMetricRuleTemplateListRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setCoreParameter("TemplateId", std::to_string(templateId)); +} + +long DescribeMetricRuleTemplateListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMetricRuleTemplateListRequest::setPageNumber(long pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeMetricRuleTemplateListRequest::getName()const +{ + return name_; +} + +void DescribeMetricRuleTemplateListRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +long DescribeMetricRuleTemplateListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMetricRuleTemplateListRequest::setPageSize(long pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeMetricRuleTemplateListRequest::getKeyword()const +{ + return keyword_; +} + +void DescribeMetricRuleTemplateListRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setCoreParameter("Keyword", keyword); +} + diff --git a/cms/src/model/DescribeMetricRuleTemplateListResult.cc b/cms/src/model/DescribeMetricRuleTemplateListResult.cc new file mode 100644 index 000000000..00cac2dda --- /dev/null +++ b/cms/src/model/DescribeMetricRuleTemplateListResult.cc @@ -0,0 +1,107 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeMetricRuleTemplateListResult::DescribeMetricRuleTemplateListResult() : + ServiceResult() +{} + +DescribeMetricRuleTemplateListResult::DescribeMetricRuleTemplateListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMetricRuleTemplateListResult::~DescribeMetricRuleTemplateListResult() +{} + +void DescribeMetricRuleTemplateListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTemplatesNode = value["Templates"]["Template"]; + for (auto valueTemplatesTemplate : allTemplatesNode) + { + _Template templatesObject; + if(!valueTemplatesTemplate["Name"].isNull()) + templatesObject.name = valueTemplatesTemplate["Name"].asString(); + if(!valueTemplatesTemplate["Description"].isNull()) + templatesObject.description = valueTemplatesTemplate["Description"].asString(); + if(!valueTemplatesTemplate["RestVersion"].isNull()) + templatesObject.restVersion = std::stol(valueTemplatesTemplate["RestVersion"].asString()); + if(!valueTemplatesTemplate["TemplateId"].isNull()) + templatesObject.templateId = std::stol(valueTemplatesTemplate["TemplateId"].asString()); + if(!valueTemplatesTemplate["GmtCreate"].isNull()) + 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) + { + _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()); + templatesObject.applyHistories.push_back(applyHistoriesObject); + } + templates_.push_back(templatesObject); + } + 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["Total"].isNull()) + total_ = std::stol(value["Total"].asString()); + +} + +std::string DescribeMetricRuleTemplateListResult::getMessage()const +{ + return message_; +} + +long DescribeMetricRuleTemplateListResult::getTotal()const +{ + return total_; +} + +std::vector DescribeMetricRuleTemplateListResult::getTemplates()const +{ + return templates_; +} + +int DescribeMetricRuleTemplateListResult::getCode()const +{ + return code_; +} + +bool DescribeMetricRuleTemplateListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeMetricTopRequest.cc b/cms/src/model/DescribeMetricTopRequest.cc new file mode 100644 index 000000000..e81b3e146 --- /dev/null +++ b/cms/src/model/DescribeMetricTopRequest.cc @@ -0,0 +1,139 @@ +/* + * 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::DescribeMetricTopRequest; + +DescribeMetricTopRequest::DescribeMetricTopRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMetricTop") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMetricTopRequest::~DescribeMetricTopRequest() +{} + +std::string DescribeMetricTopRequest::getExpress()const +{ + return express_; +} + +void DescribeMetricTopRequest::setExpress(const std::string& express) +{ + express_ = express; + setCoreParameter("Express", express); +} + +std::string DescribeMetricTopRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeMetricTopRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeMetricTopRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeMetricTopRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeMetricTopRequest::getPeriod()const +{ + return period_; +} + +void DescribeMetricTopRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string DescribeMetricTopRequest::getLength()const +{ + return length_; +} + +void DescribeMetricTopRequest::setLength(const std::string& length) +{ + length_ = length; + setCoreParameter("Length", length); +} + +std::string DescribeMetricTopRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeMetricTopRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeMetricTopRequest::getOrderby()const +{ + return orderby_; +} + +void DescribeMetricTopRequest::setOrderby(const std::string& orderby) +{ + orderby_ = orderby; + setCoreParameter("Orderby", orderby); +} + +std::string DescribeMetricTopRequest::getOrderDesc()const +{ + return orderDesc_; +} + +void DescribeMetricTopRequest::setOrderDesc(const std::string& orderDesc) +{ + orderDesc_ = orderDesc; + setCoreParameter("OrderDesc", orderDesc); +} + +std::string DescribeMetricTopRequest::get_Namespace()const +{ + return _namespace_; +} + +void DescribeMetricTopRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +std::string DescribeMetricTopRequest::getDimensions()const +{ + return dimensions_; +} + +void DescribeMetricTopRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setCoreParameter("Dimensions", dimensions); +} + diff --git a/cms/src/model/QueryMetricTopResult.cc b/cms/src/model/DescribeMetricTopResult.cc similarity index 71% rename from cms/src/model/QueryMetricTopResult.cc rename to cms/src/model/DescribeMetricTopResult.cc index 6b4677071..5b9c5d996 100644 --- a/cms/src/model/QueryMetricTopResult.cc +++ b/cms/src/model/DescribeMetricTopResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QueryMetricTopResult::QueryMetricTopResult() : +DescribeMetricTopResult::DescribeMetricTopResult() : ServiceResult() {} -QueryMetricTopResult::QueryMetricTopResult(const std::string &payload) : +DescribeMetricTopResult::DescribeMetricTopResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryMetricTopResult::~QueryMetricTopResult() +DescribeMetricTopResult::~DescribeMetricTopResult() {} -void QueryMetricTopResult::parse(const std::string &payload) +void DescribeMetricTopResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -50,22 +50,22 @@ void QueryMetricTopResult::parse(const std::string &payload) } -std::string QueryMetricTopResult::getMessage()const +std::string DescribeMetricTopResult::getMessage()const { return message_; } -std::string QueryMetricTopResult::getPeriod()const +std::string DescribeMetricTopResult::getPeriod()const { return period_; } -std::string QueryMetricTopResult::getDatapoints()const +std::string DescribeMetricTopResult::getDatapoints()const { return datapoints_; } -std::string QueryMetricTopResult::getCode()const +std::string DescribeMetricTopResult::getCode()const { return code_; } diff --git a/cms/src/model/ListMyGroupCategoriesRequest.cc b/cms/src/model/DescribeMonitorGroupCategoriesRequest.cc similarity index 56% rename from cms/src/model/ListMyGroupCategoriesRequest.cc rename to cms/src/model/DescribeMonitorGroupCategoriesRequest.cc index 64d0aa9bc..c88e9f9a1 100644 --- a/cms/src/model/ListMyGroupCategoriesRequest.cc +++ b/cms/src/model/DescribeMonitorGroupCategoriesRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::ListMyGroupCategoriesRequest; +using AlibabaCloud::Cms::Model::DescribeMonitorGroupCategoriesRequest; -ListMyGroupCategoriesRequest::ListMyGroupCategoriesRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListMyGroupCategories") +DescribeMonitorGroupCategoriesRequest::DescribeMonitorGroupCategoriesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupCategories") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitorGroupCategoriesRequest::~DescribeMonitorGroupCategoriesRequest() {} -ListMyGroupCategoriesRequest::~ListMyGroupCategoriesRequest() -{} - -long ListMyGroupCategoriesRequest::getGroupId()const +long DescribeMonitorGroupCategoriesRequest::getGroupId()const { return groupId_; } -void ListMyGroupCategoriesRequest::setGroupId(long groupId) +void DescribeMonitorGroupCategoriesRequest::setGroupId(long groupId) { groupId_ = groupId; setCoreParameter("GroupId", std::to_string(groupId)); diff --git a/cms/src/model/DescribeMonitorGroupCategoriesResult.cc b/cms/src/model/DescribeMonitorGroupCategoriesResult.cc new file mode 100644 index 000000000..386c843bb --- /dev/null +++ b/cms/src/model/DescribeMonitorGroupCategoriesResult.cc @@ -0,0 +1,83 @@ +/* + * 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; + +DescribeMonitorGroupCategoriesResult::DescribeMonitorGroupCategoriesResult() : + ServiceResult() +{} + +DescribeMonitorGroupCategoriesResult::DescribeMonitorGroupCategoriesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMonitorGroupCategoriesResult::~DescribeMonitorGroupCategoriesResult() +{} + +void DescribeMonitorGroupCategoriesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto monitorGroupCategoriesNode = value["MonitorGroupCategories"]; + if(!monitorGroupCategoriesNode["GroupId"].isNull()) + monitorGroupCategories_.groupId = std::stol(monitorGroupCategoriesNode["GroupId"].asString()); + auto allMonitorGroupCategoryNode = monitorGroupCategoriesNode["MonitorGroupCategory"]["CategoryItem"]; + for (auto monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem : allMonitorGroupCategoryNode) + { + MonitorGroupCategories::CategoryItem categoryItemObject; + if(!monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Category"].isNull()) + categoryItemObject.category = monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Category"].asString(); + if(!monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Count"].isNull()) + categoryItemObject.count = std::stoi(monitorGroupCategoriesNodeMonitorGroupCategoryCategoryItem["Count"].asString()); + monitorGroupCategories_.monitorGroupCategory.push_back(categoryItemObject); + } + 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(); + +} + +std::string DescribeMonitorGroupCategoriesResult::getMessage()const +{ + return message_; +} + +DescribeMonitorGroupCategoriesResult::MonitorGroupCategories DescribeMonitorGroupCategoriesResult::getMonitorGroupCategories()const +{ + return monitorGroupCategories_; +} + +int DescribeMonitorGroupCategoriesResult::getCode()const +{ + return code_; +} + +bool DescribeMonitorGroupCategoriesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListGroupDynamicRuleRequest.cc b/cms/src/model/DescribeMonitorGroupDynamicRulesRequest.cc similarity index 55% rename from cms/src/model/ListGroupDynamicRuleRequest.cc rename to cms/src/model/DescribeMonitorGroupDynamicRulesRequest.cc index cb06d514a..ed32b3408 100644 --- a/cms/src/model/ListGroupDynamicRuleRequest.cc +++ b/cms/src/model/DescribeMonitorGroupDynamicRulesRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::ListGroupDynamicRuleRequest; +using AlibabaCloud::Cms::Model::DescribeMonitorGroupDynamicRulesRequest; -ListGroupDynamicRuleRequest::ListGroupDynamicRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListGroupDynamicRule") +DescribeMonitorGroupDynamicRulesRequest::DescribeMonitorGroupDynamicRulesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupDynamicRules") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitorGroupDynamicRulesRequest::~DescribeMonitorGroupDynamicRulesRequest() {} -ListGroupDynamicRuleRequest::~ListGroupDynamicRuleRequest() -{} - -long ListGroupDynamicRuleRequest::getGroupId()const +long DescribeMonitorGroupDynamicRulesRequest::getGroupId()const { return groupId_; } -void ListGroupDynamicRuleRequest::setGroupId(long groupId) +void DescribeMonitorGroupDynamicRulesRequest::setGroupId(long groupId) { groupId_ = groupId; setCoreParameter("GroupId", std::to_string(groupId)); diff --git a/cms/src/model/ListGroupDynamicRuleResult.cc b/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc similarity index 70% rename from cms/src/model/ListGroupDynamicRuleResult.cc rename to cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc index bfc06db59..16b99c566 100644 --- a/cms/src/model/ListGroupDynamicRuleResult.cc +++ b/cms/src/model/DescribeMonitorGroupDynamicRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListGroupDynamicRuleResult::ListGroupDynamicRuleResult() : +DescribeMonitorGroupDynamicRulesResult::DescribeMonitorGroupDynamicRulesResult() : ServiceResult() {} -ListGroupDynamicRuleResult::ListGroupDynamicRuleResult(const std::string &payload) : +DescribeMonitorGroupDynamicRulesResult::DescribeMonitorGroupDynamicRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListGroupDynamicRuleResult::~ListGroupDynamicRuleResult() +DescribeMonitorGroupDynamicRulesResult::~DescribeMonitorGroupDynamicRulesResult() {} -void ListGroupDynamicRuleResult::parse(const std::string &payload) +void DescribeMonitorGroupDynamicRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -65,10 +65,10 @@ void ListGroupDynamicRuleResult::parse(const std::string &payload) } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + 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()) @@ -78,37 +78,37 @@ void ListGroupDynamicRuleResult::parse(const std::string &payload) } -int ListGroupDynamicRuleResult::getPageSize()const +std::string DescribeMonitorGroupDynamicRulesResult::getMessage()const +{ + return message_; +} + +int DescribeMonitorGroupDynamicRulesResult::getPageSize()const { return pageSize_; } -int ListGroupDynamicRuleResult::getPageNumber()const +int DescribeMonitorGroupDynamicRulesResult::getPageNumber()const { return pageNumber_; } -int ListGroupDynamicRuleResult::getTotal()const +int DescribeMonitorGroupDynamicRulesResult::getTotal()const { return total_; } -std::vector ListGroupDynamicRuleResult::getResource()const +std::vector DescribeMonitorGroupDynamicRulesResult::getResource()const { return resource_; } -int ListGroupDynamicRuleResult::getErrorCode()const +int DescribeMonitorGroupDynamicRulesResult::getCode()const { - return errorCode_; + return code_; } -std::string ListGroupDynamicRuleResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListGroupDynamicRuleResult::getSuccess()const +bool DescribeMonitorGroupDynamicRulesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeMonitorGroupInstanceAttributeRequest.cc b/cms/src/model/DescribeMonitorGroupInstanceAttributeRequest.cc new file mode 100644 index 000000000..a0a4151c8 --- /dev/null +++ b/cms/src/model/DescribeMonitorGroupInstanceAttributeRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::DescribeMonitorGroupInstanceAttributeRequest; + +DescribeMonitorGroupInstanceAttributeRequest::DescribeMonitorGroupInstanceAttributeRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupInstanceAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitorGroupInstanceAttributeRequest::~DescribeMonitorGroupInstanceAttributeRequest() +{} + +long DescribeMonitorGroupInstanceAttributeRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeMonitorGroupInstanceAttributeRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + +int DescribeMonitorGroupInstanceAttributeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMonitorGroupInstanceAttributeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +bool DescribeMonitorGroupInstanceAttributeRequest::getTotal()const +{ + return total_; +} + +void DescribeMonitorGroupInstanceAttributeRequest::setTotal(bool total) +{ + total_ = total; + setCoreParameter("Total", total ? "true" : "false"); +} + +std::string DescribeMonitorGroupInstanceAttributeRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DescribeMonitorGroupInstanceAttributeRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setCoreParameter("InstanceIds", instanceIds); +} + +int DescribeMonitorGroupInstanceAttributeRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMonitorGroupInstanceAttributeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeMonitorGroupInstanceAttributeRequest::getCategory()const +{ + return category_; +} + +void DescribeMonitorGroupInstanceAttributeRequest::setCategory(const std::string& category) +{ + category_ = category; + setCoreParameter("Category", category); +} + +std::string DescribeMonitorGroupInstanceAttributeRequest::getKeyword()const +{ + return keyword_; +} + +void DescribeMonitorGroupInstanceAttributeRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setCoreParameter("Keyword", keyword); +} + diff --git a/cms/src/model/ListMyGroupInstancesDetailsResult.cc b/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc similarity index 73% rename from cms/src/model/ListMyGroupInstancesDetailsResult.cc rename to cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc index 1e50056a8..94ff8e6e7 100644 --- a/cms/src/model/ListMyGroupInstancesDetailsResult.cc +++ b/cms/src/model/DescribeMonitorGroupInstanceAttributeResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListMyGroupInstancesDetailsResult::ListMyGroupInstancesDetailsResult() : +DescribeMonitorGroupInstanceAttributeResult::DescribeMonitorGroupInstanceAttributeResult() : ServiceResult() {} -ListMyGroupInstancesDetailsResult::ListMyGroupInstancesDetailsResult(const std::string &payload) : +DescribeMonitorGroupInstanceAttributeResult::DescribeMonitorGroupInstanceAttributeResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListMyGroupInstancesDetailsResult::~ListMyGroupInstancesDetailsResult() +DescribeMonitorGroupInstanceAttributeResult::~DescribeMonitorGroupInstanceAttributeResult() {} -void ListMyGroupInstancesDetailsResult::parse(const std::string &payload) +void DescribeMonitorGroupInstanceAttributeResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,8 +43,6 @@ void ListMyGroupInstancesDetailsResult::parse(const std::string &payload) for (auto valueResourcesResource : allResourcesNode) { Resource resourcesObject; - if(!valueResourcesResource["AliUid"].isNull()) - resourcesObject.aliUid = std::stol(valueResourcesResource["AliUid"].asString()); if(!valueResourcesResource["InstanceName"].isNull()) resourcesObject.instanceName = valueResourcesResource["InstanceName"].asString(); if(!valueResourcesResource["InstanceId"].isNull()) @@ -81,10 +79,10 @@ void ListMyGroupInstancesDetailsResult::parse(const std::string &payload) } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + 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()) @@ -94,37 +92,37 @@ void ListMyGroupInstancesDetailsResult::parse(const std::string &payload) } -int ListMyGroupInstancesDetailsResult::getPageSize()const +std::string DescribeMonitorGroupInstanceAttributeResult::getMessage()const +{ + return message_; +} + +int DescribeMonitorGroupInstanceAttributeResult::getPageSize()const { return pageSize_; } -int ListMyGroupInstancesDetailsResult::getPageNumber()const +int DescribeMonitorGroupInstanceAttributeResult::getPageNumber()const { return pageNumber_; } -int ListMyGroupInstancesDetailsResult::getTotal()const +int DescribeMonitorGroupInstanceAttributeResult::getTotal()const { return total_; } -std::vector ListMyGroupInstancesDetailsResult::getResources()const +std::vector DescribeMonitorGroupInstanceAttributeResult::getResources()const { return resources_; } -int ListMyGroupInstancesDetailsResult::getErrorCode()const +int DescribeMonitorGroupInstanceAttributeResult::getCode()const { - return errorCode_; + return code_; } -std::string ListMyGroupInstancesDetailsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListMyGroupInstancesDetailsResult::getSuccess()const +bool DescribeMonitorGroupInstanceAttributeResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeMonitorGroupInstancesRequest.cc b/cms/src/model/DescribeMonitorGroupInstancesRequest.cc new file mode 100644 index 000000000..2dfecefad --- /dev/null +++ b/cms/src/model/DescribeMonitorGroupInstancesRequest.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::DescribeMonitorGroupInstancesRequest; + +DescribeMonitorGroupInstancesRequest::DescribeMonitorGroupInstancesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupInstances") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitorGroupInstancesRequest::~DescribeMonitorGroupInstancesRequest() +{} + +long DescribeMonitorGroupInstancesRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeMonitorGroupInstancesRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + +int DescribeMonitorGroupInstancesRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMonitorGroupInstancesRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeMonitorGroupInstancesRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DescribeMonitorGroupInstancesRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setCoreParameter("InstanceIds", instanceIds); +} + +int DescribeMonitorGroupInstancesRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMonitorGroupInstancesRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeMonitorGroupInstancesRequest::getCategory()const +{ + return category_; +} + +void DescribeMonitorGroupInstancesRequest::setCategory(const std::string& category) +{ + category_ = category; + setCoreParameter("Category", category); +} + +std::string DescribeMonitorGroupInstancesRequest::getKeyword()const +{ + return keyword_; +} + +void DescribeMonitorGroupInstancesRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setCoreParameter("Keyword", keyword); +} + diff --git a/cms/src/model/ListMyGroupInstancesResult.cc b/cms/src/model/DescribeMonitorGroupInstancesResult.cc similarity index 66% rename from cms/src/model/ListMyGroupInstancesResult.cc rename to cms/src/model/DescribeMonitorGroupInstancesResult.cc index e70eb3b43..82f67c4fa 100644 --- a/cms/src/model/ListMyGroupInstancesResult.cc +++ b/cms/src/model/DescribeMonitorGroupInstancesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListMyGroupInstancesResult::ListMyGroupInstancesResult() : +DescribeMonitorGroupInstancesResult::DescribeMonitorGroupInstancesResult() : ServiceResult() {} -ListMyGroupInstancesResult::ListMyGroupInstancesResult(const std::string &payload) : +DescribeMonitorGroupInstancesResult::DescribeMonitorGroupInstancesResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListMyGroupInstancesResult::~ListMyGroupInstancesResult() +DescribeMonitorGroupInstancesResult::~DescribeMonitorGroupInstancesResult() {} -void ListMyGroupInstancesResult::parse(const std::string &payload) +void DescribeMonitorGroupInstancesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -45,8 +45,6 @@ void ListMyGroupInstancesResult::parse(const std::string &payload) Resource resourcesObject; if(!valueResourcesResource["Id"].isNull()) resourcesObject.id = std::stol(valueResourcesResource["Id"].asString()); - if(!valueResourcesResource["AliUid"].isNull()) - resourcesObject.aliUid = std::stol(valueResourcesResource["AliUid"].asString()); if(!valueResourcesResource["RegionId"].isNull()) resourcesObject.regionId = valueResourcesResource["RegionId"].asString(); if(!valueResourcesResource["InstanceId"].isNull()) @@ -59,10 +57,10 @@ void ListMyGroupInstancesResult::parse(const std::string &payload) } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + 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()) @@ -72,37 +70,37 @@ void ListMyGroupInstancesResult::parse(const std::string &payload) } -int ListMyGroupInstancesResult::getPageSize()const +std::string DescribeMonitorGroupInstancesResult::getMessage()const +{ + return message_; +} + +int DescribeMonitorGroupInstancesResult::getPageSize()const { return pageSize_; } -int ListMyGroupInstancesResult::getPageNumber()const +int DescribeMonitorGroupInstancesResult::getPageNumber()const { return pageNumber_; } -int ListMyGroupInstancesResult::getTotal()const +int DescribeMonitorGroupInstancesResult::getTotal()const { return total_; } -std::vector ListMyGroupInstancesResult::getResources()const +std::vector DescribeMonitorGroupInstancesResult::getResources()const { return resources_; } -int ListMyGroupInstancesResult::getErrorCode()const +int DescribeMonitorGroupInstancesResult::getCode()const { - return errorCode_; + return code_; } -std::string ListMyGroupInstancesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListMyGroupInstancesResult::getSuccess()const +bool DescribeMonitorGroupInstancesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeMonitorGroupNotifyPolicyListRequest.cc b/cms/src/model/DescribeMonitorGroupNotifyPolicyListRequest.cc new file mode 100644 index 000000000..b47d4044f --- /dev/null +++ b/cms/src/model/DescribeMonitorGroupNotifyPolicyListRequest.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::DescribeMonitorGroupNotifyPolicyListRequest; + +DescribeMonitorGroupNotifyPolicyListRequest::DescribeMonitorGroupNotifyPolicyListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroupNotifyPolicyList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitorGroupNotifyPolicyListRequest::~DescribeMonitorGroupNotifyPolicyListRequest() +{} + +std::string DescribeMonitorGroupNotifyPolicyListRequest::getPolicyType()const +{ + return policyType_; +} + +void DescribeMonitorGroupNotifyPolicyListRequest::setPolicyType(const std::string& policyType) +{ + policyType_ = policyType; + setCoreParameter("PolicyType", policyType); +} + +std::string DescribeMonitorGroupNotifyPolicyListRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeMonitorGroupNotifyPolicyListRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +int DescribeMonitorGroupNotifyPolicyListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMonitorGroupNotifyPolicyListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeMonitorGroupNotifyPolicyListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMonitorGroupNotifyPolicyListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + diff --git a/cms/src/model/ListNotifyPolicyResult.cc b/cms/src/model/DescribeMonitorGroupNotifyPolicyListResult.cc similarity index 71% rename from cms/src/model/ListNotifyPolicyResult.cc rename to cms/src/model/DescribeMonitorGroupNotifyPolicyListResult.cc index 82ad5d405..98e8ba8b6 100644 --- a/cms/src/model/ListNotifyPolicyResult.cc +++ b/cms/src/model/DescribeMonitorGroupNotifyPolicyListResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListNotifyPolicyResult::ListNotifyPolicyResult() : +DescribeMonitorGroupNotifyPolicyListResult::DescribeMonitorGroupNotifyPolicyListResult() : ServiceResult() {} -ListNotifyPolicyResult::ListNotifyPolicyResult(const std::string &payload) : +DescribeMonitorGroupNotifyPolicyListResult::DescribeMonitorGroupNotifyPolicyListResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListNotifyPolicyResult::~ListNotifyPolicyResult() +DescribeMonitorGroupNotifyPolicyListResult::~DescribeMonitorGroupNotifyPolicyListResult() {} -void ListNotifyPolicyResult::parse(const std::string &payload) +void DescribeMonitorGroupNotifyPolicyListResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,10 +43,6 @@ void ListNotifyPolicyResult::parse(const std::string &payload) for (auto valueNotifyPolicyListNotifyPolicy : allNotifyPolicyListNode) { NotifyPolicy notifyPolicyListObject; - if(!valueNotifyPolicyListNotifyPolicy["AlertName"].isNull()) - notifyPolicyListObject.alertName = valueNotifyPolicyListNotifyPolicy["AlertName"].asString(); - if(!valueNotifyPolicyListNotifyPolicy["Dimensions"].isNull()) - notifyPolicyListObject.dimensions = valueNotifyPolicyListNotifyPolicy["Dimensions"].asString(); if(!valueNotifyPolicyListNotifyPolicy["Type"].isNull()) notifyPolicyListObject.type = valueNotifyPolicyListNotifyPolicy["Type"].asString(); if(!valueNotifyPolicyListNotifyPolicy["Id"].isNull()) @@ -70,27 +66,27 @@ void ListNotifyPolicyResult::parse(const std::string &payload) } -std::vector ListNotifyPolicyResult::getNotifyPolicyList()const +std::vector DescribeMonitorGroupNotifyPolicyListResult::getNotifyPolicyList()const { return notifyPolicyList_; } -std::string ListNotifyPolicyResult::getMessage()const +std::string DescribeMonitorGroupNotifyPolicyListResult::getMessage()const { return message_; } -int ListNotifyPolicyResult::getTotal()const +int DescribeMonitorGroupNotifyPolicyListResult::getTotal()const { return total_; } -std::string ListNotifyPolicyResult::getCode()const +std::string DescribeMonitorGroupNotifyPolicyListResult::getCode()const { return code_; } -std::string ListNotifyPolicyResult::getSuccess()const +std::string DescribeMonitorGroupNotifyPolicyListResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeMonitorGroupsRequest.cc b/cms/src/model/DescribeMonitorGroupsRequest.cc new file mode 100644 index 000000000..1bcc6a011 --- /dev/null +++ b/cms/src/model/DescribeMonitorGroupsRequest.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 + +using AlibabaCloud::Cms::Model::DescribeMonitorGroupsRequest; + +DescribeMonitorGroupsRequest::DescribeMonitorGroupsRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitorGroups") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitorGroupsRequest::~DescribeMonitorGroupsRequest() +{} + +bool DescribeMonitorGroupsRequest::getSelectContactGroups()const +{ + return selectContactGroups_; +} + +void DescribeMonitorGroupsRequest::setSelectContactGroups(bool selectContactGroups) +{ + selectContactGroups_ = selectContactGroups; + setCoreParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); +} + +bool DescribeMonitorGroupsRequest::getIncludeTemplateHistory()const +{ + return includeTemplateHistory_; +} + +void DescribeMonitorGroupsRequest::setIncludeTemplateHistory(bool includeTemplateHistory) +{ + includeTemplateHistory_ = includeTemplateHistory; + setCoreParameter("IncludeTemplateHistory", includeTemplateHistory ? "true" : "false"); +} + +std::string DescribeMonitorGroupsRequest::getType()const +{ + return type_; +} + +void DescribeMonitorGroupsRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string DescribeMonitorGroupsRequest::getGroupName()const +{ + return groupName_; +} + +void DescribeMonitorGroupsRequest::setGroupName(const std::string& groupName) +{ + groupName_ = groupName; + setCoreParameter("GroupName", groupName); +} + +int DescribeMonitorGroupsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMonitorGroupsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeMonitorGroupsRequest::getInstanceId()const +{ + return instanceId_; +} + +void DescribeMonitorGroupsRequest::setInstanceId(const std::string& instanceId) +{ + instanceId_ = instanceId; + setCoreParameter("InstanceId", instanceId); +} + +int DescribeMonitorGroupsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMonitorGroupsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::vector DescribeMonitorGroupsRequest::getTag()const +{ + return tag_; +} + +void DescribeMonitorGroupsRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1); + setCoreParameter(tagObjStr + ".Value", tagObj.value); + setCoreParameter(tagObjStr + ".Key", tagObj.key); + } +} + +std::string DescribeMonitorGroupsRequest::getKeyword()const +{ + return keyword_; +} + +void DescribeMonitorGroupsRequest::setKeyword(const std::string& keyword) +{ + keyword_ = keyword; + setCoreParameter("Keyword", keyword); +} + diff --git a/cms/src/model/ListMyGroupsResult.cc b/cms/src/model/DescribeMonitorGroupsResult.cc similarity index 66% rename from cms/src/model/ListMyGroupsResult.cc rename to cms/src/model/DescribeMonitorGroupsResult.cc index 74741434a..614999bde 100644 --- a/cms/src/model/ListMyGroupsResult.cc +++ b/cms/src/model/DescribeMonitorGroupsResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ListMyGroupsResult::ListMyGroupsResult() : +DescribeMonitorGroupsResult::DescribeMonitorGroupsResult() : ServiceResult() {} -ListMyGroupsResult::ListMyGroupsResult(const std::string &payload) : +DescribeMonitorGroupsResult::DescribeMonitorGroupsResult(const std::string &payload) : ServiceResult() { parse(payload); } -ListMyGroupsResult::~ListMyGroupsResult() +DescribeMonitorGroupsResult::~DescribeMonitorGroupsResult() {} -void ListMyGroupsResult::parse(const std::string &payload) +void DescribeMonitorGroupsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -49,8 +49,6 @@ void ListMyGroupsResult::parse(const std::string &payload) resourcesObject.groupName = valueResourcesResource["GroupName"].asString(); if(!valueResourcesResource["ServiceId"].isNull()) resourcesObject.serviceId = valueResourcesResource["ServiceId"].asString(); - if(!valueResourcesResource["BindUrls"].isNull()) - resourcesObject.bindUrls = valueResourcesResource["BindUrls"].asString(); if(!valueResourcesResource["Type"].isNull()) resourcesObject.type = valueResourcesResource["Type"].asString(); if(!valueResourcesResource["GmtModified"].isNull()) @@ -67,14 +65,27 @@ void ListMyGroupsResult::parse(const std::string &payload) contactGroupsObject.name = allResourcesNodeContactGroupsContactGroup["Name"].asString(); resourcesObject.contactGroups.push_back(contactGroupsObject); } + auto allTagsNode = allResourcesNode["Tags"]["Tag"]; + for (auto allResourcesNodeTagsTag : allTagsNode) + { + Resource::Tag tagsObject; + if(!allResourcesNodeTagsTag["Key"].isNull()) + tagsObject.key = allResourcesNodeTagsTag["Key"].asString(); + if(!allResourcesNodeTagsTag["Value"].isNull()) + tagsObject.value = allResourcesNodeTagsTag["Value"].asString(); + resourcesObject.tags.push_back(tagsObject); + } + auto allTemplateIds = value["TemplateIds"]["TemplateId"]; + for (auto value : allTemplateIds) + resourcesObject.templateIds.push_back(value.asString()); resources_.push_back(resourcesObject); } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + 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()) @@ -84,37 +95,37 @@ void ListMyGroupsResult::parse(const std::string &payload) } -int ListMyGroupsResult::getPageSize()const +std::string DescribeMonitorGroupsResult::getMessage()const +{ + return message_; +} + +int DescribeMonitorGroupsResult::getPageSize()const { return pageSize_; } -int ListMyGroupsResult::getPageNumber()const +int DescribeMonitorGroupsResult::getPageNumber()const { return pageNumber_; } -int ListMyGroupsResult::getTotal()const +int DescribeMonitorGroupsResult::getTotal()const { return total_; } -std::vector ListMyGroupsResult::getResources()const +std::vector DescribeMonitorGroupsResult::getResources()const { return resources_; } -int ListMyGroupsResult::getErrorCode()const +int DescribeMonitorGroupsResult::getCode()const { - return errorCode_; + return code_; } -std::string ListMyGroupsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListMyGroupsResult::getSuccess()const +bool DescribeMonitorGroupsResult::getSuccess()const { return success_; } diff --git a/cms/src/model/ProfileGetRequest.cc b/cms/src/model/DescribeMonitoringAgentAccessKeyRequest.cc similarity index 59% rename from cms/src/model/ProfileGetRequest.cc rename to cms/src/model/DescribeMonitoringAgentAccessKeyRequest.cc index 19c07c063..8b7fd83ed 100644 --- a/cms/src/model/ProfileGetRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentAccessKeyRequest.cc @@ -14,25 +14,16 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::ProfileGetRequest; +using AlibabaCloud::Cms::Model::DescribeMonitoringAgentAccessKeyRequest; -ProfileGetRequest::ProfileGetRequest() : - RpcServiceRequest("cms", "2018-03-08", "ProfileGet") +DescribeMonitoringAgentAccessKeyRequest::DescribeMonitoringAgentAccessKeyRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentAccessKey") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitoringAgentAccessKeyRequest::~DescribeMonitoringAgentAccessKeyRequest() {} -ProfileGetRequest::~ProfileGetRequest() -{} - -long ProfileGetRequest::getUserId()const -{ - return userId_; -} - -void ProfileGetRequest::setUserId(long userId) -{ - userId_ = userId; - setCoreParameter("UserId", std::to_string(userId)); -} - diff --git a/cms/src/model/AccessKeyGetResult.cc b/cms/src/model/DescribeMonitoringAgentAccessKeyResult.cc similarity index 56% rename from cms/src/model/AccessKeyGetResult.cc rename to cms/src/model/DescribeMonitoringAgentAccessKeyResult.cc index 6d7cc4288..d6f08d578 100644 --- a/cms/src/model/AccessKeyGetResult.cc +++ b/cms/src/model/DescribeMonitoringAgentAccessKeyResult.cc @@ -14,39 +14,37 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -AccessKeyGetResult::AccessKeyGetResult() : +DescribeMonitoringAgentAccessKeyResult::DescribeMonitoringAgentAccessKeyResult() : ServiceResult() {} -AccessKeyGetResult::AccessKeyGetResult(const std::string &payload) : +DescribeMonitoringAgentAccessKeyResult::DescribeMonitoringAgentAccessKeyResult(const std::string &payload) : ServiceResult() { parse(payload); } -AccessKeyGetResult::~AccessKeyGetResult() +DescribeMonitoringAgentAccessKeyResult::~DescribeMonitoringAgentAccessKeyResult() {} -void AccessKeyGetResult::parse(const std::string &payload) +void DescribeMonitoringAgentAccessKeyResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["UserId"].isNull()) - userId_ = std::stol(value["UserId"].asString()); if(!value["AccessKey"].isNull()) accessKey_ = value["AccessKey"].asString(); if(!value["SecretKey"].isNull()) @@ -54,32 +52,27 @@ void AccessKeyGetResult::parse(const std::string &payload) } -std::string AccessKeyGetResult::getSecretKey()const +std::string DescribeMonitoringAgentAccessKeyResult::getSecretKey()const { return secretKey_; } -long AccessKeyGetResult::getUserId()const +std::string DescribeMonitoringAgentAccessKeyResult::getMessage()const { - return userId_; + return message_; } -int AccessKeyGetResult::getErrorCode()const -{ - return errorCode_; -} - -std::string AccessKeyGetResult::getAccessKey()const +std::string DescribeMonitoringAgentAccessKeyResult::getAccessKey()const { return accessKey_; } -std::string AccessKeyGetResult::getErrorMessage()const +int DescribeMonitoringAgentAccessKeyResult::getCode()const { - return errorMessage_; + return code_; } -bool AccessKeyGetResult::getSuccess()const +bool DescribeMonitoringAgentAccessKeyResult::getSuccess()const { return success_; } diff --git a/cms/src/model/EnableAlarmRequest.cc b/cms/src/model/DescribeMonitoringAgentConfigRequest.cc similarity index 60% rename from cms/src/model/EnableAlarmRequest.cc rename to cms/src/model/DescribeMonitoringAgentConfigRequest.cc index 32eadb7ac..166060723 100644 --- a/cms/src/model/EnableAlarmRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentConfigRequest.cc @@ -14,25 +14,16 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::EnableAlarmRequest; +using AlibabaCloud::Cms::Model::DescribeMonitoringAgentConfigRequest; -EnableAlarmRequest::EnableAlarmRequest() : - RpcServiceRequest("cms", "2018-03-08", "EnableAlarm") +DescribeMonitoringAgentConfigRequest::DescribeMonitoringAgentConfigRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitoringAgentConfigRequest::~DescribeMonitoringAgentConfigRequest() {} -EnableAlarmRequest::~EnableAlarmRequest() -{} - -std::string EnableAlarmRequest::getId()const -{ - return id_; -} - -void EnableAlarmRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - diff --git a/cms/src/model/ProfileGetResult.cc b/cms/src/model/DescribeMonitoringAgentConfigResult.cc similarity index 59% rename from cms/src/model/ProfileGetResult.cc rename to cms/src/model/DescribeMonitoringAgentConfigResult.cc index 89d45fe7f..ca7809322 100644 --- a/cms/src/model/ProfileGetResult.cc +++ b/cms/src/model/DescribeMonitoringAgentConfigResult.cc @@ -14,39 +14,37 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ProfileGetResult::ProfileGetResult() : +DescribeMonitoringAgentConfigResult::DescribeMonitoringAgentConfigResult() : ServiceResult() {} -ProfileGetResult::ProfileGetResult(const std::string &payload) : +DescribeMonitoringAgentConfigResult::DescribeMonitoringAgentConfigResult(const std::string &payload) : ServiceResult() { parse(payload); } -ProfileGetResult::~ProfileGetResult() +DescribeMonitoringAgentConfigResult::~DescribeMonitoringAgentConfigResult() {} -void ProfileGetResult::parse(const std::string &payload) +void DescribeMonitoringAgentConfigResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; reader.parse(payload, value); setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].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["UserId"].isNull()) - userId_ = std::stol(value["UserId"].asString()); if(!value["AutoInstall"].isNull()) autoInstall_ = value["AutoInstall"].asString() == "true"; if(!value["EnableInstallAgentNewECS"].isNull()) @@ -56,37 +54,32 @@ void ProfileGetResult::parse(const std::string &payload) } -bool ProfileGetResult::getAutoInstall()const +bool DescribeMonitoringAgentConfigResult::getAutoInstall()const { return autoInstall_; } -std::string ProfileGetResult::getEnableActiveAlert()const +std::string DescribeMonitoringAgentConfigResult::getEnableActiveAlert()const { return enableActiveAlert_; } -bool ProfileGetResult::getEnableInstallAgentNewECS()const +bool DescribeMonitoringAgentConfigResult::getEnableInstallAgentNewECS()const { return enableInstallAgentNewECS_; } -long ProfileGetResult::getUserId()const +std::string DescribeMonitoringAgentConfigResult::getMessage()const { - return userId_; + return message_; } -int ProfileGetResult::getErrorCode()const +std::string DescribeMonitoringAgentConfigResult::getCode()const { - return errorCode_; + return code_; } -std::string ProfileGetResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ProfileGetResult::getSuccess()const +bool DescribeMonitoringAgentConfigResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeMonitoringAgentHostsRequest.cc b/cms/src/model/DescribeMonitoringAgentHostsRequest.cc new file mode 100644 index 000000000..8c3a9a2c9 --- /dev/null +++ b/cms/src/model/DescribeMonitoringAgentHostsRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::DescribeMonitoringAgentHostsRequest; + +DescribeMonitoringAgentHostsRequest::DescribeMonitoringAgentHostsRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentHosts") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitoringAgentHostsRequest::~DescribeMonitoringAgentHostsRequest() +{} + +std::string DescribeMonitoringAgentHostsRequest::getSerialNumbers()const +{ + return serialNumbers_; +} + +void DescribeMonitoringAgentHostsRequest::setSerialNumbers(const std::string& serialNumbers) +{ + serialNumbers_ = serialNumbers; + setCoreParameter("SerialNumbers", serialNumbers); +} + +int DescribeMonitoringAgentHostsRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeMonitoringAgentHostsRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +std::string DescribeMonitoringAgentHostsRequest::getHostName()const +{ + return hostName_; +} + +void DescribeMonitoringAgentHostsRequest::setHostName(const std::string& hostName) +{ + hostName_ = hostName; + setCoreParameter("HostName", hostName); +} + +std::string DescribeMonitoringAgentHostsRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void DescribeMonitoringAgentHostsRequest::setInstanceIds(const std::string& instanceIds) +{ + instanceIds_ = instanceIds; + setCoreParameter("InstanceIds", instanceIds); +} + +std::string DescribeMonitoringAgentHostsRequest::getInstanceRegionId()const +{ + return instanceRegionId_; +} + +void DescribeMonitoringAgentHostsRequest::setInstanceRegionId(const std::string& instanceRegionId) +{ + instanceRegionId_ = instanceRegionId; + setCoreParameter("InstanceRegionId", instanceRegionId); +} + +int DescribeMonitoringAgentHostsRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeMonitoringAgentHostsRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeMonitoringAgentHostsRequest::getKeyWord()const +{ + return keyWord_; +} + +void DescribeMonitoringAgentHostsRequest::setKeyWord(const std::string& keyWord) +{ + keyWord_ = keyWord; + setCoreParameter("KeyWord", keyWord); +} + diff --git a/cms/src/model/DescribeMonitoringAgentHostsResult.cc b/cms/src/model/DescribeMonitoringAgentHostsResult.cc new file mode 100644 index 000000000..b3183edb4 --- /dev/null +++ b/cms/src/model/DescribeMonitoringAgentHostsResult.cc @@ -0,0 +1,118 @@ +/* + * 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; + +DescribeMonitoringAgentHostsResult::DescribeMonitoringAgentHostsResult() : + ServiceResult() +{} + +DescribeMonitoringAgentHostsResult::DescribeMonitoringAgentHostsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMonitoringAgentHostsResult::~DescribeMonitoringAgentHostsResult() +{} + +void DescribeMonitoringAgentHostsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allHostsNode = value["Hosts"]["Host"]; + for (auto valueHostsHost : allHostsNode) + { + Host hostsObject; + if(!valueHostsHost["InstanceId"].isNull()) + hostsObject.instanceId = valueHostsHost["InstanceId"].asString(); + if(!valueHostsHost["SerialNumber"].isNull()) + hostsObject.serialNumber = valueHostsHost["SerialNumber"].asString(); + if(!valueHostsHost["HostName"].isNull()) + hostsObject.hostName = valueHostsHost["HostName"].asString(); + if(!valueHostsHost["AliUid"].isNull()) + hostsObject.aliUid = std::stol(valueHostsHost["AliUid"].asString()); + if(!valueHostsHost["OperatingSystem"].isNull()) + hostsObject.operatingSystem = valueHostsHost["OperatingSystem"].asString(); + if(!valueHostsHost["IpGroup"].isNull()) + hostsObject.ipGroup = valueHostsHost["IpGroup"].asString(); + if(!valueHostsHost["Region"].isNull()) + hostsObject.region = valueHostsHost["Region"].asString(); + if(!valueHostsHost["AgentVersion"].isNull()) + hostsObject.agentVersion = valueHostsHost["AgentVersion"].asString(); + if(!valueHostsHost["EipAddress"].isNull()) + hostsObject.eipAddress = valueHostsHost["EipAddress"].asString(); + if(!valueHostsHost["EipId"].isNull()) + hostsObject.eipId = valueHostsHost["EipId"].asString(); + if(!valueHostsHost["isAliyunHost"].isNull()) + hostsObject.isAliyunHost = valueHostsHost["isAliyunHost"].asString() == "true"; + if(!valueHostsHost["NatIp"].isNull()) + hostsObject.natIp = valueHostsHost["NatIp"].asString(); + if(!valueHostsHost["NetworkType"].isNull()) + hostsObject.networkType = valueHostsHost["NetworkType"].asString(); + if(!valueHostsHost["InstanceTypeFamily"].isNull()) + hostsObject.instanceTypeFamily = valueHostsHost["InstanceTypeFamily"].asString(); + hosts_.push_back(hostsObject); + } + 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["PageTotal"].isNull()) + pageTotal_ = std::stoi(value["PageTotal"].asString()); + if(!value["Total"].isNull()) + total_ = std::stoi(value["Total"].asString()); + +} + +std::vector DescribeMonitoringAgentHostsResult::getHosts()const +{ + return hosts_; +} + +std::string DescribeMonitoringAgentHostsResult::getMessage()const +{ + return message_; +} + +int DescribeMonitoringAgentHostsResult::getPageTotal()const +{ + return pageTotal_; +} + +int DescribeMonitoringAgentHostsResult::getTotal()const +{ + return total_; +} + +std::string DescribeMonitoringAgentHostsResult::getCode()const +{ + return code_; +} + +bool DescribeMonitoringAgentHostsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/NodeUninstallRequest.cc b/cms/src/model/DescribeMonitoringAgentProcessesRequest.cc similarity index 54% rename from cms/src/model/NodeUninstallRequest.cc rename to cms/src/model/DescribeMonitoringAgentProcessesRequest.cc index 79e120eec..f573cad31 100644 --- a/cms/src/model/NodeUninstallRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentProcessesRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::NodeUninstallRequest; +using AlibabaCloud::Cms::Model::DescribeMonitoringAgentProcessesRequest; -NodeUninstallRequest::NodeUninstallRequest() : - RpcServiceRequest("cms", "2018-03-08", "NodeUninstall") +DescribeMonitoringAgentProcessesRequest::DescribeMonitoringAgentProcessesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentProcesses") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitoringAgentProcessesRequest::~DescribeMonitoringAgentProcessesRequest() {} -NodeUninstallRequest::~NodeUninstallRequest() -{} - -std::string NodeUninstallRequest::getInstanceId()const +std::string DescribeMonitoringAgentProcessesRequest::getInstanceId()const { return instanceId_; } -void NodeUninstallRequest::setInstanceId(const std::string& instanceId) +void DescribeMonitoringAgentProcessesRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setCoreParameter("InstanceId", instanceId); diff --git a/cms/src/model/NodeProcessesResult.cc b/cms/src/model/DescribeMonitoringAgentProcessesResult.cc similarity index 60% rename from cms/src/model/NodeProcessesResult.cc rename to cms/src/model/DescribeMonitoringAgentProcessesResult.cc index 9d9b36437..30f4ddf18 100644 --- a/cms/src/model/NodeProcessesResult.cc +++ b/cms/src/model/DescribeMonitoringAgentProcessesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -NodeProcessesResult::NodeProcessesResult() : +DescribeMonitoringAgentProcessesResult::DescribeMonitoringAgentProcessesResult() : ServiceResult() {} -NodeProcessesResult::NodeProcessesResult(const std::string &payload) : +DescribeMonitoringAgentProcessesResult::DescribeMonitoringAgentProcessesResult(const std::string &payload) : ServiceResult() { parse(payload); } -NodeProcessesResult::~NodeProcessesResult() +DescribeMonitoringAgentProcessesResult::~DescribeMonitoringAgentProcessesResult() {} -void NodeProcessesResult::parse(const std::string &payload) +void DescribeMonitoringAgentProcessesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,10 +43,8 @@ void NodeProcessesResult::parse(const std::string &payload) for (auto valueNodeProcessesNodeProcess : allNodeProcessesNode) { NodeProcess nodeProcessesObject; - if(!valueNodeProcessesNodeProcess["Id"].isNull()) - nodeProcessesObject.id = std::stol(valueNodeProcessesNodeProcess["Id"].asString()); - if(!valueNodeProcessesNodeProcess["Name"].isNull()) - nodeProcessesObject.name = valueNodeProcessesNodeProcess["Name"].asString(); + if(!valueNodeProcessesNodeProcess["ProcessId"].isNull()) + nodeProcessesObject.processId = std::stol(valueNodeProcessesNodeProcess["ProcessId"].asString()); if(!valueNodeProcessesNodeProcess["InstanceId"].isNull()) nodeProcessesObject.instanceId = valueNodeProcessesNodeProcess["InstanceId"].asString(); if(!valueNodeProcessesNodeProcess["ProcessName"].isNull()) @@ -55,33 +53,35 @@ void NodeProcessesResult::parse(const std::string &payload) nodeProcessesObject.processUser = valueNodeProcessesNodeProcess["ProcessUser"].asString(); if(!valueNodeProcessesNodeProcess["Command"].isNull()) nodeProcessesObject.command = valueNodeProcessesNodeProcess["Command"].asString(); + if(!valueNodeProcessesNodeProcess["GroupId"].isNull()) + nodeProcessesObject.groupId = valueNodeProcessesNodeProcess["GroupId"].asString(); nodeProcesses_.push_back(nodeProcessesObject); } - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].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::vector NodeProcessesResult::getNodeProcesses()const +std::string DescribeMonitoringAgentProcessesResult::getMessage()const +{ + return message_; +} + +std::vector DescribeMonitoringAgentProcessesResult::getNodeProcesses()const { return nodeProcesses_; } -int NodeProcessesResult::getErrorCode()const +std::string DescribeMonitoringAgentProcessesResult::getCode()const { - return errorCode_; + return code_; } -std::string NodeProcessesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeProcessesResult::getSuccess()const +bool DescribeMonitoringAgentProcessesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/NodeStatusListRequest.cc b/cms/src/model/DescribeMonitoringAgentStatusesRequest.cc similarity index 54% rename from cms/src/model/NodeStatusListRequest.cc rename to cms/src/model/DescribeMonitoringAgentStatusesRequest.cc index 54b80db55..d4c82bc9f 100644 --- a/cms/src/model/NodeStatusListRequest.cc +++ b/cms/src/model/DescribeMonitoringAgentStatusesRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::NodeStatusListRequest; +using AlibabaCloud::Cms::Model::DescribeMonitoringAgentStatusesRequest; -NodeStatusListRequest::NodeStatusListRequest() : - RpcServiceRequest("cms", "2018-03-08", "NodeStatusList") +DescribeMonitoringAgentStatusesRequest::DescribeMonitoringAgentStatusesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringAgentStatuses") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitoringAgentStatusesRequest::~DescribeMonitoringAgentStatusesRequest() {} -NodeStatusListRequest::~NodeStatusListRequest() -{} - -std::string NodeStatusListRequest::getInstanceIds()const +std::string DescribeMonitoringAgentStatusesRequest::getInstanceIds()const { return instanceIds_; } -void NodeStatusListRequest::setInstanceIds(const std::string& instanceIds) +void DescribeMonitoringAgentStatusesRequest::setInstanceIds(const std::string& instanceIds) { instanceIds_ = instanceIds; setCoreParameter("InstanceIds", instanceIds); diff --git a/cms/src/model/NodeStatusListResult.cc b/cms/src/model/DescribeMonitoringAgentStatusesResult.cc similarity index 65% rename from cms/src/model/NodeStatusListResult.cc rename to cms/src/model/DescribeMonitoringAgentStatusesResult.cc index 4b7ff7fe3..97e31d41f 100644 --- a/cms/src/model/NodeStatusListResult.cc +++ b/cms/src/model/DescribeMonitoringAgentStatusesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -NodeStatusListResult::NodeStatusListResult() : +DescribeMonitoringAgentStatusesResult::DescribeMonitoringAgentStatusesResult() : ServiceResult() {} -NodeStatusListResult::NodeStatusListResult(const std::string &payload) : +DescribeMonitoringAgentStatusesResult::DescribeMonitoringAgentStatusesResult(const std::string &payload) : ServiceResult() { parse(payload); } -NodeStatusListResult::~NodeStatusListResult() +DescribeMonitoringAgentStatusesResult::~DescribeMonitoringAgentStatusesResult() {} -void NodeStatusListResult::parse(const std::string &payload) +void DescribeMonitoringAgentStatusesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -51,31 +51,31 @@ void NodeStatusListResult::parse(const std::string &payload) nodeStatusListObject.status = valueNodeStatusListNodeStatus["Status"].asString(); nodeStatusList_.push_back(nodeStatusListObject); } - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].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::vector NodeStatusListResult::getNodeStatusList()const +std::string DescribeMonitoringAgentStatusesResult::getMessage()const +{ + return message_; +} + +std::vector DescribeMonitoringAgentStatusesResult::getNodeStatusList()const { return nodeStatusList_; } -int NodeStatusListResult::getErrorCode()const +std::string DescribeMonitoringAgentStatusesResult::getCode()const { - return errorCode_; + return code_; } -std::string NodeStatusListResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeStatusListResult::getSuccess()const +bool DescribeMonitoringAgentStatusesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/QueryTaskConfigRequest.cc b/cms/src/model/DescribeMonitoringConfigRequest.cc similarity index 62% rename from cms/src/model/QueryTaskConfigRequest.cc rename to cms/src/model/DescribeMonitoringConfigRequest.cc index dce1a4cc0..1b48f621c 100644 --- a/cms/src/model/QueryTaskConfigRequest.cc +++ b/cms/src/model/DescribeMonitoringConfigRequest.cc @@ -14,14 +14,16 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::QueryTaskConfigRequest; +using AlibabaCloud::Cms::Model::DescribeMonitoringConfigRequest; -QueryTaskConfigRequest::QueryTaskConfigRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryTaskConfig") -{} - -QueryTaskConfigRequest::~QueryTaskConfigRequest() +DescribeMonitoringConfigRequest::DescribeMonitoringConfigRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeMonitoringConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeMonitoringConfigRequest::~DescribeMonitoringConfigRequest() {} diff --git a/cms/src/model/DescribeMonitoringConfigResult.cc b/cms/src/model/DescribeMonitoringConfigResult.cc new file mode 100644 index 000000000..6267e64c4 --- /dev/null +++ b/cms/src/model/DescribeMonitoringConfigResult.cc @@ -0,0 +1,79 @@ +/* + * 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; + +DescribeMonitoringConfigResult::DescribeMonitoringConfigResult() : + ServiceResult() +{} + +DescribeMonitoringConfigResult::DescribeMonitoringConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeMonitoringConfigResult::~DescribeMonitoringConfigResult() +{} + +void DescribeMonitoringConfigResult::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["AutoInstall"].isNull()) + autoInstall_ = value["AutoInstall"].asString() == "true"; + if(!value["EnableInstallAgentNewECS"].isNull()) + enableInstallAgentNewECS_ = value["EnableInstallAgentNewECS"].asString() == "true"; + +} + +bool DescribeMonitoringConfigResult::getAutoInstall()const +{ + return autoInstall_; +} + +bool DescribeMonitoringConfigResult::getEnableInstallAgentNewECS()const +{ + return enableInstallAgentNewECS_; +} + +std::string DescribeMonitoringConfigResult::getMessage()const +{ + return message_; +} + +std::string DescribeMonitoringConfigResult::getCode()const +{ + return code_; +} + +bool DescribeMonitoringConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeProductsOfActiveMetricRuleRequest.cc b/cms/src/model/DescribeProductsOfActiveMetricRuleRequest.cc new file mode 100644 index 000000000..7af59402f --- /dev/null +++ b/cms/src/model/DescribeProductsOfActiveMetricRuleRequest.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::DescribeProductsOfActiveMetricRuleRequest; + +DescribeProductsOfActiveMetricRuleRequest::DescribeProductsOfActiveMetricRuleRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeProductsOfActiveMetricRule") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeProductsOfActiveMetricRuleRequest::~DescribeProductsOfActiveMetricRuleRequest() +{} + diff --git a/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc b/cms/src/model/DescribeProductsOfActiveMetricRuleResult.cc new file mode 100644 index 000000000..3e316fff4 --- /dev/null +++ b/cms/src/model/DescribeProductsOfActiveMetricRuleResult.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; + +DescribeProductsOfActiveMetricRuleResult::DescribeProductsOfActiveMetricRuleResult() : + ServiceResult() +{} + +DescribeProductsOfActiveMetricRuleResult::DescribeProductsOfActiveMetricRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeProductsOfActiveMetricRuleResult::~DescribeProductsOfActiveMetricRuleResult() +{} + +void DescribeProductsOfActiveMetricRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Datapoints"].isNull()) + datapoints_ = value["Datapoints"].asString(); + +} + +std::string DescribeProductsOfActiveMetricRuleResult::getMessage()const +{ + return message_; +} + +std::string DescribeProductsOfActiveMetricRuleResult::getDatapoints()const +{ + return datapoints_; +} + +int DescribeProductsOfActiveMetricRuleResult::getCode()const +{ + return code_; +} + +bool DescribeProductsOfActiveMetricRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryProjectMetaRequest.cc b/cms/src/model/DescribeProjectMetaRequest.cc similarity index 56% rename from cms/src/model/QueryProjectMetaRequest.cc rename to cms/src/model/DescribeProjectMetaRequest.cc index 579291eaa..493252e2b 100644 --- a/cms/src/model/QueryProjectMetaRequest.cc +++ b/cms/src/model/DescribeProjectMetaRequest.cc @@ -14,45 +14,47 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::QueryProjectMetaRequest; +using AlibabaCloud::Cms::Model::DescribeProjectMetaRequest; -QueryProjectMetaRequest::QueryProjectMetaRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryProjectMeta") +DescribeProjectMetaRequest::DescribeProjectMetaRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeProjectMeta") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeProjectMetaRequest::~DescribeProjectMetaRequest() {} -QueryProjectMetaRequest::~QueryProjectMetaRequest() -{} - -int QueryProjectMetaRequest::getPageSize()const +int DescribeProjectMetaRequest::getPageSize()const { return pageSize_; } -void QueryProjectMetaRequest::setPageSize(int pageSize) +void DescribeProjectMetaRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setCoreParameter("PageSize", std::to_string(pageSize)); } -int QueryProjectMetaRequest::getPageNumber()const +int DescribeProjectMetaRequest::getPageNumber()const { return pageNumber_; } -void QueryProjectMetaRequest::setPageNumber(int pageNumber) +void DescribeProjectMetaRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setCoreParameter("PageNumber", std::to_string(pageNumber)); } -std::string QueryProjectMetaRequest::getLabels()const +std::string DescribeProjectMetaRequest::getLabels()const { return labels_; } -void QueryProjectMetaRequest::setLabels(const std::string& labels) +void DescribeProjectMetaRequest::setLabels(const std::string& labels) { labels_ = labels; setCoreParameter("Labels", labels); diff --git a/cms/src/model/QueryProjectMetaResult.cc b/cms/src/model/DescribeProjectMetaResult.cc similarity index 52% rename from cms/src/model/QueryProjectMetaResult.cc rename to cms/src/model/DescribeProjectMetaResult.cc index d9e793fa8..aa4d76280 100644 --- a/cms/src/model/QueryProjectMetaResult.cc +++ b/cms/src/model/DescribeProjectMetaResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QueryProjectMetaResult::QueryProjectMetaResult() : +DescribeProjectMetaResult::DescribeProjectMetaResult() : ServiceResult() {} -QueryProjectMetaResult::QueryProjectMetaResult(const std::string &payload) : +DescribeProjectMetaResult::DescribeProjectMetaResult(const std::string &payload) : ServiceResult() { parse(payload); } -QueryProjectMetaResult::~QueryProjectMetaResult() +DescribeProjectMetaResult::~DescribeProjectMetaResult() {} -void QueryProjectMetaResult::parse(const std::string &payload) +void DescribeProjectMetaResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,8 +43,8 @@ void QueryProjectMetaResult::parse(const std::string &payload) for (auto valueResourcesResource : allResourcesNode) { Resource resourcesObject; - if(!valueResourcesResource["Project"].isNull()) - resourcesObject.project = valueResourcesResource["Project"].asString(); + if(!valueResourcesResource["Namespace"].isNull()) + resourcesObject._namespace = valueResourcesResource["Namespace"].asString(); if(!valueResourcesResource["Description"].isNull()) resourcesObject.description = valueResourcesResource["Description"].asString(); if(!valueResourcesResource["Labels"].isNull()) @@ -53,29 +53,50 @@ void QueryProjectMetaResult::parse(const std::string &payload) } if(!value["Success"].isNull()) success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = value["ErrorCode"].asString(); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Total"].isNull()) + total_ = value["Total"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = value["PageNumber"].asString(); + if(!value["PageSize"].isNull()) + pageSize_ = value["PageSize"].asString(); } -std::vector QueryProjectMetaResult::getResources()const +std::string DescribeProjectMetaResult::getMessage()const +{ + return message_; +} + +std::string DescribeProjectMetaResult::getPageSize()const +{ + return pageSize_; +} + +std::string DescribeProjectMetaResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeProjectMetaResult::getTotal()const +{ + return total_; +} + +std::vector DescribeProjectMetaResult::getResources()const { return resources_; } -std::string QueryProjectMetaResult::getErrorCode()const +std::string DescribeProjectMetaResult::getCode()const { - return errorCode_; + return code_; } -std::string QueryProjectMetaResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool QueryProjectMetaResult::getSuccess()const +bool DescribeProjectMetaResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeSiteMonitorAttributeRequest.cc b/cms/src/model/DescribeSiteMonitorAttributeRequest.cc new file mode 100644 index 000000000..bfbcc8a66 --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorAttributeRequest.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::DescribeSiteMonitorAttributeRequest; + +DescribeSiteMonitorAttributeRequest::DescribeSiteMonitorAttributeRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSiteMonitorAttributeRequest::~DescribeSiteMonitorAttributeRequest() +{} + +bool DescribeSiteMonitorAttributeRequest::getIncludeAlert()const +{ + return includeAlert_; +} + +void DescribeSiteMonitorAttributeRequest::setIncludeAlert(bool includeAlert) +{ + includeAlert_ = includeAlert; + setCoreParameter("IncludeAlert", includeAlert ? "true" : "false"); +} + +std::string DescribeSiteMonitorAttributeRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeSiteMonitorAttributeRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + diff --git a/cms/src/model/DescribeSiteMonitorAttributeResult.cc b/cms/src/model/DescribeSiteMonitorAttributeResult.cc new file mode 100644 index 000000000..640978fdf --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorAttributeResult.cc @@ -0,0 +1,142 @@ +/* + * 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; + +DescribeSiteMonitorAttributeResult::DescribeSiteMonitorAttributeResult() : + ServiceResult() +{} + +DescribeSiteMonitorAttributeResult::DescribeSiteMonitorAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSiteMonitorAttributeResult::~DescribeSiteMonitorAttributeResult() +{} + +void DescribeSiteMonitorAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allMetricRulesNode = value["MetricRules"]["MetricRule"]; + for (auto valueMetricRulesMetricRule : allMetricRulesNode) + { + MetricRule metricRulesObject; + if(!valueMetricRulesMetricRule["RuleId"].isNull()) + metricRulesObject.ruleId = valueMetricRulesMetricRule["RuleId"].asString(); + if(!valueMetricRulesMetricRule["RuleName"].isNull()) + metricRulesObject.ruleName = valueMetricRulesMetricRule["RuleName"].asString(); + if(!valueMetricRulesMetricRule["Namespace"].isNull()) + metricRulesObject._namespace = valueMetricRulesMetricRule["Namespace"].asString(); + if(!valueMetricRulesMetricRule["MetricName"].isNull()) + metricRulesObject.metricName = valueMetricRulesMetricRule["MetricName"].asString(); + if(!valueMetricRulesMetricRule["OkActions"].isNull()) + metricRulesObject.okActions = valueMetricRulesMetricRule["OkActions"].asString(); + if(!valueMetricRulesMetricRule["AlarmActions"].isNull()) + metricRulesObject.alarmActions = valueMetricRulesMetricRule["AlarmActions"].asString(); + if(!valueMetricRulesMetricRule["Statistics"].isNull()) + metricRulesObject.statistics = valueMetricRulesMetricRule["Statistics"].asString(); + if(!valueMetricRulesMetricRule["ActionEnable"].isNull()) + metricRulesObject.actionEnable = valueMetricRulesMetricRule["ActionEnable"].asString(); + if(!valueMetricRulesMetricRule["Period"].isNull()) + metricRulesObject.period = valueMetricRulesMetricRule["Period"].asString(); + if(!valueMetricRulesMetricRule["ComparisonOperator"].isNull()) + metricRulesObject.comparisonOperator = valueMetricRulesMetricRule["ComparisonOperator"].asString(); + if(!valueMetricRulesMetricRule["Threshold"].isNull()) + metricRulesObject.threshold = valueMetricRulesMetricRule["Threshold"].asString(); + if(!valueMetricRulesMetricRule["EvaluationCount"].isNull()) + metricRulesObject.evaluationCount = valueMetricRulesMetricRule["EvaluationCount"].asString(); + if(!valueMetricRulesMetricRule["Level"].isNull()) + metricRulesObject.level = valueMetricRulesMetricRule["Level"].asString(); + if(!valueMetricRulesMetricRule["Expression"].isNull()) + metricRulesObject.expression = valueMetricRulesMetricRule["Expression"].asString(); + if(!valueMetricRulesMetricRule["StateValue"].isNull()) + metricRulesObject.stateValue = valueMetricRulesMetricRule["StateValue"].asString(); + if(!valueMetricRulesMetricRule["Dimensions"].isNull()) + metricRulesObject.dimensions = valueMetricRulesMetricRule["Dimensions"].asString(); + metricRules_.push_back(metricRulesObject); + } + auto siteMonitorsNode = value["SiteMonitors"]; + if(!siteMonitorsNode["TaskType"].isNull()) + siteMonitors_.taskType = siteMonitorsNode["TaskType"].asString(); + if(!siteMonitorsNode["Address"].isNull()) + siteMonitors_.address = siteMonitorsNode["Address"].asString(); + if(!siteMonitorsNode["TaskState"].isNull()) + siteMonitors_.taskState = siteMonitorsNode["TaskState"].asString(); + if(!siteMonitorsNode["TaskName"].isNull()) + siteMonitors_.taskName = siteMonitorsNode["TaskName"].asString(); + if(!siteMonitorsNode["Interval"].isNull()) + siteMonitors_.interval = siteMonitorsNode["Interval"].asString(); + if(!siteMonitorsNode["TaskId"].isNull()) + siteMonitors_.taskId = siteMonitorsNode["TaskId"].asString(); + if(!siteMonitorsNode["OptionJson"].isNull()) + siteMonitors_.optionJson = siteMonitorsNode["OptionJson"].asString(); + auto allIspCitiesNode = siteMonitorsNode["IspCities"]["IspCity"]; + for (auto siteMonitorsNodeIspCitiesIspCity : allIspCitiesNode) + { + SiteMonitors::IspCity ispCityObject; + if(!siteMonitorsNodeIspCitiesIspCity["CityName"].isNull()) + ispCityObject.cityName = siteMonitorsNodeIspCitiesIspCity["CityName"].asString(); + if(!siteMonitorsNodeIspCitiesIspCity["IspName"].isNull()) + ispCityObject.ispName = siteMonitorsNodeIspCitiesIspCity["IspName"].asString(); + if(!siteMonitorsNodeIspCitiesIspCity["City"].isNull()) + ispCityObject.city = siteMonitorsNodeIspCitiesIspCity["City"].asString(); + if(!siteMonitorsNodeIspCitiesIspCity["Isp"].isNull()) + ispCityObject.isp = siteMonitorsNodeIspCitiesIspCity["Isp"].asString(); + siteMonitors_.ispCities.push_back(ispCityObject); + } + 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::vector DescribeSiteMonitorAttributeResult::getMetricRules()const +{ + return metricRules_; +} + +std::string DescribeSiteMonitorAttributeResult::getMessage()const +{ + return message_; +} + +std::string DescribeSiteMonitorAttributeResult::getCode()const +{ + return code_; +} + +DescribeSiteMonitorAttributeResult::SiteMonitors DescribeSiteMonitorAttributeResult::getSiteMonitors()const +{ + return siteMonitors_; +} + +bool DescribeSiteMonitorAttributeResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeSiteMonitorDataRequest.cc b/cms/src/model/DescribeSiteMonitorDataRequest.cc new file mode 100644 index 000000000..0fb1c22de --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorDataRequest.cc @@ -0,0 +1,117 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeSiteMonitorDataRequest; + +DescribeSiteMonitorDataRequest::DescribeSiteMonitorDataRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorData") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSiteMonitorDataRequest::~DescribeSiteMonitorDataRequest() +{} + +std::string DescribeSiteMonitorDataRequest::getPeriod()const +{ + return period_; +} + +void DescribeSiteMonitorDataRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +int DescribeSiteMonitorDataRequest::getLength()const +{ + return length_; +} + +void DescribeSiteMonitorDataRequest::setLength(int length) +{ + length_ = length; + setCoreParameter("Length", std::to_string(length)); +} + +std::string DescribeSiteMonitorDataRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSiteMonitorDataRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeSiteMonitorDataRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSiteMonitorDataRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeSiteMonitorDataRequest::getType()const +{ + return type_; +} + +void DescribeSiteMonitorDataRequest::setType(const std::string& type) +{ + type_ = type; + setCoreParameter("Type", type); +} + +std::string DescribeSiteMonitorDataRequest::getNextToken()const +{ + return nextToken_; +} + +void DescribeSiteMonitorDataRequest::setNextToken(const std::string& nextToken) +{ + nextToken_ = nextToken; + setCoreParameter("NextToken", nextToken); +} + +std::string DescribeSiteMonitorDataRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeSiteMonitorDataRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeSiteMonitorDataRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeSiteMonitorDataRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + diff --git a/cms/src/model/QuerySystemEventCountResult.cc b/cms/src/model/DescribeSiteMonitorDataResult.cc similarity index 65% rename from cms/src/model/QuerySystemEventCountResult.cc rename to cms/src/model/DescribeSiteMonitorDataResult.cc index 39b5269c2..c539c9528 100644 --- a/cms/src/model/QuerySystemEventCountResult.cc +++ b/cms/src/model/DescribeSiteMonitorDataResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -QuerySystemEventCountResult::QuerySystemEventCountResult() : +DescribeSiteMonitorDataResult::DescribeSiteMonitorDataResult() : ServiceResult() {} -QuerySystemEventCountResult::QuerySystemEventCountResult(const std::string &payload) : +DescribeSiteMonitorDataResult::DescribeSiteMonitorDataResult(const std::string &payload) : ServiceResult() { parse(payload); } -QuerySystemEventCountResult::~QuerySystemEventCountResult() +DescribeSiteMonitorDataResult::~DescribeSiteMonitorDataResult() {} -void QuerySystemEventCountResult::parse(const std::string &payload) +void DescribeSiteMonitorDataResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,29 +43,36 @@ void QuerySystemEventCountResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString(); + if(!value["Data"].isNull()) + data_ = value["Data"].asString(); + if(!value["NextToken"].isNull()) + nextToken_ = value["NextToken"].asString(); } -std::string QuerySystemEventCountResult::getMessage()const +std::string DescribeSiteMonitorDataResult::getMessage()const { return message_; } -std::string QuerySystemEventCountResult::getData()const +std::string DescribeSiteMonitorDataResult::getNextToken()const +{ + return nextToken_; +} + +std::string DescribeSiteMonitorDataResult::getData()const { return data_; } -std::string QuerySystemEventCountResult::getCode()const +std::string DescribeSiteMonitorDataResult::getCode()const { return code_; } -std::string QuerySystemEventCountResult::getSuccess()const +std::string DescribeSiteMonitorDataResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeSiteMonitorISPAreaCityRequest.cc b/cms/src/model/DescribeSiteMonitorISPAreaCityRequest.cc deleted file mode 100644 index 974c3b6bb..000000000 --- a/cms/src/model/DescribeSiteMonitorISPAreaCityRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::DescribeSiteMonitorISPAreaCityRequest; - -DescribeSiteMonitorISPAreaCityRequest::DescribeSiteMonitorISPAreaCityRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeSiteMonitorISPAreaCity") -{} - -DescribeSiteMonitorISPAreaCityRequest::~DescribeSiteMonitorISPAreaCityRequest() -{} - -std::string DescribeSiteMonitorISPAreaCityRequest::getCity()const -{ - return city_; -} - -void DescribeSiteMonitorISPAreaCityRequest::setCity(const std::string& city) -{ - city_ = city; - setCoreParameter("City", city); -} - -std::string DescribeSiteMonitorISPAreaCityRequest::getIsp()const -{ - return isp_; -} - -void DescribeSiteMonitorISPAreaCityRequest::setIsp(const std::string& isp) -{ - isp_ = isp; - setCoreParameter("Isp", isp); -} - diff --git a/cms/src/model/DescribeSiteMonitorISPAreaCityResult.cc b/cms/src/model/DescribeSiteMonitorISPAreaCityResult.cc deleted file mode 100644 index b74b602b3..000000000 --- a/cms/src/model/DescribeSiteMonitorISPAreaCityResult.cc +++ /dev/null @@ -1,95 +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; - -DescribeSiteMonitorISPAreaCityResult::DescribeSiteMonitorISPAreaCityResult() : - ServiceResult() -{} - -DescribeSiteMonitorISPAreaCityResult::DescribeSiteMonitorISPAreaCityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeSiteMonitorISPAreaCityResult::~DescribeSiteMonitorISPAreaCityResult() -{} - -void DescribeSiteMonitorISPAreaCityResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allIspCityListNode = value["IspCityList"]["IspCity"]; - for (auto valueIspCityListIspCity : allIspCityListNode) - { - IspCity ispCityListObject; - if(!valueIspCityListIspCity["City"].isNull()) - ispCityListObject.city = valueIspCityListIspCity["City"].asString(); - if(!valueIspCityListIspCity["Isp"].isNull()) - ispCityListObject.isp = valueIspCityListIspCity["Isp"].asString(); - if(!valueIspCityListIspCity["CityName"].isNull()) - ispCityListObject.cityName = valueIspCityListIspCity["CityName"].asString(); - if(!valueIspCityListIspCity["IspName"].isNull()) - ispCityListObject.ispName = valueIspCityListIspCity["IspName"].asString(); - if(!valueIspCityListIspCity["Country"].isNull()) - ispCityListObject.country = valueIspCityListIspCity["Country"].asString(); - if(!valueIspCityListIspCity["Region"].isNull()) - ispCityListObject.region = valueIspCityListIspCity["Region"].asString(); - ispCityList_.push_back(ispCityListObject); - } - if(!value["Code"].isNull()) - code_ = value["Code"].asString(); - if(!value["Message"].isNull()) - message_ = value["Message"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - -} - -std::string DescribeSiteMonitorISPAreaCityResult::getMessage()const -{ - return message_; -} - -std::string DescribeSiteMonitorISPAreaCityResult::getData()const -{ - return data_; -} - -std::string DescribeSiteMonitorISPAreaCityResult::getCode()const -{ - return code_; -} - -std::vector DescribeSiteMonitorISPAreaCityResult::getIspCityList()const -{ - return ispCityList_; -} - -std::string DescribeSiteMonitorISPAreaCityResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc b/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc index 37dbc4f7a..73ecc8dee 100644 --- a/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc +++ b/cms/src/model/DescribeSiteMonitorISPCityListRequest.cc @@ -19,31 +19,33 @@ using AlibabaCloud::Cms::Model::DescribeSiteMonitorISPCityListRequest; DescribeSiteMonitorISPCityListRequest::DescribeSiteMonitorISPCityListRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeSiteMonitorISPCityList") -{} + RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorISPCityList") +{ + setMethod(HttpRequest::Method::Post); +} DescribeSiteMonitorISPCityListRequest::~DescribeSiteMonitorISPCityListRequest() {} -std::string DescribeSiteMonitorISPCityListRequest::getCity()const -{ - return city_; -} - -void DescribeSiteMonitorISPCityListRequest::setCity(const std::string& city) -{ - city_ = city; - setCoreParameter("City", city); -} - -std::string DescribeSiteMonitorISPCityListRequest::getIsp()const -{ - return isp_; -} - -void DescribeSiteMonitorISPCityListRequest::setIsp(const std::string& isp) -{ - isp_ = isp; - setCoreParameter("Isp", isp); -} - +std::string DescribeSiteMonitorISPCityListRequest::getCity()const +{ + return city_; +} + +void DescribeSiteMonitorISPCityListRequest::setCity(const std::string& city) +{ + city_ = city; + setCoreParameter("City", city); +} + +std::string DescribeSiteMonitorISPCityListRequest::getIsp()const +{ + return isp_; +} + +void DescribeSiteMonitorISPCityListRequest::setIsp(const std::string& isp) +{ + isp_ = isp; + setCoreParameter("Isp", isp); +} + diff --git a/cms/src/model/DescribeSiteMonitorISPCityListResult.cc b/cms/src/model/DescribeSiteMonitorISPCityListResult.cc index 2cfeb3d85..a5447644e 100644 --- a/cms/src/model/DescribeSiteMonitorISPCityListResult.cc +++ b/cms/src/model/DescribeSiteMonitorISPCityListResult.cc @@ -55,6 +55,14 @@ void DescribeSiteMonitorISPCityListResult::parse(const std::string &payload) ispCityListObject.regionzh_CN = valueIspCityListIspCity["Region.zh_CN"].asString(); if(!valueIspCityListIspCity["Country.zh_CN"].isNull()) ispCityListObject.countryzh_CN = valueIspCityListIspCity["Country.zh_CN"].asString(); + if(!valueIspCityListIspCity["IspName.en"].isNull()) + ispCityListObject.ispNameen = valueIspCityListIspCity["IspName.en"].asString(); + if(!valueIspCityListIspCity["CityName.en"].isNull()) + ispCityListObject.cityNameen = valueIspCityListIspCity["CityName.en"].asString(); + if(!valueIspCityListIspCity["Region.en"].isNull()) + ispCityListObject.regionen = valueIspCityListIspCity["Region.en"].asString(); + if(!valueIspCityListIspCity["Country.en"].isNull()) + ispCityListObject.countryen = valueIspCityListIspCity["Country.en"].asString(); ispCityList_.push_back(ispCityListObject); } if(!value["Code"].isNull()) diff --git a/cms/src/model/DescribeTasksRequest.cc b/cms/src/model/DescribeSiteMonitorListRequest.cc similarity index 50% rename from cms/src/model/DescribeTasksRequest.cc rename to cms/src/model/DescribeSiteMonitorListRequest.cc index 39c704c16..507651748 100644 --- a/cms/src/model/DescribeTasksRequest.cc +++ b/cms/src/model/DescribeSiteMonitorListRequest.cc @@ -14,67 +14,69 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DescribeTasksRequest; +using AlibabaCloud::Cms::Model::DescribeSiteMonitorListRequest; -DescribeTasksRequest::DescribeTasksRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeTasks") +DescribeSiteMonitorListRequest::DescribeSiteMonitorListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSiteMonitorListRequest::~DescribeSiteMonitorListRequest() {} -DescribeTasksRequest::~DescribeTasksRequest() -{} - -std::string DescribeTasksRequest::getTaskType()const +std::string DescribeSiteMonitorListRequest::getTaskType()const { return taskType_; } -void DescribeTasksRequest::setTaskType(const std::string& taskType) +void DescribeSiteMonitorListRequest::setTaskType(const std::string& taskType) { taskType_ = taskType; setCoreParameter("TaskType", taskType); } -int DescribeTasksRequest::getPageSize()const +int DescribeSiteMonitorListRequest::getPageSize()const { return pageSize_; } -void DescribeTasksRequest::setPageSize(int pageSize) +void DescribeSiteMonitorListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setCoreParameter("PageSize", std::to_string(pageSize)); } -int DescribeTasksRequest::getPage()const +int DescribeSiteMonitorListRequest::getPage()const { return page_; } -void DescribeTasksRequest::setPage(int page) +void DescribeSiteMonitorListRequest::setPage(int page) { page_ = page; setCoreParameter("Page", std::to_string(page)); } -std::string DescribeTasksRequest::getKeyword()const +std::string DescribeSiteMonitorListRequest::getKeyword()const { return keyword_; } -void DescribeTasksRequest::setKeyword(const std::string& keyword) +void DescribeSiteMonitorListRequest::setKeyword(const std::string& keyword) { keyword_ = keyword; setCoreParameter("Keyword", keyword); } -std::string DescribeTasksRequest::getTaskId()const +std::string DescribeSiteMonitorListRequest::getTaskId()const { return taskId_; } -void DescribeTasksRequest::setTaskId(const std::string& taskId) +void DescribeSiteMonitorListRequest::setTaskId(const std::string& taskId) { taskId_ = taskId; setCoreParameter("TaskId", taskId); diff --git a/cms/src/model/DescribeSiteMonitorListResult.cc b/cms/src/model/DescribeSiteMonitorListResult.cc new file mode 100644 index 000000000..4feb28430 --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorListResult.cc @@ -0,0 +1,115 @@ +/* + * 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; + +DescribeSiteMonitorListResult::DescribeSiteMonitorListResult() : + ServiceResult() +{} + +DescribeSiteMonitorListResult::DescribeSiteMonitorListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSiteMonitorListResult::~DescribeSiteMonitorListResult() +{} + +void DescribeSiteMonitorListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSiteMonitorsNode = value["SiteMonitors"]["SiteMonitor"]; + for (auto valueSiteMonitorsSiteMonitor : allSiteMonitorsNode) + { + SiteMonitor siteMonitorsObject; + if(!valueSiteMonitorsSiteMonitor["TaskId"].isNull()) + siteMonitorsObject.taskId = valueSiteMonitorsSiteMonitor["TaskId"].asString(); + if(!valueSiteMonitorsSiteMonitor["TaskType"].isNull()) + siteMonitorsObject.taskType = valueSiteMonitorsSiteMonitor["TaskType"].asString(); + if(!valueSiteMonitorsSiteMonitor["Address"].isNull()) + siteMonitorsObject.address = valueSiteMonitorsSiteMonitor["Address"].asString(); + if(!valueSiteMonitorsSiteMonitor["TaskState"].isNull()) + siteMonitorsObject.taskState = valueSiteMonitorsSiteMonitor["TaskState"].asString(); + if(!valueSiteMonitorsSiteMonitor["CreateTime"].isNull()) + siteMonitorsObject.createTime = valueSiteMonitorsSiteMonitor["CreateTime"].asString(); + if(!valueSiteMonitorsSiteMonitor["TaskName"].isNull()) + siteMonitorsObject.taskName = valueSiteMonitorsSiteMonitor["TaskName"].asString(); + if(!valueSiteMonitorsSiteMonitor["Interval"].isNull()) + siteMonitorsObject.interval = valueSiteMonitorsSiteMonitor["Interval"].asString(); + if(!valueSiteMonitorsSiteMonitor["UpdateTime"].isNull()) + siteMonitorsObject.updateTime = valueSiteMonitorsSiteMonitor["UpdateTime"].asString(); + if(!valueSiteMonitorsSiteMonitor["OptionsJson"].isNull()) + siteMonitorsObject.optionsJson = valueSiteMonitorsSiteMonitor["OptionsJson"].asString(); + siteMonitors_.push_back(siteMonitorsObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + if(!value["PageNumber"].isNull()) + pageNumber_ = std::stoi(value["PageNumber"].asString()); + if(!value["PageSize"].isNull()) + pageSize_ = std::stoi(value["PageSize"].asString()); + if(!value["TotalCount"].isNull()) + totalCount_ = std::stoi(value["TotalCount"].asString()); + +} + +int DescribeSiteMonitorListResult::getTotalCount()const +{ + return totalCount_; +} + +std::string DescribeSiteMonitorListResult::getMessage()const +{ + return message_; +} + +int DescribeSiteMonitorListResult::getPageSize()const +{ + return pageSize_; +} + +int DescribeSiteMonitorListResult::getPageNumber()const +{ + return pageNumber_; +} + +std::string DescribeSiteMonitorListResult::getCode()const +{ + return code_; +} + +std::vector DescribeSiteMonitorListResult::getSiteMonitors()const +{ + return siteMonitors_; +} + +std::string DescribeSiteMonitorListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DeleteAlarmRequest.cc b/cms/src/model/DescribeSiteMonitorQuotaRequest.cc similarity index 60% rename from cms/src/model/DeleteAlarmRequest.cc rename to cms/src/model/DescribeSiteMonitorQuotaRequest.cc index 85d651e00..af2fcac6e 100644 --- a/cms/src/model/DeleteAlarmRequest.cc +++ b/cms/src/model/DescribeSiteMonitorQuotaRequest.cc @@ -14,25 +14,16 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DeleteAlarmRequest; +using AlibabaCloud::Cms::Model::DescribeSiteMonitorQuotaRequest; -DeleteAlarmRequest::DeleteAlarmRequest() : - RpcServiceRequest("cms", "2018-03-08", "DeleteAlarm") +DescribeSiteMonitorQuotaRequest::DescribeSiteMonitorQuotaRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorQuota") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSiteMonitorQuotaRequest::~DescribeSiteMonitorQuotaRequest() {} -DeleteAlarmRequest::~DeleteAlarmRequest() -{} - -std::string DeleteAlarmRequest::getId()const -{ - return id_; -} - -void DeleteAlarmRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - diff --git a/cms/src/model/DescribeSiteMonitorQuotaResult.cc b/cms/src/model/DescribeSiteMonitorQuotaResult.cc new file mode 100644 index 000000000..f0deecea0 --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorQuotaResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeSiteMonitorQuotaResult::DescribeSiteMonitorQuotaResult() : + ServiceResult() +{} + +DescribeSiteMonitorQuotaResult::DescribeSiteMonitorQuotaResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSiteMonitorQuotaResult::~DescribeSiteMonitorQuotaResult() +{} + +void DescribeSiteMonitorQuotaResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto dataNode = value["Data"]; + if(!dataNode["SiteMonitorIdcQuota"].isNull()) + data_.siteMonitorIdcQuota = std::stoi(dataNode["SiteMonitorIdcQuota"].asString()); + if(!dataNode["SiteMonitorOperatorQuotaQuota"].isNull()) + data_.siteMonitorOperatorQuotaQuota = std::stoi(dataNode["SiteMonitorOperatorQuotaQuota"].asString()); + if(!dataNode["SiteMonitorTaskQuota"].isNull()) + data_.siteMonitorTaskQuota = std::stoi(dataNode["SiteMonitorTaskQuota"].asString()); + if(!dataNode["SiteMonitorQuotaTaskUsed"].isNull()) + data_.siteMonitorQuotaTaskUsed = std::stoi(dataNode["SiteMonitorQuotaTaskUsed"].asString()); + if(!dataNode["SiteMonitorVersion"].isNull()) + data_.siteMonitorVersion = dataNode["SiteMonitorVersion"].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(); + +} + +std::string DescribeSiteMonitorQuotaResult::getMessage()const +{ + return message_; +} + +DescribeSiteMonitorQuotaResult::Data DescribeSiteMonitorQuotaResult::getData()const +{ + return data_; +} + +std::string DescribeSiteMonitorQuotaResult::getCode()const +{ + return code_; +} + +std::string DescribeSiteMonitorQuotaResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeSiteMonitorStatisticsRequest.cc b/cms/src/model/DescribeSiteMonitorStatisticsRequest.cc new file mode 100644 index 000000000..74c47c108 --- /dev/null +++ b/cms/src/model/DescribeSiteMonitorStatisticsRequest.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::DescribeSiteMonitorStatisticsRequest; + +DescribeSiteMonitorStatisticsRequest::DescribeSiteMonitorStatisticsRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeSiteMonitorStatistics") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSiteMonitorStatisticsRequest::~DescribeSiteMonitorStatisticsRequest() +{} + +std::string DescribeSiteMonitorStatisticsRequest::getTimeRange()const +{ + return timeRange_; +} + +void DescribeSiteMonitorStatisticsRequest::setTimeRange(const std::string& timeRange) +{ + timeRange_ = timeRange; + setCoreParameter("TimeRange", timeRange); +} + +std::string DescribeSiteMonitorStatisticsRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSiteMonitorStatisticsRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeSiteMonitorStatisticsRequest::getMetricName()const +{ + return metricName_; +} + +void DescribeSiteMonitorStatisticsRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +std::string DescribeSiteMonitorStatisticsRequest::getTaskId()const +{ + return taskId_; +} + +void DescribeSiteMonitorStatisticsRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + diff --git a/cms/src/model/CreateTaskResult.cc b/cms/src/model/DescribeSiteMonitorStatisticsResult.cc similarity index 63% rename from cms/src/model/CreateTaskResult.cc rename to cms/src/model/DescribeSiteMonitorStatisticsResult.cc index f9386f9ef..3cae9a78d 100644 --- a/cms/src/model/CreateTaskResult.cc +++ b/cms/src/model/DescribeSiteMonitorStatisticsResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -CreateTaskResult::CreateTaskResult() : +DescribeSiteMonitorStatisticsResult::DescribeSiteMonitorStatisticsResult() : ServiceResult() {} -CreateTaskResult::CreateTaskResult(const std::string &payload) : +DescribeSiteMonitorStatisticsResult::DescribeSiteMonitorStatisticsResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateTaskResult::~CreateTaskResult() +DescribeSiteMonitorStatisticsResult::~DescribeSiteMonitorStatisticsResult() {} -void CreateTaskResult::parse(const std::string &payload) +void DescribeSiteMonitorStatisticsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -46,34 +46,27 @@ void CreateTaskResult::parse(const std::string &payload) if(!value["Success"].isNull()) success_ = value["Success"].asString(); if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["AlertRule"].isNull()) - alertRule_ = value["AlertRule"].asString(); + data_ = std::stol(value["Data"].asString()); } -std::string CreateTaskResult::getMessage()const +std::string DescribeSiteMonitorStatisticsResult::getMessage()const { return message_; } -std::string CreateTaskResult::getData()const +long DescribeSiteMonitorStatisticsResult::getData()const { return data_; } -std::string CreateTaskResult::getCode()const +std::string DescribeSiteMonitorStatisticsResult::getCode()const { return code_; } -std::string CreateTaskResult::getSuccess()const +std::string DescribeSiteMonitorStatisticsResult::getSuccess()const { return success_; } -std::string CreateTaskResult::getAlertRule()const -{ - return alertRule_; -} - diff --git a/cms/src/model/DescribeSystemEventAttributeRequest.cc b/cms/src/model/DescribeSystemEventAttributeRequest.cc new file mode 100644 index 000000000..3bcd4d626 --- /dev/null +++ b/cms/src/model/DescribeSystemEventAttributeRequest.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::DescribeSystemEventAttributeRequest; + +DescribeSystemEventAttributeRequest::DescribeSystemEventAttributeRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventAttribute") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSystemEventAttributeRequest::~DescribeSystemEventAttributeRequest() +{} + +std::string DescribeSystemEventAttributeRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSystemEventAttributeRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeSystemEventAttributeRequest::getSearchKeywords()const +{ + return searchKeywords_; +} + +void DescribeSystemEventAttributeRequest::setSearchKeywords(const std::string& searchKeywords) +{ + searchKeywords_ = searchKeywords; + setCoreParameter("SearchKeywords", searchKeywords); +} + +int DescribeSystemEventAttributeRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSystemEventAttributeRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeSystemEventAttributeRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSystemEventAttributeRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSystemEventAttributeRequest::getProduct()const +{ + return product_; +} + +void DescribeSystemEventAttributeRequest::setProduct(const std::string& product) +{ + product_ = product; + setCoreParameter("Product", product); +} + +std::string DescribeSystemEventAttributeRequest::getLevel()const +{ + return level_; +} + +void DescribeSystemEventAttributeRequest::setLevel(const std::string& level) +{ + level_ = level; + setCoreParameter("Level", level); +} + +std::string DescribeSystemEventAttributeRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeSystemEventAttributeRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeSystemEventAttributeRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSystemEventAttributeRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeSystemEventAttributeRequest::getName()const +{ + return name_; +} + +void DescribeSystemEventAttributeRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string DescribeSystemEventAttributeRequest::getEventType()const +{ + return eventType_; +} + +void DescribeSystemEventAttributeRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setCoreParameter("EventType", eventType); +} + +std::string DescribeSystemEventAttributeRequest::getStatus()const +{ + return status_; +} + +void DescribeSystemEventAttributeRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/cms/src/model/DescribeSystemEventAttributeResult.cc b/cms/src/model/DescribeSystemEventAttributeResult.cc new file mode 100644 index 000000000..089d77a35 --- /dev/null +++ b/cms/src/model/DescribeSystemEventAttributeResult.cc @@ -0,0 +1,98 @@ +/* + * 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; + +DescribeSystemEventAttributeResult::DescribeSystemEventAttributeResult() : + ServiceResult() +{} + +DescribeSystemEventAttributeResult::DescribeSystemEventAttributeResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSystemEventAttributeResult::~DescribeSystemEventAttributeResult() +{} + +void DescribeSystemEventAttributeResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSystemEventsNode = value["SystemEvents"]["SystemEvent"]; + for (auto valueSystemEventsSystemEvent : allSystemEventsNode) + { + SystemEvent systemEventsObject; + if(!valueSystemEventsSystemEvent["Content"].isNull()) + systemEventsObject.content = valueSystemEventsSystemEvent["Content"].asString(); + if(!valueSystemEventsSystemEvent["Product"].isNull()) + systemEventsObject.product = valueSystemEventsSystemEvent["Product"].asString(); + if(!valueSystemEventsSystemEvent["Name"].isNull()) + 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()) + systemEventsObject.status = valueSystemEventsSystemEvent["Status"].asString(); + if(!valueSystemEventsSystemEvent["ResourceId"].isNull()) + systemEventsObject.resourceId = valueSystemEventsSystemEvent["ResourceId"].asString(); + if(!valueSystemEventsSystemEvent["RegionId"].isNull()) + systemEventsObject.regionId = valueSystemEventsSystemEvent["RegionId"].asString(); + if(!valueSystemEventsSystemEvent["InstanceName"].isNull()) + systemEventsObject.instanceName = valueSystemEventsSystemEvent["InstanceName"].asString(); + if(!valueSystemEventsSystemEvent["Time"].isNull()) + systemEventsObject.time = std::stol(valueSystemEventsSystemEvent["Time"].asString()); + systemEvents_.push_back(systemEventsObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::vector DescribeSystemEventAttributeResult::getSystemEvents()const +{ + return systemEvents_; +} + +std::string DescribeSystemEventAttributeResult::getMessage()const +{ + return message_; +} + +std::string DescribeSystemEventAttributeResult::getCode()const +{ + return code_; +} + +std::string DescribeSystemEventAttributeResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeSystemEventCountRequest.cc b/cms/src/model/DescribeSystemEventCountRequest.cc new file mode 100644 index 000000000..d376645c8 --- /dev/null +++ b/cms/src/model/DescribeSystemEventCountRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::DescribeSystemEventCountRequest; + +DescribeSystemEventCountRequest::DescribeSystemEventCountRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventCount") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSystemEventCountRequest::~DescribeSystemEventCountRequest() +{} + +std::string DescribeSystemEventCountRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSystemEventCountRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeSystemEventCountRequest::getSearchKeywords()const +{ + return searchKeywords_; +} + +void DescribeSystemEventCountRequest::setSearchKeywords(const std::string& searchKeywords) +{ + searchKeywords_ = searchKeywords; + setCoreParameter("SearchKeywords", searchKeywords); +} + +std::string DescribeSystemEventCountRequest::getProduct()const +{ + return product_; +} + +void DescribeSystemEventCountRequest::setProduct(const std::string& product) +{ + product_ = product; + setCoreParameter("Product", product); +} + +std::string DescribeSystemEventCountRequest::getLevel()const +{ + return level_; +} + +void DescribeSystemEventCountRequest::setLevel(const std::string& level) +{ + level_ = level; + setCoreParameter("Level", level); +} + +std::string DescribeSystemEventCountRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeSystemEventCountRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeSystemEventCountRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSystemEventCountRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeSystemEventCountRequest::getName()const +{ + return name_; +} + +void DescribeSystemEventCountRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string DescribeSystemEventCountRequest::getEventType()const +{ + return eventType_; +} + +void DescribeSystemEventCountRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setCoreParameter("EventType", eventType); +} + +std::string DescribeSystemEventCountRequest::getStatus()const +{ + return status_; +} + +void DescribeSystemEventCountRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/cms/src/model/DescribeSystemEventCountResult.cc b/cms/src/model/DescribeSystemEventCountResult.cc new file mode 100644 index 000000000..4d315cc67 --- /dev/null +++ b/cms/src/model/DescribeSystemEventCountResult.cc @@ -0,0 +1,98 @@ +/* + * 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; + +DescribeSystemEventCountResult::DescribeSystemEventCountResult() : + ServiceResult() +{} + +DescribeSystemEventCountResult::DescribeSystemEventCountResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSystemEventCountResult::~DescribeSystemEventCountResult() +{} + +void DescribeSystemEventCountResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSystemEventCountsNode = value["SystemEventCounts"]["SystemEventCount"]; + for (auto valueSystemEventCountsSystemEventCount : allSystemEventCountsNode) + { + SystemEventCount systemEventCountsObject; + if(!valueSystemEventCountsSystemEventCount["Content"].isNull()) + systemEventCountsObject.content = valueSystemEventCountsSystemEventCount["Content"].asString(); + if(!valueSystemEventCountsSystemEventCount["Product"].isNull()) + systemEventCountsObject.product = valueSystemEventCountsSystemEventCount["Product"].asString(); + if(!valueSystemEventCountsSystemEventCount["Name"].isNull()) + systemEventCountsObject.name = valueSystemEventCountsSystemEventCount["Name"].asString(); + if(!valueSystemEventCountsSystemEventCount["GroupId"].isNull()) + systemEventCountsObject.groupId = valueSystemEventCountsSystemEventCount["GroupId"].asString(); + if(!valueSystemEventCountsSystemEventCount["Num"].isNull()) + systemEventCountsObject.num = std::stol(valueSystemEventCountsSystemEventCount["Num"].asString()); + if(!valueSystemEventCountsSystemEventCount["Level"].isNull()) + systemEventCountsObject.level = valueSystemEventCountsSystemEventCount["Level"].asString(); + if(!valueSystemEventCountsSystemEventCount["Status"].isNull()) + systemEventCountsObject.status = valueSystemEventCountsSystemEventCount["Status"].asString(); + if(!valueSystemEventCountsSystemEventCount["ResourceId"].isNull()) + systemEventCountsObject.resourceId = valueSystemEventCountsSystemEventCount["ResourceId"].asString(); + if(!valueSystemEventCountsSystemEventCount["RegionId"].isNull()) + systemEventCountsObject.regionId = valueSystemEventCountsSystemEventCount["RegionId"].asString(); + if(!valueSystemEventCountsSystemEventCount["InstanceName"].isNull()) + systemEventCountsObject.instanceName = valueSystemEventCountsSystemEventCount["InstanceName"].asString(); + if(!valueSystemEventCountsSystemEventCount["Time"].isNull()) + systemEventCountsObject.time = std::stol(valueSystemEventCountsSystemEventCount["Time"].asString()); + systemEventCounts_.push_back(systemEventCountsObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::string DescribeSystemEventCountResult::getMessage()const +{ + return message_; +} + +std::vector DescribeSystemEventCountResult::getSystemEventCounts()const +{ + return systemEventCounts_; +} + +std::string DescribeSystemEventCountResult::getCode()const +{ + return code_; +} + +std::string DescribeSystemEventCountResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeSystemEventHistogramRequest.cc b/cms/src/model/DescribeSystemEventHistogramRequest.cc new file mode 100644 index 000000000..2b0b77e37 --- /dev/null +++ b/cms/src/model/DescribeSystemEventHistogramRequest.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::DescribeSystemEventHistogramRequest; + +DescribeSystemEventHistogramRequest::DescribeSystemEventHistogramRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventHistogram") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSystemEventHistogramRequest::~DescribeSystemEventHistogramRequest() +{} + +std::string DescribeSystemEventHistogramRequest::getStartTime()const +{ + return startTime_; +} + +void DescribeSystemEventHistogramRequest::setStartTime(const std::string& startTime) +{ + startTime_ = startTime; + setCoreParameter("StartTime", startTime); +} + +std::string DescribeSystemEventHistogramRequest::getSearchKeywords()const +{ + return searchKeywords_; +} + +void DescribeSystemEventHistogramRequest::setSearchKeywords(const std::string& searchKeywords) +{ + searchKeywords_ = searchKeywords; + setCoreParameter("SearchKeywords", searchKeywords); +} + +int DescribeSystemEventHistogramRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeSystemEventHistogramRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeSystemEventHistogramRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeSystemEventHistogramRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeSystemEventHistogramRequest::getProduct()const +{ + return product_; +} + +void DescribeSystemEventHistogramRequest::setProduct(const std::string& product) +{ + product_ = product; + setCoreParameter("Product", product); +} + +std::string DescribeSystemEventHistogramRequest::getLevel()const +{ + return level_; +} + +void DescribeSystemEventHistogramRequest::setLevel(const std::string& level) +{ + level_ = level; + setCoreParameter("Level", level); +} + +std::string DescribeSystemEventHistogramRequest::getGroupId()const +{ + return groupId_; +} + +void DescribeSystemEventHistogramRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string DescribeSystemEventHistogramRequest::getEndTime()const +{ + return endTime_; +} + +void DescribeSystemEventHistogramRequest::setEndTime(const std::string& endTime) +{ + endTime_ = endTime; + setCoreParameter("EndTime", endTime); +} + +std::string DescribeSystemEventHistogramRequest::getName()const +{ + return name_; +} + +void DescribeSystemEventHistogramRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::string DescribeSystemEventHistogramRequest::getEventType()const +{ + return eventType_; +} + +void DescribeSystemEventHistogramRequest::setEventType(const std::string& eventType) +{ + eventType_ = eventType; + setCoreParameter("EventType", eventType); +} + +std::string DescribeSystemEventHistogramRequest::getStatus()const +{ + return status_; +} + +void DescribeSystemEventHistogramRequest::setStatus(const std::string& status) +{ + status_ = status; + setCoreParameter("Status", status); +} + diff --git a/cms/src/model/DescribeSystemEventHistogramResult.cc b/cms/src/model/DescribeSystemEventHistogramResult.cc new file mode 100644 index 000000000..449aa6394 --- /dev/null +++ b/cms/src/model/DescribeSystemEventHistogramResult.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; + +DescribeSystemEventHistogramResult::DescribeSystemEventHistogramResult() : + ServiceResult() +{} + +DescribeSystemEventHistogramResult::DescribeSystemEventHistogramResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSystemEventHistogramResult::~DescribeSystemEventHistogramResult() +{} + +void DescribeSystemEventHistogramResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allSystemEventHistogramsNode = value["SystemEventHistograms"]["SystemEventHistogram"]; + for (auto valueSystemEventHistogramsSystemEventHistogram : allSystemEventHistogramsNode) + { + SystemEventHistogram systemEventHistogramsObject; + if(!valueSystemEventHistogramsSystemEventHistogram["Count"].isNull()) + systemEventHistogramsObject.count = std::stol(valueSystemEventHistogramsSystemEventHistogram["Count"].asString()); + if(!valueSystemEventHistogramsSystemEventHistogram["StartTime"].isNull()) + systemEventHistogramsObject.startTime = std::stol(valueSystemEventHistogramsSystemEventHistogram["StartTime"].asString()); + if(!valueSystemEventHistogramsSystemEventHistogram["EndTime"].isNull()) + systemEventHistogramsObject.endTime = std::stol(valueSystemEventHistogramsSystemEventHistogram["EndTime"].asString()); + systemEventHistograms_.push_back(systemEventHistogramsObject); + } + if(!value["Code"].isNull()) + code_ = value["Code"].asString(); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString(); + +} + +std::vector DescribeSystemEventHistogramResult::getSystemEventHistograms()const +{ + return systemEventHistograms_; +} + +std::string DescribeSystemEventHistogramResult::getMessage()const +{ + return message_; +} + +std::string DescribeSystemEventHistogramResult::getCode()const +{ + return code_; +} + +std::string DescribeSystemEventHistogramResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DisableAlarmRequest.cc b/cms/src/model/DescribeSystemEventMetaListRequest.cc similarity index 59% rename from cms/src/model/DisableAlarmRequest.cc rename to cms/src/model/DescribeSystemEventMetaListRequest.cc index 4b9b7b06d..8eb0932a6 100644 --- a/cms/src/model/DisableAlarmRequest.cc +++ b/cms/src/model/DescribeSystemEventMetaListRequest.cc @@ -14,25 +14,16 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::DisableAlarmRequest; +using AlibabaCloud::Cms::Model::DescribeSystemEventMetaListRequest; -DisableAlarmRequest::DisableAlarmRequest() : - RpcServiceRequest("cms", "2018-03-08", "DisableAlarm") +DescribeSystemEventMetaListRequest::DescribeSystemEventMetaListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeSystemEventMetaList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeSystemEventMetaListRequest::~DescribeSystemEventMetaListRequest() {} -DisableAlarmRequest::~DisableAlarmRequest() -{} - -std::string DisableAlarmRequest::getId()const -{ - return id_; -} - -void DisableAlarmRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - diff --git a/cms/src/model/DescribeSystemEventMetaListResult.cc b/cms/src/model/DescribeSystemEventMetaListResult.cc new file mode 100644 index 000000000..6b9ded8fa --- /dev/null +++ b/cms/src/model/DescribeSystemEventMetaListResult.cc @@ -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. + */ + +#include +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeSystemEventMetaListResult::DescribeSystemEventMetaListResult() : + ServiceResult() +{} + +DescribeSystemEventMetaListResult::DescribeSystemEventMetaListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeSystemEventMetaListResult::~DescribeSystemEventMetaListResult() +{} + +void DescribeSystemEventMetaListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allDataNode = value["Data"]["Resource"]; + for (auto valueDataResource : allDataNode) + { + Resource dataObject; + if(!valueDataResource["Product"].isNull()) + dataObject.product = valueDataResource["Product"].asString(); + if(!valueDataResource["Name"].isNull()) + dataObject.name = valueDataResource["Name"].asString(); + if(!valueDataResource["NameDesc"].isNull()) + dataObject.nameDesc = valueDataResource["NameDesc"].asString(); + if(!valueDataResource["Level"].isNull()) + dataObject.level = valueDataResource["Level"].asString(); + if(!valueDataResource["Status"].isNull()) + dataObject.status = valueDataResource["Status"].asString(); + if(!valueDataResource["StatusDesc"].isNull()) + dataObject.statusDesc = valueDataResource["StatusDesc"].asString(); + if(!valueDataResource["EventType"].isNull()) + dataObject.eventType = valueDataResource["EventType"].asString(); + data_.push_back(dataObject); + } + 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(); + +} + +std::string DescribeSystemEventMetaListResult::getMessage()const +{ + return message_; +} + +std::vector DescribeSystemEventMetaListResult::getData()const +{ + return data_; +} + +int DescribeSystemEventMetaListResult::getCode()const +{ + return code_; +} + +bool DescribeSystemEventMetaListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListContactGroupRequest.cc b/cms/src/model/DescribeTagKeyListRequest.cc similarity index 59% rename from cms/src/model/ListContactGroupRequest.cc rename to cms/src/model/DescribeTagKeyListRequest.cc index 4e73a35b2..c99c8a98f 100644 --- a/cms/src/model/ListContactGroupRequest.cc +++ b/cms/src/model/DescribeTagKeyListRequest.cc @@ -14,34 +14,36 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::ListContactGroupRequest; +using AlibabaCloud::Cms::Model::DescribeTagKeyListRequest; -ListContactGroupRequest::ListContactGroupRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListContactGroup") +DescribeTagKeyListRequest::DescribeTagKeyListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeTagKeyList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeTagKeyListRequest::~DescribeTagKeyListRequest() {} -ListContactGroupRequest::~ListContactGroupRequest() -{} - -int ListContactGroupRequest::getPageNumber()const +int DescribeTagKeyListRequest::getPageNumber()const { return pageNumber_; } -void ListContactGroupRequest::setPageNumber(int pageNumber) +void DescribeTagKeyListRequest::setPageNumber(int pageNumber) { pageNumber_ = pageNumber; setCoreParameter("PageNumber", std::to_string(pageNumber)); } -int ListContactGroupRequest::getPageSize()const +int DescribeTagKeyListRequest::getPageSize()const { return pageSize_; } -void ListContactGroupRequest::setPageSize(int pageSize) +void DescribeTagKeyListRequest::setPageSize(int pageSize) { pageSize_ = pageSize; setCoreParameter("PageSize", std::to_string(pageSize)); diff --git a/cms/src/model/PutMetricAlarmResult.cc b/cms/src/model/DescribeTagKeyListResult.cc similarity index 63% rename from cms/src/model/PutMetricAlarmResult.cc rename to cms/src/model/DescribeTagKeyListResult.cc index 9f0dfbb20..010967ec0 100644 --- a/cms/src/model/PutMetricAlarmResult.cc +++ b/cms/src/model/DescribeTagKeyListResult.cc @@ -14,58 +14,59 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -PutMetricAlarmResult::PutMetricAlarmResult() : +DescribeTagKeyListResult::DescribeTagKeyListResult() : ServiceResult() {} -PutMetricAlarmResult::PutMetricAlarmResult(const std::string &payload) : +DescribeTagKeyListResult::DescribeTagKeyListResult(const std::string &payload) : ServiceResult() { parse(payload); } -PutMetricAlarmResult::~PutMetricAlarmResult() +DescribeTagKeyListResult::~DescribeTagKeyListResult() {} -void PutMetricAlarmResult::parse(const std::string &payload) +void DescribeTagKeyListResult::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"; + auto allTagKeys = value["TagKeys"]["TagKey"]; + for (const auto &item : allTagKeys) + tagKeys_.push_back(item.asString()); if(!value["Code"].isNull()) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Datapoints"].isNull()) - datapoints_ = value["Datapoints"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; } -std::string PutMetricAlarmResult::getMessage()const +std::string DescribeTagKeyListResult::getMessage()const { return message_; } -std::string PutMetricAlarmResult::getDatapoints()const -{ - return datapoints_; -} - -std::string PutMetricAlarmResult::getCode()const +std::string DescribeTagKeyListResult::getCode()const { return code_; } -bool PutMetricAlarmResult::getSuccess()const +std::vector DescribeTagKeyListResult::getTagKeys()const +{ + return tagKeys_; +} + +bool DescribeTagKeyListResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DescribeTagValueListRequest.cc b/cms/src/model/DescribeTagValueListRequest.cc new file mode 100644 index 000000000..f4170223d --- /dev/null +++ b/cms/src/model/DescribeTagValueListRequest.cc @@ -0,0 +1,62 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::DescribeTagValueListRequest; + +DescribeTagValueListRequest::DescribeTagValueListRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeTagValueList") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeTagValueListRequest::~DescribeTagValueListRequest() +{} + +int DescribeTagValueListRequest::getPageNumber()const +{ + return pageNumber_; +} + +void DescribeTagValueListRequest::setPageNumber(int pageNumber) +{ + pageNumber_ = pageNumber; + setCoreParameter("PageNumber", std::to_string(pageNumber)); +} + +int DescribeTagValueListRequest::getPageSize()const +{ + return pageSize_; +} + +void DescribeTagValueListRequest::setPageSize(int pageSize) +{ + pageSize_ = pageSize; + setCoreParameter("PageSize", std::to_string(pageSize)); +} + +std::string DescribeTagValueListRequest::getTagKey()const +{ + return tagKey_; +} + +void DescribeTagValueListRequest::setTagKey(const std::string& tagKey) +{ + tagKey_ = tagKey; + setCoreParameter("TagKey", tagKey); +} + diff --git a/cms/src/model/DescribeTagValueListResult.cc b/cms/src/model/DescribeTagValueListResult.cc new file mode 100644 index 000000000..0e41c7d13 --- /dev/null +++ b/cms/src/model/DescribeTagValueListResult.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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +DescribeTagValueListResult::DescribeTagValueListResult() : + ServiceResult() +{} + +DescribeTagValueListResult::DescribeTagValueListResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DescribeTagValueListResult::~DescribeTagValueListResult() +{} + +void DescribeTagValueListResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTagValues = value["TagValues"]["TagValue"]; + for (const auto &item : allTagValues) + tagValues_.push_back(item.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 DescribeTagValueListResult::getMessage()const +{ + return message_; +} + +std::string DescribeTagValueListResult::getCode()const +{ + return code_; +} + +std::vector DescribeTagValueListResult::getTagValues()const +{ + return tagValues_; +} + +bool DescribeTagValueListResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DescribeTaskDetailRequest.cc b/cms/src/model/DescribeTaskDetailRequest.cc deleted file mode 100644 index baf1dc88d..000000000 --- a/cms/src/model/DescribeTaskDetailRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::DescribeTaskDetailRequest; - -DescribeTaskDetailRequest::DescribeTaskDetailRequest() : - RpcServiceRequest("cms", "2018-03-08", "DescribeTaskDetail") -{} - -DescribeTaskDetailRequest::~DescribeTaskDetailRequest() -{} - -std::string DescribeTaskDetailRequest::getTaskId()const -{ - return taskId_; -} - -void DescribeTaskDetailRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setCoreParameter("TaskId", taskId); -} - diff --git a/cms/src/model/DescribeTasksResult.cc b/cms/src/model/DescribeTasksResult.cc deleted file mode 100644 index 0cd4cedb5..000000000 --- a/cms/src/model/DescribeTasksResult.cc +++ /dev/null @@ -1,93 +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; - -DescribeTasksResult::DescribeTasksResult() : - ServiceResult() -{} - -DescribeTasksResult::DescribeTasksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -DescribeTasksResult::~DescribeTasksResult() -{} - -void DescribeTasksResult::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(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["TotalCount"].isNull()) - totalCount_ = std::stoi(value["TotalCount"].asString()); - -} - -int DescribeTasksResult::getTotalCount()const -{ - return totalCount_; -} - -std::string DescribeTasksResult::getMessage()const -{ - return message_; -} - -int DescribeTasksResult::getPageSize()const -{ - return pageSize_; -} - -int DescribeTasksResult::getPageNumber()const -{ - return pageNumber_; -} - -std::string DescribeTasksResult::getData()const -{ - return data_; -} - -std::string DescribeTasksResult::getCode()const -{ - return code_; -} - -std::string DescribeTasksResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/DescribeUnhealthyHostAvailabilityRequest.cc b/cms/src/model/DescribeUnhealthyHostAvailabilityRequest.cc new file mode 100644 index 000000000..a7278d27e --- /dev/null +++ b/cms/src/model/DescribeUnhealthyHostAvailabilityRequest.cc @@ -0,0 +1,42 @@ +/* + * 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::DescribeUnhealthyHostAvailabilityRequest; + +DescribeUnhealthyHostAvailabilityRequest::DescribeUnhealthyHostAvailabilityRequest() : + RpcServiceRequest("cms", "2019-01-01", "DescribeUnhealthyHostAvailability") +{ + setMethod(HttpRequest::Method::Post); +} + +DescribeUnhealthyHostAvailabilityRequest::~DescribeUnhealthyHostAvailabilityRequest() +{} + +std::vector DescribeUnhealthyHostAvailabilityRequest::getId()const +{ + return id_; +} + +void DescribeUnhealthyHostAvailabilityRequest::setId(const std::vector& id) +{ + id_ = id; + for(int dep1 = 0; dep1!= id.size(); dep1++) { + setCoreParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1))); + } +} + diff --git a/cms/src/model/TaskConfigUnhealthyResult.cc b/cms/src/model/DescribeUnhealthyHostAvailabilityResult.cc similarity index 57% rename from cms/src/model/TaskConfigUnhealthyResult.cc rename to cms/src/model/DescribeUnhealthyHostAvailabilityResult.cc index 23f859187..03751405c 100644 --- a/cms/src/model/TaskConfigUnhealthyResult.cc +++ b/cms/src/model/DescribeUnhealthyHostAvailabilityResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -TaskConfigUnhealthyResult::TaskConfigUnhealthyResult() : +DescribeUnhealthyHostAvailabilityResult::DescribeUnhealthyHostAvailabilityResult() : ServiceResult() {} -TaskConfigUnhealthyResult::TaskConfigUnhealthyResult(const std::string &payload) : +DescribeUnhealthyHostAvailabilityResult::DescribeUnhealthyHostAvailabilityResult(const std::string &payload) : ServiceResult() { parse(payload); } -TaskConfigUnhealthyResult::~TaskConfigUnhealthyResult() +DescribeUnhealthyHostAvailabilityResult::~DescribeUnhealthyHostAvailabilityResult() {} -void TaskConfigUnhealthyResult::parse(const std::string &payload) +void DescribeUnhealthyHostAvailabilityResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,38 +43,38 @@ void TaskConfigUnhealthyResult::parse(const std::string &payload) for (auto valueUnhealthyListNodeTaskInstance : allUnhealthyListNode) { NodeTaskInstance unhealthyListObject; - if(!valueUnhealthyListNodeTaskInstance["TaskId"].isNull()) - unhealthyListObject.taskId = std::stol(valueUnhealthyListNodeTaskInstance["TaskId"].asString()); + if(!valueUnhealthyListNodeTaskInstance["Id"].isNull()) + unhealthyListObject.id = std::stol(valueUnhealthyListNodeTaskInstance["Id"].asString()); auto allInstanceList = value["InstanceList"]["String"]; for (auto value : allInstanceList) unhealthyListObject.instanceList.push_back(value.asString()); unhealthyList_.push_back(unhealthyListObject); } - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].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"; } -int TaskConfigUnhealthyResult::getErrorCode()const +std::string DescribeUnhealthyHostAvailabilityResult::getMessage()const { - return errorCode_; + return message_; } -std::string TaskConfigUnhealthyResult::getErrorMessage()const +std::string DescribeUnhealthyHostAvailabilityResult::getCode()const { - return errorMessage_; + return code_; } -bool TaskConfigUnhealthyResult::getSuccess()const +bool DescribeUnhealthyHostAvailabilityResult::getSuccess()const { return success_; } -std::vector TaskConfigUnhealthyResult::getUnhealthyList()const +std::vector DescribeUnhealthyHostAvailabilityResult::getUnhealthyList()const { return unhealthyList_; } diff --git a/cms/src/model/ListActiveAlertRuleRequest.cc b/cms/src/model/DisableActiveMetricRuleRequest.cc similarity index 52% rename from cms/src/model/ListActiveAlertRuleRequest.cc rename to cms/src/model/DisableActiveMetricRuleRequest.cc index d3292cdb7..8e1480587 100644 --- a/cms/src/model/ListActiveAlertRuleRequest.cc +++ b/cms/src/model/DisableActiveMetricRuleRequest.cc @@ -14,36 +14,27 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::ListActiveAlertRuleRequest; +using AlibabaCloud::Cms::Model::DisableActiveMetricRuleRequest; -ListActiveAlertRuleRequest::ListActiveAlertRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListActiveAlertRule") +DisableActiveMetricRuleRequest::DisableActiveMetricRuleRequest() : + RpcServiceRequest("cms", "2019-01-01", "DisableActiveMetricRule") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableActiveMetricRuleRequest::~DisableActiveMetricRuleRequest() {} -ListActiveAlertRuleRequest::~ListActiveAlertRuleRequest() -{} - -std::string ListActiveAlertRuleRequest::getProduct()const +std::string DisableActiveMetricRuleRequest::getProduct()const { return product_; } -void ListActiveAlertRuleRequest::setProduct(const std::string& product) +void DisableActiveMetricRuleRequest::setProduct(const std::string& product) { product_ = product; setCoreParameter("Product", product); } -std::string ListActiveAlertRuleRequest::getUserId()const -{ - return userId_; -} - -void ListActiveAlertRuleRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setCoreParameter("UserId", userId); -} - diff --git a/cms/src/model/CreateAlarmResult.cc b/cms/src/model/DisableActiveMetricRuleResult.cc similarity index 69% rename from cms/src/model/CreateAlarmResult.cc rename to cms/src/model/DisableActiveMetricRuleResult.cc index 3d19805a3..b11aef9a6 100644 --- a/cms/src/model/CreateAlarmResult.cc +++ b/cms/src/model/DisableActiveMetricRuleResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -CreateAlarmResult::CreateAlarmResult() : +DisableActiveMetricRuleResult::DisableActiveMetricRuleResult() : ServiceResult() {} -CreateAlarmResult::CreateAlarmResult(const std::string &payload) : +DisableActiveMetricRuleResult::DisableActiveMetricRuleResult(const std::string &payload) : ServiceResult() { parse(payload); } -CreateAlarmResult::~CreateAlarmResult() +DisableActiveMetricRuleResult::~DisableActiveMetricRuleResult() {} -void CreateAlarmResult::parse(const std::string &payload) +void DisableActiveMetricRuleResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -45,27 +45,20 @@ void CreateAlarmResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); } -std::string CreateAlarmResult::getMessage()const +std::string DisableActiveMetricRuleResult::getMessage()const { return message_; } -std::string CreateAlarmResult::getData()const -{ - return data_; -} - -std::string CreateAlarmResult::getCode()const +std::string DisableActiveMetricRuleResult::getCode()const { return code_; } -bool CreateAlarmResult::getSuccess()const +bool DisableActiveMetricRuleResult::getSuccess()const { return success_; } diff --git a/cms/src/model/DisableEventRuleRequest.cc b/cms/src/model/DisableEventRuleRequest.cc deleted file mode 100644 index 60fedc93d..000000000 --- a/cms/src/model/DisableEventRuleRequest.cc +++ /dev/null @@ -1,50 +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 - -using AlibabaCloud::Cms::Model::DisableEventRuleRequest; - -DisableEventRuleRequest::DisableEventRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "DisableEventRule") -{} - -DisableEventRuleRequest::~DisableEventRuleRequest() -{} - -std::string DisableEventRuleRequest::getRuleName()const -{ - return ruleName_; -} - -void DisableEventRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - -std::vector DisableEventRuleRequest::getRuleNames()const -{ - return ruleNames_; -} - -void DisableEventRuleRequest::setRuleNames(const std::vector& ruleNames) -{ - ruleNames_ = ruleNames; - for(int i = 0; i!= ruleNames.size(); i++) - setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); -} - diff --git a/cms/src/model/DisableEventRulesRequest.cc b/cms/src/model/DisableEventRulesRequest.cc new file mode 100644 index 000000000..f43855c28 --- /dev/null +++ b/cms/src/model/DisableEventRulesRequest.cc @@ -0,0 +1,42 @@ +/* + * 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::DisableEventRulesRequest; + +DisableEventRulesRequest::DisableEventRulesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DisableEventRules") +{ + setMethod(HttpRequest::Method::Put); +} + +DisableEventRulesRequest::~DisableEventRulesRequest() +{} + +std::vector DisableEventRulesRequest::getRuleNames()const +{ + return ruleNames_; +} + +void DisableEventRulesRequest::setRuleNames(const std::vector& ruleNames) +{ + ruleNames_ = ruleNames; + for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) { + setCoreParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1)); + } +} + diff --git a/cms/src/model/DisableEventRulesResult.cc b/cms/src/model/DisableEventRulesResult.cc new file mode 100644 index 000000000..6011e6ab1 --- /dev/null +++ b/cms/src/model/DisableEventRulesResult.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; + +DisableEventRulesResult::DisableEventRulesResult() : + ServiceResult() +{} + +DisableEventRulesResult::DisableEventRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableEventRulesResult::~DisableEventRulesResult() +{} + +void DisableEventRulesResult::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 DisableEventRulesResult::getMessage()const +{ + return message_; +} + +std::string DisableEventRulesResult::getCode()const +{ + return code_; +} + +bool DisableEventRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DisableHostAvailabilityRequest.cc b/cms/src/model/DisableHostAvailabilityRequest.cc new file mode 100644 index 000000000..9d123c1e0 --- /dev/null +++ b/cms/src/model/DisableHostAvailabilityRequest.cc @@ -0,0 +1,42 @@ +/* + * 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::DisableHostAvailabilityRequest; + +DisableHostAvailabilityRequest::DisableHostAvailabilityRequest() : + RpcServiceRequest("cms", "2019-01-01", "DisableHostAvailability") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableHostAvailabilityRequest::~DisableHostAvailabilityRequest() +{} + +std::vector DisableHostAvailabilityRequest::getId()const +{ + return id_; +} + +void DisableHostAvailabilityRequest::setId(const std::vector& id) +{ + id_ = id; + for(int dep1 = 0; dep1!= id.size(); dep1++) { + setCoreParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1))); + } +} + diff --git a/cms/src/model/DisableHostAvailabilityResult.cc b/cms/src/model/DisableHostAvailabilityResult.cc new file mode 100644 index 000000000..b328a62e0 --- /dev/null +++ b/cms/src/model/DisableHostAvailabilityResult.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; + +DisableHostAvailabilityResult::DisableHostAvailabilityResult() : + ServiceResult() +{} + +DisableHostAvailabilityResult::DisableHostAvailabilityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +DisableHostAvailabilityResult::~DisableHostAvailabilityResult() +{} + +void DisableHostAvailabilityResult::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 DisableHostAvailabilityResult::getMessage()const +{ + return message_; +} + +std::string DisableHostAvailabilityResult::getCode()const +{ + return code_; +} + +bool DisableHostAvailabilityResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/DisableMetricRulesRequest.cc b/cms/src/model/DisableMetricRulesRequest.cc new file mode 100644 index 000000000..e41d755c0 --- /dev/null +++ b/cms/src/model/DisableMetricRulesRequest.cc @@ -0,0 +1,42 @@ +/* + * 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::DisableMetricRulesRequest; + +DisableMetricRulesRequest::DisableMetricRulesRequest() : + RpcServiceRequest("cms", "2019-01-01", "DisableMetricRules") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableMetricRulesRequest::~DisableMetricRulesRequest() +{} + +std::vector DisableMetricRulesRequest::getRuleId()const +{ + return ruleId_; +} + +void DisableMetricRulesRequest::setRuleId(const std::vector& ruleId) +{ + ruleId_ = ruleId; + for(int dep1 = 0; dep1!= ruleId.size(); dep1++) { + setCoreParameter("RuleId."+ std::to_string(dep1), ruleId.at(dep1)); + } +} + diff --git a/cms/src/model/DeleteEventTargetsResult.cc b/cms/src/model/DisableMetricRulesResult.cc similarity index 72% rename from cms/src/model/DeleteEventTargetsResult.cc rename to cms/src/model/DisableMetricRulesResult.cc index b3a773a0b..c72333686 100644 --- a/cms/src/model/DeleteEventTargetsResult.cc +++ b/cms/src/model/DisableMetricRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DeleteEventTargetsResult::DeleteEventTargetsResult() : +DisableMetricRulesResult::DisableMetricRulesResult() : ServiceResult() {} -DeleteEventTargetsResult::DeleteEventTargetsResult(const std::string &payload) : +DisableMetricRulesResult::DisableMetricRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteEventTargetsResult::~DeleteEventTargetsResult() +DisableMetricRulesResult::~DisableMetricRulesResult() {} -void DeleteEventTargetsResult::parse(const std::string &payload) +void DisableMetricRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void DeleteEventTargetsResult::parse(const std::string &payload) } -std::string DeleteEventTargetsResult::getMessage()const +std::string DisableMetricRulesResult::getMessage()const { return message_; } -std::string DeleteEventTargetsResult::getCode()const +std::string DisableMetricRulesResult::getCode()const { return code_; } -bool DeleteEventTargetsResult::getSuccess()const +bool DisableMetricRulesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/StopTasksRequest.cc b/cms/src/model/DisableSiteMonitorsRequest.cc similarity index 59% rename from cms/src/model/StopTasksRequest.cc rename to cms/src/model/DisableSiteMonitorsRequest.cc index 044cfe370..23b417e7d 100644 --- a/cms/src/model/StopTasksRequest.cc +++ b/cms/src/model/DisableSiteMonitorsRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::StopTasksRequest; +using AlibabaCloud::Cms::Model::DisableSiteMonitorsRequest; -StopTasksRequest::StopTasksRequest() : - RpcServiceRequest("cms", "2018-03-08", "StopTasks") +DisableSiteMonitorsRequest::DisableSiteMonitorsRequest() : + RpcServiceRequest("cms", "2019-01-01", "DisableSiteMonitors") +{ + setMethod(HttpRequest::Method::Post); +} + +DisableSiteMonitorsRequest::~DisableSiteMonitorsRequest() {} -StopTasksRequest::~StopTasksRequest() -{} - -std::string StopTasksRequest::getTaskIds()const +std::string DisableSiteMonitorsRequest::getTaskIds()const { return taskIds_; } -void StopTasksRequest::setTaskIds(const std::string& taskIds) +void DisableSiteMonitorsRequest::setTaskIds(const std::string& taskIds) { taskIds_ = taskIds; setCoreParameter("TaskIds", taskIds); diff --git a/cms/src/model/DescribeISPAreaCityResult.cc b/cms/src/model/DisableSiteMonitorsResult.cc similarity index 71% rename from cms/src/model/DescribeISPAreaCityResult.cc rename to cms/src/model/DisableSiteMonitorsResult.cc index 9ee0e65ab..9f50a332a 100644 --- a/cms/src/model/DescribeISPAreaCityResult.cc +++ b/cms/src/model/DisableSiteMonitorsResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DescribeISPAreaCityResult::DescribeISPAreaCityResult() : +DisableSiteMonitorsResult::DisableSiteMonitorsResult() : ServiceResult() {} -DescribeISPAreaCityResult::DescribeISPAreaCityResult(const std::string &payload) : +DisableSiteMonitorsResult::DisableSiteMonitorsResult(const std::string &payload) : ServiceResult() { parse(payload); } -DescribeISPAreaCityResult::~DescribeISPAreaCityResult() +DisableSiteMonitorsResult::~DisableSiteMonitorsResult() {} -void DescribeISPAreaCityResult::parse(const std::string &payload) +void DisableSiteMonitorsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -50,22 +50,22 @@ void DescribeISPAreaCityResult::parse(const std::string &payload) } -std::string DescribeISPAreaCityResult::getMessage()const +std::string DisableSiteMonitorsResult::getMessage()const { return message_; } -std::string DescribeISPAreaCityResult::getData()const +std::string DisableSiteMonitorsResult::getData()const { return data_; } -std::string DescribeISPAreaCityResult::getCode()const +std::string DisableSiteMonitorsResult::getCode()const { return code_; } -std::string DescribeISPAreaCityResult::getSuccess()const +std::string DisableSiteMonitorsResult::getSuccess()const { return success_; } diff --git a/cms/src/model/EnableActiveAlertRequest.cc b/cms/src/model/EnableActiveMetricRuleRequest.cc similarity index 53% rename from cms/src/model/EnableActiveAlertRequest.cc rename to cms/src/model/EnableActiveMetricRuleRequest.cc index 3d94a1818..c81582f65 100644 --- a/cms/src/model/EnableActiveAlertRequest.cc +++ b/cms/src/model/EnableActiveMetricRuleRequest.cc @@ -14,36 +14,27 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::EnableActiveAlertRequest; +using AlibabaCloud::Cms::Model::EnableActiveMetricRuleRequest; -EnableActiveAlertRequest::EnableActiveAlertRequest() : - RpcServiceRequest("cms", "2018-03-08", "EnableActiveAlert") +EnableActiveMetricRuleRequest::EnableActiveMetricRuleRequest() : + RpcServiceRequest("cms", "2019-01-01", "EnableActiveMetricRule") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableActiveMetricRuleRequest::~EnableActiveMetricRuleRequest() {} -EnableActiveAlertRequest::~EnableActiveAlertRequest() -{} - -std::string EnableActiveAlertRequest::getProduct()const +std::string EnableActiveMetricRuleRequest::getProduct()const { return product_; } -void EnableActiveAlertRequest::setProduct(const std::string& product) +void EnableActiveMetricRuleRequest::setProduct(const std::string& product) { product_ = product; setCoreParameter("Product", product); } -std::string EnableActiveAlertRequest::getUserId()const -{ - return userId_; -} - -void EnableActiveAlertRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setCoreParameter("UserId", userId); -} - diff --git a/cms/src/model/EnableActiveMetricRuleResult.cc b/cms/src/model/EnableActiveMetricRuleResult.cc new file mode 100644 index 000000000..6582053b1 --- /dev/null +++ b/cms/src/model/EnableActiveMetricRuleResult.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; + +EnableActiveMetricRuleResult::EnableActiveMetricRuleResult() : + ServiceResult() +{} + +EnableActiveMetricRuleResult::EnableActiveMetricRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableActiveMetricRuleResult::~EnableActiveMetricRuleResult() +{} + +void EnableActiveMetricRuleResult::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 EnableActiveMetricRuleResult::getMessage()const +{ + return message_; +} + +std::string EnableActiveMetricRuleResult::getCode()const +{ + return code_; +} + +bool EnableActiveMetricRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/EnableEventRuleRequest.cc b/cms/src/model/EnableEventRuleRequest.cc deleted file mode 100644 index 4f0870ab9..000000000 --- a/cms/src/model/EnableEventRuleRequest.cc +++ /dev/null @@ -1,50 +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 - -using AlibabaCloud::Cms::Model::EnableEventRuleRequest; - -EnableEventRuleRequest::EnableEventRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "EnableEventRule") -{} - -EnableEventRuleRequest::~EnableEventRuleRequest() -{} - -std::string EnableEventRuleRequest::getRuleName()const -{ - return ruleName_; -} - -void EnableEventRuleRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - -std::vector EnableEventRuleRequest::getRuleNames()const -{ - return ruleNames_; -} - -void EnableEventRuleRequest::setRuleNames(const std::vector& ruleNames) -{ - ruleNames_ = ruleNames; - for(int i = 0; i!= ruleNames.size(); i++) - setCoreParameter("RuleNames."+ std::to_string(i), ruleNames.at(i)); -} - diff --git a/cms/src/model/EnableEventRulesRequest.cc b/cms/src/model/EnableEventRulesRequest.cc new file mode 100644 index 000000000..1de127906 --- /dev/null +++ b/cms/src/model/EnableEventRulesRequest.cc @@ -0,0 +1,42 @@ +/* + * 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::EnableEventRulesRequest; + +EnableEventRulesRequest::EnableEventRulesRequest() : + RpcServiceRequest("cms", "2019-01-01", "EnableEventRules") +{ + setMethod(HttpRequest::Method::Put); +} + +EnableEventRulesRequest::~EnableEventRulesRequest() +{} + +std::vector EnableEventRulesRequest::getRuleNames()const +{ + return ruleNames_; +} + +void EnableEventRulesRequest::setRuleNames(const std::vector& ruleNames) +{ + ruleNames_ = ruleNames; + for(int dep1 = 0; dep1!= ruleNames.size(); dep1++) { + setCoreParameter("RuleNames."+ std::to_string(dep1), ruleNames.at(dep1)); + } +} + diff --git a/cms/src/model/DeleteEventRuleResult.cc b/cms/src/model/EnableEventRulesResult.cc similarity index 72% rename from cms/src/model/DeleteEventRuleResult.cc rename to cms/src/model/EnableEventRulesResult.cc index abf36bf50..c6e6b140a 100644 --- a/cms/src/model/DeleteEventRuleResult.cc +++ b/cms/src/model/EnableEventRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -DeleteEventRuleResult::DeleteEventRuleResult() : +EnableEventRulesResult::EnableEventRulesResult() : ServiceResult() {} -DeleteEventRuleResult::DeleteEventRuleResult(const std::string &payload) : +EnableEventRulesResult::EnableEventRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -DeleteEventRuleResult::~DeleteEventRuleResult() +EnableEventRulesResult::~EnableEventRulesResult() {} -void DeleteEventRuleResult::parse(const std::string &payload) +void EnableEventRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void DeleteEventRuleResult::parse(const std::string &payload) } -std::string DeleteEventRuleResult::getMessage()const +std::string EnableEventRulesResult::getMessage()const { return message_; } -std::string DeleteEventRuleResult::getCode()const +std::string EnableEventRulesResult::getCode()const { return code_; } -bool DeleteEventRuleResult::getSuccess()const +bool EnableEventRulesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/EnableHostAvailabilityRequest.cc b/cms/src/model/EnableHostAvailabilityRequest.cc new file mode 100644 index 000000000..03b73c9f2 --- /dev/null +++ b/cms/src/model/EnableHostAvailabilityRequest.cc @@ -0,0 +1,42 @@ +/* + * 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::EnableHostAvailabilityRequest; + +EnableHostAvailabilityRequest::EnableHostAvailabilityRequest() : + RpcServiceRequest("cms", "2019-01-01", "EnableHostAvailability") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableHostAvailabilityRequest::~EnableHostAvailabilityRequest() +{} + +std::vector EnableHostAvailabilityRequest::getId()const +{ + return id_; +} + +void EnableHostAvailabilityRequest::setId(const std::vector& id) +{ + id_ = id; + for(int dep1 = 0; dep1!= id.size(); dep1++) { + setCoreParameter("Id."+ std::to_string(dep1), std::to_string(id.at(dep1))); + } +} + diff --git a/cms/src/model/EnableHostAvailabilityResult.cc b/cms/src/model/EnableHostAvailabilityResult.cc new file mode 100644 index 000000000..f864fcd2e --- /dev/null +++ b/cms/src/model/EnableHostAvailabilityResult.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; + +EnableHostAvailabilityResult::EnableHostAvailabilityResult() : + ServiceResult() +{} + +EnableHostAvailabilityResult::EnableHostAvailabilityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +EnableHostAvailabilityResult::~EnableHostAvailabilityResult() +{} + +void EnableHostAvailabilityResult::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 EnableHostAvailabilityResult::getMessage()const +{ + return message_; +} + +std::string EnableHostAvailabilityResult::getCode()const +{ + return code_; +} + +bool EnableHostAvailabilityResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/EnableMetricRulesRequest.cc b/cms/src/model/EnableMetricRulesRequest.cc new file mode 100644 index 000000000..372ee1eba --- /dev/null +++ b/cms/src/model/EnableMetricRulesRequest.cc @@ -0,0 +1,42 @@ +/* + * 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::EnableMetricRulesRequest; + +EnableMetricRulesRequest::EnableMetricRulesRequest() : + RpcServiceRequest("cms", "2019-01-01", "EnableMetricRules") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableMetricRulesRequest::~EnableMetricRulesRequest() +{} + +std::vector EnableMetricRulesRequest::getRuleId()const +{ + return ruleId_; +} + +void EnableMetricRulesRequest::setRuleId(const std::vector& ruleId) +{ + ruleId_ = ruleId; + for(int dep1 = 0; dep1!= ruleId.size(); dep1++) { + setCoreParameter("RuleId."+ std::to_string(dep1), ruleId.at(dep1)); + } +} + diff --git a/cms/src/model/EnableAlarmResult.cc b/cms/src/model/EnableMetricRulesResult.cc similarity index 74% rename from cms/src/model/EnableAlarmResult.cc rename to cms/src/model/EnableMetricRulesResult.cc index 450fc5565..c733779bd 100644 --- a/cms/src/model/EnableAlarmResult.cc +++ b/cms/src/model/EnableMetricRulesResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -EnableAlarmResult::EnableAlarmResult() : +EnableMetricRulesResult::EnableMetricRulesResult() : ServiceResult() {} -EnableAlarmResult::EnableAlarmResult(const std::string &payload) : +EnableMetricRulesResult::EnableMetricRulesResult(const std::string &payload) : ServiceResult() { parse(payload); } -EnableAlarmResult::~EnableAlarmResult() +EnableMetricRulesResult::~EnableMetricRulesResult() {} -void EnableAlarmResult::parse(const std::string &payload) +void EnableMetricRulesResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void EnableAlarmResult::parse(const std::string &payload) } -std::string EnableAlarmResult::getMessage()const +std::string EnableMetricRulesResult::getMessage()const { return message_; } -std::string EnableAlarmResult::getCode()const +std::string EnableMetricRulesResult::getCode()const { return code_; } -bool EnableAlarmResult::getSuccess()const +bool EnableMetricRulesResult::getSuccess()const { return success_; } diff --git a/cms/src/model/StartTasksRequest.cc b/cms/src/model/EnableSiteMonitorsRequest.cc similarity index 60% rename from cms/src/model/StartTasksRequest.cc rename to cms/src/model/EnableSiteMonitorsRequest.cc index ce875430c..3db9090e5 100644 --- a/cms/src/model/StartTasksRequest.cc +++ b/cms/src/model/EnableSiteMonitorsRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::StartTasksRequest; +using AlibabaCloud::Cms::Model::EnableSiteMonitorsRequest; -StartTasksRequest::StartTasksRequest() : - RpcServiceRequest("cms", "2018-03-08", "StartTasks") +EnableSiteMonitorsRequest::EnableSiteMonitorsRequest() : + RpcServiceRequest("cms", "2019-01-01", "EnableSiteMonitors") +{ + setMethod(HttpRequest::Method::Post); +} + +EnableSiteMonitorsRequest::~EnableSiteMonitorsRequest() {} -StartTasksRequest::~StartTasksRequest() -{} - -std::string StartTasksRequest::getTaskIds()const +std::string EnableSiteMonitorsRequest::getTaskIds()const { return taskIds_; } -void StartTasksRequest::setTaskIds(const std::string& taskIds) +void EnableSiteMonitorsRequest::setTaskIds(const std::string& taskIds) { taskIds_ = taskIds; setCoreParameter("TaskIds", taskIds); diff --git a/cms/src/model/StartTasksResult.cc b/cms/src/model/EnableSiteMonitorsResult.cc similarity index 70% rename from cms/src/model/StartTasksResult.cc rename to cms/src/model/EnableSiteMonitorsResult.cc index 0c05317ac..eeeba50f6 100644 --- a/cms/src/model/StartTasksResult.cc +++ b/cms/src/model/EnableSiteMonitorsResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -StartTasksResult::StartTasksResult() : +EnableSiteMonitorsResult::EnableSiteMonitorsResult() : ServiceResult() {} -StartTasksResult::StartTasksResult(const std::string &payload) : +EnableSiteMonitorsResult::EnableSiteMonitorsResult(const std::string &payload) : ServiceResult() { parse(payload); } -StartTasksResult::~StartTasksResult() +EnableSiteMonitorsResult::~EnableSiteMonitorsResult() {} -void StartTasksResult::parse(const std::string &payload) +void EnableSiteMonitorsResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -50,22 +50,22 @@ void StartTasksResult::parse(const std::string &payload) } -std::string StartTasksResult::getMessage()const +std::string EnableSiteMonitorsResult::getMessage()const { return message_; } -std::string StartTasksResult::getData()const +std::string EnableSiteMonitorsResult::getData()const { return data_; } -std::string StartTasksResult::getCode()const +std::string EnableSiteMonitorsResult::getCode()const { return code_; } -std::string StartTasksResult::getSuccess()const +std::string EnableSiteMonitorsResult::getSuccess()const { return success_; } diff --git a/cms/src/model/GetContactsRequest.cc b/cms/src/model/GetContactsRequest.cc deleted file mode 100644 index 40818d600..000000000 --- a/cms/src/model/GetContactsRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::GetContactsRequest; - -GetContactsRequest::GetContactsRequest() : - RpcServiceRequest("cms", "2018-03-08", "GetContacts") -{} - -GetContactsRequest::~GetContactsRequest() -{} - -std::string GetContactsRequest::getGroupName()const -{ - return groupName_; -} - -void GetContactsRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setCoreParameter("GroupName", groupName); -} - diff --git a/cms/src/model/GetContactsResult.cc b/cms/src/model/GetContactsResult.cc deleted file mode 100644 index bd8e634f0..000000000 --- a/cms/src/model/GetContactsResult.cc +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cms; -using namespace AlibabaCloud::Cms::Model; - -GetContactsResult::GetContactsResult() : - ServiceResult() -{} - -GetContactsResult::GetContactsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetContactsResult::~GetContactsResult() -{} - -void GetContactsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto datapointsNode = value["Datapoints"]; - if(!datapointsNode["Name"].isNull()) - datapoints_.name = datapointsNode["Name"].asString(); - auto allContacts = datapointsNode["Contacts"]["Contact"]; - for (auto value : allContacts) - datapoints_.contacts.push_back(value.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["HttpStatusCode"].isNull()) - httpStatusCode_ = std::stoi(value["HttpStatusCode"].asString()); - -} - -std::string GetContactsResult::getMessage()const -{ - return message_; -} - -int GetContactsResult::getHttpStatusCode()const -{ - return httpStatusCode_; -} - -GetContactsResult::Datapoints GetContactsResult::getDatapoints()const -{ - return datapoints_; -} - -int GetContactsResult::getCode()const -{ - return code_; -} - -bool GetContactsResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/GetMonitoringTemplateRequest.cc b/cms/src/model/GetMonitoringTemplateRequest.cc deleted file mode 100644 index 13a1e8c83..000000000 --- a/cms/src/model/GetMonitoringTemplateRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::GetMonitoringTemplateRequest; - -GetMonitoringTemplateRequest::GetMonitoringTemplateRequest() : - RpcServiceRequest("cms", "2018-03-08", "GetMonitoringTemplate") -{} - -GetMonitoringTemplateRequest::~GetMonitoringTemplateRequest() -{} - -std::string GetMonitoringTemplateRequest::getName()const -{ - return name_; -} - -void GetMonitoringTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -std::string GetMonitoringTemplateRequest::getId()const -{ - return id_; -} - -void GetMonitoringTemplateRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - diff --git a/cms/src/model/GetMonitoringTemplateResult.cc b/cms/src/model/GetMonitoringTemplateResult.cc deleted file mode 100644 index dbc168e4c..000000000 --- a/cms/src/model/GetMonitoringTemplateResult.cc +++ /dev/null @@ -1,85 +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; - -GetMonitoringTemplateResult::GetMonitoringTemplateResult() : - ServiceResult() -{} - -GetMonitoringTemplateResult::GetMonitoringTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetMonitoringTemplateResult::~GetMonitoringTemplateResult() -{} - -void GetMonitoringTemplateResult::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["Id"].isNull()) - resource_.id = resourceNode["Id"].asString(); - if(!resourceNode["RestVersion"].isNull()) - resource_.restVersion = resourceNode["RestVersion"].asString(); - if(!resourceNode["Namespace"].isNull()) - resource_._namespace = resourceNode["Namespace"].asString(); - if(!resourceNode["Description"].isNull()) - resource_.description = resourceNode["Description"].asString(); - if(!resourceNode["AlertTemplatesJson"].isNull()) - resource_.alertTemplatesJson = resourceNode["AlertTemplatesJson"].asString(); - if(!resourceNode["EventRuleTemplatesJson"].isNull()) - resource_.eventRuleTemplatesJson = resourceNode["EventRuleTemplatesJson"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -GetMonitoringTemplateResult::Resource GetMonitoringTemplateResult::getResource()const -{ - return resource_; -} - -int GetMonitoringTemplateResult::getErrorCode()const -{ - return errorCode_; -} - -std::string GetMonitoringTemplateResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool GetMonitoringTemplateResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/GetMyGroupAlertRequest.cc b/cms/src/model/GetMyGroupAlertRequest.cc deleted file mode 100644 index fea67ce98..000000000 --- a/cms/src/model/GetMyGroupAlertRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::GetMyGroupAlertRequest; - -GetMyGroupAlertRequest::GetMyGroupAlertRequest() : - RpcServiceRequest("cms", "2018-03-08", "GetMyGroupAlert") -{} - -GetMyGroupAlertRequest::~GetMyGroupAlertRequest() -{} - -long GetMyGroupAlertRequest::getGroupId()const -{ - return groupId_; -} - -void GetMyGroupAlertRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -std::string GetMyGroupAlertRequest::getAlertName()const -{ - return alertName_; -} - -void GetMyGroupAlertRequest::setAlertName(const std::string& alertName) -{ - alertName_ = alertName; - setCoreParameter("AlertName", alertName); -} - diff --git a/cms/src/model/GetMyGroupAlertResult.cc b/cms/src/model/GetMyGroupAlertResult.cc deleted file mode 100644 index 8c7c83168..000000000 --- a/cms/src/model/GetMyGroupAlertResult.cc +++ /dev/null @@ -1,131 +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; - -GetMyGroupAlertResult::GetMyGroupAlertResult() : - ServiceResult() -{} - -GetMyGroupAlertResult::GetMyGroupAlertResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetMyGroupAlertResult::~GetMyGroupAlertResult() -{} - -void GetMyGroupAlertResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto groupAlertNode = value["GroupAlert"]; - if(!groupAlertNode["GroupId"].isNull()) - groupAlert_.groupId = groupAlertNode["GroupId"].asString(); - if(!groupAlertNode["AlertName"].isNull()) - groupAlert_.alertName = groupAlertNode["AlertName"].asString(); - if(!groupAlertNode["DisplayName"].isNull()) - groupAlert_.displayName = groupAlertNode["DisplayName"].asString(); - if(!groupAlertNode["Subject"].isNull()) - groupAlert_.subject = groupAlertNode["Subject"].asString(); - if(!groupAlertNode["Webhook"].isNull()) - groupAlert_.webhook = groupAlertNode["Webhook"].asString(); - if(!groupAlertNode["Category"].isNull()) - groupAlert_.category = groupAlertNode["Category"].asString(); - if(!groupAlertNode["Namespace"].isNull()) - groupAlert_._namespace = groupAlertNode["Namespace"].asString(); - if(!groupAlertNode["MetricName"].isNull()) - groupAlert_.metricName = groupAlertNode["MetricName"].asString(); - if(!groupAlertNode["Period"].isNull()) - groupAlert_.period = std::stoi(groupAlertNode["Period"].asString()); - if(!groupAlertNode["State"].isNull()) - groupAlert_.state = groupAlertNode["State"].asString(); - if(!groupAlertNode["Description"].isNull()) - groupAlert_.description = groupAlertNode["Description"].asString(); - if(!groupAlertNode["Enable"].isNull()) - groupAlert_.enable = groupAlertNode["Enable"].asString() == "true"; - if(!groupAlertNode["SilenceTime"].isNull()) - groupAlert_.silenceTime = std::stoi(groupAlertNode["SilenceTime"].asString()); - if(!groupAlertNode["EnableEndTime"].isNull()) - groupAlert_.enableEndTime = groupAlertNode["EnableEndTime"].asString(); - if(!groupAlertNode["EnableStartTime"].isNull()) - groupAlert_.enableStartTime = groupAlertNode["EnableStartTime"].asString(); - if(!groupAlertNode["Selector"].isNull()) - groupAlert_.selector = groupAlertNode["Selector"].asString(); - auto escalationsNode = groupAlertNode["Escalations"]; - auto infoNode = escalationsNode["Info"]; - if(!infoNode["Statistics"].isNull()) - groupAlert_.escalations.info.statistics = infoNode["Statistics"].asString(); - if(!infoNode["ComparisonOperator"].isNull()) - groupAlert_.escalations.info.comparisonOperator = infoNode["ComparisonOperator"].asString(); - if(!infoNode["Threshold"].isNull()) - groupAlert_.escalations.info.threshold = infoNode["Threshold"].asString(); - if(!infoNode["Times"].isNull()) - groupAlert_.escalations.info.times = std::stoi(infoNode["Times"].asString()); - auto warnNode = escalationsNode["Warn"]; - if(!warnNode["Statistics"].isNull()) - groupAlert_.escalations.warn.statistics = warnNode["Statistics"].asString(); - if(!warnNode["ComparisonOperator"].isNull()) - groupAlert_.escalations.warn.comparisonOperator = warnNode["ComparisonOperator"].asString(); - if(!warnNode["Threshold"].isNull()) - groupAlert_.escalations.warn.threshold = warnNode["Threshold"].asString(); - if(!warnNode["Times"].isNull()) - groupAlert_.escalations.warn.times = std::stoi(warnNode["Times"].asString()); - auto criticalNode = escalationsNode["Critical"]; - if(!criticalNode["Statistics"].isNull()) - groupAlert_.escalations.critical.statistics = criticalNode["Statistics"].asString(); - if(!criticalNode["ComparisonOperator"].isNull()) - groupAlert_.escalations.critical.comparisonOperator = criticalNode["ComparisonOperator"].asString(); - if(!criticalNode["Threshold"].isNull()) - groupAlert_.escalations.critical.threshold = criticalNode["Threshold"].asString(); - if(!criticalNode["Times"].isNull()) - groupAlert_.escalations.critical.times = std::stoi(criticalNode["Times"].asString()); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -GetMyGroupAlertResult::GroupAlert GetMyGroupAlertResult::getGroupAlert()const -{ - return groupAlert_; -} - -int GetMyGroupAlertResult::getErrorCode()const -{ - return errorCode_; -} - -std::string GetMyGroupAlertResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool GetMyGroupAlertResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/GetMyGroupsRequest.cc b/cms/src/model/GetMyGroupsRequest.cc deleted file mode 100644 index 8fd9da1ea..000000000 --- a/cms/src/model/GetMyGroupsRequest.cc +++ /dev/null @@ -1,93 +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 - -using AlibabaCloud::Cms::Model::GetMyGroupsRequest; - -GetMyGroupsRequest::GetMyGroupsRequest() : - RpcServiceRequest("cms", "2018-03-08", "GetMyGroups") -{} - -GetMyGroupsRequest::~GetMyGroupsRequest() -{} - -bool GetMyGroupsRequest::getSelectContactGroups()const -{ - return selectContactGroups_; -} - -void GetMyGroupsRequest::setSelectContactGroups(bool selectContactGroups) -{ - selectContactGroups_ = selectContactGroups; - setCoreParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); -} - -long GetMyGroupsRequest::getGroupId()const -{ - return groupId_; -} - -void GetMyGroupsRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -std::string GetMyGroupsRequest::getType()const -{ - return type_; -} - -void GetMyGroupsRequest::setType(const std::string& type) -{ - type_ = type; - setCoreParameter("Type", type); -} - -std::string GetMyGroupsRequest::getGroupName()const -{ - return groupName_; -} - -void GetMyGroupsRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setCoreParameter("GroupName", groupName); -} - -std::string GetMyGroupsRequest::getInstanceId()const -{ - return instanceId_; -} - -void GetMyGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setCoreParameter("InstanceId", instanceId); -} - -std::string GetMyGroupsRequest::getBindUrl()const -{ - return bindUrl_; -} - -void GetMyGroupsRequest::setBindUrl(const std::string& bindUrl) -{ - bindUrl_ = bindUrl; - setCoreParameter("BindUrl", bindUrl); -} - diff --git a/cms/src/model/GetNotifyPolicyRequest.cc b/cms/src/model/GetNotifyPolicyRequest.cc deleted file mode 100644 index a6ac36e52..000000000 --- a/cms/src/model/GetNotifyPolicyRequest.cc +++ /dev/null @@ -1,93 +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 - -using AlibabaCloud::Cms::Model::GetNotifyPolicyRequest; - -GetNotifyPolicyRequest::GetNotifyPolicyRequest() : - RpcServiceRequest("cms", "2018-03-08", "GetNotifyPolicy") -{} - -GetNotifyPolicyRequest::~GetNotifyPolicyRequest() -{} - -std::string GetNotifyPolicyRequest::getPolicyType()const -{ - return policyType_; -} - -void GetNotifyPolicyRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setCoreParameter("PolicyType", policyType); -} - -std::string GetNotifyPolicyRequest::getAlertName()const -{ - return alertName_; -} - -void GetNotifyPolicyRequest::setAlertName(const std::string& alertName) -{ - alertName_ = alertName; - setCoreParameter("AlertName", alertName); -} - -std::string GetNotifyPolicyRequest::getGroupId()const -{ - return groupId_; -} - -void GetNotifyPolicyRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string GetNotifyPolicyRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void GetNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string GetNotifyPolicyRequest::getId()const -{ - return id_; -} - -void GetNotifyPolicyRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - -std::string GetNotifyPolicyRequest::getDimensions()const -{ - return dimensions_; -} - -void GetNotifyPolicyRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - diff --git a/cms/src/model/GetNotifyPolicyResult.cc b/cms/src/model/GetNotifyPolicyResult.cc deleted file mode 100644 index bd541b186..000000000 --- a/cms/src/model/GetNotifyPolicyResult.cc +++ /dev/null @@ -1,85 +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; - -GetNotifyPolicyResult::GetNotifyPolicyResult() : - ServiceResult() -{} - -GetNotifyPolicyResult::GetNotifyPolicyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -GetNotifyPolicyResult::~GetNotifyPolicyResult() -{} - -void GetNotifyPolicyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto resultNode = value["Result"]; - if(!resultNode["AlertName"].isNull()) - result_.alertName = resultNode["AlertName"].asString(); - if(!resultNode["Dimensions"].isNull()) - result_.dimensions = resultNode["Dimensions"].asString(); - if(!resultNode["Type"].isNull()) - result_.type = resultNode["Type"].asString(); - if(!resultNode["Id"].isNull()) - result_.id = resultNode["Id"].asString(); - if(!resultNode["StartTime"].isNull()) - result_.startTime = std::stol(resultNode["StartTime"].asString()); - if(!resultNode["EndTime"].isNull()) - result_.endTime = std::stol(resultNode["EndTime"].asString()); - if(!resultNode["GroupId"].isNull()) - result_.groupId = resultNode["GroupId"].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(); - -} - -std::string GetNotifyPolicyResult::getMessage()const -{ - return message_; -} - -std::string GetNotifyPolicyResult::getCode()const -{ - return code_; -} - -std::string GetNotifyPolicyResult::getSuccess()const -{ - return success_; -} - -GetNotifyPolicyResult::Result GetNotifyPolicyResult::getResult()const -{ - return result_; -} - diff --git a/cms/src/model/InstallMonitoringAgentRequest.cc b/cms/src/model/InstallMonitoringAgentRequest.cc new file mode 100644 index 000000000..ce287227a --- /dev/null +++ b/cms/src/model/InstallMonitoringAgentRequest.cc @@ -0,0 +1,53 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::InstallMonitoringAgentRequest; + +InstallMonitoringAgentRequest::InstallMonitoringAgentRequest() : + RpcServiceRequest("cms", "2019-01-01", "InstallMonitoringAgent") +{ + setMethod(HttpRequest::Method::Post); +} + +InstallMonitoringAgentRequest::~InstallMonitoringAgentRequest() +{} + +std::vector InstallMonitoringAgentRequest::getInstanceIds()const +{ + return instanceIds_; +} + +void InstallMonitoringAgentRequest::setInstanceIds(const std::vector& instanceIds) +{ + instanceIds_ = instanceIds; + for(int dep1 = 0; dep1!= instanceIds.size(); dep1++) { + setCoreParameter("InstanceIds."+ std::to_string(dep1), instanceIds.at(dep1)); + } +} + +bool InstallMonitoringAgentRequest::getForce()const +{ + return force_; +} + +void InstallMonitoringAgentRequest::setForce(bool force) +{ + force_ = force; + setCoreParameter("Force", force ? "true" : "false"); +} + diff --git a/cms/src/model/InstallMonitoringAgentResult.cc b/cms/src/model/InstallMonitoringAgentResult.cc new file mode 100644 index 000000000..1c7390e12 --- /dev/null +++ b/cms/src/model/InstallMonitoringAgentResult.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; + +InstallMonitoringAgentResult::InstallMonitoringAgentResult() : + ServiceResult() +{} + +InstallMonitoringAgentResult::InstallMonitoringAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +InstallMonitoringAgentResult::~InstallMonitoringAgentResult() +{} + +void InstallMonitoringAgentResult::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 InstallMonitoringAgentResult::getMessage()const +{ + return message_; +} + +std::string InstallMonitoringAgentResult::getCode()const +{ + return code_; +} + +bool InstallMonitoringAgentResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ListAlarmHistoryRequest.cc b/cms/src/model/ListAlarmHistoryRequest.cc deleted file mode 100644 index a3508176d..000000000 --- a/cms/src/model/ListAlarmHistoryRequest.cc +++ /dev/null @@ -1,93 +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 - -using AlibabaCloud::Cms::Model::ListAlarmHistoryRequest; - -ListAlarmHistoryRequest::ListAlarmHistoryRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListAlarmHistory") -{} - -ListAlarmHistoryRequest::~ListAlarmHistoryRequest() -{} - -std::string ListAlarmHistoryRequest::getCursor()const -{ - return cursor_; -} - -void ListAlarmHistoryRequest::setCursor(const std::string& cursor) -{ - cursor_ = cursor; - setCoreParameter("Cursor", cursor); -} - -std::string ListAlarmHistoryRequest::getEndTime()const -{ - return endTime_; -} - -void ListAlarmHistoryRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - -std::string ListAlarmHistoryRequest::getStartTime()const -{ - return startTime_; -} - -void ListAlarmHistoryRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string ListAlarmHistoryRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListAlarmHistoryRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -int ListAlarmHistoryRequest::getSize()const -{ - return size_; -} - -void ListAlarmHistoryRequest::setSize(int size) -{ - size_ = size; - setCoreParameter("Size", std::to_string(size)); -} - -std::string ListAlarmHistoryRequest::getId()const -{ - return id_; -} - -void ListAlarmHistoryRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - diff --git a/cms/src/model/ListAlarmHistoryResult.cc b/cms/src/model/ListAlarmHistoryResult.cc deleted file mode 100644 index a9042e5cf..000000000 --- a/cms/src/model/ListAlarmHistoryResult.cc +++ /dev/null @@ -1,109 +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; - -ListAlarmHistoryResult::ListAlarmHistoryResult() : - ServiceResult() -{} - -ListAlarmHistoryResult::ListAlarmHistoryResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAlarmHistoryResult::~ListAlarmHistoryResult() -{} - -void ListAlarmHistoryResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allAlarmHistoryListNode = value["AlarmHistoryList"]["AlarmHistory"]; - for (auto valueAlarmHistoryListAlarmHistory : allAlarmHistoryListNode) - { - AlarmHistory alarmHistoryListObject; - if(!valueAlarmHistoryListAlarmHistory["Id"].isNull()) - alarmHistoryListObject.id = valueAlarmHistoryListAlarmHistory["Id"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Name"].isNull()) - alarmHistoryListObject.name = valueAlarmHistoryListAlarmHistory["Name"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Namespace"].isNull()) - alarmHistoryListObject._namespace = valueAlarmHistoryListAlarmHistory["Namespace"].asString(); - if(!valueAlarmHistoryListAlarmHistory["MetricName"].isNull()) - alarmHistoryListObject.metricName = valueAlarmHistoryListAlarmHistory["MetricName"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Dimension"].isNull()) - alarmHistoryListObject.dimension = valueAlarmHistoryListAlarmHistory["Dimension"].asString(); - if(!valueAlarmHistoryListAlarmHistory["EvaluationCount"].isNull()) - alarmHistoryListObject.evaluationCount = std::stoi(valueAlarmHistoryListAlarmHistory["EvaluationCount"].asString()); - if(!valueAlarmHistoryListAlarmHistory["Value"].isNull()) - alarmHistoryListObject.value = valueAlarmHistoryListAlarmHistory["Value"].asString(); - if(!valueAlarmHistoryListAlarmHistory["AlarmTime"].isNull()) - alarmHistoryListObject.alarmTime = std::stol(valueAlarmHistoryListAlarmHistory["AlarmTime"].asString()); - if(!valueAlarmHistoryListAlarmHistory["LastTime"].isNull()) - alarmHistoryListObject.lastTime = std::stol(valueAlarmHistoryListAlarmHistory["LastTime"].asString()); - if(!valueAlarmHistoryListAlarmHistory["State"].isNull()) - alarmHistoryListObject.state = valueAlarmHistoryListAlarmHistory["State"].asString(); - if(!valueAlarmHistoryListAlarmHistory["Status"].isNull()) - alarmHistoryListObject.status = std::stoi(valueAlarmHistoryListAlarmHistory["Status"].asString()); - if(!valueAlarmHistoryListAlarmHistory["ContactGroups"].isNull()) - alarmHistoryListObject.contactGroups = valueAlarmHistoryListAlarmHistory["ContactGroups"].asString(); - if(!valueAlarmHistoryListAlarmHistory["InstanceName"].isNull()) - alarmHistoryListObject.instanceName = valueAlarmHistoryListAlarmHistory["InstanceName"].asString(); - alarmHistoryList_.push_back(alarmHistoryListObject); - } - 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(); - if(!value["Cursor"].isNull()) - cursor_ = value["Cursor"].asString(); - -} - -std::vector ListAlarmHistoryResult::getAlarmHistoryList()const -{ - return alarmHistoryList_; -} - -std::string ListAlarmHistoryResult::getMessage()const -{ - return message_; -} - -std::string ListAlarmHistoryResult::getCursor()const -{ - return cursor_; -} - -std::string ListAlarmHistoryResult::getCode()const -{ - return code_; -} - -bool ListAlarmHistoryResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/ListAlarmRequest.cc b/cms/src/model/ListAlarmRequest.cc deleted file mode 100644 index 545a72150..000000000 --- a/cms/src/model/ListAlarmRequest.cc +++ /dev/null @@ -1,115 +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 - -using AlibabaCloud::Cms::Model::ListAlarmRequest; - -ListAlarmRequest::ListAlarmRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListAlarm") -{} - -ListAlarmRequest::~ListAlarmRequest() -{} - -int ListAlarmRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListAlarmRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setCoreParameter("PageNumber", std::to_string(pageNumber)); -} - -bool ListAlarmRequest::getIsEnable()const -{ - return isEnable_; -} - -void ListAlarmRequest::setIsEnable(bool isEnable) -{ - isEnable_ = isEnable; - setCoreParameter("IsEnable", isEnable ? "true" : "false"); -} - -std::string ListAlarmRequest::getName()const -{ - return name_; -} - -void ListAlarmRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -std::string ListAlarmRequest::get_Namespace()const -{ - return _namespace_; -} - -void ListAlarmRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setCoreParameter("_Namespace", _namespace); -} - -int ListAlarmRequest::getPageSize()const -{ - return pageSize_; -} - -void ListAlarmRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListAlarmRequest::getId()const -{ - return id_; -} - -void ListAlarmRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - -std::string ListAlarmRequest::getState()const -{ - return state_; -} - -void ListAlarmRequest::setState(const std::string& state) -{ - state_ = state; - setCoreParameter("State", state); -} - -std::string ListAlarmRequest::getDimension()const -{ - return dimension_; -} - -void ListAlarmRequest::setDimension(const std::string& dimension) -{ - dimension_ = dimension; - setCoreParameter("Dimension", dimension); -} - diff --git a/cms/src/model/ListAlarmResult.cc b/cms/src/model/ListAlarmResult.cc deleted file mode 100644 index 217c03f2d..000000000 --- a/cms/src/model/ListAlarmResult.cc +++ /dev/null @@ -1,126 +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; - -ListAlarmResult::ListAlarmResult() : - ServiceResult() -{} - -ListAlarmResult::ListAlarmResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListAlarmResult::~ListAlarmResult() -{} - -void ListAlarmResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allAlarmListNode = value["AlarmList"]["Alarm"]; - for (auto valueAlarmListAlarm : allAlarmListNode) - { - Alarm alarmListObject; - if(!valueAlarmListAlarm["Id"].isNull()) - alarmListObject.id = valueAlarmListAlarm["Id"].asString(); - if(!valueAlarmListAlarm["Name"].isNull()) - alarmListObject.name = valueAlarmListAlarm["Name"].asString(); - if(!valueAlarmListAlarm["Namespace"].isNull()) - alarmListObject._namespace = valueAlarmListAlarm["Namespace"].asString(); - if(!valueAlarmListAlarm["MetricName"].isNull()) - alarmListObject.metricName = valueAlarmListAlarm["MetricName"].asString(); - if(!valueAlarmListAlarm["Dimensions"].isNull()) - alarmListObject.dimensions = valueAlarmListAlarm["Dimensions"].asString(); - if(!valueAlarmListAlarm["Period"].isNull()) - alarmListObject.period = std::stoi(valueAlarmListAlarm["Period"].asString()); - if(!valueAlarmListAlarm["Statistics"].isNull()) - alarmListObject.statistics = valueAlarmListAlarm["Statistics"].asString(); - if(!valueAlarmListAlarm["ComparisonOperator"].isNull()) - alarmListObject.comparisonOperator = valueAlarmListAlarm["ComparisonOperator"].asString(); - if(!valueAlarmListAlarm["Threshold"].isNull()) - alarmListObject.threshold = valueAlarmListAlarm["Threshold"].asString(); - if(!valueAlarmListAlarm["EvaluationCount"].isNull()) - alarmListObject.evaluationCount = std::stoi(valueAlarmListAlarm["EvaluationCount"].asString()); - if(!valueAlarmListAlarm["StartTime"].isNull()) - alarmListObject.startTime = std::stoi(valueAlarmListAlarm["StartTime"].asString()); - if(!valueAlarmListAlarm["EndTime"].isNull()) - alarmListObject.endTime = std::stoi(valueAlarmListAlarm["EndTime"].asString()); - if(!valueAlarmListAlarm["SilenceTime"].isNull()) - alarmListObject.silenceTime = std::stoi(valueAlarmListAlarm["SilenceTime"].asString()); - if(!valueAlarmListAlarm["NotifyType"].isNull()) - alarmListObject.notifyType = std::stoi(valueAlarmListAlarm["NotifyType"].asString()); - if(!valueAlarmListAlarm["Enable"].isNull()) - alarmListObject.enable = valueAlarmListAlarm["Enable"].asString() == "true"; - if(!valueAlarmListAlarm["State"].isNull()) - alarmListObject.state = valueAlarmListAlarm["State"].asString(); - if(!valueAlarmListAlarm["ContactGroups"].isNull()) - alarmListObject.contactGroups = valueAlarmListAlarm["ContactGroups"].asString(); - if(!valueAlarmListAlarm["Webhook"].isNull()) - alarmListObject.webhook = valueAlarmListAlarm["Webhook"].asString(); - alarmList_.push_back(alarmListObject); - } - 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(); - if(!value["NextToken"].isNull()) - nextToken_ = std::stoi(value["NextToken"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); - -} - -std::string ListAlarmResult::getMessage()const -{ - return message_; -} - -int ListAlarmResult::getNextToken()const -{ - return nextToken_; -} - -std::vector ListAlarmResult::getAlarmList()const -{ - return alarmList_; -} - -int ListAlarmResult::getTotal()const -{ - return total_; -} - -std::string ListAlarmResult::getCode()const -{ - return code_; -} - -bool ListAlarmResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/ListEventRulesRequest.cc b/cms/src/model/ListEventRulesRequest.cc deleted file mode 100644 index 94a7d6aea..000000000 --- a/cms/src/model/ListEventRulesRequest.cc +++ /dev/null @@ -1,71 +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 - -using AlibabaCloud::Cms::Model::ListEventRulesRequest; - -ListEventRulesRequest::ListEventRulesRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListEventRules") -{} - -ListEventRulesRequest::~ListEventRulesRequest() -{} - -std::string ListEventRulesRequest::getGroupId()const -{ - return groupId_; -} - -void ListEventRulesRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string ListEventRulesRequest::getPageSize()const -{ - return pageSize_; -} - -void ListEventRulesRequest::setPageSize(const std::string& pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", pageSize); -} - -std::string ListEventRulesRequest::getNamePrefix()const -{ - return namePrefix_; -} - -void ListEventRulesRequest::setNamePrefix(const std::string& namePrefix) -{ - namePrefix_ = namePrefix; - setCoreParameter("NamePrefix", namePrefix); -} - -std::string ListEventRulesRequest::getPage()const -{ - return page_; -} - -void ListEventRulesRequest::setPage(const std::string& page) -{ - page_ = page; - setCoreParameter("Page", page); -} - diff --git a/cms/src/model/ListEventRulesResult.cc b/cms/src/model/ListEventRulesResult.cc deleted file mode 100644 index 1f337b758..000000000 --- a/cms/src/model/ListEventRulesResult.cc +++ /dev/null @@ -1,127 +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; - -ListEventRulesResult::ListEventRulesResult() : - ServiceResult() -{} - -ListEventRulesResult::ListEventRulesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListEventRulesResult::~ListEventRulesResult() -{} - -void ListEventRulesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allDatapointsNode = value["Datapoints"]["EventRule"]; - for (auto valueDatapointsEventRule : allDatapointsNode) - { - EventRule datapointsObject; - if(!valueDatapointsEventRule["Name"].isNull()) - datapointsObject.name = valueDatapointsEventRule["Name"].asString(); - if(!valueDatapointsEventRule["GroupId"].isNull()) - datapointsObject.groupId = valueDatapointsEventRule["GroupId"].asString(); - if(!valueDatapointsEventRule["EventType"].isNull()) - datapointsObject.eventType = valueDatapointsEventRule["EventType"].asString(); - if(!valueDatapointsEventRule["State"].isNull()) - datapointsObject.state = valueDatapointsEventRule["State"].asString(); - if(!valueDatapointsEventRule["Description"].isNull()) - datapointsObject.description = valueDatapointsEventRule["Description"].asString(); - auto allEventPatternNode = allDatapointsNode["EventPattern"]["EventPatternItem"]; - for (auto allDatapointsNodeEventPatternEventPatternItem : allEventPatternNode) - { - EventRule::EventPatternItem eventPatternObject; - if(!allDatapointsNodeEventPatternEventPatternItem["Product"].isNull()) - eventPatternObject.product = allDatapointsNodeEventPatternEventPatternItem["Product"].asString(); - auto allNameList = value["NameList"]["NameList"]; - for (auto value : allNameList) - eventPatternObject.nameList.push_back(value.asString()); - auto allStatusList = value["StatusList"]["StatusList"]; - for (auto value : allStatusList) - eventPatternObject.statusList.push_back(value.asString()); - auto allLevelList = value["LevelList"]["LevelList"]; - for (auto value : allLevelList) - eventPatternObject.levelList.push_back(value.asString()); - auto allEventTypeList = value["EventTypeList"]["EventTypeList"]; - for (auto value : allEventTypeList) - eventPatternObject.eventTypeList.push_back(value.asString()); - datapointsObject.eventPattern.push_back(eventPatternObject); - } - datapoints_.push_back(datapointsObject); - } - 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(); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); - if(!value["CurrentPage"].isNull()) - currentPage_ = std::stoi(value["CurrentPage"].asString()); - if(!value["NextToken"].isNull()) - nextToken_ = value["NextToken"].asString(); - -} - -std::string ListEventRulesResult::getMessage()const -{ - return message_; -} - -std::string ListEventRulesResult::getNextToken()const -{ - return nextToken_; -} - -int ListEventRulesResult::getCurrentPage()const -{ - return currentPage_; -} - -int ListEventRulesResult::getTotal()const -{ - return total_; -} - -std::vector ListEventRulesResult::getDatapoints()const -{ - return datapoints_; -} - -std::string ListEventRulesResult::getCode()const -{ - return code_; -} - -bool ListEventRulesResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/ListMonitoringTemplatesRequest.cc b/cms/src/model/ListMonitoringTemplatesRequest.cc deleted file mode 100644 index 66c3dceda..000000000 --- a/cms/src/model/ListMonitoringTemplatesRequest.cc +++ /dev/null @@ -1,104 +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 - -using AlibabaCloud::Cms::Model::ListMonitoringTemplatesRequest; - -ListMonitoringTemplatesRequest::ListMonitoringTemplatesRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListMonitoringTemplates") -{} - -ListMonitoringTemplatesRequest::~ListMonitoringTemplatesRequest() -{} - -bool ListMonitoringTemplatesRequest::getHistory()const -{ - return history_; -} - -void ListMonitoringTemplatesRequest::setHistory(bool history) -{ - history_ = history; - setCoreParameter("History", history ? "true" : "false"); -} - -long ListMonitoringTemplatesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListMonitoringTemplatesRequest::setPageNumber(long pageNumber) -{ - pageNumber_ = pageNumber; - setCoreParameter("PageNumber", std::to_string(pageNumber)); -} - -bool ListMonitoringTemplatesRequest::getTotal()const -{ - return total_; -} - -void ListMonitoringTemplatesRequest::setTotal(bool total) -{ - total_ = total; - setCoreParameter("Total", total ? "true" : "false"); -} - -std::string ListMonitoringTemplatesRequest::getName()const -{ - return name_; -} - -void ListMonitoringTemplatesRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -long ListMonitoringTemplatesRequest::getPageSize()const -{ - return pageSize_; -} - -void ListMonitoringTemplatesRequest::setPageSize(long pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -long ListMonitoringTemplatesRequest::getId()const -{ - return id_; -} - -void ListMonitoringTemplatesRequest::setId(long id) -{ - id_ = id; - setCoreParameter("Id", std::to_string(id)); -} - -std::string ListMonitoringTemplatesRequest::getKeyword()const -{ - return keyword_; -} - -void ListMonitoringTemplatesRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setCoreParameter("Keyword", keyword); -} - diff --git a/cms/src/model/ListMonitoringTemplatesResult.cc b/cms/src/model/ListMonitoringTemplatesResult.cc deleted file mode 100644 index 0edf61aa3..000000000 --- a/cms/src/model/ListMonitoringTemplatesResult.cc +++ /dev/null @@ -1,127 +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; - -ListMonitoringTemplatesResult::ListMonitoringTemplatesResult() : - ServiceResult() -{} - -ListMonitoringTemplatesResult::ListMonitoringTemplatesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListMonitoringTemplatesResult::~ListMonitoringTemplatesResult() -{} - -void ListMonitoringTemplatesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allResourcesNode = value["Resources"]["Resource"]; - for (auto valueResourcesResource : allResourcesNode) - { - Resource resourcesObject; - if(!valueResourcesResource["Name"].isNull()) - resourcesObject.name = valueResourcesResource["Name"].asString(); - if(!valueResourcesResource["Namespace"].isNull()) - resourcesObject._namespace = valueResourcesResource["Namespace"].asString(); - if(!valueResourcesResource["Description"].isNull()) - resourcesObject.description = valueResourcesResource["Description"].asString(); - if(!valueResourcesResource["AlertTemplatesJson"].isNull()) - resourcesObject.alertTemplatesJson = valueResourcesResource["AlertTemplatesJson"].asString(); - if(!valueResourcesResource["RestVersion"].isNull()) - resourcesObject.restVersion = std::stol(valueResourcesResource["RestVersion"].asString()); - if(!valueResourcesResource["Id"].isNull()) - resourcesObject.id = std::stol(valueResourcesResource["Id"].asString()); - if(!valueResourcesResource["GmtCreate"].isNull()) - resourcesObject.gmtCreate = std::stol(valueResourcesResource["GmtCreate"].asString()); - if(!valueResourcesResource["GmtModified"].isNull()) - resourcesObject.gmtModified = std::stol(valueResourcesResource["GmtModified"].asString()); - if(!valueResourcesResource["EventRuleTemplatesJson"].isNull()) - resourcesObject.eventRuleTemplatesJson = valueResourcesResource["EventRuleTemplatesJson"].asString(); - auto allApplyHistoriesNode = allResourcesNode["ApplyHistories"]["ApplyHistory"]; - for (auto allResourcesNodeApplyHistoriesApplyHistory : allApplyHistoriesNode) - { - Resource::ApplyHistory applyHistoriesObject; - if(!allResourcesNodeApplyHistoriesApplyHistory["GroupId"].isNull()) - applyHistoriesObject.groupId = std::stol(allResourcesNodeApplyHistoriesApplyHistory["GroupId"].asString()); - if(!allResourcesNodeApplyHistoriesApplyHistory["GroupName"].isNull()) - applyHistoriesObject.groupName = allResourcesNodeApplyHistoriesApplyHistory["GroupName"].asString(); - if(!allResourcesNodeApplyHistoriesApplyHistory["ApplyTime"].isNull()) - applyHistoriesObject.applyTime = std::stol(allResourcesNodeApplyHistoriesApplyHistory["ApplyTime"].asString()); - resourcesObject.applyHistories.push_back(applyHistoriesObject); - } - resources_.push_back(resourcesObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["PageSize"].isNull()) - pageSize_ = std::stol(value["PageSize"].asString()); - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stol(value["PageNumber"].asString()); - if(!value["Total"].isNull()) - total_ = std::stol(value["Total"].asString()); - -} - -long ListMonitoringTemplatesResult::getPageSize()const -{ - return pageSize_; -} - -long ListMonitoringTemplatesResult::getPageNumber()const -{ - return pageNumber_; -} - -long ListMonitoringTemplatesResult::getTotal()const -{ - return total_; -} - -std::vector ListMonitoringTemplatesResult::getResources()const -{ - return resources_; -} - -int ListMonitoringTemplatesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ListMonitoringTemplatesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListMonitoringTemplatesResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/ListMyGroupCategoriesResult.cc b/cms/src/model/ListMyGroupCategoriesResult.cc deleted file mode 100644 index 70dee9c84..000000000 --- a/cms/src/model/ListMyGroupCategoriesResult.cc +++ /dev/null @@ -1,83 +0,0 @@ -/* - * Copyright 2009-2017 Alibaba Cloud All rights reserved. - * - * Licensed under the Apache License, Version 2.0 (the "License"); - * you may not use this file except in compliance with the License. - * You may obtain a copy of the License at - * - * http://www.apache.org/licenses/LICENSE-2.0 - * - * Unless required by applicable law or agreed to in writing, software - * distributed under the License is distributed on an "AS IS" BASIS, - * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. - * See the License for the specific language governing permissions and - * limitations under the License. - */ - -#include -#include - -using namespace AlibabaCloud::Cms; -using namespace AlibabaCloud::Cms::Model; - -ListMyGroupCategoriesResult::ListMyGroupCategoriesResult() : - ServiceResult() -{} - -ListMyGroupCategoriesResult::ListMyGroupCategoriesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ListMyGroupCategoriesResult::~ListMyGroupCategoriesResult() -{} - -void ListMyGroupCategoriesResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto categoryNode = value["Category"]; - if(!categoryNode["GroupId"].isNull()) - category_.groupId = std::stol(categoryNode["GroupId"].asString()); - auto allCategoryItemsNode = categoryNode["CategoryItems"]["CategoryItem"]; - for (auto categoryNodeCategoryItemsCategoryItem : allCategoryItemsNode) - { - Category::CategoryItem categoryItemObject; - if(!categoryNodeCategoryItemsCategoryItem["Category"].isNull()) - categoryItemObject.category = categoryNodeCategoryItemsCategoryItem["Category"].asString(); - if(!categoryNodeCategoryItemsCategoryItem["Count"].isNull()) - categoryItemObject.count = std::stoi(categoryNodeCategoryItemsCategoryItem["Count"].asString()); - category_.categoryItems.push_back(categoryItemObject); - } - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -ListMyGroupCategoriesResult::Category ListMyGroupCategoriesResult::getCategory()const -{ - return category_; -} - -int ListMyGroupCategoriesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ListMyGroupCategoriesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ListMyGroupCategoriesResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/ListMyGroupInstancesDetailsRequest.cc b/cms/src/model/ListMyGroupInstancesDetailsRequest.cc deleted file mode 100644 index 073252f50..000000000 --- a/cms/src/model/ListMyGroupInstancesDetailsRequest.cc +++ /dev/null @@ -1,104 +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 - -using AlibabaCloud::Cms::Model::ListMyGroupInstancesDetailsRequest; - -ListMyGroupInstancesDetailsRequest::ListMyGroupInstancesDetailsRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListMyGroupInstancesDetails") -{} - -ListMyGroupInstancesDetailsRequest::~ListMyGroupInstancesDetailsRequest() -{} - -long ListMyGroupInstancesDetailsRequest::getGroupId()const -{ - return groupId_; -} - -void ListMyGroupInstancesDetailsRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -int ListMyGroupInstancesDetailsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListMyGroupInstancesDetailsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setCoreParameter("PageNumber", std::to_string(pageNumber)); -} - -bool ListMyGroupInstancesDetailsRequest::getTotal()const -{ - return total_; -} - -void ListMyGroupInstancesDetailsRequest::setTotal(bool total) -{ - total_ = total; - setCoreParameter("Total", total ? "true" : "false"); -} - -std::string ListMyGroupInstancesDetailsRequest::getInstanceIds()const -{ - return instanceIds_; -} - -void ListMyGroupInstancesDetailsRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setCoreParameter("InstanceIds", instanceIds); -} - -int ListMyGroupInstancesDetailsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListMyGroupInstancesDetailsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListMyGroupInstancesDetailsRequest::getCategory()const -{ - return category_; -} - -void ListMyGroupInstancesDetailsRequest::setCategory(const std::string& category) -{ - category_ = category; - setCoreParameter("Category", category); -} - -std::string ListMyGroupInstancesDetailsRequest::getKeyword()const -{ - return keyword_; -} - -void ListMyGroupInstancesDetailsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setCoreParameter("Keyword", keyword); -} - diff --git a/cms/src/model/ListMyGroupInstancesRequest.cc b/cms/src/model/ListMyGroupInstancesRequest.cc deleted file mode 100644 index 2fe905280..000000000 --- a/cms/src/model/ListMyGroupInstancesRequest.cc +++ /dev/null @@ -1,104 +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 - -using AlibabaCloud::Cms::Model::ListMyGroupInstancesRequest; - -ListMyGroupInstancesRequest::ListMyGroupInstancesRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListMyGroupInstances") -{} - -ListMyGroupInstancesRequest::~ListMyGroupInstancesRequest() -{} - -long ListMyGroupInstancesRequest::getGroupId()const -{ - return groupId_; -} - -void ListMyGroupInstancesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -int ListMyGroupInstancesRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListMyGroupInstancesRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setCoreParameter("PageNumber", std::to_string(pageNumber)); -} - -bool ListMyGroupInstancesRequest::getTotal()const -{ - return total_; -} - -void ListMyGroupInstancesRequest::setTotal(bool total) -{ - total_ = total; - setCoreParameter("Total", total ? "true" : "false"); -} - -std::string ListMyGroupInstancesRequest::getInstanceIds()const -{ - return instanceIds_; -} - -void ListMyGroupInstancesRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setCoreParameter("InstanceIds", instanceIds); -} - -int ListMyGroupInstancesRequest::getPageSize()const -{ - return pageSize_; -} - -void ListMyGroupInstancesRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListMyGroupInstancesRequest::getCategory()const -{ - return category_; -} - -void ListMyGroupInstancesRequest::setCategory(const std::string& category) -{ - category_ = category; - setCoreParameter("Category", category); -} - -std::string ListMyGroupInstancesRequest::getKeyword()const -{ - return keyword_; -} - -void ListMyGroupInstancesRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setCoreParameter("Keyword", keyword); -} - diff --git a/cms/src/model/ListMyGroupsRequest.cc b/cms/src/model/ListMyGroupsRequest.cc deleted file mode 100644 index 07b01918a..000000000 --- a/cms/src/model/ListMyGroupsRequest.cc +++ /dev/null @@ -1,115 +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 - -using AlibabaCloud::Cms::Model::ListMyGroupsRequest; - -ListMyGroupsRequest::ListMyGroupsRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListMyGroups") -{} - -ListMyGroupsRequest::~ListMyGroupsRequest() -{} - -bool ListMyGroupsRequest::getSelectContactGroups()const -{ - return selectContactGroups_; -} - -void ListMyGroupsRequest::setSelectContactGroups(bool selectContactGroups) -{ - selectContactGroups_ = selectContactGroups; - setCoreParameter("SelectContactGroups", selectContactGroups ? "true" : "false"); -} - -std::string ListMyGroupsRequest::getType()const -{ - return type_; -} - -void ListMyGroupsRequest::setType(const std::string& type) -{ - type_ = type; - setCoreParameter("Type", type); -} - -std::string ListMyGroupsRequest::getGroupName()const -{ - return groupName_; -} - -void ListMyGroupsRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setCoreParameter("GroupName", groupName); -} - -int ListMyGroupsRequest::getPageNumber()const -{ - return pageNumber_; -} - -void ListMyGroupsRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setCoreParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string ListMyGroupsRequest::getBindUrls()const -{ - return bindUrls_; -} - -void ListMyGroupsRequest::setBindUrls(const std::string& bindUrls) -{ - bindUrls_ = bindUrls; - setCoreParameter("BindUrls", bindUrls); -} - -std::string ListMyGroupsRequest::getInstanceId()const -{ - return instanceId_; -} - -void ListMyGroupsRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setCoreParameter("InstanceId", instanceId); -} - -int ListMyGroupsRequest::getPageSize()const -{ - return pageSize_; -} - -void ListMyGroupsRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListMyGroupsRequest::getKeyword()const -{ - return keyword_; -} - -void ListMyGroupsRequest::setKeyword(const std::string& keyword) -{ - keyword_ = keyword; - setCoreParameter("Keyword", keyword); -} - diff --git a/cms/src/model/ListNotifyPolicyRequest.cc b/cms/src/model/ListNotifyPolicyRequest.cc deleted file mode 100644 index 7eeeadd94..000000000 --- a/cms/src/model/ListNotifyPolicyRequest.cc +++ /dev/null @@ -1,104 +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 - -using AlibabaCloud::Cms::Model::ListNotifyPolicyRequest; - -ListNotifyPolicyRequest::ListNotifyPolicyRequest() : - RpcServiceRequest("cms", "2018-03-08", "ListNotifyPolicy") -{} - -ListNotifyPolicyRequest::~ListNotifyPolicyRequest() -{} - -std::string ListNotifyPolicyRequest::getPolicyType()const -{ - return policyType_; -} - -void ListNotifyPolicyRequest::setPolicyType(const std::string& policyType) -{ - policyType_ = policyType; - setCoreParameter("PolicyType", policyType); -} - -std::string ListNotifyPolicyRequest::getAlertName()const -{ - return alertName_; -} - -void ListNotifyPolicyRequest::setAlertName(const std::string& alertName) -{ - alertName_ = alertName; - setCoreParameter("AlertName", alertName); -} - -std::string ListNotifyPolicyRequest::getGroupId()const -{ - return groupId_; -} - -void ListNotifyPolicyRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string ListNotifyPolicyRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void ListNotifyPolicyRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -int ListNotifyPolicyRequest::getPageSize()const -{ - return pageSize_; -} - -void ListNotifyPolicyRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string ListNotifyPolicyRequest::getId()const -{ - return id_; -} - -void ListNotifyPolicyRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - -std::string ListNotifyPolicyRequest::getDimensions()const -{ - return dimensions_; -} - -void ListNotifyPolicyRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - diff --git a/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc b/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc new file mode 100644 index 000000000..bf52205a2 --- /dev/null +++ b/cms/src/model/ModifyGroupMonitoringAgentProcessRequest.cc @@ -0,0 +1,84 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::ModifyGroupMonitoringAgentProcessRequest; + +ModifyGroupMonitoringAgentProcessRequest::ModifyGroupMonitoringAgentProcessRequest() : + RpcServiceRequest("cms", "2019-01-01", "ModifyGroupMonitoringAgentProcess") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyGroupMonitoringAgentProcessRequest::~ModifyGroupMonitoringAgentProcessRequest() +{} + +std::vector ModifyGroupMonitoringAgentProcessRequest::getAlertConfig()const +{ + return alertConfig_; +} + +void ModifyGroupMonitoringAgentProcessRequest::setAlertConfig(const std::vector& alertConfig) +{ + alertConfig_ = alertConfig; + for(int dep1 = 0; dep1!= alertConfig.size(); dep1++) { + auto alertConfigObj = alertConfig.at(dep1); + std::string alertConfigObjStr = "AlertConfig." + std::to_string(dep1); + setCoreParameter(alertConfigObjStr + ".Times", alertConfigObj.times); + setCoreParameter(alertConfigObjStr + ".NoEffectiveInterval", alertConfigObj.noEffectiveInterval); + setCoreParameter(alertConfigObjStr + ".SilenceTime", alertConfigObj.silenceTime); + setCoreParameter(alertConfigObjStr + ".Threshold", alertConfigObj.threshold); + setCoreParameter(alertConfigObjStr + ".EffectiveInterval", alertConfigObj.effectiveInterval); + setCoreParameter(alertConfigObjStr + ".ComparisonOperator", alertConfigObj.comparisonOperator); + setCoreParameter(alertConfigObjStr + ".EscalationsLevel", alertConfigObj.escalationsLevel); + setCoreParameter(alertConfigObjStr + ".Statistics", alertConfigObj.statistics); + } +} + +std::string ModifyGroupMonitoringAgentProcessRequest::getGroupId()const +{ + return groupId_; +} + +void ModifyGroupMonitoringAgentProcessRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +std::string ModifyGroupMonitoringAgentProcessRequest::getMatchExpressFilterRelation()const +{ + return matchExpressFilterRelation_; +} + +void ModifyGroupMonitoringAgentProcessRequest::setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation) +{ + matchExpressFilterRelation_ = matchExpressFilterRelation; + setCoreParameter("MatchExpressFilterRelation", matchExpressFilterRelation); +} + +std::string ModifyGroupMonitoringAgentProcessRequest::getId()const +{ + return id_; +} + +void ModifyGroupMonitoringAgentProcessRequest::setId(const std::string& id) +{ + id_ = id; + setCoreParameter("Id", id); +} + diff --git a/cms/src/model/ModifyGroupMonitoringAgentProcessResult.cc b/cms/src/model/ModifyGroupMonitoringAgentProcessResult.cc new file mode 100644 index 000000000..1e377cfcb --- /dev/null +++ b/cms/src/model/ModifyGroupMonitoringAgentProcessResult.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; + +ModifyGroupMonitoringAgentProcessResult::ModifyGroupMonitoringAgentProcessResult() : + ServiceResult() +{} + +ModifyGroupMonitoringAgentProcessResult::ModifyGroupMonitoringAgentProcessResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyGroupMonitoringAgentProcessResult::~ModifyGroupMonitoringAgentProcessResult() +{} + +void ModifyGroupMonitoringAgentProcessResult::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 ModifyGroupMonitoringAgentProcessResult::getMessage()const +{ + return message_; +} + +std::string ModifyGroupMonitoringAgentProcessResult::getCode()const +{ + return code_; +} + +bool ModifyGroupMonitoringAgentProcessResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ModifyHostAvailabilityRequest.cc b/cms/src/model/ModifyHostAvailabilityRequest.cc new file mode 100644 index 000000000..61db3a87d --- /dev/null +++ b/cms/src/model/ModifyHostAvailabilityRequest.cc @@ -0,0 +1,226 @@ +/* + * 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::ModifyHostAvailabilityRequest; + +ModifyHostAvailabilityRequest::ModifyHostAvailabilityRequest() : + RpcServiceRequest("cms", "2019-01-01", "ModifyHostAvailability") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyHostAvailabilityRequest::~ModifyHostAvailabilityRequest() +{} + +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpMethod()const +{ + return taskOptionHttpMethod_; +} + +void ModifyHostAvailabilityRequest::setTaskOptionHttpMethod(const std::string& taskOptionHttpMethod) +{ + taskOptionHttpMethod_ = taskOptionHttpMethod; + setCoreParameter("TaskOptionHttpMethod", taskOptionHttpMethod); +} + +std::vector ModifyHostAvailabilityRequest::getAlertConfigEscalationList()const +{ + return alertConfigEscalationList_; +} + +void ModifyHostAvailabilityRequest::setAlertConfigEscalationList(const std::vector& alertConfigEscalationList) +{ + alertConfigEscalationList_ = alertConfigEscalationList; + for(int dep1 = 0; dep1!= alertConfigEscalationList.size(); dep1++) { + auto alertConfigEscalationListObj = alertConfigEscalationList.at(dep1); + std::string alertConfigEscalationListObjStr = "AlertConfigEscalationList." + std::to_string(dep1); + setCoreParameter(alertConfigEscalationListObjStr + ".Times", std::to_string(alertConfigEscalationListObj.times)); + setCoreParameter(alertConfigEscalationListObjStr + ".MetricName", alertConfigEscalationListObj.metricName); + setCoreParameter(alertConfigEscalationListObjStr + ".Value", alertConfigEscalationListObj.value); + setCoreParameter(alertConfigEscalationListObjStr + "._Operator", alertConfigEscalationListObj._operator); + setCoreParameter(alertConfigEscalationListObjStr + ".Aggregate", alertConfigEscalationListObj.aggregate); + } +} + +std::string ModifyHostAvailabilityRequest::getTaskName()const +{ + return taskName_; +} + +void ModifyHostAvailabilityRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setCoreParameter("TaskName", taskName); +} + +int ModifyHostAvailabilityRequest::getAlertConfigSilenceTime()const +{ + return alertConfigSilenceTime_; +} + +void ModifyHostAvailabilityRequest::setAlertConfigSilenceTime(int alertConfigSilenceTime) +{ + alertConfigSilenceTime_ = alertConfigSilenceTime; + setCoreParameter("AlertConfigSilenceTime", std::to_string(alertConfigSilenceTime)); +} + +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpResponseCharset()const +{ + return taskOptionHttpResponseCharset_; +} + +void ModifyHostAvailabilityRequest::setTaskOptionHttpResponseCharset(const std::string& taskOptionHttpResponseCharset) +{ + taskOptionHttpResponseCharset_ = taskOptionHttpResponseCharset; + setCoreParameter("TaskOptionHttpResponseCharset", taskOptionHttpResponseCharset); +} + +bool ModifyHostAvailabilityRequest::getTaskOptionHttpNegative()const +{ + return taskOptionHttpNegative_; +} + +void ModifyHostAvailabilityRequest::setTaskOptionHttpNegative(bool taskOptionHttpNegative) +{ + taskOptionHttpNegative_ = taskOptionHttpNegative; + setCoreParameter("TaskOptionHttpNegative", taskOptionHttpNegative ? "true" : "false"); +} + +int ModifyHostAvailabilityRequest::getAlertConfigNotifyType()const +{ + return alertConfigNotifyType_; +} + +void ModifyHostAvailabilityRequest::setAlertConfigNotifyType(int alertConfigNotifyType) +{ + alertConfigNotifyType_ = alertConfigNotifyType; + setCoreParameter("AlertConfigNotifyType", std::to_string(alertConfigNotifyType)); +} + +std::string ModifyHostAvailabilityRequest::getTaskOptionTelnetOrPingHost()const +{ + return taskOptionTelnetOrPingHost_; +} + +void ModifyHostAvailabilityRequest::setTaskOptionTelnetOrPingHost(const std::string& taskOptionTelnetOrPingHost) +{ + taskOptionTelnetOrPingHost_ = taskOptionTelnetOrPingHost; + setCoreParameter("TaskOptionTelnetOrPingHost", taskOptionTelnetOrPingHost); +} + +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpResponseMatchContent()const +{ + return taskOptionHttpResponseMatchContent_; +} + +void ModifyHostAvailabilityRequest::setTaskOptionHttpResponseMatchContent(const std::string& taskOptionHttpResponseMatchContent) +{ + taskOptionHttpResponseMatchContent_ = taskOptionHttpResponseMatchContent; + setCoreParameter("TaskOptionHttpResponseMatchContent", taskOptionHttpResponseMatchContent); +} + +long ModifyHostAvailabilityRequest::getId()const +{ + return id_; +} + +void ModifyHostAvailabilityRequest::setId(long id) +{ + id_ = id; + setCoreParameter("Id", std::to_string(id)); +} + +std::vector ModifyHostAvailabilityRequest::getInstanceList()const +{ + return instanceList_; +} + +void ModifyHostAvailabilityRequest::setInstanceList(const std::vector& instanceList) +{ + instanceList_ = instanceList; + for(int dep1 = 0; dep1!= instanceList.size(); dep1++) { + setCoreParameter("InstanceList."+ std::to_string(dep1), instanceList.at(dep1)); + } +} + +long ModifyHostAvailabilityRequest::getGroupId()const +{ + return groupId_; +} + +void ModifyHostAvailabilityRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + +int ModifyHostAvailabilityRequest::getAlertConfigEndTime()const +{ + return alertConfigEndTime_; +} + +void ModifyHostAvailabilityRequest::setAlertConfigEndTime(int alertConfigEndTime) +{ + alertConfigEndTime_ = alertConfigEndTime; + setCoreParameter("AlertConfigEndTime", std::to_string(alertConfigEndTime)); +} + +std::string ModifyHostAvailabilityRequest::getTaskOptionHttpURI()const +{ + return taskOptionHttpURI_; +} + +void ModifyHostAvailabilityRequest::setTaskOptionHttpURI(const std::string& taskOptionHttpURI) +{ + taskOptionHttpURI_ = taskOptionHttpURI; + setCoreParameter("TaskOptionHttpURI", taskOptionHttpURI); +} + +std::string ModifyHostAvailabilityRequest::getTaskScope()const +{ + return taskScope_; +} + +void ModifyHostAvailabilityRequest::setTaskScope(const std::string& taskScope) +{ + taskScope_ = taskScope; + setCoreParameter("TaskScope", taskScope); +} + +int ModifyHostAvailabilityRequest::getAlertConfigStartTime()const +{ + return alertConfigStartTime_; +} + +void ModifyHostAvailabilityRequest::setAlertConfigStartTime(int alertConfigStartTime) +{ + alertConfigStartTime_ = alertConfigStartTime; + setCoreParameter("AlertConfigStartTime", std::to_string(alertConfigStartTime)); +} + +std::string ModifyHostAvailabilityRequest::getAlertConfigWebHook()const +{ + return alertConfigWebHook_; +} + +void ModifyHostAvailabilityRequest::setAlertConfigWebHook(const std::string& alertConfigWebHook) +{ + alertConfigWebHook_ = alertConfigWebHook; + setCoreParameter("AlertConfigWebHook", alertConfigWebHook); +} + diff --git a/cms/src/model/ModifyHostAvailabilityResult.cc b/cms/src/model/ModifyHostAvailabilityResult.cc new file mode 100644 index 000000000..4998f4ce8 --- /dev/null +++ b/cms/src/model/ModifyHostAvailabilityResult.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; + +ModifyHostAvailabilityResult::ModifyHostAvailabilityResult() : + ServiceResult() +{} + +ModifyHostAvailabilityResult::ModifyHostAvailabilityResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyHostAvailabilityResult::~ModifyHostAvailabilityResult() +{} + +void ModifyHostAvailabilityResult::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 ModifyHostAvailabilityResult::getMessage()const +{ + return message_; +} + +std::string ModifyHostAvailabilityResult::getCode()const +{ + return code_; +} + +bool ModifyHostAvailabilityResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ModifyMetricRuleTemplateRequest.cc b/cms/src/model/ModifyMetricRuleTemplateRequest.cc new file mode 100644 index 000000000..437c2e7c5 --- /dev/null +++ b/cms/src/model/ModifyMetricRuleTemplateRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::ModifyMetricRuleTemplateRequest; + +ModifyMetricRuleTemplateRequest::ModifyMetricRuleTemplateRequest() : + RpcServiceRequest("cms", "2019-01-01", "ModifyMetricRuleTemplate") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyMetricRuleTemplateRequest::~ModifyMetricRuleTemplateRequest() +{} + +long ModifyMetricRuleTemplateRequest::getRestVersion()const +{ + return restVersion_; +} + +void ModifyMetricRuleTemplateRequest::setRestVersion(long restVersion) +{ + restVersion_ = restVersion; + setCoreParameter("RestVersion", std::to_string(restVersion)); +} + +std::string ModifyMetricRuleTemplateRequest::getDescription()const +{ + return description_; +} + +void ModifyMetricRuleTemplateRequest::setDescription(const std::string& description) +{ + description_ = description; + setCoreParameter("Description", description); +} + +long ModifyMetricRuleTemplateRequest::getTemplateId()const +{ + return templateId_; +} + +void ModifyMetricRuleTemplateRequest::setTemplateId(long templateId) +{ + templateId_ = templateId; + setCoreParameter("TemplateId", std::to_string(templateId)); +} + +std::string ModifyMetricRuleTemplateRequest::getName()const +{ + return name_; +} + +void ModifyMetricRuleTemplateRequest::setName(const std::string& name) +{ + name_ = name; + setCoreParameter("Name", name); +} + +std::vector ModifyMetricRuleTemplateRequest::getAlertTemplates()const +{ + return alertTemplates_; +} + +void ModifyMetricRuleTemplateRequest::setAlertTemplates(const std::vector& alertTemplates) +{ + alertTemplates_ = alertTemplates; + for(int dep1 = 0; dep1!= alertTemplates.size(); dep1++) { + auto alertTemplatesObj = alertTemplates.at(dep1); + std::string alertTemplatesObjStr = "AlertTemplates." + std::to_string(dep1); + setCoreParameter(alertTemplatesObjStr + ".Period", std::to_string(alertTemplatesObj.period)); + setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnThreshold", alertTemplatesObj.escalationsWarnThreshold); + setCoreParameter(alertTemplatesObjStr + ".Webhook", alertTemplatesObj.webhook); + setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnComparisonOperator", alertTemplatesObj.escalationsWarnComparisonOperator); + setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalStatistics", alertTemplatesObj.escalationsCriticalStatistics); + setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoTimes", std::to_string(alertTemplatesObj.escalationsInfoTimes)); + setCoreParameter(alertTemplatesObjStr + ".RuleName", alertTemplatesObj.ruleName); + setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoStatistics", alertTemplatesObj.escalationsInfoStatistics); + setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalTimes", std::to_string(alertTemplatesObj.escalationsCriticalTimes)); + setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoComparisonOperator", alertTemplatesObj.escalationsInfoComparisonOperator); + setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnStatistics", alertTemplatesObj.escalationsWarnStatistics); + setCoreParameter(alertTemplatesObjStr + ".EscalationsInfoThreshold", alertTemplatesObj.escalationsInfoThreshold); + setCoreParameter(alertTemplatesObjStr + "._Namespace", alertTemplatesObj._namespace); + setCoreParameter(alertTemplatesObjStr + ".Selector", alertTemplatesObj.selector); + setCoreParameter(alertTemplatesObjStr + ".MetricName", alertTemplatesObj.metricName); + setCoreParameter(alertTemplatesObjStr + ".Category", alertTemplatesObj.category); + setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalComparisonOperator", alertTemplatesObj.escalationsCriticalComparisonOperator); + setCoreParameter(alertTemplatesObjStr + ".EscalationsWarnTimes", std::to_string(alertTemplatesObj.escalationsWarnTimes)); + setCoreParameter(alertTemplatesObjStr + ".EscalationsCriticalThreshold", alertTemplatesObj.escalationsCriticalThreshold); + } +} + diff --git a/cms/src/model/ModifyMetricRuleTemplateResult.cc b/cms/src/model/ModifyMetricRuleTemplateResult.cc new file mode 100644 index 000000000..a6e872640 --- /dev/null +++ b/cms/src/model/ModifyMetricRuleTemplateResult.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; + +ModifyMetricRuleTemplateResult::ModifyMetricRuleTemplateResult() : + ServiceResult() +{} + +ModifyMetricRuleTemplateResult::ModifyMetricRuleTemplateResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyMetricRuleTemplateResult::~ModifyMetricRuleTemplateResult() +{} + +void ModifyMetricRuleTemplateResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyMetricRuleTemplateResult::getMessage()const +{ + return message_; +} + +int ModifyMetricRuleTemplateResult::getCode()const +{ + return code_; +} + +bool ModifyMetricRuleTemplateResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ModifyMonitorGroupInstancesRequest.cc b/cms/src/model/ModifyMonitorGroupInstancesRequest.cc new file mode 100644 index 000000000..7d5614a53 --- /dev/null +++ b/cms/src/model/ModifyMonitorGroupInstancesRequest.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::ModifyMonitorGroupInstancesRequest; + +ModifyMonitorGroupInstancesRequest::ModifyMonitorGroupInstancesRequest() : + RpcServiceRequest("cms", "2019-01-01", "ModifyMonitorGroupInstances") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyMonitorGroupInstancesRequest::~ModifyMonitorGroupInstancesRequest() +{} + +std::vector ModifyMonitorGroupInstancesRequest::getInstances()const +{ + return instances_; +} + +void ModifyMonitorGroupInstancesRequest::setInstances(const std::vector& instances) +{ + instances_ = instances; + for(int dep1 = 0; dep1!= instances.size(); dep1++) { + auto instancesObj = instances.at(dep1); + std::string instancesObjStr = "Instances." + std::to_string(dep1); + setCoreParameter(instancesObjStr + ".InstanceId", instancesObj.instanceId); + setCoreParameter(instancesObjStr + ".InstanceName", instancesObj.instanceName); + setCoreParameter(instancesObjStr + ".RegionId", instancesObj.regionId); + setCoreParameter(instancesObjStr + ".Category", instancesObj.category); + } +} + +long ModifyMonitorGroupInstancesRequest::getGroupId()const +{ + return groupId_; +} + +void ModifyMonitorGroupInstancesRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + diff --git a/cms/src/model/ModifyMonitorGroupInstancesResult.cc b/cms/src/model/ModifyMonitorGroupInstancesResult.cc new file mode 100644 index 000000000..a87ae86f8 --- /dev/null +++ b/cms/src/model/ModifyMonitorGroupInstancesResult.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; + +ModifyMonitorGroupInstancesResult::ModifyMonitorGroupInstancesResult() : + ServiceResult() +{} + +ModifyMonitorGroupInstancesResult::ModifyMonitorGroupInstancesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyMonitorGroupInstancesResult::~ModifyMonitorGroupInstancesResult() +{} + +void ModifyMonitorGroupInstancesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyMonitorGroupInstancesResult::getMessage()const +{ + return message_; +} + +int ModifyMonitorGroupInstancesResult::getCode()const +{ + return code_; +} + +bool ModifyMonitorGroupInstancesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/UpdateMyGroupsRequest.cc b/cms/src/model/ModifyMonitorGroupRequest.cc similarity index 50% rename from cms/src/model/UpdateMyGroupsRequest.cc rename to cms/src/model/ModifyMonitorGroupRequest.cc index 02c70faa9..e7e6e9269 100644 --- a/cms/src/model/UpdateMyGroupsRequest.cc +++ b/cms/src/model/ModifyMonitorGroupRequest.cc @@ -14,78 +14,69 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::UpdateMyGroupsRequest; +using AlibabaCloud::Cms::Model::ModifyMonitorGroupRequest; -UpdateMyGroupsRequest::UpdateMyGroupsRequest() : - RpcServiceRequest("cms", "2018-03-08", "UpdateMyGroups") +ModifyMonitorGroupRequest::ModifyMonitorGroupRequest() : + RpcServiceRequest("cms", "2019-01-01", "ModifyMonitorGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifyMonitorGroupRequest::~ModifyMonitorGroupRequest() {} -UpdateMyGroupsRequest::~UpdateMyGroupsRequest() -{} - -std::string UpdateMyGroupsRequest::getContactGroups()const +std::string ModifyMonitorGroupRequest::getContactGroups()const { return contactGroups_; } -void UpdateMyGroupsRequest::setContactGroups(const std::string& contactGroups) +void ModifyMonitorGroupRequest::setContactGroups(const std::string& contactGroups) { contactGroups_ = contactGroups; setCoreParameter("ContactGroups", contactGroups); } -std::string UpdateMyGroupsRequest::getGroupId()const +std::string ModifyMonitorGroupRequest::getGroupId()const { return groupId_; } -void UpdateMyGroupsRequest::setGroupId(const std::string& groupId) +void ModifyMonitorGroupRequest::setGroupId(const std::string& groupId) { groupId_ = groupId; setCoreParameter("GroupId", groupId); } -std::string UpdateMyGroupsRequest::getType()const -{ - return type_; -} - -void UpdateMyGroupsRequest::setType(const std::string& type) -{ - type_ = type; - setCoreParameter("Type", type); -} - -std::string UpdateMyGroupsRequest::getGroupName()const +std::string ModifyMonitorGroupRequest::getGroupName()const { return groupName_; } -void UpdateMyGroupsRequest::setGroupName(const std::string& groupName) +void ModifyMonitorGroupRequest::setGroupName(const std::string& groupName) { groupName_ = groupName; setCoreParameter("GroupName", groupName); } -std::string UpdateMyGroupsRequest::getBindUrls()const +std::string ModifyMonitorGroupRequest::getBindUrls()const { return bindUrls_; } -void UpdateMyGroupsRequest::setBindUrls(const std::string& bindUrls) +void ModifyMonitorGroupRequest::setBindUrls(const std::string& bindUrls) { bindUrls_ = bindUrls; setCoreParameter("BindUrls", bindUrls); } -long UpdateMyGroupsRequest::getServiceId()const +long ModifyMonitorGroupRequest::getServiceId()const { return serviceId_; } -void UpdateMyGroupsRequest::setServiceId(long serviceId) +void ModifyMonitorGroupRequest::setServiceId(long serviceId) { serviceId_ = serviceId; setCoreParameter("ServiceId", std::to_string(serviceId)); diff --git a/cms/src/model/ModifyMonitorGroupResult.cc b/cms/src/model/ModifyMonitorGroupResult.cc new file mode 100644 index 000000000..00e9ab896 --- /dev/null +++ b/cms/src/model/ModifyMonitorGroupResult.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; + +ModifyMonitorGroupResult::ModifyMonitorGroupResult() : + ServiceResult() +{} + +ModifyMonitorGroupResult::ModifyMonitorGroupResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +ModifyMonitorGroupResult::~ModifyMonitorGroupResult() +{} + +void ModifyMonitorGroupResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string ModifyMonitorGroupResult::getMessage()const +{ + return message_; +} + +int ModifyMonitorGroupResult::getCode()const +{ + return code_; +} + +bool ModifyMonitorGroupResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/ModifySiteMonitorRequest.cc b/cms/src/model/ModifySiteMonitorRequest.cc new file mode 100644 index 000000000..77aff4f89 --- /dev/null +++ b/cms/src/model/ModifySiteMonitorRequest.cc @@ -0,0 +1,106 @@ +/* + * 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::ModifySiteMonitorRequest; + +ModifySiteMonitorRequest::ModifySiteMonitorRequest() : + RpcServiceRequest("cms", "2019-01-01", "ModifySiteMonitor") +{ + setMethod(HttpRequest::Method::Post); +} + +ModifySiteMonitorRequest::~ModifySiteMonitorRequest() +{} + +std::string ModifySiteMonitorRequest::getAddress()const +{ + return address_; +} + +void ModifySiteMonitorRequest::setAddress(const std::string& address) +{ + address_ = address; + setCoreParameter("Address", address); +} + +std::string ModifySiteMonitorRequest::getTaskName()const +{ + return taskName_; +} + +void ModifySiteMonitorRequest::setTaskName(const std::string& taskName) +{ + taskName_ = taskName; + setCoreParameter("TaskName", taskName); +} + +std::string ModifySiteMonitorRequest::getIspCities()const +{ + return ispCities_; +} + +void ModifySiteMonitorRequest::setIspCities(const std::string& ispCities) +{ + ispCities_ = ispCities; + setCoreParameter("IspCities", ispCities); +} + +std::string ModifySiteMonitorRequest::getOptionsJson()const +{ + return optionsJson_; +} + +void ModifySiteMonitorRequest::setOptionsJson(const std::string& optionsJson) +{ + optionsJson_ = optionsJson; + setCoreParameter("OptionsJson", optionsJson); +} + +std::string ModifySiteMonitorRequest::getAlertIds()const +{ + return alertIds_; +} + +void ModifySiteMonitorRequest::setAlertIds(const std::string& alertIds) +{ + alertIds_ = alertIds; + setCoreParameter("AlertIds", alertIds); +} + +std::string ModifySiteMonitorRequest::getInterval()const +{ + return interval_; +} + +void ModifySiteMonitorRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string ModifySiteMonitorRequest::getTaskId()const +{ + return taskId_; +} + +void ModifySiteMonitorRequest::setTaskId(const std::string& taskId) +{ + taskId_ = taskId; + setCoreParameter("TaskId", taskId); +} + diff --git a/cms/src/model/ModifyTaskResult.cc b/cms/src/model/ModifySiteMonitorResult.cc similarity index 71% rename from cms/src/model/ModifyTaskResult.cc rename to cms/src/model/ModifySiteMonitorResult.cc index 703971172..e3a11f5d7 100644 --- a/cms/src/model/ModifyTaskResult.cc +++ b/cms/src/model/ModifySiteMonitorResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -ModifyTaskResult::ModifyTaskResult() : +ModifySiteMonitorResult::ModifySiteMonitorResult() : ServiceResult() {} -ModifyTaskResult::ModifyTaskResult(const std::string &payload) : +ModifySiteMonitorResult::ModifySiteMonitorResult(const std::string &payload) : ServiceResult() { parse(payload); } -ModifyTaskResult::~ModifyTaskResult() +ModifySiteMonitorResult::~ModifySiteMonitorResult() {} -void ModifyTaskResult::parse(const std::string &payload) +void ModifySiteMonitorResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -50,22 +50,22 @@ void ModifyTaskResult::parse(const std::string &payload) } -std::string ModifyTaskResult::getMessage()const +std::string ModifySiteMonitorResult::getMessage()const { return message_; } -std::string ModifyTaskResult::getData()const +std::string ModifySiteMonitorResult::getData()const { return data_; } -std::string ModifyTaskResult::getCode()const +std::string ModifySiteMonitorResult::getCode()const { return code_; } -std::string ModifyTaskResult::getSuccess()const +std::string ModifySiteMonitorResult::getSuccess()const { return success_; } diff --git a/cms/src/model/ModifyTaskRequest.cc b/cms/src/model/ModifyTaskRequest.cc deleted file mode 100644 index d1200d57a..000000000 --- a/cms/src/model/ModifyTaskRequest.cc +++ /dev/null @@ -1,126 +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 - -using AlibabaCloud::Cms::Model::ModifyTaskRequest; - -ModifyTaskRequest::ModifyTaskRequest() : - RpcServiceRequest("cms", "2018-03-08", "ModifyTask") -{} - -ModifyTaskRequest::~ModifyTaskRequest() -{} - -std::string ModifyTaskRequest::getTaskName()const -{ - return taskName_; -} - -void ModifyTaskRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setCoreParameter("TaskName", taskName); -} - -std::string ModifyTaskRequest::getAlertIds()const -{ - return alertIds_; -} - -void ModifyTaskRequest::setAlertIds(const std::string& alertIds) -{ - alertIds_ = alertIds; - setCoreParameter("AlertIds", alertIds); -} - -std::string ModifyTaskRequest::getOptions()const -{ - return options_; -} - -void ModifyTaskRequest::setOptions(const std::string& options) -{ - options_ = options; - setCoreParameter("Options", options); -} - -std::string ModifyTaskRequest::getTaskId()const -{ - return taskId_; -} - -void ModifyTaskRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setCoreParameter("TaskId", taskId); -} - -std::string ModifyTaskRequest::getAddress()const -{ - return address_; -} - -void ModifyTaskRequest::setAddress(const std::string& address) -{ - address_ = address; - setCoreParameter("Address", address); -} - -std::string ModifyTaskRequest::getCaller()const -{ - return caller_; -} - -void ModifyTaskRequest::setCaller(const std::string& caller) -{ - caller_ = caller; - setCoreParameter("Caller", caller); -} - -std::string ModifyTaskRequest::getIspCity()const -{ - return ispCity_; -} - -void ModifyTaskRequest::setIspCity(const std::string& ispCity) -{ - ispCity_ = ispCity; - setCoreParameter("IspCity", ispCity); -} - -std::string ModifyTaskRequest::getInterval()const -{ - return interval_; -} - -void ModifyTaskRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setCoreParameter("Interval", interval); -} - -std::string ModifyTaskRequest::getAlertRule()const -{ - return alertRule_; -} - -void ModifyTaskRequest::setAlertRule(const std::string& alertRule) -{ - alertRule_ = alertRule; - setCoreParameter("AlertRule", alertRule); -} - diff --git a/cms/src/model/NodeInstallRequest.cc b/cms/src/model/NodeInstallRequest.cc deleted file mode 100644 index 898585bd7..000000000 --- a/cms/src/model/NodeInstallRequest.cc +++ /dev/null @@ -1,60 +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 - -using AlibabaCloud::Cms::Model::NodeInstallRequest; - -NodeInstallRequest::NodeInstallRequest() : - RpcServiceRequest("cms", "2018-03-08", "NodeInstall") -{} - -NodeInstallRequest::~NodeInstallRequest() -{} - -std::string NodeInstallRequest::getInstanceId()const -{ - return instanceId_; -} - -void NodeInstallRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setCoreParameter("InstanceId", instanceId); -} - -bool NodeInstallRequest::getForce()const -{ - return force_; -} - -void NodeInstallRequest::setForce(bool force) -{ - force_ = force; - setCoreParameter("Force", force ? "true" : "false"); -} - -std::string NodeInstallRequest::getUserId()const -{ - return userId_; -} - -void NodeInstallRequest::setUserId(const std::string& userId) -{ - userId_ = userId; - setCoreParameter("UserId", userId); -} - diff --git a/cms/src/model/NodeInstallResult.cc b/cms/src/model/NodeInstallResult.cc deleted file mode 100644 index a35973a51..000000000 --- a/cms/src/model/NodeInstallResult.cc +++ /dev/null @@ -1,65 +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; - -NodeInstallResult::NodeInstallResult() : - ServiceResult() -{} - -NodeInstallResult::NodeInstallResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -NodeInstallResult::~NodeInstallResult() -{} - -void NodeInstallResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -int NodeInstallResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeInstallResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeInstallResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/NodeListRequest.cc b/cms/src/model/NodeListRequest.cc deleted file mode 100644 index 6cdcd8494..000000000 --- a/cms/src/model/NodeListRequest.cc +++ /dev/null @@ -1,126 +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 - -using AlibabaCloud::Cms::Model::NodeListRequest; - -NodeListRequest::NodeListRequest() : - RpcServiceRequest("cms", "2018-03-08", "NodeList") -{} - -NodeListRequest::~NodeListRequest() -{} - -long NodeListRequest::getUserId()const -{ - return userId_; -} - -void NodeListRequest::setUserId(long userId) -{ - userId_ = userId; - setCoreParameter("UserId", std::to_string(userId)); -} - -std::string NodeListRequest::getSerialNumbers()const -{ - return serialNumbers_; -} - -void NodeListRequest::setSerialNumbers(const std::string& serialNumbers) -{ - serialNumbers_ = serialNumbers; - setCoreParameter("SerialNumbers", serialNumbers); -} - -int NodeListRequest::getPageNumber()const -{ - return pageNumber_; -} - -void NodeListRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setCoreParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string NodeListRequest::getHostName()const -{ - return hostName_; -} - -void NodeListRequest::setHostName(const std::string& hostName) -{ - hostName_ = hostName; - setCoreParameter("HostName", hostName); -} - -std::string NodeListRequest::getInstanceIds()const -{ - return instanceIds_; -} - -void NodeListRequest::setInstanceIds(const std::string& instanceIds) -{ - instanceIds_ = instanceIds; - setCoreParameter("InstanceIds", instanceIds); -} - -std::string NodeListRequest::getInstanceRegionId()const -{ - return instanceRegionId_; -} - -void NodeListRequest::setInstanceRegionId(const std::string& instanceRegionId) -{ - instanceRegionId_ = instanceRegionId; - setCoreParameter("InstanceRegionId", instanceRegionId); -} - -int NodeListRequest::getPageSize()const -{ - return pageSize_; -} - -void NodeListRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string NodeListRequest::getKeyWord()const -{ - return keyWord_; -} - -void NodeListRequest::setKeyWord(const std::string& keyWord) -{ - keyWord_ = keyWord; - setCoreParameter("KeyWord", keyWord); -} - -std::string NodeListRequest::getStatus()const -{ - return status_; -} - -void NodeListRequest::setStatus(const std::string& status) -{ - status_ = status; - setCoreParameter("Status", status); -} - diff --git a/cms/src/model/NodeListResult.cc b/cms/src/model/NodeListResult.cc deleted file mode 100644 index 1c82ffd38..000000000 --- a/cms/src/model/NodeListResult.cc +++ /dev/null @@ -1,132 +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; - -NodeListResult::NodeListResult() : - ServiceResult() -{} - -NodeListResult::NodeListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -NodeListResult::~NodeListResult() -{} - -void NodeListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allNodesNode = value["Nodes"]["Node"]; - for (auto valueNodesNode : allNodesNode) - { - Node nodesObject; - if(!valueNodesNode["InstanceId"].isNull()) - nodesObject.instanceId = valueNodesNode["InstanceId"].asString(); - if(!valueNodesNode["SerialNumber"].isNull()) - nodesObject.serialNumber = valueNodesNode["SerialNumber"].asString(); - if(!valueNodesNode["HostName"].isNull()) - nodesObject.hostName = valueNodesNode["HostName"].asString(); - if(!valueNodesNode["AliUid"].isNull()) - nodesObject.aliUid = std::stol(valueNodesNode["AliUid"].asString()); - if(!valueNodesNode["OperatingSystem"].isNull()) - nodesObject.operatingSystem = valueNodesNode["OperatingSystem"].asString(); - if(!valueNodesNode["IpGroup"].isNull()) - nodesObject.ipGroup = valueNodesNode["IpGroup"].asString(); - if(!valueNodesNode["Region"].isNull()) - nodesObject.region = valueNodesNode["Region"].asString(); - if(!valueNodesNode["TianjimonVersion"].isNull()) - nodesObject.tianjimonVersion = valueNodesNode["TianjimonVersion"].asString(); - if(!valueNodesNode["EipAddress"].isNull()) - nodesObject.eipAddress = valueNodesNode["EipAddress"].asString(); - if(!valueNodesNode["EipId"].isNull()) - nodesObject.eipId = valueNodesNode["EipId"].asString(); - if(!valueNodesNode["AliyunHost"].isNull()) - nodesObject.aliyunHost = valueNodesNode["AliyunHost"].asString() == "true"; - if(!valueNodesNode["NatIp"].isNull()) - nodesObject.natIp = valueNodesNode["NatIp"].asString(); - if(!valueNodesNode["NetworkType"].isNull()) - nodesObject.networkType = valueNodesNode["NetworkType"].asString(); - if(!valueNodesNode["InstanceTypeFamily"].isNull()) - nodesObject.instanceTypeFamily = valueNodesNode["InstanceTypeFamily"].asString(); - nodes_.push_back(nodesObject); - } - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageTotal"].isNull()) - pageTotal_ = std::stoi(value["PageTotal"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); - -} - -int NodeListResult::getPageSize()const -{ - return pageSize_; -} - -int NodeListResult::getPageNumber()const -{ - return pageNumber_; -} - -int NodeListResult::getPageTotal()const -{ - return pageTotal_; -} - -int NodeListResult::getTotal()const -{ - return total_; -} - -int NodeListResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeListResult::getErrorMessage()const -{ - return errorMessage_; -} - -std::vector NodeListResult::getNodes()const -{ - return nodes_; -} - -bool NodeListResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/NodeProcessCreateRequest.cc b/cms/src/model/NodeProcessCreateRequest.cc deleted file mode 100644 index 6e8a0105a..000000000 --- a/cms/src/model/NodeProcessCreateRequest.cc +++ /dev/null @@ -1,82 +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 - -using AlibabaCloud::Cms::Model::NodeProcessCreateRequest; - -NodeProcessCreateRequest::NodeProcessCreateRequest() : - RpcServiceRequest("cms", "2018-03-08", "NodeProcessCreate") -{} - -NodeProcessCreateRequest::~NodeProcessCreateRequest() -{} - -std::string NodeProcessCreateRequest::getProcessName()const -{ - return processName_; -} - -void NodeProcessCreateRequest::setProcessName(const std::string& processName) -{ - processName_ = processName; - setCoreParameter("ProcessName", processName); -} - -std::string NodeProcessCreateRequest::getCommand()const -{ - return command_; -} - -void NodeProcessCreateRequest::setCommand(const std::string& command) -{ - command_ = command; - setCoreParameter("Command", command); -} - -std::string NodeProcessCreateRequest::getInstanceId()const -{ - return instanceId_; -} - -void NodeProcessCreateRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setCoreParameter("InstanceId", instanceId); -} - -std::string NodeProcessCreateRequest::getName()const -{ - return name_; -} - -void NodeProcessCreateRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -std::string NodeProcessCreateRequest::getProcessUser()const -{ - return processUser_; -} - -void NodeProcessCreateRequest::setProcessUser(const std::string& processUser) -{ - processUser_ = processUser; - setCoreParameter("ProcessUser", processUser); -} - diff --git a/cms/src/model/NodeProcessCreateResult.cc b/cms/src/model/NodeProcessCreateResult.cc deleted file mode 100644 index 5a0b77a14..000000000 --- a/cms/src/model/NodeProcessCreateResult.cc +++ /dev/null @@ -1,72 +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; - -NodeProcessCreateResult::NodeProcessCreateResult() : - ServiceResult() -{} - -NodeProcessCreateResult::NodeProcessCreateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -NodeProcessCreateResult::~NodeProcessCreateResult() -{} - -void NodeProcessCreateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["Id"].isNull()) - id_ = std::stol(value["Id"].asString()); - -} - -int NodeProcessCreateResult::getErrorCode()const -{ - return errorCode_; -} - -long NodeProcessCreateResult::getId()const -{ - return id_; -} - -std::string NodeProcessCreateResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeProcessCreateResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/NodeProcessDeleteRequest.cc b/cms/src/model/NodeProcessDeleteRequest.cc deleted file mode 100644 index 765d44384..000000000 --- a/cms/src/model/NodeProcessDeleteRequest.cc +++ /dev/null @@ -1,60 +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 - -using AlibabaCloud::Cms::Model::NodeProcessDeleteRequest; - -NodeProcessDeleteRequest::NodeProcessDeleteRequest() : - RpcServiceRequest("cms", "2018-03-08", "NodeProcessDelete") -{} - -NodeProcessDeleteRequest::~NodeProcessDeleteRequest() -{} - -std::string NodeProcessDeleteRequest::getInstanceId()const -{ - return instanceId_; -} - -void NodeProcessDeleteRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setCoreParameter("InstanceId", instanceId); -} - -std::string NodeProcessDeleteRequest::getName()const -{ - return name_; -} - -void NodeProcessDeleteRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -std::string NodeProcessDeleteRequest::getId()const -{ - return id_; -} - -void NodeProcessDeleteRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - diff --git a/cms/src/model/NodeProcessDeleteResult.cc b/cms/src/model/NodeProcessDeleteResult.cc deleted file mode 100644 index aca328a05..000000000 --- a/cms/src/model/NodeProcessDeleteResult.cc +++ /dev/null @@ -1,65 +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; - -NodeProcessDeleteResult::NodeProcessDeleteResult() : - ServiceResult() -{} - -NodeProcessDeleteResult::NodeProcessDeleteResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -NodeProcessDeleteResult::~NodeProcessDeleteResult() -{} - -void NodeProcessDeleteResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -int NodeProcessDeleteResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeProcessDeleteResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeProcessDeleteResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/NodeStatusRequest.cc b/cms/src/model/NodeStatusRequest.cc deleted file mode 100644 index 6310fd390..000000000 --- a/cms/src/model/NodeStatusRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::NodeStatusRequest; - -NodeStatusRequest::NodeStatusRequest() : - RpcServiceRequest("cms", "2018-03-08", "NodeStatus") -{} - -NodeStatusRequest::~NodeStatusRequest() -{} - -std::string NodeStatusRequest::getInstanceId()const -{ - return instanceId_; -} - -void NodeStatusRequest::setInstanceId(const std::string& instanceId) -{ - instanceId_ = instanceId; - setCoreParameter("InstanceId", instanceId); -} - diff --git a/cms/src/model/NodeStatusResult.cc b/cms/src/model/NodeStatusResult.cc deleted file mode 100644 index e875571d1..000000000 --- a/cms/src/model/NodeStatusResult.cc +++ /dev/null @@ -1,86 +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; - -NodeStatusResult::NodeStatusResult() : - ServiceResult() -{} - -NodeStatusResult::NodeStatusResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -NodeStatusResult::~NodeStatusResult() -{} - -void NodeStatusResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["InstanceId"].isNull()) - instanceId_ = value["InstanceId"].asString(); - if(!value["AutoInstall"].isNull()) - autoInstall_ = value["AutoInstall"].asString() == "true"; - if(!value["Status"].isNull()) - status_ = value["Status"].asString(); - -} - -std::string NodeStatusResult::getStatus()const -{ - return status_; -} - -bool NodeStatusResult::getAutoInstall()const -{ - return autoInstall_; -} - -std::string NodeStatusResult::getInstanceId()const -{ - return instanceId_; -} - -int NodeStatusResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeStatusResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeStatusResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/NodeUninstallResult.cc b/cms/src/model/NodeUninstallResult.cc deleted file mode 100644 index 088891cba..000000000 --- a/cms/src/model/NodeUninstallResult.cc +++ /dev/null @@ -1,65 +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; - -NodeUninstallResult::NodeUninstallResult() : - ServiceResult() -{} - -NodeUninstallResult::NodeUninstallResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -NodeUninstallResult::~NodeUninstallResult() -{} - -void NodeUninstallResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -int NodeUninstallResult::getErrorCode()const -{ - return errorCode_; -} - -std::string NodeUninstallResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool NodeUninstallResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/ProfileSetRequest.cc b/cms/src/model/ProfileSetRequest.cc deleted file mode 100644 index 62d165bba..000000000 --- a/cms/src/model/ProfileSetRequest.cc +++ /dev/null @@ -1,71 +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 - -using AlibabaCloud::Cms::Model::ProfileSetRequest; - -ProfileSetRequest::ProfileSetRequest() : - RpcServiceRequest("cms", "2018-03-08", "ProfileSet") -{} - -ProfileSetRequest::~ProfileSetRequest() -{} - -bool ProfileSetRequest::getEnableInstallAgentNewECS()const -{ - return enableInstallAgentNewECS_; -} - -void ProfileSetRequest::setEnableInstallAgentNewECS(bool enableInstallAgentNewECS) -{ - enableInstallAgentNewECS_ = enableInstallAgentNewECS; - setCoreParameter("EnableInstallAgentNewECS", enableInstallAgentNewECS ? "true" : "false"); -} - -std::string ProfileSetRequest::getEnableActiveAlert()const -{ - return enableActiveAlert_; -} - -void ProfileSetRequest::setEnableActiveAlert(const std::string& enableActiveAlert) -{ - enableActiveAlert_ = enableActiveAlert; - setCoreParameter("EnableActiveAlert", enableActiveAlert); -} - -bool ProfileSetRequest::getAutoInstall()const -{ - return autoInstall_; -} - -void ProfileSetRequest::setAutoInstall(bool autoInstall) -{ - autoInstall_ = autoInstall; - setCoreParameter("AutoInstall", autoInstall ? "true" : "false"); -} - -long ProfileSetRequest::getUserId()const -{ - return userId_; -} - -void ProfileSetRequest::setUserId(long userId) -{ - userId_ = userId; - setCoreParameter("UserId", std::to_string(userId)); -} - diff --git a/cms/src/model/ProfileSetResult.cc b/cms/src/model/ProfileSetResult.cc deleted file mode 100644 index f299fbf52..000000000 --- a/cms/src/model/ProfileSetResult.cc +++ /dev/null @@ -1,65 +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; - -ProfileSetResult::ProfileSetResult() : - ServiceResult() -{} - -ProfileSetResult::ProfileSetResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -ProfileSetResult::~ProfileSetResult() -{} - -void ProfileSetResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -int ProfileSetResult::getErrorCode()const -{ - return errorCode_; -} - -std::string ProfileSetResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool ProfileSetResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/PutContactGroupRequest.cc b/cms/src/model/PutContactGroupRequest.cc new file mode 100644 index 000000000..3748d37c5 --- /dev/null +++ b/cms/src/model/PutContactGroupRequest.cc @@ -0,0 +1,64 @@ +/* + * 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::PutContactGroupRequest; + +PutContactGroupRequest::PutContactGroupRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutContactGroup") +{ + setMethod(HttpRequest::Method::Post); +} + +PutContactGroupRequest::~PutContactGroupRequest() +{} + +std::string PutContactGroupRequest::getContactGroupName()const +{ + return contactGroupName_; +} + +void PutContactGroupRequest::setContactGroupName(const std::string& contactGroupName) +{ + contactGroupName_ = contactGroupName; + setCoreParameter("ContactGroupName", contactGroupName); +} + +std::string PutContactGroupRequest::getDescribe()const +{ + return describe_; +} + +void PutContactGroupRequest::setDescribe(const std::string& describe) +{ + describe_ = describe; + setCoreParameter("Describe", describe); +} + +std::vector PutContactGroupRequest::getContactNames()const +{ + return contactNames_; +} + +void PutContactGroupRequest::setContactNames(const std::vector& contactNames) +{ + contactNames_ = contactNames; + for(int dep1 = 0; dep1!= contactNames.size(); dep1++) { + setCoreParameter("ContactNames."+ std::to_string(dep1), contactNames.at(dep1)); + } +} + diff --git a/cms/src/model/EnableEventRuleResult.cc b/cms/src/model/PutContactGroupResult.cc similarity index 73% rename from cms/src/model/EnableEventRuleResult.cc rename to cms/src/model/PutContactGroupResult.cc index 159c9cd4a..47a3865cb 100644 --- a/cms/src/model/EnableEventRuleResult.cc +++ b/cms/src/model/PutContactGroupResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -EnableEventRuleResult::EnableEventRuleResult() : +PutContactGroupResult::PutContactGroupResult() : ServiceResult() {} -EnableEventRuleResult::EnableEventRuleResult(const std::string &payload) : +PutContactGroupResult::PutContactGroupResult(const std::string &payload) : ServiceResult() { parse(payload); } -EnableEventRuleResult::~EnableEventRuleResult() +PutContactGroupResult::~PutContactGroupResult() {} -void EnableEventRuleResult::parse(const std::string &payload) +void PutContactGroupResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void EnableEventRuleResult::parse(const std::string &payload) } -std::string EnableEventRuleResult::getMessage()const +std::string PutContactGroupResult::getMessage()const { return message_; } -std::string EnableEventRuleResult::getCode()const +std::string PutContactGroupResult::getCode()const { return code_; } -bool EnableEventRuleResult::getSuccess()const +bool PutContactGroupResult::getSuccess()const { return success_; } diff --git a/cms/src/model/PutContactRequest.cc b/cms/src/model/PutContactRequest.cc new file mode 100644 index 000000000..79e7a983c --- /dev/null +++ b/cms/src/model/PutContactRequest.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::PutContactRequest; + +PutContactRequest::PutContactRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutContact") +{ + setMethod(HttpRequest::Method::Post); +} + +PutContactRequest::~PutContactRequest() +{} + +std::string PutContactRequest::getChannelsDingWebHook()const +{ + return channelsDingWebHook_; +} + +void PutContactRequest::setChannelsDingWebHook(const std::string& channelsDingWebHook) +{ + channelsDingWebHook_ = channelsDingWebHook; + setCoreParameter("ChannelsDingWebHook", channelsDingWebHook); +} + +std::string PutContactRequest::getContactName()const +{ + return contactName_; +} + +void PutContactRequest::setContactName(const std::string& contactName) +{ + contactName_ = contactName; + setCoreParameter("ContactName", contactName); +} + +std::string PutContactRequest::getChannelsMail()const +{ + return channelsMail_; +} + +void PutContactRequest::setChannelsMail(const std::string& channelsMail) +{ + channelsMail_ = channelsMail; + setCoreParameter("ChannelsMail", channelsMail); +} + +std::string PutContactRequest::getChannelsAliIM()const +{ + return channelsAliIM_; +} + +void PutContactRequest::setChannelsAliIM(const std::string& channelsAliIM) +{ + channelsAliIM_ = channelsAliIM; + setCoreParameter("ChannelsAliIM", channelsAliIM); +} + +std::string PutContactRequest::getDescribe()const +{ + return describe_; +} + +void PutContactRequest::setDescribe(const std::string& describe) +{ + describe_ = describe; + setCoreParameter("Describe", describe); +} + +std::string PutContactRequest::getChannelsSMS()const +{ + return channelsSMS_; +} + +void PutContactRequest::setChannelsSMS(const std::string& channelsSMS) +{ + channelsSMS_ = channelsSMS; + setCoreParameter("ChannelsSMS", channelsSMS); +} + diff --git a/cms/src/model/UpdateAlarmResult.cc b/cms/src/model/PutContactResult.cc similarity index 75% rename from cms/src/model/UpdateAlarmResult.cc rename to cms/src/model/PutContactResult.cc index eaf0ea90d..e79517e42 100644 --- a/cms/src/model/UpdateAlarmResult.cc +++ b/cms/src/model/PutContactResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -UpdateAlarmResult::UpdateAlarmResult() : +PutContactResult::PutContactResult() : ServiceResult() {} -UpdateAlarmResult::UpdateAlarmResult(const std::string &payload) : +PutContactResult::PutContactResult(const std::string &payload) : ServiceResult() { parse(payload); } -UpdateAlarmResult::~UpdateAlarmResult() +PutContactResult::~PutContactResult() {} -void UpdateAlarmResult::parse(const std::string &payload) +void PutContactResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -48,17 +48,17 @@ void UpdateAlarmResult::parse(const std::string &payload) } -std::string UpdateAlarmResult::getMessage()const +std::string PutContactResult::getMessage()const { return message_; } -std::string UpdateAlarmResult::getCode()const +std::string PutContactResult::getCode()const { return code_; } -bool UpdateAlarmResult::getSuccess()const +bool PutContactResult::getSuccess()const { return success_; } diff --git a/cms/src/model/PutCustomEventRequest.cc b/cms/src/model/PutCustomEventRequest.cc new file mode 100644 index 000000000..27a9ac72c --- /dev/null +++ b/cms/src/model/PutCustomEventRequest.cc @@ -0,0 +1,47 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::PutCustomEventRequest; + +PutCustomEventRequest::PutCustomEventRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutCustomEvent") +{ + setMethod(HttpRequest::Method::Post); +} + +PutCustomEventRequest::~PutCustomEventRequest() +{} + +std::vector PutCustomEventRequest::getEventInfo()const +{ + return eventInfo_; +} + +void PutCustomEventRequest::setEventInfo(const std::vector& eventInfo) +{ + eventInfo_ = eventInfo; + for(int dep1 = 0; dep1!= eventInfo.size(); dep1++) { + auto eventInfoObj = eventInfo.at(dep1); + std::string eventInfoObjStr = "EventInfo." + std::to_string(dep1); + setCoreParameter(eventInfoObjStr + ".GroupId", eventInfoObj.groupId); + setCoreParameter(eventInfoObjStr + ".Time", eventInfoObj.time); + setCoreParameter(eventInfoObjStr + ".EventName", eventInfoObj.eventName); + setCoreParameter(eventInfoObjStr + ".Content", eventInfoObj.content); + } +} + diff --git a/cms/src/model/PutEventResult.cc b/cms/src/model/PutCustomEventResult.cc similarity index 70% rename from cms/src/model/PutEventResult.cc rename to cms/src/model/PutCustomEventResult.cc index a1b66ce49..eae4b4a36 100644 --- a/cms/src/model/PutEventResult.cc +++ b/cms/src/model/PutCustomEventResult.cc @@ -14,26 +14,26 @@ * limitations under the License. */ -#include +#include #include using namespace AlibabaCloud::Cms; using namespace AlibabaCloud::Cms::Model; -PutEventResult::PutEventResult() : +PutCustomEventResult::PutCustomEventResult() : ServiceResult() {} -PutEventResult::PutEventResult(const std::string &payload) : +PutCustomEventResult::PutCustomEventResult(const std::string &payload) : ServiceResult() { parse(payload); } -PutEventResult::~PutEventResult() +PutCustomEventResult::~PutCustomEventResult() {} -void PutEventResult::parse(const std::string &payload) +void PutCustomEventResult::parse(const std::string &payload) { Json::Reader reader; Json::Value value; @@ -43,22 +43,15 @@ void PutEventResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); } -std::string PutEventResult::getMessage()const +std::string PutCustomEventResult::getMessage()const { return message_; } -std::string PutEventResult::getData()const -{ - return data_; -} - -std::string PutEventResult::getCode()const +std::string PutCustomEventResult::getCode()const { return code_; } diff --git a/cms/src/model/PutCustomMetricRequest.cc b/cms/src/model/PutCustomMetricRequest.cc index 0be070135..439087c06 100644 --- a/cms/src/model/PutCustomMetricRequest.cc +++ b/cms/src/model/PutCustomMetricRequest.cc @@ -19,20 +19,32 @@ using AlibabaCloud::Cms::Model::PutCustomMetricRequest; PutCustomMetricRequest::PutCustomMetricRequest() : - RpcServiceRequest("cms", "2018-03-08", "PutCustomMetric") -{} + RpcServiceRequest("cms", "2019-01-01", "PutCustomMetric") +{ + setMethod(HttpRequest::Method::Post); +} PutCustomMetricRequest::~PutCustomMetricRequest() {} -std::string PutCustomMetricRequest::getMetricList()const +std::vector PutCustomMetricRequest::getMetricList()const { return metricList_; } -void PutCustomMetricRequest::setMetricList(const std::string& metricList) +void PutCustomMetricRequest::setMetricList(const std::vector& metricList) { metricList_ = metricList; - setCoreParameter("MetricList", metricList); + for(int dep1 = 0; dep1!= metricList.size(); dep1++) { + auto metricListObj = metricList.at(dep1); + std::string metricListObjStr = "MetricList." + std::to_string(dep1); + setCoreParameter(metricListObjStr + ".Period", metricListObj.period); + setCoreParameter(metricListObjStr + ".GroupId", metricListObj.groupId); + setCoreParameter(metricListObjStr + ".Values", metricListObj.values); + setCoreParameter(metricListObjStr + ".Time", metricListObj.time); + setCoreParameter(metricListObjStr + ".MetricName", metricListObj.metricName); + setCoreParameter(metricListObjStr + ".Type", metricListObj.type); + setCoreParameter(metricListObjStr + ".Dimensions", metricListObj.dimensions); + } } diff --git a/cms/src/model/PutCustomMetricResult.cc b/cms/src/model/PutCustomMetricResult.cc index a7abd25ea..951620a96 100644 --- a/cms/src/model/PutCustomMetricResult.cc +++ b/cms/src/model/PutCustomMetricResult.cc @@ -43,8 +43,6 @@ void PutCustomMetricResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); } @@ -53,11 +51,6 @@ std::string PutCustomMetricResult::getMessage()const return message_; } -std::string PutCustomMetricResult::getData()const -{ - return data_; -} - std::string PutCustomMetricResult::getCode()const { return code_; diff --git a/cms/src/model/PutEventRequest.cc b/cms/src/model/PutEventRequest.cc deleted file mode 100644 index 2bac918f7..000000000 --- a/cms/src/model/PutEventRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::PutEventRequest; - -PutEventRequest::PutEventRequest() : - RpcServiceRequest("cms", "2018-03-08", "PutEvent") -{} - -PutEventRequest::~PutEventRequest() -{} - -std::string PutEventRequest::getEventInfo()const -{ - return eventInfo_; -} - -void PutEventRequest::setEventInfo(const std::string& eventInfo) -{ - eventInfo_ = eventInfo; - setCoreParameter("EventInfo", eventInfo); -} - diff --git a/cms/src/model/PutEventRuleRequest.cc b/cms/src/model/PutEventRuleRequest.cc index 5fc1e966d..b033c9fc4 100644 --- a/cms/src/model/PutEventRuleRequest.cc +++ b/cms/src/model/PutEventRuleRequest.cc @@ -19,8 +19,10 @@ using AlibabaCloud::Cms::Model::PutEventRuleRequest; PutEventRuleRequest::PutEventRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "PutEventRule") -{} + RpcServiceRequest("cms", "2019-01-01", "PutEventRule") +{ + setMethod(HttpRequest::Method::Put); +} PutEventRuleRequest::~PutEventRuleRequest() {} @@ -47,6 +49,17 @@ void PutEventRuleRequest::setDescription(const std::string& description) setCoreParameter("Description", description); } +std::string PutEventRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void PutEventRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + std::vector PutEventRuleRequest::getEventPattern()const { return eventPattern_; @@ -55,29 +68,25 @@ std::vector PutEventRuleRequest::getEventPatt void PutEventRuleRequest::setEventPattern(const std::vector& eventPattern) { eventPattern_ = eventPattern; - int i = 0; - for(int i = 0; i!= eventPattern.size(); i++) { - auto obj = eventPattern.at(i); - std::string str ="EventPattern."+ std::to_string(i); - for(int i = 0; i!= obj.levelList.size(); i++) setCoreParameter(str + ".LevelList."+ std::to_string(i), obj.levelList.at(i)); - setCoreParameter(str + ".Product", obj.product); - for(int i = 0; i!= obj.statusList.size(); i++) setCoreParameter(str + ".StatusList."+ std::to_string(i), obj.statusList.at(i)); - for(int i = 0; i!= obj.nameList.size(); i++) setCoreParameter(str + ".NameList."+ std::to_string(i), obj.nameList.at(i)); - for(int i = 0; i!= obj.eventTypeList.size(); i++) setCoreParameter(str + ".EventTypeList."+ std::to_string(i), obj.eventTypeList.at(i)); + for(int dep1 = 0; dep1!= eventPattern.size(); dep1++) { + auto eventPatternObj = eventPattern.at(dep1); + std::string eventPatternObjStr = "EventPattern." + std::to_string(dep1); + for(int dep2 = 0; dep2!= eventPatternObj.levelList.size(); dep2++) { + setCoreParameter(eventPatternObjStr + ".LevelList."+ std::to_string(dep2), eventPatternObj.levelList.at(dep2)); + } + setCoreParameter(eventPatternObjStr + ".Product", eventPatternObj.product); + for(int dep2 = 0; dep2!= eventPatternObj.statusList.size(); dep2++) { + setCoreParameter(eventPatternObjStr + ".StatusList."+ std::to_string(dep2), eventPatternObj.statusList.at(dep2)); + } + for(int dep2 = 0; dep2!= eventPatternObj.nameList.size(); dep2++) { + setCoreParameter(eventPatternObjStr + ".NameList."+ std::to_string(dep2), eventPatternObj.nameList.at(dep2)); + } + for(int dep2 = 0; dep2!= eventPatternObj.eventTypeList.size(); dep2++) { + setCoreParameter(eventPatternObjStr + ".EventTypeList."+ std::to_string(dep2), eventPatternObj.eventTypeList.at(dep2)); + } } } -std::string PutEventRuleRequest::getName()const -{ - return name_; -} - -void PutEventRuleRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - std::string PutEventRuleRequest::getEventType()const { return eventType_; diff --git a/cms/src/model/PutEventRuleTargetsRequest.cc b/cms/src/model/PutEventRuleTargetsRequest.cc new file mode 100644 index 000000000..799ffaad0 --- /dev/null +++ b/cms/src/model/PutEventRuleTargetsRequest.cc @@ -0,0 +1,128 @@ +/* + * 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::PutEventRuleTargetsRequest; + +PutEventRuleTargetsRequest::PutEventRuleTargetsRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutEventRuleTargets") +{ + setMethod(HttpRequest::Method::Put); +} + +PutEventRuleTargetsRequest::~PutEventRuleTargetsRequest() +{} + +std::vector PutEventRuleTargetsRequest::getWebhookParameters()const +{ + return webhookParameters_; +} + +void PutEventRuleTargetsRequest::setWebhookParameters(const std::vector& webhookParameters) +{ + webhookParameters_ = webhookParameters; + for(int dep1 = 0; dep1!= webhookParameters.size(); dep1++) { + auto webhookParametersObj = webhookParameters.at(dep1); + std::string webhookParametersObjStr = "WebhookParameters." + std::to_string(dep1); + setCoreParameter(webhookParametersObjStr + ".Protocol", webhookParametersObj.protocol); + setCoreParameter(webhookParametersObjStr + ".Method", webhookParametersObj.method); + setCoreParameter(webhookParametersObjStr + ".Id", webhookParametersObj.id); + setCoreParameter(webhookParametersObjStr + ".Url", webhookParametersObj.url); + } +} + +std::vector PutEventRuleTargetsRequest::getContactParameters()const +{ + return contactParameters_; +} + +void PutEventRuleTargetsRequest::setContactParameters(const std::vector& contactParameters) +{ + contactParameters_ = contactParameters; + for(int dep1 = 0; dep1!= contactParameters.size(); dep1++) { + auto contactParametersObj = contactParameters.at(dep1); + std::string contactParametersObjStr = "ContactParameters." + std::to_string(dep1); + setCoreParameter(contactParametersObjStr + ".Level", contactParametersObj.level); + setCoreParameter(contactParametersObjStr + ".Id", contactParametersObj.id); + setCoreParameter(contactParametersObjStr + ".ContactGroupName", contactParametersObj.contactGroupName); + } +} + +std::vector PutEventRuleTargetsRequest::getSlsParameters()const +{ + return slsParameters_; +} + +void PutEventRuleTargetsRequest::setSlsParameters(const std::vector& slsParameters) +{ + slsParameters_ = slsParameters; + for(int dep1 = 0; dep1!= slsParameters.size(); dep1++) { + auto slsParametersObj = slsParameters.at(dep1); + std::string slsParametersObjStr = "SlsParameters." + std::to_string(dep1); + setCoreParameter(slsParametersObjStr + ".Project", slsParametersObj.project); + setCoreParameter(slsParametersObjStr + ".Id", slsParametersObj.id); + setCoreParameter(slsParametersObjStr + ".Region", slsParametersObj.region); + setCoreParameter(slsParametersObjStr + ".LogStore", slsParametersObj.logStore); + } +} + +std::string PutEventRuleTargetsRequest::getRuleName()const +{ + return ruleName_; +} + +void PutEventRuleTargetsRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + +std::vector PutEventRuleTargetsRequest::getMnsParameters()const +{ + return mnsParameters_; +} + +void PutEventRuleTargetsRequest::setMnsParameters(const std::vector& mnsParameters) +{ + mnsParameters_ = mnsParameters; + for(int dep1 = 0; dep1!= mnsParameters.size(); dep1++) { + auto mnsParametersObj = mnsParameters.at(dep1); + std::string mnsParametersObjStr = "MnsParameters." + std::to_string(dep1); + setCoreParameter(mnsParametersObjStr + ".Id", mnsParametersObj.id); + setCoreParameter(mnsParametersObjStr + ".Region", mnsParametersObj.region); + setCoreParameter(mnsParametersObjStr + ".Queue", mnsParametersObj.queue); + } +} + +std::vector PutEventRuleTargetsRequest::getFcParameters()const +{ + return fcParameters_; +} + +void PutEventRuleTargetsRequest::setFcParameters(const std::vector& fcParameters) +{ + fcParameters_ = fcParameters; + for(int dep1 = 0; dep1!= fcParameters.size(); dep1++) { + auto fcParametersObj = fcParameters.at(dep1); + std::string fcParametersObjStr = "FcParameters." + std::to_string(dep1); + setCoreParameter(fcParametersObjStr + ".FunctionName", fcParametersObj.functionName); + setCoreParameter(fcParametersObjStr + ".ServiceName", fcParametersObj.serviceName); + setCoreParameter(fcParametersObjStr + ".Id", fcParametersObj.id); + setCoreParameter(fcParametersObjStr + ".Region", fcParametersObj.region); + } +} + diff --git a/cms/src/model/PutEventRuleTargetsResult.cc b/cms/src/model/PutEventRuleTargetsResult.cc new file mode 100644 index 000000000..70662c250 --- /dev/null +++ b/cms/src/model/PutEventRuleTargetsResult.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; + +PutEventRuleTargetsResult::PutEventRuleTargetsResult() : + ServiceResult() +{} + +PutEventRuleTargetsResult::PutEventRuleTargetsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutEventRuleTargetsResult::~PutEventRuleTargetsResult() +{} + +void PutEventRuleTargetsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFailedContactParametersNode = value["FailedContactParameters"]["ContactParameter"]; + for (auto valueFailedContactParametersContactParameter : allFailedContactParametersNode) + { + ContactParameter failedContactParametersObject; + if(!valueFailedContactParametersContactParameter["Id"].isNull()) + failedContactParametersObject.id = std::stoi(valueFailedContactParametersContactParameter["Id"].asString()); + if(!valueFailedContactParametersContactParameter["ContactGroupName"].isNull()) + failedContactParametersObject.contactGroupName = valueFailedContactParametersContactParameter["ContactGroupName"].asString(); + if(!valueFailedContactParametersContactParameter["Level"].isNull()) + failedContactParametersObject.level = valueFailedContactParametersContactParameter["Level"].asString(); + failedContactParameters_.push_back(failedContactParametersObject); + } + auto allFailedMnsParametersNode = value["FailedMnsParameters"]["MnsParameter"]; + for (auto valueFailedMnsParametersMnsParameter : allFailedMnsParametersNode) + { + MnsParameter failedMnsParametersObject; + if(!valueFailedMnsParametersMnsParameter["Id"].isNull()) + failedMnsParametersObject.id = std::stoi(valueFailedMnsParametersMnsParameter["Id"].asString()); + if(!valueFailedMnsParametersMnsParameter["Region"].isNull()) + failedMnsParametersObject.region = valueFailedMnsParametersMnsParameter["Region"].asString(); + if(!valueFailedMnsParametersMnsParameter["Queue"].isNull()) + failedMnsParametersObject.queue = valueFailedMnsParametersMnsParameter["Queue"].asString(); + failedMnsParameters_.push_back(failedMnsParametersObject); + } + auto allFailedFcParametersNode = value["FailedFcParameters"]["FcParameter"]; + for (auto valueFailedFcParametersFcParameter : allFailedFcParametersNode) + { + FcParameter failedFcParametersObject; + if(!valueFailedFcParametersFcParameter["Id"].isNull()) + failedFcParametersObject.id = std::stoi(valueFailedFcParametersFcParameter["Id"].asString()); + if(!valueFailedFcParametersFcParameter["Region"].isNull()) + failedFcParametersObject.region = valueFailedFcParametersFcParameter["Region"].asString(); + if(!valueFailedFcParametersFcParameter["ServiceName"].isNull()) + failedFcParametersObject.serviceName = valueFailedFcParametersFcParameter["ServiceName"].asString(); + if(!valueFailedFcParametersFcParameter["FunctionName"].isNull()) + failedFcParametersObject.functionName = valueFailedFcParametersFcParameter["FunctionName"].asString(); + failedFcParameters_.push_back(failedFcParametersObject); + } + 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(); + if(!value["FailedParameterCount"].isNull()) + failedParameterCount_ = value["FailedParameterCount"].asString(); + +} + +std::string PutEventRuleTargetsResult::getMessage()const +{ + return message_; +} + +std::vector PutEventRuleTargetsResult::getFailedMnsParameters()const +{ + return failedMnsParameters_; +} + +std::vector PutEventRuleTargetsResult::getFailedFcParameters()const +{ + return failedFcParameters_; +} + +std::string PutEventRuleTargetsResult::getFailedParameterCount()const +{ + return failedParameterCount_; +} + +std::vector PutEventRuleTargetsResult::getFailedContactParameters()const +{ + return failedContactParameters_; +} + +std::string PutEventRuleTargetsResult::getCode()const +{ + return code_; +} + +bool PutEventRuleTargetsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutEventTargetsRequest.cc b/cms/src/model/PutEventTargetsRequest.cc deleted file mode 100644 index f5240e728..000000000 --- a/cms/src/model/PutEventTargetsRequest.cc +++ /dev/null @@ -1,131 +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 - -using AlibabaCloud::Cms::Model::PutEventTargetsRequest; - -PutEventTargetsRequest::PutEventTargetsRequest() : - RpcServiceRequest("cms", "2018-03-08", "PutEventTargets") -{} - -PutEventTargetsRequest::~PutEventTargetsRequest() -{} - -std::vector PutEventTargetsRequest::getWebhookParameters()const -{ - return webhookParameters_; -} - -void PutEventTargetsRequest::setWebhookParameters(const std::vector& webhookParameters) -{ - webhookParameters_ = webhookParameters; - int i = 0; - for(int i = 0; i!= webhookParameters.size(); i++) { - auto obj = webhookParameters.at(i); - std::string str ="WebhookParameters."+ std::to_string(i); - setCoreParameter(str + ".Protocol", obj.protocol); - setCoreParameter(str + ".Method", obj.method); - setCoreParameter(str + ".Id", obj.id); - setCoreParameter(str + ".Url", obj.url); - } -} - -std::vector PutEventTargetsRequest::getContactParameters()const -{ - return contactParameters_; -} - -void PutEventTargetsRequest::setContactParameters(const std::vector& contactParameters) -{ - contactParameters_ = contactParameters; - int i = 0; - for(int i = 0; i!= contactParameters.size(); i++) { - auto obj = contactParameters.at(i); - std::string str ="ContactParameters."+ std::to_string(i); - setCoreParameter(str + ".Level", obj.level); - setCoreParameter(str + ".Id", obj.id); - setCoreParameter(str + ".ContactGroupName", obj.contactGroupName); - } -} - -std::vector PutEventTargetsRequest::getSlsParameters()const -{ - return slsParameters_; -} - -void PutEventTargetsRequest::setSlsParameters(const std::vector& slsParameters) -{ - slsParameters_ = slsParameters; - int i = 0; - for(int i = 0; i!= slsParameters.size(); i++) { - auto obj = slsParameters.at(i); - std::string str ="SlsParameters."+ std::to_string(i); - setCoreParameter(str + ".Project", obj.project); - setCoreParameter(str + ".Id", obj.id); - setCoreParameter(str + ".Region", obj.region); - setCoreParameter(str + ".LogStore", obj.logStore); - } -} - -std::string PutEventTargetsRequest::getRuleName()const -{ - return ruleName_; -} - -void PutEventTargetsRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - -std::vector PutEventTargetsRequest::getMnsParameters()const -{ - return mnsParameters_; -} - -void PutEventTargetsRequest::setMnsParameters(const std::vector& mnsParameters) -{ - mnsParameters_ = mnsParameters; - int i = 0; - for(int i = 0; i!= mnsParameters.size(); i++) { - auto obj = mnsParameters.at(i); - std::string str ="MnsParameters."+ std::to_string(i); - setCoreParameter(str + ".Id", obj.id); - setCoreParameter(str + ".Region", obj.region); - setCoreParameter(str + ".Queue", obj.queue); - } -} - -std::vector PutEventTargetsRequest::getFcParameters()const -{ - return fcParameters_; -} - -void PutEventTargetsRequest::setFcParameters(const std::vector& fcParameters) -{ - fcParameters_ = fcParameters; - int i = 0; - for(int i = 0; i!= fcParameters.size(); i++) { - auto obj = fcParameters.at(i); - std::string str ="FcParameters."+ std::to_string(i); - setCoreParameter(str + ".FunctionName", obj.functionName); - setCoreParameter(str + ".ServiceName", obj.serviceName); - setCoreParameter(str + ".Id", obj.id); - setCoreParameter(str + ".Region", obj.region); - } -} - diff --git a/cms/src/model/PutEventTargetsResult.cc b/cms/src/model/PutEventTargetsResult.cc deleted file mode 100644 index e5ee323fd..000000000 --- a/cms/src/model/PutEventTargetsResult.cc +++ /dev/null @@ -1,204 +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; - -PutEventTargetsResult::PutEventTargetsResult() : - ServiceResult() -{} - -PutEventTargetsResult::PutEventTargetsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PutEventTargetsResult::~PutEventTargetsResult() -{} - -void PutEventTargetsResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allContactParametersNode = value["ContactParameters"]["ContactParameter"]; - for (auto valueContactParametersContactParameter : allContactParametersNode) - { - ContactParameter contactParametersObject; - if(!valueContactParametersContactParameter["Id"].isNull()) - contactParametersObject.id = std::stoi(valueContactParametersContactParameter["Id"].asString()); - if(!valueContactParametersContactParameter["ContactGroupName"].isNull()) - contactParametersObject.contactGroupName = valueContactParametersContactParameter["ContactGroupName"].asString(); - if(!valueContactParametersContactParameter["Level"].isNull()) - contactParametersObject.level = valueContactParametersContactParameter["Level"].asString(); - contactParameters_.push_back(contactParametersObject); - } - auto allMnsParametersNode = value["MnsParameters"]["MnsParameter"]; - for (auto valueMnsParametersMnsParameter : allMnsParametersNode) - { - MnsParameter mnsParametersObject; - if(!valueMnsParametersMnsParameter["Id"].isNull()) - mnsParametersObject.id = std::stoi(valueMnsParametersMnsParameter["Id"].asString()); - if(!valueMnsParametersMnsParameter["Region"].isNull()) - mnsParametersObject.region = valueMnsParametersMnsParameter["Region"].asString(); - if(!valueMnsParametersMnsParameter["Queue"].isNull()) - mnsParametersObject.queue = valueMnsParametersMnsParameter["Queue"].asString(); - mnsParameters_.push_back(mnsParametersObject); - } - auto allFcParametersNode = value["FcParameters"]["FcParameter"]; - for (auto valueFcParametersFcParameter : allFcParametersNode) - { - FcParameter fcParametersObject; - if(!valueFcParametersFcParameter["Id"].isNull()) - fcParametersObject.id = std::stoi(valueFcParametersFcParameter["Id"].asString()); - if(!valueFcParametersFcParameter["Region"].isNull()) - fcParametersObject.region = valueFcParametersFcParameter["Region"].asString(); - if(!valueFcParametersFcParameter["ServiceName"].isNull()) - fcParametersObject.serviceName = valueFcParametersFcParameter["ServiceName"].asString(); - if(!valueFcParametersFcParameter["FunctionName"].isNull()) - fcParametersObject.functionName = valueFcParametersFcParameter["FunctionName"].asString(); - fcParameters_.push_back(fcParametersObject); - } - auto allFailedContactParametersNode = value["FailedContactParameters"]["ContactParameter"]; - for (auto valueFailedContactParametersContactParameter : allFailedContactParametersNode) - { - ContactParameter failedContactParametersObject; - if(!valueFailedContactParametersContactParameter["Id"].isNull()) - failedContactParametersObject.id = std::stoi(valueFailedContactParametersContactParameter["Id"].asString()); - if(!valueFailedContactParametersContactParameter["ContactGroupName"].isNull()) - failedContactParametersObject.contactGroupName = valueFailedContactParametersContactParameter["ContactGroupName"].asString(); - if(!valueFailedContactParametersContactParameter["Level"].isNull()) - failedContactParametersObject.level = valueFailedContactParametersContactParameter["Level"].asString(); - failedContactParameters_.push_back(failedContactParametersObject); - } - auto allFailedMnsParametersNode = value["FailedMnsParameters"]["MnsParameter"]; - for (auto valueFailedMnsParametersMnsParameter : allFailedMnsParametersNode) - { - MnsParameter failedMnsParametersObject; - if(!valueFailedMnsParametersMnsParameter["Id"].isNull()) - failedMnsParametersObject.id = std::stoi(valueFailedMnsParametersMnsParameter["Id"].asString()); - if(!valueFailedMnsParametersMnsParameter["Region"].isNull()) - failedMnsParametersObject.region = valueFailedMnsParametersMnsParameter["Region"].asString(); - if(!valueFailedMnsParametersMnsParameter["Queue"].isNull()) - failedMnsParametersObject.queue = valueFailedMnsParametersMnsParameter["Queue"].asString(); - failedMnsParameters_.push_back(failedMnsParametersObject); - } - auto allFailedFcParametersNode = value["FailedFcParameters"]["FcParameter"]; - for (auto valueFailedFcParametersFcParameter : allFailedFcParametersNode) - { - FcParameter failedFcParametersObject; - if(!valueFailedFcParametersFcParameter["Id"].isNull()) - failedFcParametersObject.id = std::stoi(valueFailedFcParametersFcParameter["Id"].asString()); - if(!valueFailedFcParametersFcParameter["Region"].isNull()) - failedFcParametersObject.region = valueFailedFcParametersFcParameter["Region"].asString(); - if(!valueFailedFcParametersFcParameter["ServiceName"].isNull()) - failedFcParametersObject.serviceName = valueFailedFcParametersFcParameter["ServiceName"].asString(); - if(!valueFailedFcParametersFcParameter["FunctionName"].isNull()) - failedFcParametersObject.functionName = valueFailedFcParametersFcParameter["FunctionName"].asString(); - failedFcParameters_.push_back(failedFcParametersObject); - } - auto allFailedSlsParametersNode = value["FailedSlsParameters"]["FailedSlsParameter"]; - for (auto valueFailedSlsParametersFailedSlsParameter : allFailedSlsParametersNode) - { - FailedSlsParameter failedSlsParametersObject; - if(!valueFailedSlsParametersFailedSlsParameter["Id"].isNull()) - failedSlsParametersObject.id = valueFailedSlsParametersFailedSlsParameter["Id"].asString(); - if(!valueFailedSlsParametersFailedSlsParameter["Region"].isNull()) - failedSlsParametersObject.region = valueFailedSlsParametersFailedSlsParameter["Region"].asString(); - if(!valueFailedSlsParametersFailedSlsParameter["Project"].isNull()) - failedSlsParametersObject.project = valueFailedSlsParametersFailedSlsParameter["Project"].asString(); - if(!valueFailedSlsParametersFailedSlsParameter["LogStore"].isNull()) - failedSlsParametersObject.logStore = valueFailedSlsParametersFailedSlsParameter["LogStore"].asString(); - failedSlsParameters_.push_back(failedSlsParametersObject); - } - 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(); - if(!value["ParameterCount"].isNull()) - parameterCount_ = value["ParameterCount"].asString(); - if(!value["FailedParameterCount"].isNull()) - failedParameterCount_ = value["FailedParameterCount"].asString(); - -} - -std::string PutEventTargetsResult::getParameterCount()const -{ - return parameterCount_; -} - -std::vector PutEventTargetsResult::getContactParameters()const -{ - return contactParameters_; -} - -std::string PutEventTargetsResult::getMessage()const -{ - return message_; -} - -std::vector PutEventTargetsResult::getFailedMnsParameters()const -{ - return failedMnsParameters_; -} - -std::vector PutEventTargetsResult::getFailedFcParameters()const -{ - return failedFcParameters_; -} - -std::vector PutEventTargetsResult::getFcParameters()const -{ - return fcParameters_; -} - -std::string PutEventTargetsResult::getFailedParameterCount()const -{ - return failedParameterCount_; -} - -std::vector PutEventTargetsResult::getFailedContactParameters()const -{ - return failedContactParameters_; -} - -std::string PutEventTargetsResult::getCode()const -{ - return code_; -} - -std::vector PutEventTargetsResult::getFailedSlsParameters()const -{ - return failedSlsParameters_; -} - -bool PutEventTargetsResult::getSuccess()const -{ - return success_; -} - -std::vector PutEventTargetsResult::getMnsParameters()const -{ - return mnsParameters_; -} - diff --git a/cms/src/model/PutGroupDynamicRuleRequest.cc b/cms/src/model/PutGroupDynamicRuleRequest.cc deleted file mode 100644 index 48a5666fa..000000000 --- a/cms/src/model/PutGroupDynamicRuleRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::PutGroupDynamicRuleRequest; - -PutGroupDynamicRuleRequest::PutGroupDynamicRuleRequest() : - RpcServiceRequest("cms", "2018-03-08", "PutGroupDynamicRule") -{} - -PutGroupDynamicRuleRequest::~PutGroupDynamicRuleRequest() -{} - -long PutGroupDynamicRuleRequest::getGroupId()const -{ - return groupId_; -} - -void PutGroupDynamicRuleRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -std::string PutGroupDynamicRuleRequest::getGroupRuleArrayJson()const -{ - return groupRuleArrayJson_; -} - -void PutGroupDynamicRuleRequest::setGroupRuleArrayJson(const std::string& groupRuleArrayJson) -{ - groupRuleArrayJson_ = groupRuleArrayJson; - setCoreParameter("GroupRuleArrayJson", groupRuleArrayJson); -} - diff --git a/cms/src/model/PutGroupDynamicRuleResult.cc b/cms/src/model/PutGroupDynamicRuleResult.cc deleted file mode 100644 index 0241afc2f..000000000 --- a/cms/src/model/PutGroupDynamicRuleResult.cc +++ /dev/null @@ -1,65 +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; - -PutGroupDynamicRuleResult::PutGroupDynamicRuleResult() : - ServiceResult() -{} - -PutGroupDynamicRuleResult::PutGroupDynamicRuleResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -PutGroupDynamicRuleResult::~PutGroupDynamicRuleResult() -{} - -void PutGroupDynamicRuleResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -int PutGroupDynamicRuleResult::getErrorCode()const -{ - return errorCode_; -} - -std::string PutGroupDynamicRuleResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool PutGroupDynamicRuleResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/PutGroupMetricRuleRequest.cc b/cms/src/model/PutGroupMetricRuleRequest.cc new file mode 100644 index 000000000..7fc464324 --- /dev/null +++ b/cms/src/model/PutGroupMetricRuleRequest.cc @@ -0,0 +1,315 @@ +/* + * 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::PutGroupMetricRuleRequest; + +PutGroupMetricRuleRequest::PutGroupMetricRuleRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutGroupMetricRule") +{ + setMethod(HttpRequest::Method::Put); +} + +PutGroupMetricRuleRequest::~PutGroupMetricRuleRequest() +{} + +std::string PutGroupMetricRuleRequest::getWebhook()const +{ + return webhook_; +} + +void PutGroupMetricRuleRequest::setWebhook(const std::string& webhook) +{ + webhook_ = webhook; + setCoreParameter("Webhook", webhook); +} + +std::string PutGroupMetricRuleRequest::getEscalationsWarnComparisonOperator()const +{ + return escalationsWarnComparisonOperator_; +} + +void PutGroupMetricRuleRequest::setEscalationsWarnComparisonOperator(const std::string& escalationsWarnComparisonOperator) +{ + escalationsWarnComparisonOperator_ = escalationsWarnComparisonOperator; + setCoreParameter("EscalationsWarnComparisonOperator", escalationsWarnComparisonOperator); +} + +std::string PutGroupMetricRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void PutGroupMetricRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + +std::string PutGroupMetricRuleRequest::getEscalationsInfoStatistics()const +{ + return escalationsInfoStatistics_; +} + +void PutGroupMetricRuleRequest::setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics) +{ + escalationsInfoStatistics_ = escalationsInfoStatistics; + setCoreParameter("EscalationsInfoStatistics", escalationsInfoStatistics); +} + +std::string PutGroupMetricRuleRequest::getEffectiveInterval()const +{ + return effectiveInterval_; +} + +void PutGroupMetricRuleRequest::setEffectiveInterval(const std::string& effectiveInterval) +{ + effectiveInterval_ = effectiveInterval; + setCoreParameter("EffectiveInterval", effectiveInterval); +} + +std::string PutGroupMetricRuleRequest::getEscalationsInfoComparisonOperator()const +{ + return escalationsInfoComparisonOperator_; +} + +void PutGroupMetricRuleRequest::setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator) +{ + escalationsInfoComparisonOperator_ = escalationsInfoComparisonOperator; + setCoreParameter("EscalationsInfoComparisonOperator", escalationsInfoComparisonOperator); +} + +std::string PutGroupMetricRuleRequest::getNoEffectiveInterval()const +{ + return noEffectiveInterval_; +} + +void PutGroupMetricRuleRequest::setNoEffectiveInterval(const std::string& noEffectiveInterval) +{ + noEffectiveInterval_ = noEffectiveInterval; + setCoreParameter("NoEffectiveInterval", noEffectiveInterval); +} + +std::string PutGroupMetricRuleRequest::getEmailSubject()const +{ + return emailSubject_; +} + +void PutGroupMetricRuleRequest::setEmailSubject(const std::string& emailSubject) +{ + emailSubject_ = emailSubject; + setCoreParameter("EmailSubject", emailSubject); +} + +int PutGroupMetricRuleRequest::getSilenceTime()const +{ + return silenceTime_; +} + +void PutGroupMetricRuleRequest::setSilenceTime(int silenceTime) +{ + silenceTime_ = silenceTime; + setCoreParameter("SilenceTime", std::to_string(silenceTime)); +} + +std::string PutGroupMetricRuleRequest::getMetricName()const +{ + return metricName_; +} + +void PutGroupMetricRuleRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +int PutGroupMetricRuleRequest::getEscalationsWarnTimes()const +{ + return escalationsWarnTimes_; +} + +void PutGroupMetricRuleRequest::setEscalationsWarnTimes(int escalationsWarnTimes) +{ + escalationsWarnTimes_ = escalationsWarnTimes; + setCoreParameter("EscalationsWarnTimes", std::to_string(escalationsWarnTimes)); +} + +std::string PutGroupMetricRuleRequest::getPeriod()const +{ + return period_; +} + +void PutGroupMetricRuleRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string PutGroupMetricRuleRequest::getEscalationsWarnThreshold()const +{ + return escalationsWarnThreshold_; +} + +void PutGroupMetricRuleRequest::setEscalationsWarnThreshold(const std::string& escalationsWarnThreshold) +{ + escalationsWarnThreshold_ = escalationsWarnThreshold; + setCoreParameter("EscalationsWarnThreshold", escalationsWarnThreshold); +} + +std::string PutGroupMetricRuleRequest::getEscalationsCriticalStatistics()const +{ + return escalationsCriticalStatistics_; +} + +void PutGroupMetricRuleRequest::setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics) +{ + escalationsCriticalStatistics_ = escalationsCriticalStatistics; + setCoreParameter("EscalationsCriticalStatistics", escalationsCriticalStatistics); +} + +std::string PutGroupMetricRuleRequest::getGroupId()const +{ + return groupId_; +} + +void PutGroupMetricRuleRequest::setGroupId(const std::string& groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", groupId); +} + +int PutGroupMetricRuleRequest::getEscalationsInfoTimes()const +{ + return escalationsInfoTimes_; +} + +void PutGroupMetricRuleRequest::setEscalationsInfoTimes(int escalationsInfoTimes) +{ + escalationsInfoTimes_ = escalationsInfoTimes; + setCoreParameter("EscalationsInfoTimes", std::to_string(escalationsInfoTimes)); +} + +int PutGroupMetricRuleRequest::getEscalationsCriticalTimes()const +{ + return escalationsCriticalTimes_; +} + +void PutGroupMetricRuleRequest::setEscalationsCriticalTimes(int escalationsCriticalTimes) +{ + escalationsCriticalTimes_ = escalationsCriticalTimes; + setCoreParameter("EscalationsCriticalTimes", std::to_string(escalationsCriticalTimes)); +} + +std::string PutGroupMetricRuleRequest::getEscalationsWarnStatistics()const +{ + return escalationsWarnStatistics_; +} + +void PutGroupMetricRuleRequest::setEscalationsWarnStatistics(const std::string& escalationsWarnStatistics) +{ + escalationsWarnStatistics_ = escalationsWarnStatistics; + setCoreParameter("EscalationsWarnStatistics", escalationsWarnStatistics); +} + +std::string PutGroupMetricRuleRequest::getEscalationsInfoThreshold()const +{ + return escalationsInfoThreshold_; +} + +void PutGroupMetricRuleRequest::setEscalationsInfoThreshold(const std::string& escalationsInfoThreshold) +{ + escalationsInfoThreshold_ = escalationsInfoThreshold; + setCoreParameter("EscalationsInfoThreshold", escalationsInfoThreshold); +} + +std::string PutGroupMetricRuleRequest::get_Namespace()const +{ + return _namespace_; +} + +void PutGroupMetricRuleRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +std::string PutGroupMetricRuleRequest::getInterval()const +{ + return interval_; +} + +void PutGroupMetricRuleRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string PutGroupMetricRuleRequest::getRuleId()const +{ + return ruleId_; +} + +void PutGroupMetricRuleRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", ruleId); +} + +std::string PutGroupMetricRuleRequest::getCategory()const +{ + return category_; +} + +void PutGroupMetricRuleRequest::setCategory(const std::string& category) +{ + category_ = category; + setCoreParameter("Category", category); +} + +std::string PutGroupMetricRuleRequest::getEscalationsCriticalComparisonOperator()const +{ + return escalationsCriticalComparisonOperator_; +} + +void PutGroupMetricRuleRequest::setEscalationsCriticalComparisonOperator(const std::string& escalationsCriticalComparisonOperator) +{ + escalationsCriticalComparisonOperator_ = escalationsCriticalComparisonOperator; + setCoreParameter("EscalationsCriticalComparisonOperator", escalationsCriticalComparisonOperator); +} + +std::string PutGroupMetricRuleRequest::getEscalationsCriticalThreshold()const +{ + return escalationsCriticalThreshold_; +} + +void PutGroupMetricRuleRequest::setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold) +{ + escalationsCriticalThreshold_ = escalationsCriticalThreshold; + setCoreParameter("EscalationsCriticalThreshold", escalationsCriticalThreshold); +} + +std::string PutGroupMetricRuleRequest::getDimensions()const +{ + return dimensions_; +} + +void PutGroupMetricRuleRequest::setDimensions(const std::string& dimensions) +{ + dimensions_ = dimensions; + setCoreParameter("Dimensions", dimensions); +} + diff --git a/cms/src/model/PutGroupMetricRuleResult.cc b/cms/src/model/PutGroupMetricRuleResult.cc new file mode 100644 index 000000000..b754c4f08 --- /dev/null +++ b/cms/src/model/PutGroupMetricRuleResult.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; + +PutGroupMetricRuleResult::PutGroupMetricRuleResult() : + ServiceResult() +{} + +PutGroupMetricRuleResult::PutGroupMetricRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutGroupMetricRuleResult::~PutGroupMetricRuleResult() +{} + +void PutGroupMetricRuleResult::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 PutGroupMetricRuleResult::getMessage()const +{ + return message_; +} + +std::string PutGroupMetricRuleResult::getCode()const +{ + return code_; +} + +bool PutGroupMetricRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutMetricAlarmRequest.cc b/cms/src/model/PutMetricAlarmRequest.cc deleted file mode 100644 index 2b8a056db..000000000 --- a/cms/src/model/PutMetricAlarmRequest.cc +++ /dev/null @@ -1,291 +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 - -using AlibabaCloud::Cms::Model::PutMetricAlarmRequest; - -PutMetricAlarmRequest::PutMetricAlarmRequest() : - RpcServiceRequest("cms", "2018-03-08", "PutMetricAlarm") -{} - -PutMetricAlarmRequest::~PutMetricAlarmRequest() -{} - -std::string PutMetricAlarmRequest::getWebhook()const -{ - return webhook_; -} - -void PutMetricAlarmRequest::setWebhook(const std::string& webhook) -{ - webhook_ = webhook; - setCoreParameter("Webhook", webhook); -} - -std::string PutMetricAlarmRequest::getSubject()const -{ - return subject_; -} - -void PutMetricAlarmRequest::setSubject(const std::string& subject) -{ - subject_ = subject; - setCoreParameter("Subject", subject); -} - -std::string PutMetricAlarmRequest::getAlertName()const -{ - return alertName_; -} - -void PutMetricAlarmRequest::setAlertName(const std::string& alertName) -{ - alertName_ = alertName; - setCoreParameter("AlertName", alertName); -} - -std::string PutMetricAlarmRequest::getDescription()const -{ - return description_; -} - -void PutMetricAlarmRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string PutMetricAlarmRequest::getThreshold()const -{ - return threshold_; -} - -void PutMetricAlarmRequest::setThreshold(const std::string& threshold) -{ - threshold_ = threshold; - setCoreParameter("Threshold", threshold); -} - -std::string PutMetricAlarmRequest::getEffectiveInterval()const -{ - return effectiveInterval_; -} - -void PutMetricAlarmRequest::setEffectiveInterval(const std::string& effectiveInterval) -{ - effectiveInterval_ = effectiveInterval; - setCoreParameter("EffectiveInterval", effectiveInterval); -} - -std::string PutMetricAlarmRequest::getNoEffectiveInterval()const -{ - return noEffectiveInterval_; -} - -void PutMetricAlarmRequest::setNoEffectiveInterval(const std::string& noEffectiveInterval) -{ - noEffectiveInterval_ = noEffectiveInterval; - setCoreParameter("NoEffectiveInterval", noEffectiveInterval); -} - -int PutMetricAlarmRequest::getEvaluationCount()const -{ - return evaluationCount_; -} - -void PutMetricAlarmRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setCoreParameter("EvaluationCount", std::to_string(evaluationCount)); -} - -int PutMetricAlarmRequest::getSilenceTime()const -{ - return silenceTime_; -} - -void PutMetricAlarmRequest::setSilenceTime(int silenceTime) -{ - silenceTime_ = silenceTime; - setCoreParameter("SilenceTime", std::to_string(silenceTime)); -} - -std::string PutMetricAlarmRequest::getMetricName()const -{ - return metricName_; -} - -void PutMetricAlarmRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setCoreParameter("MetricName", metricName); -} - -std::string PutMetricAlarmRequest::getDeepDive()const -{ - return deepDive_; -} - -void PutMetricAlarmRequest::setDeepDive(const std::string& deepDive) -{ - deepDive_ = deepDive; - setCoreParameter("DeepDive", deepDive); -} - -std::string PutMetricAlarmRequest::getPeriod()const -{ - return period_; -} - -void PutMetricAlarmRequest::setPeriod(const std::string& period) -{ - period_ = period; - setCoreParameter("Period", period); -} - -std::string PutMetricAlarmRequest::getContactGroups()const -{ - return contactGroups_; -} - -void PutMetricAlarmRequest::setContactGroups(const std::string& contactGroups) -{ - contactGroups_ = contactGroups; - setCoreParameter("ContactGroups", contactGroups); -} - -int PutMetricAlarmRequest::getLevel()const -{ - return level_; -} - -void PutMetricAlarmRequest::setLevel(int level) -{ - level_ = level; - setCoreParameter("Level", std::to_string(level)); -} - -std::string PutMetricAlarmRequest::getGroupId()const -{ - return groupId_; -} - -void PutMetricAlarmRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string PutMetricAlarmRequest::getResources()const -{ - return resources_; -} - -void PutMetricAlarmRequest::setResources(const std::string& resources) -{ - resources_ = resources; - setCoreParameter("Resources", resources); -} - -std::string PutMetricAlarmRequest::getGroupName()const -{ - return groupName_; -} - -void PutMetricAlarmRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setCoreParameter("GroupName", groupName); -} - -std::string PutMetricAlarmRequest::getFilter()const -{ - return filter_; -} - -void PutMetricAlarmRequest::setFilter(const std::string& filter) -{ - filter_ = filter; - setCoreParameter("Filter", filter); -} - -std::string PutMetricAlarmRequest::getDisplayName()const -{ - return displayName_; -} - -void PutMetricAlarmRequest::setDisplayName(const std::string& displayName) -{ - displayName_ = displayName; - setCoreParameter("DisplayName", displayName); -} - -std::string PutMetricAlarmRequest::get_Namespace()const -{ - return _namespace_; -} - -void PutMetricAlarmRequest::set_Namespace(const std::string& _namespace) -{ - _namespace_ = _namespace; - setCoreParameter("_Namespace", _namespace); -} - -std::string PutMetricAlarmRequest::getInterval()const -{ - return interval_; -} - -void PutMetricAlarmRequest::setInterval(const std::string& interval) -{ - interval_ = interval; - setCoreParameter("Interval", interval); -} - -std::string PutMetricAlarmRequest::getComparisonOperator()const -{ - return comparisonOperator_; -} - -void PutMetricAlarmRequest::setComparisonOperator(const std::string& comparisonOperator) -{ - comparisonOperator_ = comparisonOperator; - setCoreParameter("ComparisonOperator", comparisonOperator); -} - -std::string PutMetricAlarmRequest::getDimensions()const -{ - return dimensions_; -} - -void PutMetricAlarmRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - -std::string PutMetricAlarmRequest::getStatistics()const -{ - return statistics_; -} - -void PutMetricAlarmRequest::setStatistics(const std::string& statistics) -{ - statistics_ = statistics; - setCoreParameter("Statistics", statistics); -} - diff --git a/cms/src/model/PutMetricRuleTargetsRequest.cc b/cms/src/model/PutMetricRuleTargetsRequest.cc index 50e6a29ad..53028d0bd 100644 --- a/cms/src/model/PutMetricRuleTargetsRequest.cc +++ b/cms/src/model/PutMetricRuleTargetsRequest.cc @@ -19,49 +19,39 @@ using AlibabaCloud::Cms::Model::PutMetricRuleTargetsRequest; PutMetricRuleTargetsRequest::PutMetricRuleTargetsRequest() : - RpcServiceRequest("cms", "2018-03-08", "PutMetricRuleTargets") -{} + RpcServiceRequest("cms", "2019-01-01", "PutMetricRuleTargets") +{ + setMethod(HttpRequest::Method::Put); +} PutMetricRuleTargetsRequest::~PutMetricRuleTargetsRequest() {} -std::string PutMetricRuleTargetsRequest::getRuleName()const -{ - return ruleName_; -} - -void PutMetricRuleTargetsRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - -std::vector PutMetricRuleTargetsRequest::getTargets()const -{ - return targets_; -} - -void PutMetricRuleTargetsRequest::setTargets(const std::vector& targets) -{ - targets_ = targets; - int i = 0; - for(int i = 0; i!= targets.size(); i++) { - auto obj = targets.at(i); - std::string str ="Targets."+ std::to_string(i); - setCoreParameter(str + ".Level", obj.level); - setCoreParameter(str + ".Id", obj.id); - setCoreParameter(str + ".Arn", obj.arn); - } -} - -std::string PutMetricRuleTargetsRequest::getActions()const -{ - return actions_; -} - -void PutMetricRuleTargetsRequest::setActions(const std::string& actions) -{ - actions_ = actions; - setCoreParameter("Actions", actions); -} - +std::vector PutMetricRuleTargetsRequest::getTargets()const +{ + return targets_; +} + +void PutMetricRuleTargetsRequest::setTargets(const std::vector& targets) +{ + targets_ = targets; + for(int dep1 = 0; dep1!= targets.size(); dep1++) { + auto targetsObj = targets.at(dep1); + std::string targetsObjStr = "Targets." + std::to_string(dep1); + setCoreParameter(targetsObjStr + ".Level", targetsObj.level); + setCoreParameter(targetsObjStr + ".Id", targetsObj.id); + setCoreParameter(targetsObjStr + ".Arn", targetsObj.arn); + } +} + +std::string PutMetricRuleTargetsRequest::getRuleId()const +{ + return ruleId_; +} + +void PutMetricRuleTargetsRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", ruleId); +} + diff --git a/cms/src/model/PutMonitorGroupDynamicRuleRequest.cc b/cms/src/model/PutMonitorGroupDynamicRuleRequest.cc new file mode 100644 index 000000000..45507ee41 --- /dev/null +++ b/cms/src/model/PutMonitorGroupDynamicRuleRequest.cc @@ -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. + */ + +#include + +using AlibabaCloud::Cms::Model::PutMonitorGroupDynamicRuleRequest; + +PutMonitorGroupDynamicRuleRequest::PutMonitorGroupDynamicRuleRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutMonitorGroupDynamicRule") +{ + setMethod(HttpRequest::Method::Post); +} + +PutMonitorGroupDynamicRuleRequest::~PutMonitorGroupDynamicRuleRequest() +{} + +std::vector PutMonitorGroupDynamicRuleRequest::getGroupRules()const +{ + return groupRules_; +} + +void PutMonitorGroupDynamicRuleRequest::setGroupRules(const std::vector& groupRules) +{ + groupRules_ = groupRules; + for(int dep1 = 0; dep1!= groupRules.size(); dep1++) { + auto groupRulesObj = groupRules.at(dep1); + std::string groupRulesObjStr = "GroupRules." + std::to_string(dep1); + setCoreParameter(groupRulesObjStr + ".FilterRelation", groupRulesObj.filterRelation); + for(int dep2 = 0; dep2!= groupRulesObj.filters.size(); dep2++) { + auto filtersObj = groupRulesObj.filters.at(dep2); + std::string filtersObjStr = groupRulesObjStr + "Filters." + std::to_string(dep2); + setCoreParameter(filtersObjStr + ".Function", filtersObj.function); + setCoreParameter(filtersObjStr + ".Name", filtersObj.name); + setCoreParameter(filtersObjStr + ".Value", filtersObj.value); + } + setCoreParameter(groupRulesObjStr + ".Category", groupRulesObj.category); + } +} + +long PutMonitorGroupDynamicRuleRequest::getGroupId()const +{ + return groupId_; +} + +void PutMonitorGroupDynamicRuleRequest::setGroupId(long groupId) +{ + groupId_ = groupId; + setCoreParameter("GroupId", std::to_string(groupId)); +} + diff --git a/cms/src/model/PutMonitorGroupDynamicRuleResult.cc b/cms/src/model/PutMonitorGroupDynamicRuleResult.cc new file mode 100644 index 000000000..beaa3c83d --- /dev/null +++ b/cms/src/model/PutMonitorGroupDynamicRuleResult.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; + +PutMonitorGroupDynamicRuleResult::PutMonitorGroupDynamicRuleResult() : + ServiceResult() +{} + +PutMonitorGroupDynamicRuleResult::PutMonitorGroupDynamicRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutMonitorGroupDynamicRuleResult::~PutMonitorGroupDynamicRuleResult() +{} + +void PutMonitorGroupDynamicRuleResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + +} + +std::string PutMonitorGroupDynamicRuleResult::getMessage()const +{ + return message_; +} + +int PutMonitorGroupDynamicRuleResult::getCode()const +{ + return code_; +} + +bool PutMonitorGroupDynamicRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutMonitoringConfigRequest.cc b/cms/src/model/PutMonitoringConfigRequest.cc new file mode 100644 index 000000000..b502d82a2 --- /dev/null +++ b/cms/src/model/PutMonitoringConfigRequest.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::PutMonitoringConfigRequest; + +PutMonitoringConfigRequest::PutMonitoringConfigRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutMonitoringConfig") +{ + setMethod(HttpRequest::Method::Post); +} + +PutMonitoringConfigRequest::~PutMonitoringConfigRequest() +{} + +bool PutMonitoringConfigRequest::getAutoInstall()const +{ + return autoInstall_; +} + +void PutMonitoringConfigRequest::setAutoInstall(bool autoInstall) +{ + autoInstall_ = autoInstall; + setCoreParameter("AutoInstall", autoInstall ? "true" : "false"); +} + +bool PutMonitoringConfigRequest::getEnableInstallAgentNewECS()const +{ + return enableInstallAgentNewECS_; +} + +void PutMonitoringConfigRequest::setEnableInstallAgentNewECS(bool enableInstallAgentNewECS) +{ + enableInstallAgentNewECS_ = enableInstallAgentNewECS; + setCoreParameter("EnableInstallAgentNewECS", enableInstallAgentNewECS ? "true" : "false"); +} + diff --git a/cms/src/model/PutMonitoringConfigResult.cc b/cms/src/model/PutMonitoringConfigResult.cc new file mode 100644 index 000000000..7cbfb83f0 --- /dev/null +++ b/cms/src/model/PutMonitoringConfigResult.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; + +PutMonitoringConfigResult::PutMonitoringConfigResult() : + ServiceResult() +{} + +PutMonitoringConfigResult::PutMonitoringConfigResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutMonitoringConfigResult::~PutMonitoringConfigResult() +{} + +void PutMonitoringConfigResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + if(!value["Code"].isNull()) + code_ = std::stoi(value["Code"].asString()); + if(!value["Message"].isNull()) + message_ = value["Message"].asString(); + if(!value["Success"].isNull()) + success_ = value["Success"].asString() == "true"; + +} + +std::string PutMonitoringConfigResult::getMessage()const +{ + return message_; +} + +int PutMonitoringConfigResult::getCode()const +{ + return code_; +} + +bool PutMonitoringConfigResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutResourceMetricRuleRequest.cc b/cms/src/model/PutResourceMetricRuleRequest.cc new file mode 100644 index 000000000..d38b760ab --- /dev/null +++ b/cms/src/model/PutResourceMetricRuleRequest.cc @@ -0,0 +1,304 @@ +/* + * 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::PutResourceMetricRuleRequest; + +PutResourceMetricRuleRequest::PutResourceMetricRuleRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutResourceMetricRule") +{ + setMethod(HttpRequest::Method::Put); +} + +PutResourceMetricRuleRequest::~PutResourceMetricRuleRequest() +{} + +std::string PutResourceMetricRuleRequest::getWebhook()const +{ + return webhook_; +} + +void PutResourceMetricRuleRequest::setWebhook(const std::string& webhook) +{ + webhook_ = webhook; + setCoreParameter("Webhook", webhook); +} + +std::string PutResourceMetricRuleRequest::getEscalationsWarnComparisonOperator()const +{ + return escalationsWarnComparisonOperator_; +} + +void PutResourceMetricRuleRequest::setEscalationsWarnComparisonOperator(const std::string& escalationsWarnComparisonOperator) +{ + escalationsWarnComparisonOperator_ = escalationsWarnComparisonOperator; + setCoreParameter("EscalationsWarnComparisonOperator", escalationsWarnComparisonOperator); +} + +std::string PutResourceMetricRuleRequest::getRuleName()const +{ + return ruleName_; +} + +void PutResourceMetricRuleRequest::setRuleName(const std::string& ruleName) +{ + ruleName_ = ruleName; + setCoreParameter("RuleName", ruleName); +} + +std::string PutResourceMetricRuleRequest::getEscalationsInfoStatistics()const +{ + return escalationsInfoStatistics_; +} + +void PutResourceMetricRuleRequest::setEscalationsInfoStatistics(const std::string& escalationsInfoStatistics) +{ + escalationsInfoStatistics_ = escalationsInfoStatistics; + setCoreParameter("EscalationsInfoStatistics", escalationsInfoStatistics); +} + +std::string PutResourceMetricRuleRequest::getEffectiveInterval()const +{ + return effectiveInterval_; +} + +void PutResourceMetricRuleRequest::setEffectiveInterval(const std::string& effectiveInterval) +{ + effectiveInterval_ = effectiveInterval; + setCoreParameter("EffectiveInterval", effectiveInterval); +} + +std::string PutResourceMetricRuleRequest::getEscalationsInfoComparisonOperator()const +{ + return escalationsInfoComparisonOperator_; +} + +void PutResourceMetricRuleRequest::setEscalationsInfoComparisonOperator(const std::string& escalationsInfoComparisonOperator) +{ + escalationsInfoComparisonOperator_ = escalationsInfoComparisonOperator; + setCoreParameter("EscalationsInfoComparisonOperator", escalationsInfoComparisonOperator); +} + +std::string PutResourceMetricRuleRequest::getNoEffectiveInterval()const +{ + return noEffectiveInterval_; +} + +void PutResourceMetricRuleRequest::setNoEffectiveInterval(const std::string& noEffectiveInterval) +{ + noEffectiveInterval_ = noEffectiveInterval; + setCoreParameter("NoEffectiveInterval", noEffectiveInterval); +} + +std::string PutResourceMetricRuleRequest::getEmailSubject()const +{ + return emailSubject_; +} + +void PutResourceMetricRuleRequest::setEmailSubject(const std::string& emailSubject) +{ + emailSubject_ = emailSubject; + setCoreParameter("EmailSubject", emailSubject); +} + +int PutResourceMetricRuleRequest::getSilenceTime()const +{ + return silenceTime_; +} + +void PutResourceMetricRuleRequest::setSilenceTime(int silenceTime) +{ + silenceTime_ = silenceTime; + setCoreParameter("SilenceTime", std::to_string(silenceTime)); +} + +std::string PutResourceMetricRuleRequest::getMetricName()const +{ + return metricName_; +} + +void PutResourceMetricRuleRequest::setMetricName(const std::string& metricName) +{ + metricName_ = metricName; + setCoreParameter("MetricName", metricName); +} + +int PutResourceMetricRuleRequest::getEscalationsWarnTimes()const +{ + return escalationsWarnTimes_; +} + +void PutResourceMetricRuleRequest::setEscalationsWarnTimes(int escalationsWarnTimes) +{ + escalationsWarnTimes_ = escalationsWarnTimes; + setCoreParameter("EscalationsWarnTimes", std::to_string(escalationsWarnTimes)); +} + +std::string PutResourceMetricRuleRequest::getPeriod()const +{ + return period_; +} + +void PutResourceMetricRuleRequest::setPeriod(const std::string& period) +{ + period_ = period; + setCoreParameter("Period", period); +} + +std::string PutResourceMetricRuleRequest::getEscalationsWarnThreshold()const +{ + return escalationsWarnThreshold_; +} + +void PutResourceMetricRuleRequest::setEscalationsWarnThreshold(const std::string& escalationsWarnThreshold) +{ + escalationsWarnThreshold_ = escalationsWarnThreshold; + setCoreParameter("EscalationsWarnThreshold", escalationsWarnThreshold); +} + +std::string PutResourceMetricRuleRequest::getContactGroups()const +{ + return contactGroups_; +} + +void PutResourceMetricRuleRequest::setContactGroups(const std::string& contactGroups) +{ + contactGroups_ = contactGroups; + setCoreParameter("ContactGroups", contactGroups); +} + +std::string PutResourceMetricRuleRequest::getEscalationsCriticalStatistics()const +{ + return escalationsCriticalStatistics_; +} + +void PutResourceMetricRuleRequest::setEscalationsCriticalStatistics(const std::string& escalationsCriticalStatistics) +{ + escalationsCriticalStatistics_ = escalationsCriticalStatistics; + setCoreParameter("EscalationsCriticalStatistics", escalationsCriticalStatistics); +} + +std::string PutResourceMetricRuleRequest::getResources()const +{ + return resources_; +} + +void PutResourceMetricRuleRequest::setResources(const std::string& resources) +{ + resources_ = resources; + setCoreParameter("Resources", resources); +} + +int PutResourceMetricRuleRequest::getEscalationsInfoTimes()const +{ + return escalationsInfoTimes_; +} + +void PutResourceMetricRuleRequest::setEscalationsInfoTimes(int escalationsInfoTimes) +{ + escalationsInfoTimes_ = escalationsInfoTimes; + setCoreParameter("EscalationsInfoTimes", std::to_string(escalationsInfoTimes)); +} + +int PutResourceMetricRuleRequest::getEscalationsCriticalTimes()const +{ + return escalationsCriticalTimes_; +} + +void PutResourceMetricRuleRequest::setEscalationsCriticalTimes(int escalationsCriticalTimes) +{ + escalationsCriticalTimes_ = escalationsCriticalTimes; + setCoreParameter("EscalationsCriticalTimes", std::to_string(escalationsCriticalTimes)); +} + +std::string PutResourceMetricRuleRequest::getEscalationsWarnStatistics()const +{ + return escalationsWarnStatistics_; +} + +void PutResourceMetricRuleRequest::setEscalationsWarnStatistics(const std::string& escalationsWarnStatistics) +{ + escalationsWarnStatistics_ = escalationsWarnStatistics; + setCoreParameter("EscalationsWarnStatistics", escalationsWarnStatistics); +} + +std::string PutResourceMetricRuleRequest::getEscalationsInfoThreshold()const +{ + return escalationsInfoThreshold_; +} + +void PutResourceMetricRuleRequest::setEscalationsInfoThreshold(const std::string& escalationsInfoThreshold) +{ + escalationsInfoThreshold_ = escalationsInfoThreshold; + setCoreParameter("EscalationsInfoThreshold", escalationsInfoThreshold); +} + +std::string PutResourceMetricRuleRequest::get_Namespace()const +{ + return _namespace_; +} + +void PutResourceMetricRuleRequest::set_Namespace(const std::string& _namespace) +{ + _namespace_ = _namespace; + setCoreParameter("_Namespace", _namespace); +} + +std::string PutResourceMetricRuleRequest::getInterval()const +{ + return interval_; +} + +void PutResourceMetricRuleRequest::setInterval(const std::string& interval) +{ + interval_ = interval; + setCoreParameter("Interval", interval); +} + +std::string PutResourceMetricRuleRequest::getRuleId()const +{ + return ruleId_; +} + +void PutResourceMetricRuleRequest::setRuleId(const std::string& ruleId) +{ + ruleId_ = ruleId; + setCoreParameter("RuleId", ruleId); +} + +std::string PutResourceMetricRuleRequest::getEscalationsCriticalComparisonOperator()const +{ + return escalationsCriticalComparisonOperator_; +} + +void PutResourceMetricRuleRequest::setEscalationsCriticalComparisonOperator(const std::string& escalationsCriticalComparisonOperator) +{ + escalationsCriticalComparisonOperator_ = escalationsCriticalComparisonOperator; + setCoreParameter("EscalationsCriticalComparisonOperator", escalationsCriticalComparisonOperator); +} + +std::string PutResourceMetricRuleRequest::getEscalationsCriticalThreshold()const +{ + return escalationsCriticalThreshold_; +} + +void PutResourceMetricRuleRequest::setEscalationsCriticalThreshold(const std::string& escalationsCriticalThreshold) +{ + escalationsCriticalThreshold_ = escalationsCriticalThreshold; + setCoreParameter("EscalationsCriticalThreshold", escalationsCriticalThreshold); +} + diff --git a/cms/src/model/PutResourceMetricRuleResult.cc b/cms/src/model/PutResourceMetricRuleResult.cc new file mode 100644 index 000000000..8cb9e79d7 --- /dev/null +++ b/cms/src/model/PutResourceMetricRuleResult.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; + +PutResourceMetricRuleResult::PutResourceMetricRuleResult() : + ServiceResult() +{} + +PutResourceMetricRuleResult::PutResourceMetricRuleResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutResourceMetricRuleResult::~PutResourceMetricRuleResult() +{} + +void PutResourceMetricRuleResult::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 PutResourceMetricRuleResult::getMessage()const +{ + return message_; +} + +std::string PutResourceMetricRuleResult::getCode()const +{ + return code_; +} + +bool PutResourceMetricRuleResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/PutResourceMetricRulesRequest.cc b/cms/src/model/PutResourceMetricRulesRequest.cc new file mode 100644 index 000000000..70d71b627 --- /dev/null +++ b/cms/src/model/PutResourceMetricRulesRequest.cc @@ -0,0 +1,68 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::PutResourceMetricRulesRequest; + +PutResourceMetricRulesRequest::PutResourceMetricRulesRequest() : + RpcServiceRequest("cms", "2019-01-01", "PutResourceMetricRules") +{ + setMethod(HttpRequest::Method::Put); +} + +PutResourceMetricRulesRequest::~PutResourceMetricRulesRequest() +{} + +std::vector PutResourceMetricRulesRequest::getRules()const +{ + return rules_; +} + +void PutResourceMetricRulesRequest::setRules(const std::vector& rules) +{ + rules_ = rules; + for(int dep1 = 0; dep1!= rules.size(); dep1++) { + auto rulesObj = rules.at(dep1); + std::string rulesObjStr = "Rules." + std::to_string(dep1); + setCoreParameter(rulesObjStr + ".Webhook", rulesObj.webhook); + setCoreParameter(rulesObjStr + ".EscalationsWarnComparisonOperator", rulesObj.escalationsWarnComparisonOperator); + setCoreParameter(rulesObjStr + ".RuleName", rulesObj.ruleName); + setCoreParameter(rulesObjStr + ".EscalationsInfoStatistics", rulesObj.escalationsInfoStatistics); + setCoreParameter(rulesObjStr + ".EffectiveInterval", rulesObj.effectiveInterval); + setCoreParameter(rulesObjStr + ".EscalationsInfoComparisonOperator", rulesObj.escalationsInfoComparisonOperator); + setCoreParameter(rulesObjStr + ".NoEffectiveInterval", rulesObj.noEffectiveInterval); + setCoreParameter(rulesObjStr + ".EmailSubject", rulesObj.emailSubject); + setCoreParameter(rulesObjStr + ".SilenceTime", std::to_string(rulesObj.silenceTime)); + setCoreParameter(rulesObjStr + ".MetricName", rulesObj.metricName); + setCoreParameter(rulesObjStr + ".EscalationsWarnTimes", std::to_string(rulesObj.escalationsWarnTimes)); + setCoreParameter(rulesObjStr + ".Period", rulesObj.period); + setCoreParameter(rulesObjStr + ".EscalationsWarnThreshold", rulesObj.escalationsWarnThreshold); + setCoreParameter(rulesObjStr + ".ContactGroups", rulesObj.contactGroups); + setCoreParameter(rulesObjStr + ".EscalationsCriticalStatistics", rulesObj.escalationsCriticalStatistics); + setCoreParameter(rulesObjStr + ".Resources", rulesObj.resources); + setCoreParameter(rulesObjStr + ".EscalationsInfoTimes", std::to_string(rulesObj.escalationsInfoTimes)); + setCoreParameter(rulesObjStr + ".EscalationsCriticalTimes", std::to_string(rulesObj.escalationsCriticalTimes)); + setCoreParameter(rulesObjStr + ".EscalationsWarnStatistics", rulesObj.escalationsWarnStatistics); + setCoreParameter(rulesObjStr + ".EscalationsInfoThreshold", rulesObj.escalationsInfoThreshold); + setCoreParameter(rulesObjStr + "._Namespace", rulesObj._namespace); + setCoreParameter(rulesObjStr + ".Interval", rulesObj.interval); + setCoreParameter(rulesObjStr + ".RuleId", rulesObj.ruleId); + setCoreParameter(rulesObjStr + ".EscalationsCriticalComparisonOperator", rulesObj.escalationsCriticalComparisonOperator); + setCoreParameter(rulesObjStr + ".EscalationsCriticalThreshold", rulesObj.escalationsCriticalThreshold); + } +} + diff --git a/cms/src/model/PutResourceMetricRulesResult.cc b/cms/src/model/PutResourceMetricRulesResult.cc new file mode 100644 index 000000000..f223ec126 --- /dev/null +++ b/cms/src/model/PutResourceMetricRulesResult.cc @@ -0,0 +1,85 @@ +/* + * 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; + +PutResourceMetricRulesResult::PutResourceMetricRulesResult() : + ServiceResult() +{} + +PutResourceMetricRulesResult::PutResourceMetricRulesResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +PutResourceMetricRulesResult::~PutResourceMetricRulesResult() +{} + +void PutResourceMetricRulesResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allFailedListResultNode = value["FailedListResult"]["Target"]; + for (auto valueFailedListResultTarget : allFailedListResultNode) + { + Target failedListResultObject; + if(!valueFailedListResultTarget["RuleId"].isNull()) + failedListResultObject.ruleId = valueFailedListResultTarget["RuleId"].asString(); + auto resultNode = value["Result"]; + if(!resultNode["Code"].isNull()) + failedListResultObject.result.code = resultNode["Code"].asString(); + if(!resultNode["Message"].isNull()) + failedListResultObject.result.message = resultNode["Message"].asString(); + if(!resultNode["Success"].isNull()) + failedListResultObject.result.success = resultNode["Success"].asString() == "true"; + failedListResult_.push_back(failedListResultObject); + } + 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::vector PutResourceMetricRulesResult::getFailedListResult()const +{ + return failedListResult_; +} + +std::string PutResourceMetricRulesResult::getMessage()const +{ + return message_; +} + +std::string PutResourceMetricRulesResult::getCode()const +{ + return code_; +} + +bool PutResourceMetricRulesResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/QueryCustomEventCountRequest.cc b/cms/src/model/QueryCustomEventCountRequest.cc deleted file mode 100644 index 077c7fb70..000000000 --- a/cms/src/model/QueryCustomEventCountRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::QueryCustomEventCountRequest; - -QueryCustomEventCountRequest::QueryCustomEventCountRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryCustomEventCount") -{} - -QueryCustomEventCountRequest::~QueryCustomEventCountRequest() -{} - -std::string QueryCustomEventCountRequest::getQueryJson()const -{ - return queryJson_; -} - -void QueryCustomEventCountRequest::setQueryJson(const std::string& queryJson) -{ - queryJson_ = queryJson; - setCoreParameter("QueryJson", queryJson); -} - diff --git a/cms/src/model/QueryCustomEventDetailRequest.cc b/cms/src/model/QueryCustomEventDetailRequest.cc deleted file mode 100644 index 6aadf7228..000000000 --- a/cms/src/model/QueryCustomEventDetailRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::QueryCustomEventDetailRequest; - -QueryCustomEventDetailRequest::QueryCustomEventDetailRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryCustomEventDetail") -{} - -QueryCustomEventDetailRequest::~QueryCustomEventDetailRequest() -{} - -std::string QueryCustomEventDetailRequest::getQueryJson()const -{ - return queryJson_; -} - -void QueryCustomEventDetailRequest::setQueryJson(const std::string& queryJson) -{ - queryJson_ = queryJson; - setCoreParameter("QueryJson", queryJson); -} - diff --git a/cms/src/model/QueryCustomEventDetailResult.cc b/cms/src/model/QueryCustomEventDetailResult.cc deleted file mode 100644 index deb871082..000000000 --- a/cms/src/model/QueryCustomEventDetailResult.cc +++ /dev/null @@ -1,72 +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; - -QueryCustomEventDetailResult::QueryCustomEventDetailResult() : - ServiceResult() -{} - -QueryCustomEventDetailResult::QueryCustomEventDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryCustomEventDetailResult::~QueryCustomEventDetailResult() -{} - -void QueryCustomEventDetailResult::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["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - -} - -std::string QueryCustomEventDetailResult::getMessage()const -{ - return message_; -} - -std::string QueryCustomEventDetailResult::getData()const -{ - return data_; -} - -std::string QueryCustomEventDetailResult::getCode()const -{ - return code_; -} - -std::string QueryCustomEventDetailResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QueryCustomMetricListRequest.cc b/cms/src/model/QueryCustomMetricListRequest.cc deleted file mode 100644 index 2b2e9a738..000000000 --- a/cms/src/model/QueryCustomMetricListRequest.cc +++ /dev/null @@ -1,104 +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 - -using AlibabaCloud::Cms::Model::QueryCustomMetricListRequest; - -QueryCustomMetricListRequest::QueryCustomMetricListRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryCustomMetricList") -{} - -QueryCustomMetricListRequest::~QueryCustomMetricListRequest() -{} - -std::string QueryCustomMetricListRequest::getGroupId()const -{ - return groupId_; -} - -void QueryCustomMetricListRequest::setGroupId(const std::string& groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", groupId); -} - -std::string QueryCustomMetricListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void QueryCustomMetricListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string QueryCustomMetricListRequest::getSize()const -{ - return size_; -} - -void QueryCustomMetricListRequest::setSize(const std::string& size) -{ - size_ = size; - setCoreParameter("Size", size); -} - -std::string QueryCustomMetricListRequest::getPage()const -{ - return page_; -} - -void QueryCustomMetricListRequest::setPage(const std::string& page) -{ - page_ = page; - setCoreParameter("Page", page); -} - -std::string QueryCustomMetricListRequest::getMetricName()const -{ - return metricName_; -} - -void QueryCustomMetricListRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setCoreParameter("MetricName", metricName); -} - -std::string QueryCustomMetricListRequest::getDimension()const -{ - return dimension_; -} - -void QueryCustomMetricListRequest::setDimension(const std::string& dimension) -{ - dimension_ = dimension; - setCoreParameter("Dimension", dimension); -} - -std::string QueryCustomMetricListRequest::getMd5()const -{ - return md5_; -} - -void QueryCustomMetricListRequest::setMd5(const std::string& md5) -{ - md5_ = md5; - setCoreParameter("Md5", md5); -} - diff --git a/cms/src/model/QueryErrorDistributionRequest.cc b/cms/src/model/QueryErrorDistributionRequest.cc deleted file mode 100644 index c3041a856..000000000 --- a/cms/src/model/QueryErrorDistributionRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::QueryErrorDistributionRequest; - -QueryErrorDistributionRequest::QueryErrorDistributionRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryErrorDistribution") -{} - -QueryErrorDistributionRequest::~QueryErrorDistributionRequest() -{} - -std::string QueryErrorDistributionRequest::getTimeRange()const -{ - return timeRange_; -} - -void QueryErrorDistributionRequest::setTimeRange(const std::string& timeRange) -{ - timeRange_ = timeRange; - setCoreParameter("TimeRange", timeRange); -} - -std::string QueryErrorDistributionRequest::getTaskId()const -{ - return taskId_; -} - -void QueryErrorDistributionRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setCoreParameter("TaskId", taskId); -} - diff --git a/cms/src/model/QueryErrorDistributionResult.cc b/cms/src/model/QueryErrorDistributionResult.cc deleted file mode 100644 index d3f6c9f06..000000000 --- a/cms/src/model/QueryErrorDistributionResult.cc +++ /dev/null @@ -1,72 +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; - -QueryErrorDistributionResult::QueryErrorDistributionResult() : - ServiceResult() -{} - -QueryErrorDistributionResult::QueryErrorDistributionResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryErrorDistributionResult::~QueryErrorDistributionResult() -{} - -void QueryErrorDistributionResult::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(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - -} - -std::string QueryErrorDistributionResult::getMessage()const -{ - return message_; -} - -std::string QueryErrorDistributionResult::getData()const -{ - return data_; -} - -std::string QueryErrorDistributionResult::getCode()const -{ - return code_; -} - -std::string QueryErrorDistributionResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QueryMetricDataRequest.cc b/cms/src/model/QueryMetricDataRequest.cc deleted file mode 100644 index 954e54399..000000000 --- a/cms/src/model/QueryMetricDataRequest.cc +++ /dev/null @@ -1,137 +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 - -using AlibabaCloud::Cms::Model::QueryMetricDataRequest; - -QueryMetricDataRequest::QueryMetricDataRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryMetricData") -{} - -QueryMetricDataRequest::~QueryMetricDataRequest() -{} - -long QueryMetricDataRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void QueryMetricDataRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string QueryMetricDataRequest::getPeriod()const -{ - return period_; -} - -void QueryMetricDataRequest::setPeriod(const std::string& period) -{ - period_ = period; - setCoreParameter("Period", period); -} - -std::string QueryMetricDataRequest::getLength()const -{ - return length_; -} - -void QueryMetricDataRequest::setLength(const std::string& length) -{ - length_ = length; - setCoreParameter("Length", length); -} - -std::string QueryMetricDataRequest::getProject()const -{ - return project_; -} - -void QueryMetricDataRequest::setProject(const std::string& project) -{ - project_ = project; - setCoreParameter("Project", project); -} - -std::string QueryMetricDataRequest::getEndTime()const -{ - return endTime_; -} - -void QueryMetricDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - -std::string QueryMetricDataRequest::getExpress()const -{ - return express_; -} - -void QueryMetricDataRequest::setExpress(const std::string& express) -{ - express_ = express; - setCoreParameter("Express", express); -} - -std::string QueryMetricDataRequest::getStartTime()const -{ - return startTime_; -} - -void QueryMetricDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string QueryMetricDataRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void QueryMetricDataRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string QueryMetricDataRequest::getMetric()const -{ - return metric_; -} - -void QueryMetricDataRequest::setMetric(const std::string& metric) -{ - metric_ = metric; - setCoreParameter("Metric", metric); -} - -std::string QueryMetricDataRequest::getDimensions()const -{ - return dimensions_; -} - -void QueryMetricDataRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - diff --git a/cms/src/model/QueryMetricLastRequest.cc b/cms/src/model/QueryMetricLastRequest.cc deleted file mode 100644 index 22a1a1fc4..000000000 --- a/cms/src/model/QueryMetricLastRequest.cc +++ /dev/null @@ -1,159 +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 - -using AlibabaCloud::Cms::Model::QueryMetricLastRequest; - -QueryMetricLastRequest::QueryMetricLastRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryMetricLast") -{} - -QueryMetricLastRequest::~QueryMetricLastRequest() -{} - -std::string QueryMetricLastRequest::getCursor()const -{ - return cursor_; -} - -void QueryMetricLastRequest::setCursor(const std::string& cursor) -{ - cursor_ = cursor; - setCoreParameter("Cursor", cursor); -} - -long QueryMetricLastRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void QueryMetricLastRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string QueryMetricLastRequest::getProject()const -{ - return project_; -} - -void QueryMetricLastRequest::setProject(const std::string& project) -{ - project_ = project; - setCoreParameter("Project", project); -} - -std::string QueryMetricLastRequest::getExpress()const -{ - return express_; -} - -void QueryMetricLastRequest::setExpress(const std::string& express) -{ - express_ = express; - setCoreParameter("Express", express); -} - -std::string QueryMetricLastRequest::getStartTime()const -{ - return startTime_; -} - -void QueryMetricLastRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string QueryMetricLastRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void QueryMetricLastRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string QueryMetricLastRequest::getPeriod()const -{ - return period_; -} - -void QueryMetricLastRequest::setPeriod(const std::string& period) -{ - period_ = period; - setCoreParameter("Period", period); -} - -std::string QueryMetricLastRequest::getLength()const -{ - return length_; -} - -void QueryMetricLastRequest::setLength(const std::string& length) -{ - length_ = length; - setCoreParameter("Length", length); -} - -std::string QueryMetricLastRequest::getEndTime()const -{ - return endTime_; -} - -void QueryMetricLastRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - -std::string QueryMetricLastRequest::getMetric()const -{ - return metric_; -} - -void QueryMetricLastRequest::setMetric(const std::string& metric) -{ - metric_ = metric; - setCoreParameter("Metric", metric); -} - -std::string QueryMetricLastRequest::getPage()const -{ - return page_; -} - -void QueryMetricLastRequest::setPage(const std::string& page) -{ - page_ = page; - setCoreParameter("Page", page); -} - -std::string QueryMetricLastRequest::getDimensions()const -{ - return dimensions_; -} - -void QueryMetricLastRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - diff --git a/cms/src/model/QueryMetricListRequest.cc b/cms/src/model/QueryMetricListRequest.cc deleted file mode 100644 index af0f87b25..000000000 --- a/cms/src/model/QueryMetricListRequest.cc +++ /dev/null @@ -1,148 +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 - -using AlibabaCloud::Cms::Model::QueryMetricListRequest; - -QueryMetricListRequest::QueryMetricListRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryMetricList") -{} - -QueryMetricListRequest::~QueryMetricListRequest() -{} - -std::string QueryMetricListRequest::getCursor()const -{ - return cursor_; -} - -void QueryMetricListRequest::setCursor(const std::string& cursor) -{ - cursor_ = cursor; - setCoreParameter("Cursor", cursor); -} - -long QueryMetricListRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void QueryMetricListRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string QueryMetricListRequest::getProject()const -{ - return project_; -} - -void QueryMetricListRequest::setProject(const std::string& project) -{ - project_ = project; - setCoreParameter("Project", project); -} - -std::string QueryMetricListRequest::getExpress()const -{ - return express_; -} - -void QueryMetricListRequest::setExpress(const std::string& express) -{ - express_ = express; - setCoreParameter("Express", express); -} - -std::string QueryMetricListRequest::getStartTime()const -{ - return startTime_; -} - -void QueryMetricListRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string QueryMetricListRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void QueryMetricListRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string QueryMetricListRequest::getPeriod()const -{ - return period_; -} - -void QueryMetricListRequest::setPeriod(const std::string& period) -{ - period_ = period; - setCoreParameter("Period", period); -} - -std::string QueryMetricListRequest::getLength()const -{ - return length_; -} - -void QueryMetricListRequest::setLength(const std::string& length) -{ - length_ = length; - setCoreParameter("Length", length); -} - -std::string QueryMetricListRequest::getEndTime()const -{ - return endTime_; -} - -void QueryMetricListRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - -std::string QueryMetricListRequest::getMetric()const -{ - return metric_; -} - -void QueryMetricListRequest::setMetric(const std::string& metric) -{ - metric_ = metric; - setCoreParameter("Metric", metric); -} - -std::string QueryMetricListRequest::getDimensions()const -{ - return dimensions_; -} - -void QueryMetricListRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - diff --git a/cms/src/model/QueryMetricMetaRequest.cc b/cms/src/model/QueryMetricMetaRequest.cc deleted file mode 100644 index 3ee5a3354..000000000 --- a/cms/src/model/QueryMetricMetaRequest.cc +++ /dev/null @@ -1,82 +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 - -using AlibabaCloud::Cms::Model::QueryMetricMetaRequest; - -QueryMetricMetaRequest::QueryMetricMetaRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryMetricMeta") -{} - -QueryMetricMetaRequest::~QueryMetricMetaRequest() -{} - -std::string QueryMetricMetaRequest::getMetric()const -{ - return metric_; -} - -void QueryMetricMetaRequest::setMetric(const std::string& metric) -{ - metric_ = metric; - setCoreParameter("Metric", metric); -} - -int QueryMetricMetaRequest::getPageSize()const -{ - return pageSize_; -} - -void QueryMetricMetaRequest::setPageSize(int pageSize) -{ - pageSize_ = pageSize; - setCoreParameter("PageSize", std::to_string(pageSize)); -} - -std::string QueryMetricMetaRequest::getProject()const -{ - return project_; -} - -void QueryMetricMetaRequest::setProject(const std::string& project) -{ - project_ = project; - setCoreParameter("Project", project); -} - -int QueryMetricMetaRequest::getPageNumber()const -{ - return pageNumber_; -} - -void QueryMetricMetaRequest::setPageNumber(int pageNumber) -{ - pageNumber_ = pageNumber; - setCoreParameter("PageNumber", std::to_string(pageNumber)); -} - -std::string QueryMetricMetaRequest::getLabels()const -{ - return labels_; -} - -void QueryMetricMetaRequest::setLabels(const std::string& labels) -{ - labels_ = labels; - setCoreParameter("Labels", labels); -} - diff --git a/cms/src/model/QueryMetricTopRequest.cc b/cms/src/model/QueryMetricTopRequest.cc deleted file mode 100644 index dd807160a..000000000 --- a/cms/src/model/QueryMetricTopRequest.cc +++ /dev/null @@ -1,159 +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 - -using AlibabaCloud::Cms::Model::QueryMetricTopRequest; - -QueryMetricTopRequest::QueryMetricTopRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryMetricTop") -{} - -QueryMetricTopRequest::~QueryMetricTopRequest() -{} - -long QueryMetricTopRequest::getResourceOwnerId()const -{ - return resourceOwnerId_; -} - -void QueryMetricTopRequest::setResourceOwnerId(long resourceOwnerId) -{ - resourceOwnerId_ = resourceOwnerId; - setCoreParameter("ResourceOwnerId", std::to_string(resourceOwnerId)); -} - -std::string QueryMetricTopRequest::getProject()const -{ - return project_; -} - -void QueryMetricTopRequest::setProject(const std::string& project) -{ - project_ = project; - setCoreParameter("Project", project); -} - -std::string QueryMetricTopRequest::getExpress()const -{ - return express_; -} - -void QueryMetricTopRequest::setExpress(const std::string& express) -{ - express_ = express; - setCoreParameter("Express", express); -} - -std::string QueryMetricTopRequest::getStartTime()const -{ - return startTime_; -} - -void QueryMetricTopRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string QueryMetricTopRequest::getAccessKeyId()const -{ - return accessKeyId_; -} - -void QueryMetricTopRequest::setAccessKeyId(const std::string& accessKeyId) -{ - accessKeyId_ = accessKeyId; - setCoreParameter("AccessKeyId", accessKeyId); -} - -std::string QueryMetricTopRequest::getPeriod()const -{ - return period_; -} - -void QueryMetricTopRequest::setPeriod(const std::string& period) -{ - period_ = period; - setCoreParameter("Period", period); -} - -std::string QueryMetricTopRequest::getLength()const -{ - return length_; -} - -void QueryMetricTopRequest::setLength(const std::string& length) -{ - length_ = length; - setCoreParameter("Length", length); -} - -std::string QueryMetricTopRequest::getEndTime()const -{ - return endTime_; -} - -void QueryMetricTopRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - -std::string QueryMetricTopRequest::getOrderby()const -{ - return orderby_; -} - -void QueryMetricTopRequest::setOrderby(const std::string& orderby) -{ - orderby_ = orderby; - setCoreParameter("Orderby", orderby); -} - -std::string QueryMetricTopRequest::getOrderDesc()const -{ - return orderDesc_; -} - -void QueryMetricTopRequest::setOrderDesc(const std::string& orderDesc) -{ - orderDesc_ = orderDesc; - setCoreParameter("OrderDesc", orderDesc); -} - -std::string QueryMetricTopRequest::getMetric()const -{ - return metric_; -} - -void QueryMetricTopRequest::setMetric(const std::string& metric) -{ - metric_ = metric; - setCoreParameter("Metric", metric); -} - -std::string QueryMetricTopRequest::getDimensions()const -{ - return dimensions_; -} - -void QueryMetricTopRequest::setDimensions(const std::string& dimensions) -{ - dimensions_ = dimensions; - setCoreParameter("Dimensions", dimensions); -} - diff --git a/cms/src/model/QueryMonitorDataRequest.cc b/cms/src/model/QueryMonitorDataRequest.cc deleted file mode 100644 index f490ac790..000000000 --- a/cms/src/model/QueryMonitorDataRequest.cc +++ /dev/null @@ -1,115 +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 - -using AlibabaCloud::Cms::Model::QueryMonitorDataRequest; - -QueryMonitorDataRequest::QueryMonitorDataRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryMonitorData") -{} - -QueryMonitorDataRequest::~QueryMonitorDataRequest() -{} - -std::string QueryMonitorDataRequest::getCursor()const -{ - return cursor_; -} - -void QueryMonitorDataRequest::setCursor(const std::string& cursor) -{ - cursor_ = cursor; - setParameter("Cursor", cursor); -} - -std::string QueryMonitorDataRequest::getPeriod()const -{ - return period_; -} - -void QueryMonitorDataRequest::setPeriod(const std::string& period) -{ - period_ = period; - setParameter("Period", period); -} - -int QueryMonitorDataRequest::getLength()const -{ - return length_; -} - -void QueryMonitorDataRequest::setLength(int length) -{ - length_ = length; - setParameter("Length", std::to_string(length)); -} - -std::string QueryMonitorDataRequest::getEndTime()const -{ - return endTime_; -} - -void QueryMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setParameter("EndTime", endTime); -} - -std::string QueryMonitorDataRequest::getStartTime()const -{ - return startTime_; -} - -void QueryMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setParameter("StartTime", startTime); -} - -std::string QueryMonitorDataRequest::getType()const -{ - return type_; -} - -void QueryMonitorDataRequest::setType(const std::string& type) -{ - type_ = type; - setParameter("Type", type); -} - -std::string QueryMonitorDataRequest::getMetricName()const -{ - return metricName_; -} - -void QueryMonitorDataRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setParameter("MetricName", metricName); -} - -std::string QueryMonitorDataRequest::getTaskId()const -{ - return taskId_; -} - -void QueryMonitorDataRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setParameter("TaskId", taskId); -} - diff --git a/cms/src/model/QueryMonitorDataResult.cc b/cms/src/model/QueryMonitorDataResult.cc deleted file mode 100644 index 348acf39c..000000000 --- a/cms/src/model/QueryMonitorDataResult.cc +++ /dev/null @@ -1,87 +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; - -QueryMonitorDataResult::QueryMonitorDataResult() : - ServiceResult() -{} - -QueryMonitorDataResult::QueryMonitorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryMonitorDataResult::~QueryMonitorDataResult() -{} - -void QueryMonitorDataResult::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(); - if(!value["TraceId"].isNull()) - traceId_ = value["TraceId"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["Cursor"].isNull()) - cursor_ = value["Cursor"].asString(); - -} - -std::string QueryMonitorDataResult::getMessage()const -{ - return message_; -} - -std::string QueryMonitorDataResult::getTraceId()const -{ - return traceId_; -} - -std::string QueryMonitorDataResult::getData()const -{ - return data_; -} - -std::string QueryMonitorDataResult::getCursor()const -{ - return cursor_; -} - -std::string QueryMonitorDataResult::getCode()const -{ - return code_; -} - -std::string QueryMonitorDataResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QueryStaticsAvailabilityRequest.cc b/cms/src/model/QueryStaticsAvailabilityRequest.cc deleted file mode 100644 index 56e4ad765..000000000 --- a/cms/src/model/QueryStaticsAvailabilityRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::QueryStaticsAvailabilityRequest; - -QueryStaticsAvailabilityRequest::QueryStaticsAvailabilityRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryStaticsAvailability") -{} - -QueryStaticsAvailabilityRequest::~QueryStaticsAvailabilityRequest() -{} - -std::string QueryStaticsAvailabilityRequest::getTimeRange()const -{ - return timeRange_; -} - -void QueryStaticsAvailabilityRequest::setTimeRange(const std::string& timeRange) -{ - timeRange_ = timeRange; - setCoreParameter("TimeRange", timeRange); -} - -std::string QueryStaticsAvailabilityRequest::getTaskId()const -{ - return taskId_; -} - -void QueryStaticsAvailabilityRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setCoreParameter("TaskId", taskId); -} - diff --git a/cms/src/model/QueryStaticsAvailabilityResult.cc b/cms/src/model/QueryStaticsAvailabilityResult.cc deleted file mode 100644 index eac2bceea..000000000 --- a/cms/src/model/QueryStaticsAvailabilityResult.cc +++ /dev/null @@ -1,72 +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; - -QueryStaticsAvailabilityResult::QueryStaticsAvailabilityResult() : - ServiceResult() -{} - -QueryStaticsAvailabilityResult::QueryStaticsAvailabilityResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryStaticsAvailabilityResult::~QueryStaticsAvailabilityResult() -{} - -void QueryStaticsAvailabilityResult::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(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - -} - -std::string QueryStaticsAvailabilityResult::getMessage()const -{ - return message_; -} - -std::string QueryStaticsAvailabilityResult::getData()const -{ - return data_; -} - -std::string QueryStaticsAvailabilityResult::getCode()const -{ - return code_; -} - -std::string QueryStaticsAvailabilityResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QueryStaticsErrorRateRequest.cc b/cms/src/model/QueryStaticsErrorRateRequest.cc deleted file mode 100644 index 6bfa366bd..000000000 --- a/cms/src/model/QueryStaticsErrorRateRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::QueryStaticsErrorRateRequest; - -QueryStaticsErrorRateRequest::QueryStaticsErrorRateRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryStaticsErrorRate") -{} - -QueryStaticsErrorRateRequest::~QueryStaticsErrorRateRequest() -{} - -std::string QueryStaticsErrorRateRequest::getTimeRange()const -{ - return timeRange_; -} - -void QueryStaticsErrorRateRequest::setTimeRange(const std::string& timeRange) -{ - timeRange_ = timeRange; - setCoreParameter("TimeRange", timeRange); -} - -std::string QueryStaticsErrorRateRequest::getTaskId()const -{ - return taskId_; -} - -void QueryStaticsErrorRateRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setCoreParameter("TaskId", taskId); -} - diff --git a/cms/src/model/QueryStaticsErrorRateResult.cc b/cms/src/model/QueryStaticsErrorRateResult.cc deleted file mode 100644 index 033eb24f0..000000000 --- a/cms/src/model/QueryStaticsErrorRateResult.cc +++ /dev/null @@ -1,72 +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; - -QueryStaticsErrorRateResult::QueryStaticsErrorRateResult() : - ServiceResult() -{} - -QueryStaticsErrorRateResult::QueryStaticsErrorRateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryStaticsErrorRateResult::~QueryStaticsErrorRateResult() -{} - -void QueryStaticsErrorRateResult::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(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - -} - -std::string QueryStaticsErrorRateResult::getMessage()const -{ - return message_; -} - -std::string QueryStaticsErrorRateResult::getData()const -{ - return data_; -} - -std::string QueryStaticsErrorRateResult::getCode()const -{ - return code_; -} - -std::string QueryStaticsErrorRateResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QueryStaticsResponseTimeRequest.cc b/cms/src/model/QueryStaticsResponseTimeRequest.cc deleted file mode 100644 index e18f83fa8..000000000 --- a/cms/src/model/QueryStaticsResponseTimeRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::QueryStaticsResponseTimeRequest; - -QueryStaticsResponseTimeRequest::QueryStaticsResponseTimeRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryStaticsResponseTime") -{} - -QueryStaticsResponseTimeRequest::~QueryStaticsResponseTimeRequest() -{} - -std::string QueryStaticsResponseTimeRequest::getTimeRange()const -{ - return timeRange_; -} - -void QueryStaticsResponseTimeRequest::setTimeRange(const std::string& timeRange) -{ - timeRange_ = timeRange; - setCoreParameter("TimeRange", timeRange); -} - -std::string QueryStaticsResponseTimeRequest::getTaskId()const -{ - return taskId_; -} - -void QueryStaticsResponseTimeRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setCoreParameter("TaskId", taskId); -} - diff --git a/cms/src/model/QueryStaticsResponseTimeResult.cc b/cms/src/model/QueryStaticsResponseTimeResult.cc deleted file mode 100644 index c1e3f98ff..000000000 --- a/cms/src/model/QueryStaticsResponseTimeResult.cc +++ /dev/null @@ -1,72 +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; - -QueryStaticsResponseTimeResult::QueryStaticsResponseTimeResult() : - ServiceResult() -{} - -QueryStaticsResponseTimeResult::QueryStaticsResponseTimeResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryStaticsResponseTimeResult::~QueryStaticsResponseTimeResult() -{} - -void QueryStaticsResponseTimeResult::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(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - -} - -std::string QueryStaticsResponseTimeResult::getMessage()const -{ - return message_; -} - -std::string QueryStaticsResponseTimeResult::getData()const -{ - return data_; -} - -std::string QueryStaticsResponseTimeResult::getCode()const -{ - return code_; -} - -std::string QueryStaticsResponseTimeResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QuerySystemEventCountRequest.cc b/cms/src/model/QuerySystemEventCountRequest.cc deleted file mode 100644 index d0925c81d..000000000 --- a/cms/src/model/QuerySystemEventCountRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::QuerySystemEventCountRequest; - -QuerySystemEventCountRequest::QuerySystemEventCountRequest() : - RpcServiceRequest("cms", "2018-03-08", "QuerySystemEventCount") -{} - -QuerySystemEventCountRequest::~QuerySystemEventCountRequest() -{} - -std::string QuerySystemEventCountRequest::getQueryJson()const -{ - return queryJson_; -} - -void QuerySystemEventCountRequest::setQueryJson(const std::string& queryJson) -{ - queryJson_ = queryJson; - setCoreParameter("QueryJson", queryJson); -} - diff --git a/cms/src/model/QuerySystemEventDemoRequest.cc b/cms/src/model/QuerySystemEventDemoRequest.cc deleted file mode 100644 index 15f3c49b8..000000000 --- a/cms/src/model/QuerySystemEventDemoRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::QuerySystemEventDemoRequest; - -QuerySystemEventDemoRequest::QuerySystemEventDemoRequest() : - RpcServiceRequest("cms", "2018-03-08", "QuerySystemEventDemo") -{} - -QuerySystemEventDemoRequest::~QuerySystemEventDemoRequest() -{} - -std::string QuerySystemEventDemoRequest::getProduct()const -{ - return product_; -} - -void QuerySystemEventDemoRequest::setProduct(const std::string& product) -{ - product_ = product; - setCoreParameter("Product", product); -} - -std::string QuerySystemEventDemoRequest::getEventName()const -{ - return eventName_; -} - -void QuerySystemEventDemoRequest::setEventName(const std::string& eventName) -{ - eventName_ = eventName; - setCoreParameter("EventName", eventName); -} - diff --git a/cms/src/model/QuerySystemEventDemoResult.cc b/cms/src/model/QuerySystemEventDemoResult.cc deleted file mode 100644 index 21f73235c..000000000 --- a/cms/src/model/QuerySystemEventDemoResult.cc +++ /dev/null @@ -1,72 +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; - -QuerySystemEventDemoResult::QuerySystemEventDemoResult() : - ServiceResult() -{} - -QuerySystemEventDemoResult::QuerySystemEventDemoResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QuerySystemEventDemoResult::~QuerySystemEventDemoResult() -{} - -void QuerySystemEventDemoResult::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["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - -} - -std::string QuerySystemEventDemoResult::getMessage()const -{ - return message_; -} - -std::string QuerySystemEventDemoResult::getData()const -{ - return data_; -} - -std::string QuerySystemEventDemoResult::getCode()const -{ - return code_; -} - -std::string QuerySystemEventDemoResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QuerySystemEventDetailRequest.cc b/cms/src/model/QuerySystemEventDetailRequest.cc deleted file mode 100644 index 003fd7160..000000000 --- a/cms/src/model/QuerySystemEventDetailRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::QuerySystemEventDetailRequest; - -QuerySystemEventDetailRequest::QuerySystemEventDetailRequest() : - RpcServiceRequest("cms", "2018-03-08", "QuerySystemEventDetail") -{} - -QuerySystemEventDetailRequest::~QuerySystemEventDetailRequest() -{} - -std::string QuerySystemEventDetailRequest::getQueryJson()const -{ - return queryJson_; -} - -void QuerySystemEventDetailRequest::setQueryJson(const std::string& queryJson) -{ - queryJson_ = queryJson; - setCoreParameter("QueryJson", queryJson); -} - diff --git a/cms/src/model/QuerySystemEventDetailResult.cc b/cms/src/model/QuerySystemEventDetailResult.cc deleted file mode 100644 index f645c87fc..000000000 --- a/cms/src/model/QuerySystemEventDetailResult.cc +++ /dev/null @@ -1,72 +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; - -QuerySystemEventDetailResult::QuerySystemEventDetailResult() : - ServiceResult() -{} - -QuerySystemEventDetailResult::QuerySystemEventDetailResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QuerySystemEventDetailResult::~QuerySystemEventDetailResult() -{} - -void QuerySystemEventDetailResult::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["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - -} - -std::string QuerySystemEventDetailResult::getMessage()const -{ - return message_; -} - -std::string QuerySystemEventDetailResult::getData()const -{ - return data_; -} - -std::string QuerySystemEventDetailResult::getCode()const -{ - return code_; -} - -std::string QuerySystemEventDetailResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QuerySystemEventHistogramRequest.cc b/cms/src/model/QuerySystemEventHistogramRequest.cc deleted file mode 100644 index bd59463cc..000000000 --- a/cms/src/model/QuerySystemEventHistogramRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::QuerySystemEventHistogramRequest; - -QuerySystemEventHistogramRequest::QuerySystemEventHistogramRequest() : - RpcServiceRequest("cms", "2018-03-08", "QuerySystemEventHistogram") -{} - -QuerySystemEventHistogramRequest::~QuerySystemEventHistogramRequest() -{} - -std::string QuerySystemEventHistogramRequest::getQueryJson()const -{ - return queryJson_; -} - -void QuerySystemEventHistogramRequest::setQueryJson(const std::string& queryJson) -{ - queryJson_ = queryJson; - setCoreParameter("QueryJson", queryJson); -} - diff --git a/cms/src/model/QuerySystemEventHistogramResult.cc b/cms/src/model/QuerySystemEventHistogramResult.cc deleted file mode 100644 index 46c5e3fd4..000000000 --- a/cms/src/model/QuerySystemEventHistogramResult.cc +++ /dev/null @@ -1,72 +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; - -QuerySystemEventHistogramResult::QuerySystemEventHistogramResult() : - ServiceResult() -{} - -QuerySystemEventHistogramResult::QuerySystemEventHistogramResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QuerySystemEventHistogramResult::~QuerySystemEventHistogramResult() -{} - -void QuerySystemEventHistogramResult::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["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString(); - -} - -std::string QuerySystemEventHistogramResult::getMessage()const -{ - return message_; -} - -std::string QuerySystemEventHistogramResult::getData()const -{ - return data_; -} - -std::string QuerySystemEventHistogramResult::getCode()const -{ - return code_; -} - -std::string QuerySystemEventHistogramResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QueryTaskConfigResult.cc b/cms/src/model/QueryTaskConfigResult.cc deleted file mode 100644 index c39e27f34..000000000 --- a/cms/src/model/QueryTaskConfigResult.cc +++ /dev/null @@ -1,72 +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; - -QueryTaskConfigResult::QueryTaskConfigResult() : - ServiceResult() -{} - -QueryTaskConfigResult::QueryTaskConfigResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryTaskConfigResult::~QueryTaskConfigResult() -{} - -void QueryTaskConfigResult::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(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - -} - -std::string QueryTaskConfigResult::getMessage()const -{ - return message_; -} - -std::string QueryTaskConfigResult::getData()const -{ - return data_; -} - -std::string QueryTaskConfigResult::getCode()const -{ - return code_; -} - -std::string QueryTaskConfigResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/QueryTaskMonitorDataRequest.cc b/cms/src/model/QueryTaskMonitorDataRequest.cc deleted file mode 100644 index 8daaffcd6..000000000 --- a/cms/src/model/QueryTaskMonitorDataRequest.cc +++ /dev/null @@ -1,115 +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 - -using AlibabaCloud::Cms::Model::QueryTaskMonitorDataRequest; - -QueryTaskMonitorDataRequest::QueryTaskMonitorDataRequest() : - RpcServiceRequest("cms", "2018-03-08", "QueryTaskMonitorData") -{} - -QueryTaskMonitorDataRequest::~QueryTaskMonitorDataRequest() -{} - -std::string QueryTaskMonitorDataRequest::getCursor()const -{ - return cursor_; -} - -void QueryTaskMonitorDataRequest::setCursor(const std::string& cursor) -{ - cursor_ = cursor; - setCoreParameter("Cursor", cursor); -} - -std::string QueryTaskMonitorDataRequest::getStartTime()const -{ - return startTime_; -} - -void QueryTaskMonitorDataRequest::setStartTime(const std::string& startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", startTime); -} - -std::string QueryTaskMonitorDataRequest::getType()const -{ - return type_; -} - -void QueryTaskMonitorDataRequest::setType(const std::string& type) -{ - type_ = type; - setCoreParameter("Type", type); -} - -std::string QueryTaskMonitorDataRequest::getMetricName()const -{ - return metricName_; -} - -void QueryTaskMonitorDataRequest::setMetricName(const std::string& metricName) -{ - metricName_ = metricName; - setCoreParameter("MetricName", metricName); -} - -std::string QueryTaskMonitorDataRequest::getTaskId()const -{ - return taskId_; -} - -void QueryTaskMonitorDataRequest::setTaskId(const std::string& taskId) -{ - taskId_ = taskId; - setCoreParameter("TaskId", taskId); -} - -std::string QueryTaskMonitorDataRequest::getPeriod()const -{ - return period_; -} - -void QueryTaskMonitorDataRequest::setPeriod(const std::string& period) -{ - period_ = period; - setCoreParameter("Period", period); -} - -int QueryTaskMonitorDataRequest::getLength()const -{ - return length_; -} - -void QueryTaskMonitorDataRequest::setLength(int length) -{ - length_ = length; - setCoreParameter("Length", std::to_string(length)); -} - -std::string QueryTaskMonitorDataRequest::getEndTime()const -{ - return endTime_; -} - -void QueryTaskMonitorDataRequest::setEndTime(const std::string& endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", endTime); -} - diff --git a/cms/src/model/QueryTaskMonitorDataResult.cc b/cms/src/model/QueryTaskMonitorDataResult.cc deleted file mode 100644 index ab8a6f26c..000000000 --- a/cms/src/model/QueryTaskMonitorDataResult.cc +++ /dev/null @@ -1,86 +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; - -QueryTaskMonitorDataResult::QueryTaskMonitorDataResult() : - ServiceResult() -{} - -QueryTaskMonitorDataResult::QueryTaskMonitorDataResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -QueryTaskMonitorDataResult::~QueryTaskMonitorDataResult() -{} - -void QueryTaskMonitorDataResult::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(); - if(!value["TraceId"].isNull()) - traceId_ = value["TraceId"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - if(!value["Cursor"].isNull()) - cursor_ = value["Cursor"].asString(); - -} - -std::string QueryTaskMonitorDataResult::getMessage()const -{ - return message_; -} - -std::string QueryTaskMonitorDataResult::getTraceId()const -{ - return traceId_; -} - -std::string QueryTaskMonitorDataResult::getData()const -{ - return data_; -} - -std::string QueryTaskMonitorDataResult::getCursor()const -{ - return cursor_; -} - -std::string QueryTaskMonitorDataResult::getCode()const -{ - return code_; -} - -std::string QueryTaskMonitorDataResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/RemoveMetricRuleTargetsRequest.cc b/cms/src/model/RemoveMetricRuleTargetsRequest.cc deleted file mode 100644 index 5ce287545..000000000 --- a/cms/src/model/RemoveMetricRuleTargetsRequest.cc +++ /dev/null @@ -1,74 +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 - -using AlibabaCloud::Cms::Model::RemoveMetricRuleTargetsRequest; - -RemoveMetricRuleTargetsRequest::RemoveMetricRuleTargetsRequest() : - RpcServiceRequest("cms", "2018-03-08", "RemoveMetricRuleTargets") -{} - -RemoveMetricRuleTargetsRequest::~RemoveMetricRuleTargetsRequest() -{} - -std::vector RemoveMetricRuleTargetsRequest::getTargetIds()const -{ - return targetIds_; -} - -void RemoveMetricRuleTargetsRequest::setTargetIds(const std::vector& targetIds) -{ - targetIds_ = targetIds; - for(int i = 0; i!= targetIds.size(); i++) - setCoreParameter("TargetIds."+ std::to_string(i), targetIds.at(i)); -} - -std::string RemoveMetricRuleTargetsRequest::getRuleName()const -{ - return ruleName_; -} - -void RemoveMetricRuleTargetsRequest::setRuleName(const std::string& ruleName) -{ - ruleName_ = ruleName; - setCoreParameter("RuleName", ruleName); -} - -std::vector RemoveMetricRuleTargetsRequest::getContactGroupTargetIds()const -{ - return contactGroupTargetIds_; -} - -void RemoveMetricRuleTargetsRequest::setContactGroupTargetIds(const std::vector& contactGroupTargetIds) -{ - contactGroupTargetIds_ = contactGroupTargetIds; - for(int i = 0; i!= contactGroupTargetIds.size(); i++) - setCoreParameter("ContactGroupTargetIds."+ std::to_string(i), contactGroupTargetIds.at(i)); -} - -std::vector RemoveMetricRuleTargetsRequest::getWebhookTargetIds()const -{ - return webhookTargetIds_; -} - -void RemoveMetricRuleTargetsRequest::setWebhookTargetIds(const std::vector& webhookTargetIds) -{ - webhookTargetIds_ = webhookTargetIds; - for(int i = 0; i!= webhookTargetIds.size(); i++) - setCoreParameter("WebhookTargetIds."+ std::to_string(i), webhookTargetIds.at(i)); -} - diff --git a/cms/src/model/RemoveTagsRequest.cc b/cms/src/model/RemoveTagsRequest.cc new file mode 100644 index 000000000..e6e64790f --- /dev/null +++ b/cms/src/model/RemoveTagsRequest.cc @@ -0,0 +1,58 @@ +/* + * Copyright 2009-2017 Alibaba Cloud All rights reserved. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * http://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +#include + +using AlibabaCloud::Cms::Model::RemoveTagsRequest; + +RemoveTagsRequest::RemoveTagsRequest() : + RpcServiceRequest("cms", "2019-01-01", "RemoveTags") +{ + setMethod(HttpRequest::Method::Post); +} + +RemoveTagsRequest::~RemoveTagsRequest() +{} + +std::vector RemoveTagsRequest::getGroupIds()const +{ + return groupIds_; +} + +void RemoveTagsRequest::setGroupIds(const std::vector& groupIds) +{ + groupIds_ = groupIds; + for(int dep1 = 0; dep1!= groupIds.size(); dep1++) { + setCoreParameter("GroupIds."+ std::to_string(dep1), groupIds.at(dep1)); + } +} + +std::vector RemoveTagsRequest::getTag()const +{ + return tag_; +} + +void RemoveTagsRequest::setTag(const std::vector& tag) +{ + tag_ = tag; + for(int dep1 = 0; dep1!= tag.size(); dep1++) { + auto tagObj = tag.at(dep1); + std::string tagObjStr = "Tag." + std::to_string(dep1); + setCoreParameter(tagObjStr + ".Value", tagObj.value); + setCoreParameter(tagObjStr + ".Key", tagObj.key); + } +} + diff --git a/cms/src/model/RemoveTagsResult.cc b/cms/src/model/RemoveTagsResult.cc new file mode 100644 index 000000000..31fdd2174 --- /dev/null +++ b/cms/src/model/RemoveTagsResult.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 +#include + +using namespace AlibabaCloud::Cms; +using namespace AlibabaCloud::Cms::Model; + +RemoveTagsResult::RemoveTagsResult() : + ServiceResult() +{} + +RemoveTagsResult::RemoveTagsResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +RemoveTagsResult::~RemoveTagsResult() +{} + +void RemoveTagsResult::parse(const std::string &payload) +{ + Json::Reader reader; + Json::Value value; + reader.parse(payload, value); + setRequestId(value["RequestId"].asString()); + auto allTag = value["Tag"]["Tags"]; + for (const auto &item : allTag) + tag_.push_back(item.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 RemoveTagsResult::getMessage()const +{ + return message_; +} + +std::vector RemoveTagsResult::getTag()const +{ + return tag_; +} + +std::string RemoveTagsResult::getCode()const +{ + return code_; +} + +bool RemoveTagsResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/SendDryRunSystemEventRequest.cc b/cms/src/model/SendDryRunSystemEventRequest.cc index 9c7ac0baa..c1895a4a3 100644 --- a/cms/src/model/SendDryRunSystemEventRequest.cc +++ b/cms/src/model/SendDryRunSystemEventRequest.cc @@ -19,8 +19,10 @@ using AlibabaCloud::Cms::Model::SendDryRunSystemEventRequest; SendDryRunSystemEventRequest::SendDryRunSystemEventRequest() : - RpcServiceRequest("cms", "2018-03-08", "SendDryRunSystemEvent") -{} + RpcServiceRequest("cms", "2019-01-01", "SendDryRunSystemEvent") +{ + setMethod(HttpRequest::Method::Post); +} SendDryRunSystemEventRequest::~SendDryRunSystemEventRequest() {} diff --git a/cms/src/model/SendDryRunSystemEventResult.cc b/cms/src/model/SendDryRunSystemEventResult.cc index ed8455068..41eaedbfc 100644 --- a/cms/src/model/SendDryRunSystemEventResult.cc +++ b/cms/src/model/SendDryRunSystemEventResult.cc @@ -43,8 +43,6 @@ void SendDryRunSystemEventResult::parse(const std::string &payload) code_ = value["Code"].asString(); if(!value["Message"].isNull()) message_ = value["Message"].asString(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); if(!value["Success"].isNull()) success_ = value["Success"].asString(); @@ -55,11 +53,6 @@ std::string SendDryRunSystemEventResult::getMessage()const return message_; } -std::string SendDryRunSystemEventResult::getData()const -{ - return data_; -} - std::string SendDryRunSystemEventResult::getCode()const { return code_; diff --git a/cms/src/model/StopTasksResult.cc b/cms/src/model/StopTasksResult.cc deleted file mode 100644 index 3e12a018b..000000000 --- a/cms/src/model/StopTasksResult.cc +++ /dev/null @@ -1,72 +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; - -StopTasksResult::StopTasksResult() : - ServiceResult() -{} - -StopTasksResult::StopTasksResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -StopTasksResult::~StopTasksResult() -{} - -void StopTasksResult::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(); - if(!value["Data"].isNull()) - data_ = value["Data"].asString(); - -} - -std::string StopTasksResult::getMessage()const -{ - return message_; -} - -std::string StopTasksResult::getData()const -{ - return data_; -} - -std::string StopTasksResult::getCode()const -{ - return code_; -} - -std::string StopTasksResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/TaskConfigCreateRequest.cc b/cms/src/model/TaskConfigCreateRequest.cc deleted file mode 100644 index d60657e84..000000000 --- a/cms/src/model/TaskConfigCreateRequest.cc +++ /dev/null @@ -1,116 +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 - -using AlibabaCloud::Cms::Model::TaskConfigCreateRequest; - -TaskConfigCreateRequest::TaskConfigCreateRequest() : - RpcServiceRequest("cms", "2018-03-08", "TaskConfigCreate") -{} - -TaskConfigCreateRequest::~TaskConfigCreateRequest() -{} - -std::vector TaskConfigCreateRequest::getInstanceList()const -{ - return instanceList_; -} - -void TaskConfigCreateRequest::setInstanceList(const std::vector& instanceList) -{ - instanceList_ = instanceList; - for(int i = 0; i!= instanceList.size(); i++) - setCoreParameter("InstanceList."+ std::to_string(i), instanceList.at(i)); -} - -std::string TaskConfigCreateRequest::getJsonData()const -{ - return jsonData_; -} - -void TaskConfigCreateRequest::setJsonData(const std::string& jsonData) -{ - jsonData_ = jsonData; - setCoreParameter("JsonData", jsonData); -} - -std::string TaskConfigCreateRequest::getTaskType()const -{ - return taskType_; -} - -void TaskConfigCreateRequest::setTaskType(const std::string& taskType) -{ - taskType_ = taskType; - setCoreParameter("TaskType", taskType); -} - -std::string TaskConfigCreateRequest::getAlertConfig()const -{ - return alertConfig_; -} - -void TaskConfigCreateRequest::setAlertConfig(const std::string& alertConfig) -{ - alertConfig_ = alertConfig; - setCoreParameter("AlertConfig", alertConfig); -} - -long TaskConfigCreateRequest::getGroupId()const -{ - return groupId_; -} - -void TaskConfigCreateRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -std::string TaskConfigCreateRequest::getTaskName()const -{ - return taskName_; -} - -void TaskConfigCreateRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setCoreParameter("TaskName", taskName); -} - -std::string TaskConfigCreateRequest::getGroupName()const -{ - return groupName_; -} - -void TaskConfigCreateRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setCoreParameter("GroupName", groupName); -} - -std::string TaskConfigCreateRequest::getTaskScope()const -{ - return taskScope_; -} - -void TaskConfigCreateRequest::setTaskScope(const std::string& taskScope) -{ - taskScope_ = taskScope; - setCoreParameter("TaskScope", taskScope); -} - diff --git a/cms/src/model/TaskConfigCreateResult.cc b/cms/src/model/TaskConfigCreateResult.cc deleted file mode 100644 index 3264e23cf..000000000 --- a/cms/src/model/TaskConfigCreateResult.cc +++ /dev/null @@ -1,72 +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; - -TaskConfigCreateResult::TaskConfigCreateResult() : - ServiceResult() -{} - -TaskConfigCreateResult::TaskConfigCreateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TaskConfigCreateResult::~TaskConfigCreateResult() -{} - -void TaskConfigCreateResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["TaskId"].isNull()) - taskId_ = std::stol(value["TaskId"].asString()); - -} - -long TaskConfigCreateResult::getTaskId()const -{ - return taskId_; -} - -int TaskConfigCreateResult::getErrorCode()const -{ - return errorCode_; -} - -std::string TaskConfigCreateResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool TaskConfigCreateResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/TaskConfigDeleteRequest.cc b/cms/src/model/TaskConfigDeleteRequest.cc deleted file mode 100644 index 2de68fce9..000000000 --- a/cms/src/model/TaskConfigDeleteRequest.cc +++ /dev/null @@ -1,39 +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 - -using AlibabaCloud::Cms::Model::TaskConfigDeleteRequest; - -TaskConfigDeleteRequest::TaskConfigDeleteRequest() : - RpcServiceRequest("cms", "2018-03-08", "TaskConfigDelete") -{} - -TaskConfigDeleteRequest::~TaskConfigDeleteRequest() -{} - -std::vector TaskConfigDeleteRequest::getIdList()const -{ - return idList_; -} - -void TaskConfigDeleteRequest::setIdList(const std::vector& idList) -{ - idList_ = idList; - for(int i = 0; i!= idList.size(); i++) - setCoreParameter("IdList."+ std::to_string(i), std::to_string(idList.at(i))); -} - diff --git a/cms/src/model/TaskConfigDeleteResult.cc b/cms/src/model/TaskConfigDeleteResult.cc deleted file mode 100644 index 696df602e..000000000 --- a/cms/src/model/TaskConfigDeleteResult.cc +++ /dev/null @@ -1,65 +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; - -TaskConfigDeleteResult::TaskConfigDeleteResult() : - ServiceResult() -{} - -TaskConfigDeleteResult::TaskConfigDeleteResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TaskConfigDeleteResult::~TaskConfigDeleteResult() -{} - -void TaskConfigDeleteResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -int TaskConfigDeleteResult::getErrorCode()const -{ - return errorCode_; -} - -std::string TaskConfigDeleteResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool TaskConfigDeleteResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/TaskConfigEnableRequest.cc b/cms/src/model/TaskConfigEnableRequest.cc deleted file mode 100644 index b9ec69d2a..000000000 --- a/cms/src/model/TaskConfigEnableRequest.cc +++ /dev/null @@ -1,50 +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 - -using AlibabaCloud::Cms::Model::TaskConfigEnableRequest; - -TaskConfigEnableRequest::TaskConfigEnableRequest() : - RpcServiceRequest("cms", "2018-03-08", "TaskConfigEnable") -{} - -TaskConfigEnableRequest::~TaskConfigEnableRequest() -{} - -std::vector TaskConfigEnableRequest::getIdList()const -{ - return idList_; -} - -void TaskConfigEnableRequest::setIdList(const std::vector& idList) -{ - idList_ = idList; - for(int i = 0; i!= idList.size(); i++) - setCoreParameter("IdList."+ std::to_string(i), std::to_string(idList.at(i))); -} - -bool TaskConfigEnableRequest::getEnabled()const -{ - return enabled_; -} - -void TaskConfigEnableRequest::setEnabled(bool enabled) -{ - enabled_ = enabled; - setCoreParameter("Enabled", enabled ? "true" : "false"); -} - diff --git a/cms/src/model/TaskConfigEnableResult.cc b/cms/src/model/TaskConfigEnableResult.cc deleted file mode 100644 index 60a9eed63..000000000 --- a/cms/src/model/TaskConfigEnableResult.cc +++ /dev/null @@ -1,65 +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; - -TaskConfigEnableResult::TaskConfigEnableResult() : - ServiceResult() -{} - -TaskConfigEnableResult::TaskConfigEnableResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TaskConfigEnableResult::~TaskConfigEnableResult() -{} - -void TaskConfigEnableResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -int TaskConfigEnableResult::getErrorCode()const -{ - return errorCode_; -} - -std::string TaskConfigEnableResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool TaskConfigEnableResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/TaskConfigListResult.cc b/cms/src/model/TaskConfigListResult.cc deleted file mode 100644 index 1d3cd90a5..000000000 --- a/cms/src/model/TaskConfigListResult.cc +++ /dev/null @@ -1,125 +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; - -TaskConfigListResult::TaskConfigListResult() : - ServiceResult() -{} - -TaskConfigListResult::TaskConfigListResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TaskConfigListResult::~TaskConfigListResult() -{} - -void TaskConfigListResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - auto allTaskListNode = value["TaskList"]["NodeTaskConfig"]; - for (auto valueTaskListNodeTaskConfig : allTaskListNode) - { - NodeTaskConfig taskListObject; - if(!valueTaskListNodeTaskConfig["Id"].isNull()) - taskListObject.id = std::stol(valueTaskListNodeTaskConfig["Id"].asString()); - if(!valueTaskListNodeTaskConfig["TaskName"].isNull()) - taskListObject.taskName = valueTaskListNodeTaskConfig["TaskName"].asString(); - if(!valueTaskListNodeTaskConfig["TaskType"].isNull()) - taskListObject.taskType = valueTaskListNodeTaskConfig["TaskType"].asString(); - if(!valueTaskListNodeTaskConfig["TaskScope"].isNull()) - taskListObject.taskScope = valueTaskListNodeTaskConfig["TaskScope"].asString(); - if(!valueTaskListNodeTaskConfig["Disabled"].isNull()) - taskListObject.disabled = valueTaskListNodeTaskConfig["Disabled"].asString() == "true"; - if(!valueTaskListNodeTaskConfig["GroupId"].isNull()) - taskListObject.groupId = std::stol(valueTaskListNodeTaskConfig["GroupId"].asString()); - if(!valueTaskListNodeTaskConfig["GroupName"].isNull()) - taskListObject.groupName = valueTaskListNodeTaskConfig["GroupName"].asString(); - if(!valueTaskListNodeTaskConfig["JsonData"].isNull()) - taskListObject.jsonData = valueTaskListNodeTaskConfig["JsonData"].asString(); - if(!valueTaskListNodeTaskConfig["AlertConfig"].isNull()) - taskListObject.alertConfig = valueTaskListNodeTaskConfig["AlertConfig"].asString(); - auto allInstanceList = value["InstanceList"]["String"]; - for (auto value : allInstanceList) - taskListObject.instanceList.push_back(value.asString()); - taskList_.push_back(taskListObject); - } - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - if(!value["PageNumber"].isNull()) - pageNumber_ = std::stoi(value["PageNumber"].asString()); - if(!value["PageSize"].isNull()) - pageSize_ = std::stoi(value["PageSize"].asString()); - if(!value["PageTotal"].isNull()) - pageTotal_ = std::stoi(value["PageTotal"].asString()); - if(!value["Total"].isNull()) - total_ = std::stoi(value["Total"].asString()); - -} - -int TaskConfigListResult::getPageSize()const -{ - return pageSize_; -} - -int TaskConfigListResult::getPageNumber()const -{ - return pageNumber_; -} - -int TaskConfigListResult::getPageTotal()const -{ - return pageTotal_; -} - -std::vector TaskConfigListResult::getTaskList()const -{ - return taskList_; -} - -int TaskConfigListResult::getTotal()const -{ - return total_; -} - -int TaskConfigListResult::getErrorCode()const -{ - return errorCode_; -} - -std::string TaskConfigListResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool TaskConfigListResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/TaskConfigModifyRequest.cc b/cms/src/model/TaskConfigModifyRequest.cc deleted file mode 100644 index 8562ff983..000000000 --- a/cms/src/model/TaskConfigModifyRequest.cc +++ /dev/null @@ -1,127 +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 - -using AlibabaCloud::Cms::Model::TaskConfigModifyRequest; - -TaskConfigModifyRequest::TaskConfigModifyRequest() : - RpcServiceRequest("cms", "2018-03-08", "TaskConfigModify") -{} - -TaskConfigModifyRequest::~TaskConfigModifyRequest() -{} - -std::vector TaskConfigModifyRequest::getInstanceList()const -{ - return instanceList_; -} - -void TaskConfigModifyRequest::setInstanceList(const std::vector& instanceList) -{ - instanceList_ = instanceList; - for(int i = 0; i!= instanceList.size(); i++) - setCoreParameter("InstanceList."+ std::to_string(i), instanceList.at(i)); -} - -std::string TaskConfigModifyRequest::getJsonData()const -{ - return jsonData_; -} - -void TaskConfigModifyRequest::setJsonData(const std::string& jsonData) -{ - jsonData_ = jsonData; - setCoreParameter("JsonData", jsonData); -} - -std::string TaskConfigModifyRequest::getTaskType()const -{ - return taskType_; -} - -void TaskConfigModifyRequest::setTaskType(const std::string& taskType) -{ - taskType_ = taskType; - setCoreParameter("TaskType", taskType); -} - -std::string TaskConfigModifyRequest::getAlertConfig()const -{ - return alertConfig_; -} - -void TaskConfigModifyRequest::setAlertConfig(const std::string& alertConfig) -{ - alertConfig_ = alertConfig; - setCoreParameter("AlertConfig", alertConfig); -} - -long TaskConfigModifyRequest::getGroupId()const -{ - return groupId_; -} - -void TaskConfigModifyRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -std::string TaskConfigModifyRequest::getTaskName()const -{ - return taskName_; -} - -void TaskConfigModifyRequest::setTaskName(const std::string& taskName) -{ - taskName_ = taskName; - setCoreParameter("TaskName", taskName); -} - -std::string TaskConfigModifyRequest::getGroupName()const -{ - return groupName_; -} - -void TaskConfigModifyRequest::setGroupName(const std::string& groupName) -{ - groupName_ = groupName; - setCoreParameter("GroupName", groupName); -} - -std::string TaskConfigModifyRequest::getTaskScope()const -{ - return taskScope_; -} - -void TaskConfigModifyRequest::setTaskScope(const std::string& taskScope) -{ - taskScope_ = taskScope; - setCoreParameter("TaskScope", taskScope); -} - -long TaskConfigModifyRequest::getId()const -{ - return id_; -} - -void TaskConfigModifyRequest::setId(long id) -{ - id_ = id; - setCoreParameter("Id", std::to_string(id)); -} - diff --git a/cms/src/model/TaskConfigModifyResult.cc b/cms/src/model/TaskConfigModifyResult.cc deleted file mode 100644 index 0b4a0fa45..000000000 --- a/cms/src/model/TaskConfigModifyResult.cc +++ /dev/null @@ -1,65 +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; - -TaskConfigModifyResult::TaskConfigModifyResult() : - ServiceResult() -{} - -TaskConfigModifyResult::TaskConfigModifyResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -TaskConfigModifyResult::~TaskConfigModifyResult() -{} - -void TaskConfigModifyResult::parse(const std::string &payload) -{ - Json::Reader reader; - Json::Value value; - reader.parse(payload, value); - setRequestId(value["RequestId"].asString()); - if(!value["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - if(!value["Success"].isNull()) - success_ = value["Success"].asString() == "true"; - -} - -int TaskConfigModifyResult::getErrorCode()const -{ - return errorCode_; -} - -std::string TaskConfigModifyResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool TaskConfigModifyResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/TaskConfigUnhealthyRequest.cc b/cms/src/model/TaskConfigUnhealthyRequest.cc deleted file mode 100644 index 1cda466f4..000000000 --- a/cms/src/model/TaskConfigUnhealthyRequest.cc +++ /dev/null @@ -1,39 +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 - -using AlibabaCloud::Cms::Model::TaskConfigUnhealthyRequest; - -TaskConfigUnhealthyRequest::TaskConfigUnhealthyRequest() : - RpcServiceRequest("cms", "2018-03-08", "TaskConfigUnhealthy") -{} - -TaskConfigUnhealthyRequest::~TaskConfigUnhealthyRequest() -{} - -std::vector TaskConfigUnhealthyRequest::getTaskIdList()const -{ - return taskIdList_; -} - -void TaskConfigUnhealthyRequest::setTaskIdList(const std::vector& taskIdList) -{ - taskIdList_ = taskIdList; - for(int i = 0; i!= taskIdList.size(); i++) - setCoreParameter("TaskIdList."+ std::to_string(i), std::to_string(taskIdList.at(i))); -} - diff --git a/cms/src/model/NodeProcessesRequest.cc b/cms/src/model/UninstallMonitoringAgentRequest.cc similarity index 57% rename from cms/src/model/NodeProcessesRequest.cc rename to cms/src/model/UninstallMonitoringAgentRequest.cc index 8b7300771..270e96f44 100644 --- a/cms/src/model/NodeProcessesRequest.cc +++ b/cms/src/model/UninstallMonitoringAgentRequest.cc @@ -14,23 +14,25 @@ * limitations under the License. */ -#include +#include -using AlibabaCloud::Cms::Model::NodeProcessesRequest; +using AlibabaCloud::Cms::Model::UninstallMonitoringAgentRequest; -NodeProcessesRequest::NodeProcessesRequest() : - RpcServiceRequest("cms", "2018-03-08", "NodeProcesses") +UninstallMonitoringAgentRequest::UninstallMonitoringAgentRequest() : + RpcServiceRequest("cms", "2019-01-01", "UninstallMonitoringAgent") +{ + setMethod(HttpRequest::Method::Post); +} + +UninstallMonitoringAgentRequest::~UninstallMonitoringAgentRequest() {} -NodeProcessesRequest::~NodeProcessesRequest() -{} - -std::string NodeProcessesRequest::getInstanceId()const +std::string UninstallMonitoringAgentRequest::getInstanceId()const { return instanceId_; } -void NodeProcessesRequest::setInstanceId(const std::string& instanceId) +void UninstallMonitoringAgentRequest::setInstanceId(const std::string& instanceId) { instanceId_ = instanceId; setCoreParameter("InstanceId", instanceId); diff --git a/cms/src/model/UninstallMonitoringAgentResult.cc b/cms/src/model/UninstallMonitoringAgentResult.cc new file mode 100644 index 000000000..3f536991b --- /dev/null +++ b/cms/src/model/UninstallMonitoringAgentResult.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; + +UninstallMonitoringAgentResult::UninstallMonitoringAgentResult() : + ServiceResult() +{} + +UninstallMonitoringAgentResult::UninstallMonitoringAgentResult(const std::string &payload) : + ServiceResult() +{ + parse(payload); +} + +UninstallMonitoringAgentResult::~UninstallMonitoringAgentResult() +{} + +void UninstallMonitoringAgentResult::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 UninstallMonitoringAgentResult::getMessage()const +{ + return message_; +} + +std::string UninstallMonitoringAgentResult::getCode()const +{ + return code_; +} + +bool UninstallMonitoringAgentResult::getSuccess()const +{ + return success_; +} + diff --git a/cms/src/model/UpdateAlarmRequest.cc b/cms/src/model/UpdateAlarmRequest.cc deleted file mode 100644 index ffdba6002..000000000 --- a/cms/src/model/UpdateAlarmRequest.cc +++ /dev/null @@ -1,181 +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 - -using AlibabaCloud::Cms::Model::UpdateAlarmRequest; - -UpdateAlarmRequest::UpdateAlarmRequest() : - RpcServiceRequest("cms", "2018-03-08", "UpdateAlarm") -{} - -UpdateAlarmRequest::~UpdateAlarmRequest() -{} - -std::string UpdateAlarmRequest::getWebhook()const -{ - return webhook_; -} - -void UpdateAlarmRequest::setWebhook(const std::string& webhook) -{ - webhook_ = webhook; - setCoreParameter("Webhook", webhook); -} - -std::string UpdateAlarmRequest::getThreshold()const -{ - return threshold_; -} - -void UpdateAlarmRequest::setThreshold(const std::string& threshold) -{ - threshold_ = threshold; - setCoreParameter("Threshold", threshold); -} - -int UpdateAlarmRequest::getStartTime()const -{ - return startTime_; -} - -void UpdateAlarmRequest::setStartTime(int startTime) -{ - startTime_ = startTime; - setCoreParameter("StartTime", std::to_string(startTime)); -} - -int UpdateAlarmRequest::getEvaluationCount()const -{ - return evaluationCount_; -} - -void UpdateAlarmRequest::setEvaluationCount(int evaluationCount) -{ - evaluationCount_ = evaluationCount; - setCoreParameter("EvaluationCount", std::to_string(evaluationCount)); -} - -int UpdateAlarmRequest::getSilenceTime()const -{ - return silenceTime_; -} - -void UpdateAlarmRequest::setSilenceTime(int silenceTime) -{ - silenceTime_ = silenceTime; - setCoreParameter("SilenceTime", std::to_string(silenceTime)); -} - -std::string UpdateAlarmRequest::getId()const -{ - return id_; -} - -void UpdateAlarmRequest::setId(const std::string& id) -{ - id_ = id; - setCoreParameter("Id", id); -} - -int UpdateAlarmRequest::getNotifyType()const -{ - return notifyType_; -} - -void UpdateAlarmRequest::setNotifyType(int notifyType) -{ - notifyType_ = notifyType; - setCoreParameter("NotifyType", std::to_string(notifyType)); -} - -int UpdateAlarmRequest::getPeriod()const -{ - return period_; -} - -void UpdateAlarmRequest::setPeriod(int period) -{ - period_ = period; - setCoreParameter("Period", std::to_string(period)); -} - -bool UpdateAlarmRequest::getDryRun()const -{ - return dryRun_; -} - -void UpdateAlarmRequest::setDryRun(bool dryRun) -{ - dryRun_ = dryRun; - setCoreParameter("DryRun", dryRun ? "true" : "false"); -} - -std::string UpdateAlarmRequest::getContactGroups()const -{ - return contactGroups_; -} - -void UpdateAlarmRequest::setContactGroups(const std::string& contactGroups) -{ - contactGroups_ = contactGroups; - setCoreParameter("ContactGroups", contactGroups); -} - -int UpdateAlarmRequest::getEndTime()const -{ - return endTime_; -} - -void UpdateAlarmRequest::setEndTime(int endTime) -{ - endTime_ = endTime; - setCoreParameter("EndTime", std::to_string(endTime)); -} - -std::string UpdateAlarmRequest::getName()const -{ - return name_; -} - -void UpdateAlarmRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -std::string UpdateAlarmRequest::getComparisonOperator()const -{ - return comparisonOperator_; -} - -void UpdateAlarmRequest::setComparisonOperator(const std::string& comparisonOperator) -{ - comparisonOperator_ = comparisonOperator; - setCoreParameter("ComparisonOperator", comparisonOperator); -} - -std::string UpdateAlarmRequest::getStatistics()const -{ - return statistics_; -} - -void UpdateAlarmRequest::setStatistics(const std::string& statistics) -{ - statistics_ = statistics; - setCoreParameter("Statistics", statistics); -} - diff --git a/cms/src/model/UpdateMonitoringTemplateRequest.cc b/cms/src/model/UpdateMonitoringTemplateRequest.cc deleted file mode 100644 index 966acbcf0..000000000 --- a/cms/src/model/UpdateMonitoringTemplateRequest.cc +++ /dev/null @@ -1,93 +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 - -using AlibabaCloud::Cms::Model::UpdateMonitoringTemplateRequest; - -UpdateMonitoringTemplateRequest::UpdateMonitoringTemplateRequest() : - RpcServiceRequest("cms", "2018-03-08", "UpdateMonitoringTemplate") -{} - -UpdateMonitoringTemplateRequest::~UpdateMonitoringTemplateRequest() -{} - -std::string UpdateMonitoringTemplateRequest::getEventRuleTemplatesJson()const -{ - return eventRuleTemplatesJson_; -} - -void UpdateMonitoringTemplateRequest::setEventRuleTemplatesJson(const std::string& eventRuleTemplatesJson) -{ - eventRuleTemplatesJson_ = eventRuleTemplatesJson; - setCoreParameter("EventRuleTemplatesJson", eventRuleTemplatesJson); -} - -long UpdateMonitoringTemplateRequest::getRestVersion()const -{ - return restVersion_; -} - -void UpdateMonitoringTemplateRequest::setRestVersion(long restVersion) -{ - restVersion_ = restVersion; - setCoreParameter("RestVersion", std::to_string(restVersion)); -} - -std::string UpdateMonitoringTemplateRequest::getDescription()const -{ - return description_; -} - -void UpdateMonitoringTemplateRequest::setDescription(const std::string& description) -{ - description_ = description; - setCoreParameter("Description", description); -} - -std::string UpdateMonitoringTemplateRequest::getAlertTemplatesJson()const -{ - return alertTemplatesJson_; -} - -void UpdateMonitoringTemplateRequest::setAlertTemplatesJson(const std::string& alertTemplatesJson) -{ - alertTemplatesJson_ = alertTemplatesJson; - setCoreParameter("AlertTemplatesJson", alertTemplatesJson); -} - -std::string UpdateMonitoringTemplateRequest::getName()const -{ - return name_; -} - -void UpdateMonitoringTemplateRequest::setName(const std::string& name) -{ - name_ = name; - setCoreParameter("Name", name); -} - -long UpdateMonitoringTemplateRequest::getId()const -{ - return id_; -} - -void UpdateMonitoringTemplateRequest::setId(long id) -{ - id_ = id; - setCoreParameter("Id", std::to_string(id)); -} - diff --git a/cms/src/model/UpdateMonitoringTemplateResult.cc b/cms/src/model/UpdateMonitoringTemplateResult.cc deleted file mode 100644 index 8785a5d7e..000000000 --- a/cms/src/model/UpdateMonitoringTemplateResult.cc +++ /dev/null @@ -1,65 +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; - -UpdateMonitoringTemplateResult::UpdateMonitoringTemplateResult() : - ServiceResult() -{} - -UpdateMonitoringTemplateResult::UpdateMonitoringTemplateResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateMonitoringTemplateResult::~UpdateMonitoringTemplateResult() -{} - -void UpdateMonitoringTemplateResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -int UpdateMonitoringTemplateResult::getErrorCode()const -{ - return errorCode_; -} - -std::string UpdateMonitoringTemplateResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool UpdateMonitoringTemplateResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/UpdateMyGroupAlertRequest.cc b/cms/src/model/UpdateMyGroupAlertRequest.cc deleted file mode 100644 index 598ba7142..000000000 --- a/cms/src/model/UpdateMyGroupAlertRequest.cc +++ /dev/null @@ -1,38 +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 - -using AlibabaCloud::Cms::Model::UpdateMyGroupAlertRequest; - -UpdateMyGroupAlertRequest::UpdateMyGroupAlertRequest() : - RpcServiceRequest("cms", "2018-03-08", "UpdateMyGroupAlert") -{} - -UpdateMyGroupAlertRequest::~UpdateMyGroupAlertRequest() -{} - -std::string UpdateMyGroupAlertRequest::getGroupAlertJson()const -{ - return groupAlertJson_; -} - -void UpdateMyGroupAlertRequest::setGroupAlertJson(const std::string& groupAlertJson) -{ - groupAlertJson_ = groupAlertJson; - setCoreParameter("GroupAlertJson", groupAlertJson); -} - diff --git a/cms/src/model/UpdateMyGroupAlertResult.cc b/cms/src/model/UpdateMyGroupAlertResult.cc deleted file mode 100644 index 80ee8bbeb..000000000 --- a/cms/src/model/UpdateMyGroupAlertResult.cc +++ /dev/null @@ -1,65 +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; - -UpdateMyGroupAlertResult::UpdateMyGroupAlertResult() : - ServiceResult() -{} - -UpdateMyGroupAlertResult::UpdateMyGroupAlertResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateMyGroupAlertResult::~UpdateMyGroupAlertResult() -{} - -void UpdateMyGroupAlertResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -int UpdateMyGroupAlertResult::getErrorCode()const -{ - return errorCode_; -} - -std::string UpdateMyGroupAlertResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool UpdateMyGroupAlertResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/UpdateMyGroupInstancesRequest.cc b/cms/src/model/UpdateMyGroupInstancesRequest.cc deleted file mode 100644 index 718e3a5b4..000000000 --- a/cms/src/model/UpdateMyGroupInstancesRequest.cc +++ /dev/null @@ -1,49 +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 - -using AlibabaCloud::Cms::Model::UpdateMyGroupInstancesRequest; - -UpdateMyGroupInstancesRequest::UpdateMyGroupInstancesRequest() : - RpcServiceRequest("cms", "2018-03-08", "UpdateMyGroupInstances") -{} - -UpdateMyGroupInstancesRequest::~UpdateMyGroupInstancesRequest() -{} - -std::string UpdateMyGroupInstancesRequest::getInstances()const -{ - return instances_; -} - -void UpdateMyGroupInstancesRequest::setInstances(const std::string& instances) -{ - instances_ = instances; - setCoreParameter("Instances", instances); -} - -long UpdateMyGroupInstancesRequest::getGroupId()const -{ - return groupId_; -} - -void UpdateMyGroupInstancesRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - diff --git a/cms/src/model/UpdateMyGroupInstancesResult.cc b/cms/src/model/UpdateMyGroupInstancesResult.cc deleted file mode 100644 index 57d800e62..000000000 --- a/cms/src/model/UpdateMyGroupInstancesResult.cc +++ /dev/null @@ -1,65 +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; - -UpdateMyGroupInstancesResult::UpdateMyGroupInstancesResult() : - ServiceResult() -{} - -UpdateMyGroupInstancesResult::UpdateMyGroupInstancesResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateMyGroupInstancesResult::~UpdateMyGroupInstancesResult() -{} - -void UpdateMyGroupInstancesResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -int UpdateMyGroupInstancesResult::getErrorCode()const -{ - return errorCode_; -} - -std::string UpdateMyGroupInstancesResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool UpdateMyGroupInstancesResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/UpdateMyGroupMembersRequest.cc b/cms/src/model/UpdateMyGroupMembersRequest.cc deleted file mode 100644 index 591aabe52..000000000 --- a/cms/src/model/UpdateMyGroupMembersRequest.cc +++ /dev/null @@ -1,60 +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 - -using AlibabaCloud::Cms::Model::UpdateMyGroupMembersRequest; - -UpdateMyGroupMembersRequest::UpdateMyGroupMembersRequest() : - RpcServiceRequest("cms", "2018-03-08", "UpdateMyGroupMembers") -{} - -UpdateMyGroupMembersRequest::~UpdateMyGroupMembersRequest() -{} - -std::string UpdateMyGroupMembersRequest::getReaders()const -{ - return readers_; -} - -void UpdateMyGroupMembersRequest::setReaders(const std::string& readers) -{ - readers_ = readers; - setCoreParameter("Readers", readers); -} - -long UpdateMyGroupMembersRequest::getGroupId()const -{ - return groupId_; -} - -void UpdateMyGroupMembersRequest::setGroupId(long groupId) -{ - groupId_ = groupId; - setCoreParameter("GroupId", std::to_string(groupId)); -} - -std::string UpdateMyGroupMembersRequest::getMasters()const -{ - return masters_; -} - -void UpdateMyGroupMembersRequest::setMasters(const std::string& masters) -{ - masters_ = masters; - setCoreParameter("Masters", masters); -} - diff --git a/cms/src/model/UpdateMyGroupMembersResult.cc b/cms/src/model/UpdateMyGroupMembersResult.cc deleted file mode 100644 index 6b60af690..000000000 --- a/cms/src/model/UpdateMyGroupMembersResult.cc +++ /dev/null @@ -1,65 +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; - -UpdateMyGroupMembersResult::UpdateMyGroupMembersResult() : - ServiceResult() -{} - -UpdateMyGroupMembersResult::UpdateMyGroupMembersResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateMyGroupMembersResult::~UpdateMyGroupMembersResult() -{} - -void UpdateMyGroupMembersResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -int UpdateMyGroupMembersResult::getErrorCode()const -{ - return errorCode_; -} - -std::string UpdateMyGroupMembersResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool UpdateMyGroupMembersResult::getSuccess()const -{ - return success_; -} - diff --git a/cms/src/model/UpdateMyGroupsResult.cc b/cms/src/model/UpdateMyGroupsResult.cc deleted file mode 100644 index 3ea09894d..000000000 --- a/cms/src/model/UpdateMyGroupsResult.cc +++ /dev/null @@ -1,65 +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; - -UpdateMyGroupsResult::UpdateMyGroupsResult() : - ServiceResult() -{} - -UpdateMyGroupsResult::UpdateMyGroupsResult(const std::string &payload) : - ServiceResult() -{ - parse(payload); -} - -UpdateMyGroupsResult::~UpdateMyGroupsResult() -{} - -void UpdateMyGroupsResult::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["ErrorCode"].isNull()) - errorCode_ = std::stoi(value["ErrorCode"].asString()); - if(!value["ErrorMessage"].isNull()) - errorMessage_ = value["ErrorMessage"].asString(); - -} - -int UpdateMyGroupsResult::getErrorCode()const -{ - return errorCode_; -} - -std::string UpdateMyGroupsResult::getErrorMessage()const -{ - return errorMessage_; -} - -bool UpdateMyGroupsResult::getSuccess()const -{ - return success_; -} -