Skip to content

Commit d7bdbda

Browse files
committed
add describe fields
1 parent b5cc378 commit d7bdbda

File tree

1 file changed

+5
-0
lines changed

1 file changed

+5
-0
lines changed

src/apify_client/_statistics.py

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,8 +6,13 @@ class Statistics:
66
"""Statistics about API client usage and rate limit errors."""
77

88
calls: int = 0
9+
"""Total number of API method calls made by the client."""
10+
911
requests: int = 0
12+
"""Total number of HTTP requests sent, including retries."""
13+
1014
rate_limit_errors: list[int] = field(default_factory=list)
15+
"""List tracking which retry attempts encountered rate limit (429) errors."""
1116

1217
def add_rate_limit_error(self, attempt: int) -> None:
1318
"""Add rate limit error for specific attempt.

0 commit comments

Comments
 (0)