|
3315 | 3315 | } |
3316 | 3316 | } |
3317 | 3317 | }, |
| 3318 | + "/v1/dms/projects/{project_uid}/statistic/cb_instances": { |
| 3319 | + "get": { |
| 3320 | + "tags": [ |
| 3321 | + "dms" |
| 3322 | + ], |
| 3323 | + "summary": "Get cb instance statistic.", |
| 3324 | + "operationId": "GetCBInstanceStatistic", |
| 3325 | + "parameters": [ |
| 3326 | + { |
| 3327 | + "type": "string", |
| 3328 | + "x-go-name": "ProjectUid", |
| 3329 | + "description": "project id", |
| 3330 | + "name": "project_uid", |
| 3331 | + "in": "path", |
| 3332 | + "required": true |
| 3333 | + } |
| 3334 | + ], |
| 3335 | + "responses": { |
| 3336 | + "200": { |
| 3337 | + "description": "GetCBInstanceStatisticReply", |
| 3338 | + "schema": { |
| 3339 | + "$ref": "#/definitions/GetCBInstanceStatisticReply" |
| 3340 | + } |
| 3341 | + }, |
| 3342 | + "default": { |
| 3343 | + "description": "GenericResp", |
| 3344 | + "schema": { |
| 3345 | + "$ref": "#/definitions/GenericResp" |
| 3346 | + } |
| 3347 | + } |
| 3348 | + } |
| 3349 | + } |
| 3350 | + }, |
| 3351 | + "/v1/dms/projects/{project_uid}/statistic/cb_operations": { |
| 3352 | + "get": { |
| 3353 | + "tags": [ |
| 3354 | + "dms" |
| 3355 | + ], |
| 3356 | + "summary": "Get cb operation statistic.", |
| 3357 | + "operationId": "GetCBOperationStatistic", |
| 3358 | + "parameters": [ |
| 3359 | + { |
| 3360 | + "type": "string", |
| 3361 | + "x-go-name": "ProjectUid", |
| 3362 | + "description": "project id", |
| 3363 | + "name": "project_uid", |
| 3364 | + "in": "path", |
| 3365 | + "required": true |
| 3366 | + } |
| 3367 | + ], |
| 3368 | + "responses": { |
| 3369 | + "200": { |
| 3370 | + "description": "GetCBOperationStatisticReply", |
| 3371 | + "schema": { |
| 3372 | + "$ref": "#/definitions/GetCBOperationStatisticReply" |
| 3373 | + } |
| 3374 | + }, |
| 3375 | + "default": { |
| 3376 | + "description": "GenericResp", |
| 3377 | + "schema": { |
| 3378 | + "$ref": "#/definitions/GenericResp" |
| 3379 | + } |
| 3380 | + } |
| 3381 | + } |
| 3382 | + } |
| 3383 | + }, |
3318 | 3384 | "/v1/dms/projects/{project_uid}/unarchive": { |
3319 | 3385 | "put": { |
3320 | 3386 | "tags": [ |
|
4738 | 4804 | }, |
4739 | 4805 | "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
4740 | 4806 | }, |
| 4807 | + "CBOperationLogTips": { |
| 4808 | + "type": "object", |
| 4809 | + "properties": { |
| 4810 | + "exec_result": { |
| 4811 | + "type": "array", |
| 4812 | + "items": { |
| 4813 | + "type": "string" |
| 4814 | + }, |
| 4815 | + "x-go-name": "ExecResult" |
| 4816 | + } |
| 4817 | + }, |
| 4818 | + "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
| 4819 | + }, |
4741 | 4820 | "CancelDataExportWorkflowPayload": { |
4742 | 4821 | "type": "object", |
4743 | 4822 | "required": [ |
|
5328 | 5407 | }, |
5329 | 5408 | "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
5330 | 5409 | }, |
| 5410 | + "GetCBInstanceStatisticReply": { |
| 5411 | + "type": "object", |
| 5412 | + "properties": { |
| 5413 | + "code": { |
| 5414 | + "description": "code", |
| 5415 | + "type": "integer", |
| 5416 | + "format": "int64", |
| 5417 | + "x-go-name": "Code" |
| 5418 | + }, |
| 5419 | + "data": { |
| 5420 | + "type": "array", |
| 5421 | + "items": { |
| 5422 | + "$ref": "#/definitions/cbDbServiceStatistic" |
| 5423 | + }, |
| 5424 | + "x-go-name": "Data" |
| 5425 | + }, |
| 5426 | + "message": { |
| 5427 | + "description": "message", |
| 5428 | + "type": "string", |
| 5429 | + "x-go-name": "Message" |
| 5430 | + } |
| 5431 | + }, |
| 5432 | + "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
| 5433 | + }, |
5331 | 5434 | "GetCBOperationLogTipsReply": { |
5332 | 5435 | "type": "object", |
5333 | 5436 | "properties": { |
|
5338 | 5441 | "x-go-name": "Code" |
5339 | 5442 | }, |
5340 | 5443 | "data": { |
5341 | | - "$ref": "#/definitions/cBOperationLogTips" |
| 5444 | + "$ref": "#/definitions/CBOperationLogTips" |
| 5445 | + }, |
| 5446 | + "message": { |
| 5447 | + "description": "message", |
| 5448 | + "type": "string", |
| 5449 | + "x-go-name": "Message" |
| 5450 | + } |
| 5451 | + }, |
| 5452 | + "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
| 5453 | + }, |
| 5454 | + "GetCBOperationStatisticReply": { |
| 5455 | + "type": "object", |
| 5456 | + "properties": { |
| 5457 | + "code": { |
| 5458 | + "description": "code", |
| 5459 | + "type": "integer", |
| 5460 | + "format": "int64", |
| 5461 | + "x-go-name": "Code" |
| 5462 | + }, |
| 5463 | + "data": { |
| 5464 | + "type": "array", |
| 5465 | + "items": { |
| 5466 | + "$ref": "#/definitions/cbOperationStatistic" |
| 5467 | + }, |
| 5468 | + "x-go-name": "Data" |
5342 | 5469 | }, |
5343 | 5470 | "message": { |
5344 | 5471 | "description": "message", |
|
8381 | 8508 | "x-go-name": "Uid" |
8382 | 8509 | } |
8383 | 8510 | }, |
8384 | | - "x-go-package": "github.com/actiontech/dms/pkg/dms-common/api/dms/v1" |
| 8511 | + "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
8385 | 8512 | }, |
8386 | 8513 | "UpdateCompanyNotice": { |
8387 | 8514 | "description": "A companynotice", |
|
9063 | 9190 | }, |
9064 | 9191 | "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
9065 | 9192 | }, |
9066 | | - "cBOperationLogTips": { |
| 9193 | + "cbDbServiceStatistic": { |
9067 | 9194 | "type": "object", |
9068 | 9195 | "properties": { |
9069 | | - "exec_result": { |
| 9196 | + "content": { |
9070 | 9197 | "type": "array", |
9071 | 9198 | "items": { |
9072 | | - "type": "string" |
| 9199 | + "$ref": "#/definitions/cbDbServiceStatisticContent" |
9073 | 9200 | }, |
9074 | | - "x-go-name": "ExecResult" |
| 9201 | + "x-go-name": "Content" |
| 9202 | + }, |
| 9203 | + "count": { |
| 9204 | + "type": "integer", |
| 9205 | + "format": "int64", |
| 9206 | + "x-go-name": "Count" |
| 9207 | + }, |
| 9208 | + "id": { |
| 9209 | + "type": "string", |
| 9210 | + "x-go-name": "ID" |
| 9211 | + }, |
| 9212 | + "name": { |
| 9213 | + "type": "string", |
| 9214 | + "x-go-name": "Name" |
| 9215 | + } |
| 9216 | + }, |
| 9217 | + "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
| 9218 | + }, |
| 9219 | + "cbDbServiceStatisticContent": { |
| 9220 | + "type": "object", |
| 9221 | + "properties": { |
| 9222 | + "schema": { |
| 9223 | + "type": "string", |
| 9224 | + "x-go-name": "Schema" |
| 9225 | + }, |
| 9226 | + "table": { |
| 9227 | + "type": "string", |
| 9228 | + "x-go-name": "Table" |
| 9229 | + } |
| 9230 | + }, |
| 9231 | + "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
| 9232 | + }, |
| 9233 | + "cbOperationStatistic": { |
| 9234 | + "type": "object", |
| 9235 | + "properties": { |
| 9236 | + "operation_count": { |
| 9237 | + "type": "integer", |
| 9238 | + "format": "int64", |
| 9239 | + "x-go-name": "OperationCount" |
| 9240 | + }, |
| 9241 | + "operation_type": { |
| 9242 | + "type": "string", |
| 9243 | + "x-go-name": "OperationType" |
9075 | 9244 | } |
9076 | 9245 | }, |
9077 | 9246 | "x-go-package": "github.com/actiontech/dms/api/dms/service/v1" |
|
0 commit comments