-
Notifications
You must be signed in to change notification settings - Fork 114
/
1-0-0
98 lines (98 loc) · 2.76 KB
/
1-0-0
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
{
"$schema": "http://iglucentral.com/schemas/com.snowplowanalytics.self-desc/schema/jsonschema/1-0-0#",
"description": "Schema for R2F (Right to be forgotten) criteria files that contain the identifiers for events that should be deleted.",
"self": {
"vendor": "com.snowplowanalytics.snowplow.r2f",
"name": "removal_criteria",
"format": "jsonschema",
"version": "1-0-0"
},
"type": "object",
"properties": {
"pojo": {
"description": "A scalar field from the EnrichedEvent POJO (e.g. user_id)",
"type": "object",
"properties": {
"fieldName": {
"enum": [
"user_id",
"user_ipaddress",
"user_fingerprint",
"domain_userid",
"network_userid",
"ip_organization",
"ip_domain",
"tr_orderid",
"ti_orderid",
"mkt_term",
"mkt_content",
"se_category",
"se_action",
"se_label",
"se_property",
"mkt_clickid",
"refr_domain_userid",
"domain_sessionid"
],
"description": "The name of the field"
},
"valueForWhichEventWillBeDeleted": {
"type": "string",
"description": "The value that, if present in that field, will cause the event to be deleted"
}
},
"additionalProperties": false,
"required": [
"fieldName",
"valueForWhichEventWillBeDeleted"
]
},
"json": {
"description": "A JSON field from the EnrichedEvent POJO (e.g. contexts).",
"type": "object",
"properties": {
"fieldName": {
"enum": [
"contexts",
"derived_contexts",
"unstruct_event"
],
"description": "The name of the field"
},
"jsonPath": {
"type": "string",
"description": "The JsonPath that was specified"
},
"valueForWhichEventWillBeDeleted": {
"type": "string",
"description": "The value that, if present in that field, will cause the event to be deleted"
},
"schemaCriterion": {
"type": "string",
"description": "The iglu schema corresponding to this field and value",
"pattern": "^iglu:([a-zA-Z0-9-_.]+)/([a-zA-Z0-9-_]+)/([a-zA-Z0-9-_]+)/([1-9][0-9]*|\\*)-((?:0|[1-9][0-9]*)|\\*)-((?:0|[1-9][0-9]*)|\\*)$"
}
},
"required": [
"fieldName",
"jsonPath",
"valueForWhichEventWillBeDeleted",
"schemaCriterion"
],
"additionalProperties": false
}
},
"oneOf": [
{
"required": [
"pojo"
]
},
{
"required": [
"json"
]
}
],
"additionalProperties": false
}