Updated on 2022-09-15 GMT+08:00

Obtaining Statistics

Function

This API is used to obtain statistics.

URI

GET /v2/{project_id}/design/definitions/statistic

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Request Parameters

None

Response Parameters

Status code: 200

Table 2 Response body parameters

Parameter

Type

Description

atomic_index

StatisticSchema object

Atomic metric

derivative_index

StatisticSchema object

Derivative metric

compound_metric

StatisticSchema object

Compound metric

biz_index

StatisticSchema object

Business metric

dimension

StatisticSchema object

Dimension

condition_group

StatisticSchema object

Filter group

time_condition

StatisticSchema object

Time filter

common_condition

StatisticSchema object

General filter

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

Business table

lookup_table

StatisticSchema object

Lookup table

pending_review

Integer

Applications pending review

my_applications

Integer

My applications

Table 3 StatisticSchema

Parameter

Type

Description

increase

Integer

New schemas in the current month

total

Integer

Total number of schemas

standard_coverage

Double

Standard coverage rate

Status code: 400

Table 4 Response body parameters

Parameter

Type

Description

error_code

String

Error code, for example, DS.000 which indicates that the request was successfully processed.

error_msg

String

Error message

data

Object

Returned data

Status code: 401

Table 5 Response body parameters

Parameter

Type

Description

error_code

String

Error code, for example, DS.000 which indicates that the request was successfully processed.

error_msg

String

Error message

data

Object

Returned data

Status code: 403

Table 6 Response body parameters

Parameter

Type

Description

error_code

String

Error code, for example, DS.000 which indicates that the request was successfully processed.

error_msg

String

Error message

data

Object

Returned data

Example Requests

None

Example Responses

Status code: 200

The operation succeeds. StatisticInfo is returned.

{
  "atomic_index" : {
    "increase" : 0,
    "total" : 1,
    "standard_coverage" : null
  },
  "derivative_index" : {
    "increase" : 1,
    "total" : 4,
    "standard_coverage" : null
  },
  "compound_metric" : {
    "increase" : 0,
    "total" : 0,
    "standard_coverage" : null
  },
  "biz_index" : {
    "increase" : 0,
    "total" : 2,
    "standard_coverage" : null
  },
  "dimension" : {
    "increase" : 0,
    "total" : 4,
    "standard_coverage" : null
  },
  "condition_group" : null,
  "time_condition" : {
    "increase" : 0,
    "total" : 14,
    "standard_coverage" : null
  },
  "common_condition" : null,
  "dimension_logic_table" : {
    "increase" : 0,
    "total" : 4,
    "standard_coverage" : null
  },
  "fact_logic_table" : {
    "increase" : 0,
    "total" : 1,
    "standard_coverage" : 0.1429
  },
  "aggregation_logic_table" : {
    "increase" : 1,
    "total" : 4,
    "standard_coverage" : null
  },
  "data_standard" : {
    "increase" : 1,
    "total" : 5,
    "standard_coverage" : null
  },
  "table_model" : {
    "increase" : 5,
    "total" : 9,
    "standard_coverage" : 0.027
  },
  "lookup_table" : {
    "increase" : 1,
    "total" : 4,
    "standard_coverage" : null
  },
  "pending_review" : 0,
  "my_applications" : 0
}

Status Codes

Status Code

Description

200

The operation succeeds. StatisticInfo is returned.

400

BadRequest

401

Unauthorized

403

Forbidden