# Relation

- [JSON representation](https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Relation#SCHEMA_REPRESENTATION)

Defines the relationship between the entity (a) and another entity (b).

| JSON representation |
|---|
| ``` { "entity": { object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Noun`) }, "entityType": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/EntityType`), "relationship": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Relationship`), "direction": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Directionality`), "uid": string, "entityLabel": enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/EntityLabel`) } ``` |

| Fields ||
|---|---|
| `entity` | ``object (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Noun`)`` Entity (b) that the primary entity (a) is related to. |
| `entityType` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/EntityType`)`` Type of the related entity (b) in this relationship. |
| `relationship` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Relationship`)`` Type of relationship. |
| `direction` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/Directionality`)`` Directionality of relationship between primary entity (a) and the related entity (b). |
| `uid` | `string (https://developers.google.com/discovery/v1/type-format format)` UID of the relationship. A base64-encoded string. |
| `entityLabel` | ``enum (`https://docs.cloud.google.com/chronicle/docs/reference/rest/Shared.Types/EntityLabel`)`` Label to identify the Noun of the relation. |