Package org.torproject.descriptor
Interface SnowflakeStats
- All Superinterfaces:
Descriptor,java.io.Serializable
public interface SnowflakeStats extends Descriptor
Contain aggregated information about snowflake proxies and snowflake clients.
- Since:
- 2.7.0
-
Method Summary
Modifier and Type Method Description java.util.Optional<java.lang.Long>clientDeniedCount()Return a count of the number of times a client has requested a proxy from the broker but no proxies were available, rounded up to the nearest multiple of 8.java.util.Optional<java.lang.Long>clientSnowflakeMatchCount()Return a count of the number of times a client successfully received a proxy from the broker, rounded up to the nearest multiple of 8.java.util.Optional<java.lang.Long>snowflakeIdleCount()Return a count of the number of times a proxy has polled but received no client offer, rounded up to the nearest multiple of 8.java.util.Optional<java.util.SortedMap<java.lang.String,java.lang.Long>>snowflakeIps()Return a list of mappings from two-letter country codes to the number of unique IP addresses of snowflake proxies that have polled.java.util.Optional<java.lang.Long>snowflakeIpsBadge()Return a count of the total number of unique IP addresses of snowflake proxies of type "badge" that have polled.java.util.Optional<java.lang.Long>snowflakeIpsStandalone()Return a count of the total number of unique IP addresses of snowflake proxies of type "standalone" that have polled.java.util.Optional<java.lang.Long>snowflakeIpsTotal()Return a count of the total number of unique IP addresses of snowflake proxies that have polled.java.util.Optional<java.lang.Long>snowflakeIpsWebext()Return a count of the total number of unique IP addresses of snowflake proxies of type "webext" that have polled.java.time.LocalDateTimesnowflakeStatsEnd()Return the end of the included measurement interval.java.time.DurationsnowflakeStatsIntervalLength()Return the length of the included measurement interval.Methods inherited from interface org.torproject.descriptor.Descriptor
getAnnotations, getDescriptorFile, getRawDescriptorBytes, getRawDescriptorLength, getUnrecognizedLines
-
Method Details
-
snowflakeStatsEnd
java.time.LocalDateTime snowflakeStatsEnd()Return the end of the included measurement interval.- Returns:
- End of the included measurement interval.
- Since:
- 2.7.0
-
snowflakeStatsIntervalLength
java.time.Duration snowflakeStatsIntervalLength()Return the length of the included measurement interval.- Returns:
- Length of the included measurement interval.
- Since:
- 2.7.0
-
snowflakeIps
java.util.Optional<java.util.SortedMap<java.lang.String,java.lang.Long>> snowflakeIps()Return a list of mappings from two-letter country codes to the number of unique IP addresses of snowflake proxies that have polled.- Returns:
- List of mappings from two-letter country codes to the number of unique IP addresses of snowflake proxies that have polled.
- Since:
- 2.7.0
-
snowflakeIpsTotal
java.util.Optional<java.lang.Long> snowflakeIpsTotal()Return a count of the total number of unique IP addresses of snowflake proxies that have polled.- Returns:
- Count of the total number of unique IP addresses of snowflake proxies that have polled.
- Since:
- 2.7.0
-
snowflakeIpsStandalone
java.util.Optional<java.lang.Long> snowflakeIpsStandalone()Return a count of the total number of unique IP addresses of snowflake proxies of type "standalone" that have polled.- Returns:
- Count of the total number of unique IP addresses of snowflake proxies of type "standalone" that have polled.
- Since:
- 2.10.0
-
snowflakeIpsBadge
java.util.Optional<java.lang.Long> snowflakeIpsBadge()Return a count of the total number of unique IP addresses of snowflake proxies of type "badge" that have polled.- Returns:
- Count of the total number of unique IP addresses of snowflake proxies of type "badge" that have polled.
- Since:
- 2.10.0
-
snowflakeIpsWebext
java.util.Optional<java.lang.Long> snowflakeIpsWebext()Return a count of the total number of unique IP addresses of snowflake proxies of type "webext" that have polled.- Returns:
- Count of the total number of unique IP addresses of snowflake proxies of type "webext" that have polled.
- Since:
- 2.10.0
-
snowflakeIdleCount
java.util.Optional<java.lang.Long> snowflakeIdleCount()Return a count of the number of times a proxy has polled but received no client offer, rounded up to the nearest multiple of 8.- Returns:
- Count of the number of times a proxy has polled but received no client offer, rounded up to the nearest multiple of 8.
- Since:
- 2.7.0
-
clientDeniedCount
java.util.Optional<java.lang.Long> clientDeniedCount()Return a count of the number of times a client has requested a proxy from the broker but no proxies were available, rounded up to the nearest multiple of 8.- Returns:
- Count of the number of times a client has requested a proxy from the broker but no proxies were available, rounded up to the nearest multiple of 8.
- Since:
- 2.7.0
-
clientSnowflakeMatchCount
java.util.Optional<java.lang.Long> clientSnowflakeMatchCount()Return a count of the number of times a client successfully received a proxy from the broker, rounded up to the nearest multiple of 8.- Returns:
- Count of the number of times a client successfully received a proxy from the broker, rounded up to the nearest multiple of 8.
- Since:
- 2.7.0
-