Reference documentation and code samples for the Google API Common Protos Client class ValueType.
The value type of a metric.
Protobuf type google.api.MetricDescriptor.ValueType
Namespace
Google \ Api \ MetricDescriptorMethods
static::name
| Parameter | |
|---|---|
| Name | Description |
value |
mixed
|
static::value
| Parameter | |
|---|---|
| Name | Description |
name |
mixed
|
Constants
VALUE_TYPE_UNSPECIFIED
Value: 0Do not use this default value.
Generated from protobuf enum VALUE_TYPE_UNSPECIFIED = 0;
BOOL
Value: 1The value is a boolean.
This value type can be used only if the metric kind is GAUGE.
Generated from protobuf enum BOOL = 1;
INT64
Value: 2The value is a signed 64-bit integer.
Generated from protobuf enum INT64 = 2;
DOUBLE
Value: 3The value is a double precision floating point number.
Generated from protobuf enum DOUBLE = 3;
STRING
Value: 4The value is a text string.
This value type can be used only if the metric kind is GAUGE.
Generated from protobuf enum STRING = 4;
DISTRIBUTION
Value: 5The value is a Distribution.
Generated from protobuf enum DISTRIBUTION = 5;
MONEY
Value: 6The value is money.
Generated from protobuf enum MONEY = 6;