chunkify-analytics-sdk 0.9.0__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- chunkify_analytics/__init__.py +102 -0
- chunkify_analytics/_base_client.py +2153 -0
- chunkify_analytics/_client.py +1262 -0
- chunkify_analytics/_compat.py +226 -0
- chunkify_analytics/_constants.py +14 -0
- chunkify_analytics/_exceptions.py +108 -0
- chunkify_analytics/_files.py +173 -0
- chunkify_analytics/_models.py +964 -0
- chunkify_analytics/_qs.py +149 -0
- chunkify_analytics/_resource.py +43 -0
- chunkify_analytics/_response.py +835 -0
- chunkify_analytics/_streaming.py +338 -0
- chunkify_analytics/_types.py +274 -0
- chunkify_analytics/_utils/__init__.py +64 -0
- chunkify_analytics/_utils/_compat.py +45 -0
- chunkify_analytics/_utils/_datetime_parse.py +136 -0
- chunkify_analytics/_utils/_json.py +35 -0
- chunkify_analytics/_utils/_logs.py +25 -0
- chunkify_analytics/_utils/_path.py +127 -0
- chunkify_analytics/_utils/_proxy.py +65 -0
- chunkify_analytics/_utils/_reflection.py +42 -0
- chunkify_analytics/_utils/_resources_proxy.py +24 -0
- chunkify_analytics/_utils/_streams.py +12 -0
- chunkify_analytics/_utils/_sync.py +58 -0
- chunkify_analytics/_utils/_transform.py +457 -0
- chunkify_analytics/_utils/_typing.py +156 -0
- chunkify_analytics/_utils/_utils.py +433 -0
- chunkify_analytics/_version.py +4 -0
- chunkify_analytics/lib/.keep +4 -0
- chunkify_analytics/pagination.py +221 -0
- chunkify_analytics/py.typed +0 -0
- chunkify_analytics/resources/__init__.py +243 -0
- chunkify_analytics/resources/admin/__init__.py +33 -0
- chunkify_analytics/resources/admin/admin.py +253 -0
- chunkify_analytics/resources/admin/keys.py +283 -0
- chunkify_analytics/resources/dimensions.py +436 -0
- chunkify_analytics/resources/engagement.py +479 -0
- chunkify_analytics/resources/errors.py +400 -0
- chunkify_analytics/resources/events.py +562 -0
- chunkify_analytics/resources/exports.py +584 -0
- chunkify_analytics/resources/health.py +159 -0
- chunkify_analytics/resources/playback_rates.py +391 -0
- chunkify_analytics/resources/project/__init__.py +33 -0
- chunkify_analytics/resources/project/keys.py +379 -0
- chunkify_analytics/resources/project/project.py +322 -0
- chunkify_analytics/resources/quality.py +471 -0
- chunkify_analytics/resources/renditions.py +391 -0
- chunkify_analytics/resources/retention.py +377 -0
- chunkify_analytics/resources/subtitles.py +389 -0
- chunkify_analytics/resources/summary.py +469 -0
- chunkify_analytics/resources/timeseries.py +399 -0
- chunkify_analytics/resources/videos.py +424 -0
- chunkify_analytics/resources/views.py +579 -0
- chunkify_analytics/types/__init__.py +145 -0
- chunkify_analytics/types/admin/__init__.py +3 -0
- chunkify_analytics/types/admin_create_project_params.py +25 -0
- chunkify_analytics/types/analytics_event.py +32 -0
- chunkify_analytics/types/analytics_event_param.py +30 -0
- chunkify_analytics/types/created_project.py +37 -0
- chunkify_analytics/types/created_project_key.py +34 -0
- chunkify_analytics/types/deleted_project.py +18 -0
- chunkify_analytics/types/dimension_list_values_params.py +124 -0
- chunkify_analytics/types/dimension_values.py +42 -0
- chunkify_analytics/types/engagement.py +60 -0
- chunkify_analytics/types/engagement_breakdown_page.py +44 -0
- chunkify_analytics/types/engagement_response.py +11 -0
- chunkify_analytics/types/engagement_retrieve_params.py +158 -0
- chunkify_analytics/types/engagement_timeseries.py +28 -0
- chunkify_analytics/types/engagement_timeseries_bucket.py +63 -0
- chunkify_analytics/types/error_group.py +17 -0
- chunkify_analytics/types/error_list_params.py +124 -0
- chunkify_analytics/types/error_page.py +14 -0
- chunkify_analytics/types/event_ingest_params.py +19 -0
- chunkify_analytics/types/event_ingest_response.py +11 -0
- chunkify_analytics/types/event_list_params.py +146 -0
- chunkify_analytics/types/event_page.py +18 -0
- chunkify_analytics/types/export.py +18 -0
- chunkify_analytics/types/export_columns.py +12 -0
- chunkify_analytics/types/export_create_params.py +40 -0
- chunkify_analytics/types/export_download_response.py +7 -0
- chunkify_analytics/types/export_list_columns_params.py +69 -0
- chunkify_analytics/types/export_query_param.py +141 -0
- chunkify_analytics/types/health.py +11 -0
- chunkify_analytics/types/metrics.py +13 -0
- chunkify_analytics/types/metrics_breakdown_page.py +40 -0
- chunkify_analytics/types/metrics_response.py +11 -0
- chunkify_analytics/types/native_created.py +13 -0
- chunkify_analytics/types/native_duplicate.py +13 -0
- chunkify_analytics/types/playback_error.py +180 -0
- chunkify_analytics/types/playback_error_param.py +182 -0
- chunkify_analytics/types/playback_rate_changed.py +150 -0
- chunkify_analytics/types/playback_rate_changed_param.py +152 -0
- chunkify_analytics/types/playback_rate_metric.py +21 -0
- chunkify_analytics/types/playback_rate_report.py +31 -0
- chunkify_analytics/types/playback_rate_retrieve_params.py +117 -0
- chunkify_analytics/types/playback_state_changed.py +150 -0
- chunkify_analytics/types/playback_state_changed_param.py +156 -0
- chunkify_analytics/types/project/__init__.py +6 -0
- chunkify_analytics/types/project/key_create_params.py +21 -0
- chunkify_analytics/types/project/project.py +35 -0
- chunkify_analytics/types/project_key.py +21 -0
- chunkify_analytics/types/project_keys.py +14 -0
- chunkify_analytics/types/project_update_params.py +25 -0
- chunkify_analytics/types/quality.py +117 -0
- chunkify_analytics/types/quality_breakdown_page.py +44 -0
- chunkify_analytics/types/quality_response.py +11 -0
- chunkify_analytics/types/quality_retrieve_params.py +158 -0
- chunkify_analytics/types/quality_timeseries.py +28 -0
- chunkify_analytics/types/quality_timeseries_bucket.py +120 -0
- chunkify_analytics/types/rendition_changed.py +156 -0
- chunkify_analytics/types/rendition_changed_param.py +158 -0
- chunkify_analytics/types/rendition_metric.py +40 -0
- chunkify_analytics/types/rendition_report.py +43 -0
- chunkify_analytics/types/rendition_retrieve_params.py +117 -0
- chunkify_analytics/types/retention_bucket.py +22 -0
- chunkify_analytics/types/retention_report.py +33 -0
- chunkify_analytics/types/retention_retrieve_params.py +110 -0
- chunkify_analytics/types/rotated_project_key.py +29 -0
- chunkify_analytics/types/seek_completed.py +166 -0
- chunkify_analytics/types/seek_completed_param.py +168 -0
- chunkify_analytics/types/shared/__init__.py +24 -0
- chunkify_analytics/types/shared/browser_context.py +62 -0
- chunkify_analytics/types/shared/custom_dimensions.py +8 -0
- chunkify_analytics/types/shared/event_context.py +161 -0
- chunkify_analytics/types/shared/event_envelope.py +152 -0
- chunkify_analytics/types/shared/metric_count_ratio.py +18 -0
- chunkify_analytics/types/shared/otlp_any_value.py +56 -0
- chunkify_analytics/types/shared/otlp_attribute.py +24 -0
- chunkify_analytics/types/shared/otlp_attribute_value.py +136 -0
- chunkify_analytics/types/shared/otlp_context_attribute.py +22 -0
- chunkify_analytics/types/shared/otlp_log_record.py +48 -0
- chunkify_analytics/types/shared/otlp_resource.py +20 -0
- chunkify_analytics/types/shared/otlp_scope.py +24 -0
- chunkify_analytics/types/shared/playback_rate_playing_time.py +12 -0
- chunkify_analytics/types/shared/playback_score.py +28 -0
- chunkify_analytics/types/shared/played_range.py +13 -0
- chunkify_analytics/types/shared/progress_reached.py +39 -0
- chunkify_analytics/types/shared/rendition_playing_time.py +21 -0
- chunkify_analytics/types/shared/startup_outcomes.py +39 -0
- chunkify_analytics/types/shared/stored_otlp_context.py +50 -0
- chunkify_analytics/types/shared/subtitle_playing_time.py +14 -0
- chunkify_analytics/types/shared/view_metrics.py +100 -0
- chunkify_analytics/types/shared/watch_time_distribution.py +41 -0
- chunkify_analytics/types/shared_params/__init__.py +8 -0
- chunkify_analytics/types/shared_params/browser_context.py +62 -0
- chunkify_analytics/types/shared_params/custom_dimensions.py +10 -0
- chunkify_analytics/types/shared_params/playback_rate_playing_time.py +14 -0
- chunkify_analytics/types/shared_params/played_range.py +15 -0
- chunkify_analytics/types/shared_params/rendition_playing_time.py +22 -0
- chunkify_analytics/types/shared_params/subtitle_playing_time.py +15 -0
- chunkify_analytics/types/stored_event.py +44 -0
- chunkify_analytics/types/subtitle_changed.py +150 -0
- chunkify_analytics/types/subtitle_changed_param.py +152 -0
- chunkify_analytics/types/subtitle_metric.py +26 -0
- chunkify_analytics/types/subtitle_report.py +31 -0
- chunkify_analytics/types/subtitle_retrieve_params.py +117 -0
- chunkify_analytics/types/summary_retrieve_params.py +158 -0
- chunkify_analytics/types/time_bucket.py +22 -0
- chunkify_analytics/types/timeseries.py +28 -0
- chunkify_analytics/types/timeseries_response.py +12 -0
- chunkify_analytics/types/timesery_retrieve_params.py +115 -0
- chunkify_analytics/types/video_list_params.py +140 -0
- chunkify_analytics/types/video_metrics.py +23 -0
- chunkify_analytics/types/video_page.py +14 -0
- chunkify_analytics/types/view.py +43 -0
- chunkify_analytics/types/view_detail.py +21 -0
- chunkify_analytics/types/view_ended.py +180 -0
- chunkify_analytics/types/view_ended_param.py +182 -0
- chunkify_analytics/types/view_list_params.py +152 -0
- chunkify_analytics/types/view_page.py +14 -0
- chunkify_analytics/types/view_retrieve_params.py +23 -0
- chunkify_analytics/types/view_snapshot.py +180 -0
- chunkify_analytics/types/view_snapshot_param.py +182 -0
- chunkify_analytics/types/view_started.py +192 -0
- chunkify_analytics/types/view_started_param.py +194 -0
- chunkify_analytics_sdk-0.9.0.dist-info/METADATA +487 -0
- chunkify_analytics_sdk-0.9.0.dist-info/RECORD +179 -0
- chunkify_analytics_sdk-0.9.0.dist-info/WHEEL +4 -0
- chunkify_analytics_sdk-0.9.0.dist-info/licenses/LICENSE +201 -0
|
@@ -0,0 +1,400 @@
|
|
|
1
|
+
# File generated from our OpenAPI spec by Stainless. See CONTRIBUTING.md for details.
|
|
2
|
+
|
|
3
|
+
from __future__ import annotations
|
|
4
|
+
|
|
5
|
+
from typing import Union
|
|
6
|
+
from datetime import datetime
|
|
7
|
+
from typing_extensions import Literal
|
|
8
|
+
|
|
9
|
+
import httpx
|
|
10
|
+
|
|
11
|
+
from ..types import error_list_params
|
|
12
|
+
from .._types import Body, Omit, Query, Headers, NotGiven, omit, not_given
|
|
13
|
+
from .._utils import maybe_transform
|
|
14
|
+
from .._compat import cached_property
|
|
15
|
+
from .._resource import SyncAPIResource, AsyncAPIResource
|
|
16
|
+
from .._response import (
|
|
17
|
+
to_raw_response_wrapper,
|
|
18
|
+
to_streamed_response_wrapper,
|
|
19
|
+
async_to_raw_response_wrapper,
|
|
20
|
+
async_to_streamed_response_wrapper,
|
|
21
|
+
)
|
|
22
|
+
from ..pagination import SyncErrorsPage, AsyncErrorsPage
|
|
23
|
+
from .._base_client import AsyncPaginator, make_request_options
|
|
24
|
+
from ..types.error_group import ErrorGroup
|
|
25
|
+
|
|
26
|
+
__all__ = ["ErrorsResource", "AsyncErrorsResource"]
|
|
27
|
+
|
|
28
|
+
|
|
29
|
+
class ErrorsResource(SyncAPIResource):
|
|
30
|
+
"""Private retained-event and view-cohort queries."""
|
|
31
|
+
|
|
32
|
+
@cached_property
|
|
33
|
+
def with_raw_response(self) -> ErrorsResourceWithRawResponse:
|
|
34
|
+
"""
|
|
35
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
36
|
+
the raw response object instead of the parsed content.
|
|
37
|
+
|
|
38
|
+
For more information, see https://www.github.com/chunkifydev/chunkify-analytics-python#accessing-raw-response-data-eg-headers
|
|
39
|
+
"""
|
|
40
|
+
return ErrorsResourceWithRawResponse(self)
|
|
41
|
+
|
|
42
|
+
@cached_property
|
|
43
|
+
def with_streaming_response(self) -> ErrorsResourceWithStreamingResponse:
|
|
44
|
+
"""
|
|
45
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
46
|
+
|
|
47
|
+
For more information, see https://www.github.com/chunkifydev/chunkify-analytics-python#with_streaming_response
|
|
48
|
+
"""
|
|
49
|
+
return ErrorsResourceWithStreamingResponse(self)
|
|
50
|
+
|
|
51
|
+
def list(
|
|
52
|
+
self,
|
|
53
|
+
*,
|
|
54
|
+
browser_name: str | Omit = omit,
|
|
55
|
+
city: str | Omit = omit,
|
|
56
|
+
continent: Literal["AF", "AN", "AS", "EU", "NA", "OC", "SA"] | Omit = omit,
|
|
57
|
+
country: str | Omit = omit,
|
|
58
|
+
cursor: str | Omit = omit,
|
|
59
|
+
device_type: Literal["desktop", "mobile", "tablet", "unknown"] | Omit = omit,
|
|
60
|
+
from_: Union[str, datetime] | Omit = omit,
|
|
61
|
+
limit: int | Omit = omit,
|
|
62
|
+
os_name: str | Omit = omit,
|
|
63
|
+
page_origin: str | Omit = omit,
|
|
64
|
+
page_path: str | Omit = omit,
|
|
65
|
+
playback_rate: str | Omit = omit,
|
|
66
|
+
subtitle_language: str | Omit = omit,
|
|
67
|
+
to: Union[str, datetime] | Omit = omit,
|
|
68
|
+
user_id: str | Omit = omit,
|
|
69
|
+
video_id: str | Omit = omit,
|
|
70
|
+
video_title: str | Omit = omit,
|
|
71
|
+
view_id: str | Omit = omit,
|
|
72
|
+
viewer_id: str | Omit = omit,
|
|
73
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
74
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
75
|
+
extra_headers: Headers | None = None,
|
|
76
|
+
extra_query: Query | None = None,
|
|
77
|
+
extra_body: Body | None = None,
|
|
78
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
79
|
+
) -> SyncErrorsPage[ErrorGroup]:
|
|
80
|
+
"""Filters select first retained starts.
|
|
81
|
+
|
|
82
|
+
Error events from the selected view
|
|
83
|
+
identity contribute even after to. Group by exact JSON error_code and fatal
|
|
84
|
+
status, distinguishing numeric codes from text and missing from false. Sort by
|
|
85
|
+
affected_views descending, then canonical JSON code and fatal status ascending
|
|
86
|
+
for ties. error_events counts distinct event IDs per group, affected_views
|
|
87
|
+
counts distinct view IDs. Groups are not additive across codes. Cursors exclude
|
|
88
|
+
later arrivals.
|
|
89
|
+
|
|
90
|
+
Args:
|
|
91
|
+
browser_name: Exact browser name, such as Chrome. Missing values do not match.
|
|
92
|
+
|
|
93
|
+
city: Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode
|
|
94
|
+
characters. Use country alongside city to distinguish places with the same name.
|
|
95
|
+
Missing locations do not match.
|
|
96
|
+
|
|
97
|
+
continent: Exact continent code from the local lookup. Missing locations do not match.
|
|
98
|
+
|
|
99
|
+
country: Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations
|
|
100
|
+
do not match.
|
|
101
|
+
|
|
102
|
+
cursor: Use next_cursor from the previous page. Keep the same filters, sort_by and
|
|
103
|
+
order. Video cursors from earlier versions are invalid; start a new pagination
|
|
104
|
+
sequence after upgrading.
|
|
105
|
+
|
|
106
|
+
device_type: Exact device class. unknown matches an explicit unknown value.
|
|
107
|
+
|
|
108
|
+
from_: Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video
|
|
109
|
+
queries apply it to the selected view_started event. Must be before to.
|
|
110
|
+
|
|
111
|
+
limit: Maximum rows on this page. Events and videos always support pagination; summary,
|
|
112
|
+
quality and engagement support it only with group_by.
|
|
113
|
+
|
|
114
|
+
os_name: Exact operating-system name, such as macOS. Missing values do not match.
|
|
115
|
+
|
|
116
|
+
page_origin: Exact, case-sensitive page origin captured by the player, such as
|
|
117
|
+
https://example.com. Metrics use the first retained view start; raw events use
|
|
118
|
+
each event context. Missing values do not match.
|
|
119
|
+
|
|
120
|
+
page_path: Exact, case-sensitive page path captured by the player, such as /watch/video.
|
|
121
|
+
Filter by page_origin as well to distinguish identical paths on different sites.
|
|
122
|
+
Metrics use the first retained view start; raw events use each event context.
|
|
123
|
+
Missing values do not match.
|
|
124
|
+
|
|
125
|
+
playback_rate: Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;
|
|
126
|
+
2.0 and 2 are the same rate. Metrics use the rate on the first retained view
|
|
127
|
+
start; raw events use each event's value.
|
|
128
|
+
|
|
129
|
+
subtitle_language: Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und
|
|
130
|
+
for a subtitles track without a language. Metrics use the language showing on
|
|
131
|
+
the first retained view start; raw events use each event's value. Views without
|
|
132
|
+
subtitles at start do not match.
|
|
133
|
+
|
|
134
|
+
to: Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video
|
|
135
|
+
queries apply it to the selected view_started event.
|
|
136
|
+
|
|
137
|
+
user_id: Exact integrator-supplied user ID. Selects views by their start event; event
|
|
138
|
+
lists match each event's own value. Missing/null user IDs do not match. Reports
|
|
139
|
+
with this filter read one stored row per view.
|
|
140
|
+
|
|
141
|
+
video_id: Exact video ID; must not be blank. Combined with all other filters using AND.
|
|
142
|
+
|
|
143
|
+
video_title: Exact, case-sensitive video title. Selects views by the title on their first
|
|
144
|
+
retained start; event lists match each event's own value. Views without a title
|
|
145
|
+
do not match. Reports with this filter read one stored row per view.
|
|
146
|
+
|
|
147
|
+
view_id: Filter one playback attempt by view ID. Metrics use its first retained start.
|
|
148
|
+
|
|
149
|
+
viewer_id: Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null
|
|
150
|
+
viewer IDs do not match.
|
|
151
|
+
|
|
152
|
+
extra_headers: Send extra headers
|
|
153
|
+
|
|
154
|
+
extra_query: Add additional query parameters to the request
|
|
155
|
+
|
|
156
|
+
extra_body: Add additional JSON properties to the request
|
|
157
|
+
|
|
158
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
159
|
+
"""
|
|
160
|
+
return self._get_api_list(
|
|
161
|
+
"/v1/errors",
|
|
162
|
+
page=SyncErrorsPage[ErrorGroup],
|
|
163
|
+
options=make_request_options(
|
|
164
|
+
extra_headers=extra_headers,
|
|
165
|
+
extra_query=extra_query,
|
|
166
|
+
extra_body=extra_body,
|
|
167
|
+
timeout=timeout,
|
|
168
|
+
query=maybe_transform(
|
|
169
|
+
{
|
|
170
|
+
"browser_name": browser_name,
|
|
171
|
+
"city": city,
|
|
172
|
+
"continent": continent,
|
|
173
|
+
"country": country,
|
|
174
|
+
"cursor": cursor,
|
|
175
|
+
"device_type": device_type,
|
|
176
|
+
"from_": from_,
|
|
177
|
+
"limit": limit,
|
|
178
|
+
"os_name": os_name,
|
|
179
|
+
"page_origin": page_origin,
|
|
180
|
+
"page_path": page_path,
|
|
181
|
+
"playback_rate": playback_rate,
|
|
182
|
+
"subtitle_language": subtitle_language,
|
|
183
|
+
"to": to,
|
|
184
|
+
"user_id": user_id,
|
|
185
|
+
"video_id": video_id,
|
|
186
|
+
"video_title": video_title,
|
|
187
|
+
"view_id": view_id,
|
|
188
|
+
"viewer_id": viewer_id,
|
|
189
|
+
},
|
|
190
|
+
error_list_params.ErrorListParams,
|
|
191
|
+
),
|
|
192
|
+
security={"secret_key": True},
|
|
193
|
+
),
|
|
194
|
+
model=ErrorGroup,
|
|
195
|
+
)
|
|
196
|
+
|
|
197
|
+
|
|
198
|
+
class AsyncErrorsResource(AsyncAPIResource):
|
|
199
|
+
"""Private retained-event and view-cohort queries."""
|
|
200
|
+
|
|
201
|
+
@cached_property
|
|
202
|
+
def with_raw_response(self) -> AsyncErrorsResourceWithRawResponse:
|
|
203
|
+
"""
|
|
204
|
+
This property can be used as a prefix for any HTTP method call to return
|
|
205
|
+
the raw response object instead of the parsed content.
|
|
206
|
+
|
|
207
|
+
For more information, see https://www.github.com/chunkifydev/chunkify-analytics-python#accessing-raw-response-data-eg-headers
|
|
208
|
+
"""
|
|
209
|
+
return AsyncErrorsResourceWithRawResponse(self)
|
|
210
|
+
|
|
211
|
+
@cached_property
|
|
212
|
+
def with_streaming_response(self) -> AsyncErrorsResourceWithStreamingResponse:
|
|
213
|
+
"""
|
|
214
|
+
An alternative to `.with_raw_response` that doesn't eagerly read the response body.
|
|
215
|
+
|
|
216
|
+
For more information, see https://www.github.com/chunkifydev/chunkify-analytics-python#with_streaming_response
|
|
217
|
+
"""
|
|
218
|
+
return AsyncErrorsResourceWithStreamingResponse(self)
|
|
219
|
+
|
|
220
|
+
def list(
|
|
221
|
+
self,
|
|
222
|
+
*,
|
|
223
|
+
browser_name: str | Omit = omit,
|
|
224
|
+
city: str | Omit = omit,
|
|
225
|
+
continent: Literal["AF", "AN", "AS", "EU", "NA", "OC", "SA"] | Omit = omit,
|
|
226
|
+
country: str | Omit = omit,
|
|
227
|
+
cursor: str | Omit = omit,
|
|
228
|
+
device_type: Literal["desktop", "mobile", "tablet", "unknown"] | Omit = omit,
|
|
229
|
+
from_: Union[str, datetime] | Omit = omit,
|
|
230
|
+
limit: int | Omit = omit,
|
|
231
|
+
os_name: str | Omit = omit,
|
|
232
|
+
page_origin: str | Omit = omit,
|
|
233
|
+
page_path: str | Omit = omit,
|
|
234
|
+
playback_rate: str | Omit = omit,
|
|
235
|
+
subtitle_language: str | Omit = omit,
|
|
236
|
+
to: Union[str, datetime] | Omit = omit,
|
|
237
|
+
user_id: str | Omit = omit,
|
|
238
|
+
video_id: str | Omit = omit,
|
|
239
|
+
video_title: str | Omit = omit,
|
|
240
|
+
view_id: str | Omit = omit,
|
|
241
|
+
viewer_id: str | Omit = omit,
|
|
242
|
+
# Use the following arguments if you need to pass additional parameters to the API that aren't available via kwargs.
|
|
243
|
+
# The extra values given here take precedence over values defined on the client or passed to this method.
|
|
244
|
+
extra_headers: Headers | None = None,
|
|
245
|
+
extra_query: Query | None = None,
|
|
246
|
+
extra_body: Body | None = None,
|
|
247
|
+
timeout: float | httpx.Timeout | None | NotGiven = not_given,
|
|
248
|
+
) -> AsyncPaginator[ErrorGroup, AsyncErrorsPage[ErrorGroup]]:
|
|
249
|
+
"""Filters select first retained starts.
|
|
250
|
+
|
|
251
|
+
Error events from the selected view
|
|
252
|
+
identity contribute even after to. Group by exact JSON error_code and fatal
|
|
253
|
+
status, distinguishing numeric codes from text and missing from false. Sort by
|
|
254
|
+
affected_views descending, then canonical JSON code and fatal status ascending
|
|
255
|
+
for ties. error_events counts distinct event IDs per group, affected_views
|
|
256
|
+
counts distinct view IDs. Groups are not additive across codes. Cursors exclude
|
|
257
|
+
later arrivals.
|
|
258
|
+
|
|
259
|
+
Args:
|
|
260
|
+
browser_name: Exact browser name, such as Chrome. Missing values do not match.
|
|
261
|
+
|
|
262
|
+
city: Exact, case-sensitive city name from the local lookup, with 1 to 256 Unicode
|
|
263
|
+
characters. Use country alongside city to distinguish places with the same name.
|
|
264
|
+
Missing locations do not match.
|
|
265
|
+
|
|
266
|
+
continent: Exact continent code from the local lookup. Missing locations do not match.
|
|
267
|
+
|
|
268
|
+
country: Exact uppercase ISO 3166-1 alpha-2 country code, such as GB. Missing locations
|
|
269
|
+
do not match.
|
|
270
|
+
|
|
271
|
+
cursor: Use next_cursor from the previous page. Keep the same filters, sort_by and
|
|
272
|
+
order. Video cursors from earlier versions are invalid; start a new pagination
|
|
273
|
+
sequence after upgrading.
|
|
274
|
+
|
|
275
|
+
device_type: Exact device class. unknown matches an explicit unknown value.
|
|
276
|
+
|
|
277
|
+
from_: Inclusive RFC3339 occurrence-time lower bound, with timezone. Summary/video
|
|
278
|
+
queries apply it to the selected view_started event. Must be before to.
|
|
279
|
+
|
|
280
|
+
limit: Maximum rows on this page. Events and videos always support pagination; summary,
|
|
281
|
+
quality and engagement support it only with group_by.
|
|
282
|
+
|
|
283
|
+
os_name: Exact operating-system name, such as macOS. Missing values do not match.
|
|
284
|
+
|
|
285
|
+
page_origin: Exact, case-sensitive page origin captured by the player, such as
|
|
286
|
+
https://example.com. Metrics use the first retained view start; raw events use
|
|
287
|
+
each event context. Missing values do not match.
|
|
288
|
+
|
|
289
|
+
page_path: Exact, case-sensitive page path captured by the player, such as /watch/video.
|
|
290
|
+
Filter by page_origin as well to distinguish identical paths on different sites.
|
|
291
|
+
Metrics use the first retained view start; raw events use each event context.
|
|
292
|
+
Missing values do not match.
|
|
293
|
+
|
|
294
|
+
playback_rate: Playback rate from 0.01 to 16 with at most two decimals, such as 1, 1.5 or 2;
|
|
295
|
+
2.0 and 2 are the same rate. Metrics use the rate on the first retained view
|
|
296
|
+
start; raw events use each event's value.
|
|
297
|
+
|
|
298
|
+
subtitle_language: Exact, case-sensitive, non-blank subtitle language tag, such as fr or en-US; und
|
|
299
|
+
for a subtitles track without a language. Metrics use the language showing on
|
|
300
|
+
the first retained view start; raw events use each event's value. Views without
|
|
301
|
+
subtitles at start do not match.
|
|
302
|
+
|
|
303
|
+
to: Exclusive RFC3339 occurrence-time upper bound, with timezone. Summary/video
|
|
304
|
+
queries apply it to the selected view_started event.
|
|
305
|
+
|
|
306
|
+
user_id: Exact integrator-supplied user ID. Selects views by their start event; event
|
|
307
|
+
lists match each event's own value. Missing/null user IDs do not match. Reports
|
|
308
|
+
with this filter read one stored row per view.
|
|
309
|
+
|
|
310
|
+
video_id: Exact video ID; must not be blank. Combined with all other filters using AND.
|
|
311
|
+
|
|
312
|
+
video_title: Exact, case-sensitive video title. Selects views by the title on their first
|
|
313
|
+
retained start; event lists match each event's own value. Views without a title
|
|
314
|
+
do not match. Reports with this filter read one stored row per view.
|
|
315
|
+
|
|
316
|
+
view_id: Filter one playback attempt by view ID. Metrics use its first retained start.
|
|
317
|
+
|
|
318
|
+
viewer_id: Exact viewer ID. The Chunkify player SDK generates one per browser; missing/null
|
|
319
|
+
viewer IDs do not match.
|
|
320
|
+
|
|
321
|
+
extra_headers: Send extra headers
|
|
322
|
+
|
|
323
|
+
extra_query: Add additional query parameters to the request
|
|
324
|
+
|
|
325
|
+
extra_body: Add additional JSON properties to the request
|
|
326
|
+
|
|
327
|
+
timeout: Override the client-level default timeout for this request, in seconds
|
|
328
|
+
"""
|
|
329
|
+
return self._get_api_list(
|
|
330
|
+
"/v1/errors",
|
|
331
|
+
page=AsyncErrorsPage[ErrorGroup],
|
|
332
|
+
options=make_request_options(
|
|
333
|
+
extra_headers=extra_headers,
|
|
334
|
+
extra_query=extra_query,
|
|
335
|
+
extra_body=extra_body,
|
|
336
|
+
timeout=timeout,
|
|
337
|
+
query=maybe_transform(
|
|
338
|
+
{
|
|
339
|
+
"browser_name": browser_name,
|
|
340
|
+
"city": city,
|
|
341
|
+
"continent": continent,
|
|
342
|
+
"country": country,
|
|
343
|
+
"cursor": cursor,
|
|
344
|
+
"device_type": device_type,
|
|
345
|
+
"from_": from_,
|
|
346
|
+
"limit": limit,
|
|
347
|
+
"os_name": os_name,
|
|
348
|
+
"page_origin": page_origin,
|
|
349
|
+
"page_path": page_path,
|
|
350
|
+
"playback_rate": playback_rate,
|
|
351
|
+
"subtitle_language": subtitle_language,
|
|
352
|
+
"to": to,
|
|
353
|
+
"user_id": user_id,
|
|
354
|
+
"video_id": video_id,
|
|
355
|
+
"video_title": video_title,
|
|
356
|
+
"view_id": view_id,
|
|
357
|
+
"viewer_id": viewer_id,
|
|
358
|
+
},
|
|
359
|
+
error_list_params.ErrorListParams,
|
|
360
|
+
),
|
|
361
|
+
security={"secret_key": True},
|
|
362
|
+
),
|
|
363
|
+
model=ErrorGroup,
|
|
364
|
+
)
|
|
365
|
+
|
|
366
|
+
|
|
367
|
+
class ErrorsResourceWithRawResponse:
|
|
368
|
+
def __init__(self, errors: ErrorsResource) -> None:
|
|
369
|
+
self._errors = errors
|
|
370
|
+
|
|
371
|
+
self.list = to_raw_response_wrapper(
|
|
372
|
+
errors.list,
|
|
373
|
+
)
|
|
374
|
+
|
|
375
|
+
|
|
376
|
+
class AsyncErrorsResourceWithRawResponse:
|
|
377
|
+
def __init__(self, errors: AsyncErrorsResource) -> None:
|
|
378
|
+
self._errors = errors
|
|
379
|
+
|
|
380
|
+
self.list = async_to_raw_response_wrapper(
|
|
381
|
+
errors.list,
|
|
382
|
+
)
|
|
383
|
+
|
|
384
|
+
|
|
385
|
+
class ErrorsResourceWithStreamingResponse:
|
|
386
|
+
def __init__(self, errors: ErrorsResource) -> None:
|
|
387
|
+
self._errors = errors
|
|
388
|
+
|
|
389
|
+
self.list = to_streamed_response_wrapper(
|
|
390
|
+
errors.list,
|
|
391
|
+
)
|
|
392
|
+
|
|
393
|
+
|
|
394
|
+
class AsyncErrorsResourceWithStreamingResponse:
|
|
395
|
+
def __init__(self, errors: AsyncErrorsResource) -> None:
|
|
396
|
+
self._errors = errors
|
|
397
|
+
|
|
398
|
+
self.list = async_to_streamed_response_wrapper(
|
|
399
|
+
errors.list,
|
|
400
|
+
)
|