ProxyAnalytics class
Represents analytics data for proxy usage
Constructors
-
ProxyAnalytics.new({int totalProxiesFetched = 0, int totalProxiesValidated = 0, int totalSuccessfulValidations = 0, int totalFailedValidations = 0, int totalRequests = 0, int totalSuccessfulRequests = 0, int totalFailedRequests = 0, int averageResponseTime = 0, double averageSuccessRate = 0.0, Map<
String, int> proxiesByCountry = const {}, Map<String, int> proxiesByAnonymityLevel = const {}, Map<String, int> requestsByProxySource = const {}}) -
Creates a new ProxyAnalytics instance
const
-
ProxyAnalytics.fromJson(Map<
String, dynamic> json) -
Creates a ProxyAnalytics from a JSON map
factory
Properties
- averageResponseTime → int
-
Average response time in milliseconds
final
- averageSuccessRate → double
-
Average success rate (0.0 to 1.0)
final
- hashCode → int
-
The hash code for this object.
no setterinherited
-
proxiesByAnonymityLevel
→ Map<
String, int> -
Number of proxies by anonymity level
final
-
proxiesByCountry
→ Map<
String, int> -
Number of proxies by country
final
-
requestsByProxySource
→ Map<
String, int> -
Number of requests by proxy source
final
- runtimeType → Type
-
A representation of the runtime type of the object.
no setterinherited
- totalFailedRequests → int
-
Total number of failed requests
final
- totalFailedValidations → int
-
Total number of failed validations
final
- totalProxiesFetched → int
-
Total number of proxies fetched
final
- totalProxiesValidated → int
-
Total number of proxies validated
final
- totalRequests → int
-
Total number of requests made
final
- totalSuccessfulRequests → int
-
Total number of successful requests
final
- totalSuccessfulValidations → int
-
Total number of successful validations
final
Methods
-
copyWith(
{int? totalProxiesFetched, int? totalProxiesValidated, int? totalSuccessfulValidations, int? totalFailedValidations, int? totalRequests, int? totalSuccessfulRequests, int? totalFailedRequests, int? averageResponseTime, double? averageSuccessRate, Map< String, int> ? proxiesByCountry, Map<String, int> ? proxiesByAnonymityLevel, Map<String, int> ? requestsByProxySource}) → ProxyAnalytics - Creates a new ProxyAnalytics with updated values
-
noSuchMethod(
Invocation invocation) → dynamic -
Invoked when a nonexistent method or property is accessed.
inherited
-
recordProxyFetch(
List< Proxy> proxies) → ProxyAnalytics - Records a proxy fetch operation
-
recordProxyValidation(
List< Proxy> proxies, List<bool> results) → ProxyAnalytics - Records a proxy validation operation
-
recordRequest(
Proxy proxy, bool success, int? responseTime, String source) → ProxyAnalytics - Records a request made through a proxy
-
toJson(
) → Map< String, dynamic> - Converts this ProxyAnalytics to a JSON map
-
toString(
) → String -
A string representation of this object.
inherited
Operators
-
operator ==(
Object other) → bool -
The equality operator.
inherited