Skip to content

Commit d4bf898

Browse files
committed
Update docs with Count aggregator and minimum events.
1 parent eca0e50 commit d4bf898

1 file changed

Lines changed: 3 additions & 0 deletions

File tree

docs/MetricTypes.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -66,9 +66,12 @@ Percentile | `_%%` | Allows you to specify an arbitrary percentile (i.e
6666
Max | `_max` | The highest recorded value.
6767
Min | `_min` | The lowest recorded value.
6868
Last | (no suffix) | The last recorded value before the reporting/snapshot interval.
69+
Count | `_count` | The number of events recorded during the reporting interval.
6970

7071
All aggregators are reset at each reporting/snapshot interval. If no data points have been recorded since the last reporting interval, then nothing will be sent to Bosun since there is effectively no data.
7172

73+
> By default, the minimum number of events which must be recorded before the AggregateGauge will report anything is one event per reporting interval. You can change this default by assigning your own `Func<int>` to the static `AggregateGauge.GetDefaultMinimumEvents` property. Or, you can override the `AggregateGauge.MinimumEvents` property on classes which inherit from AggregateGauge.
74+
7275
Let's create a simple route-timing metric which has a `route` tag, and reports on the median, 95th percentile, and max values. First, create a class which defines this gauge type.
7376

7477
```csharp

0 commit comments

Comments
 (0)