Interface GrpcProxyServiceMetrics
- All Known Implementing Classes:
GrpcProxyMetrics
public interface GrpcProxyServiceMetrics
A provider of metrics for a gRPC proxy service.
-
Method Summary
Modifier and TypeMethodDescriptionvoidaddMessageDuration(long nanos) Add a timing sample to the metrics.voidaddRequestDuration(long nanos) voidUpdate the failed request meter.voidUpdate the messages received meter.voidmarkSent()Update the messages sent meter.voidUpdate the successful request meter.
-
Method Details
-
addRequestDuration
void addRequestDuration(long nanos) -
addMessageDuration
void addMessageDuration(long nanos) Add a timing sample to the metrics.- Parameters:
nanos- the request time in nanos.
-
markSuccess
void markSuccess()Update the successful request meter. -
markError
void markError()Update the failed request meter. -
markSent
void markSent()Update the messages sent meter. -
markReceived
void markReceived()Update the messages received meter.
-