List statistics
GET/metalakes/:metalake/objects/:metadataObjectType/:metadataObjectFullName/statistics
List statistics
Request
Path Parameters
The name of the metalake
Possible values: [METALAKE
, CATALOG
, SCHEMA
, TABLE
, COLUMN
, FILESET
, TOPIC
, MODEL
, ROLE
]
The type of the metadata object
The full name of the metadata object
Responses
- 200
- 404
- 5xx
Returns the statistics for the specified metadata object
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- StatisticListResponse
Schema
Array [
- MOD1
- MOD2
- MOD3
- MOD4
- MOD5
- MOD6
Array [
]
]
Possible values: [0
]
Status code of the response
statistics
object[]
The name of the statistic
value
object
The value of the statistic
oneOf
string
number
integer
boolean
Whether the statistic is reserved
Whether the statistic is modifiable
audit
object
required
Audit information for a Gravitino resource.
The user who created the resource
The time the resource was created
The user who last modified the resource
The time the resource was last modified
{
"code": 0,
"statistics": [
{
"name": "string",
"value": "string",
"reserved": true,
"modifiable": true,
"audit": {
"creator": "string",
"createTime": "2024-07-29T15:51:28.071Z",
"lastModifier": "string",
"lastModifiedTime": "2024-07-29T15:51:28.071Z"
}
}
]
}
{
"code": 0,
"statistics": [
{
"name": "row_count",
"value": "1000",
"reserved": true,
"modifiable": false,
"audit": {
"creator": "user1",
"createTime": "2023-10-01T12:00:00Z",
"lastModifier": "user2",
"lastModifiedTime": "2023-10-02T12:00:00Z"
}
},
{
"name": "file_size",
"value": "500MB",
"reserved": true,
"modifiable": false,
"audit": {
"creator": "user1",
"createTime": "2023-10-01T12:00:00Z",
"lastModifier": "user2",
"lastModifiedTime": "2023-10-02T12:00:00Z"
}
},
{
"name": "custom-k1",
"value": "v1",
"reserved": false,
"modifiable": true,
"audit": {
"creator": "user1",
"createTime": "2023-10-01T12:00:00Z",
"lastModifier": "user2",
"lastModifiedTime": "2023-10-02T12:00:00Z"
}
}
]
}
Not Found - The specified metadata object doesn't exist
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- NoSuchMetadataObjectException
Schema
Possible values: >= 1000
and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1003,
"type": "NoSuchMetadataObjectException",
"message": "Metadata object does not exist",
"stack": [
"org.apache.gravitino.exceptions.NoSuchMetadataObjectException: Metadata object does not exist",
"..."
]
}
A server-side problem that might not be addressable from the client side. Used for server 5xx errors without more specific documentation in individual routes.
- application/vnd.gravitino.v1+json
- Schema
- Example (from schema)
- Example
Schema
Possible values: >= 1000
and <= 1100
HTTP response code
Internal type definition of the error
A human-readable message
{
"code": 1002,
"type": "string",
"message": "string",
"stack": [
"string"
]
}
{
"code": 1002,
"type": "RuntimeException",
"message": "Internal Server Error",
"stack": [
"java.lang.RuntimeException: Internal Server Error"
]
}