Interface BridgedbMetrics

All Superinterfaces:
Descriptor, Serializable

public interface BridgedbMetrics extends Descriptor
Contains aggregated information about requests to the BridgeDB service.
Since:
2.8.0
  • Method Details

    • bridgedbMetricsEnd

      LocalDateTime bridgedbMetricsEnd()
      Return the end of the included measurement interval.
      Returns:
      End of the included measurement interval.
      Since:
      2.8.0
    • bridgedbMetricsIntervalLength

      Duration bridgedbMetricsIntervalLength()
      Return the length of the included measurement interval.
      Returns:
      Length of the included measurement interval.
      Since:
      2.8.0
    • bridgedbMetricsVersion

      String bridgedbMetricsVersion()
      Return the BridgeDB metrics format version.
      Returns:
      BridgeDB metrics format version.
      Since:
      2.8.0
    • bridgedbMetricCounts

      Optional<Map<String,Long>> bridgedbMetricCounts()
      Return approximate request numbers to the BridgeDB service in the measurement interval broken down by distribution mechanism, obfuscation protocol, and country code.

      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;
      • the second-to-last field is either success or fail depending on if the BridgeDB request succeeded or not; and
      • the last field is reserved for an anomaly score to be added in the future.

      Values are approximate request numbers, rounded up to the next multiple of 10.

      Returns:
      Map of approximate request numbers.
      Since:
      2.8.0