curl --request GET \
--url https://api-dev.narrative.io/datasets/{dataset_id}/stats \
--header 'Authorization: Bearer <token>'{
"dataset_id": 1,
"records": [
{
"snapshot_id": 1111111111111111200,
"est_total_dataset_stored_files": 999,
"est_total_dataset_stored_records": 9999,
"est_total_dataset_stored_bytes": 999999,
"active_dataset_stored_files": 999,
"active_dataset_stored_records": 9999,
"active_dataset_stored_bytes": 999999,
"snapshot_added_files": 9,
"snapshot_added_records": 999,
"snapshot_deleted_records": 9,
"snapshot_added_bytes": 9999,
"snapshot_deleted_files": 9,
"snapshot_added_delete_files": 9,
"snapshot_removed_delete_files": 9,
"snapshot_removed_bytes": 9
}
]
}Return summary statistics for all ingestion snapshots for a given dataset.
For datasets with “incremental” updates, each snapshot defines a new incremental upload of data.
For datasets with “overwrite” updates, each snapshot overwrites the previous data.
all_records query parameter is here because of backward compatibility.
By default API is paginated, so if you don’t provide both per_page and offset parameters, you will get only the latest summary.
curl --request GET \
--url https://api-dev.narrative.io/datasets/{dataset_id}/stats \
--header 'Authorization: Bearer <token>'{
"dataset_id": 1,
"records": [
{
"snapshot_id": 1111111111111111200,
"est_total_dataset_stored_files": 999,
"est_total_dataset_stored_records": 9999,
"est_total_dataset_stored_bytes": 999999,
"active_dataset_stored_files": 999,
"active_dataset_stored_records": 9999,
"active_dataset_stored_bytes": 999999,
"snapshot_added_files": 9,
"snapshot_added_records": 999,
"snapshot_deleted_records": 9,
"snapshot_added_bytes": 9999,
"snapshot_deleted_files": 9,
"snapshot_added_delete_files": 9,
"snapshot_removed_delete_files": 9,
"snapshot_removed_bytes": 9
}
]
}Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Unique identifier for a dataset.
If true will return 100 records. If false, only returns the most recent record.
Pagination api with per_page and offset parameters should be used instead of this one.
Number of records to return.
Number of records to skip (it's usually page_number * per_page).