-
Notifications
You must be signed in to change notification settings - Fork 1
/
sample.json
90 lines (90 loc) · 2.75 KB
/
sample.json
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
{
"type": "metricsBotConfig",
"body": {
"measures": "Uniques/ Event totals/ Active %/ Average/ Frequency/Properties/ Formula",
"chart_type": "bar/line/stacked bar/ stacked area",
"plot_title":"A title for plot",
"interval": "realtime/ hourly/ daily/ weekly/ monthly/quarterly",
"interval_range": "<an_integer_value>",
"between_dates":"yyyyMMdd-yyyyMMdd",
"repeat": true,
"repeat_interval": "crontab format interval",
"alerts": true,
"events": [
{
"event_type": "Event Name",
"filters": [
{
"subprop_type": "user/event",
"subprop_key": "key1",
"subprop_op": "is/ is not/ contains/ does not contain/ less/ less or equal/ greater/ greater or equal/ set is/ set is not",
"subprop_value": [
"value1",
"value2"
]
},
{
"subprop_type": "user/event",
"subprop_key": "key2",
"subprop_op": "is/ is not/ contains/ does not contain/ less/ less or equal/ greater/ greater or equal/ set is/ set is not",
"subprop_value": [
"value3",
"value4"
]
}
],
"group_by": [
{
"type": "user/ event",
"value": "value to be grouped by"
},
{
"type": "user/ event",
"value": "value to be grouped by"
}
]
},
{
"event_type": "Event Name",
"filters": [
{
"subprop_type": "user/event",
"subprop_key": "key1",
"subprop_op": "is/ is not/ contains/ does not contain/ less/ less or equal/ greater/ greater or equal/ set is/ set is not",
"subprop_value": [
"value1",
"value2"
]
},
{
"subprop_type": "user/event",
"subprop_key": "key2",
"subprop_op": "is/ is not/ contains/ does not contain/ less/ less or equal/ greater/ greater or equal/ set is/ set is not",
"subprop_value": [
"value3",
"value4"
]
}
],
"group_by": [
{
"type": "user/ event",
"value": "value to be grouped by"
},
{
"type": "user/ event",
"value": "value to be grouped by"
}
]
}
],
"thresholds": [
"A + B <= 60",
"A - B > 70"
],
"formulas": [
"(TOTALS(A) + UNIQUES(B))/(TOTALS(C)/2)",
"AVG(A)"
]
}
}