Skip to main content

Class: Metrics

account.v1.Metrics

Represents a Metrics.

Implements

Constructors

constructor

new Metrics(properties?): Metrics

Constructs a new Metrics.

Parameters

NameTypeDescription
properties?IMetricsProperties to set

Returns

Metrics

Properties

uri

uri: string

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

Implementation of

IMetrics.uri

Methods

toJSON

toJSON(): Object

Converts this Metrics to JSON.

Returns

Object

JSON object


create

create(properties?): Metrics

Creates a new Metrics instance using the specified properties.

Parameters

NameTypeDescription
properties?IMetricsProperties to set

Returns

Metrics

Metrics instance


decode

decode(reader, length?): Metrics

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

Metrics

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): Metrics

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

Metrics

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
messageIMetricsMetrics 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
messageIMetricsMetrics 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


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for Metrics

Parameters

NameTypeDescription
typeUrlPrefix?stringyour custom typeUrlPrefix(default "type.googleapis.com")

Returns

string

The default type url


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