public interface DataUsageStats extends StatsBase
| Modifier and Type | Method and Description |
|---|---|
long |
getBytesReceived()
Get the amount of uncompressed bytes received for a metric representing responses from an agent endpoint.
|
long |
getBytesSent()
Get the amount of uncompressed bytes sent for a metric representing calls to an agent endpoint.
|
int |
getCount()
Get the count of the number of times the metric was set.
|
void |
recordDataUsage(long bytesSent,
long bytesReceived)
Record the uncompressed sizes of sent and received payloads in bytes for each agent endpoint.
|
void recordDataUsage(long bytesSent,
long bytesReceived)
bytesSent - uncompressed bytes sent to an agent endpointbytesReceived - uncompressed bytes received from an agent endpointint getCount()
long getBytesSent()
long getBytesReceived()