CreateMetricRuleTemplateRequest.h 2.3 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869
  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_CREATEMETRICRULETEMPLATEREQUEST_H_
  17. #define ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_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 CreateMetricRuleTemplateRequest : public RpcServiceRequest {
  27. public:
  28. struct AlertTemplates {
  29. std::string escalationsWarnThreshold;
  30. int period;
  31. std::string webhook;
  32. std::string escalationsWarnComparisonOperator;
  33. std::string escalationsCriticalStatistics;
  34. int escalationsInfoTimes;
  35. std::string ruleName;
  36. std::string escalationsInfoStatistics;
  37. int escalationsCriticalTimes;
  38. std::string escalationsInfoComparisonOperator;
  39. std::string escalationsInfoThreshold;
  40. std::string escalationsWarnStatistics;
  41. std::string _namespace;
  42. std::string selector;
  43. std::string metricName;
  44. int escalationsWarnTimes;
  45. std::string category;
  46. std::string escalationsCriticalComparisonOperator;
  47. std::string escalationsCriticalThreshold;
  48. };
  49. CreateMetricRuleTemplateRequest();
  50. ~CreateMetricRuleTemplateRequest();
  51. std::string getDescription() const;
  52. void setDescription(const std::string &description);
  53. std::string getName() const;
  54. void setName(const std::string &name);
  55. std::vector<AlertTemplates> getAlertTemplates() const;
  56. void setAlertTemplates(const std::vector<AlertTemplates> &alertTemplates);
  57. private:
  58. std::string description_;
  59. std::string name_;
  60. std::vector<AlertTemplates> alertTemplates_;
  61. };
  62. } // namespace Model
  63. } // namespace Cms
  64. } // namespace AlibabaCloud
  65. #endif // !ALIBABACLOUD_CMS_MODEL_CREATEMETRICRULETEMPLATEREQUEST_H_