mux_ruby 3.4.0 → 3.5.2

Sign up to get free protection for your applications and to get access to all the features.
Files changed (61) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile.lock +1 -1
  3. data/README.md +13 -7
  4. data/docs/Asset.md +1 -1
  5. data/docs/Broadcast.md +30 -0
  6. data/docs/BroadcastLayout.md +15 -0
  7. data/docs/BroadcastResolution.md +15 -0
  8. data/docs/BroadcastResponse.md +18 -0
  9. data/docs/BroadcastStatus.md +15 -0
  10. data/docs/CreateBroadcastRequest.md +26 -0
  11. data/docs/CreateSimulcastTargetRequest.md +1 -1
  12. data/docs/CreateSpaceRequest.md +22 -0
  13. data/docs/ListSpacesResponse.md +18 -0
  14. data/docs/MetricsApi.md +3 -3
  15. data/docs/RealTimeApi.md +2 -2
  16. data/docs/Space.md +30 -0
  17. data/docs/SpaceResponse.md +18 -0
  18. data/docs/SpaceStatus.md +15 -0
  19. data/docs/SpaceType.md +15 -0
  20. data/docs/SpacesApi.md +658 -0
  21. data/docs/StartSpaceBroadcastResponse.md +18 -0
  22. data/docs/StopSpaceBroadcastResponse.md +18 -0
  23. data/gen/generator-config.json +1 -1
  24. data/gen/templates/README.mustache +9 -3
  25. data/lib/mux_ruby/api/metrics_api.rb +4 -4
  26. data/lib/mux_ruby/api/real_time_api.rb +2 -2
  27. data/lib/mux_ruby/api/spaces_api.rb +619 -0
  28. data/lib/mux_ruby/models/asset.rb +1 -1
  29. data/lib/mux_ruby/models/broadcast.rb +305 -0
  30. data/lib/mux_ruby/models/broadcast_layout.rb +37 -0
  31. data/lib/mux_ruby/models/broadcast_resolution.rb +41 -0
  32. data/lib/mux_ruby/models/broadcast_response.rb +223 -0
  33. data/lib/mux_ruby/models/broadcast_status.rb +37 -0
  34. data/lib/mux_ruby/models/create_broadcast_request.rb +266 -0
  35. data/lib/mux_ruby/models/create_simulcast_target_request.rb +1 -1
  36. data/lib/mux_ruby/models/create_space_request.rb +242 -0
  37. data/lib/mux_ruby/models/list_spaces_response.rb +225 -0
  38. data/lib/mux_ruby/models/space.rb +301 -0
  39. data/lib/mux_ruby/models/space_response.rb +223 -0
  40. data/lib/mux_ruby/models/space_status.rb +37 -0
  41. data/lib/mux_ruby/models/space_type.rb +36 -0
  42. data/lib/mux_ruby/models/start_space_broadcast_response.rb +218 -0
  43. data/lib/mux_ruby/models/stop_space_broadcast_response.rb +218 -0
  44. data/lib/mux_ruby/version.rb +1 -1
  45. data/lib/mux_ruby.rb +15 -0
  46. data/spec/api/spaces_api_spec.rb +149 -0
  47. data/spec/models/broadcast_layout_spec.rb +28 -0
  48. data/spec/models/broadcast_resolution_spec.rb +28 -0
  49. data/spec/models/broadcast_response_spec.rb +34 -0
  50. data/spec/models/broadcast_spec.rb +70 -0
  51. data/spec/models/broadcast_status_spec.rb +28 -0
  52. data/spec/models/create_broadcast_request_spec.rb +58 -0
  53. data/spec/models/create_space_request_spec.rb +46 -0
  54. data/spec/models/list_spaces_response_spec.rb +34 -0
  55. data/spec/models/space_response_spec.rb +34 -0
  56. data/spec/models/space_spec.rb +70 -0
  57. data/spec/models/space_status_spec.rb +28 -0
  58. data/spec/models/space_type_spec.rb +28 -0
  59. data/spec/models/start_space_broadcast_response_spec.rb +34 -0
  60. data/spec/models/stop_space_broadcast_response_spec.rb +34 -0
  61. metadata +163 -103
@@ -1,8 +1,14 @@
1
1
  ![Mux Ruby Banner](github-ruby-sdk.png)
2
2
 
3
- ![](https://github.com/muxinc/mux-ruby/workflows/Integration%20Test/badge.svg)
4
-
5
- {{moduleName}} - the Ruby gem for the {{appName}}
3
+ <p align="center">
4
+ <a href="https://rubygems.org/gems/mux_ruby"><img src="https://img.shields.io/gem/v/mux_ruby" title="RubyGems" /></a>
5
+ <a href="https://github.com/muxinc/mux-ruby/workflows/ci.yaml"><img src="https://github.com/muxinc/mux-ruby/actions/workflows/ci.yaml/badge.svg" title="CI" /></a>
6
+ </p>
7
+ <p align="center">
8
+ <a href="https://rubygems.org/gems/mux_ruby">RubyGems</a> |
9
+ <a href="https://docs.mux.com">Mux Docs</a> |
10
+ <a href="https://docs.mux.com/api-reference">Mux API Reference </a>
11
+ </p>
6
12
 
7
13
  # Mux Ruby
8
14
 
@@ -20,14 +20,14 @@ module MuxRuby
20
20
  @api_client = api_client
21
21
  end
22
22
  # Get metric timeseries data
23
- # Returns timeseries data for a specific metric. Each interval represented in the data array contains an array with the following values: * the first element is the interval time * the second element is the calculated metric value * the third element is the number of views in the interval that have a valid metric value
23
+ # Returns timeseries data for a specific metric. Each interval represented in the data array contains an array with the following values: * the first element is the interval time * the second element is the calculated metric value * the third element is the number of views in the interval that have a valid metric value
24
24
  # @param metric_id [String] ID of the Metric
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
27
27
  # @option opts [Array<String>] :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 &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
28
28
  # @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
29
29
  # @option opts [String] :order_direction Sort order.
30
- # @option opts [String] :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 &#x60;ten_minutes&#x60;. Between 6 hours and 15 days inclusive, the default granularity is &#x60;hour&#x60;. The granularity of timeframes that exceed 15 days is &#x60;day&#x60;. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
30
+ # @option opts [String] :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 &#x60;ten_minutes&#x60;. Between 6 hours and 15 hours inclusive, the default granularity is &#x60;hour&#x60;. The granularity of timeframes that exceed 15 hours is &#x60;day&#x60;. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
31
31
  # @return [GetMetricTimeseriesDataResponse]
32
32
  def get_metric_timeseries_data(metric_id, opts = {})
33
33
  data, _status_code, _headers = get_metric_timeseries_data_with_http_info(metric_id, opts)
@@ -35,14 +35,14 @@ module MuxRuby
35
35
  end
36
36
 
37
37
  # Get metric timeseries data
38
- # Returns timeseries data for a specific metric. Each interval represented in the data array contains an array with the following values: * the first element is the interval time * the second element is the calculated metric value * the third element is the number of views in the interval that have a valid metric value
38
+ # Returns timeseries data for a specific metric. Each interval represented in the data array contains an array with the following values: * the first element is the interval time * the second element is the calculated metric value * the third element is the number of views in the interval that have a valid metric value
39
39
  # @param metric_id [String] ID of the Metric
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @option opts [Array<String>] :timeframe Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]&#x3D;). Accepted formats are... * array of epoch timestamps e.g. &#x60;timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600&#x60; * duration string e.g. &#x60;timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days&#x60;
42
42
  # @option opts [Array<String>] :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 &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
43
43
  # @option opts [String] :measurement Measurement for the provided metric. If omitted, the default for the metric will be used.
44
44
  # @option opts [String] :order_direction Sort order.
45
- # @option opts [String] :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 &#x60;ten_minutes&#x60;. Between 6 hours and 15 days inclusive, the default granularity is &#x60;hour&#x60;. The granularity of timeframes that exceed 15 days is &#x60;day&#x60;. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
45
+ # @option opts [String] :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 &#x60;ten_minutes&#x60;. Between 6 hours and 15 hours inclusive, the default granularity is &#x60;hour&#x60;. The granularity of timeframes that exceed 15 hours is &#x60;day&#x60;. This default behavior is subject to change; it is strongly suggested that you explicitly specify the granularity.
46
46
  # @return [Array<(GetMetricTimeseriesDataResponse, Integer, Hash)>] GetMetricTimeseriesDataResponse data, response status code and response headers
47
47
  def get_metric_timeseries_data_with_http_info(metric_id, opts = {})
48
48
  if @api_client.config.debugging
@@ -24,7 +24,7 @@ module MuxRuby
24
24
  # @param realtime_metric_id [String] ID of the Realtime Metric
25
25
  # @param [Hash] opts the optional parameters
26
26
  # @option opts [String] :dimension Dimension the specified value belongs to
27
- # @option opts [Float] :timestamp Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
27
+ # @option opts [Integer] :timestamp Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
28
28
  # @option opts [Array<String>] :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 &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
29
29
  # @option opts [String] :order_by Value to order the results by
30
30
  # @option opts [String] :order_direction Sort order.
@@ -39,7 +39,7 @@ module MuxRuby
39
39
  # @param realtime_metric_id [String] ID of the Realtime Metric
40
40
  # @param [Hash] opts the optional parameters
41
41
  # @option opts [String] :dimension Dimension the specified value belongs to
42
- # @option opts [Float] :timestamp Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
42
+ # @option opts [Integer] :timestamp Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
43
43
  # @option opts [Array<String>] :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 &#x60;!&#x60; character to the dimension. Possible filter names are the same as returned by the List Filters endpoint. Example: * &#x60;filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;!country:US&#x60;
44
44
  # @option opts [String] :order_by Value to order the results by
45
45
  # @option opts [String] :order_direction Sort order.