-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat:Data Object Usage and Overview of Data Object Usage
- Loading branch information
Showing
5 changed files
with
381 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
package v1 | ||
|
||
import base "github.com/actiontech/dms/pkg/dms-common/api/base/v1" | ||
|
||
// swagger:parameters GetCBInstanceStatistic | ||
type GetCBInstanceStatisticReq struct { | ||
// project id | ||
// Required: true | ||
// in:path | ||
ProjectUid string `param:"project_uid" json:"project_uid" validate:"required"` | ||
} | ||
|
||
// swagger:model GetCBInstanceStatisticReply | ||
type GetCBInstanceStatisticReply struct { | ||
// Generic reply | ||
base.GenericResp | ||
Data []*CbDbServiceStatistic `json:"data"` | ||
} | ||
|
||
type CbDbServiceStatistic struct { | ||
Name string `json:"name"` | ||
Count int64 `json:"count"` | ||
Content []*CbDbServiceStatisticContent `json:"content"` | ||
} | ||
|
||
type CbDbServiceStatisticContent struct { | ||
Schema string `json:"schema"` | ||
Table string `json:"table"` | ||
} | ||
|
||
// swagger:parameters GetCBOperationStatistic | ||
type GetCBOperationStatisticReq struct { | ||
// project id | ||
// Required: true | ||
// in:path | ||
ProjectUid string `param:"project_uid" json:"project_uid" validate:"required"` | ||
} | ||
|
||
// swagger:model GetCBOperationStatisticReply | ||
type GetCBOperationStatisticReply struct { | ||
// Generic reply | ||
base.GenericResp | ||
Data []*CbOperationStatistic `json:"data"` | ||
} | ||
|
||
type CbOperationStatistic struct { | ||
OperationType string `json:"operation_type"` | ||
OperationCount int64 `json:"operation_count"` | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.