CreateHostAvailabilityRequest.h 4.0 KB

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