mux_ruby 1.5.0 → 1.9.0
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/Gemfile.lock +2 -2
- data/README.md +4 -1
- data/docs/Asset.md +15 -12
- data/docs/AssetErrors.md +2 -2
- data/docs/AssetNonStandardInputReasons.md +16 -0
- data/docs/AssetRecordingTimes.md +9 -0
- data/docs/AssetStaticRenditions.md +1 -1
- data/docs/AssetsApi.md +4 -0
- data/docs/CreateAssetRequest.md +6 -6
- data/docs/CreateLiveStreamRequest.md +1 -0
- data/docs/CreateTrackRequest.md +4 -4
- data/docs/DimensionValue.md +9 -0
- data/docs/DimensionsApi.md +118 -0
- data/docs/DisableLiveStreamResponse.md +8 -0
- data/docs/EnableLiveStreamResponse.md +8 -0
- data/docs/FiltersApi.md +2 -2
- data/docs/GetAssetOrLiveStreamIdResponse.md +8 -0
- data/docs/GetAssetOrLiveStreamIdResponseData.md +10 -0
- data/docs/GetAssetOrLiveStreamIdResponseDataObject.md +9 -0
- data/docs/GetRealTimeBreakdownResponse.md +10 -0
- data/docs/GetRealTimeHistogramTimeseriesResponse.md +11 -0
- data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +8 -0
- data/docs/GetRealTimeTimeseriesResponse.md +10 -0
- data/docs/Incident.md +28 -0
- data/docs/IncidentBreakdown.md +10 -0
- data/docs/IncidentNotification.md +10 -0
- data/docs/IncidentNotificationRule.md +12 -0
- data/docs/IncidentResponse.md +9 -0
- data/docs/IncidentsApi.md +186 -0
- data/docs/InputSettings.md +9 -7
- data/docs/InputSettingsOverlaySettings.md +7 -7
- data/docs/ListDimensionValuesResponse.md +10 -0
- data/docs/ListDimensionsResponse.md +10 -0
- data/docs/ListIncidentsResponse.md +10 -0
- data/docs/ListRealTimeDimensionsResponse.md +10 -0
- data/docs/ListRealTimeDimensionsResponseData.md +9 -0
- data/docs/ListRealTimeMetricsResponse.md +10 -0
- data/docs/ListRelatedIncidentsResponse.md +10 -0
- data/docs/LiveStream.md +1 -1
- data/docs/LiveStreamsApi.md +104 -0
- data/docs/NotificationRule.md +10 -0
- data/docs/PlaybackID.md +1 -1
- data/docs/PlaybackIDApi.md +60 -0
- data/docs/RealTimeApi.md +280 -0
- data/docs/RealTimeBreakdownValue.md +12 -0
- data/docs/RealTimeHistogramTimeseriesBucket.md +9 -0
- data/docs/RealTimeHistogramTimeseriesBucketValues.md +9 -0
- data/docs/RealTimeHistogramTimeseriesDatapoint.md +14 -0
- data/docs/RealTimeTimeseriesDatapoint.md +10 -0
- data/docs/Track.md +13 -13
- data/docs/VideoView.md +16 -14
- data/examples/data/exercise-dimensions.rb +29 -0
- data/examples/data/exercise-incidents.rb +29 -0
- data/examples/data/exercise-realtime.rb +60 -0
- data/examples/video/exercise-assets.rb +21 -0
- data/examples/video/exercise-live-streams.rb +30 -0
- data/lib/mux_ruby.rb +34 -0
- data/lib/mux_ruby/api/assets_api.rb +4 -0
- data/lib/mux_ruby/api/dimensions_api.rb +128 -0
- data/lib/mux_ruby/api/filters_api.rb +4 -4
- data/lib/mux_ruby/api/incidents_api.rb +217 -0
- data/lib/mux_ruby/api/live_streams_api.rb +106 -0
- data/lib/mux_ruby/api/playback_id_api.rb +69 -0
- data/lib/mux_ruby/api/real_time_api.rb +311 -0
- data/lib/mux_ruby/api_client.rb +13 -13
- data/lib/mux_ruby/configuration.rb +1 -4
- data/lib/mux_ruby/models/asset.rb +70 -3
- data/lib/mux_ruby/models/asset_errors.rb +2 -0
- data/lib/mux_ruby/models/asset_master.rb +35 -0
- data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +335 -0
- data/lib/mux_ruby/models/asset_recording_times.rb +195 -0
- data/lib/mux_ruby/models/asset_static_renditions.rb +2 -2
- data/lib/mux_ruby/models/asset_static_renditions_files.rb +6 -6
- data/lib/mux_ruby/models/create_asset_request.rb +8 -2
- data/lib/mux_ruby/models/create_live_stream_request.rb +15 -4
- data/lib/mux_ruby/models/create_track_request.rb +6 -2
- data/lib/mux_ruby/models/dimension_value.rb +193 -0
- data/lib/mux_ruby/models/disable_live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/enable_live_stream_response.rb +184 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response.rb +184 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb +203 -0
- data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb +230 -0
- data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +206 -0
- data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +215 -0
- data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +186 -0
- data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +206 -0
- data/lib/mux_ruby/models/incident.rb +370 -0
- data/lib/mux_ruby/models/incident_breakdown.rb +202 -0
- data/lib/mux_ruby/models/incident_notification.rb +202 -0
- data/lib/mux_ruby/models/incident_notification_rule.rb +222 -0
- data/lib/mux_ruby/models/incident_response.rb +195 -0
- data/lib/mux_ruby/models/input_settings.rb +31 -4
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +10 -2
- data/lib/mux_ruby/models/list_dimension_values_response.rb +206 -0
- data/lib/mux_ruby/models/list_dimensions_response.rb +204 -0
- data/lib/mux_ruby/models/list_incidents_response.rb +206 -0
- data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +206 -0
- data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +193 -0
- data/lib/mux_ruby/models/list_real_time_metrics_response.rb +206 -0
- data/lib/mux_ruby/models/list_related_incidents_response.rb +206 -0
- data/lib/mux_ruby/models/live_stream.rb +1 -1
- data/lib/mux_ruby/models/notification_rule.rb +202 -0
- data/lib/mux_ruby/models/playback_id.rb +1 -0
- data/lib/mux_ruby/models/real_time_breakdown_value.rb +220 -0
- data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +193 -0
- data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +193 -0
- data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +240 -0
- data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +202 -0
- data/lib/mux_ruby/models/simulcast_target.rb +1 -1
- data/lib/mux_ruby/models/track.rb +27 -2
- data/lib/mux_ruby/models/update_asset_master_access_request.rb +1 -1
- data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +1 -1
- data/lib/mux_ruby/models/upload.rb +1 -1
- data/lib/mux_ruby/models/video_view.rb +36 -18
- data/lib/mux_ruby/version.rb +1 -1
- data/mux_ruby.gemspec +2 -0
- data/spec/api/assets_api_spec.rb +2 -0
- data/spec/api/dimensions_api_spec.rb +55 -0
- data/spec/api/filters_api_spec.rb +2 -2
- data/spec/api/incidents_api_spec.rb +73 -0
- data/spec/api/live_streams_api_spec.rb +24 -0
- data/spec/api/playback_id_api_spec.rb +40 -0
- data/spec/api/real_time_api_spec.rb +93 -0
- data/spec/models/asset_master_spec.rb +4 -0
- data/spec/models/asset_non_standard_input_reasons_spec.rb +98 -0
- data/spec/models/asset_recording_times_spec.rb +40 -0
- data/spec/models/asset_spec.rb +26 -0
- data/spec/models/asset_static_renditions_files_spec.rb +2 -2
- data/spec/models/create_live_stream_request_spec.rb +6 -0
- data/spec/models/dimension_value_spec.rb +40 -0
- data/spec/models/disable_live_stream_response_spec.rb +34 -0
- data/spec/models/enable_live_stream_response_spec.rb +34 -0
- data/spec/models/get_asset_or_live_stream_id_response_data_object_spec.rb +44 -0
- data/spec/models/get_asset_or_live_stream_id_response_data_spec.rb +46 -0
- data/spec/models/get_asset_or_live_stream_id_response_spec.rb +34 -0
- data/spec/models/get_real_time_breakdown_response_spec.rb +46 -0
- data/spec/models/get_real_time_histogram_timeseries_response_meta_spec.rb +34 -0
- data/spec/models/get_real_time_histogram_timeseries_response_spec.rb +52 -0
- data/spec/models/get_real_time_timeseries_response_spec.rb +46 -0
- data/spec/models/incident_breakdown_spec.rb +46 -0
- data/spec/models/incident_notification_rule_spec.rb +58 -0
- data/spec/models/incident_notification_spec.rb +46 -0
- data/spec/models/incident_response_spec.rb +40 -0
- data/spec/models/incident_spec.rb +154 -0
- data/spec/models/input_settings_spec.rb +12 -0
- data/spec/models/list_dimension_values_response_spec.rb +46 -0
- data/spec/models/list_dimensions_response_spec.rb +46 -0
- data/spec/models/list_incidents_response_spec.rb +46 -0
- data/spec/models/list_real_time_dimensions_response_data_spec.rb +40 -0
- data/spec/models/list_real_time_dimensions_response_spec.rb +46 -0
- data/spec/models/list_real_time_metrics_response_spec.rb +46 -0
- data/spec/models/list_related_incidents_response_spec.rb +46 -0
- data/spec/models/notification_rule_spec.rb +46 -0
- data/spec/models/real_time_breakdown_value_spec.rb +58 -0
- data/spec/models/real_time_histogram_timeseries_bucket_spec.rb +40 -0
- data/spec/models/real_time_histogram_timeseries_bucket_values_spec.rb +40 -0
- data/spec/models/real_time_histogram_timeseries_datapoint_spec.rb +70 -0
- data/spec/models/real_time_timeseries_datapoint_spec.rb +46 -0
- data/spec/models/track_spec.rb +4 -0
- data/spec/models/video_view_spec.rb +12 -0
- metadata +200 -60
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::NotificationRule
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**value** | **String** | | [optional]
|
7
|
+
**name** | **String** | | [optional]
|
8
|
+
**id** | **String** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/PlaybackID.md
CHANGED
@@ -3,7 +3,7 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**id** | **String** |
|
6
|
+
**id** | **String** | Unique identifier for the PlaybackID | [optional]
|
7
7
|
**policy** | [**PlaybackPolicy**](PlaybackPolicy.md) | | [optional]
|
8
8
|
|
9
9
|
|
@@ -0,0 +1,60 @@
|
|
1
|
+
# MuxRuby::PlaybackIDApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mux.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_asset_or_livestream_id**](PlaybackIDApi.md#get_asset_or_livestream_id) | **GET** /video/v1/playback-ids/{PLAYBACK_ID} | Retrieve an Asset or Live Stream ID
|
8
|
+
|
9
|
+
|
10
|
+
# **get_asset_or_livestream_id**
|
11
|
+
> GetAssetOrLiveStreamIdResponse get_asset_or_livestream_id(playback_id)
|
12
|
+
|
13
|
+
Retrieve an Asset or Live Stream ID
|
14
|
+
|
15
|
+
Retrieves the Identifier of the Asset or Live Stream associated with the Playback ID.
|
16
|
+
|
17
|
+
### Example
|
18
|
+
```ruby
|
19
|
+
# load the gem
|
20
|
+
require 'mux_ruby'
|
21
|
+
# setup authorization
|
22
|
+
MuxRuby.configure do |config|
|
23
|
+
# Configure HTTP basic authorization: accessToken
|
24
|
+
config.username = 'YOUR USERNAME'
|
25
|
+
config.password = 'YOUR PASSWORD'
|
26
|
+
end
|
27
|
+
|
28
|
+
api_instance = MuxRuby::PlaybackIDApi.new
|
29
|
+
playback_id = 'playback_id_example' # String | The live stream's playback ID.
|
30
|
+
|
31
|
+
begin
|
32
|
+
#Retrieve an Asset or Live Stream ID
|
33
|
+
result = api_instance.get_asset_or_livestream_id(playback_id)
|
34
|
+
p result
|
35
|
+
rescue MuxRuby::ApiError => e
|
36
|
+
puts "Exception when calling PlaybackIDApi->get_asset_or_livestream_id: #{e}"
|
37
|
+
end
|
38
|
+
```
|
39
|
+
|
40
|
+
### Parameters
|
41
|
+
|
42
|
+
Name | Type | Description | Notes
|
43
|
+
------------- | ------------- | ------------- | -------------
|
44
|
+
**playback_id** | **String**| The live stream's playback ID. |
|
45
|
+
|
46
|
+
### Return type
|
47
|
+
|
48
|
+
[**GetAssetOrLiveStreamIdResponse**](GetAssetOrLiveStreamIdResponse.md)
|
49
|
+
|
50
|
+
### Authorization
|
51
|
+
|
52
|
+
[accessToken](../README.md#accessToken)
|
53
|
+
|
54
|
+
### HTTP request headers
|
55
|
+
|
56
|
+
- **Content-Type**: Not defined
|
57
|
+
- **Accept**: application/json
|
58
|
+
|
59
|
+
|
60
|
+
|
data/docs/RealTimeApi.md
ADDED
@@ -0,0 +1,280 @@
|
|
1
|
+
# MuxRuby::RealTimeApi
|
2
|
+
|
3
|
+
All URIs are relative to *https://api.mux.com*
|
4
|
+
|
5
|
+
Method | HTTP request | Description
|
6
|
+
------------- | ------------- | -------------
|
7
|
+
[**get_realtime_breakdown**](RealTimeApi.md#get_realtime_breakdown) | **GET** /data/v1/realtime/metrics/{REALTIME_METRIC_ID}/breakdown | Get Real-Time Breakdown
|
8
|
+
[**get_realtime_histogram_timeseries**](RealTimeApi.md#get_realtime_histogram_timeseries) | **GET** /data/v1/realtime/metrics/{REALTIME_METRIC_ID}/histogram-timeseries | Get Real-Time Histogram Timeseries
|
9
|
+
[**get_realtime_timeseries**](RealTimeApi.md#get_realtime_timeseries) | **GET** /data/v1/realtime/metrics/{REALTIME_METRIC_ID}/timeseries | Get Real-Time Timeseries
|
10
|
+
[**list_realtime_dimensions**](RealTimeApi.md#list_realtime_dimensions) | **GET** /data/v1/realtime/dimensions | List Real-Time Dimensions
|
11
|
+
[**list_realtime_metrics**](RealTimeApi.md#list_realtime_metrics) | **GET** /data/v1/realtime/metrics | List Real-Time Metrics
|
12
|
+
|
13
|
+
|
14
|
+
# **get_realtime_breakdown**
|
15
|
+
> GetRealTimeBreakdownResponse get_realtime_breakdown(realtime_metric_id, opts)
|
16
|
+
|
17
|
+
Get Real-Time Breakdown
|
18
|
+
|
19
|
+
Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score.
|
20
|
+
|
21
|
+
### Example
|
22
|
+
```ruby
|
23
|
+
# load the gem
|
24
|
+
require 'mux_ruby'
|
25
|
+
# setup authorization
|
26
|
+
MuxRuby.configure do |config|
|
27
|
+
# Configure HTTP basic authorization: accessToken
|
28
|
+
config.username = 'YOUR USERNAME'
|
29
|
+
config.password = 'YOUR PASSWORD'
|
30
|
+
end
|
31
|
+
|
32
|
+
api_instance = MuxRuby::RealTimeApi.new
|
33
|
+
realtime_metric_id = 'video-startup-time' # String | ID of the Realtime Metric
|
34
|
+
opts = {
|
35
|
+
dimension: 'dimension_example', # String | Dimension the specified value belongs to
|
36
|
+
timestamp: 3.4, # Float | Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
|
37
|
+
filters: ['filters_example'], # Array<String> | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
|
38
|
+
order_by: 'order_by_example', # String | Value to order the results by
|
39
|
+
order_direction: 'order_direction_example' # String | Sort order.
|
40
|
+
}
|
41
|
+
|
42
|
+
begin
|
43
|
+
#Get Real-Time Breakdown
|
44
|
+
result = api_instance.get_realtime_breakdown(realtime_metric_id, opts)
|
45
|
+
p result
|
46
|
+
rescue MuxRuby::ApiError => e
|
47
|
+
puts "Exception when calling RealTimeApi->get_realtime_breakdown: #{e}"
|
48
|
+
end
|
49
|
+
```
|
50
|
+
|
51
|
+
### Parameters
|
52
|
+
|
53
|
+
Name | Type | Description | Notes
|
54
|
+
------------- | ------------- | ------------- | -------------
|
55
|
+
**realtime_metric_id** | **String**| ID of the Realtime Metric |
|
56
|
+
**dimension** | **String**| Dimension the specified value belongs to | [optional]
|
57
|
+
**timestamp** | **Float**| Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp. | [optional]
|
58
|
+
**filters** | [**Array<String>**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
|
59
|
+
**order_by** | **String**| Value to order the results by | [optional]
|
60
|
+
**order_direction** | **String**| Sort order. | [optional]
|
61
|
+
|
62
|
+
### Return type
|
63
|
+
|
64
|
+
[**GetRealTimeBreakdownResponse**](GetRealTimeBreakdownResponse.md)
|
65
|
+
|
66
|
+
### Authorization
|
67
|
+
|
68
|
+
[accessToken](../README.md#accessToken)
|
69
|
+
|
70
|
+
### HTTP request headers
|
71
|
+
|
72
|
+
- **Content-Type**: Not defined
|
73
|
+
- **Accept**: application/json
|
74
|
+
|
75
|
+
|
76
|
+
|
77
|
+
# **get_realtime_histogram_timeseries**
|
78
|
+
> GetRealTimeHistogramTimeseriesResponse get_realtime_histogram_timeseries(realtime_metric_id, opts)
|
79
|
+
|
80
|
+
Get Real-Time Histogram Timeseries
|
81
|
+
|
82
|
+
Gets histogram timeseries information for a specific metric.
|
83
|
+
|
84
|
+
### Example
|
85
|
+
```ruby
|
86
|
+
# load the gem
|
87
|
+
require 'mux_ruby'
|
88
|
+
# setup authorization
|
89
|
+
MuxRuby.configure do |config|
|
90
|
+
# Configure HTTP basic authorization: accessToken
|
91
|
+
config.username = 'YOUR USERNAME'
|
92
|
+
config.password = 'YOUR PASSWORD'
|
93
|
+
end
|
94
|
+
|
95
|
+
api_instance = MuxRuby::RealTimeApi.new
|
96
|
+
realtime_metric_id = 'video-startup-time' # String | ID of the Realtime Metric
|
97
|
+
opts = {
|
98
|
+
filters: ['filters_example'] # Array<String> | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
|
99
|
+
}
|
100
|
+
|
101
|
+
begin
|
102
|
+
#Get Real-Time Histogram Timeseries
|
103
|
+
result = api_instance.get_realtime_histogram_timeseries(realtime_metric_id, opts)
|
104
|
+
p result
|
105
|
+
rescue MuxRuby::ApiError => e
|
106
|
+
puts "Exception when calling RealTimeApi->get_realtime_histogram_timeseries: #{e}"
|
107
|
+
end
|
108
|
+
```
|
109
|
+
|
110
|
+
### Parameters
|
111
|
+
|
112
|
+
Name | Type | Description | Notes
|
113
|
+
------------- | ------------- | ------------- | -------------
|
114
|
+
**realtime_metric_id** | **String**| ID of the Realtime Metric |
|
115
|
+
**filters** | [**Array<String>**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
|
116
|
+
|
117
|
+
### Return type
|
118
|
+
|
119
|
+
[**GetRealTimeHistogramTimeseriesResponse**](GetRealTimeHistogramTimeseriesResponse.md)
|
120
|
+
|
121
|
+
### Authorization
|
122
|
+
|
123
|
+
[accessToken](../README.md#accessToken)
|
124
|
+
|
125
|
+
### HTTP request headers
|
126
|
+
|
127
|
+
- **Content-Type**: Not defined
|
128
|
+
- **Accept**: application/json
|
129
|
+
|
130
|
+
|
131
|
+
|
132
|
+
# **get_realtime_timeseries**
|
133
|
+
> GetRealTimeTimeseriesResponse get_realtime_timeseries(realtime_metric_id, opts)
|
134
|
+
|
135
|
+
Get Real-Time Timeseries
|
136
|
+
|
137
|
+
Gets Time series information for a specific metric along with the number of concurrent viewers.
|
138
|
+
|
139
|
+
### Example
|
140
|
+
```ruby
|
141
|
+
# load the gem
|
142
|
+
require 'mux_ruby'
|
143
|
+
# setup authorization
|
144
|
+
MuxRuby.configure do |config|
|
145
|
+
# Configure HTTP basic authorization: accessToken
|
146
|
+
config.username = 'YOUR USERNAME'
|
147
|
+
config.password = 'YOUR PASSWORD'
|
148
|
+
end
|
149
|
+
|
150
|
+
api_instance = MuxRuby::RealTimeApi.new
|
151
|
+
realtime_metric_id = 'video-startup-time' # String | ID of the Realtime Metric
|
152
|
+
opts = {
|
153
|
+
filters: ['filters_example'] # Array<String> | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint.
|
154
|
+
}
|
155
|
+
|
156
|
+
begin
|
157
|
+
#Get Real-Time Timeseries
|
158
|
+
result = api_instance.get_realtime_timeseries(realtime_metric_id, opts)
|
159
|
+
p result
|
160
|
+
rescue MuxRuby::ApiError => e
|
161
|
+
puts "Exception when calling RealTimeApi->get_realtime_timeseries: #{e}"
|
162
|
+
end
|
163
|
+
```
|
164
|
+
|
165
|
+
### Parameters
|
166
|
+
|
167
|
+
Name | Type | Description | Notes
|
168
|
+
------------- | ------------- | ------------- | -------------
|
169
|
+
**realtime_metric_id** | **String**| ID of the Realtime Metric |
|
170
|
+
**filters** | [**Array<String>**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]=operating_system:windows&filters[]=country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
|
171
|
+
|
172
|
+
### Return type
|
173
|
+
|
174
|
+
[**GetRealTimeTimeseriesResponse**](GetRealTimeTimeseriesResponse.md)
|
175
|
+
|
176
|
+
### Authorization
|
177
|
+
|
178
|
+
[accessToken](../README.md#accessToken)
|
179
|
+
|
180
|
+
### HTTP request headers
|
181
|
+
|
182
|
+
- **Content-Type**: Not defined
|
183
|
+
- **Accept**: application/json
|
184
|
+
|
185
|
+
|
186
|
+
|
187
|
+
# **list_realtime_dimensions**
|
188
|
+
> ListRealTimeDimensionsResponse list_realtime_dimensions
|
189
|
+
|
190
|
+
List Real-Time Dimensions
|
191
|
+
|
192
|
+
Lists availiable real-time dimensions
|
193
|
+
|
194
|
+
### Example
|
195
|
+
```ruby
|
196
|
+
# load the gem
|
197
|
+
require 'mux_ruby'
|
198
|
+
# setup authorization
|
199
|
+
MuxRuby.configure do |config|
|
200
|
+
# Configure HTTP basic authorization: accessToken
|
201
|
+
config.username = 'YOUR USERNAME'
|
202
|
+
config.password = 'YOUR PASSWORD'
|
203
|
+
end
|
204
|
+
|
205
|
+
api_instance = MuxRuby::RealTimeApi.new
|
206
|
+
|
207
|
+
begin
|
208
|
+
#List Real-Time Dimensions
|
209
|
+
result = api_instance.list_realtime_dimensions
|
210
|
+
p result
|
211
|
+
rescue MuxRuby::ApiError => e
|
212
|
+
puts "Exception when calling RealTimeApi->list_realtime_dimensions: #{e}"
|
213
|
+
end
|
214
|
+
```
|
215
|
+
|
216
|
+
### Parameters
|
217
|
+
This endpoint does not need any parameter.
|
218
|
+
|
219
|
+
### Return type
|
220
|
+
|
221
|
+
[**ListRealTimeDimensionsResponse**](ListRealTimeDimensionsResponse.md)
|
222
|
+
|
223
|
+
### Authorization
|
224
|
+
|
225
|
+
[accessToken](../README.md#accessToken)
|
226
|
+
|
227
|
+
### HTTP request headers
|
228
|
+
|
229
|
+
- **Content-Type**: Not defined
|
230
|
+
- **Accept**: application/json
|
231
|
+
|
232
|
+
|
233
|
+
|
234
|
+
# **list_realtime_metrics**
|
235
|
+
> ListRealTimeMetricsResponse list_realtime_metrics
|
236
|
+
|
237
|
+
List Real-Time Metrics
|
238
|
+
|
239
|
+
Lists availiable real-time metrics.
|
240
|
+
|
241
|
+
### Example
|
242
|
+
```ruby
|
243
|
+
# load the gem
|
244
|
+
require 'mux_ruby'
|
245
|
+
# setup authorization
|
246
|
+
MuxRuby.configure do |config|
|
247
|
+
# Configure HTTP basic authorization: accessToken
|
248
|
+
config.username = 'YOUR USERNAME'
|
249
|
+
config.password = 'YOUR PASSWORD'
|
250
|
+
end
|
251
|
+
|
252
|
+
api_instance = MuxRuby::RealTimeApi.new
|
253
|
+
|
254
|
+
begin
|
255
|
+
#List Real-Time Metrics
|
256
|
+
result = api_instance.list_realtime_metrics
|
257
|
+
p result
|
258
|
+
rescue MuxRuby::ApiError => e
|
259
|
+
puts "Exception when calling RealTimeApi->list_realtime_metrics: #{e}"
|
260
|
+
end
|
261
|
+
```
|
262
|
+
|
263
|
+
### Parameters
|
264
|
+
This endpoint does not need any parameter.
|
265
|
+
|
266
|
+
### Return type
|
267
|
+
|
268
|
+
[**ListRealTimeMetricsResponse**](ListRealTimeMetricsResponse.md)
|
269
|
+
|
270
|
+
### Authorization
|
271
|
+
|
272
|
+
[accessToken](../README.md#accessToken)
|
273
|
+
|
274
|
+
### HTTP request headers
|
275
|
+
|
276
|
+
- **Content-Type**: Not defined
|
277
|
+
- **Accept**: application/json
|
278
|
+
|
279
|
+
|
280
|
+
|
@@ -0,0 +1,12 @@
|
|
1
|
+
# MuxRuby::RealTimeBreakdownValue
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**value** | **String** | | [optional]
|
7
|
+
**negative_impact** | **Integer** | | [optional]
|
8
|
+
**metric_value** | **Float** | | [optional]
|
9
|
+
**display_value** | **String** | | [optional]
|
10
|
+
**concurent_viewers** | **Integer** | | [optional]
|
11
|
+
|
12
|
+
|
@@ -0,0 +1,14 @@
|
|
1
|
+
# MuxRuby::RealTimeHistogramTimeseriesDatapoint
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**timestamp** | **String** | | [optional]
|
7
|
+
**sum** | **Integer** | | [optional]
|
8
|
+
**p95** | **Float** | | [optional]
|
9
|
+
**median** | **Float** | | [optional]
|
10
|
+
**max_percentage** | **Float** | | [optional]
|
11
|
+
**bucket_values** | [**Array<RealTimeHistogramTimeseriesBucketValues>**](RealTimeHistogramTimeseriesBucketValues.md) | | [optional]
|
12
|
+
**average** | **Float** | | [optional]
|
13
|
+
|
14
|
+
|
@@ -0,0 +1,10 @@
|
|
1
|
+
# MuxRuby::RealTimeTimeseriesDatapoint
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
Name | Type | Description | Notes
|
5
|
+
------------ | ------------- | ------------- | -------------
|
6
|
+
**value** | **Float** | | [optional]
|
7
|
+
**date** | **String** | | [optional]
|
8
|
+
**concurent_viewers** | **Integer** | | [optional]
|
9
|
+
|
10
|
+
|
data/docs/Track.md
CHANGED
@@ -3,18 +3,18 @@
|
|
3
3
|
## Properties
|
4
4
|
Name | Type | Description | Notes
|
5
5
|
------------ | ------------- | ------------- | -------------
|
6
|
-
**id** | **String** |
|
7
|
-
**type** | **String** |
|
8
|
-
**duration** | **Float** |
|
9
|
-
**max_width** | **Integer** |
|
10
|
-
**max_height** | **Integer** |
|
11
|
-
**max_frame_rate** | **Float** |
|
12
|
-
**max_channels** | **Integer** |
|
13
|
-
**max_channel_layout** | **String** |
|
14
|
-
**text_type** | **String** |
|
15
|
-
**language_code** | **String** |
|
16
|
-
**name** | **String** |
|
17
|
-
**closed_captions** | **BOOLEAN** |
|
18
|
-
**passthrough** | **String** |
|
6
|
+
**id** | **String** | Unique identifier for the Track | [optional]
|
7
|
+
**type** | **String** | The type of track | [optional]
|
8
|
+
**duration** | **Float** | The duration in seconds of the track media. This parameter is not set for the `text` type track. This field is optional and may not be set. The top level `duration` field of an asset will always be set. | [optional]
|
9
|
+
**max_width** | **Integer** | The maximum width in pixels available for the track. Only set for the `video` type track. | [optional]
|
10
|
+
**max_height** | **Integer** | The maximum height in pixels available for the track. Only set for the `video` type track. | [optional]
|
11
|
+
**max_frame_rate** | **Float** | The maximum frame rate available for the track. Only set for the `video` type track. This field may return `-1` if the frame rate of the input cannot be reliably determined. | [optional]
|
12
|
+
**max_channels** | **Integer** | The maximum number of audio channels the track supports. Only set for the `audio` type track. | [optional]
|
13
|
+
**max_channel_layout** | **String** | Only set for the `audio` type track. | [optional]
|
14
|
+
**text_type** | **String** | This parameter is set only for the `text` type track. | [optional]
|
15
|
+
**language_code** | **String** | The language code value represents [BCP 47](https://tools.ietf.org/html/bcp47) specification compliant value. For example, `en` for English or `en-US` for the US version of English. This parameter is set for `text` type and `subtitles` text type track. | [optional]
|
16
|
+
**name** | **String** | The name of the track containing a human-readable description. The hls manifest will associate a subtitle text track with this value. For example, the value is \"English\" for subtitles text track for the `language_code` value of `en-US`. This parameter is set for the `text` type and `subtitles` text type track. | [optional]
|
17
|
+
**closed_captions** | **BOOLEAN** | Indicates the track provides Subtitles for the Deaf or Hard-of-hearing (SDH). This parameter is set for the `text` type and `subtitles` text type track. | [optional]
|
18
|
+
**passthrough** | **String** | Arbitrary metadata set for the track either when creating the asset or track. This parameter is set for `text` type and `subtitles` text type track. Max 255 characters. | [optional]
|
19
19
|
|
20
20
|
|