Method: Athenian::CalculatedDeveloperMetricsItem#granularity
- Defined in:
- lib/athenian/models/calculated_developer_metrics_item.rb
#granularity ⇒ Object
How often the metrics are reported. The value must satisfy the following regular expression: /^all|((\d* )?(aligned )?(day|week|month|year))$/. "all" produces a single interval [date_from, date_to]. "aligned week/month/year" produces intervals cut by calendar week/month/year borders, for example, when date_from is 2020-01-15 and date_to is 2020-03-10, the intervals will be 2020-01-15 - 2020-02-01 - 2020-03-01 - 2020-03-10.
19 20 21 |
# File 'lib/athenian/models/calculated_developer_metrics_item.rb', line 19 def granularity @granularity end |