(::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.
#unit=
defunit=(value)->::String
Parameter
value (::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.
Returns
(::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.
[[["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,["# Cloud Monitoring V3 API - Class Google::Cloud::Monitoring::V3::TimeSeriesDescriptor::ValueDescriptor (v1.6.1)\n\nVersion latestkeyboard_arrow_down\n\n- [1.6.1 (latest)](/ruby/docs/reference/google-cloud-monitoring-v3/latest/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [1.6.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.6.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [1.5.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.5.1/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [1.4.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.4.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [1.3.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.3.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [1.2.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.2.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [1.1.0](/ruby/docs/reference/google-cloud-monitoring-v3/1.1.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [1.0.1](/ruby/docs/reference/google-cloud-monitoring-v3/1.0.1/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.18.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.18.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.17.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.17.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.16.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.16.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.15.2](/ruby/docs/reference/google-cloud-monitoring-v3/0.15.2/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.14.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.14.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.13.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.13.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.12.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.12.1/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.11.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.11.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.10.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.10.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.9.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.9.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.8.0](/ruby/docs/reference/google-cloud-monitoring-v3/0.8.0/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor)\n- [0.7.1](/ruby/docs/reference/google-cloud-monitoring-v3/0.7.1/Google-Cloud-Monitoring-V3-TimeSeriesDescriptor-ValueDescriptor) \nReference documentation and code samples for the Cloud Monitoring V3 API class Google::Cloud::Monitoring::V3::TimeSeriesDescriptor::ValueDescriptor.\n\nA descriptor for the value columns in a data point. \n\nInherits\n--------\n\n- Object \n\nExtended By\n-----------\n\n- Google::Protobuf::MessageExts::ClassMethods \n\nIncludes\n--------\n\n- Google::Protobuf::MessageExts\n\nMethods\n-------\n\n### #key\n\n def key() -\u003e ::String\n\n**Returns**\n\n- (::String) --- The value key.\n\n### #key=\n\n def key=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::String) --- The value key. \n**Returns**\n\n- (::String) --- The value key.\n\n### #metric_kind\n\n def metric_kind() -\u003e ::Google::Api::MetricDescriptor::MetricKind\n\n**Returns**\n\n- ([::Google::Api::MetricDescriptor::MetricKind](./Google-Api-MetricDescriptor-MetricKind)) --- The value stream kind.\n\n### #metric_kind=\n\n def metric_kind=(value) -\u003e ::Google::Api::MetricDescriptor::MetricKind\n\n**Parameter**\n\n- **value** ([::Google::Api::MetricDescriptor::MetricKind](./Google-Api-MetricDescriptor-MetricKind)) --- The value stream kind. \n**Returns**\n\n- ([::Google::Api::MetricDescriptor::MetricKind](./Google-Api-MetricDescriptor-MetricKind)) --- The value stream kind.\n\n### #unit\n\n def unit() -\u003e ::String\n\n**Returns**\n\n- (::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.\n\n### #unit=\n\n def unit=(value) -\u003e ::String\n\n**Parameter**\n\n- **value** (::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. \n**Returns**\n\n- (::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.\n\n### #value_type\n\n def value_type() -\u003e ::Google::Api::MetricDescriptor::ValueType\n\n**Returns**\n\n- ([::Google::Api::MetricDescriptor::ValueType](./Google-Api-MetricDescriptor-ValueType)) --- The value type.\n\n### #value_type=\n\n def value_type=(value) -\u003e ::Google::Api::MetricDescriptor::ValueType\n\n**Parameter**\n\n- **value** ([::Google::Api::MetricDescriptor::ValueType](./Google-Api-MetricDescriptor-ValueType)) --- The value type. \n**Returns**\n\n- ([::Google::Api::MetricDescriptor::ValueType](./Google-Api-MetricDescriptor-ValueType)) --- The value type."]]