-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathdemo-journeyConfig.js
144 lines (143 loc) · 3.51 KB
/
demo-journeyConfig.js
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
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
const journeyConfig = [
{
id: 0,
title: 'Demo Journey',
accountId: 1606862,
funnel: {
event: 'PageView',
measure: 'session'
},
series: [
{
id: 0,
label: 'All Users',
nrqlWhere: "appName = 'WebPortal'"
},
{
id: 1,
label: 'Columbus',
nrqlWhere: "appName = 'WebPortal' and city = 'Columbus'"
},
{
id: 2,
label: 'Internet Explorer',
nrqlWhere: "appName = 'WebPortal' and userAgentName = 'IE'"
}
],
kpis: [
{
name: 'Error Rate',
ref: 'errorRate',
value: 3.0,
bound: 'higherViolation',
description:
'Serviceability Availability Percentage is Percent of Transactions without errors or response codes 2005, 1002, Nack 22, or -1'
},
{
name: 'Avg. Duration',
ref: 'averageDuration',
value: 3.0,
bound: 'higherVioliation',
description:
"Lets look into why we'd have less than 100 service transactions"
}
],
steps: [
{
id: 0,
label: 'Homepage',
nrqlWhere:
"pageUrl = 'http://webportal.telco.nrdemo.com/' OR pageUrl = 'http://webportal.telco.nrdemo.com/index.html'",
altNrql: {
key: 'JavaScriptError',
value: " requestUri = '/' or requestUri = '/index.html' "
}
},
{
id: 1,
label: 'Plans',
nrqlWhere:
"pageUrl like 'http://webportal.telco.nrdemo.com/browse/plans%'",
altNrql: {
key: 'JavaScriptError',
value: " requestUri like '/browse/plans%' "
}
},
{
id: 2,
label: 'Cart',
nrqlWhere: "pageUrl = 'http://webportal.telco.nrdemo.com/shoppingcart'",
altNrql: {
key: 'JavaScriptError',
value: " requestUri like '/shoppingcart%' "
}
},
{
id: 3,
label: 'Checkout',
nrqlWhere: "pageUrl = 'http://webportal.telco.nrdemo.com/checkout'",
altNrql: {
key: 'JavaScriptError',
value: " requestUri like '/checkout%' "
}
}
],
stats: [
{
label: 'Page views',
ref: 'clickCount',
type: 'integer',
value: {
nrql: "SELECT count(*) from PageView WHERE appName = 'WebPortal'",
display: 'integer'
}
},
{
label: 'Error count',
ref: 'errorCount',
type: 'integer',
value: {
eventName: 'JavaScriptError',
nrql:
"SELECT count(*) from JavaScriptError WHERE appName = 'WebPortal'",
display: 'integer'
}
},
{
label: 'Error rate',
ref: 'errorRate',
type: 'decimal',
value: {
calculation: {
numerator: 'errorCount',
denominator: 'clickCount'
},
display: 'percentage'
}
},
{
label: 'Avg perf',
ref: 'averageDuration',
type: 'decimal',
value: {
nrql:
"FROM PageView SELECT average(duration) WHERE appName = 'WebPortal'",
display: 'seconds'
}
},
{
label: '99th perc',
ref: 'nnthPercentile',
type: 'percentile',
value: {
nrql:
"FROM PageView SELECT percentile(duration, 99) WHERE appName = 'WebPortal'",
display: 'seconds'
}
}
]
}
];
export const getJourneys = () => {
return journeyConfig;
};