The contract that classifies the privacy implications of the trending demo in the quickstart
Event contract
{
"is_public": true,
"key_field": "SessionId",
"metadata": {
"create_time": "2022-02-23T16:28:35Z",
"description": "The contract that classifies the privacy implications of the trending demo in the quickstart",
"domains": [
"recommendations"
],
"icon_uri": "https://storage.googleapis.com/strm-media/strm-logo-orange-slim.svg",
"industries": [
"e-commerce",
"retail"
],
"title": "Trending demo contract"
},
"pii_fields": {
"UserId": 1
},
"ref": {
"handle": "strm-demo",
"name": "trending-demo-contract",
"version": "1.0.0"
},
"schema_ref": {
"handle": "strm-demo",
"name": "trending-demo",
"version": "1.0.0"
},
"state": "ACTIVE"
}
Serialization schema
{
"type": "record",
"name": "TrendingDemo",
"namespace": "StrmDemo.TrendingDemo.v1_0_0",
"fields": [
{
"name": "strmMeta",
"type": {
"type": "record",
"name": "strmMeta",
"namespace": "StrmDemo.TrendingDemo.v1_0_0.strmmeta",
"fields": [
{
"name": "eventContractRef",
"type": "string"
},
{
"name": "nonce",
"type": [
"null",
"int"
],
"default": null
},
{
"name": "timestamp",
"type": [
"null",
"long"
],
"default": null
},
{
"name": "keyLink",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "billingId",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "consentLevels",
"type": {
"type": "array",
"items": "int"
}
}
]
}
},
{
"name": "SessionId",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "UserId",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "url",
"type": [
"null",
"string"
],
"default": null
},
{
"name": "ProductId",
"type": [
"null",
"int"
],
"default": null
}
]
}