...
1 package anomalydetector
2
3
4
5
6
7
8
9
10 type TimeGranularity string
11
12 const (
13
14 Daily TimeGranularity = "daily"
15
16 Hourly TimeGranularity = "hourly"
17
18 Monthly TimeGranularity = "monthly"
19
20 PerMinute TimeGranularity = "minutely"
21
22 PerSecond TimeGranularity = "secondly"
23
24 Weekly TimeGranularity = "weekly"
25
26 Yearly TimeGranularity = "yearly"
27 )
28
29
30 func PossibleTimeGranularityValues() []TimeGranularity {
31 return []TimeGranularity{Daily, Hourly, Monthly, PerMinute, PerSecond, Weekly, Yearly}
32 }
33
View as plain text