github.com/observiq/carbon@v0.9.11-0.20200820160507-1b872e368a5e/docs/types/duration.md (about)

     1  # Durations
     2  
     3  Durations are lengths of time that are specified as part of a pluign configuration using a number or string.
     4  
     5  If a number is specified, it will be interpreted as a number of seconds.
     6  
     7  If a string is specified, it will be interpreted according to Golang's [`time.ParseDuration`](https://golang.org/src/time/format.go?s=40541:40587#L1369) documentation.
     8  
     9  ## Examples
    10  
    11  ### Various ways to specify a duration of 1 minute
    12  
    13  ```yaml
    14  - type: some_operator
    15    duration: 1m
    16  ```
    17  
    18  ```yaml
    19  - type: some_operator
    20    duration: 60s
    21  ```
    22  
    23  ```yaml
    24  - type: some_operator
    25    duration: 60
    26  ```
    27  
    28  ```yaml
    29  - type: some_operator
    30    duration: 60.0
    31  ```