mux-python 3.10.0__py3-none-any.whl → 3.11.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.
mux_python/__init__.py CHANGED
@@ -15,7 +15,7 @@
15
15
 
16
16
  from __future__ import absolute_import
17
17
 
18
- __version__ = "3.10.0"
18
+ __version__ = "3.11.0"
19
19
 
20
20
  # import apis into sdk package
21
21
  from mux_python.api.assets_api import AssetsApi
@@ -51,6 +51,7 @@ from mux_python.exceptions import ApiException
51
51
  from mux_python.models.abridged_video_view import AbridgedVideoView
52
52
  from mux_python.models.asset import Asset
53
53
  from mux_python.models.asset_errors import AssetErrors
54
+ from mux_python.models.asset_generated_subtitle_settings import AssetGeneratedSubtitleSettings
54
55
  from mux_python.models.asset_master import AssetMaster
55
56
  from mux_python.models.asset_non_standard_input_reasons import AssetNonStandardInputReasons
56
57
  from mux_python.models.asset_recording_times import AssetRecordingTimes
@@ -92,6 +93,7 @@ from mux_python.models.get_asset_playback_id_response import GetAssetPlaybackIDR
92
93
  from mux_python.models.get_live_stream_playback_id_response import GetLiveStreamPlaybackIDResponse
93
94
  from mux_python.models.get_metric_timeseries_data_response import GetMetricTimeseriesDataResponse
94
95
  from mux_python.models.get_monitoring_breakdown_response import GetMonitoringBreakdownResponse
96
+ from mux_python.models.get_monitoring_breakdown_timeseries_response import GetMonitoringBreakdownTimeseriesResponse
95
97
  from mux_python.models.get_monitoring_histogram_timeseries_response import GetMonitoringHistogramTimeseriesResponse
96
98
  from mux_python.models.get_monitoring_histogram_timeseries_response_meta import GetMonitoringHistogramTimeseriesResponseMeta
97
99
  from mux_python.models.get_monitoring_timeseries_response import GetMonitoringTimeseriesResponse
@@ -144,6 +146,8 @@ from mux_python.models.live_stream_generated_subtitle_settings import LiveStream
144
146
  from mux_python.models.live_stream_response import LiveStreamResponse
145
147
  from mux_python.models.live_stream_status import LiveStreamStatus
146
148
  from mux_python.models.metric import Metric
149
+ from mux_python.models.monitoring_breakdown_timeseries_datapoint import MonitoringBreakdownTimeseriesDatapoint
150
+ from mux_python.models.monitoring_breakdown_timeseries_values import MonitoringBreakdownTimeseriesValues
147
151
  from mux_python.models.monitoring_breakdown_value import MonitoringBreakdownValue
148
152
  from mux_python.models.monitoring_histogram_timeseries_bucket import MonitoringHistogramTimeseriesBucket
149
153
  from mux_python.models.monitoring_histogram_timeseries_bucket_values import MonitoringHistogramTimeseriesBucketValues
@@ -329,7 +329,7 @@ class AssetsApi(object):
329
329
  def create_asset_track(self, asset_id, create_track_request, **kwargs): # noqa: E501
330
330
  """Create an asset track # noqa: E501
331
331
 
332
- Adds an asset track (for example, subtitles) to an asset. # noqa: E501
332
+ Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. # noqa: E501
333
333
  This method makes a synchronous HTTP request by default. To make an
334
334
  asynchronous HTTP request, please pass async_req=True
335
335
 
@@ -361,7 +361,7 @@ class AssetsApi(object):
361
361
  def create_asset_track_with_http_info(self, asset_id, create_track_request, **kwargs): # noqa: E501
362
362
  """Create an asset track # noqa: E501
363
363
 
364
- Adds an asset track (for example, subtitles) to an asset. # noqa: E501
364
+ Adds an asset track (for example, subtitles, or an alternate audio track) to an asset. # noqa: E501
365
365
  This method makes a synchronous HTTP request by default. To make an
366
366
  asynchronous HTTP request, please pass async_req=True
367
367
 
@@ -57,7 +57,7 @@ class MetricsApi(object):
57
57
  :type measurement: str
58
58
  :param order_direction: Sort order.
59
59
  :type order_direction: str
60
- :param group_by: Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of 6 hours or less, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
60
+ :param group_by: Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
61
61
  :type group_by: str
62
62
  :param async_req: Whether to execute the request asynchronously.
63
63
  :type async_req: bool, optional
@@ -97,7 +97,7 @@ class MetricsApi(object):
97
97
  :type measurement: str
98
98
  :param order_direction: Sort order.
99
99
  :type order_direction: str
100
- :param group_by: Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of 6 hours or less, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
100
+ :param group_by: Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the timeframe. For timeframes of less than 90 minutes, the default granularity is `minute`. Between 90 minutes and 6 hours, the default granularity is `ten_minutes`. Between 6 hours and 15 days inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 days is `day`. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
101
101
  :type group_by: str
102
102
  :param async_req: Whether to execute the request asynchronously.
103
103
  :type async_req: bool, optional
@@ -53,7 +53,7 @@ class MonitoringApi(object):
53
53
  :type dimension: str
54
54
  :param timestamp: Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
55
55
  :type timestamp: int
56
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
56
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
57
57
  :type filters: list[str]
58
58
  :param order_by: Value to order the results by
59
59
  :type order_by: str
@@ -93,7 +93,7 @@ class MonitoringApi(object):
93
93
  :type dimension: str
94
94
  :param timestamp: Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
95
95
  :type timestamp: int
96
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
96
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
97
97
  :type filters: list[str]
98
98
  :param order_by: Value to order the results by
99
99
  :type order_by: str
@@ -208,6 +208,185 @@ class MonitoringApi(object):
208
208
  collection_formats=collection_formats,
209
209
  _request_auth=local_var_params.get('_request_auth'))
210
210
 
211
+ def get_monitoring_breakdown_timeseries(self, monitoring_metric_id, **kwargs): # noqa: E501
212
+ """Get Monitoring Breakdown Timeseries # noqa: E501
213
+
214
+ Gets timeseries of breakdown information for a specific dimension and metric. Each datapoint in the response represents 5 seconds worth of data. # noqa: E501
215
+ This method makes a synchronous HTTP request by default. To make an
216
+ asynchronous HTTP request, please pass async_req=True
217
+
218
+ >>> thread = api.get_monitoring_breakdown_timeseries(monitoring_metric_id, async_req=True)
219
+ >>> result = thread.get()
220
+
221
+ :param monitoring_metric_id: ID of the Monitoring Metric (required)
222
+ :type monitoring_metric_id: str
223
+ :param dimension: Dimension the specified value belongs to
224
+ :type dimension: str
225
+ :param timeframe: Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). The default for this is the last 60 seconds of available data. Timeframes larger than 10 minutes are not allowed, and must be within the last 24 hours.
226
+ :type timeframe: list[str]
227
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
228
+ :type filters: list[str]
229
+ :param limit: Number of items to include in each timestamp's `value` list. The default is 10, and the maximum is 100.
230
+ :type limit: int
231
+ :param order_by: Value to order the results by
232
+ :type order_by: str
233
+ :param order_direction: Sort order.
234
+ :type order_direction: str
235
+ :param async_req: Whether to execute the request asynchronously.
236
+ :type async_req: bool, optional
237
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
238
+ be returned without reading/decoding response
239
+ data. Default is True.
240
+ :type _preload_content: bool, optional
241
+ :param _request_timeout: timeout setting for this request. If one
242
+ number provided, it will be total request
243
+ timeout. It can also be a pair (tuple) of
244
+ (connection, read) timeouts.
245
+ :return: Returns the result object.
246
+ If the method is called asynchronously,
247
+ returns the request thread.
248
+ :rtype: GetMonitoringBreakdownTimeseriesResponse
249
+ """
250
+ kwargs['_return_http_data_only'] = True
251
+ return self.get_monitoring_breakdown_timeseries_with_http_info(monitoring_metric_id, **kwargs) # noqa: E501
252
+
253
+ def get_monitoring_breakdown_timeseries_with_http_info(self, monitoring_metric_id, **kwargs): # noqa: E501
254
+ """Get Monitoring Breakdown Timeseries # noqa: E501
255
+
256
+ Gets timeseries of breakdown information for a specific dimension and metric. Each datapoint in the response represents 5 seconds worth of data. # noqa: E501
257
+ This method makes a synchronous HTTP request by default. To make an
258
+ asynchronous HTTP request, please pass async_req=True
259
+
260
+ >>> thread = api.get_monitoring_breakdown_timeseries_with_http_info(monitoring_metric_id, async_req=True)
261
+ >>> result = thread.get()
262
+
263
+ :param monitoring_metric_id: ID of the Monitoring Metric (required)
264
+ :type monitoring_metric_id: str
265
+ :param dimension: Dimension the specified value belongs to
266
+ :type dimension: str
267
+ :param timeframe: Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). The default for this is the last 60 seconds of available data. Timeframes larger than 10 minutes are not allowed, and must be within the last 24 hours.
268
+ :type timeframe: list[str]
269
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
270
+ :type filters: list[str]
271
+ :param limit: Number of items to include in each timestamp's `value` list. The default is 10, and the maximum is 100.
272
+ :type limit: int
273
+ :param order_by: Value to order the results by
274
+ :type order_by: str
275
+ :param order_direction: Sort order.
276
+ :type order_direction: str
277
+ :param async_req: Whether to execute the request asynchronously.
278
+ :type async_req: bool, optional
279
+ :param _return_http_data_only: response data without head status code
280
+ and headers
281
+ :type _return_http_data_only: bool, optional
282
+ :param _preload_content: if False, the urllib3.HTTPResponse object will
283
+ be returned without reading/decoding response
284
+ data. Default is True.
285
+ :type _preload_content: bool, optional
286
+ :param _request_timeout: timeout setting for this request. If one
287
+ number provided, it will be total request
288
+ timeout. It can also be a pair (tuple) of
289
+ (connection, read) timeouts.
290
+ :param _request_auth: set to override the auth_settings for an a single
291
+ request; this effectively ignores the authentication
292
+ in the spec for a single request.
293
+ :type _request_auth: dict, optional
294
+ :return: Returns the result object.
295
+ If the method is called asynchronously,
296
+ returns the request thread.
297
+ :rtype: tuple(GetMonitoringBreakdownTimeseriesResponse, status_code(int), headers(HTTPHeaderDict))
298
+ """
299
+
300
+ local_var_params = locals()
301
+
302
+ all_params = [
303
+ 'monitoring_metric_id',
304
+ 'dimension',
305
+ 'timeframe',
306
+ 'filters',
307
+ 'limit',
308
+ 'order_by',
309
+ 'order_direction'
310
+ ]
311
+ all_params.extend(
312
+ [
313
+ 'async_req',
314
+ '_return_http_data_only',
315
+ '_preload_content',
316
+ '_request_timeout',
317
+ '_request_auth'
318
+ ]
319
+ )
320
+
321
+ for key, val in six.iteritems(local_var_params['kwargs']):
322
+ if key not in all_params:
323
+ raise ApiTypeError(
324
+ "Got an unexpected keyword argument '%s'"
325
+ " to method get_monitoring_breakdown_timeseries" % key
326
+ )
327
+ local_var_params[key] = val
328
+ del local_var_params['kwargs']
329
+ # verify the required parameter 'monitoring_metric_id' is set
330
+ if self.api_client.client_side_validation and ('monitoring_metric_id' not in local_var_params or # noqa: E501
331
+ local_var_params['monitoring_metric_id'] is None): # noqa: E501
332
+ raise ApiValueError("Missing the required parameter `monitoring_metric_id` when calling `get_monitoring_breakdown_timeseries`") # noqa: E501
333
+
334
+ collection_formats = {}
335
+
336
+ path_params = {}
337
+ if 'monitoring_metric_id' in local_var_params:
338
+ path_params['MONITORING_METRIC_ID'] = local_var_params['monitoring_metric_id'] # noqa: E501
339
+
340
+ query_params = []
341
+ if 'dimension' in local_var_params and local_var_params['dimension'] is not None: # noqa: E501
342
+ query_params.append(('dimension', local_var_params['dimension'])) # noqa: E501
343
+ if 'timeframe' in local_var_params and local_var_params['timeframe'] is not None: # noqa: E501
344
+ query_params.append(('timeframe[]', local_var_params['timeframe'])) # noqa: E501
345
+ collection_formats['timeframe[]'] = 'multi' # noqa: E501
346
+ if 'filters' in local_var_params and local_var_params['filters'] is not None: # noqa: E501
347
+ query_params.append(('filters[]', local_var_params['filters'])) # noqa: E501
348
+ collection_formats['filters[]'] = 'multi' # noqa: E501
349
+ if 'limit' in local_var_params and local_var_params['limit'] is not None: # noqa: E501
350
+ query_params.append(('limit', local_var_params['limit'])) # noqa: E501
351
+ if 'order_by' in local_var_params and local_var_params['order_by'] is not None: # noqa: E501
352
+ query_params.append(('order_by', local_var_params['order_by'])) # noqa: E501
353
+ if 'order_direction' in local_var_params and local_var_params['order_direction'] is not None: # noqa: E501
354
+ query_params.append(('order_direction', local_var_params['order_direction'])) # noqa: E501
355
+
356
+ header_params = {}
357
+
358
+ form_params = []
359
+ local_var_files = {}
360
+
361
+ body_params = None
362
+ # HTTP header `Accept`
363
+ header_params['Accept'] = self.api_client.select_header_accept(
364
+ ['application/json']) # noqa: E501
365
+
366
+ # Authentication setting
367
+ auth_settings = ['accessToken'] # noqa: E501
368
+
369
+ response_types_map = {
370
+ 200: "GetMonitoringBreakdownTimeseriesResponse",
371
+ }
372
+
373
+ return self.api_client.call_api(
374
+ '/data/v1/monitoring/metrics/{MONITORING_METRIC_ID}/breakdown-timeseries', 'GET',
375
+ path_params,
376
+ query_params,
377
+ header_params,
378
+ body=body_params,
379
+ post_params=form_params,
380
+ files=local_var_files,
381
+ response_types_map=response_types_map,
382
+ auth_settings=auth_settings,
383
+ async_req=local_var_params.get('async_req'),
384
+ _return_http_data_only=local_var_params.get('_return_http_data_only'), # noqa: E501
385
+ _preload_content=local_var_params.get('_preload_content', True),
386
+ _request_timeout=local_var_params.get('_request_timeout'),
387
+ collection_formats=collection_formats,
388
+ _request_auth=local_var_params.get('_request_auth'))
389
+
211
390
  def get_monitoring_histogram_timeseries(self, monitoring_histogram_metric_id, **kwargs): # noqa: E501
212
391
  """Get Monitoring Histogram Timeseries # noqa: E501
213
392
 
@@ -220,7 +399,7 @@ class MonitoringApi(object):
220
399
 
221
400
  :param monitoring_histogram_metric_id: ID of the Monitoring Histogram Metric (required)
222
401
  :type monitoring_histogram_metric_id: str
223
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
402
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
224
403
  :type filters: list[str]
225
404
  :param async_req: Whether to execute the request asynchronously.
226
405
  :type async_req: bool, optional
@@ -252,7 +431,7 @@ class MonitoringApi(object):
252
431
 
253
432
  :param monitoring_histogram_metric_id: ID of the Monitoring Histogram Metric (required)
254
433
  :type monitoring_histogram_metric_id: str
255
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
434
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
256
435
  :type filters: list[str]
257
436
  :param async_req: Whether to execute the request asynchronously.
258
437
  :type async_req: bool, optional
@@ -363,7 +542,7 @@ class MonitoringApi(object):
363
542
 
364
543
  :param monitoring_metric_id: ID of the Monitoring Metric (required)
365
544
  :type monitoring_metric_id: str
366
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
545
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
367
546
  :type filters: list[str]
368
547
  :param timestamp: Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago.
369
548
  :type timestamp: int
@@ -397,7 +576,7 @@ class MonitoringApi(object):
397
576
 
398
577
  :param monitoring_metric_id: ID of the Monitoring Metric (required)
399
578
  :type monitoring_metric_id: str
400
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
579
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
401
580
  :type filters: list[str]
402
581
  :param timestamp: Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago.
403
582
  :type timestamp: int
@@ -53,7 +53,7 @@ class RealTimeApi(object):
53
53
  :type dimension: str
54
54
  :param timestamp: Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
55
55
  :type timestamp: int
56
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
56
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
57
57
  :type filters: list[str]
58
58
  :param order_by: Value to order the results by
59
59
  :type order_by: str
@@ -93,7 +93,7 @@ class RealTimeApi(object):
93
93
  :type dimension: str
94
94
  :param timestamp: Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
95
95
  :type timestamp: int
96
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
96
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
97
97
  :type filters: list[str]
98
98
  :param order_by: Value to order the results by
99
99
  :type order_by: str
@@ -220,7 +220,7 @@ class RealTimeApi(object):
220
220
 
221
221
  :param realtime_histogram_metric_id: ID of the Realtime Histogram Metric (required)
222
222
  :type realtime_histogram_metric_id: str
223
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
223
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
224
224
  :type filters: list[str]
225
225
  :param async_req: Whether to execute the request asynchronously.
226
226
  :type async_req: bool, optional
@@ -252,7 +252,7 @@ class RealTimeApi(object):
252
252
 
253
253
  :param realtime_histogram_metric_id: ID of the Realtime Histogram Metric (required)
254
254
  :type realtime_histogram_metric_id: str
255
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
255
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
256
256
  :type filters: list[str]
257
257
  :param async_req: Whether to execute the request asynchronously.
258
258
  :type async_req: bool, optional
@@ -363,7 +363,7 @@ class RealTimeApi(object):
363
363
 
364
364
  :param realtime_metric_id: ID of the Realtime Metric (required)
365
365
  :type realtime_metric_id: str
366
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
366
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
367
367
  :type filters: list[str]
368
368
  :param timestamp: Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago.
369
369
  :type timestamp: int
@@ -397,7 +397,7 @@ class RealTimeApi(object):
397
397
 
398
398
  :param realtime_metric_id: ID of the Realtime Metric (required)
399
399
  :type realtime_metric_id: str
400
- :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
400
+ :param filters: Limit the results to rows that match conditions from provided key:value pairs. Must be provided as an array query string parameter. To exclude rows that match a certain condition, prepend a `!` character to the dimension. Possible filter names are the same as returned by the List Monitoring Dimensions endpoint. Example: * `filters[]=operating_system:windows&filters[]=!country:US`
401
401
  :type filters: list[str]
402
402
  :param timestamp: Timestamp to use as the start of the timeseries data. This value must be provided as a unix timestamp. Defaults to 30 minutes ago.
403
403
  :type timestamp: int
mux_python/api_client.py CHANGED
@@ -79,7 +79,7 @@ class ApiClient(object):
79
79
  self.default_headers[header_name] = header_value
80
80
  self.cookie = cookie
81
81
  # Set default User-Agent.
82
- self.user_agent = 'OpenAPI-Generator/3.10.0/python'
82
+ self.user_agent = 'OpenAPI-Generator/3.11.0/python'
83
83
  self.client_side_validation = configuration.client_side_validation
84
84
 
85
85
  def __enter__(self):
@@ -406,7 +406,7 @@ conf = mux_python.Configuration(
406
406
  "OS: {env}\n"\
407
407
  "Python Version: {pyversion}\n"\
408
408
  "Version of the API: v1\n"\
409
- "SDK Package Version: 3.10.0".\
409
+ "SDK Package Version: 3.11.0".\
410
410
  format(env=sys.platform, pyversion=sys.version)
411
411
 
412
412
  def get_host_settings(self):
@@ -18,6 +18,7 @@ from __future__ import absolute_import
18
18
  from mux_python.models.abridged_video_view import AbridgedVideoView
19
19
  from mux_python.models.asset import Asset
20
20
  from mux_python.models.asset_errors import AssetErrors
21
+ from mux_python.models.asset_generated_subtitle_settings import AssetGeneratedSubtitleSettings
21
22
  from mux_python.models.asset_master import AssetMaster
22
23
  from mux_python.models.asset_non_standard_input_reasons import AssetNonStandardInputReasons
23
24
  from mux_python.models.asset_recording_times import AssetRecordingTimes
@@ -59,6 +60,7 @@ from mux_python.models.get_asset_playback_id_response import GetAssetPlaybackIDR
59
60
  from mux_python.models.get_live_stream_playback_id_response import GetLiveStreamPlaybackIDResponse
60
61
  from mux_python.models.get_metric_timeseries_data_response import GetMetricTimeseriesDataResponse
61
62
  from mux_python.models.get_monitoring_breakdown_response import GetMonitoringBreakdownResponse
63
+ from mux_python.models.get_monitoring_breakdown_timeseries_response import GetMonitoringBreakdownTimeseriesResponse
62
64
  from mux_python.models.get_monitoring_histogram_timeseries_response import GetMonitoringHistogramTimeseriesResponse
63
65
  from mux_python.models.get_monitoring_histogram_timeseries_response_meta import GetMonitoringHistogramTimeseriesResponseMeta
64
66
  from mux_python.models.get_monitoring_timeseries_response import GetMonitoringTimeseriesResponse
@@ -111,6 +113,8 @@ from mux_python.models.live_stream_generated_subtitle_settings import LiveStream
111
113
  from mux_python.models.live_stream_response import LiveStreamResponse
112
114
  from mux_python.models.live_stream_status import LiveStreamStatus
113
115
  from mux_python.models.metric import Metric
116
+ from mux_python.models.monitoring_breakdown_timeseries_datapoint import MonitoringBreakdownTimeseriesDatapoint
117
+ from mux_python.models.monitoring_breakdown_timeseries_values import MonitoringBreakdownTimeseriesValues
114
118
  from mux_python.models.monitoring_breakdown_value import MonitoringBreakdownValue
115
119
  from mux_python.models.monitoring_histogram_timeseries_bucket import MonitoringHistogramTimeseriesBucket
116
120
  from mux_python.models.monitoring_histogram_timeseries_bucket_values import MonitoringHistogramTimeseriesBucketValues
@@ -42,6 +42,9 @@ class Asset(object):
42
42
  'status': 'str',
43
43
  'duration': 'float',
44
44
  'max_stored_resolution': 'str',
45
+ 'resolution_tier': 'str',
46
+ 'max_resolution_tier': 'str',
47
+ 'encoding_tier': 'str',
45
48
  'max_stored_frame_rate': 'float',
46
49
  'aspect_ratio': 'str',
47
50
  'playback_ids': 'list[PlaybackID]',
@@ -69,6 +72,9 @@ class Asset(object):
69
72
  'status': 'status',
70
73
  'duration': 'duration',
71
74
  'max_stored_resolution': 'max_stored_resolution',
75
+ 'resolution_tier': 'resolution_tier',
76
+ 'max_resolution_tier': 'max_resolution_tier',
77
+ 'encoding_tier': 'encoding_tier',
72
78
  'max_stored_frame_rate': 'max_stored_frame_rate',
73
79
  'aspect_ratio': 'aspect_ratio',
74
80
  'playback_ids': 'playback_ids',
@@ -90,7 +96,7 @@ class Asset(object):
90
96
  'test': 'test'
91
97
  }
92
98
 
93
- def __init__(self, id=None, created_at=None, status=None, duration=None, max_stored_resolution=None, max_stored_frame_rate=None, aspect_ratio=None, playback_ids=None, tracks=None, errors=None, per_title_encode=None, upload_id=None, is_live=None, passthrough=None, live_stream_id=None, master=None, master_access='none', mp4_support='none', source_asset_id=None, normalize_audio=False, static_renditions=None, recording_times=None, non_standard_input_reasons=None, test=None, local_vars_configuration=None): # noqa: E501
99
+ def __init__(self, id=None, created_at=None, status=None, duration=None, max_stored_resolution=None, resolution_tier=None, max_resolution_tier=None, encoding_tier=None, max_stored_frame_rate=None, aspect_ratio=None, playback_ids=None, tracks=None, errors=None, per_title_encode=None, upload_id=None, is_live=None, passthrough=None, live_stream_id=None, master=None, master_access='none', mp4_support='none', source_asset_id=None, normalize_audio=False, static_renditions=None, recording_times=None, non_standard_input_reasons=None, test=None, local_vars_configuration=None): # noqa: E501
94
100
  """Asset - a model defined in OpenAPI""" # noqa: E501
95
101
  if local_vars_configuration is None:
96
102
  local_vars_configuration = Configuration.get_default_copy()
@@ -101,6 +107,9 @@ class Asset(object):
101
107
  self._status = None
102
108
  self._duration = None
103
109
  self._max_stored_resolution = None
110
+ self._resolution_tier = None
111
+ self._max_resolution_tier = None
112
+ self._encoding_tier = None
104
113
  self._max_stored_frame_rate = None
105
114
  self._aspect_ratio = None
106
115
  self._playback_ids = None
@@ -132,6 +141,12 @@ class Asset(object):
132
141
  self.duration = duration
133
142
  if max_stored_resolution is not None:
134
143
  self.max_stored_resolution = max_stored_resolution
144
+ if resolution_tier is not None:
145
+ self.resolution_tier = resolution_tier
146
+ if max_resolution_tier is not None:
147
+ self.max_resolution_tier = max_resolution_tier
148
+ if encoding_tier is not None:
149
+ self.encoding_tier = encoding_tier
135
150
  if max_stored_frame_rate is not None:
136
151
  self.max_stored_frame_rate = max_stored_frame_rate
137
152
  if aspect_ratio is not None:
@@ -273,7 +288,7 @@ class Asset(object):
273
288
  def max_stored_resolution(self):
274
289
  """Gets the max_stored_resolution of this Asset. # noqa: E501
275
290
 
276
- The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. # noqa: E501
291
+ This field is deprecated. Please use `resolution_tier` instead. The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. # noqa: E501
277
292
 
278
293
  :return: The max_stored_resolution of this Asset. # noqa: E501
279
294
  :rtype: str
@@ -284,7 +299,7 @@ class Asset(object):
284
299
  def max_stored_resolution(self, max_stored_resolution):
285
300
  """Sets the max_stored_resolution of this Asset.
286
301
 
287
- The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. # noqa: E501
302
+ This field is deprecated. Please use `resolution_tier` instead. The maximum resolution that has been stored for the asset. The asset may be delivered at lower resolutions depending on the device and bandwidth, however it cannot be delivered at a higher value than is stored. # noqa: E501
288
303
 
289
304
  :param max_stored_resolution: The max_stored_resolution of this Asset. # noqa: E501
290
305
  :type max_stored_resolution: str
@@ -298,6 +313,93 @@ class Asset(object):
298
313
 
299
314
  self._max_stored_resolution = max_stored_resolution
300
315
 
316
+ @property
317
+ def resolution_tier(self):
318
+ """Gets the resolution_tier of this Asset. # noqa: E501
319
+
320
+ The resolution tier that the asset was ingested at, affecting billing for ingest & storage. This field also represents the highest resolution tier that the content can be delivered at, however the actual resolution may be lower depending on the device, bandwidth, and exact resolution of the uploaded asset. # noqa: E501
321
+
322
+ :return: The resolution_tier of this Asset. # noqa: E501
323
+ :rtype: str
324
+ """
325
+ return self._resolution_tier
326
+
327
+ @resolution_tier.setter
328
+ def resolution_tier(self, resolution_tier):
329
+ """Sets the resolution_tier of this Asset.
330
+
331
+ The resolution tier that the asset was ingested at, affecting billing for ingest & storage. This field also represents the highest resolution tier that the content can be delivered at, however the actual resolution may be lower depending on the device, bandwidth, and exact resolution of the uploaded asset. # noqa: E501
332
+
333
+ :param resolution_tier: The resolution_tier of this Asset. # noqa: E501
334
+ :type resolution_tier: str
335
+ """
336
+ allowed_values = ["audio-only", "720p", "1080p", "1440p", "2160p"] # noqa: E501
337
+ if self.local_vars_configuration.client_side_validation and resolution_tier not in allowed_values: # noqa: E501
338
+ raise ValueError(
339
+ "Invalid value for `resolution_tier` ({0}), must be one of {1}" # noqa: E501
340
+ .format(resolution_tier, allowed_values)
341
+ )
342
+
343
+ self._resolution_tier = resolution_tier
344
+
345
+ @property
346
+ def max_resolution_tier(self):
347
+ """Gets the max_resolution_tier of this Asset. # noqa: E501
348
+
349
+ Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. # noqa: E501
350
+
351
+ :return: The max_resolution_tier of this Asset. # noqa: E501
352
+ :rtype: str
353
+ """
354
+ return self._max_resolution_tier
355
+
356
+ @max_resolution_tier.setter
357
+ def max_resolution_tier(self, max_resolution_tier):
358
+ """Sets the max_resolution_tier of this Asset.
359
+
360
+ Max resolution tier can be used to control the maximum `resolution_tier` your asset is encoded, stored, and streamed at. If not set, this defaults to `1080p`. # noqa: E501
361
+
362
+ :param max_resolution_tier: The max_resolution_tier of this Asset. # noqa: E501
363
+ :type max_resolution_tier: str
364
+ """
365
+ allowed_values = ["1080p", "1440p", "2160p"] # noqa: E501
366
+ if self.local_vars_configuration.client_side_validation and max_resolution_tier not in allowed_values: # noqa: E501
367
+ raise ValueError(
368
+ "Invalid value for `max_resolution_tier` ({0}), must be one of {1}" # noqa: E501
369
+ .format(max_resolution_tier, allowed_values)
370
+ )
371
+
372
+ self._max_resolution_tier = max_resolution_tier
373
+
374
+ @property
375
+ def encoding_tier(self):
376
+ """Gets the encoding_tier of this Asset. # noqa: E501
377
+
378
+ The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. # noqa: E501
379
+
380
+ :return: The encoding_tier of this Asset. # noqa: E501
381
+ :rtype: str
382
+ """
383
+ return self._encoding_tier
384
+
385
+ @encoding_tier.setter
386
+ def encoding_tier(self, encoding_tier):
387
+ """Sets the encoding_tier of this Asset.
388
+
389
+ The encoding tier informs the cost, quality, and available platform features for the asset. By default the `smart` encoding tier is used. # noqa: E501
390
+
391
+ :param encoding_tier: The encoding_tier of this Asset. # noqa: E501
392
+ :type encoding_tier: str
393
+ """
394
+ allowed_values = ["smart", "baseline"] # noqa: E501
395
+ if self.local_vars_configuration.client_side_validation and encoding_tier not in allowed_values: # noqa: E501
396
+ raise ValueError(
397
+ "Invalid value for `encoding_tier` ({0}), must be one of {1}" # noqa: E501
398
+ .format(encoding_tier, allowed_values)
399
+ )
400
+
401
+ self._encoding_tier = encoding_tier
402
+
301
403
  @property
302
404
  def max_stored_frame_rate(self):
303
405
  """Gets the max_stored_frame_rate of this Asset. # noqa: E501