You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Design an Aggregator class that can aggregate different kind of events and fields into a single document. This satisfies the need to keep track of statistics on e.g. the record level (record views, record downloads, etc).
Example produced document:
# Index "stats-record-2018-06"
{
'_id': "recid-1234-2018-06-01", # one document for each recid and day'recid': '1234',
'conceptrecid': 'C_1234', # included for aggregated version queries'doi': '10.5555/1234',
'conceptdoi': '10.5555/C_1234',
# aggregated from "record-view" events'views': 100,
'unique_views': 60,
'machine_views': 100,
'unique_machine_views': 60,
# aggregated from counting "file-download" events'downloads': 100,
'unique_downloads': 60,
'machine_downloads': 100,
'unique_machine_downloads': 60,
# aggregated from summing up the "size" field from "file-download" events'download_volume': 100,
'unique_download_volume': 60,
'machine_download_volume': 100,
'unique_machine_download_volume': 60,
}
Design an Aggregator class that can aggregate different kind of events and fields into a single document. This satisfies the need to keep track of statistics on e.g. the record level (record views, record downloads, etc).
Example produced document:
Example config for the aggregation:
The text was updated successfully, but these errors were encountered: