Google Cloud Security Command Center V2 Client - Class DetectorReference (2.6.0)

Reference documentation and code samples for the Google Cloud Security Command Center V2 Client class DetectorReference.

Represents a reference to a specific anomaly detector.

Generated from protobuf message google.cloud.securitycenter.v2.DetectorReference

Namespace

Google \ Cloud \ SecurityCenter \ V2

Methods

__construct

Constructor.

Parameters
Name Description
data array

Optional. Data for populating the Message object.

↳ severity int

The severity of the detector.

↳ detector_id string

The unique identifier of the detector.

↳ display_name string

A human readable name for the detector, providing context on its purpose. For example, "ASI02: Tool Misuse", or "Excessive API Calls".

↳ explanation string

A detailed explanation generated by an LLM or the detector itself, describing why this specific anomaly was flagged. This provides rationale and context for the detection.

↳ recommendation string

Recommended steps or actions to remediate or investigate the anomaly flagged by this detector. These could include configuration changes, code adjustments, or further diagnostic procedures.

getSeverity

The severity of the detector.

Returns
Type Description
int Enum of type Severity.

setSeverity

The severity of the detector.

Parameter
Name Description
var int

Enum of type Severity.

Returns
Type Description
$this

getDetectorId

The unique identifier of the detector.

Returns
Type Description
string

setDetectorId

The unique identifier of the detector.

Parameter
Name Description
var string
Returns
Type Description
$this

getDisplayName

A human readable name for the detector, providing context on its purpose.

For example, "ASI02: Tool Misuse", or "Excessive API Calls".

Returns
Type Description
string

setDisplayName

A human readable name for the detector, providing context on its purpose.

For example, "ASI02: Tool Misuse", or "Excessive API Calls".

Parameter
Name Description
var string
Returns
Type Description
$this

getExplanation

A detailed explanation generated by an LLM or the detector itself, describing why this specific anomaly was flagged. This provides rationale and context for the detection.

Returns
Type Description
string

setExplanation

A detailed explanation generated by an LLM or the detector itself, describing why this specific anomaly was flagged. This provides rationale and context for the detection.

Parameter
Name Description
var string
Returns
Type Description
$this

getRecommendation

Recommended steps or actions to remediate or investigate the anomaly flagged by this detector. These could include configuration changes, code adjustments, or further diagnostic procedures.

Returns
Type Description
string

setRecommendation

Recommended steps or actions to remediate or investigate the anomaly flagged by this detector. These could include configuration changes, code adjustments, or further diagnostic procedures.

Parameter
Name Description
var string
Returns
Type Description
$this