DescribeAlertLogListResult.h 3.7 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140
  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_DESCRIBEALERTLOGLISTRESULT_H_
  17. #define ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/cms/CmsExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace Cms
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_CMS_EXPORT DescribeAlertLogListResult : public ServiceResult
  30. {
  31. public:
  32. struct Alarm
  33. {
  34. struct SendDetail
  35. {
  36. struct ChannelResult
  37. {
  38. struct Result
  39. {
  40. std::string requestId;
  41. std::vector<std::string> notifyTargetList;
  42. std::string code;
  43. bool success;
  44. std::string detail;
  45. };
  46. std::vector<ChannelResult::Result> resultList;
  47. std::string channel;
  48. };
  49. std::vector<ChannelResult> channelResultList;
  50. std::string resultCode;
  51. };
  52. struct Escalation
  53. {
  54. std::string expression;
  55. int times;
  56. std::string level;
  57. };
  58. struct ExtInfo
  59. {
  60. std::string value;
  61. std::string name;
  62. };
  63. struct DimensionsItem
  64. {
  65. std::string value;
  66. std::string key;
  67. };
  68. struct WebhookListItem
  69. {
  70. std::string message;
  71. std::string code;
  72. std::string url;
  73. };
  74. struct SendResult
  75. {
  76. std::vector<std::string> value;
  77. std::string key;
  78. };
  79. std::string groupName;
  80. std::vector<std::string> contactALIIWWList;
  81. std::string message;
  82. Escalation escalation;
  83. std::string ruleId;
  84. std::string sendStatus;
  85. std::string product;
  86. std::string metricName;
  87. std::vector<std::string> contactSMSList;
  88. SendDetail sendDetail;
  89. std::vector<Alarm::SendResult> sendResultList;
  90. std::string ruleName;
  91. std::vector<std::string> contactGroups;
  92. std::vector<std::string> dingdingWebhookList;
  93. std::string instanceId;
  94. std::string blackListName;
  95. std::vector<Alarm::DimensionsItem> dimensions;
  96. std::string blackListUUID;
  97. std::string levelChange;
  98. std::vector<std::string> contactOnCallList;
  99. std::string _namespace;
  100. std::vector<std::string> contactDingList;
  101. std::string eventName;
  102. std::vector<Alarm::ExtInfo> extendedInfo;
  103. std::string alertTime;
  104. std::string groupId;
  105. std::string instanceName;
  106. std::vector<Alarm::WebhookListItem> webhookList;
  107. std::string blackListDetail;
  108. std::vector<std::string> contactMailList;
  109. std::string level;
  110. };
  111. DescribeAlertLogListResult();
  112. explicit DescribeAlertLogListResult(const std::string &payload);
  113. ~DescribeAlertLogListResult();
  114. std::vector<Alarm> getAlertLogList()const;
  115. std::string getMessage()const;
  116. int getPageSize()const;
  117. int getPageNumber()const;
  118. std::string getCode()const;
  119. bool getSuccess()const;
  120. protected:
  121. void parse(const std::string &payload);
  122. private:
  123. std::vector<Alarm> alertLogList_;
  124. std::string message_;
  125. int pageSize_;
  126. int pageNumber_;
  127. std::string code_;
  128. bool success_;
  129. };
  130. }
  131. }
  132. }
  133. #endif // !ALIBABACLOUD_CMS_MODEL_DESCRIBEALERTLOGLISTRESULT_H_