Skip to main content

Class: Metrics

account.v1.Metrics

Represents a Metrics.

Properties​

uri​

• uri: string

The prometheus metrics endpoint uri. This is only populated when the metrics is enabled in the metrics specification.

Methods​

toJSON​

▸ toJSON(): Object

Converts this Metrics to JSON.

Returns​

Object

JSON object


create​

▸ create(properties?): Metrics & $Properties

Creates a new Metrics instance using the specified properties.

Parameters​

NameTypeDescription
properties?$PropertiesProperties to set

Returns​

Metrics & $Properties

Metrics instance

▸ create(properties?): Metrics

Parameters​

NameType
properties?$Properties

Returns​

Metrics


decode​

▸ decode(reader, length?): Metrics & $Properties

Decodes a Metrics message from the specified reader or buffer.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from
length?numberMessage length if known beforehand

Returns​

Metrics & $Properties

Metrics

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited​

▸ decodeDelimited(reader): Metrics & $Properties

Decodes a Metrics message from the specified reader or buffer, length delimited.

Parameters​

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns​

Metrics & $Properties

Metrics

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


encode​

▸ encode(message, writer?): Writer

Encodes the specified Metrics message. Does not implicitly temporal.api.cloud.account.v1.Metrics.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesMetrics message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


encodeDelimited​

▸ encodeDelimited(message, writer?): Writer

Encodes the specified Metrics message, length delimited. Does not implicitly temporal.api.cloud.account.v1.Metrics.verify|verify messages.

Parameters​

NameTypeDescription
message$PropertiesMetrics message or plain object to encode
writer?WriterWriter to encode to

Returns​

Writer

Writer


fromObject​

▸ fromObject(object): Metrics

Creates a Metrics message from a plain object. Also converts values to their respective internal types.

Parameters​

NameTypeDescription
objectObjectPlain object

Returns​

Metrics

Metrics


toObject​

▸ toObject(message, options?): Object

Creates a plain object from a Metrics message. Also converts values to other types if specified.

Parameters​

NameTypeDescription
messageMetricsMetrics
options?IConversionOptionsConversion options

Returns​

Object

Plain object