-
Notifications
You must be signed in to change notification settings - Fork 20
/
Copy pathrv-journeyConfig.js
135 lines (134 loc) · 3.64 KB
/
rv-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
const journeyConfig = [
{
id: 0,
title: 'Frontier Journey',
accountId: 439634,
funnel: {
event: 'Transaction',
measure: 'RopeID'
},
series: [
{
id: 0,
label: 'All Users',
nrqlWhere: "appName='fr-redventures-frontier-sti-api'"
},
{
id: 1,
label: 'Digital Cart',
nrqlWhere:
"appName='fr-redventures-frontier-sti-api' and ApplicationProfileID = '2071'"
},
{
id: 2,
label: 'Telesales',
nrqlWhere:
"appName='fr-redventures-frontier-sti-api' and ApplicationProfileID = '2009'"
}
],
kpis: [
{
label: 'Availability',
ref: 'stepAvailability',
value: 90.0,
bound: 'lowerViolation',
description:
'Serviceability Availability Percentage is Percent of Transactions without errors or response codes 2005, 1002, Nack 22, or -1'
},
{
label: 'Minimum Transactions',
ref: 'transactionCount',
value: 100,
bound: 'lowerViolation',
description:
"Lets look into why we'd have less than 100 service transactions"
}
],
steps: [
{
id: 0,
label: 'Serviceable True',
nrqlWhere: "name='WebTransaction/MVC/ServiceCheck/Post/{serviceCheck}'",
altNrql: {
key: 'Availability',
value:
"ServiceabilityResponseCode NOT IN('2005', '1002', 'NACK022','-1')"
}
},
{
id: 1,
label: 'Addons',
nrqlWhere: "name='WebTransaction/MVC/AddOns/Post/{ropeData}'"
},
{
id: 2,
label: 'Credit',
nrqlWhere: "name='WebTransaction/MVC/CreditCheck/Post/{ropeData}'",
altNrql: {
key: 'Availability',
value:
"CreditResponseCode NOT IN('3021', '1002', '3016', '1001', '3009', '3024', '1084')"
}
},
{
id: 3,
label: 'Order Submit',
nrqlWhere: "name='WebTransaction/MVC/Order/Post/{ropeData}'",
altNrql: {
key: 'Availability',
value:
"errorMessage NOT IN('Response Description: Order Processing Error: Payment contains invalid information, please verify credit card billing address and account number.','Response Description: Order Processing Error: Payment Declined')"
}
}
],
stats: [
{
label: 'Availability',
ref: 'stepAvailability',
type: 'decimal',
value: {
eventName: 'Availability',
nrql:
"SELECT percentage(count(*), WHERE error is NULL) FROM Transaction WHERE appName='fr-redventures-frontier-sti-api'",
display: 'percentage'
}
},
{
label: 'Trans Count',
ref: 'transactionCount',
type: 'integer',
value: {
nrql:
"SELECT count(*) FROM Transaction WHERE appName='fr-redventures-frontier-sti-api'",
display: 'integer'
}
},
{
label: 'Error count',
ref: 'errorCount',
type: 'integer',
value: {
eventName: 'Transaction Error',
nrql:
"SELECT count(*) from Transaction WHERE appName = 'fr-redventures-frontier-sti-api' AND error IS NOT NULL",
display: 'integer'
}
},
{
label: 'Error rate',
ref: 'errorRate',
type: 'decimal',
value: {
calculation: {
numerator: 'errorCount',
denominator: 'transactionCount'
},
display: 'percentage'
}
}
]
}
];
export const getJourneys = () => {
return journeyConfig;
};