Event contract
{
"is_public": true,
"key_field": "SessionId",
"metadata": {
"create_time": "2022-02-07T16:23:05Z",
"icon_uri": "https://storage.googleapis.com/strm-media/strm-favicon.svg"
},
"pii_fields": {
"Email": 3,
"PrivateFieldA": 1,
"PrivateFieldB": 2
},
"ref": {
"handle": "databert-handle",
"name": "batch_job_public",
"version": "1.0.0"
},
"schema_ref": {
"handle": "databert-handle",
"name": "batch_job_public",
"version": "1.0.0"
},
"state": "ACTIVE"
}
Serialization schema
{
"type": "record",
"name": "Batch_Events",
"namespace": "DatabertHandle.batch_job_public.v1_0_0",
"fields": [
{
"name": "strmMeta",
"type": {
"type": "record",
"name": "strmMeta",
"namespace": "DatabertHandle.batch_job_public.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"
],
"doc": "the string value that connects events to a single sequence",
"default": null
},
{
"name": "UserName",
"type": [
"null",
"string"
],
"doc": "we use an event contract to define that this is private",
"default": null
},
{
"name": "Email",
"type": [
"null",
"string"
],
"doc": "Private value for email address",
"default": null
},
{
"name": "PublicFieldA",
"type": [
"null",
"string"
],
"doc": "public string value",
"default": null
},
{
"name": "PublicFieldB",
"type": [
"null",
"float"
],
"doc": "public int value",
"default": null
},
{
"name": "PrivateFieldA",
"type": [
"null",
"string"
],
"doc": "private string value",
"default": null
},
{
"name": "PrivateFieldB",
"type": [
"null",
"string"
],
"doc": "private int value",
"default": null
},
{
"name": "PrivacyPlane",
"type": [
"null",
"string"
],
"doc": "Privacy Consent Levels",
"default": null
}
]
}