Reference documentation and code samples for the Google Cloud Database Center V1beta Client class MetricData.
MetricData represents the metric data for a database resource.
Generated from protobuf message google.cloud.databasecenter.v1beta.MetricData
Namespace
Google \ Cloud \ DatabaseCenter \ V1betaMethods
__construct
Constructor.
| Parameters | |
|---|---|
| Name | Description |
data |
array
Optional. Data for populating the Message object. |
↳ value |
TypedValue
The value associated with the metric. |
↳ observation_time |
Google\Protobuf\Timestamp
The time the metric was observed in the metric source service. |
getValue
The value associated with the metric.
| Returns | |
|---|---|
| Type | Description |
TypedValue|null |
|
hasValue
clearValue
setValue
The value associated with the metric.
| Parameter | |
|---|---|
| Name | Description |
var |
TypedValue
|
| Returns | |
|---|---|
| Type | Description |
$this |
|
getObservationTime
The time the metric was observed in the metric source service.
| Returns | |
|---|---|
| Type | Description |
Google\Protobuf\Timestamp|null |
|
hasObservationTime
clearObservationTime
setObservationTime
The time the metric was observed in the metric source service.
| Parameter | |
|---|---|
| Name | Description |
var |
Google\Protobuf\Timestamp
|
| Returns | |
|---|---|
| Type | Description |
$this |
|