-
Notifications
You must be signed in to change notification settings - Fork 0
/
config.d.ts
63 lines (61 loc) · 1.72 KB
/
config.d.ts
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
export interface Config {
app: {
analytics: {
qm: {
/**
* Controls if plugin is on or off
* @visibility frontend
*/
enabled: boolean;
/**
* Turns on console.debug messages
* @visibility frontend
*/
debug: boolean;
/**
* Sends events to console log instead of quantum metric
* @visibility frontend
*/
test: boolean;
/**
* Quantum Metric CDN source URL
* @visibility frontend
*/
src: string;
/**
* Controls wether or not to block on Quantum Metric API
* @visibility frontend
*/
async: number;
// Global attributes to be included on all events
attributes: {
/**
* Key of global attribute field to include on all events sent to Quantum Metric
* @visibility frontend
*/
name: string;
/**
* Value of global attribute field to include on all events sent to Quantum Metric
* @visibility frontend
*/
value: string | number | boolean;
}[];
// Event mapping of Backstage events like navigation/search to their Quantum Metric event IDs
events: {
mappings: {
/**
* Backstage event action like 'search' || 'click' to map to the Quantum Metric event ID
* @visibility frontend
*/
name: string;
/**
* Quantum Metric event ID to send when the above event name is detected.
* @visibility frontend
*/
id: number | string;
}[];
};
};
};
};
}