---
title: CounterDuration
summary: CounterDuration indicates the estimated number of events in this duration in the current POP. Counts are divided into 10 second buckets, and each bucket represents the estimated number of requests received up to and including that 10 second window.
url: https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/erl/type.CounterDuration/
---

**Kind:** Type alias  
**Module:** [erl](https://www.fastly.com/documentation/reference/compute/sdks/go/compute-sdk-go/erl/)  
**Package:** compute-sdk-go v1.11.0  
**Source:** https://github.com/fastly/compute-sdk-go/blob/d6bf71b04516ed72d6018cab6fff701a865f86e5/erl/erl.go#L112

```go
type CounterDuration = fastly.CounterDuration
```

Alias for `fastly.CounterDuration`.

CounterDuration indicates the estimated number of events in this
duration in the current POP.  Counts are divided into 10 second
buckets, and each bucket represents the estimated number of
requests received up to and including that 10 second window.

Buckets are not continuous.  For example, if the current time is
12:01:03, then the 10 second bucket represents events received
between 12:01:00 and 12:01:10, not between 12:00:53 and 12:01:03.
This means that, in each minute at the ten second mark (:00, :10,
:20, etc.) the window represented by each bucket will shift.

Estimated counts are not precise and should not be used as
counters.

See [CounterDuration10s], [CounterDuration20s],
[CounterDuration30s], [CounterDuration40s], [CounterDuration50s],
and [CounterDuration60s].
