You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -38,3 +40,49 @@ class BrowserPoolAcquireParams(TypedDict, total=False):
38
40
find and group sessions later. Applies to this lease only and are cleared when
39
41
the browser is released back to the pool. Up to 50 pairs.
40
42
"""
43
+
44
+
telemetry: Optional[Telemetry]
45
+
"""Telemetry override for the acquired browser, applied to this lease only.
46
+
47
+
Merges onto the browser's current (pool-inherited) telemetry using the same
48
+
per-category semantics as PATCH /browsers: provided categories override the
49
+
current configuration, omitted categories are inherited. Set enabled to true to
50
+
resolve the config fresh from the default set, or enabled to false to stop
51
+
capture. When the browser is released back to the pool with reuse, its telemetry
52
+
is reset to the pool's baseline, so the override does not carry over to the next
53
+
lease.
54
+
"""
55
+
56
+
57
+
classTelemetry(TypedDict, total=False):
58
+
"""Telemetry override for the acquired browser, applied to this lease only.
59
+
60
+
Merges onto the browser's current (pool-inherited) telemetry using the same per-category semantics as PATCH /browsers: provided categories override the current configuration, omitted categories are inherited. Set enabled to true to resolve the config fresh from the default set, or enabled to false to stop capture. When the browser is released back to the pool with reuse, its telemetry is reset to the pool's baseline, so the override does not carry over to the next lease.
61
+
"""
62
+
63
+
browser: BrowserTelemetryCategoriesConfigParam
64
+
"""Per-category capture flags.
65
+
66
+
The operational categories (control, connection, system, captcha) are captured
67
+
whenever telemetry is enabled; set one to enabled=false to opt out. The CDP
68
+
categories (console, network, page, interaction) and screenshot are off by
69
+
default; set enabled=true to opt in. On create, provided categories layer onto
70
+
the default set. On update, provided categories merge onto the session's current
71
+
config; when no telemetry is active this falls back to the default set (matching
72
+
create). If browser is omitted or empty, the default set is used. A browser
73
+
config that disables every category stops capture on update and starts no
74
+
capture on create.
75
+
"""
76
+
77
+
enabled: bool
78
+
"""Request shortcut for browser telemetry capture.
79
+
80
+
True enables capture; with no browser category settings it captures the default
81
+
set (control, connection, system, captcha), and any browser category settings
82
+
are layered onto that default set. On update, enabled=true resolves the config
83
+
fresh from the default set plus any provided categories, replacing the session's
84
+
current selection rather than merging onto it; omit enabled to merge categories
85
+
onto the current selection instead. False stops capture on update and starts no
86
+
capture on create. enabled=false cannot be combined with browser category
@@ -90,6 +91,16 @@ class BrowserPoolCreateParams(TypedDict, total=False):
90
91
mechanisms. Defaults to false.
91
92
"""
92
93
94
+
telemetry: Optional[Telemetry]
95
+
"""Telemetry configuration applied to browsers warmed into this pool.
96
+
97
+
Set enabled to true to start capture using the default set, or provide browser
98
+
category settings. If omitted, null, set to an empty object ({}), set to
99
+
enabled: false without browser category settings, or all four CDP categories are
100
+
explicitly disabled, no telemetry is configured on the pool. Only applied to
101
+
newly-warmed browsers.
102
+
"""
103
+
93
104
timeout_seconds: int
94
105
"""
95
106
Default idle timeout in seconds for browsers acquired from this pool before they
@@ -130,3 +141,37 @@ class Profile(TypedDict, total=False):
130
141
131
142
Must be 1-255 characters, using letters, numbers, dots, underscores, or hyphens.
132
143
"""
144
+
145
+
146
+
classTelemetry(TypedDict, total=False):
147
+
"""Telemetry configuration applied to browsers warmed into this pool.
148
+
149
+
Set enabled to true to start capture using the default set, or provide browser category settings. If omitted, null, set to an empty object ({}), set to enabled: false without browser category settings, or all four CDP categories are explicitly disabled, no telemetry is configured on the pool. Only applied to newly-warmed browsers.
150
+
"""
151
+
152
+
browser: BrowserTelemetryCategoriesConfigParam
153
+
"""Per-category capture flags.
154
+
155
+
The operational categories (control, connection, system, captcha) are captured
156
+
whenever telemetry is enabled; set one to enabled=false to opt out. The CDP
157
+
categories (console, network, page, interaction) and screenshot are off by
158
+
default; set enabled=true to opt in. On create, provided categories layer onto
159
+
the default set. On update, provided categories merge onto the session's current
160
+
config; when no telemetry is active this falls back to the default set (matching
161
+
create). If browser is omitted or empty, the default set is used. A browser
162
+
config that disables every category stops capture on update and starts no
163
+
capture on create.
164
+
"""
165
+
166
+
enabled: bool
167
+
"""Request shortcut for browser telemetry capture.
168
+
169
+
True enables capture; with no browser category settings it captures the default
170
+
set (control, connection, system, captcha), and any browser category settings
171
+
are layered onto that default set. On update, enabled=true resolves the config
172
+
fresh from the default set plus any provided categories, replacing the session's
173
+
current selection rather than merging onto it; omit enabled to merge categories
174
+
onto the current selection instead. False stops capture on update and starts no
175
+
capture on create. enabled=false cannot be combined with browser category
0 commit comments