Reference documentation and code samples for the Compute V1 Client class RiskDetails.
Detailed insights and metrics about a detected reliability risk.
Generated from protobuf message google.cloud.compute.v1.RiskDetails
Namespace
Google \ Cloud \ Compute \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ duration |
string
The duration of the risk since it was detected. |
↳ global_dns_insight |
RiskDetailsGlobalDnsInsight
Insight details for global DNS risk. |
↳ last_update_timestamp |
string
The last time the risk was updated. |
↳ severity |
string
The severity of the risk. Check the Severity enum for the list of possible values. |
↳ type |
string
The type of risk. Check the Type enum for the list of possible values. |
getDuration
The duration of the risk since it was detected.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasDuration
clearDuration
setDuration
The duration of the risk since it was detected.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getGlobalDnsInsight
Insight details for global DNS risk.
| Returns | |
|---|---|
| Type | Description |
RiskDetailsGlobalDnsInsight|null |
|
hasGlobalDnsInsight
clearGlobalDnsInsight
setGlobalDnsInsight
Insight details for global DNS risk.
| Parameter | |
|---|---|
| Name | Description |
var |
RiskDetailsGlobalDnsInsight
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getLastUpdateTimestamp
The last time the risk was updated.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasLastUpdateTimestamp
clearLastUpdateTimestamp
setLastUpdateTimestamp
The last time the risk was updated.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getSeverity
The severity of the risk.
Check the Severity enum for the list of possible values.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasSeverity
clearSeverity
setSeverity
The severity of the risk.
Check the Severity enum for the list of possible values.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getType
The type of risk.
Check the Type enum for the list of possible values.
| Returns | |
|---|---|
| Type | Description |
string |
|
hasType
clearType
setType
The type of risk.
Check the Type enum for the list of possible values.
| Parameter | |
|---|---|
| Name | Description |
var |
string
|
| Returns | |
|---|---|
| Type | Description |
$this |
|