PutLogMonitorRequest.h 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102
  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_PUTLOGMONITORREQUEST_H_
  17. #define ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_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 PutLogMonitorRequest : public RpcServiceRequest
  29. {
  30. public:
  31. struct ValueFilter
  32. {
  33. std::string value;
  34. std::string key;
  35. std::string _operator;
  36. };
  37. struct Groupbys
  38. {
  39. std::string fieldName;
  40. std::string alias;
  41. };
  42. struct Aggregates
  43. {
  44. std::string fieldName;
  45. std::string function;
  46. std::string alias;
  47. };
  48. public:
  49. PutLogMonitorRequest();
  50. ~PutLogMonitorRequest();
  51. std::string getSlsLogstore()const;
  52. void setSlsLogstore(const std::string& slsLogstore);
  53. std::string getSlsProject()const;
  54. void setSlsProject(const std::string& slsProject);
  55. std::vector<ValueFilter> getValueFilter()const;
  56. void setValueFilter(const std::vector<ValueFilter>& valueFilter);
  57. std::string getMetricExpress()const;
  58. void setMetricExpress(const std::string& metricExpress);
  59. std::string getSlsRegionId()const;
  60. void setSlsRegionId(const std::string& slsRegionId);
  61. std::string getMetricName()const;
  62. void setMetricName(const std::string& metricName);
  63. std::string getGroupId()const;
  64. void setGroupId(const std::string& groupId);
  65. std::string getTumblingwindows()const;
  66. void setTumblingwindows(const std::string& tumblingwindows);
  67. std::string getValueFilterRelation()const;
  68. void setValueFilterRelation(const std::string& valueFilterRelation);
  69. std::string getUnit()const;
  70. void setUnit(const std::string& unit);
  71. std::vector<Groupbys> getGroupbys()const;
  72. void setGroupbys(const std::vector<Groupbys>& groupbys);
  73. std::string getLogId()const;
  74. void setLogId(const std::string& logId);
  75. std::vector<Aggregates> getAggregates()const;
  76. void setAggregates(const std::vector<Aggregates>& aggregates);
  77. private:
  78. std::string slsLogstore_;
  79. std::string slsProject_;
  80. std::vector<ValueFilter> valueFilter_;
  81. std::string metricExpress_;
  82. std::string slsRegionId_;
  83. std::string metricName_;
  84. std::string groupId_;
  85. std::string tumblingwindows_;
  86. std::string valueFilterRelation_;
  87. std::string unit_;
  88. std::vector<Groupbys> groupbys_;
  89. std::string logId_;
  90. std::vector<Aggregates> aggregates_;
  91. };
  92. }
  93. }
  94. }
  95. #endif // !ALIBABACLOUD_CMS_MODEL_PUTLOGMONITORREQUEST_H_