Create endpoint to retrieve logbook usage statistics
We need a endpoint that gives some hints about how the logbook is being used.
Endpoint proposed is:
/logbook/{sessionId}/stats
And it returns an array of:
{
"_id": {
"investigationId": 365019478
},
"count": 20,
"investigationId": 365019478,
"title": "Commissioning of scanning diffraction setup",
"parameters": {
"__fileCount": "77",
"__volume": "16237319033",
"__datasetCount": "5",
"__sampleCount": "3",
"__elapsedTime": "0",
"Id": "92050",
"IsCancelled": "false"
},
"startDate": "2021-02-07T08:00:00.000+01:00",
"endDate": "2021-02-15T08:00:00.000+01:00",
"annotations": 10,
"notifications": 405
},
It can be found both investigation statisticas as dataset and datafile count + the number of annotations and notifications.
Edited by Alejandro De Maria Antolinos