@sentio/sdkClasses
Gauge
Class in @sentio/sdk
Defined in @sentio/sdk
Extends
Metric
Properties
| Property | Type | Inherited from |
|---|---|---|
config | MetricConfig | Metric.config |
name | string | Metric.name |
Methods
record()
record(
ctx: BaseContext,
value: Numberish,
labels?: Labels
): void;Parameters
| Parameter | Type |
|---|---|
ctx | BaseContext |
value | Numberish |
labels | Labels |
Returns
void
_create()
static _create(name: string, option?: MetricOptions): Gauge;internal use only, to create a metric use register instead
Parameters
| Parameter | Type |
|---|---|
name | string |
option? | MetricOptions |
Returns
Gauge
register()
static register(name: string, option?: MetricOptions): Gauge;Parameters
| Parameter | Type |
|---|---|
name | string |
option? | MetricOptions |
Returns
Gauge