Google Cloud Chronicle Client - Class Metric (0.9.0)

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

Stores precomputed aggregated analytic data for an entity.

Generated from protobuf message google.backstory.Metric

Namespace

Google \ Backstory

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ first_seen Google\Protobuf\Timestamp

Timestamp of the first time the entity was seen in the environment.

↳ last_seen Google\Protobuf\Timestamp

Time stamp of the last time last time the entity was seen in the environment.

↳ sum_measure Metric\Measure

Sum of all precomputed measures for the given metric.

↳ total_events int|string

Total number of events used to calculate the given precomputed metric.

↳ metric_name int

Name of the analytic.

↳ dimensions int[]

All group by clauses used to calculate the metric.

↳ export_window int|string

Export window for which the metric was exported.

↳ display_name string

Display name of the custom metric. Google-authored metrics do not have a display name.

↳ outcome_variables array<FindingVariable>

List of outcome variables used in the custom metric.

↳ match_variables array<FindingVariable>

List of match variables used in the custom metric.

↳ time_range Google\Type\Interval

Time range for which the custom metric was calculated.

getFirstSeen

Timestamp of the first time the entity was seen in the environment.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasFirstSeen

clearFirstSeen

setFirstSeen

Timestamp of the first time the entity was seen in the environment.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getLastSeen

Time stamp of the last time last time the entity was seen in the environment.

Returns
Type Description
Google\Protobuf\Timestamp|null

hasLastSeen

clearLastSeen

setLastSeen

Time stamp of the last time last time the entity was seen in the environment.

Parameter
Name Description
var Google\Protobuf\Timestamp
Returns
Type Description
$this

getSumMeasure

Sum of all precomputed measures for the given metric.

Returns
Type Description
Metric\Measure|null

hasSumMeasure

clearSumMeasure

setSumMeasure

Sum of all precomputed measures for the given metric.

Parameter
Name Description
var Metric\Measure
Returns
Type Description
$this

getTotalEvents

Total number of events used to calculate the given precomputed metric.

Returns
Type Description
int|string

setTotalEvents

Total number of events used to calculate the given precomputed metric.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getMetricName

Name of the analytic.

Returns
Type Description
int Enum of type MetricName.

setMetricName

Name of the analytic.

Parameter
Name Description
var int

Enum of type MetricName.

Returns
Type Description
$this

getDimensions

All group by clauses used to calculate the metric.

Returns
Type Description
Google\Protobuf\RepeatedField<int>

setDimensions

All group by clauses used to calculate the metric.

Parameter
Name Description
var int[]
Returns
Type Description
$this

getExportWindow

Export window for which the metric was exported.

Returns
Type Description
int|string

setExportWindow

Export window for which the metric was exported.

Parameter
Name Description
var int|string
Returns
Type Description
$this

getDisplayName

Display name of the custom metric. Google-authored metrics do not have a display name.

Returns
Type Description
string

setDisplayName

Display name of the custom metric. Google-authored metrics do not have a display name.

Parameter
Name Description
var string
Returns
Type Description
$this

getOutcomeVariables

List of outcome variables used in the custom metric.

Returns
Type Description
Google\Protobuf\RepeatedField<FindingVariable>

setOutcomeVariables

List of outcome variables used in the custom metric.

Parameter
Name Description
var array<FindingVariable>
Returns
Type Description
$this

getMatchVariables

List of match variables used in the custom metric.

Returns
Type Description
Google\Protobuf\RepeatedField<FindingVariable>

setMatchVariables

List of match variables used in the custom metric.

Parameter
Name Description
var array<FindingVariable>
Returns
Type Description
$this

getTimeRange

Time range for which the custom metric was calculated.

Returns
Type Description
Google\Type\Interval|null

hasTimeRange

clearTimeRange

setTimeRange

Time range for which the custom metric was calculated.

Parameter
Name Description
var Google\Type\Interval
Returns
Type Description
$this