Skip to content

Commit

Permalink
Show final report for Flexible Event count example (#1117)
Browse files Browse the repository at this point in the history
For parity with the value-sum example.
  • Loading branch information
apasel422 committed Nov 28, 2023
1 parent ada7f5f commit d4b1f0b
Showing 1 changed file with 3 additions and 3 deletions.
6 changes: 3 additions & 3 deletions flexible_event_config.md
Original file line number Diff line number Diff line change
Expand Up @@ -341,12 +341,12 @@ This example shows how a developer can configure a source to get a count of trig
},
// This field could be omitted to save bandwidth since the default is "count"
"summary_window_operator": "count",
"summary_buckets": [1, 2, 3, 4, 5, 6, 7, 8, 9, 10]
"summary_buckets": [1, 2, 3, 4]
}],
}
```

Attributed triggers with `trigger_data` set to 0 are counted and capped at 10. The trigger value is ignored since `summary_window_operator` is set to `count`. Supposing 4 triggers are registered and attributed to the source, the reports would look like this:
Attributed triggers with `trigger_data` set to 0 are counted and capped at 4. The trigger value is ignored since `summary_window_operator` is set to `count`. Supposing 4 triggers are registered and attributed to the source, the reports would look like this:

```jsonc
// Report 1
Expand All @@ -367,7 +367,7 @@ Attributed triggers with `trigger_data` set to 0 are counted and capped at 10. T
// Report 4
{
...
"trigger_summary_bucket": [4, 4]
"trigger_summary_bucket": [4, MAX_UINT32]
}
```

Expand Down

0 comments on commit d4b1f0b

Please sign in to comment.