Reference documentation and code samples for the Google Cloud Chronicle V1 Client class Entity.
An Entity provides additional context about an entity in a UDM event (asset, user, etc.). For example, a PROCESS_LAUNCH event describes that user 'abc@example.corp' launched process 'shady.exe'. The event does not include information that user 'abc@example.com' is a recently terminated employee who administers a server storing finance data. Information stored in one or more Entities can add this additional context.
Generated from protobuf message google.cloud.chronicle.v1.Entity
Namespace
Google \ Cloud \ Chronicle \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ name |
string
The resource name of the entity. Format: |
↳ metadata |
Google\Backstory\EntityMetadata
Entity metadata such as timestamp, product, etc. |
↳ entity |
Google\Backstory\Noun
Noun in the UDM event that this entity represents. |
↳ additional |
Google\Protobuf\Struct
Important entity data that cannot be adequately represented within the formal sections of the Entity. |
↳ risk_score |
Google\Backstory\EntityRisk
Represents the entity risk scores resource |
↳ metric |
Google\Backstory\Metric
Metric details of the entity. Used if EntityType is METRIC. |
↳ relations |
array<Google\Backstory\Relation>
One or more relationships between the entity (a) and other entities, including the relationship type and related entity. |
getName
The resource name of the entity.
Format:
projects/{project}/locations/{location}/instances/{instance}/entities/{entity}
projects/{project}/locations/{location}/instances/{instance}/analytics/{analytic}/entities/{entity}
projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}/entities/{entity}
| Returns | |
|---|---|
| Type | Description |
string |
|
setName
The resource name of the entity.
Format:
projects/{project}/locations/{location}/instances/{instance}/entities/{entity}
projects/{project}/locations/{location}/instances/{instance}/analytics/{analytic}/entities/{entity}
projects/{project}/locations/{location}/instances/{instance}/watchlists/{watchlist}/entities/{entity}
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetadata
Entity metadata such as timestamp, product, etc.
| Returns | |
|---|---|
| Type | Description |
Google\Backstory\EntityMetadata|null |
|
hasMetadata
clearMetadata
setMetadata
Entity metadata such as timestamp, product, etc.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Backstory\EntityMetadata
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getEntity
Noun in the UDM event that this entity represents.
| Returns | |
|---|---|
| Type | Description |
Google\Backstory\Noun|null |
|
hasEntity
clearEntity
setEntity
Noun in the UDM event that this entity represents.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Backstory\Noun
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getAdditional
Important entity data that cannot be adequately represented within the formal sections of the Entity.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Struct|null |
|
hasAdditional
clearAdditional
setAdditional
Important entity data that cannot be adequately represented within the formal sections of the Entity.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Struct
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRiskScore
Represents the entity risk scores resource
| Returns | |
|---|---|
| Type | Description |
Google\Backstory\EntityRisk|null |
|
hasRiskScore
clearRiskScore
setRiskScore
Represents the entity risk scores resource
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Backstory\EntityRisk
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getMetric
Metric details of the entity. Used if EntityType is METRIC.
| Returns | |
|---|---|
| Type | Description |
Google\Backstory\Metric|null |
|
hasMetric
clearMetric
setMetric
Metric details of the entity. Used if EntityType is METRIC.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Backstory\Metric
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getRelations
One or more relationships between the entity (a) and other entities, including the relationship type and related entity.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\RepeatedField<Google\Backstory\Relation> |
|
setRelations
One or more relationships between the entity (a) and other entities, including the relationship type and related entity.
| Parameter | |
|---|---|
| Name | Description |
var |
array<Google\Backstory\Relation>
|
| Returns | |
|---|---|
| Type | Description |
$this |
|