Preparing search index...
The search index is not available
@qiwi/nestjs-enterprise-metric
@qiwi/nestjs-enterprise-metric
MetricService
Class MetricService
Hierarchy
MetricService
Implements
OnModuleDestroy
Index
Constructors
constructor
Properties
collection
Histogram
collection
Meter
collection
Timer
graphite
Service
interval
metric
Prefix
metrics
Callbacks
Methods
attach
clear
Interval
format
Histogram
format
Meter
format
Timers
get
Metrics
From
Callbacks
histogram
meter
on
Module
Destroy
push
timer
Constructors
constructor
new
Metric
Service
(
graphiteService
,
opts
)
:
MetricService
Parameters
graphiteService
:
any
opts
:
{
interval
:
number
;
prefix
:
string
;
}
interval
:
number
prefix
:
string
Returns
MetricService
Properties
Private
collection
Histogram
collection
Histogram
:
Record
<
string
,
Histogram
>
= {}
Private
collection
Meter
collection
Meter
:
Record
<
string
,
Meter
>
= {}
Private
collection
Timer
collection
Timer
:
Record
<
string
,
Timer
>
= {}
Private
graphite
Service
graphite
Service
:
any
Private
Readonly
interval
interval
:
any
Private
Readonly
metric
Prefix
metric
Prefix
:
string
Private
metrics
Callbacks
metrics
Callbacks
:
(
(
args
?
)
=>
any
)
[]
= []
Type declaration
(
args
?
)
:
any
Parameters
Optional
args
:
any
[]
Returns
any
Methods
attach
attach
(
callback
)
:
void
Attach metric
Parameters
callback
:
(
(
args
?
)
=>
any
)
(
args
?
)
:
any
Parameters
Optional
args
:
any
[]
Returns
any
Returns
void
clear
Interval
clear
Interval
(
)
:
void
Returns
void
Private
format
Histogram
format
Histogram
(
)
:
Record
<
string
,
unknown
>
Returns
Record
<
string
,
unknown
>
Private
format
Meter
format
Meter
(
)
:
Record
<
string
,
unknown
>
Returns
Record
<
string
,
unknown
>
Private
format
Timers
format
Timers
(
)
:
Record
<
string
,
unknown
>
Returns
Record
<
string
,
unknown
>
Private
get
Metrics
From
Callbacks
get
Metrics
From
Callbacks
(
)
:
Promise
<
{}
>
Returns
Promise
<
{}
>
histogram
histogram
(
metricName
)
:
{
update
(
value
)
=>
void
;
}
Parameters
metricName
:
string
Returns
{
update
(
value
)
=>
void
;
}
update
:
function
update
(
value
)
:
void
Parameters
value
:
number
Returns
void
meter
meter
(
metricName
)
:
{
update
(
value
?
)
=>
void
;
}
Parameters
metricName
:
string
Returns
{
update
(
value
?
)
=>
void
;
}
update
:
function
update
(
value
?
)
:
void
Parameters
Optional
value
:
number
Returns
void
on
Module
Destroy
on
Module
Destroy
(
)
:
void
Returns
void
push
push
(
)
:
Promise
<
any
>
Returns
Promise
<
any
>
timer
timer
(
metricName
)
:
{
update
(
value
?
)
=>
void
;
}
Parameters
metricName
:
string
Returns
{
update
(
value
?
)
=>
void
;
}
update
:
function
update
(
value
?
)
:
void
Parameters
Optional
value
:
number
Returns
void
Settings
Member Visibility
Protected
Private
Inherited
External
Theme
OS
Light
Dark
On This Page
constructor
collection
Histogram
collection
Meter
collection
Timer
graphite
Service
interval
metric
Prefix
metrics
Callbacks
attach
clear
Interval
format
Histogram
format
Meter
format
Timers
get
Metrics
From
Callbacks
histogram
meter
on
Module
Destroy
push
timer
@qiwi/nestjs-
enterprise-
metric
Graphite
Service
Metric
Service
Error
Decorator
Metered
Decorator
Metric
Decorator
Request
Rate
Decorator
get
Node
Metrics
Attach metric