CreateHostAvailabilityRequest.h 4.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106
  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. #ifndef ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_
  17. #define ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_
  18. #include <alibabacloud/cms/CmsExport.h>
  19. #include <alibabacloud/core/RpcServiceRequest.h>
  20. #include <string>
  21. #include <vector>
  22. #include <map>
  23. namespace AlibabaCloud {
  24. namespace Cms {
  25. namespace Model {
  26. class ALIBABACLOUD_CMS_EXPORT CreateHostAvailabilityRequest : public RpcServiceRequest {
  27. public:
  28. struct AlertConfigEscalationList {
  29. int times;
  30. std::string metricName;
  31. std::string value;
  32. std::string _operator;
  33. std::string aggregate;
  34. };
  35. CreateHostAvailabilityRequest();
  36. ~CreateHostAvailabilityRequest();
  37. std::string getTaskOptionHttpMethod() const;
  38. void setTaskOptionHttpMethod(const std::string &taskOptionHttpMethod);
  39. std::string getTaskOptionHttpHeader() const;
  40. void setTaskOptionHttpHeader(const std::string &taskOptionHttpHeader);
  41. std::vector<AlertConfigEscalationList> getAlertConfigEscalationList() const;
  42. void setAlertConfigEscalationList(const std::vector<AlertConfigEscalationList> &alertConfigEscalationList);
  43. std::string getTaskName() const;
  44. void setTaskName(const std::string &taskName);
  45. int getAlertConfigSilenceTime() const;
  46. void setAlertConfigSilenceTime(int alertConfigSilenceTime);
  47. std::string getTaskOptionHttpResponseCharset() const;
  48. void setTaskOptionHttpResponseCharset(const std::string &taskOptionHttpResponseCharset);
  49. bool getTaskOptionHttpNegative() const;
  50. void setTaskOptionHttpNegative(bool taskOptionHttpNegative);
  51. int getTaskOptionInterval() const;
  52. void setTaskOptionInterval(int taskOptionInterval);
  53. int getAlertConfigNotifyType() const;
  54. void setAlertConfigNotifyType(int alertConfigNotifyType);
  55. std::string getTaskOptionTelnetOrPingHost() const;
  56. void setTaskOptionTelnetOrPingHost(const std::string &taskOptionTelnetOrPingHost);
  57. std::string getTaskOptionHttpResponseMatchContent() const;
  58. void setTaskOptionHttpResponseMatchContent(const std::string &taskOptionHttpResponseMatchContent);
  59. std::vector<std::string> getInstanceList() const;
  60. void setInstanceList(const std::vector<std::string> &instanceList);
  61. std::string getTaskType() const;
  62. void setTaskType(const std::string &taskType);
  63. long getGroupId() const;
  64. void setGroupId(long groupId);
  65. int getAlertConfigEndTime() const;
  66. void setAlertConfigEndTime(int alertConfigEndTime);
  67. std::string getTaskOptionHttpURI() const;
  68. void setTaskOptionHttpURI(const std::string &taskOptionHttpURI);
  69. std::string getTaskScope() const;
  70. void setTaskScope(const std::string &taskScope);
  71. std::string getTaskOptionHttpPostContent() const;
  72. void setTaskOptionHttpPostContent(const std::string &taskOptionHttpPostContent);
  73. int getAlertConfigStartTime() const;
  74. void setAlertConfigStartTime(int alertConfigStartTime);
  75. std::string getAlertConfigWebHook() const;
  76. void setAlertConfigWebHook(const std::string &alertConfigWebHook);
  77. private:
  78. std::string taskOptionHttpMethod_;
  79. std::string taskOptionHttpHeader_;
  80. std::vector<AlertConfigEscalationList> alertConfigEscalationList_;
  81. std::string taskName_;
  82. int alertConfigSilenceTime_;
  83. std::string taskOptionHttpResponseCharset_;
  84. bool taskOptionHttpNegative_;
  85. int taskOptionInterval_;
  86. int alertConfigNotifyType_;
  87. std::string taskOptionTelnetOrPingHost_;
  88. std::string taskOptionHttpResponseMatchContent_;
  89. std::vector<std::string> instanceList_;
  90. std::string taskType_;
  91. long groupId_;
  92. int alertConfigEndTime_;
  93. std::string taskOptionHttpURI_;
  94. std::string taskScope_;
  95. std::string taskOptionHttpPostContent_;
  96. int alertConfigStartTime_;
  97. std::string alertConfigWebHook_;
  98. };
  99. } // namespace Model
  100. } // namespace Cms
  101. } // namespace AlibabaCloud
  102. #endif // !ALIBABACLOUD_CMS_MODEL_CREATEHOSTAVAILABILITYREQUEST_H_