kb-cloud-client-typescript 2.3.0-alpha.109 → 2.3.0-alpha.111

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 (70) hide show
  1. package/dist/adminapi/api.d.ts +1 -0
  2. package/dist/adminapi/api.d.ts.map +1 -1
  3. package/dist/adminapi/api.js +1 -0
  4. package/dist/adminapi/api.js.map +1 -1
  5. package/dist/adminapi/apis/cluster-log-api.d.ts +84 -324
  6. package/dist/adminapi/apis/cluster-log-api.d.ts.map +1 -1
  7. package/dist/adminapi/apis/cluster-log-api.js +78 -228
  8. package/dist/adminapi/apis/cluster-log-api.js.map +1 -1
  9. package/dist/adminapi/apis/database-parameters-api.d.ts +11 -11
  10. package/dist/adminapi/apis/database-parameters-api.d.ts.map +1 -1
  11. package/dist/adminapi/apis/database-parameters-api.js +10 -6
  12. package/dist/adminapi/apis/database-parameters-api.js.map +1 -1
  13. package/dist/adminapi/apis/diagnostics-api.d.ts +120 -0
  14. package/dist/adminapi/apis/diagnostics-api.d.ts.map +1 -0
  15. package/dist/adminapi/apis/diagnostics-api.js +143 -0
  16. package/dist/adminapi/apis/diagnostics-api.js.map +1 -0
  17. package/dist/adminapi/apis/shared-api.d.ts +84 -324
  18. package/dist/adminapi/apis/shared-api.d.ts.map +1 -1
  19. package/dist/adminapi/apis/shared-api.js +78 -228
  20. package/dist/adminapi/apis/shared-api.js.map +1 -1
  21. package/dist/adminapi/models/index.d.ts +1 -0
  22. package/dist/adminapi/models/index.d.ts.map +1 -1
  23. package/dist/adminapi/models/index.js +1 -0
  24. package/dist/adminapi/models/index.js.map +1 -1
  25. package/dist/adminapi/models/postgresql-session.d.ts +121 -0
  26. package/dist/adminapi/models/postgresql-session.d.ts.map +1 -0
  27. package/dist/adminapi/models/postgresql-session.js +16 -0
  28. package/dist/adminapi/models/postgresql-session.js.map +1 -0
  29. package/dist/openapi/api.d.ts +1 -0
  30. package/dist/openapi/api.d.ts.map +1 -1
  31. package/dist/openapi/api.js +1 -0
  32. package/dist/openapi/api.js.map +1 -1
  33. package/dist/openapi/apis/cluster-log-api.d.ts +98 -378
  34. package/dist/openapi/apis/cluster-log-api.d.ts.map +1 -1
  35. package/dist/openapi/apis/cluster-log-api.js +91 -266
  36. package/dist/openapi/apis/cluster-log-api.js.map +1 -1
  37. package/dist/openapi/apis/diagnostics-api.d.ts +120 -0
  38. package/dist/openapi/apis/diagnostics-api.d.ts.map +1 -0
  39. package/dist/openapi/apis/diagnostics-api.js +143 -0
  40. package/dist/openapi/apis/diagnostics-api.js.map +1 -0
  41. package/dist/openapi/apis/shared-api.d.ts +98 -378
  42. package/dist/openapi/apis/shared-api.d.ts.map +1 -1
  43. package/dist/openapi/apis/shared-api.js +91 -266
  44. package/dist/openapi/apis/shared-api.js.map +1 -1
  45. package/dist/openapi/models/index.d.ts +1 -0
  46. package/dist/openapi/models/index.d.ts.map +1 -1
  47. package/dist/openapi/models/index.js +1 -0
  48. package/dist/openapi/models/index.js.map +1 -1
  49. package/dist/openapi/models/postgresql-session.d.ts +121 -0
  50. package/dist/openapi/models/postgresql-session.d.ts.map +1 -0
  51. package/dist/openapi/models/postgresql-session.js +16 -0
  52. package/dist/openapi/models/postgresql-session.js.map +1 -0
  53. package/package.json +1 -6
  54. package/src/adminapi/.openapi-generator/FILES +2 -0
  55. package/src/adminapi/api.ts +1 -0
  56. package/src/adminapi/apis/cluster-log-api.ts +102 -492
  57. package/src/adminapi/apis/database-parameters-api.ts +15 -11
  58. package/src/adminapi/apis/diagnostics-api.ts +196 -0
  59. package/src/adminapi/apis/shared-api.ts +102 -492
  60. package/src/adminapi/models/index.ts +1 -0
  61. package/src/adminapi/models/postgresql-session.ts +126 -0
  62. package/src/adminapi.yaml +134 -120
  63. package/src/openapi/.openapi-generator/FILES +2 -0
  64. package/src/openapi/api.ts +1 -0
  65. package/src/openapi/apis/cluster-log-api.ts +119 -574
  66. package/src/openapi/apis/diagnostics-api.ts +196 -0
  67. package/src/openapi/apis/shared-api.ts +119 -574
  68. package/src/openapi/models/index.ts +1 -0
  69. package/src/openapi/models/postgresql-session.ts +126 -0
  70. package/src/openapi.yaml +131 -140
@@ -563,6 +563,7 @@ export * from './phone-verification-request';
563
563
  export * from './platform-parameter';
564
564
  export * from './platform-parameter-constraints';
565
565
  export * from './platform-parameter-list';
566
+ export * from './postgresql-session';
566
567
  export * from './pre-check-create';
567
568
  export * from './pre-check-result';
568
569
  export * from './pre-check-status';
@@ -0,0 +1,126 @@
1
+ /* tslint:disable */
2
+ /* eslint-disable */
3
+ /**
4
+ * KubeBlocks Cloud API
5
+ * KubeBlocks Cloud API is a RESTful API for managing KubeBlocks Cloud resources. The API is organized around REST. Our API has predictable resource-oriented URLs, accepts `JSON-encoded` request bodies, returns `JSON-encoded` responses, and uses standard HTTP response codes, authentication, and verbs. We use standard HTTP authentication and provide API keys to identify who you are. Your API keys carry many privileges, so be sure to keep them secret! Do not share your secret API keys in publicly accessible areas such as GitHub, client-side code, and so forth.
6
+ *
7
+ * The version of the OpenAPI document: 1.0.0
8
+ * Contact: support@apecloud.com
9
+ *
10
+ * NOTE: This class is auto generated by OpenAPI Generator (https://openapi-generator.tech).
11
+ * https://openapi-generator.tech
12
+ * Do not edit the class manually.
13
+ */
14
+
15
+
16
+
17
+ /**
18
+ *
19
+ * @export
20
+ * @interface PostgresqlSession
21
+ */
22
+ export interface PostgresqlSession {
23
+ /**
24
+ *
25
+ * @type {number}
26
+ * @memberof PostgresqlSession
27
+ */
28
+ 'pid': number;
29
+ /**
30
+ *
31
+ * @type {string}
32
+ * @memberof PostgresqlSession
33
+ */
34
+ 'user': string;
35
+ /**
36
+ *
37
+ * @type {string}
38
+ * @memberof PostgresqlSession
39
+ */
40
+ 'database': string;
41
+ /**
42
+ *
43
+ * @type {string}
44
+ * @memberof PostgresqlSession
45
+ */
46
+ 'applicationName': string;
47
+ /**
48
+ * Client address.
49
+ * @type {string}
50
+ * @memberof PostgresqlSession
51
+ */
52
+ 'clientAddr': string;
53
+ /**
54
+ * Client port.
55
+ * @type {string}
56
+ * @memberof PostgresqlSession
57
+ */
58
+ 'clientPort': string;
59
+ /**
60
+ *
61
+ * @type {string}
62
+ * @memberof PostgresqlSession
63
+ */
64
+ 'state': string;
65
+ /**
66
+ *
67
+ * @type {string}
68
+ * @memberof PostgresqlSession
69
+ */
70
+ 'waitEventType': string;
71
+ /**
72
+ *
73
+ * @type {string}
74
+ * @memberof PostgresqlSession
75
+ */
76
+ 'waitEvent': string;
77
+ /**
78
+ * Backend start timestamp if available.
79
+ * @type {string}
80
+ * @memberof PostgresqlSession
81
+ */
82
+ 'backendStart'?: string;
83
+ /**
84
+ * Query start timestamp if available.
85
+ * @type {string}
86
+ * @memberof PostgresqlSession
87
+ */
88
+ 'queryStart'?: string;
89
+ /**
90
+ * Transaction start timestamp if available.
91
+ * @type {string}
92
+ * @memberof PostgresqlSession
93
+ */
94
+ 'xactStart'?: string;
95
+ /**
96
+ *
97
+ * @type {number}
98
+ * @memberof PostgresqlSession
99
+ */
100
+ 'durationSeconds': number;
101
+ /**
102
+ *
103
+ * @type {number}
104
+ * @memberof PostgresqlSession
105
+ */
106
+ 'xactDurationSeconds': number;
107
+ /**
108
+ *
109
+ * @type {string}
110
+ * @memberof PostgresqlSession
111
+ */
112
+ 'queryDigest': string;
113
+ /**
114
+ *
115
+ * @type {string}
116
+ * @memberof PostgresqlSession
117
+ */
118
+ 'querySummary': string;
119
+ /**
120
+ *
121
+ * @type {string}
122
+ * @memberof PostgresqlSession
123
+ */
124
+ 'backendType': string;
125
+ }
126
+
package/src/openapi.yaml CHANGED
@@ -2323,38 +2323,22 @@ paths:
2323
2323
  format: int64
2324
2324
  - in: query
2325
2325
  name: dbName
2326
- schema:
2327
- type: string
2328
- - in: query
2329
- name: dbNameContains
2326
+ description: Filter slow logs whose database name contains this value.
2330
2327
  schema:
2331
2328
  type: string
2332
2329
  - in: query
2333
2330
  name: userName
2334
- schema:
2335
- type: string
2336
- - in: query
2337
- name: userNameContains
2331
+ description: Filter slow logs whose user name contains this value.
2338
2332
  schema:
2339
2333
  type: string
2340
2334
  - in: query
2341
2335
  name: clientIp
2342
- schema:
2343
- type: string
2344
- - in: query
2345
- name: clientIpContains
2346
- schema:
2347
- type: string
2348
- - in: query
2349
- name: clientIpCIDR
2336
+ description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
2350
2337
  schema:
2351
2338
  type: string
2352
2339
  - in: query
2353
2340
  name: appName
2354
- schema:
2355
- type: string
2356
- - in: query
2357
- name: appNameContains
2341
+ description: Filter slow logs whose application name contains this value.
2358
2342
  schema:
2359
2343
  type: string
2360
2344
  - in: query
@@ -2521,38 +2505,22 @@ paths:
2521
2505
  format: int64
2522
2506
  - in: query
2523
2507
  name: dbName
2524
- schema:
2525
- type: string
2526
- - in: query
2527
- name: dbNameContains
2508
+ description: Filter slow logs whose database name contains this value.
2528
2509
  schema:
2529
2510
  type: string
2530
2511
  - in: query
2531
2512
  name: userName
2532
- schema:
2533
- type: string
2534
- - in: query
2535
- name: userNameContains
2513
+ description: Filter slow logs whose user name contains this value.
2536
2514
  schema:
2537
2515
  type: string
2538
2516
  - in: query
2539
2517
  name: clientIp
2540
- schema:
2541
- type: string
2542
- - in: query
2543
- name: clientIpContains
2544
- schema:
2545
- type: string
2546
- - in: query
2547
- name: clientIpCIDR
2518
+ description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
2548
2519
  schema:
2549
2520
  type: string
2550
2521
  - in: query
2551
2522
  name: appName
2552
- schema:
2553
- type: string
2554
- - in: query
2555
- name: appNameContains
2523
+ description: Filter slow logs whose application name contains this value.
2556
2524
  schema:
2557
2525
  type: string
2558
2526
  responses:
@@ -2798,38 +2766,22 @@ paths:
2798
2766
  format: int64
2799
2767
  - in: query
2800
2768
  name: dbName
2801
- schema:
2802
- type: string
2803
- - in: query
2804
- name: dbNameContains
2769
+ description: Filter slow logs whose database name contains this value.
2805
2770
  schema:
2806
2771
  type: string
2807
2772
  - in: query
2808
2773
  name: userName
2809
- schema:
2810
- type: string
2811
- - in: query
2812
- name: userNameContains
2774
+ description: Filter slow logs whose user name contains this value.
2813
2775
  schema:
2814
2776
  type: string
2815
2777
  - in: query
2816
2778
  name: clientIp
2817
- schema:
2818
- type: string
2819
- - in: query
2820
- name: clientIpContains
2821
- schema:
2822
- type: string
2823
- - in: query
2824
- name: clientIpCIDR
2779
+ description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
2825
2780
  schema:
2826
2781
  type: string
2827
2782
  - in: query
2828
2783
  name: appName
2829
- schema:
2830
- type: string
2831
- - in: query
2832
- name: appNameContains
2784
+ description: Filter slow logs whose application name contains this value.
2833
2785
  schema:
2834
2786
  type: string
2835
2787
  - in: query
@@ -2957,38 +2909,22 @@ paths:
2957
2909
  format: int64
2958
2910
  - in: query
2959
2911
  name: dbName
2960
- schema:
2961
- type: string
2962
- - in: query
2963
- name: dbNameContains
2912
+ description: Filter slow logs whose database name contains this value.
2964
2913
  schema:
2965
2914
  type: string
2966
2915
  - in: query
2967
2916
  name: userName
2968
- schema:
2969
- type: string
2970
- - in: query
2971
- name: userNameContains
2917
+ description: Filter slow logs whose user name contains this value.
2972
2918
  schema:
2973
2919
  type: string
2974
2920
  - in: query
2975
2921
  name: clientIp
2976
- schema:
2977
- type: string
2978
- - in: query
2979
- name: clientIpContains
2980
- schema:
2981
- type: string
2982
- - in: query
2983
- name: clientIpCIDR
2922
+ description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
2984
2923
  schema:
2985
2924
  type: string
2986
2925
  - in: query
2987
2926
  name: appName
2988
- schema:
2989
- type: string
2990
- - in: query
2991
- name: appNameContains
2927
+ description: Filter slow logs whose application name contains this value.
2992
2928
  schema:
2993
2929
  type: string
2994
2930
  - in: query
@@ -3101,38 +3037,22 @@ paths:
3101
3037
  format: int64
3102
3038
  - in: query
3103
3039
  name: dbName
3104
- schema:
3105
- type: string
3106
- - in: query
3107
- name: dbNameContains
3040
+ description: Filter slow logs whose database name contains this value.
3108
3041
  schema:
3109
3042
  type: string
3110
3043
  - in: query
3111
3044
  name: userName
3112
- schema:
3113
- type: string
3114
- - in: query
3115
- name: userNameContains
3045
+ description: Filter slow logs whose user name contains this value.
3116
3046
  schema:
3117
3047
  type: string
3118
3048
  - in: query
3119
3049
  name: clientIp
3120
- schema:
3121
- type: string
3122
- - in: query
3123
- name: clientIpContains
3124
- schema:
3125
- type: string
3126
- - in: query
3127
- name: clientIpCIDR
3050
+ description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
3128
3051
  schema:
3129
3052
  type: string
3130
3053
  - in: query
3131
3054
  name: appName
3132
- schema:
3133
- type: string
3134
- - in: query
3135
- name: appNameContains
3055
+ description: Filter slow logs whose application name contains this value.
3136
3056
  schema:
3137
3057
  type: string
3138
3058
  - in: query
@@ -3391,38 +3311,22 @@ paths:
3391
3311
  format: int64
3392
3312
  - in: query
3393
3313
  name: dbName
3394
- schema:
3395
- type: string
3396
- - in: query
3397
- name: dbNameContains
3314
+ description: Filter slow logs whose database name contains this value.
3398
3315
  schema:
3399
3316
  type: string
3400
3317
  - in: query
3401
3318
  name: userName
3402
- schema:
3403
- type: string
3404
- - in: query
3405
- name: userNameContains
3319
+ description: Filter slow logs whose user name contains this value.
3406
3320
  schema:
3407
3321
  type: string
3408
3322
  - in: query
3409
3323
  name: clientIp
3410
- schema:
3411
- type: string
3412
- - in: query
3413
- name: clientIpContains
3414
- schema:
3415
- type: string
3416
- - in: query
3417
- name: clientIpCIDR
3324
+ description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
3418
3325
  schema:
3419
3326
  type: string
3420
3327
  - in: query
3421
3328
  name: appName
3422
- schema:
3423
- type: string
3424
- - in: query
3425
- name: appNameContains
3329
+ description: Filter slow logs whose application name contains this value.
3426
3330
  schema:
3427
3331
  type: string
3428
3332
  - in: query
@@ -3689,38 +3593,22 @@ paths:
3689
3593
  format: int64
3690
3594
  - in: query
3691
3595
  name: dbName
3692
- schema:
3693
- type: string
3694
- - in: query
3695
- name: dbNameContains
3596
+ description: Filter slow logs whose database name contains this value.
3696
3597
  schema:
3697
3598
  type: string
3698
3599
  - in: query
3699
3600
  name: userName
3700
- schema:
3701
- type: string
3702
- - in: query
3703
- name: userNameContains
3601
+ description: Filter slow logs whose user name contains this value.
3704
3602
  schema:
3705
3603
  type: string
3706
3604
  - in: query
3707
3605
  name: clientIp
3708
- schema:
3709
- type: string
3710
- - in: query
3711
- name: clientIpContains
3712
- schema:
3713
- type: string
3714
- - in: query
3715
- name: clientIpCIDR
3606
+ description: Filter slow logs whose client IP contains this value, or is within this CIDR range when the value is valid CIDR.
3716
3607
  schema:
3717
3608
  type: string
3718
3609
  - in: query
3719
3610
  name: appName
3720
- schema:
3721
- type: string
3722
- - in: query
3723
- name: appNameContains
3611
+ description: Filter slow logs whose application name contains this value.
3724
3612
  schema:
3725
3613
  type: string
3726
3614
  - in: query
@@ -4778,6 +4666,49 @@ paths:
4778
4666
  - cluster
4779
4667
  - shared
4780
4668
  x-codegen-request-body-name: body
4669
+ /api/v1/organizations/{orgName}/clusters/{clusterName}/diagnostics/postgresql/sessions/{pid}:
4670
+ get:
4671
+ tags:
4672
+ - diagnostics
4673
+ summary: Get PostgreSQL session basic diagnostics
4674
+ description: Get one PostgreSQL session basic diagnostics record by backend pid.
4675
+ operationId: getDiagnosticsPostgresqlSession
4676
+ parameters:
4677
+ - name: orgName
4678
+ in: path
4679
+ description: Organization name
4680
+ required: true
4681
+ schema:
4682
+ type: string
4683
+ - name: clusterName
4684
+ in: path
4685
+ description: Cluster name
4686
+ required: true
4687
+ schema:
4688
+ type: string
4689
+ - name: pid
4690
+ in: path
4691
+ description: PostgreSQL backend process id.
4692
+ required: true
4693
+ schema:
4694
+ type: integer
4695
+ format: int64
4696
+ minimum: 1
4697
+ responses:
4698
+ '200':
4699
+ description: OK
4700
+ content:
4701
+ application/json:
4702
+ schema:
4703
+ $ref: '#/components/schemas/postgresqlSession'
4704
+ '401':
4705
+ $ref: '#/components/responses/401'
4706
+ '403':
4707
+ $ref: '#/components/responses/403'
4708
+ '404':
4709
+ $ref: '#/components/responses/404'
4710
+ '500':
4711
+ $ref: '#/components/responses/500'
4781
4712
  /api/v1/organizations/{orgName}/clusters/{clusterName}/metrics:
4782
4713
  get:
4783
4714
  description: Query cluster metrics by specified metric name and instance name, support instant and range query
@@ -21474,6 +21405,66 @@ components:
21474
21405
  taskId:
21475
21406
  type: string
21476
21407
  description: Task ID if the operation is asynchronous (e.g. reconfigure)
21408
+ postgresqlSession:
21409
+ type: object
21410
+ required:
21411
+ - pid
21412
+ - user
21413
+ - database
21414
+ - applicationName
21415
+ - clientAddr
21416
+ - clientPort
21417
+ - state
21418
+ - waitEventType
21419
+ - waitEvent
21420
+ - durationSeconds
21421
+ - xactDurationSeconds
21422
+ - queryDigest
21423
+ - querySummary
21424
+ - backendType
21425
+ properties:
21426
+ pid:
21427
+ type: integer
21428
+ format: int64
21429
+ user:
21430
+ type: string
21431
+ database:
21432
+ type: string
21433
+ applicationName:
21434
+ type: string
21435
+ clientAddr:
21436
+ type: string
21437
+ description: Client address.
21438
+ clientPort:
21439
+ type: string
21440
+ description: Client port.
21441
+ state:
21442
+ type: string
21443
+ waitEventType:
21444
+ type: string
21445
+ waitEvent:
21446
+ type: string
21447
+ backendStart:
21448
+ type: string
21449
+ description: Backend start timestamp if available.
21450
+ queryStart:
21451
+ type: string
21452
+ description: Query start timestamp if available.
21453
+ xactStart:
21454
+ type: string
21455
+ description: Transaction start timestamp if available.
21456
+ durationSeconds:
21457
+ type: integer
21458
+ format: int64
21459
+ xactDurationSeconds:
21460
+ type: integer
21461
+ format: int64
21462
+ queryDigest:
21463
+ type: string
21464
+ querySummary:
21465
+ type: string
21466
+ backendType:
21467
+ type: string
21477
21468
  metricsQueryType:
21478
21469
  type: string
21479
21470
  enum: