CreateGroupMetricRulesRequest.h 2.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475
  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_CREATEGROUPMETRICRULESREQUEST_H_
  17. #define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_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 CreateGroupMetricRulesRequest : public RpcServiceRequest {
  27. public:
  28. struct GroupMetricRules {
  29. std::string webhook;
  30. std::string escalationsWarnComparisonOperator;
  31. std::string ruleName;
  32. std::string escalationsInfoStatistics;
  33. std::string effectiveInterval;
  34. std::string escalationsInfoComparisonOperator;
  35. std::string noDataPolicy;
  36. std::string noEffectiveInterval;
  37. std::string emailSubject;
  38. int silenceTime;
  39. std::string metricName;
  40. int escalationsWarnTimes;
  41. std::string compositeExpression;
  42. std::string escalationsWarnThreshold;
  43. std::string period;
  44. std::string contactGroups;
  45. std::string escalationsCriticalStatistics;
  46. int escalationsInfoTimes;
  47. int escalationsCriticalTimes;
  48. std::string escalationsInfoThreshold;
  49. std::string escalationsWarnStatistics;
  50. std::string _namespace;
  51. std::string interval;
  52. std::string ruleId;
  53. std::string category;
  54. std::string escalationsCriticalComparisonOperator;
  55. std::string escalationsCriticalThreshold;
  56. std::string dimensions;
  57. };
  58. CreateGroupMetricRulesRequest();
  59. ~CreateGroupMetricRulesRequest();
  60. long getGroupId() const;
  61. void setGroupId(long groupId);
  62. std::vector<GroupMetricRules> getGroupMetricRules() const;
  63. void setGroupMetricRules(const std::vector<GroupMetricRules> &groupMetricRules);
  64. private:
  65. long groupId_;
  66. std::vector<GroupMetricRules> groupMetricRules_;
  67. };
  68. } // namespace Model
  69. } // namespace Cms
  70. } // namespace AlibabaCloud
  71. #endif // !ALIBABACLOUD_CMS_MODEL_CREATEGROUPMETRICRULESREQUEST_H_