@alicloud/polardbx20200202 2.0.1 → 2.1.0

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.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@alicloud/polardbx20200202",
3
- "version": "2.0.1",
3
+ "version": "2.1.0",
4
4
  "description": "",
5
5
  "main": "dist/client.js",
6
6
  "scripts": {
package/src/client.ts CHANGED
@@ -4978,6 +4978,182 @@ export class DescribeSecurityIpsResponse extends $tea.Model {
4978
4978
  }
4979
4979
  }
4980
4980
 
4981
+ export class DescribeSlowLogRecordsRequest extends $tea.Model {
4982
+ /**
4983
+ * @remarks
4984
+ * This parameter is required.
4985
+ *
4986
+ * @example
4987
+ * polarx_cn
4988
+ */
4989
+ characterType?: string;
4990
+ /**
4991
+ * @remarks
4992
+ * This parameter is required.
4993
+ *
4994
+ * @example
4995
+ * pxc-bjxxxxxxxx
4996
+ */
4997
+ DBInstanceName?: string;
4998
+ /**
4999
+ * @example
5000
+ * testdb
5001
+ */
5002
+ DBName?: string;
5003
+ /**
5004
+ * @example
5005
+ * pxc-i-mezcj4ejdz
5006
+ */
5007
+ DBNodeIds?: string;
5008
+ /**
5009
+ * @remarks
5010
+ * This parameter is required.
5011
+ *
5012
+ * @example
5013
+ * 2024-11-22T02:22Z
5014
+ */
5015
+ endTime?: string;
5016
+ /**
5017
+ * @example
5018
+ * 1
5019
+ */
5020
+ page?: number;
5021
+ /**
5022
+ * @example
5023
+ * 30
5024
+ */
5025
+ pageSize?: number;
5026
+ /**
5027
+ * @remarks
5028
+ * This parameter is required.
5029
+ *
5030
+ * @example
5031
+ * cn-hangzhou
5032
+ */
5033
+ regionId?: string;
5034
+ /**
5035
+ * @remarks
5036
+ * This parameter is required.
5037
+ *
5038
+ * @example
5039
+ * 2024-10-09T02:26
5040
+ */
5041
+ startTime?: string;
5042
+ static names(): { [key: string]: string } {
5043
+ return {
5044
+ characterType: 'CharacterType',
5045
+ DBInstanceName: 'DBInstanceName',
5046
+ DBName: 'DBName',
5047
+ DBNodeIds: 'DBNodeIds',
5048
+ endTime: 'EndTime',
5049
+ page: 'Page',
5050
+ pageSize: 'PageSize',
5051
+ regionId: 'RegionId',
5052
+ startTime: 'StartTime',
5053
+ };
5054
+ }
5055
+
5056
+ static types(): { [key: string]: any } {
5057
+ return {
5058
+ characterType: 'string',
5059
+ DBInstanceName: 'string',
5060
+ DBName: 'string',
5061
+ DBNodeIds: 'string',
5062
+ endTime: 'string',
5063
+ page: 'number',
5064
+ pageSize: 'number',
5065
+ regionId: 'string',
5066
+ startTime: 'string',
5067
+ };
5068
+ }
5069
+
5070
+ constructor(map?: { [key: string]: any }) {
5071
+ super(map);
5072
+ }
5073
+ }
5074
+
5075
+ export class DescribeSlowLogRecordsResponseBody extends $tea.Model {
5076
+ /**
5077
+ * @example
5078
+ * pxc-********
5079
+ */
5080
+ DBInstanceId?: string;
5081
+ items?: DescribeSlowLogRecordsResponseBodyItems[];
5082
+ /**
5083
+ * @example
5084
+ * 1
5085
+ */
5086
+ pageNumber?: string;
5087
+ /**
5088
+ * @example
5089
+ * 30
5090
+ */
5091
+ pageRecordCount?: string;
5092
+ /**
5093
+ * @remarks
5094
+ * Id of the request
5095
+ *
5096
+ * @example
5097
+ * C458B1E8-1683-3645-B154-6BA32080EEA
5098
+ */
5099
+ requestId?: string;
5100
+ /**
5101
+ * @example
5102
+ * 3
5103
+ */
5104
+ totalCount?: string;
5105
+ static names(): { [key: string]: string } {
5106
+ return {
5107
+ DBInstanceId: 'DBInstanceId',
5108
+ items: 'Items',
5109
+ pageNumber: 'PageNumber',
5110
+ pageRecordCount: 'PageRecordCount',
5111
+ requestId: 'RequestId',
5112
+ totalCount: 'TotalCount',
5113
+ };
5114
+ }
5115
+
5116
+ static types(): { [key: string]: any } {
5117
+ return {
5118
+ DBInstanceId: 'string',
5119
+ items: { 'type': 'array', 'itemType': DescribeSlowLogRecordsResponseBodyItems },
5120
+ pageNumber: 'string',
5121
+ pageRecordCount: 'string',
5122
+ requestId: 'string',
5123
+ totalCount: 'string',
5124
+ };
5125
+ }
5126
+
5127
+ constructor(map?: { [key: string]: any }) {
5128
+ super(map);
5129
+ }
5130
+ }
5131
+
5132
+ export class DescribeSlowLogRecordsResponse extends $tea.Model {
5133
+ headers?: { [key: string]: string };
5134
+ statusCode?: number;
5135
+ body?: DescribeSlowLogRecordsResponseBody;
5136
+ static names(): { [key: string]: string } {
5137
+ return {
5138
+ headers: 'headers',
5139
+ statusCode: 'statusCode',
5140
+ body: 'body',
5141
+ };
5142
+ }
5143
+
5144
+ static types(): { [key: string]: any } {
5145
+ return {
5146
+ headers: { 'type': 'map', 'keyType': 'string', 'valueType': 'string' },
5147
+ statusCode: 'number',
5148
+ body: DescribeSlowLogRecordsResponseBody,
5149
+ };
5150
+ }
5151
+
5152
+ constructor(map?: { [key: string]: any }) {
5153
+ super(map);
5154
+ }
5155
+ }
5156
+
4981
5157
  export class DescribeTagsRequest extends $tea.Model {
4982
5158
  /**
4983
5159
  * @example
@@ -9466,6 +9642,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstance extends $tea.Mode
9466
9642
  * 3306
9467
9643
  */
9468
9644
  port?: string;
9645
+ primaryInstanceId?: string;
9469
9646
  /**
9470
9647
  * @remarks
9471
9648
  * 主可用区。
@@ -9588,6 +9765,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstance extends $tea.Mode
9588
9765
  network: 'Network',
9589
9766
  payType: 'PayType',
9590
9767
  port: 'Port',
9768
+ primaryInstanceId: 'PrimaryInstanceId',
9591
9769
  primaryZone: 'PrimaryZone',
9592
9770
  readDBInstances: 'ReadDBInstances',
9593
9771
  regionId: 'RegionId',
@@ -9647,6 +9825,7 @@ export class DescribeDBInstanceAttributeResponseBodyDBInstance extends $tea.Mode
9647
9825
  network: 'string',
9648
9826
  payType: 'string',
9649
9827
  port: 'string',
9828
+ primaryInstanceId: 'string',
9650
9829
  primaryZone: 'string',
9651
9830
  readDBInstances: { 'type': 'array', 'itemType': 'string' },
9652
9831
  regionId: 'string',
@@ -10831,6 +11010,7 @@ export class DescribeDBInstancesResponseBodyDBInstances extends $tea.Model {
10831
11010
  * Prepaid
10832
11011
  */
10833
11012
  payType?: string;
11013
+ primaryInstanceId?: string;
10834
11014
  /**
10835
11015
  * @remarks
10836
11016
  * 主可用区。
@@ -10939,6 +11119,7 @@ export class DescribeDBInstancesResponseBodyDBInstances extends $tea.Model {
10939
11119
  nodeCount: 'NodeCount',
10940
11120
  nodes: 'Nodes',
10941
11121
  payType: 'PayType',
11122
+ primaryInstanceId: 'PrimaryInstanceId',
10942
11123
  primaryZone: 'PrimaryZone',
10943
11124
  readDBInstances: 'ReadDBInstances',
10944
11125
  regionId: 'RegionId',
@@ -10988,6 +11169,7 @@ export class DescribeDBInstancesResponseBodyDBInstances extends $tea.Model {
10988
11169
  nodeCount: 'number',
10989
11170
  nodes: { 'type': 'array', 'itemType': DescribeDBInstancesResponseBodyDBInstancesNodes },
10990
11171
  payType: 'string',
11172
+ primaryInstanceId: 'string',
10991
11173
  primaryZone: 'string',
10992
11174
  readDBInstances: { 'type': 'array', 'itemType': 'string' },
10993
11175
  regionId: 'string',
@@ -11721,6 +11903,197 @@ export class DescribeSecurityIpsResponseBodyData extends $tea.Model {
11721
11903
  }
11722
11904
  }
11723
11905
 
11906
+ export class DescribeSlowLogRecordsResponseBodyItems extends $tea.Model {
11907
+ /**
11908
+ * @example
11909
+ * pxc-i-xxxx
11910
+ */
11911
+ CNname?: string;
11912
+ /**
11913
+ * @example
11914
+ * dcdev
11915
+ */
11916
+ DBName?: string;
11917
+ /**
11918
+ * @example
11919
+ * tddl:5.4.19-20240927
11920
+ */
11921
+ extension?: string;
11922
+ /**
11923
+ * @example
11924
+ * 0
11925
+ */
11926
+ fail?: string;
11927
+ /**
11928
+ * @example
11929
+ * 1
11930
+ */
11931
+ frows?: string;
11932
+ /**
11933
+ * @example
11934
+ * ****[****] @ [1XX.XX.XX.XX]
11935
+ */
11936
+ hostAddress?: string;
11937
+ /**
11938
+ * @example
11939
+ * pxc-xdb-s-xxxx
11940
+ */
11941
+ insName?: string;
11942
+ /**
11943
+ * @example
11944
+ * 0
11945
+ */
11946
+ isBind?: string;
11947
+ /**
11948
+ * @example
11949
+ * 1
11950
+ */
11951
+ lockTimeMS?: string;
11952
+ /**
11953
+ * @example
11954
+ * ["1"]
11955
+ */
11956
+ params?: string;
11957
+ /**
11958
+ * @example
11959
+ * 10
11960
+ */
11961
+ parseRowCounts?: string;
11962
+ /**
11963
+ * @example
11964
+ * 2024-11-22T02:22:22.444Z
11965
+ */
11966
+ queryStartTime?: string;
11967
+ /**
11968
+ * @example
11969
+ * 3.000
11970
+ */
11971
+ queryTime?: string;
11972
+ /**
11973
+ * @example
11974
+ * 3000.000
11975
+ */
11976
+ queryTimeMS?: string;
11977
+ /**
11978
+ * @example
11979
+ * 20
11980
+ */
11981
+ returnRowCounts?: string;
11982
+ /**
11983
+ * @example
11984
+ * 1
11985
+ */
11986
+ rows?: string;
11987
+ /**
11988
+ * @example
11989
+ * 1
11990
+ */
11991
+ SCNT?: string;
11992
+ /**
11993
+ * @example
11994
+ * c8df07e5d45cd68da8b4771c2016e20b
11995
+ */
11996
+ SQLHash?: string;
11997
+ /**
11998
+ * @example
11999
+ * select * from test
12000
+ */
12001
+ SQLText?: string;
12002
+ /**
12003
+ * @example
12004
+ * select
12005
+ */
12006
+ sqlType?: string;
12007
+ /**
12008
+ * @example
12009
+ * 0
12010
+ */
12011
+ tooLong?: string;
12012
+ /**
12013
+ * @example
12014
+ * 17a5c5c840006000
12015
+ */
12016
+ traceId?: string;
12017
+ /**
12018
+ * @example
12019
+ * XA
12020
+ */
12021
+ transactionPolicy?: string;
12022
+ /**
12023
+ * @example
12024
+ * 17a5c5c840006000
12025
+ */
12026
+ trxId?: string;
12027
+ /**
12028
+ * @example
12029
+ * TP
12030
+ */
12031
+ WT?: string;
12032
+ static names(): { [key: string]: string } {
12033
+ return {
12034
+ CNname: 'CNname',
12035
+ DBName: 'DBName',
12036
+ extension: 'Extension',
12037
+ fail: 'Fail',
12038
+ frows: 'Frows',
12039
+ hostAddress: 'HostAddress',
12040
+ insName: 'InsName',
12041
+ isBind: 'IsBind',
12042
+ lockTimeMS: 'LockTimeMS',
12043
+ params: 'Params',
12044
+ parseRowCounts: 'ParseRowCounts',
12045
+ queryStartTime: 'QueryStartTime',
12046
+ queryTime: 'QueryTime',
12047
+ queryTimeMS: 'QueryTimeMS',
12048
+ returnRowCounts: 'ReturnRowCounts',
12049
+ rows: 'Rows',
12050
+ SCNT: 'SCNT',
12051
+ SQLHash: 'SQLHash',
12052
+ SQLText: 'SQLText',
12053
+ sqlType: 'SqlType',
12054
+ tooLong: 'TooLong',
12055
+ traceId: 'TraceId',
12056
+ transactionPolicy: 'TransactionPolicy',
12057
+ trxId: 'TrxId',
12058
+ WT: 'WT',
12059
+ };
12060
+ }
12061
+
12062
+ static types(): { [key: string]: any } {
12063
+ return {
12064
+ CNname: 'string',
12065
+ DBName: 'string',
12066
+ extension: 'string',
12067
+ fail: 'string',
12068
+ frows: 'string',
12069
+ hostAddress: 'string',
12070
+ insName: 'string',
12071
+ isBind: 'string',
12072
+ lockTimeMS: 'string',
12073
+ params: 'string',
12074
+ parseRowCounts: 'string',
12075
+ queryStartTime: 'string',
12076
+ queryTime: 'string',
12077
+ queryTimeMS: 'string',
12078
+ returnRowCounts: 'string',
12079
+ rows: 'string',
12080
+ SCNT: 'string',
12081
+ SQLHash: 'string',
12082
+ SQLText: 'string',
12083
+ sqlType: 'string',
12084
+ tooLong: 'string',
12085
+ traceId: 'string',
12086
+ transactionPolicy: 'string',
12087
+ trxId: 'string',
12088
+ WT: 'string',
12089
+ };
12090
+ }
12091
+
12092
+ constructor(map?: { [key: string]: any }) {
12093
+ super(map);
12094
+ }
12095
+ }
12096
+
11724
12097
  export class DescribeTagsResponseBodyTagInfos extends $tea.Model {
11725
12098
  DBInstanceIds?: string[];
11726
12099
  /**
@@ -14433,6 +14806,80 @@ export default class Client extends OpenApi {
14433
14806
  return await this.describeSecurityIpsWithOptions(request, runtime);
14434
14807
  }
14435
14808
 
14809
+ /**
14810
+ * 慢SQL明细
14811
+ *
14812
+ * @param request - DescribeSlowLogRecordsRequest
14813
+ * @param runtime - runtime options for this request RuntimeOptions
14814
+ * @returns DescribeSlowLogRecordsResponse
14815
+ */
14816
+ async describeSlowLogRecordsWithOptions(request: DescribeSlowLogRecordsRequest, runtime: $Util.RuntimeOptions): Promise<DescribeSlowLogRecordsResponse> {
14817
+ Util.validateModel(request);
14818
+ let query = { };
14819
+ if (!Util.isUnset(request.characterType)) {
14820
+ query["CharacterType"] = request.characterType;
14821
+ }
14822
+
14823
+ if (!Util.isUnset(request.DBInstanceName)) {
14824
+ query["DBInstanceName"] = request.DBInstanceName;
14825
+ }
14826
+
14827
+ if (!Util.isUnset(request.DBName)) {
14828
+ query["DBName"] = request.DBName;
14829
+ }
14830
+
14831
+ if (!Util.isUnset(request.DBNodeIds)) {
14832
+ query["DBNodeIds"] = request.DBNodeIds;
14833
+ }
14834
+
14835
+ if (!Util.isUnset(request.endTime)) {
14836
+ query["EndTime"] = request.endTime;
14837
+ }
14838
+
14839
+ if (!Util.isUnset(request.page)) {
14840
+ query["Page"] = request.page;
14841
+ }
14842
+
14843
+ if (!Util.isUnset(request.pageSize)) {
14844
+ query["PageSize"] = request.pageSize;
14845
+ }
14846
+
14847
+ if (!Util.isUnset(request.regionId)) {
14848
+ query["RegionId"] = request.regionId;
14849
+ }
14850
+
14851
+ if (!Util.isUnset(request.startTime)) {
14852
+ query["StartTime"] = request.startTime;
14853
+ }
14854
+
14855
+ let req = new $OpenApi.OpenApiRequest({
14856
+ query: OpenApiUtil.query(query),
14857
+ });
14858
+ let params = new $OpenApi.Params({
14859
+ action: "DescribeSlowLogRecords",
14860
+ version: "2020-02-02",
14861
+ protocol: "HTTPS",
14862
+ pathname: "/",
14863
+ method: "POST",
14864
+ authType: "AK",
14865
+ style: "RPC",
14866
+ reqBodyType: "formData",
14867
+ bodyType: "json",
14868
+ });
14869
+ return $tea.cast<DescribeSlowLogRecordsResponse>(await this.callApi(params, req, runtime), new DescribeSlowLogRecordsResponse({}));
14870
+ }
14871
+
14872
+ /**
14873
+ * 慢SQL明细
14874
+ *
14875
+ * @param request - DescribeSlowLogRecordsRequest
14876
+ * @returns DescribeSlowLogRecordsResponse
14877
+ */
14878
+ async describeSlowLogRecords(request: DescribeSlowLogRecordsRequest): Promise<DescribeSlowLogRecordsResponse> {
14879
+ let runtime = new $Util.RuntimeOptions({ });
14880
+ return await this.describeSlowLogRecordsWithOptions(request, runtime);
14881
+ }
14882
+
14436
14883
  /**
14437
14884
  * 标签列表查询
14438
14885
  *