
## brickworks.generated

This event is generated whenever a schema record is invoked.

**Default retention**: 30 days

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| Base parameters | various | n/a | [Parameters that may exist in all events](/docs/assets/events/event-reference/common-parameters#base-parameters) |
| `inputParam` | object | `{"context.testfield.test":true,"metric_additional_params.testfield.test":true}` | Contains Jinjava context |
| `generatedTimeInMs` | number | `38` | The amount of time it took to generate record result |
| `schema` | object | `{"appId":"clothes","id":"a78920c3-97ca-4dfa-8160-46967b54ccbf","version":3}` | Schema information |
| `values` | object | `{"clothingColor":"purple","clothingType":"jacket","lastSeenItem":{}}` | Contains record fields with their values |
| `objectId` | string | `bbb5e4a1-e115-450c-927c-f2ddfce8ee53` | ID of the record |


## brickworks.generated.error


This event is generated whenever a schema record couldn't be generated due to an error or when the profile which authorized the generation request doesn't belong to the audience.

**Default retention**: 30 days

| Parameter | Type | Example | Description |
| --- | --- | --- | --- |
| Base parameters | various | n/a | [Parameters that may exist in all events](/docs/assets/events/event-reference/common-parameters#base-parameters) |
| `inputParam` | object | `{"context.testfield.test":true,"metric_additional_params.testfield.test":true}` | Contains Jinjava context |
| `generatedTimeInMs` | number | `38` | The amount of time it took to generate record result |
| `schema` | object | `{"appId":"clothes","id":"a78920c3-97ca-4dfa-8160-46967b54ccbf","version":3}` | Schema information |
| `values` | object | `{"clothingColor":"purple","clothingType":"jacket","lastSeenItem":{}}` | Contains record fields with their values |
| `objectId` | string | `bbb5e4a1-e115-450c-927c-f2ddfce8ee53` | ID of the record |
| `error` | object | `{"code":"CAT-002","details":{"details":"I can't generate record."},"message":"Object not found in catalog.","source":null}` | Error details |