mux_ruby 1.4.0 → 1.8.1
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +5 -5
- data/Gemfile +2 -1
- data/Gemfile.lock +37 -35
- data/README.md +6 -1
- data/docs/Asset.md +3 -1
- data/docs/AssetNonStandardInputReasons.md +16 -0
- data/docs/AssetRecordingTimes.md +9 -0
- data/docs/CreateAssetRequest.md +1 -1
- data/docs/CreateLiveStreamRequest.md +2 -0
- data/docs/CreateUploadRequest.md +1 -0
- 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/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/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 +2 -1
- data/docs/LiveStreamsApi.md +104 -0
- data/docs/NotificationRule.md +10 -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/Upload.md +1 -0
- data/docs/VideoView.md +16 -14
- data/examples/data/exercise-dimensions.rb +29 -0
- data/examples/data/exercise-errors.rb +1 -1
- data/examples/data/exercise-incidents.rb +29 -0
- data/examples/data/exercise-realtime.rb +60 -0
- data/examples/video/exercise-live-streams.rb +22 -0
- data/lib/mux_ruby.rb +30 -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/real_time_api.rb +311 -0
- data/lib/mux_ruby/api_client.rb +1 -1
- data/lib/mux_ruby/configuration.rb +1 -4
- data/lib/mux_ruby/models/asset.rb +46 -13
- 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_files.rb +4 -4
- data/lib/mux_ruby/models/create_asset_request.rb +13 -13
- data/lib/mux_ruby/models/create_live_stream_request.rb +24 -4
- data/lib/mux_ruby/models/create_upload_request.rb +13 -4
- 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_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_overlay_settings.rb +46 -0
- 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 +14 -5
- data/lib/mux_ruby/models/notification_rule.rb +202 -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/upload.rb +13 -4
- data/lib/mux_ruby/models/video_view.rb +36 -18
- data/lib/mux_ruby/version.rb +1 -1
- 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/real_time_api_spec.rb +93 -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 +22 -6
- data/spec/models/asset_static_renditions_files_spec.rb +2 -2
- data/spec/models/create_asset_request_spec.rb +6 -6
- data/spec/models/create_live_stream_request_spec.rb +12 -0
- data/spec/models/create_upload_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_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_overlay_settings_spec.rb +8 -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/live_stream_spec.rb +6 -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/upload_spec.rb +6 -0
- data/spec/models/video_view_spec.rb +12 -0
- data/test.sh +28 -0
- metadata +181 -58
@@ -27,6 +27,8 @@ module MuxRuby
|
|
27
27
|
# The URL to upload the associated source media to.
|
28
28
|
attr_accessor :url
|
29
29
|
|
30
|
+
attr_accessor :test
|
31
|
+
|
30
32
|
class EnumAttributeValidator
|
31
33
|
attr_reader :datatype
|
32
34
|
attr_reader :allowable_values
|
@@ -59,7 +61,8 @@ module MuxRuby
|
|
59
61
|
:'asset_id' => :'asset_id',
|
60
62
|
:'error' => :'error',
|
61
63
|
:'cors_origin' => :'cors_origin',
|
62
|
-
:'url' => :'url'
|
64
|
+
:'url' => :'url',
|
65
|
+
:'test' => :'test'
|
63
66
|
}
|
64
67
|
end
|
65
68
|
|
@@ -73,7 +76,8 @@ module MuxRuby
|
|
73
76
|
:'asset_id' => :'String',
|
74
77
|
:'error' => :'UploadError',
|
75
78
|
:'cors_origin' => :'String',
|
76
|
-
:'url' => :'String'
|
79
|
+
:'url' => :'String',
|
80
|
+
:'test' => :'BOOLEAN'
|
77
81
|
}
|
78
82
|
end
|
79
83
|
|
@@ -118,6 +122,10 @@ module MuxRuby
|
|
118
122
|
if attributes.has_key?(:'url')
|
119
123
|
self.url = attributes[:'url']
|
120
124
|
end
|
125
|
+
|
126
|
+
if attributes.has_key?(:'test')
|
127
|
+
self.test = attributes[:'test']
|
128
|
+
end
|
121
129
|
end
|
122
130
|
|
123
131
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -181,7 +189,8 @@ module MuxRuby
|
|
181
189
|
asset_id == o.asset_id &&
|
182
190
|
error == o.error &&
|
183
191
|
cors_origin == o.cors_origin &&
|
184
|
-
url == o.url
|
192
|
+
url == o.url &&
|
193
|
+
test == o.test
|
185
194
|
end
|
186
195
|
|
187
196
|
# @see the `==` method
|
@@ -193,7 +202,7 @@ module MuxRuby
|
|
193
202
|
# Calculates hash code according to all attributes.
|
194
203
|
# @return [Fixnum] Hash code
|
195
204
|
def hash
|
196
|
-
[id, timeout, status, new_asset_settings, asset_id, error, cors_origin, url].hash
|
205
|
+
[id, timeout, status, new_asset_settings, asset_id, error, cors_origin, url, test].hash
|
197
206
|
end
|
198
207
|
|
199
208
|
# Builds the object from hash
|
@@ -223,10 +223,14 @@ module MuxRuby
|
|
223
223
|
|
224
224
|
attr_accessor :asn
|
225
225
|
|
226
|
+
attr_accessor :asn_name
|
227
|
+
|
226
228
|
attr_accessor :quality_score
|
227
229
|
|
228
230
|
attr_accessor :player_software_version
|
229
231
|
|
232
|
+
attr_accessor :player_mux_plugin_name
|
233
|
+
|
230
234
|
# Attribute mapping from ruby-style variable name to JSON key.
|
231
235
|
def self.attribute_map
|
232
236
|
{
|
@@ -338,8 +342,10 @@ module MuxRuby
|
|
338
342
|
:'player_autoplay' => :'player_autoplay',
|
339
343
|
:'player_height' => :'player_height',
|
340
344
|
:'asn' => :'asn',
|
345
|
+
:'asn_name' => :'asn_name',
|
341
346
|
:'quality_score' => :'quality_score',
|
342
|
-
:'player_software_version' => :'player_software_version'
|
347
|
+
:'player_software_version' => :'player_software_version',
|
348
|
+
:'player_mux_plugin_name' => :'player_mux_plugin_name'
|
343
349
|
}
|
344
350
|
end
|
345
351
|
|
@@ -354,22 +360,22 @@ module MuxRuby
|
|
354
360
|
:'preroll_requested' => :'BOOLEAN',
|
355
361
|
:'page_type' => :'String',
|
356
362
|
:'startup_score' => :'String',
|
357
|
-
:'view_seek_duration' => :'
|
363
|
+
:'view_seek_duration' => :'Integer',
|
358
364
|
:'country_name' => :'String',
|
359
365
|
:'player_source_height' => :'Integer',
|
360
366
|
:'longitude' => :'String',
|
361
|
-
:'buffering_count' => :'
|
362
|
-
:'video_duration' => :'
|
367
|
+
:'buffering_count' => :'Integer',
|
368
|
+
:'video_duration' => :'Integer',
|
363
369
|
:'player_source_type' => :'String',
|
364
370
|
:'city' => :'String',
|
365
371
|
:'view_id' => :'String',
|
366
372
|
:'platform_description' => :'String',
|
367
|
-
:'video_startup_preroll_request_time' => :'
|
373
|
+
:'video_startup_preroll_request_time' => :'Integer',
|
368
374
|
:'viewer_device_name' => :'String',
|
369
375
|
:'video_series' => :'String',
|
370
376
|
:'viewer_application_name' => :'String',
|
371
377
|
:'updated_at' => :'String',
|
372
|
-
:'view_total_content_playback_time' => :'
|
378
|
+
:'view_total_content_playback_time' => :'Integer',
|
373
379
|
:'cdn' => :'String',
|
374
380
|
:'player_instance_id' => :'String',
|
375
381
|
:'video_language' => :'String',
|
@@ -380,8 +386,8 @@ module MuxRuby
|
|
380
386
|
:'playback_score' => :'String',
|
381
387
|
:'page_url' => :'String',
|
382
388
|
:'metro' => :'String',
|
383
|
-
:'view_max_request_latency' => :'
|
384
|
-
:'requests_for_first_preroll' => :'
|
389
|
+
:'view_max_request_latency' => :'Integer',
|
390
|
+
:'requests_for_first_preroll' => :'Integer',
|
385
391
|
:'view_total_downscaling' => :'String',
|
386
392
|
:'latitude' => :'String',
|
387
393
|
:'player_source_host_name' => :'String',
|
@@ -391,7 +397,7 @@ module MuxRuby
|
|
391
397
|
:'player_language' => :'String',
|
392
398
|
:'page_load_time' => :'Integer',
|
393
399
|
:'viewer_device_category' => :'String',
|
394
|
-
:'video_startup_preroll_load_time' => :'
|
400
|
+
:'video_startup_preroll_load_time' => :'Integer',
|
395
401
|
:'player_version' => :'String',
|
396
402
|
:'watch_time' => :'Integer',
|
397
403
|
:'player_source_stream_type' => :'String',
|
@@ -401,14 +407,14 @@ module MuxRuby
|
|
401
407
|
:'experiment_name' => :'String',
|
402
408
|
:'viewer_os_version' => :'String',
|
403
409
|
:'player_preload' => :'BOOLEAN',
|
404
|
-
:'buffering_duration' => :'
|
410
|
+
:'buffering_duration' => :'Integer',
|
405
411
|
:'player_view_count' => :'Integer',
|
406
412
|
:'player_software' => :'String',
|
407
|
-
:'player_load_time' => :'
|
413
|
+
:'player_load_time' => :'Integer',
|
408
414
|
:'platform_summary' => :'String',
|
409
415
|
:'video_encoding_variant' => :'String',
|
410
416
|
:'player_width' => :'Integer',
|
411
|
-
:'view_seek_count' => :'
|
417
|
+
:'view_seek_count' => :'Integer',
|
412
418
|
:'viewer_experience_score' => :'String',
|
413
419
|
:'view_error_id' => :'Integer',
|
414
420
|
:'video_variant_name' => :'String',
|
@@ -420,7 +426,7 @@ module MuxRuby
|
|
420
426
|
:'events' => :'Array<VideoViewEvent>',
|
421
427
|
:'player_name' => :'String',
|
422
428
|
:'view_start' => :'String',
|
423
|
-
:'view_average_request_throughput' => :'
|
429
|
+
:'view_average_request_throughput' => :'Integer',
|
424
430
|
:'video_producer' => :'String',
|
425
431
|
:'error_type_id' => :'Integer',
|
426
432
|
:'mux_viewer_id' => :'String',
|
@@ -431,7 +437,7 @@ module MuxRuby
|
|
431
437
|
:'video_content_type' => :'String',
|
432
438
|
:'viewer_os_family' => :'String',
|
433
439
|
:'player_poster' => :'String',
|
434
|
-
:'view_average_request_latency' => :'
|
440
|
+
:'view_average_request_latency' => :'Integer',
|
435
441
|
:'video_variant_id' => :'String',
|
436
442
|
:'player_source_duration' => :'Integer',
|
437
443
|
:'player_source_url' => :'String',
|
@@ -440,7 +446,7 @@ module MuxRuby
|
|
440
446
|
:'id' => :'String',
|
441
447
|
:'short_time' => :'String',
|
442
448
|
:'rebuffer_percentage' => :'String',
|
443
|
-
:'time_to_first_frame' => :'
|
449
|
+
:'time_to_first_frame' => :'Integer',
|
444
450
|
:'viewer_user_id' => :'String',
|
445
451
|
:'video_stream_type' => :'String',
|
446
452
|
:'player_startup_time' => :'Integer',
|
@@ -454,8 +460,10 @@ module MuxRuby
|
|
454
460
|
:'player_autoplay' => :'BOOLEAN',
|
455
461
|
:'player_height' => :'Integer',
|
456
462
|
:'asn' => :'Integer',
|
463
|
+
:'asn_name' => :'String',
|
457
464
|
:'quality_score' => :'String',
|
458
|
-
:'player_software_version' => :'String'
|
465
|
+
:'player_software_version' => :'String',
|
466
|
+
:'player_mux_plugin_name' => :'String'
|
459
467
|
}
|
460
468
|
end
|
461
469
|
|
@@ -901,6 +909,10 @@ module MuxRuby
|
|
901
909
|
self.asn = attributes[:'asn']
|
902
910
|
end
|
903
911
|
|
912
|
+
if attributes.has_key?(:'asn_name')
|
913
|
+
self.asn_name = attributes[:'asn_name']
|
914
|
+
end
|
915
|
+
|
904
916
|
if attributes.has_key?(:'quality_score')
|
905
917
|
self.quality_score = attributes[:'quality_score']
|
906
918
|
end
|
@@ -908,6 +920,10 @@ module MuxRuby
|
|
908
920
|
if attributes.has_key?(:'player_software_version')
|
909
921
|
self.player_software_version = attributes[:'player_software_version']
|
910
922
|
end
|
923
|
+
|
924
|
+
if attributes.has_key?(:'player_mux_plugin_name')
|
925
|
+
self.player_mux_plugin_name = attributes[:'player_mux_plugin_name']
|
926
|
+
end
|
911
927
|
end
|
912
928
|
|
913
929
|
# Show invalid properties with the reasons. Usually used together with valid?
|
@@ -1036,8 +1052,10 @@ module MuxRuby
|
|
1036
1052
|
player_autoplay == o.player_autoplay &&
|
1037
1053
|
player_height == o.player_height &&
|
1038
1054
|
asn == o.asn &&
|
1055
|
+
asn_name == o.asn_name &&
|
1039
1056
|
quality_score == o.quality_score &&
|
1040
|
-
player_software_version == o.player_software_version
|
1057
|
+
player_software_version == o.player_software_version &&
|
1058
|
+
player_mux_plugin_name == o.player_mux_plugin_name
|
1041
1059
|
end
|
1042
1060
|
|
1043
1061
|
# @see the `==` method
|
@@ -1049,7 +1067,7 @@ module MuxRuby
|
|
1049
1067
|
# Calculates hash code according to all attributes.
|
1050
1068
|
# @return [Fixnum] Hash code
|
1051
1069
|
def hash
|
1052
|
-
[view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, quality_score, player_software_version].hash
|
1070
|
+
[view_total_upscaling, preroll_ad_asset_hostname, player_source_domain, region, viewer_user_agent, preroll_requested, page_type, startup_score, view_seek_duration, country_name, player_source_height, longitude, buffering_count, video_duration, player_source_type, city, view_id, platform_description, video_startup_preroll_request_time, viewer_device_name, video_series, viewer_application_name, updated_at, view_total_content_playback_time, cdn, player_instance_id, video_language, player_source_width, player_error_message, player_mux_plugin_version, watched, playback_score, page_url, metro, view_max_request_latency, requests_for_first_preroll, view_total_downscaling, latitude, player_source_host_name, inserted_at, view_end, mux_embed_version, player_language, page_load_time, viewer_device_category, video_startup_preroll_load_time, player_version, watch_time, player_source_stream_type, preroll_ad_tag_hostname, viewer_device_manufacturer, rebuffering_score, experiment_name, viewer_os_version, player_preload, buffering_duration, player_view_count, player_software, player_load_time, platform_summary, video_encoding_variant, player_width, view_seek_count, viewer_experience_score, view_error_id, video_variant_name, preroll_played, viewer_application_engine, viewer_os_architecture, player_error_code, buffering_rate, events, player_name, view_start, view_average_request_throughput, video_producer, error_type_id, mux_viewer_id, video_id, continent_code, session_id, exit_before_video_start, video_content_type, viewer_os_family, player_poster, view_average_request_latency, video_variant_id, player_source_duration, player_source_url, mux_api_version, video_title, id, short_time, rebuffer_percentage, time_to_first_frame, viewer_user_id, video_stream_type, player_startup_time, viewer_application_version, view_max_downscale_percentage, view_max_upscale_percentage, country_code, used_fullscreen, isp, property_id, player_autoplay, player_height, asn, asn_name, quality_score, player_software_version, player_mux_plugin_name].hash
|
1053
1071
|
end
|
1054
1072
|
|
1055
1073
|
# Builds the object from hash
|
data/lib/mux_ruby/version.rb
CHANGED
@@ -0,0 +1,55 @@
|
|
1
|
+
=begin
|
2
|
+
# Mux Ruby - Copyright 2019 Mux Inc.
|
3
|
+
# NOTE: This file is auto generated. Do not edit this file manually.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'spec_helper'
|
7
|
+
require 'json'
|
8
|
+
|
9
|
+
# Unit tests for MuxRuby::DimensionsApi
|
10
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
11
|
+
# Please update as you see appropriate
|
12
|
+
describe 'DimensionsApi' do
|
13
|
+
before do
|
14
|
+
# run before each test
|
15
|
+
@instance = MuxRuby::DimensionsApi.new
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
# run after each test
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'test an instance of DimensionsApi' do
|
23
|
+
it 'should create an instance of DimensionsApi' do
|
24
|
+
expect(@instance).to be_instance_of(MuxRuby::DimensionsApi)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# unit tests for list_dimension_values
|
29
|
+
# Lists the values for a specific dimension
|
30
|
+
# Lists the values for a dimension along with a total count of related views. Note: This API replaces the list-filter-values API call.
|
31
|
+
# @param dimension_id ID of the Dimension
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @option opts [Integer] :limit Number of items to include in the response
|
34
|
+
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
35
|
+
# @option opts [Array<String>] :filters 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.
|
36
|
+
# @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=). Accepted formats are... * array of epoch timestamps e.g. timeframe[]=1498867200&timeframe[]=1498953600 * duration string e.g. timeframe[]=24:hours or timeframe[]=7:days.
|
37
|
+
# @return [ListDimensionValuesResponse]
|
38
|
+
describe 'list_dimension_values test' do
|
39
|
+
it 'should work' do
|
40
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
41
|
+
end
|
42
|
+
end
|
43
|
+
|
44
|
+
# unit tests for list_dimensions
|
45
|
+
# List Dimensions
|
46
|
+
# List all available dimensions. Note: This API replaces the list-filters API call.
|
47
|
+
# @param [Hash] opts the optional parameters
|
48
|
+
# @return [ListDimensionsResponse]
|
49
|
+
describe 'list_dimensions test' do
|
50
|
+
it 'should work' do
|
51
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
52
|
+
end
|
53
|
+
end
|
54
|
+
|
55
|
+
end
|
@@ -27,7 +27,7 @@ describe 'FiltersApi' do
|
|
27
27
|
|
28
28
|
# unit tests for list_filter_values
|
29
29
|
# Lists values for a specific filter
|
30
|
-
# Lists the values for a filter along with a total count of related views
|
30
|
+
# Deprecated: The API has been replaced by the list-dimension-values API call. Lists the values for a filter along with a total count of related views.
|
31
31
|
# @param filter_id ID of the Filter
|
32
32
|
# @param [Hash] opts the optional parameters
|
33
33
|
# @option opts [Integer] :limit Number of items to include in the response
|
@@ -43,7 +43,7 @@ describe 'FiltersApi' do
|
|
43
43
|
|
44
44
|
# unit tests for list_filters
|
45
45
|
# List Filters
|
46
|
-
# Lists all the filters broken out into basic and advanced
|
46
|
+
# Deprecated: The API has been replaced by the list-dimensions API call. Lists all the filters broken out into basic and advanced.
|
47
47
|
# @param [Hash] opts the optional parameters
|
48
48
|
# @return [ListFiltersResponse]
|
49
49
|
describe 'list_filters test' do
|
@@ -0,0 +1,73 @@
|
|
1
|
+
=begin
|
2
|
+
# Mux Ruby - Copyright 2019 Mux Inc.
|
3
|
+
# NOTE: This file is auto generated. Do not edit this file manually.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'spec_helper'
|
7
|
+
require 'json'
|
8
|
+
|
9
|
+
# Unit tests for MuxRuby::IncidentsApi
|
10
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
11
|
+
# Please update as you see appropriate
|
12
|
+
describe 'IncidentsApi' do
|
13
|
+
before do
|
14
|
+
# run before each test
|
15
|
+
@instance = MuxRuby::IncidentsApi.new
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
# run after each test
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'test an instance of IncidentsApi' do
|
23
|
+
it 'should create an instance of IncidentsApi' do
|
24
|
+
expect(@instance).to be_instance_of(MuxRuby::IncidentsApi)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# unit tests for get_incident
|
29
|
+
# Get an Incident
|
30
|
+
# Returns the details of an incident
|
31
|
+
# @param incident_id ID of the Incident
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @return [IncidentResponse]
|
34
|
+
describe 'get_incident test' do
|
35
|
+
it 'should work' do
|
36
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
37
|
+
end
|
38
|
+
end
|
39
|
+
|
40
|
+
# unit tests for list_incidents
|
41
|
+
# List Incidents
|
42
|
+
# Returns a list of incidents
|
43
|
+
# @param [Hash] opts the optional parameters
|
44
|
+
# @option opts [Integer] :limit Number of items to include in the response
|
45
|
+
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
46
|
+
# @option opts [String] :order_by Value to order the results by
|
47
|
+
# @option opts [String] :order_direction Sort order.
|
48
|
+
# @option opts [String] :status Status to filter incidents by
|
49
|
+
# @option opts [String] :severity Severity to filter incidents by
|
50
|
+
# @return [ListIncidentsResponse]
|
51
|
+
describe 'list_incidents test' do
|
52
|
+
it 'should work' do
|
53
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
54
|
+
end
|
55
|
+
end
|
56
|
+
|
57
|
+
# unit tests for list_related_incidents
|
58
|
+
# List Related Incidents
|
59
|
+
# Returns all the incidents that seem related to a specific incident
|
60
|
+
# @param incident_id ID of the Incident
|
61
|
+
# @param [Hash] opts the optional parameters
|
62
|
+
# @option opts [Integer] :limit Number of items to include in the response
|
63
|
+
# @option opts [Integer] :page Offset by this many pages, of the size of `limit`
|
64
|
+
# @option opts [String] :order_by Value to order the results by
|
65
|
+
# @option opts [String] :order_direction Sort order.
|
66
|
+
# @return [ListRelatedIncidentsResponse]
|
67
|
+
describe 'list_related_incidents test' do
|
68
|
+
it 'should work' do
|
69
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
70
|
+
end
|
71
|
+
end
|
72
|
+
|
73
|
+
end
|
@@ -97,6 +97,30 @@ describe 'LiveStreamsApi' do
|
|
97
97
|
end
|
98
98
|
end
|
99
99
|
|
100
|
+
# unit tests for disable_live_stream
|
101
|
+
# Disable a live stream
|
102
|
+
# Disables a live stream, making it reject incoming RTMP streams until re-enabled.
|
103
|
+
# @param live_stream_id The live stream ID
|
104
|
+
# @param [Hash] opts the optional parameters
|
105
|
+
# @return [DisableLiveStreamResponse]
|
106
|
+
describe 'disable_live_stream test' do
|
107
|
+
it 'should work' do
|
108
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
109
|
+
end
|
110
|
+
end
|
111
|
+
|
112
|
+
# unit tests for enable_live_stream
|
113
|
+
# Enable a live stream
|
114
|
+
# Enables a live stream, allowing it to accept an incoming RTMP stream.
|
115
|
+
# @param live_stream_id The live stream ID
|
116
|
+
# @param [Hash] opts the optional parameters
|
117
|
+
# @return [EnableLiveStreamResponse]
|
118
|
+
describe 'enable_live_stream test' do
|
119
|
+
it 'should work' do
|
120
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
121
|
+
end
|
122
|
+
end
|
123
|
+
|
100
124
|
# unit tests for get_live_stream
|
101
125
|
# Retrieve a live stream
|
102
126
|
# Retrieves the details of a live stream that has previously been created. Supply the unique live stream ID that was returned from your previous request, and Mux will return the corresponding live stream information. The same information is returned when creating a live stream.
|
@@ -0,0 +1,93 @@
|
|
1
|
+
=begin
|
2
|
+
# Mux Ruby - Copyright 2019 Mux Inc.
|
3
|
+
# NOTE: This file is auto generated. Do not edit this file manually.
|
4
|
+
=end
|
5
|
+
|
6
|
+
require 'spec_helper'
|
7
|
+
require 'json'
|
8
|
+
|
9
|
+
# Unit tests for MuxRuby::RealTimeApi
|
10
|
+
# Automatically generated by openapi-generator (https://openapi-generator.tech)
|
11
|
+
# Please update as you see appropriate
|
12
|
+
describe 'RealTimeApi' do
|
13
|
+
before do
|
14
|
+
# run before each test
|
15
|
+
@instance = MuxRuby::RealTimeApi.new
|
16
|
+
end
|
17
|
+
|
18
|
+
after do
|
19
|
+
# run after each test
|
20
|
+
end
|
21
|
+
|
22
|
+
describe 'test an instance of RealTimeApi' do
|
23
|
+
it 'should create an instance of RealTimeApi' do
|
24
|
+
expect(@instance).to be_instance_of(MuxRuby::RealTimeApi)
|
25
|
+
end
|
26
|
+
end
|
27
|
+
|
28
|
+
# unit tests for get_realtime_breakdown
|
29
|
+
# Get Real-Time Breakdown
|
30
|
+
# Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score.
|
31
|
+
# @param realtime_metric_id ID of the Realtime Metric
|
32
|
+
# @param [Hash] opts the optional parameters
|
33
|
+
# @option opts [String] :dimension Dimension the specified value belongs to
|
34
|
+
# @option opts [Float] :timestamp Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
|
35
|
+
# @option opts [Array<String>] :filters 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.
|
36
|
+
# @option opts [String] :order_by Value to order the results by
|
37
|
+
# @option opts [String] :order_direction Sort order.
|
38
|
+
# @return [GetRealTimeBreakdownResponse]
|
39
|
+
describe 'get_realtime_breakdown test' do
|
40
|
+
it 'should work' do
|
41
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
42
|
+
end
|
43
|
+
end
|
44
|
+
|
45
|
+
# unit tests for get_realtime_histogram_timeseries
|
46
|
+
# Get Real-Time Histogram Timeseries
|
47
|
+
# Gets histogram timeseries information for a specific metric.
|
48
|
+
# @param realtime_metric_id ID of the Realtime Metric
|
49
|
+
# @param [Hash] opts the optional parameters
|
50
|
+
# @option opts [Array<String>] :filters 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.
|
51
|
+
# @return [GetRealTimeHistogramTimeseriesResponse]
|
52
|
+
describe 'get_realtime_histogram_timeseries test' do
|
53
|
+
it 'should work' do
|
54
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
55
|
+
end
|
56
|
+
end
|
57
|
+
|
58
|
+
# unit tests for get_realtime_timeseries
|
59
|
+
# Get Real-Time Timeseries
|
60
|
+
# Gets Time series information for a specific metric along with the number of concurrent viewers.
|
61
|
+
# @param realtime_metric_id ID of the Realtime Metric
|
62
|
+
# @param [Hash] opts the optional parameters
|
63
|
+
# @option opts [Array<String>] :filters 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.
|
64
|
+
# @return [GetRealTimeTimeseriesResponse]
|
65
|
+
describe 'get_realtime_timeseries test' do
|
66
|
+
it 'should work' do
|
67
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
68
|
+
end
|
69
|
+
end
|
70
|
+
|
71
|
+
# unit tests for list_realtime_dimensions
|
72
|
+
# List Real-Time Dimensions
|
73
|
+
# Lists availiable real-time dimensions
|
74
|
+
# @param [Hash] opts the optional parameters
|
75
|
+
# @return [ListRealTimeDimensionsResponse]
|
76
|
+
describe 'list_realtime_dimensions test' do
|
77
|
+
it 'should work' do
|
78
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
79
|
+
end
|
80
|
+
end
|
81
|
+
|
82
|
+
# unit tests for list_realtime_metrics
|
83
|
+
# List Real-Time Metrics
|
84
|
+
# Lists availiable real-time metrics.
|
85
|
+
# @param [Hash] opts the optional parameters
|
86
|
+
# @return [ListRealTimeMetricsResponse]
|
87
|
+
describe 'list_realtime_metrics test' do
|
88
|
+
it 'should work' do
|
89
|
+
# assertion here. ref: https://www.relishapp.com/rspec/rspec-expectations/docs/built-in-matchers
|
90
|
+
end
|
91
|
+
end
|
92
|
+
|
93
|
+
end
|