Google Cloud Chronicle Client - Class Entity (0.9.0)

Reference documentation and code samples for the Google Cloud Chronicle Client class Entity.

An Entity provides additional context about an item in a UDM event. 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.backstory.Entity

Namespace

Google \ Backstory

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ metadata EntityMetadata

Entity metadata such as timestamp, product, etc.

↳ entity Noun

Noun in the UDM event that this entity represents.

↳ relations array<Relation>

One or more relationships between the entity (a) and other entities, including the relationship type and related entity.

↳ additional Google\Protobuf\Struct

Important entity data that cannot be adequately represented within the formal sections of the Entity.

↳ risk_score EntityRisk

Stores information related to the entity's risk score.

↳ metric Metric

Stores statistical metrics about the entity. Used if metadata.entity_type is METRIC.

getMetadata

Entity metadata such as timestamp, product, etc.

Returns
Type Description
EntityMetadata|null

hasMetadata

clearMetadata

setMetadata

Entity metadata such as timestamp, product, etc.

Parameter
Name Description
var EntityMetadata
Returns
Type Description
$this

getEntity

Noun in the UDM event that this entity represents.

Returns
Type Description
Noun|null

hasEntity

clearEntity

setEntity

Noun in the UDM event that this entity represents.

Parameter
Name Description
var Noun
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<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<Relation>
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

Stores information related to the entity's risk score.

Returns
Type Description
EntityRisk|null

hasRiskScore

clearRiskScore

setRiskScore

Stores information related to the entity's risk score.

Parameter
Name Description
var EntityRisk
Returns
Type Description
$this

getMetric

Stores statistical metrics about the entity. Used if metadata.entity_type is METRIC.

Returns
Type Description
Metric|null

hasMetric

clearMetric

setMetric

Stores statistical metrics about the entity. Used if metadata.entity_type is METRIC.

Parameter
Name Description
var Metric
Returns
Type Description
$this