Constructor
new Threshold(propertiesopt)
Constructs a new Threshold.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.monitoring.dashboard.v1.IThreshold |
<optional> |
Properties to set |
- Implements:
-
- IThreshold
Members
color
Threshold color.
direction
Threshold direction.
label
Threshold label.
targetAxis
Threshold targetAxis.
value
Threshold value.
Color
Color enum.
Properties:
Name | Type | Description |
---|---|---|
COLOR_UNSPECIFIED |
number |
COLOR_UNSPECIFIED value |
YELLOW |
number |
YELLOW value |
RED |
number |
RED value |
Direction
Direction enum.
Properties:
Name | Type | Description |
---|---|---|
DIRECTION_UNSPECIFIED |
number |
DIRECTION_UNSPECIFIED value |
ABOVE |
number |
ABOVE value |
BELOW |
number |
BELOW value |
TargetAxis
TargetAxis enum.
Properties:
Name | Type | Description |
---|---|---|
TARGET_AXIS_UNSPECIFIED |
number |
TARGET_AXIS_UNSPECIFIED value |
Y1 |
number |
Y1 value |
Y2 |
number |
Y2 value |
Methods
toJSON() → {Object.<string, *>}
Converts this Threshold to JSON.
Returns:
Type | Description |
---|---|
Object.<string, *> |
JSON object |
(static) create(propertiesopt) → {google.monitoring.dashboard.v1.Threshold}
Creates a new Threshold instance using the specified properties.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
properties |
google.monitoring.dashboard.v1.IThreshold |
<optional> |
Properties to set |
Returns:
Type | Description |
---|---|
google.monitoring.dashboard.v1.Threshold |
Threshold instance |
(static) decode(reader, lengthopt) → {google.monitoring.dashboard.v1.Threshold}
Decodes a Threshold message from the specified reader or buffer.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
|
length |
number |
<optional> |
Message length if known beforehand |
Returns:
Type | Description |
---|---|
google.monitoring.dashboard.v1.Threshold |
Threshold |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) decodeDelimited(reader) → {google.monitoring.dashboard.v1.Threshold}
Decodes a Threshold message from the specified reader or buffer, length delimited.
Parameters:
Name | Type | Description |
---|---|---|
reader |
$protobuf.Reader | Uint8Array |
Reader or buffer to decode from |
Returns:
Type | Description |
---|---|
google.monitoring.dashboard.v1.Threshold |
Threshold |
Throws:
-
-
If the payload is not a reader or valid buffer
- Type
- Error
-
-
-
If required fields are missing
- Type
- $protobuf.util.ProtocolError
-
(static) encode(message, writeropt) → {$protobuf.Writer}
Encodes the specified Threshold message. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.monitoring.dashboard.v1.IThreshold |
Threshold message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) encodeDelimited(message, writeropt) → {$protobuf.Writer}
Encodes the specified Threshold message, length delimited. Does not implicitly verify messages.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.monitoring.dashboard.v1.IThreshold |
Threshold message or plain object to encode |
|
writer |
$protobuf.Writer |
<optional> |
Writer to encode to |
Returns:
Type | Description |
---|---|
$protobuf.Writer |
Writer |
(static) fromObject(object) → {google.monitoring.dashboard.v1.Threshold}
Creates a Threshold message from a plain object. Also converts values to their respective internal types.
Parameters:
Name | Type | Description |
---|---|---|
object |
Object.<string, *> |
Plain object |
Returns:
Type | Description |
---|---|
google.monitoring.dashboard.v1.Threshold |
Threshold |
(static) getTypeUrl(typeUrlPrefixopt) → {string}
Gets the default type url for Threshold
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
typeUrlPrefix |
string |
<optional> |
your custom typeUrlPrefix(default "type.googleapis.com") |
Returns:
Type | Description |
---|---|
string |
The default type url |
(static) toObject(message, optionsopt) → {Object.<string, *>}
Creates a plain object from a Threshold message. Also converts values to other types if specified.
Parameters:
Name | Type | Attributes | Description |
---|---|---|---|
message |
google.monitoring.dashboard.v1.Threshold |
Threshold |
|
options |
$protobuf.IConversionOptions |
<optional> |
Conversion options |
Returns:
Type | Description |
---|---|
Object.<string, *> |
Plain object |
(static) verify(message) → {string|null}
Verifies a Threshold message.
Parameters:
Name | Type | Description |
---|---|---|
message |
Object.<string, *> |
Plain object to verify |
Returns:
Type | Description |
---|---|
string | null |
|