DescribeOasSQLHistoryListResult.h 3.5 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124
  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_OCEANBASEPRO_MODEL_DESCRIBEOASSQLHISTORYLISTRESULT_H_
  17. #define ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBEOASSQLHISTORYLISTRESULT_H_
  18. #include <string>
  19. #include <vector>
  20. #include <utility>
  21. #include <alibabacloud/core/ServiceResult.h>
  22. #include <alibabacloud/oceanbasepro/OceanBaseProExport.h>
  23. namespace AlibabaCloud
  24. {
  25. namespace OceanBasePro
  26. {
  27. namespace Model
  28. {
  29. class ALIBABACLOUD_OCEANBASEPRO_EXPORT DescribeOasSQLHistoryListResult : public ServiceResult
  30. {
  31. public:
  32. struct DataItem
  33. {
  34. long executions;
  35. long avgRowCacheHit;
  36. std::string server;
  37. double maxApplicationWaitTime;
  38. double maxAffectedRows;
  39. double maxUserIoWaitTime;
  40. double avgUserIoWaitTime;
  41. long retryCount;
  42. double retCode6002Count;
  43. long missPlans;
  44. long avgLogicalReads;
  45. double retCode5167Count;
  46. long avgBlockCacheHit;
  47. double execPs;
  48. double tableScanPercentage;
  49. double retCode5217Count;
  50. double avgUsedWorkerCount;
  51. double maxElapsedTime;
  52. double localPlanPercentage;
  53. double avgGetPlanTime;
  54. double avgNetTime;
  55. double remotePlanPercentage;
  56. long avgAffectedRows;
  57. double avgApplicationWaitTime;
  58. long avgSsstoreReadRows;
  59. long avgMemstoreReadRows;
  60. double avgQueueTime;
  61. double maxCpuTime;
  62. long avgDiskReads;
  63. double retCode5001Count;
  64. double avgCpuTime;
  65. double retCode5024Count;
  66. double sumLogicalReads;
  67. double sumDbTime;
  68. double strongConsistencyPercentage;
  69. double retCode4013Count;
  70. double avgConcurrencyWaitTime;
  71. std::string timestamp;
  72. long avgBlockIndexCacheHit;
  73. long avgBloomFilterCacheHit;
  74. double sumElapsedTime;
  75. long avgReturnRows;
  76. long failCount;
  77. double avgPartitionCount;
  78. std::string dbName;
  79. double avgWaitTime;
  80. double weakConsistencyPercentage;
  81. double avgDecodeTime;
  82. std::string sQLId;
  83. long avgRpcCount;
  84. double avgNetWaitTime;
  85. double maxDiskReads;
  86. double avgDbTime;
  87. double avgExpectedWorkerCount;
  88. double distPlanPercentage;
  89. long remotePlans;
  90. double avgWaitCount;
  91. std::string userName;
  92. double avgExecuteTime;
  93. double maxWaitTime;
  94. double avgExecutorRpcCount;
  95. double avgScheduleTime;
  96. double maxConcurrencyWaitTime;
  97. double missPlanPercentage;
  98. std::string waitEvent;
  99. double retCode4012Count;
  100. double avgElapsedTime;
  101. double failPercentage;
  102. double maxReturnRows;
  103. double sumWaitTime;
  104. };
  105. DescribeOasSQLHistoryListResult();
  106. explicit DescribeOasSQLHistoryListResult(const std::string &payload);
  107. ~DescribeOasSQLHistoryListResult();
  108. std::vector<DataItem> getData()const;
  109. protected:
  110. void parse(const std::string &payload);
  111. private:
  112. std::vector<DataItem> data_;
  113. };
  114. }
  115. }
  116. }
  117. #endif // !ALIBABACLOUD_OCEANBASEPRO_MODEL_DESCRIBEOASSQLHISTORYLISTRESULT_H_