Reference documentation and code samples for the Stackdriver Monitoring V3 Client class ValueDescriptor.
A descriptor for the value columns in a data point.
Generated from protobuf message google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor
Namespace
Google \ Cloud \ Monitoring \ V3 \ TimeSeriesDescriptor
Methods
__construct
Constructor.
Parameters
Name
Description
data
array
Optional. Data for populating the Message object.
↳ key
string
The value key.
↳ value_type
int
The value type.
↳ metric_kind
int
The value stream kind.
↳ unit
string
The unit in which time_series point values are reported. unit follows the UCUM format for units as seen in https://unitsofmeasure.org/ucum.html. unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION.
getKey
The value key.
Returns
Type
Description
string
setKey
The value key.
Parameter
Name
Description
var
string
Returns
Type
Description
$this
getValueType
The value type.
Returns
Type
Description
int
setValueType
The value type.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getMetricKind
The value stream kind.
Returns
Type
Description
int
setMetricKind
The value stream kind.
Parameter
Name
Description
var
int
Returns
Type
Description
$this
getUnit
The unit in which time_series point values are reported. unit
follows the UCUM format for units as seen in
https://unitsofmeasure.org/ucum.html.
unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION.
Returns
Type
Description
string
setUnit
The unit in which time_series point values are reported. unit
follows the UCUM format for units as seen in
https://unitsofmeasure.org/ucum.html.
unit is only valid if value_type is INTEGER, DOUBLE, DISTRIBUTION.
[[["Easy to understand","easyToUnderstand","thumb-up"],["Solved my problem","solvedMyProblem","thumb-up"],["Other","otherUp","thumb-up"]],[["Hard to understand","hardToUnderstand","thumb-down"],["Incorrect information or sample code","incorrectInformationOrSampleCode","thumb-down"],["Missing the information/samples I need","missingTheInformationSamplesINeed","thumb-down"],["Other","otherDown","thumb-down"]],["Last updated 2025-09-04 UTC."],[],[],null,["# Stackdriver Monitoring V3 Client - Class ValueDescriptor (2.1.2)\n\nVersion latestkeyboard_arrow_down\n\n- [2.1.2 (latest)](/php/docs/reference/cloud-monitoring/latest/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [2.1.1](/php/docs/reference/cloud-monitoring/2.1.1/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [2.0.1](/php/docs/reference/cloud-monitoring/2.0.1/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.12.1](/php/docs/reference/cloud-monitoring/1.12.1/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.11.1](/php/docs/reference/cloud-monitoring/1.11.1/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.10.3](/php/docs/reference/cloud-monitoring/1.10.3/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.9.0](/php/docs/reference/cloud-monitoring/1.9.0/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.8.0](/php/docs/reference/cloud-monitoring/1.8.0/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.7.1](/php/docs/reference/cloud-monitoring/1.7.1/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.6.0](/php/docs/reference/cloud-monitoring/1.6.0/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.5.1](/php/docs/reference/cloud-monitoring/1.5.1/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.4.0](/php/docs/reference/cloud-monitoring/1.4.0/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.3.2](/php/docs/reference/cloud-monitoring/1.3.2/V3.TimeSeriesDescriptor.ValueDescriptor)\n- [1.2.2](/php/docs/reference/cloud-monitoring/1.2.2/V3.TimeSeriesDescriptor.ValueDescriptor) \nReference documentation and code samples for the Stackdriver Monitoring V3 Client class ValueDescriptor.\n\nA descriptor for the value columns in a data point.\n\nGenerated from protobuf message `google.monitoring.v3.TimeSeriesDescriptor.ValueDescriptor`\n\nNamespace\n---------\n\nGoogle \\\\ Cloud \\\\ Monitoring \\\\ V3 \\\\ TimeSeriesDescriptor\n\nMethods\n-------\n\n### __construct\n\nConstructor.\n\n### getKey\n\nThe value key.\n\n### setKey\n\nThe value key.\n\n### getValueType\n\nThe value type.\n\n### setValueType\n\nThe value type.\n\n### getMetricKind\n\nThe value stream kind.\n\n### setMetricKind\n\nThe value stream kind.\n\n### getUnit\n\nThe unit in which `time_series` point values are reported. `unit`\nfollows the UCUM format for units as seen in\n\u003chttps://unitsofmeasure.org/ucum.html\u003e.\n\n`unit` is only valid if `value_type` is INTEGER, DOUBLE, DISTRIBUTION.\n\n### setUnit\n\nThe unit in which `time_series` point values are reported. `unit`\nfollows the UCUM format for units as seen in\n\u003chttps://unitsofmeasure.org/ucum.html\u003e.\n\n`unit` is only valid if `value_type` is INTEGER, DOUBLE, DISTRIBUTION."]]