Reference documentation and code samples for the Google Cloud Security Compliance V1 Client class Trend.
The trend of a compliance metric.
Generated from protobuf message google.cloud.cloudsecuritycompliance.v1.Trend
Namespace
Google \ Cloud \ CloudSecurityCompliance \ V1Methods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ duration |
Google\Protobuf\Duration
Output only. The duration for the trend. |
↳ value_percent |
float
Output only. The trend value as a percentage. The value can be positive or negative. |
getDuration
Output only. The duration for the trend.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Duration|null |
|
hasDuration
clearDuration
setDuration
Output only. The duration for the trend.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Duration
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getValuePercent
Output only. The trend value as a percentage. The value can be positive or negative.
| Returns | |
|---|---|
| Type | Description |
float |
|
setValuePercent
Output only. The trend value as a percentage. The value can be positive or negative.
| Parameter | |
|---|---|
| Name | Description |
var |
float
|
| Returns | |
|---|---|
| Type | Description |
$this |
|