Skip to main content

Class: Stats

v1.NamespaceCapacityInfo.Stats

Represents a Stats.

Implements

Constructors

constructor

new Stats(properties?): Stats

Constructs a new Stats.

Parameters

NameTypeDescription
properties?IStatsProperties to set

Returns

Stats

Properties

aps

Optional aps: null | ISummary

Actions-per-second measurements summarized over the last 7 days.

Implementation of

IStats.aps

Methods

toJSON

toJSON(): Object

Converts this Stats to JSON.

Returns

Object

JSON object


create

create(properties?): Stats

Creates a new Stats instance using the specified properties.

Parameters

NameTypeDescription
properties?IStatsProperties to set

Returns

Stats

Stats instance


decode

decode(reader, length?): Stats

Decodes a Stats message from the specified reader or buffer.

Parameters

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

Returns

Stats

Stats

Throws

If the payload is not a reader or valid buffer

Throws

If required fields are missing


decodeDelimited

decodeDelimited(reader): Stats

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

Parameters

NameTypeDescription
readerUint8Array | ReaderReader or buffer to decode from

Returns

Stats

Stats

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 Stats message. Does not implicitly temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats.verify|verify messages.

Parameters

NameTypeDescription
messageIStatsStats message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


encodeDelimited

encodeDelimited(message, writer?): Writer

Encodes the specified Stats message, length delimited. Does not implicitly temporal.api.cloud.namespace.v1.NamespaceCapacityInfo.Stats.verify|verify messages.

Parameters

NameTypeDescription
messageIStatsStats message or plain object to encode
writer?WriterWriter to encode to

Returns

Writer

Writer


fromObject

fromObject(object): Stats

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

Parameters

NameTypeDescription
objectObjectPlain object

Returns

Stats

Stats


getTypeUrl

getTypeUrl(typeUrlPrefix?): string

Gets the default type url for Stats

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 Stats message. Also converts values to other types if specified.

Parameters

NameTypeDescription
messageStatsStats
options?IConversionOptionsConversion options

Returns

Object

Plain object