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

Obtaining Technical Asset Statistics

Function

This API is used to obtain technical asset statistics.

URI

GET /v3/{project_id}/asset/statistic/assets/technical-assets

Table 1 Path Parameters

Parameter

Mandatory

Type

Description

project_id

Yes

String

Project ID

Table 2 Query Parameters

Parameter

Mandatory

Type

Description

tag

No

String

Tag name of the technical assets

Request Parameters

Table 3 Request header parameters

Parameter

Mandatory

Type

Description

X-Auth-Token

Yes

String

IAM Token

workspace

Yes

String

DGC workspace ID

Response Parameters

Status code: 200

Table 4 Response body parameters

Parameter

Type

Description

count

Integer

Number of data connections

datasource_statistics

Array of DataSource objects

Data connection statistics

Table 5 DataSource

Parameter

Type

Description

datasource_name

String

Data connection name

datasource_type

String

Data connection type

datasource_guid

String

Data connection GUID

datasource_qualified_name

String

Name that uniquely identifies the data connection

obs_folder_count

Integer

Number of OBS directories

obs_file_count

Integer

Number of OBS files

css_index_count

Integer

Number of CSS indexes

css_index_field_count

Integer

Number of CSS index fields

namespace_count

Integer

Number of namespaces

ges_vertex_count

Integer

Number of GES vertexes

ges_edge_count

Integer

Number of GES edges

database_count

Integer

Number of databases

stream_count

Integer

Number of streams

table_count

Integer

Number of tables

data_size

Integer

Data size

databases

Array of Database objects

Database statistics

folders

Array of ObsFolder objects

Folder statistics

css_indices

Array of CssIndex objects

CSS index statistics

namespaces

Array of Namespace objects

Namespace statistics

dis_streams

Array of DisStream objects

Stream statistics

Table 6 Database

Parameter

Type

Description

database_name

String

Database name

database_guid

String

Database GUID

database_qualified_name

String

Name that uniquely identifies the database

table_count

Integer

Number of tables in the database

data_size

Integer

Data size

Table 7 ObsFolder

Parameter

Type

Description

folder_name

String

Folder name

folder_guid

String

Folder GUID

folder_qualified_name

String

Name that uniquely identifies the folder

object_count

Integer

Number of objects

data_size

Integer

Data size

Table 8 CssIndex

Parameter

Type

Description

index_name

String

Index name

index_guid

String

Index GUID

index_qualified_name

String

Name that uniquely identifies the index

index_doc_count

Integer

Number of documents in the index

index_data_size

Integer

Index data size

Table 9 Namespace

Parameter

Type

Description

namespace_name

String

Namespace name

namespace_guid

String

Namespace GUID

namespace_qualified_name

String

Name that uniquely identifies the namespace

table_count

Integer

Number of tables in the namespace

Table 10 DisStream

Parameter

Type

Description

stream_name

String

Stream name

stream_guid

String

Stream GUID

stream_qualified_name

String

Name that uniquely identifies the stream

partition_count

Integer

Number of partitions

app_count

Integer

Number of DIS apps

task_count

Integer

Number of dump tasks

Status code: 400

Table 11 Response body parameters

Parameter

Type

Description

error_code

String

Error code

error_msg

String

Error message

Status code: 401

Table 12 Response body parameters

Parameter

Type

Description

error_code

String

Error code

error_msg

String

Error message

Status code: 403

Table 13 Response body parameters

Parameter

Type

Description

error_code

String

Error code

error_msg

String

Error message

Status code: 404

Table 14 Response body parameters

Parameter

Type

Description

error_code

String

Error code

error_msg

String

Error message

Example Requests

None

Example Responses

Status code: 200

Technical assets statistic

{
  "count" : 1,
  "datasource_statistics" : [ {
    "datasource_name" : "dli",
    "datasource_type" : "dli",
    "datasource_guid" : "0fff4057-c206-4dc3-a4ac-73ffc332bc9a",
    "datasource_qualified_name" : "dli@0833a5737480d53b2f25c010dc1a7b88-workspace-61aa10df45e54431a1901cb3527adab8",
    "obs_folder_count" : 0,
    "obs_file_count" : 0,
    "css_index_count" : 0,
    "css_index_field_count" : 0,
    "namespace_count" : 0,
    "ges_vertex_count" : 0,
    "ges_edge_count" : 0,
    "database_count" : 1,
    "stream_count" : 0,
    "table_count" : 1,
    "data_size" : 5478,
    "databases" : [ {
      "data_size" : 5478,
      "database_guid" : "e2b12c35-48ee-441f-a357-e338a85f5d00",
      "database_name" : "cbu_training",
      "database_qualified_name" : "cbu_training@dli.0833a5737480d53b2f25c010dc1a7b88-workspace-61aa10df45e54431a1901cb3527adab8",
      "table_count" : 1
    } ],
    "folders" : null,
    "css_indices" : null,
    "namespaces" : null,
    "dis_streams" : null
  } ]
}

Status Codes

Status Code

Description

200

Technical assets statistic

400

BadRequest

401

Unauthorized

403

Forbidden

404

Not Found