Home

/reports/data/kpis

Generates a Key Performance Indicator (KPI) report.

Request
GET http://unravel-host:3000/api/v1/reports/data/kpis?numDays=num-days
Path parameters

None.

Query parameters

Required parameters are highlighted.

Name

Type

Description

numDays

integer

Number of days to include.

Response body

Name

Type

Description

st

integer

Start time in Unix epoch format.

et

integer

End time in Unix epoch format.

nlaTb

integer

Number of tables accessed.

nlaPr

integer

Number of partitions accessed.

nlaQr

integer

Number of queries accessing the table.

nlaRi

integer

Total Read I/O due to accessing the tables.

nlcTb

integer

Number of tables created.

nlcPr

integer

Number of partitions created.

nlcTz

integer

Size of tables created.

nlcPz

integer

Size of partitions created.

ntoTb

integer

Total number of tables in the system.

ntoPr

integer

Total number of partitions in the system.

nhtTb

integer

nwaTb

integer

ncoTb

integer

nhtPr

integer

nwaPr

integer

ncoPr

integer

rp

integer

rs

integer

fs

integer

users

array

Comma-separated list of users.

Examples

Request:

curl -X GET "http://myserver.com:3000/api/v1/reports/data/kpis?numDays=1" -H  "accept: application/json" -H  "Authorization: JWT token"

Response:

[
  {
    "st": 1536795705,
    "et": 1536882105,
    "nlaTb": 15,
    "nlaPr": 0,
    "nlaQr": 57,
    "nlaRi": 101489411821,
    "nlcTb": 7,
    "nlcPr": 0,
    "nlcTz": 304768890,
    "nlcPz": 0,
    "ntoTb": 378,
    "ntoPr": 30061,
    "nhtTb": 19,
    "nwaTb": 0,
    "ncoTb": 359,
    "nhtPr": 1823,
    "nwaPr": 0,
    "ncoPr": 28238,
    "rp": 30061,
    "rs": 92544293666,
    "fs": 92544293666,
    "users": [
      "root",
      "hdfs"
    ]
  }
]