public interface BridgedbMetrics extends Descriptor
Modifier and Type | Method and Description |
---|---|
java.util.Optional<java.util.Map<java.lang.String,java.lang.Long>> |
bridgedbMetricCounts()
Return approximate request numbers to the BridgeDB service in the
measurement interval broken down by distribution mechanism, obfuscation
protocol, and country code.
|
java.time.LocalDateTime |
bridgedbMetricsEnd()
Return the end of the included measurement interval.
|
java.time.Duration |
bridgedbMetricsIntervalLength()
Return the length of the included measurement interval.
|
java.lang.String |
bridgedbMetricsVersion()
Return the BridgeDB metrics format version.
|
getAnnotations, getDescriptorFile, getRawDescriptorBytes, getRawDescriptorLength, getUnrecognizedLines
java.time.LocalDateTime bridgedbMetricsEnd()
java.time.Duration bridgedbMetricsIntervalLength()
java.lang.String bridgedbMetricsVersion()
java.util.Optional<java.util.Map<java.lang.String,java.lang.Long>> bridgedbMetricCounts()
Keys are formatted as DIST.PROTO.CC/EMAIL.[success|fail].none
where:
DIST
is BridgeDB's distribution mechanism, for example,
http
, email
, or moat
;PROTO
is the obfuscation protocol, for example, obfs2
,
obfs3
, obfs4
, scramblesuit
, or fte
;CC/EMAIL
is either a two-letter country code or an email
provider;success
or fail
depending on if the BridgeDB request succeeded or not; andValues are approximate request numbers, rounded up to the next multiple of 10.