Overview Statistics
Function
Overview statistics.
Calling Method
For details, see Calling APIs.
URI
GET /v2/{project_id}/design/definitions/statistic
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| project_id | Yes | String | Project ID. For details about how to obtain the project ID, see Project ID and Account ID. |
Request Parameters
| Parameter | Mandatory | Type | Description |
|---|---|---|---|
| X-Auth-Token | Yes | String | IAM token, which is obtained by calling the IAM API for obtaining a user token (value of X-Subject-Token in the response header). This field is mandatory for authentication using tokens. |
| workspace | Yes | String | Workspace ID. For details about how to obtain the workspace ID, see Instance ID and Workspace ID. |
| X-Project-Id | No | String | Project ID. For details about how to obtain the project ID, see Project ID and Account ID. This parameter is mandatory for API requests that use AK/SK authentication in multi-project scenarios. |
| Content-Type | No | String | Default value: application/json;charset=UTF-8 This parameter is optional. If the body is available, this parameter is mandatory. If the body is unavailable, you do not need to set this parameter or verify it. |
Response Parameters
Status code: 200
| Parameter | Type | Description |
|---|---|---|
| data | data object | data: unified outermost data structure of the returned result. |
| Parameter | Type | Description |
|---|---|---|
| value | StatisticInfo object | value: unified outer data structure of the returned result. |
| Parameter | Type | Description |
|---|---|---|
| atomic_index | StatisticSchema object | Atomic metric. |
| derivative_index | StatisticSchema object | Derivative indicator. |
| compound_metric | StatisticSchema object | Composite index. |
| biz_index | StatisticSchema object | Service indicator. |
| dimension | StatisticSchema object | Dimension. |
| condition_group | StatisticSchema object | Indicates the restriction group. |
| time_condition | StatisticSchema object | Time limit. |
| common_condition | StatisticSchema object | General restriction. |
| dimension_logic_table | StatisticSchema object | Dimension table. |
| fact_logic_table | StatisticSchema object | Fact table. |
| aggregation_logic_table | StatisticSchema object | Summary table. |
| data_standard | StatisticSchema object | Data standard. |
| table_model | StatisticSchema object | Service table. |
| lookup_table | StatisticSchema object | Indicates the code table. |
| pending_review | Integer | Waiting for my review. |
| my_applications | Integer | My Application. |
| Parameter | Type | Description |
|---|---|---|
| increase | Integer | Added this month. |
| total | Integer | Total number. |
| standard_coverage | Double | Standard coverage. |
Status code: 400
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, for example, DS.6000, indicating that the request fails to be processed. |
| error_msg | String | Error message |
| data | Object | Returned data information. |
Status code: 401
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, for example, DS.6000, indicating that the request fails to be processed. |
| error_msg | String | Error message |
| data | Object | Returned data information. |
Status code: 403
| Parameter | Type | Description |
|---|---|---|
| error_code | String | Error code, for example, DS.6000, indicating that the request fails to be processed. |
| error_msg | String | Error message |
| data | Object | Returned data information. |
Example Requests
Statistics on the Overview page.
GET https://{endpoint}/v2/{project_id}/design/definitions/statistic Example Responses
Status code: 200
This operation succeeds, and the returned data is StatisticInfo.
{
"data" : {
"value" : {
"atomic_index" : {
"increase" : 0,
"total" : 5,
"standard_coverage" : null
},
"derivative_index" : {
"increase" : 0,
"total" : 8,
"standard_coverage" : null
},
"compound_metric" : {
"increase" : 0,
"total" : 3,
"standard_coverage" : null
},
"biz_index" : {
"increase" : 0,
"total" : 1,
"standard_coverage" : null
},
"dimension" : {
"increase" : 1,
"total" : 22,
"standard_coverage" : null
},
"condition_group" : null,
"time_condition" : {
"increase" : 0,
"total" : 14,
"standard_coverage" : null
},
"common_condition" : null,
"dimension_logic_table" : {
"increase" : 1,
"total" : 17,
"standard_coverage" : null
},
"fact_logic_table" : {
"increase" : 0,
"total" : 7,
"standard_coverage" : null
},
"aggregation_logic_table" : {
"increase" : 0,
"total" : 12,
"standard_coverage" : null
},
"data_standard" : {
"increase" : 1,
"total" : 13,
"standard_coverage" : null
},
"table_model" : {
"increase" : 15,
"total" : 50,
"standard_coverage" : 0.0775
},
"lookup_table" : {
"increase" : 2,
"total" : 10,
"standard_coverage" : null
},
"pending_review" : 1,
"my_applications" : 1
}
}
} Status code: 400
BadRequest
{
"error_code" : "DS.60xx",
"error_msg" : "The user request is illegal."
} Status code: 401
Unauthorized
{
"error_code" : "DS.60xx",
"error_msg" : "User authentication failed."
} Status code: 403
Forbidden
{
"error_code" : "DS.60xx",
"error_msg" : "The user does not have permission to call this API."
} Status Codes
| Status Code | Description |
|---|---|
| 200 | This operation succeeds, and the returned data is StatisticInfo. |
| 400 | BadRequest |
| 401 | Unauthorized |
| 403 | Forbidden |
Feedback
Was this page helpful?
Provide feedbackThank you very much for your feedback. We will continue working to improve the documentation.