http4k
Toggle table of contents
6.55.0.0
jvm
Target filter
jvm
Switch theme
Search in API
Skip to content
http4k
http4k-wiretap
/
org.http4k.wiretap.domain
/
TrafficMetrics
Traffic
Metrics
class
TrafficMetrics
(
meterRegistry
:
MeterRegistry
,
maxBuckets
:
Int
=
60
,
clock
:
Clock
=
Clock.systemUTC()
)
(
source
)
Members
Constructors
Traffic
Metrics
Link copied to clipboard
constructor
(
meterRegistry
:
MeterRegistry
,
maxBuckets
:
Int
=
60
,
clock
:
Clock
=
Clock.systemUTC()
)
Functions
host
Timelines
Link copied to clipboard
fun
hostTimelines
(
)
:
Map
<
String
,
TrafficTimeline
>
inbound
Count
Link copied to clipboard
fun
inboundCount
(
)
:
Long
latency
Counts
Link copied to clipboard
fun
latencyCounts
(
)
:
Map
<
String
,
Int
>
outbound
Count
Link copied to clipboard
fun
outboundCount
(
)
:
Long
record
Link copied to clipboard
fun
record
(
transaction
:
HttpTransaction
,
direction
:
Direction
)
snapshot
Link copied to clipboard
fun
snapshot
(
)
total
Requests
Link copied to clipboard
fun
totalRequests
(
)
:
Long
traffic
Timeline
Link copied to clipboard
fun
trafficTimeline
(
)
:
TrafficTimeline