huaweicloudsdkdrs 3.1.102__py2.py3-none-any.whl → 3.1.103__py2.py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (26) hide show
  1. huaweicloudsdkdrs/v3/model/create_job_req.py +38 -9
  2. huaweicloudsdkdrs/v3/model/query_job_resp.py +44 -15
  3. huaweicloudsdkdrs/v3/model/query_jobs_req.py +3 -3
  4. huaweicloudsdkdrs/v5/__init__.py +1 -0
  5. huaweicloudsdkdrs/v5/drs_async_client.py +10 -0
  6. huaweicloudsdkdrs/v5/drs_client.py +10 -0
  7. huaweicloudsdkdrs/v5/model/__init__.py +1 -0
  8. huaweicloudsdkdrs/v5/model/action_req.py +3 -3
  9. huaweicloudsdkdrs/v5/model/base_endpoint.py +3 -3
  10. huaweicloudsdkdrs/v5/model/content_compare_overview_info.py +3 -3
  11. huaweicloudsdkdrs/v5/model/download_db_object_template_request.py +3 -3
  12. huaweicloudsdkdrs/v5/model/job_base_info.py +32 -3
  13. huaweicloudsdkdrs/v5/model/replay_error_classification.py +201 -0
  14. huaweicloudsdkdrs/v5/model/replay_error_sql_template_resp.py +30 -1
  15. huaweicloudsdkdrs/v5/model/replay_slow_sql_template_resp.py +30 -1
  16. huaweicloudsdkdrs/v5/model/show_db_object_template_progress_request.py +32 -3
  17. huaweicloudsdkdrs/v5/model/show_db_object_template_result_request.py +32 -3
  18. huaweicloudsdkdrs/v5/model/show_replay_results_request.py +93 -6
  19. huaweicloudsdkdrs/v5/model/show_replay_results_response.py +32 -3
  20. huaweicloudsdkdrs/v5/model/show_support_object_type_response.py +32 -3
  21. huaweicloudsdkdrs/v5/model/upload_db_object_template_request.py +3 -3
  22. {huaweicloudsdkdrs-3.1.102.dist-info → huaweicloudsdkdrs-3.1.103.dist-info}/METADATA +2 -2
  23. {huaweicloudsdkdrs-3.1.102.dist-info → huaweicloudsdkdrs-3.1.103.dist-info}/RECORD +26 -25
  24. {huaweicloudsdkdrs-3.1.102.dist-info → huaweicloudsdkdrs-3.1.103.dist-info}/LICENSE +0 -0
  25. {huaweicloudsdkdrs-3.1.102.dist-info → huaweicloudsdkdrs-3.1.103.dist-info}/WHEEL +0 -0
  26. {huaweicloudsdkdrs-3.1.102.dist-info → huaweicloudsdkdrs-3.1.103.dist-info}/top_level.txt +0 -0
@@ -0,0 +1,201 @@
1
+ # coding: utf-8
2
+
3
+ import six
4
+
5
+ from huaweicloudsdkcore.utils.http_utils import sanitize_for_serialization
6
+
7
+
8
+ class ReplayErrorClassification:
9
+
10
+ """
11
+ Attributes:
12
+ openapi_types (dict): The key is attribute name
13
+ and the value is attribute type.
14
+ attribute_map (dict): The key is attribute name
15
+ and the value is json key in definition.
16
+ """
17
+ sensitive_list = []
18
+
19
+ openapi_types = {
20
+ 'target_name': 'str',
21
+ 'error_type': 'str',
22
+ 'error_cnt': 'str',
23
+ 'error_template_cnt': 'str'
24
+ }
25
+
26
+ attribute_map = {
27
+ 'target_name': 'target_name',
28
+ 'error_type': 'error_type',
29
+ 'error_cnt': 'error_cnt',
30
+ 'error_template_cnt': 'error_template_cnt'
31
+ }
32
+
33
+ def __init__(self, target_name=None, error_type=None, error_cnt=None, error_template_cnt=None):
34
+ """ReplayErrorClassification
35
+
36
+ The model defined in huaweicloud sdk
37
+
38
+ :param target_name: 目标库标识
39
+ :type target_name: str
40
+ :param error_type: 异常SQL分类
41
+ :type error_type: str
42
+ :param error_cnt: 异常SQL数量
43
+ :type error_cnt: str
44
+ :param error_template_cnt: 异常SQL模板数量
45
+ :type error_template_cnt: str
46
+ """
47
+
48
+
49
+
50
+ self._target_name = None
51
+ self._error_type = None
52
+ self._error_cnt = None
53
+ self._error_template_cnt = None
54
+ self.discriminator = None
55
+
56
+ if target_name is not None:
57
+ self.target_name = target_name
58
+ self.error_type = error_type
59
+ if error_cnt is not None:
60
+ self.error_cnt = error_cnt
61
+ if error_template_cnt is not None:
62
+ self.error_template_cnt = error_template_cnt
63
+
64
+ @property
65
+ def target_name(self):
66
+ """Gets the target_name of this ReplayErrorClassification.
67
+
68
+ 目标库标识
69
+
70
+ :return: The target_name of this ReplayErrorClassification.
71
+ :rtype: str
72
+ """
73
+ return self._target_name
74
+
75
+ @target_name.setter
76
+ def target_name(self, target_name):
77
+ """Sets the target_name of this ReplayErrorClassification.
78
+
79
+ 目标库标识
80
+
81
+ :param target_name: The target_name of this ReplayErrorClassification.
82
+ :type target_name: str
83
+ """
84
+ self._target_name = target_name
85
+
86
+ @property
87
+ def error_type(self):
88
+ """Gets the error_type of this ReplayErrorClassification.
89
+
90
+ 异常SQL分类
91
+
92
+ :return: The error_type of this ReplayErrorClassification.
93
+ :rtype: str
94
+ """
95
+ return self._error_type
96
+
97
+ @error_type.setter
98
+ def error_type(self, error_type):
99
+ """Sets the error_type of this ReplayErrorClassification.
100
+
101
+ 异常SQL分类
102
+
103
+ :param error_type: The error_type of this ReplayErrorClassification.
104
+ :type error_type: str
105
+ """
106
+ self._error_type = error_type
107
+
108
+ @property
109
+ def error_cnt(self):
110
+ """Gets the error_cnt of this ReplayErrorClassification.
111
+
112
+ 异常SQL数量
113
+
114
+ :return: The error_cnt of this ReplayErrorClassification.
115
+ :rtype: str
116
+ """
117
+ return self._error_cnt
118
+
119
+ @error_cnt.setter
120
+ def error_cnt(self, error_cnt):
121
+ """Sets the error_cnt of this ReplayErrorClassification.
122
+
123
+ 异常SQL数量
124
+
125
+ :param error_cnt: The error_cnt of this ReplayErrorClassification.
126
+ :type error_cnt: str
127
+ """
128
+ self._error_cnt = error_cnt
129
+
130
+ @property
131
+ def error_template_cnt(self):
132
+ """Gets the error_template_cnt of this ReplayErrorClassification.
133
+
134
+ 异常SQL模板数量
135
+
136
+ :return: The error_template_cnt of this ReplayErrorClassification.
137
+ :rtype: str
138
+ """
139
+ return self._error_template_cnt
140
+
141
+ @error_template_cnt.setter
142
+ def error_template_cnt(self, error_template_cnt):
143
+ """Sets the error_template_cnt of this ReplayErrorClassification.
144
+
145
+ 异常SQL模板数量
146
+
147
+ :param error_template_cnt: The error_template_cnt of this ReplayErrorClassification.
148
+ :type error_template_cnt: str
149
+ """
150
+ self._error_template_cnt = error_template_cnt
151
+
152
+ def to_dict(self):
153
+ """Returns the model properties as a dict"""
154
+ result = {}
155
+
156
+ for attr, _ in six.iteritems(self.openapi_types):
157
+ value = getattr(self, attr)
158
+ if isinstance(value, list):
159
+ result[attr] = list(map(
160
+ lambda x: x.to_dict() if hasattr(x, "to_dict") else x,
161
+ value
162
+ ))
163
+ elif hasattr(value, "to_dict"):
164
+ result[attr] = value.to_dict()
165
+ elif isinstance(value, dict):
166
+ result[attr] = dict(map(
167
+ lambda item: (item[0], item[1].to_dict())
168
+ if hasattr(item[1], "to_dict") else item,
169
+ value.items()
170
+ ))
171
+ else:
172
+ if attr in self.sensitive_list:
173
+ result[attr] = "****"
174
+ else:
175
+ result[attr] = value
176
+
177
+ return result
178
+
179
+ def to_str(self):
180
+ """Returns the string representation of the model"""
181
+ import simplejson as json
182
+ if six.PY2:
183
+ import sys
184
+ reload(sys)
185
+ sys.setdefaultencoding("utf-8")
186
+ return json.dumps(sanitize_for_serialization(self), ensure_ascii=False)
187
+
188
+ def __repr__(self):
189
+ """For `print`"""
190
+ return self.to_str()
191
+
192
+ def __eq__(self, other):
193
+ """Returns true if both objects are equal"""
194
+ if not isinstance(other, ReplayErrorClassification):
195
+ return False
196
+
197
+ return self.__dict__ == other.__dict__
198
+
199
+ def __ne__(self, other):
200
+ """Returns true if both objects are not equal"""
201
+ return not self == other
@@ -18,6 +18,7 @@ class ReplayErrorSqlTemplateResp:
18
18
 
19
19
  openapi_types = {
20
20
  'sql_template': 'str',
21
+ 'sql_template_md5': 'str',
21
22
  'target_name': 'str',
22
23
  'schema_name': 'str',
23
24
  'query_type': 'str',
@@ -27,6 +28,7 @@ class ReplayErrorSqlTemplateResp:
27
28
 
28
29
  attribute_map = {
29
30
  'sql_template': 'sql_template',
31
+ 'sql_template_md5': 'sql_template_md5',
30
32
  'target_name': 'target_name',
31
33
  'schema_name': 'schema_name',
32
34
  'query_type': 'query_type',
@@ -34,13 +36,15 @@ class ReplayErrorSqlTemplateResp:
34
36
  'count': 'count'
35
37
  }
36
38
 
37
- def __init__(self, sql_template=None, target_name=None, schema_name=None, query_type=None, target_type=None, count=None):
39
+ def __init__(self, sql_template=None, sql_template_md5=None, target_name=None, schema_name=None, query_type=None, target_type=None, count=None):
38
40
  """ReplayErrorSqlTemplateResp
39
41
 
40
42
  The model defined in huaweicloud sdk
41
43
 
42
44
  :param sql_template: SQL模板
43
45
  :type sql_template: str
46
+ :param sql_template_md5: SQL模板MD5
47
+ :type sql_template_md5: str
44
48
  :param target_name: 目标库昵称
45
49
  :type target_name: str
46
50
  :param schema_name: schema名称
@@ -56,6 +60,7 @@ class ReplayErrorSqlTemplateResp:
56
60
 
57
61
 
58
62
  self._sql_template = None
63
+ self._sql_template_md5 = None
59
64
  self._target_name = None
60
65
  self._schema_name = None
61
66
  self._query_type = None
@@ -65,6 +70,8 @@ class ReplayErrorSqlTemplateResp:
65
70
 
66
71
  if sql_template is not None:
67
72
  self.sql_template = sql_template
73
+ if sql_template_md5 is not None:
74
+ self.sql_template_md5 = sql_template_md5
68
75
  if target_name is not None:
69
76
  self.target_name = target_name
70
77
  if schema_name is not None:
@@ -98,6 +105,28 @@ class ReplayErrorSqlTemplateResp:
98
105
  """
99
106
  self._sql_template = sql_template
100
107
 
108
+ @property
109
+ def sql_template_md5(self):
110
+ """Gets the sql_template_md5 of this ReplayErrorSqlTemplateResp.
111
+
112
+ SQL模板MD5
113
+
114
+ :return: The sql_template_md5 of this ReplayErrorSqlTemplateResp.
115
+ :rtype: str
116
+ """
117
+ return self._sql_template_md5
118
+
119
+ @sql_template_md5.setter
120
+ def sql_template_md5(self, sql_template_md5):
121
+ """Sets the sql_template_md5 of this ReplayErrorSqlTemplateResp.
122
+
123
+ SQL模板MD5
124
+
125
+ :param sql_template_md5: The sql_template_md5 of this ReplayErrorSqlTemplateResp.
126
+ :type sql_template_md5: str
127
+ """
128
+ self._sql_template_md5 = sql_template_md5
129
+
101
130
  @property
102
131
  def target_name(self):
103
132
  """Gets the target_name of this ReplayErrorSqlTemplateResp.
@@ -18,6 +18,7 @@ class ReplaySlowSqlTemplateResp:
18
18
 
19
19
  openapi_types = {
20
20
  'sql_template': 'str',
21
+ 'sql_template_md5': 'str',
21
22
  'target_name': 'str',
22
23
  'schema_name': 'str',
23
24
  'query_type': 'str',
@@ -31,6 +32,7 @@ class ReplaySlowSqlTemplateResp:
31
32
 
32
33
  attribute_map = {
33
34
  'sql_template': 'sql_template',
35
+ 'sql_template_md5': 'sql_template_md5',
34
36
  'target_name': 'target_name',
35
37
  'schema_name': 'schema_name',
36
38
  'query_type': 'query_type',
@@ -42,13 +44,15 @@ class ReplaySlowSqlTemplateResp:
42
44
  'count': 'count'
43
45
  }
44
46
 
45
- def __init__(self, sql_template=None, target_name=None, schema_name=None, query_type=None, min_latency=None, max_latency=None, avg_latency=None, total_latency=None, target_type=None, count=None):
47
+ def __init__(self, sql_template=None, sql_template_md5=None, target_name=None, schema_name=None, query_type=None, min_latency=None, max_latency=None, avg_latency=None, total_latency=None, target_type=None, count=None):
46
48
  """ReplaySlowSqlTemplateResp
47
49
 
48
50
  The model defined in huaweicloud sdk
49
51
 
50
52
  :param sql_template: SQL语句模板
51
53
  :type sql_template: str
54
+ :param sql_template_md5: SQL语句模板MD5
55
+ :type sql_template_md5: str
52
56
  :param target_name: 目标库别名
53
57
  :type target_name: str
54
58
  :param schema_name: schema名称
@@ -72,6 +76,7 @@ class ReplaySlowSqlTemplateResp:
72
76
 
73
77
 
74
78
  self._sql_template = None
79
+ self._sql_template_md5 = None
75
80
  self._target_name = None
76
81
  self._schema_name = None
77
82
  self._query_type = None
@@ -84,6 +89,8 @@ class ReplaySlowSqlTemplateResp:
84
89
  self.discriminator = None
85
90
 
86
91
  self.sql_template = sql_template
92
+ if sql_template_md5 is not None:
93
+ self.sql_template_md5 = sql_template_md5
87
94
  if target_name is not None:
88
95
  self.target_name = target_name
89
96
  if schema_name is not None:
@@ -123,6 +130,28 @@ class ReplaySlowSqlTemplateResp:
123
130
  """
124
131
  self._sql_template = sql_template
125
132
 
133
+ @property
134
+ def sql_template_md5(self):
135
+ """Gets the sql_template_md5 of this ReplaySlowSqlTemplateResp.
136
+
137
+ SQL语句模板MD5
138
+
139
+ :return: The sql_template_md5 of this ReplaySlowSqlTemplateResp.
140
+ :rtype: str
141
+ """
142
+ return self._sql_template_md5
143
+
144
+ @sql_template_md5.setter
145
+ def sql_template_md5(self, sql_template_md5):
146
+ """Sets the sql_template_md5 of this ReplaySlowSqlTemplateResp.
147
+
148
+ SQL语句模板MD5
149
+
150
+ :param sql_template_md5: The sql_template_md5 of this ReplaySlowSqlTemplateResp.
151
+ :type sql_template_md5: str
152
+ """
153
+ self._sql_template_md5 = sql_template_md5
154
+
126
155
  @property
127
156
  def target_name(self):
128
157
  """Gets the target_name of this ReplaySlowSqlTemplateResp.
@@ -20,17 +20,19 @@ class ShowDbObjectTemplateProgressRequest:
20
20
  'job_id': 'str',
21
21
  'x_language': 'str',
22
22
  'offset': 'int',
23
- 'limit': 'int'
23
+ 'limit': 'int',
24
+ 'type': 'str'
24
25
  }
25
26
 
26
27
  attribute_map = {
27
28
  'job_id': 'job_id',
28
29
  'x_language': 'X-Language',
29
30
  'offset': 'offset',
30
- 'limit': 'limit'
31
+ 'limit': 'limit',
32
+ 'type': 'type'
31
33
  }
32
34
 
33
- def __init__(self, job_id=None, x_language=None, offset=None, limit=None):
35
+ def __init__(self, job_id=None, x_language=None, offset=None, limit=None, type=None):
34
36
  """ShowDbObjectTemplateProgressRequest
35
37
 
36
38
  The model defined in huaweicloud sdk
@@ -43,6 +45,8 @@ class ShowDbObjectTemplateProgressRequest:
43
45
  :type offset: int
44
46
  :param limit: 查询返回记录的数量限制。
45
47
  :type limit: int
48
+ :param type: 默认为空。 - column:当进行列加工导入时,查询列加工导入进度。
49
+ :type type: str
46
50
  """
47
51
 
48
52
 
@@ -51,6 +55,7 @@ class ShowDbObjectTemplateProgressRequest:
51
55
  self._x_language = None
52
56
  self._offset = None
53
57
  self._limit = None
58
+ self._type = None
54
59
  self.discriminator = None
55
60
 
56
61
  self.job_id = job_id
@@ -60,6 +65,8 @@ class ShowDbObjectTemplateProgressRequest:
60
65
  self.offset = offset
61
66
  if limit is not None:
62
67
  self.limit = limit
68
+ if type is not None:
69
+ self.type = type
63
70
 
64
71
  @property
65
72
  def job_id(self):
@@ -149,6 +156,28 @@ class ShowDbObjectTemplateProgressRequest:
149
156
  """
150
157
  self._limit = limit
151
158
 
159
+ @property
160
+ def type(self):
161
+ """Gets the type of this ShowDbObjectTemplateProgressRequest.
162
+
163
+ 默认为空。 - column:当进行列加工导入时,查询列加工导入进度。
164
+
165
+ :return: The type of this ShowDbObjectTemplateProgressRequest.
166
+ :rtype: str
167
+ """
168
+ return self._type
169
+
170
+ @type.setter
171
+ def type(self, type):
172
+ """Sets the type of this ShowDbObjectTemplateProgressRequest.
173
+
174
+ 默认为空。 - column:当进行列加工导入时,查询列加工导入进度。
175
+
176
+ :param type: The type of this ShowDbObjectTemplateProgressRequest.
177
+ :type type: str
178
+ """
179
+ self._type = type
180
+
152
181
  def to_dict(self):
153
182
  """Returns the model properties as a dict"""
154
183
  result = {}
@@ -19,16 +19,18 @@ class ShowDbObjectTemplateResultRequest:
19
19
  openapi_types = {
20
20
  'job_id': 'str',
21
21
  'x_language': 'str',
22
- 'type': 'str'
22
+ 'type': 'str',
23
+ 'file_export_object_level': 'str'
23
24
  }
24
25
 
25
26
  attribute_map = {
26
27
  'job_id': 'job_id',
27
28
  'x_language': 'X-Language',
28
- 'type': 'type'
29
+ 'type': 'type',
30
+ 'file_export_object_level': 'file_export_object_level'
29
31
  }
30
32
 
31
- def __init__(self, job_id=None, x_language=None, type=None):
33
+ def __init__(self, job_id=None, x_language=None, type=None, file_export_object_level=None):
32
34
  """ShowDbObjectTemplateResultRequest
33
35
 
34
36
  The model defined in huaweicloud sdk
@@ -39,6 +41,8 @@ class ShowDbObjectTemplateResultRequest:
39
41
  :type x_language: str
40
42
  :param type: 导入的结果类型。取值: - detail:获取最新导入的文件与校验结果,上传后的文件若存在错误,会同时将错误原因标记在文件内。 - synchronized:获取已同步的(已下发的)对象文件结果。 - change: 获取新增和删除的对象结果(当再编辑时使用)
41
43
  :type type: str
44
+ :param file_export_object_level: 默认为空。当进行列加工导入时,查询列加工导入进度,取值column。
45
+ :type file_export_object_level: str
42
46
  """
43
47
 
44
48
 
@@ -46,12 +50,15 @@ class ShowDbObjectTemplateResultRequest:
46
50
  self._job_id = None
47
51
  self._x_language = None
48
52
  self._type = None
53
+ self._file_export_object_level = None
49
54
  self.discriminator = None
50
55
 
51
56
  self.job_id = job_id
52
57
  if x_language is not None:
53
58
  self.x_language = x_language
54
59
  self.type = type
60
+ if file_export_object_level is not None:
61
+ self.file_export_object_level = file_export_object_level
55
62
 
56
63
  @property
57
64
  def job_id(self):
@@ -119,6 +126,28 @@ class ShowDbObjectTemplateResultRequest:
119
126
  """
120
127
  self._type = type
121
128
 
129
+ @property
130
+ def file_export_object_level(self):
131
+ """Gets the file_export_object_level of this ShowDbObjectTemplateResultRequest.
132
+
133
+ 默认为空。当进行列加工导入时,查询列加工导入进度,取值column。
134
+
135
+ :return: The file_export_object_level of this ShowDbObjectTemplateResultRequest.
136
+ :rtype: str
137
+ """
138
+ return self._file_export_object_level
139
+
140
+ @file_export_object_level.setter
141
+ def file_export_object_level(self, file_export_object_level):
142
+ """Sets the file_export_object_level of this ShowDbObjectTemplateResultRequest.
143
+
144
+ 默认为空。当进行列加工导入时,查询列加工导入进度,取值column。
145
+
146
+ :param file_export_object_level: The file_export_object_level of this ShowDbObjectTemplateResultRequest.
147
+ :type file_export_object_level: str
148
+ """
149
+ self._file_export_object_level = file_export_object_level
150
+
122
151
  def to_dict(self):
123
152
  """Returns the model properties as a dict"""
124
153
  result = {}
@@ -26,7 +26,10 @@ class ShowReplayResultsRequest:
26
26
  'limit': 'int',
27
27
  'sort_key': 'str',
28
28
  'sort_dir': 'str',
29
- 'target_name': 'str'
29
+ 'target_name': 'str',
30
+ 'is_sample': 'bool',
31
+ 'error_type': 'str',
32
+ 'sql_template_md5': 'str'
30
33
  }
31
34
 
32
35
  attribute_map = {
@@ -39,10 +42,13 @@ class ShowReplayResultsRequest:
39
42
  'limit': 'limit',
40
43
  'sort_key': 'sort_key',
41
44
  'sort_dir': 'sort_dir',
42
- 'target_name': 'target_name'
45
+ 'target_name': 'target_name',
46
+ 'is_sample': 'is_sample',
47
+ 'error_type': 'error_type',
48
+ 'sql_template_md5': 'sql_template_md5'
43
49
  }
44
50
 
45
- def __init__(self, job_id=None, x_language=None, type=None, start_time=None, end_time=None, offset=None, limit=None, sort_key=None, sort_dir=None, target_name=None):
51
+ def __init__(self, job_id=None, x_language=None, type=None, start_time=None, end_time=None, offset=None, limit=None, sort_key=None, sort_dir=None, target_name=None, is_sample=None, error_type=None, sql_template_md5=None):
46
52
  """ShowReplayResultsRequest
47
53
 
48
54
  The model defined in huaweicloud sdk
@@ -51,7 +57,7 @@ class ShowReplayResultsRequest:
51
57
  :type job_id: str
52
58
  :param x_language: 请求语言类型。
53
59
  :type x_language: str
54
- :param type: 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。
60
+ :param type: 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。 - error_classification:回放异常SQL分类。
55
61
  :type type: str
56
62
  :param start_time: 查询数据的起始时间,在type为shard_statistics、slow_sql、error_sql时必填
57
63
  :type start_time: str
@@ -67,6 +73,12 @@ class ShowReplayResultsRequest:
67
73
  :type sort_dir: str
68
74
  :param target_name: 回放数据库名称,用于在一致性回放策略场景,过滤目标库与源库镜像库回放结果。参数非必须,不提供则默认查询所有数据,其取值如下: - target:查询目标库回放结果 - target_mirror:查询源库镜像库回放结果
69
75
  :type target_name: str
76
+ :param is_sample: 是否查询样例true/false,type=slow_sql/error_sql时生效,值为true时只查询一条样例数据。
77
+ :type is_sample: bool
78
+ :param error_type: 错误分类,type=error_sql/error_sql_template时生效,根据错误分类过滤数据。
79
+ :type error_type: str
80
+ :param sql_template_md5: sql模板md5,type=slow_sql/error_sql时生效,根据模板过滤对应的异常SQL和慢SQL,该值为本接口type=slow_sql_template/error_sql_template时的返回字段。
81
+ :type sql_template_md5: str
70
82
  """
71
83
 
72
84
 
@@ -81,6 +93,9 @@ class ShowReplayResultsRequest:
81
93
  self._sort_key = None
82
94
  self._sort_dir = None
83
95
  self._target_name = None
96
+ self._is_sample = None
97
+ self._error_type = None
98
+ self._sql_template_md5 = None
84
99
  self.discriminator = None
85
100
 
86
101
  self.job_id = job_id
@@ -101,6 +116,12 @@ class ShowReplayResultsRequest:
101
116
  self.sort_dir = sort_dir
102
117
  if target_name is not None:
103
118
  self.target_name = target_name
119
+ if is_sample is not None:
120
+ self.is_sample = is_sample
121
+ if error_type is not None:
122
+ self.error_type = error_type
123
+ if sql_template_md5 is not None:
124
+ self.sql_template_md5 = sql_template_md5
104
125
 
105
126
  @property
106
127
  def job_id(self):
@@ -150,7 +171,7 @@ class ShowReplayResultsRequest:
150
171
  def type(self):
151
172
  """Gets the type of this ShowReplayResultsRequest.
152
173
 
153
- 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。
174
+ 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。 - error_classification:回放异常SQL分类。
154
175
 
155
176
  :return: The type of this ShowReplayResultsRequest.
156
177
  :rtype: str
@@ -161,7 +182,7 @@ class ShowReplayResultsRequest:
161
182
  def type(self, type):
162
183
  """Sets the type of this ShowReplayResultsRequest.
163
184
 
164
- 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。
185
+ 结果类型。取值: - shard_statistics:回放概览基于时间维度统计信息。 - slow_sql:慢SQL详情。 - error_sql: 回放异常SQL详情。 - slow_sql_template:慢SQL统计信息。 - error_sql_template:异常SQL统计信息。 - replaying_sql:正在回放SQL详情。 - error_classification:回放异常SQL分类。
165
186
 
166
187
  :param type: The type of this ShowReplayResultsRequest.
167
188
  :type type: str
@@ -322,6 +343,72 @@ class ShowReplayResultsRequest:
322
343
  """
323
344
  self._target_name = target_name
324
345
 
346
+ @property
347
+ def is_sample(self):
348
+ """Gets the is_sample of this ShowReplayResultsRequest.
349
+
350
+ 是否查询样例true/false,type=slow_sql/error_sql时生效,值为true时只查询一条样例数据。
351
+
352
+ :return: The is_sample of this ShowReplayResultsRequest.
353
+ :rtype: bool
354
+ """
355
+ return self._is_sample
356
+
357
+ @is_sample.setter
358
+ def is_sample(self, is_sample):
359
+ """Sets the is_sample of this ShowReplayResultsRequest.
360
+
361
+ 是否查询样例true/false,type=slow_sql/error_sql时生效,值为true时只查询一条样例数据。
362
+
363
+ :param is_sample: The is_sample of this ShowReplayResultsRequest.
364
+ :type is_sample: bool
365
+ """
366
+ self._is_sample = is_sample
367
+
368
+ @property
369
+ def error_type(self):
370
+ """Gets the error_type of this ShowReplayResultsRequest.
371
+
372
+ 错误分类,type=error_sql/error_sql_template时生效,根据错误分类过滤数据。
373
+
374
+ :return: The error_type of this ShowReplayResultsRequest.
375
+ :rtype: str
376
+ """
377
+ return self._error_type
378
+
379
+ @error_type.setter
380
+ def error_type(self, error_type):
381
+ """Sets the error_type of this ShowReplayResultsRequest.
382
+
383
+ 错误分类,type=error_sql/error_sql_template时生效,根据错误分类过滤数据。
384
+
385
+ :param error_type: The error_type of this ShowReplayResultsRequest.
386
+ :type error_type: str
387
+ """
388
+ self._error_type = error_type
389
+
390
+ @property
391
+ def sql_template_md5(self):
392
+ """Gets the sql_template_md5 of this ShowReplayResultsRequest.
393
+
394
+ sql模板md5,type=slow_sql/error_sql时生效,根据模板过滤对应的异常SQL和慢SQL,该值为本接口type=slow_sql_template/error_sql_template时的返回字段。
395
+
396
+ :return: The sql_template_md5 of this ShowReplayResultsRequest.
397
+ :rtype: str
398
+ """
399
+ return self._sql_template_md5
400
+
401
+ @sql_template_md5.setter
402
+ def sql_template_md5(self, sql_template_md5):
403
+ """Sets the sql_template_md5 of this ShowReplayResultsRequest.
404
+
405
+ sql模板md5,type=slow_sql/error_sql时生效,根据模板过滤对应的异常SQL和慢SQL,该值为本接口type=slow_sql_template/error_sql_template时的返回字段。
406
+
407
+ :param sql_template_md5: The sql_template_md5 of this ShowReplayResultsRequest.
408
+ :type sql_template_md5: str
409
+ """
410
+ self._sql_template_md5 = sql_template_md5
411
+
325
412
  def to_dict(self):
326
413
  """Returns the model properties as a dict"""
327
414
  result = {}