CreateAlarmRequest.cc 4.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168169170171172173174175176177178179180181182183184185186187188189190191192193194195196197198199200201202203
  1. /*
  2. * Copyright 2009-2017 Alibaba Cloud All rights reserved.
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. #include <alibabacloud/cms/model/CreateAlarmRequest.h>
  17. using AlibabaCloud::Cms::Model::CreateAlarmRequest;
  18. CreateAlarmRequest::CreateAlarmRequest() :
  19. RpcServiceRequest("cms", "2017-03-01", "CreateAlarm")
  20. {}
  21. CreateAlarmRequest::~CreateAlarmRequest()
  22. {}
  23. std::string CreateAlarmRequest::getCallby_cms_owner()const
  24. {
  25. return callby_cms_owner_;
  26. }
  27. void CreateAlarmRequest::setCallby_cms_owner(const std::string& callby_cms_owner)
  28. {
  29. callby_cms_owner_ = callby_cms_owner;
  30. setParameter("Callby_cms_owner", callby_cms_owner);
  31. }
  32. int CreateAlarmRequest::getPeriod()const
  33. {
  34. return period_;
  35. }
  36. void CreateAlarmRequest::setPeriod(int period)
  37. {
  38. period_ = period;
  39. setParameter("Period", std::to_string(period));
  40. }
  41. std::string CreateAlarmRequest::getWebhook()const
  42. {
  43. return webhook_;
  44. }
  45. void CreateAlarmRequest::setWebhook(const std::string& webhook)
  46. {
  47. webhook_ = webhook;
  48. setParameter("Webhook", webhook);
  49. }
  50. std::string CreateAlarmRequest::getContactGroups()const
  51. {
  52. return contactGroups_;
  53. }
  54. void CreateAlarmRequest::setContactGroups(const std::string& contactGroups)
  55. {
  56. contactGroups_ = contactGroups;
  57. setParameter("ContactGroups", contactGroups);
  58. }
  59. int CreateAlarmRequest::getEndTime()const
  60. {
  61. return endTime_;
  62. }
  63. void CreateAlarmRequest::setEndTime(int endTime)
  64. {
  65. endTime_ = endTime;
  66. setParameter("EndTime", std::to_string(endTime));
  67. }
  68. std::string CreateAlarmRequest::getThreshold()const
  69. {
  70. return threshold_;
  71. }
  72. void CreateAlarmRequest::setThreshold(const std::string& threshold)
  73. {
  74. threshold_ = threshold;
  75. setParameter("Threshold", threshold);
  76. }
  77. int CreateAlarmRequest::getStartTime()const
  78. {
  79. return startTime_;
  80. }
  81. void CreateAlarmRequest::setStartTime(int startTime)
  82. {
  83. startTime_ = startTime;
  84. setParameter("StartTime", std::to_string(startTime));
  85. }
  86. std::string CreateAlarmRequest::getName()const
  87. {
  88. return name_;
  89. }
  90. void CreateAlarmRequest::setName(const std::string& name)
  91. {
  92. name_ = name;
  93. setParameter("Name", name);
  94. }
  95. std::string CreateAlarmRequest::get_Namespace()const
  96. {
  97. return _namespace_;
  98. }
  99. void CreateAlarmRequest::set_Namespace(const std::string& _namespace)
  100. {
  101. _namespace_ = _namespace;
  102. setParameter("_Namespace", _namespace);
  103. }
  104. int CreateAlarmRequest::getEvaluationCount()const
  105. {
  106. return evaluationCount_;
  107. }
  108. void CreateAlarmRequest::setEvaluationCount(int evaluationCount)
  109. {
  110. evaluationCount_ = evaluationCount;
  111. setParameter("EvaluationCount", std::to_string(evaluationCount));
  112. }
  113. int CreateAlarmRequest::getSilenceTime()const
  114. {
  115. return silenceTime_;
  116. }
  117. void CreateAlarmRequest::setSilenceTime(int silenceTime)
  118. {
  119. silenceTime_ = silenceTime;
  120. setParameter("SilenceTime", std::to_string(silenceTime));
  121. }
  122. std::string CreateAlarmRequest::getMetricName()const
  123. {
  124. return metricName_;
  125. }
  126. void CreateAlarmRequest::setMetricName(const std::string& metricName)
  127. {
  128. metricName_ = metricName;
  129. setParameter("MetricName", metricName);
  130. }
  131. int CreateAlarmRequest::getNotifyType()const
  132. {
  133. return notifyType_;
  134. }
  135. void CreateAlarmRequest::setNotifyType(int notifyType)
  136. {
  137. notifyType_ = notifyType;
  138. setParameter("NotifyType", std::to_string(notifyType));
  139. }
  140. std::string CreateAlarmRequest::getComparisonOperator()const
  141. {
  142. return comparisonOperator_;
  143. }
  144. void CreateAlarmRequest::setComparisonOperator(const std::string& comparisonOperator)
  145. {
  146. comparisonOperator_ = comparisonOperator;
  147. setParameter("ComparisonOperator", comparisonOperator);
  148. }
  149. std::string CreateAlarmRequest::getDimensions()const
  150. {
  151. return dimensions_;
  152. }
  153. void CreateAlarmRequest::setDimensions(const std::string& dimensions)
  154. {
  155. dimensions_ = dimensions;
  156. setParameter("Dimensions", dimensions);
  157. }
  158. std::string CreateAlarmRequest::getStatistics()const
  159. {
  160. return statistics_;
  161. }
  162. void CreateAlarmRequest::setStatistics(const std::string& statistics)
  163. {
  164. statistics_ = statistics;
  165. setParameter("Statistics", statistics);
  166. }