Skip to content

Commit

Permalink
Merge branch 'feature/enrichments'
Browse files Browse the repository at this point in the history
Conflicts:
	CHANGELOG
  • Loading branch information
alexanderdean committed Jul 25, 2014
2 parents 7d087d6 + 0b23295 commit 510347d
Show file tree
Hide file tree
Showing 5 changed files with 209 additions and 0 deletions.
7 changes: 7 additions & 0 deletions CHANGELOG
Original file line number Diff line number Diff line change
@@ -1,3 +1,10 @@
Release 2 (2014-07-25)
----------------------
Added: schemas/com.snowplowanalytics.snowplow/enrichments/jsonschema/1-0-0
Added: com.snowplowanalytics.snowplow/anon_ip/jsonschema/1-0-0
Added: com.snowplowanalytics.snowplow/ip_to_geo/jsonschema/1-0-0
Added: com.snowplowanalytics.snowplow/referer_parser/jsonschema/1-0-0

Release 1 (2014-06-27)
----------------------
Added: com.snowplowanalytics.iglu/resolver-config/jsonschema/1-0-0
Expand Down
37 changes: 37 additions & 0 deletions schemas/com.snowplowanalytics.snowplow/anon_ip/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
{
"$schema": "http://json-schema.org/schema#",
"description": "Schema for an IP anonymization enrichment",
"self": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "anon_ip",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
"vendor": {
"type": "string"
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"parameters": {
"type": "object",
"properties": {
"anonOctets": {
"type": "number",
"minimum": 1,
"maximum": 4
}
},
"required": ["anonOctets"],
"additionalProperties": false
}
},
"required": ["name", "vendor", "enabled", "parameters"],
"additionalProperties": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
{
"$schema": "http://json-schema.org/schema#",
"description": "Schema for an array of enrichments",
"self": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "enrichments",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "array",

"items": {

"type": "object",

"properties": {

"schema": {
"type": "string",
"pattern": "^iglu:[a-zA-Z0-9-_.]+/[a-zA-Z0-9-_]+/[a-zA-Z0-9-_]+/[0-9]+-[0-9]+-[0-9]+$"
},

"data": {}
},

"required": ["schema", "data"],
"additionalProperties": false
}
}
97 changes: 97 additions & 0 deletions schemas/com.snowplowanalytics.snowplow/ip_lookups/jsonschema/1-0-0
Original file line number Diff line number Diff line change
@@ -0,0 +1,97 @@
{
"$schema": "http://json-schema.org/schema#",
"description": "Schema for MaxMind IP-based lookups enrichment",
"self": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "ip_lookups",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
"vendor": {
"type": "string"
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"parameters": {
"type": "object",
"properties": {

"geo": {
"type": "object",
"properties": {
"database": {
"enum": ["GeoLiteCity.dat", "GeoIPCity.dat"]
},
"uri": {
"type": "string"
}
},
"required": ["database", "uri"]
},

"isp": {
"type": "object",
"properties": {
"database": {
"enum": ["GeoIPISP.dat"]
},
"uri": {
"type": "string"
}
},
"required": ["database", "uri"]
},

"organization": {
"type": "object",
"properties": {
"database": {
"enum": ["GeoIPOrg.dat"]
},
"uri": {
"type": "string"
}
},
"required": ["database", "uri"]
},

"domain": {
"type": "object",
"properties": {
"database": {
"enum": ["GeoIPDomain.dat"]
},
"uri": {
"type": "string"
}
},
"required": ["database", "uri"]
},

"netspeed": {
"type": "object",
"properties": {
"database": {
"enum": ["GeoIPNetSpeed.dat", "GeoIPNetSpeedCell.dat"]
},
"uri": {
"type": "string"
}
},
"required": ["database", "uri"]
}

},
"additionalProperties": false
}
},
"required": ["name", "vendor", "enabled", "parameters"],
"additionalProperties": false
}
Original file line number Diff line number Diff line change
@@ -0,0 +1,38 @@
{
"$schema": "http://json-schema.org/schema#",
"description": "Schema for referer-parser customization enrichment",
"self": {
"vendor": "com.snowplowanalytics.snowplow",
"name": "referer_parser",
"format": "jsonschema",
"version": "1-0-0"
},

"type": "object",
"properties": {
"vendor": {
"type": "string"
},
"name": {
"type": "string"
},
"enabled": {
"type": "boolean"
},
"parameters": {
"type": "object",
"properties": {
"internalDomains": {
"type": "array",
"items": {
"type": "string"
}
}
},
"required": ["internalDomains"],
"additionalProperties": false
}
},
"required": ["name", "vendor", "enabled", "parameters"],
"additionalProperties": false
}

0 comments on commit 510347d

Please sign in to comment.