-
Notifications
You must be signed in to change notification settings - Fork 24
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
global: configurable aggregations #8
Conversation
invenio_stats/contrib/events.py
Outdated
"""Register sample events.""" | ||
return [dict(event_type='file-download', | ||
processor=EventsIndexer), | ||
dict(event_type='record-view', | ||
processor=EventsIndexer)] | ||
|
||
|
||
def register_aggregations(): |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The file is name events.py
. We should find a more appropriate name if we also put the aggregations there.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to registrations.py
invenio_stats/contrib/events.py
Outdated
|
||
def register_aggregations(): | ||
"""Register sample aggregations.""" | ||
return [dict(event_type='file-download', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The name should not be the name of an event type. We could have multiple aggregations based on the same events.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Changed to aggregation_name
2ef5beb
to
49966de
Compare
* ADDS loading of aggregation logic from entrypoints Signed-off-by: Dinos Kousidis <konstantinos.kousidis@cern.ch>
Signed-off-by: Dinos Kousidis konstantinos.kousidis@cern.ch