Gauge

Class in @sentio/sdk

Defined in @sentio/sdk

Extends

  • Metric

Properties

PropertyTypeInherited from
configMetricConfigMetric.config
namestringMetric.name

Methods

record()

record(
   ctx: BaseContext, 
   value: Numberish, 
   labels?: Labels
): void;

Parameters

ParameterType
ctxBaseContext
valueNumberish
labelsLabels

Returns

void


_create()

static _create(name: string, option?: MetricOptions): Gauge;

internal use only, to create a metric use register instead

Parameters

ParameterType
namestring
option?MetricOptions

Returns

Gauge


register()

static register(name: string, option?: MetricOptions): Gauge;

Parameters

ParameterType
namestring
option?MetricOptions

Returns

Gauge

On this page