forked from adobe/xdm
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathinteraction-measurement-details.schema.json
More file actions
99 lines (99 loc) · 5.89 KB
/
interaction-measurement-details.schema.json
File metadata and controls
99 lines (99 loc) · 5.89 KB
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
{
"meta:license": [
"Copyright 2021 Adobe Systems Incorporated. All rights reserved.",
"This work is licensed under a Creative Commons Attribution 4.0 International (CC BY 4.0) license",
"you may not use this file except in compliance with the License. You may obtain a copy",
"of the License at https://creativecommons.org/licenses/by/4.0/"
],
"$id": "https://ns.adobe.com/experience/decisioning/interaction-measurement",
"$schema": "http://json-schema.org/draft-06/schema#",
"title": "Interaction Measurement Definition",
"type": "object",
"meta:extensible": true,
"description": "An interaction measurement determines how experience event properties are interpreted as outcomes. In some cases the outcome is provided directly with the event and no additional mapping is required, in other cases a calculation must be applied to test if the event is a measurable outcome and what the measured value should be.",
"definitions": {
"interaction-measurement-definition": {
"properties": {
"xdm:observation": {
"type": "object",
"title": "Event observation",
"description": "A qualification that is evaluated against the experience event to test if a measurable outcome has been achieved. This mapping could check if the value of a property matches a given constant or could be a more complex evaluation. An outcome will be recorded with the event if and only if the implied condition evaluates to 'true'",
"properties": {
"xdm:mapping": {
"type": "string",
"title": "Mapping type",
"description": "Indicator for how the observation is mapped into an outcome value",
"enum": [
"direct",
"eventTypeValue",
"fieldValue",
"predicate"
],
"default": "direct",
"meta:titleId": "interaction-measurement##xdm:mapping##title##48401",
"meta:descriptionId": "interaction-measurement##xdm:mapping##description##25811",
"meta:enum": {
"direct": "Direct",
"eventTypeValue": "Event Type Value",
"fieldValue": "Field Value",
"predicate": "Predicate"
}
},
"xdm:value": {
"type": "string",
"title": "Observation mapping",
"description": "The expression or term that defines how the outcome is derived from the observation. The presence and interpretation of this 'value' is based on the 'mapping' type",
"meta:titleId": "interaction-measurement##xdm:value##title##32791",
"meta:descriptionId": "interaction-measurement##xdm:value##description##65711"
},
"xdm:field": {
"type": "string",
"title": "Field name",
"description": "The field that contains the observed value.",
"default": "xdm:eventType",
"meta:titleId": "interaction-measurement##xdm:field##title##35771",
"meta:descriptionId": "interaction-measurement##xdm:field##description##23541"
}
},
"meta:titleId": "interaction-measurement##xdm:observation##title##46181",
"meta:descriptionId": "interaction-measurement##xdm:observation##description##39861"
},
"xdm:outcome": {
"type": "object",
"properties": {
"@id": {
"type": "string",
"title": "Outcome identifier",
"description": "Unique value that identifies the outcome of the interaction (nominal value).",
"meta:titleId": "interaction-measurement##@id##title##42291",
"meta:descriptionId": "interaction-measurement##@id##description##34741"
},
"xdm:field": {
"type": "string",
"title": "Outcome property path",
"description": "Property path where the outcome is inserted into the XDM event.",
"meta:titleId": "interaction-measurement##xdm:field##title##3821",
"meta:descriptionId": "interaction-measurement##xdm:field##description##98311"
}
},
"title": "Interaction outcome measurement",
"description": "The definition of a measurement for the outcome. A property path and value is specified where a measured outcome for the interaction is recorded.",
"meta:titleId": "interaction-measurement##xdm:outcome##title##78761",
"meta:descriptionId": "interaction-measurement##xdm:outcome##description##84551"
}
}
}
},
"allOf": [
{
"$ref": "https://ns.adobe.com/xdm/common/extensible#/definitions/@context"
},
{
"$ref": "#/definitions/interaction-measurement-definition"
}
],
"meta:status": "experimental",
"meta:titleId": "interaction-measurement##title##95021",
"meta:descriptionId": "interaction-measurement##description##23851",
"examples": []
}