-
Notifications
You must be signed in to change notification settings - Fork 40
/
constants.go
96 lines (66 loc) · 2.45 KB
/
constants.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
package pkg
const (
// BrowserChrome represents the Chrome and Chromium browser.
BrowserChrome = "Chrome"
// BrowserFirefox represents the Firefox browser.
BrowserFirefox = "Firefox"
// BrowserSafari represents the Safari browser.
BrowserSafari = "Safari"
// BrowserOpera represents the Opera browser.
BrowserOpera = "Opera"
// BrowserEdge represents the Edge browser.
BrowserEdge = "Edge"
// BrowserIE represents the Internet Explorer browser.
BrowserIE = "IE"
// BrowserArc represents the Arc browser.
BrowserArc = "Arc"
// OSWindows represents the Windows operating system.
OSWindows = "Windows"
// OSMac represents the Mac operating system.
OSMac = "Mac"
// OSLinux represents a Linux distribution.
OSLinux = "Linux"
// OSAndroid represents the Android operating system.
OSAndroid = "Android"
// OSiOS represents the iOS operating system.
OSiOS = "iOS"
// OSWindowsMobile represents the Windows Mobile operating system.
OSWindowsMobile = "Windows Mobile"
// OSChrome represents the Chrome operating system.
OSChrome = "Chrome OS"
// PlatformDesktop filters for everything on desktops.
PlatformDesktop = "desktop"
// PlatformMobile filters for everything on mobile devices.
PlatformMobile = "mobile"
// PlatformUnknown filters for everything where the platform is unspecified.
PlatformUnknown = "unknown"
// Unknown filters for an unknown (empty) value.
// This is a synonym for "null".
Unknown = "null"
// DirectionASC sorts results in ascending order.
DirectionASC = Direction("ASC")
// DirectionDESC sorts results in descending order.
DirectionDESC = Direction("DESC")
// CustomMetricTypeInteger transforms the metadata value of an event to an integer (64 bit).
CustomMetricTypeInteger = CustomMetricType("toInt64OrZero")
// CustomMetricTypeFloat transforms the metadata value of an event to a floating point value (64 bit).
CustomMetricTypeFloat = CustomMetricType("toFloat64OrZero")
)
const (
// PeriodDay groups the results by day.
PeriodDay = Period(iota)
// PeriodWeek groups the results by week.
PeriodWeek
// PeriodMonth groups the results by month.
PeriodMonth
// PeriodYear groups the result by year.
PeriodYear
)
// Period is used to group results.
type Period int
// Direction is used to sort results.
type Direction string
// CustomMetricType is used to set the type of a custom metric event meta value.
type CustomMetricType string
// NullClient is a placeholder for no client (0).
var NullClient = int64(0)