CreateGroupMonitoringAgentProcessRequest.h 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879
  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_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_
  17. #define ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_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 CreateGroupMonitoringAgentProcessRequest : public RpcServiceRequest
  29. {
  30. public:
  31. struct AlertConfig
  32. {
  33. std::string times;
  34. std::string noEffectiveInterval;
  35. std::string webhook;
  36. std::string silenceTime;
  37. std::string threshold;
  38. std::string effectiveInterval;
  39. std::string comparisonOperator;
  40. std::string escalationsLevel;
  41. std::string statistics;
  42. };
  43. struct MatchExpress
  44. {
  45. std::string function;
  46. std::string name;
  47. std::string value;
  48. };
  49. public:
  50. CreateGroupMonitoringAgentProcessRequest();
  51. ~CreateGroupMonitoringAgentProcessRequest();
  52. std::vector<AlertConfig> getAlertConfig()const;
  53. void setAlertConfig(const std::vector<AlertConfig>& alertConfig);
  54. std::string getGroupId()const;
  55. void setGroupId(const std::string& groupId);
  56. std::string getProcessName()const;
  57. void setProcessName(const std::string& processName);
  58. std::string getMatchExpressFilterRelation()const;
  59. void setMatchExpressFilterRelation(const std::string& matchExpressFilterRelation);
  60. std::vector<MatchExpress> getMatchExpress()const;
  61. void setMatchExpress(const std::vector<MatchExpress>& matchExpress);
  62. private:
  63. std::vector<AlertConfig> alertConfig_;
  64. std::string groupId_;
  65. std::string processName_;
  66. std::string matchExpressFilterRelation_;
  67. std::vector<MatchExpress> matchExpress_;
  68. };
  69. }
  70. }
  71. }
  72. #endif // !ALIBABACLOUD_CMS_MODEL_CREATEGROUPMONITORINGAGENTPROCESSREQUEST_H_