Commit d4817475 authored by Mike Jang's avatar Mike Jang

Merge branch '280526-add-docs-for-track_events-with-multiple-values' into 'master'

Add docs for track_event with multiple values

See merge request gitlab-org/gitlab!47180
parents a5a1aca3 b5b5ec67
...@@ -422,11 +422,11 @@ w ...@@ -422,11 +422,11 @@ w
api.trackRedisHllUserEvent('my_already_defined_event_name'), api.trackRedisHllUserEvent('my_already_defined_event_name'),
``` ```
1. Track event using base module `Gitlab::UsageDataCounters::HLLRedisCounter.track_event(entity_id, event_name)`. 1. Track event using base module `Gitlab::UsageDataCounters::HLLRedisCounter.track_event(values, event_name)`.
Arguments: Arguments:
- `entity_id`: value we count. For example: user_id, visitor_id. - `values`: One value or array of values we count. For example: user_id, visitor_id, user_ids.
- `event_name`: event name. - `event_name`: event name.
1. Get event data using `Gitlab::UsageDataCounters::HLLRedisCounter.unique_events(event_names:, start_date:, end_date)`. 1. Get event data using `Gitlab::UsageDataCounters::HLLRedisCounter.unique_events(event_names:, start_date:, end_date)`.
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment