Commit b5b5ec67 authored by alinamihaila's avatar alinamihaila

Update track_event docs

  - We allow to count multiple values at once
  - Update method docs to metion this as might be
    useful to add multiple values in one Redis
    PFADD operation
parent c7b7ea20
...@@ -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