0.9.0 (latest) 0.8.0 0.7.2 0.5.0 0.4.0 0.3.0 0.2.3 0.1.2 Reference documentation and code samples for the Google Cloud Chronicle Client class Element.

Generated from protobuf message `google.backstory.Element`

## Namespace

Google \\ Backstory

## Methods

### __construct

Constructor.

| **Parameters** ||
|---|---|
| **Name** | **Description** |
| `data` | `array` Optional. Data for populating the Message object. |
| `↳ association` | `SecurityResult` Metadata that provides the relevant association for the references in the element. For a detection, this can be the correlated aspect of the references that contributed to the overall detection. For example, may include sub-rule condition, machine learning model metadata, and/or indicators implicated in this component of the detection (using the .about field). |
| `↳ references` | `array<Reference>` References to model primatives including events and entities that share a common association. Even though a reference can have both UDM and entity, a collection of references (of a single element) will only have one type of message in it (either UDM / Entity). |
| `↳ label` | `string` A name that labels the entire references group. |
| `↳ references_sampled` | `bool` Copied from the detection event_sample.too_many_event_samples field. If true, the number of references will be capped at the sample limit (set at rule service). This is applicable to both UDM references and Entity references. |
| `↳ latency_metrics` | `LatencyMetrics` Latency metrics for the specific element. These are calculated from all the contributing events or entities for a single event variable, not just the sampled ones included in references. This is currently only populated for UDM events. |

### getAssociation

Metadata that provides the relevant association for the references in the
element. For a detection, this can be the correlated aspect of the
references that contributed to the overall detection. For example, may
include sub-rule condition, machine learning model metadata, and/or
indicators implicated in this component of the detection
(using the .about field).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `SecurityResult|null` |   |

### hasAssociation

### clearAssociation

### setAssociation

Metadata that provides the relevant association for the references in the
element. For a detection, this can be the correlated aspect of the
references that contributed to the overall detection. For example, may
include sub-rule condition, machine learning model metadata, and/or
indicators implicated in this component of the detection
(using the .about field).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `SecurityResult` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReferences

References to model primatives including events and entities that share a
common association.

Even though a reference can have both UDM and entity, a collection of
references (of a single element) will only have one type of message in it
(either UDM / Entity).

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `Google\Protobuf\RepeatedField<Reference>` |   |

### setReferences

References to model primatives including events and entities that share a
common association.

Even though a reference can have both UDM and entity, a collection of
references (of a single element) will only have one type of message in it
(either UDM / Entity).

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `array<Reference>` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLabel

A name that labels the entire references group.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `string` |   |

### setLabel

A name that labels the entire references group.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `string` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getReferencesSampled

Copied from the detection event_sample.too_many_event_samples field.

If true, the number of references will be capped at the sample limit
(set at rule service).
This is applicable to both UDM references and Entity references.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `bool` |   |

### setReferencesSampled

Copied from the detection event_sample.too_many_event_samples field.

If true, the number of references will be capped at the sample limit
(set at rule service).
This is applicable to both UDM references and Entity references.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `bool` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |

### getLatencyMetrics

Latency metrics for the specific element. These are
calculated from all the contributing events or entities for a single event
variable, not just the sampled ones included in references. This is
currently only populated for UDM events.

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `LatencyMetrics|null` |   |

### hasLatencyMetrics

### clearLatencyMetrics

### setLatencyMetrics

Latency metrics for the specific element. These are
calculated from all the contributing events or entities for a single event
variable, not just the sampled ones included in references. This is
currently only populated for UDM events.

| **Parameter** ||
|---|---|
| **Name** | **Description** |
| `var` | `LatencyMetrics` |

| **Returns** ||
|---|---|
| **Type** | **Description** |
| `$this` |   |