mux_ruby 2.2.0 → 3.3.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 +4 -4
- data/README.md +4 -4
- data/docs/Asset.md +1 -1
- data/docs/AssetNonStandardInputReasons.md +2 -0
- data/docs/AssetsApi.md +73 -0
- data/docs/CreateAssetRequest.md +1 -1
- data/docs/CreateLiveStreamRequest.md +6 -2
- data/docs/CreatePlaybackRestrictionRequest.md +18 -0
- data/docs/CreateSimulcastTargetRequest.md +1 -1
- data/docs/CreateTrackRequest.md +1 -1
- data/docs/DeliveryUsageApi.md +4 -2
- data/docs/DimensionsApi.md +4 -4
- data/docs/ErrorsApi.md +4 -4
- data/docs/ExportsApi.md +1 -1
- data/docs/FiltersApi.md +6 -6
- data/docs/InputSettings.md +1 -1
- data/docs/LiveStream.md +8 -4
- data/docs/LiveStreamEmbeddedSubtitleSettings.md +24 -0
- data/docs/LiveStreamStatus.md +15 -0
- data/docs/LiveStreamsApi.md +149 -1
- data/docs/MetricsApi.md +20 -20
- data/docs/PlaybackRestriction.md +24 -0
- data/docs/PlaybackRestrictionResponse.md +15 -0
- data/docs/PlaybackRestrictionsApi.md +367 -0
- data/docs/RealTimeApi.md +6 -6
- data/docs/ReferrerDomainRestriction.md +20 -0
- data/docs/SimulcastTarget.md +1 -1
- data/docs/Track.md +1 -1
- data/docs/UpdateAssetRequest.md +18 -0
- data/docs/UpdateLiveStreamEmbeddedSubtitlesRequest.md +18 -0
- data/docs/UpdateLiveStreamRequest.md +22 -0
- data/docs/UpdateReferrerDomainRestrictionRequest.md +15 -0
- data/docs/VideoViewsApi.md +4 -4
- data/examples/data/exercise-errors.rb +0 -2
- data/examples/video/exercise-assets.rb +1 -0
- data/gen/generator-config.json +1 -1
- data/lib/mux_ruby/api/assets_api.rb +71 -0
- data/lib/mux_ruby/api/delivery_usage_api.rb +5 -2
- data/lib/mux_ruby/api/dimensions_api.rb +4 -4
- data/lib/mux_ruby/api/errors_api.rb +4 -4
- data/lib/mux_ruby/api/exports_api.rb +2 -2
- data/lib/mux_ruby/api/filters_api.rb +8 -8
- data/lib/mux_ruby/api/live_streams_api.rb +145 -0
- data/lib/mux_ruby/api/metrics_api.rb +20 -20
- data/lib/mux_ruby/api/playback_restrictions_api.rb +345 -0
- data/lib/mux_ruby/api/real_time_api.rb +6 -6
- data/lib/mux_ruby/api/video_views_api.rb +4 -4
- data/lib/mux_ruby/models/asset.rb +1 -1
- data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +23 -1
- data/lib/mux_ruby/models/create_asset_request.rb +1 -1
- data/lib/mux_ruby/models/create_live_stream_request.rb +59 -3
- data/lib/mux_ruby/models/create_playback_restriction_request.rb +218 -0
- data/lib/mux_ruby/models/create_simulcast_target_request.rb +1 -1
- data/lib/mux_ruby/models/create_track_request.rb +1 -1
- data/lib/mux_ruby/models/input_settings.rb +1 -1
- data/lib/mux_ruby/models/input_settings_overlay_settings.rb +1 -1
- data/lib/mux_ruby/models/live_stream.rb +35 -14
- data/lib/mux_ruby/models/live_stream_embedded_subtitle_settings.rb +287 -0
- data/lib/mux_ruby/models/live_stream_status.rb +38 -0
- data/lib/mux_ruby/models/playback_restriction.rb +248 -0
- data/lib/mux_ruby/models/playback_restriction_response.rb +209 -0
- data/lib/mux_ruby/models/referrer_domain_restriction.rb +234 -0
- data/lib/mux_ruby/models/simulcast_target.rb +1 -1
- data/lib/mux_ruby/models/track.rb +1 -13
- data/lib/mux_ruby/models/update_asset_request.rb +219 -0
- data/lib/mux_ruby/models/update_live_stream_embedded_subtitles_request.rb +221 -0
- data/lib/mux_ruby/models/update_live_stream_request.rb +297 -0
- data/lib/mux_ruby/models/update_referrer_domain_restriction_request.rb +209 -0
- data/lib/mux_ruby/version.rb +1 -1
- data/lib/mux_ruby.rb +11 -0
- data/spec/api/playback_restrictions_api_spec.rb +97 -0
- data/spec/models/create_playback_restriction_request_spec.rb +34 -0
- data/spec/models/live_stream_embedded_subtitle_settings_spec.rb +56 -0
- data/spec/models/live_stream_status_spec.rb +28 -0
- data/spec/models/playback_restriction_response_spec.rb +28 -0
- data/spec/models/playback_restriction_spec.rb +52 -0
- data/spec/models/referrer_domain_restriction_spec.rb +40 -0
- data/spec/models/update_asset_request_spec.rb +34 -0
- data/spec/models/update_live_stream_embedded_subtitles_request_spec.rb +34 -0
- data/spec/models/update_live_stream_request_spec.rb +50 -0
- data/spec/models/update_referrer_domain_restriction_request_spec.rb +28 -0
- metadata +138 -94
data/docs/LiveStreamsApi.md
CHANGED
@@ -18,6 +18,8 @@ All URIs are relative to *https://api.mux.com*
|
|
18
18
|
| [**list_live_streams**](LiveStreamsApi.md#list_live_streams) | **GET** /video/v1/live-streams | List live streams |
|
19
19
|
| [**reset_stream_key**](LiveStreamsApi.md#reset_stream_key) | **POST** /video/v1/live-streams/{LIVE_STREAM_ID}/reset-stream-key | Reset a live stream’s stream key |
|
20
20
|
| [**signal_live_stream_complete**](LiveStreamsApi.md#signal_live_stream_complete) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/complete | Signal a live stream is finished |
|
21
|
+
| [**update_live_stream**](LiveStreamsApi.md#update_live_stream) | **PATCH** /video/v1/live-streams/{LIVE_STREAM_ID} | Update a live stream |
|
22
|
+
| [**update_live_stream_embedded_subtitles**](LiveStreamsApi.md#update_live_stream_embedded_subtitles) | **PUT** /video/v1/live-streams/{LIVE_STREAM_ID}/embedded-subtitles | Update a live stream's embedded subtitles |
|
21
23
|
|
22
24
|
|
23
25
|
## create_live_stream
|
@@ -811,7 +813,8 @@ api_instance = MuxRuby::LiveStreamsApi.new
|
|
811
813
|
opts = {
|
812
814
|
limit: 56, # Integer | Number of items to include in the response
|
813
815
|
page: 56, # Integer | Offset by this many pages, of the size of `limit`
|
814
|
-
stream_key: 'stream_key_example' # String | Filter response to return live stream for this stream key only
|
816
|
+
stream_key: 'stream_key_example', # String | Filter response to return live stream for this stream key only
|
817
|
+
status: MuxRuby::LiveStreamStatus::ACTIVE # LiveStreamStatus | Filter response to return live streams with the specified status only
|
815
818
|
}
|
816
819
|
|
817
820
|
begin
|
@@ -848,6 +851,7 @@ end
|
|
848
851
|
| **limit** | **Integer** | Number of items to include in the response | [optional][default to 25] |
|
849
852
|
| **page** | **Integer** | Offset by this many pages, of the size of `limit` | [optional][default to 1] |
|
850
853
|
| **stream_key** | **String** | Filter response to return live stream for this stream key only | [optional] |
|
854
|
+
| **status** | [**LiveStreamStatus**](.md) | Filter response to return live streams with the specified status only | [optional] |
|
851
855
|
|
852
856
|
### Return type
|
853
857
|
|
@@ -1002,3 +1006,147 @@ end
|
|
1002
1006
|
- **Content-Type**: Not defined
|
1003
1007
|
- **Accept**: application/json
|
1004
1008
|
|
1009
|
+
|
1010
|
+
## update_live_stream
|
1011
|
+
|
1012
|
+
> <LiveStreamResponse> update_live_stream(live_stream_id, update_live_stream_request)
|
1013
|
+
|
1014
|
+
Update a live stream
|
1015
|
+
|
1016
|
+
Updates the parameters of a previously-created live stream. This currently supports a subset of variables. Supply the live stream ID and the updated parameters and Mux will return the corresponding live stream information. The information returned will be the same after update as for subsequent get live stream requests.
|
1017
|
+
|
1018
|
+
### Examples
|
1019
|
+
|
1020
|
+
```ruby
|
1021
|
+
require 'time'
|
1022
|
+
require 'mux_ruby'
|
1023
|
+
# setup authorization
|
1024
|
+
MuxRuby.configure do |config|
|
1025
|
+
# Configure HTTP basic authorization: accessToken
|
1026
|
+
config.username = 'YOUR USERNAME'
|
1027
|
+
config.password = 'YOUR PASSWORD'
|
1028
|
+
end
|
1029
|
+
|
1030
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
1031
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
1032
|
+
update_live_stream_request = MuxRuby::UpdateLiveStreamRequest.new # UpdateLiveStreamRequest |
|
1033
|
+
|
1034
|
+
begin
|
1035
|
+
# Update a live stream
|
1036
|
+
result = api_instance.update_live_stream(live_stream_id, update_live_stream_request)
|
1037
|
+
p result
|
1038
|
+
rescue MuxRuby::ApiError => e
|
1039
|
+
puts "Error when calling LiveStreamsApi->update_live_stream: #{e}"
|
1040
|
+
end
|
1041
|
+
```
|
1042
|
+
|
1043
|
+
#### Using the update_live_stream_with_http_info variant
|
1044
|
+
|
1045
|
+
This returns an Array which contains the response data, status code and headers.
|
1046
|
+
|
1047
|
+
> <Array(<LiveStreamResponse>, Integer, Hash)> update_live_stream_with_http_info(live_stream_id, update_live_stream_request)
|
1048
|
+
|
1049
|
+
```ruby
|
1050
|
+
begin
|
1051
|
+
# Update a live stream
|
1052
|
+
data, status_code, headers = api_instance.update_live_stream_with_http_info(live_stream_id, update_live_stream_request)
|
1053
|
+
p status_code # => 2xx
|
1054
|
+
p headers # => { ... }
|
1055
|
+
p data # => <LiveStreamResponse>
|
1056
|
+
rescue MuxRuby::ApiError => e
|
1057
|
+
puts "Error when calling LiveStreamsApi->update_live_stream_with_http_info: #{e}"
|
1058
|
+
end
|
1059
|
+
```
|
1060
|
+
|
1061
|
+
### Parameters
|
1062
|
+
|
1063
|
+
| Name | Type | Description | Notes |
|
1064
|
+
| ---- | ---- | ----------- | ----- |
|
1065
|
+
| **live_stream_id** | **String** | The live stream ID | |
|
1066
|
+
| **update_live_stream_request** | [**UpdateLiveStreamRequest**](UpdateLiveStreamRequest.md) | | |
|
1067
|
+
|
1068
|
+
### Return type
|
1069
|
+
|
1070
|
+
[**LiveStreamResponse**](LiveStreamResponse.md)
|
1071
|
+
|
1072
|
+
### Authorization
|
1073
|
+
|
1074
|
+
[accessToken](../README.md#accessToken)
|
1075
|
+
|
1076
|
+
### HTTP request headers
|
1077
|
+
|
1078
|
+
- **Content-Type**: application/json
|
1079
|
+
- **Accept**: application/json
|
1080
|
+
|
1081
|
+
|
1082
|
+
## update_live_stream_embedded_subtitles
|
1083
|
+
|
1084
|
+
> <LiveStreamResponse> update_live_stream_embedded_subtitles(live_stream_id, update_live_stream_embedded_subtitles_request)
|
1085
|
+
|
1086
|
+
Update a live stream's embedded subtitles
|
1087
|
+
|
1088
|
+
Configures a live stream to receive embedded closed captions. The resulting Asset's subtitle text track will have `closed_captions: true` set.
|
1089
|
+
|
1090
|
+
### Examples
|
1091
|
+
|
1092
|
+
```ruby
|
1093
|
+
require 'time'
|
1094
|
+
require 'mux_ruby'
|
1095
|
+
# setup authorization
|
1096
|
+
MuxRuby.configure do |config|
|
1097
|
+
# Configure HTTP basic authorization: accessToken
|
1098
|
+
config.username = 'YOUR USERNAME'
|
1099
|
+
config.password = 'YOUR PASSWORD'
|
1100
|
+
end
|
1101
|
+
|
1102
|
+
api_instance = MuxRuby::LiveStreamsApi.new
|
1103
|
+
live_stream_id = 'live_stream_id_example' # String | The live stream ID
|
1104
|
+
update_live_stream_embedded_subtitles_request = MuxRuby::UpdateLiveStreamEmbeddedSubtitlesRequest.new # UpdateLiveStreamEmbeddedSubtitlesRequest |
|
1105
|
+
|
1106
|
+
begin
|
1107
|
+
# Update a live stream's embedded subtitles
|
1108
|
+
result = api_instance.update_live_stream_embedded_subtitles(live_stream_id, update_live_stream_embedded_subtitles_request)
|
1109
|
+
p result
|
1110
|
+
rescue MuxRuby::ApiError => e
|
1111
|
+
puts "Error when calling LiveStreamsApi->update_live_stream_embedded_subtitles: #{e}"
|
1112
|
+
end
|
1113
|
+
```
|
1114
|
+
|
1115
|
+
#### Using the update_live_stream_embedded_subtitles_with_http_info variant
|
1116
|
+
|
1117
|
+
This returns an Array which contains the response data, status code and headers.
|
1118
|
+
|
1119
|
+
> <Array(<LiveStreamResponse>, Integer, Hash)> update_live_stream_embedded_subtitles_with_http_info(live_stream_id, update_live_stream_embedded_subtitles_request)
|
1120
|
+
|
1121
|
+
```ruby
|
1122
|
+
begin
|
1123
|
+
# Update a live stream's embedded subtitles
|
1124
|
+
data, status_code, headers = api_instance.update_live_stream_embedded_subtitles_with_http_info(live_stream_id, update_live_stream_embedded_subtitles_request)
|
1125
|
+
p status_code # => 2xx
|
1126
|
+
p headers # => { ... }
|
1127
|
+
p data # => <LiveStreamResponse>
|
1128
|
+
rescue MuxRuby::ApiError => e
|
1129
|
+
puts "Error when calling LiveStreamsApi->update_live_stream_embedded_subtitles_with_http_info: #{e}"
|
1130
|
+
end
|
1131
|
+
```
|
1132
|
+
|
1133
|
+
### Parameters
|
1134
|
+
|
1135
|
+
| Name | Type | Description | Notes |
|
1136
|
+
| ---- | ---- | ----------- | ----- |
|
1137
|
+
| **live_stream_id** | **String** | The live stream ID | |
|
1138
|
+
| **update_live_stream_embedded_subtitles_request** | [**UpdateLiveStreamEmbeddedSubtitlesRequest**](UpdateLiveStreamEmbeddedSubtitlesRequest.md) | | |
|
1139
|
+
|
1140
|
+
### Return type
|
1141
|
+
|
1142
|
+
[**LiveStreamResponse**](LiveStreamResponse.md)
|
1143
|
+
|
1144
|
+
### Authorization
|
1145
|
+
|
1146
|
+
[accessToken](../README.md#accessToken)
|
1147
|
+
|
1148
|
+
### HTTP request headers
|
1149
|
+
|
1150
|
+
- **Content-Type**: application/json
|
1151
|
+
- **Accept**: application/json
|
1152
|
+
|
data/docs/MetricsApi.md
CHANGED
@@ -34,11 +34,11 @@ end
|
|
34
34
|
api_instance = MuxRuby::MetricsApi.new
|
35
35
|
metric_id = 'aggregate_startup_time' # String | ID of the Metric
|
36
36
|
opts = {
|
37
|
-
timeframe: ['inner_example'], # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
38
|
-
filters: ['inner_example'], # Array<String> |
|
37
|
+
timeframe: ['inner_example'], # Array<String> | 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`
|
38
|
+
filters: ['inner_example'], # Array<String> | 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`
|
39
39
|
measurement: '95th', # String | Measurement for the provided metric. If omitted, the default for the metric will be used.
|
40
40
|
order_direction: 'asc', # String | Sort order.
|
41
|
-
group_by: 'hour' # String | Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the
|
41
|
+
group_by: 'hour' # String | 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 hours inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 hours is `day`. This default behaviour is subject to change; it is strongly suggested that you explicitly specify the granularity.
|
42
42
|
}
|
43
43
|
|
44
44
|
begin
|
@@ -73,11 +73,11 @@ end
|
|
73
73
|
| Name | Type | Description | Notes |
|
74
74
|
| ---- | ---- | ----------- | ----- |
|
75
75
|
| **metric_id** | **String** | ID of the Metric | |
|
76
|
-
| **timeframe** | [**Array<String>**](String.md) | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
77
|
-
| **filters** | [**Array<String>**](String.md) |
|
76
|
+
| **timeframe** | [**Array<String>**](String.md) | 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` | [optional] |
|
77
|
+
| **filters** | [**Array<String>**](String.md) | 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` | [optional] |
|
78
78
|
| **measurement** | **String** | Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] |
|
79
79
|
| **order_direction** | **String** | Sort order. | [optional] |
|
80
|
-
| **group_by** | **String** | Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the
|
80
|
+
| **group_by** | **String** | 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 hours inclusive, the default granularity is `hour`. The granularity of timeframes that exceed 15 hours is `day`. This default behaviour is subject to change; it is strongly suggested that you explicitly specify the granularity. | [optional] |
|
81
81
|
|
82
82
|
### Return type
|
83
83
|
|
@@ -116,8 +116,8 @@ end
|
|
116
116
|
api_instance = MuxRuby::MetricsApi.new
|
117
117
|
metric_id = 'aggregate_startup_time' # String | ID of the Metric
|
118
118
|
opts = {
|
119
|
-
timeframe: ['inner_example'], # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
120
|
-
filters: ['inner_example'], # Array<String> |
|
119
|
+
timeframe: ['inner_example'], # Array<String> | 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`
|
120
|
+
filters: ['inner_example'], # Array<String> | 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`
|
121
121
|
measurement: '95th' # String | Measurement for the provided metric. If omitted, the default for the metric will be used.
|
122
122
|
}
|
123
123
|
|
@@ -153,8 +153,8 @@ end
|
|
153
153
|
| Name | Type | Description | Notes |
|
154
154
|
| ---- | ---- | ----------- | ----- |
|
155
155
|
| **metric_id** | **String** | ID of the Metric | |
|
156
|
-
| **timeframe** | [**Array<String>**](String.md) | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
157
|
-
| **filters** | [**Array<String>**](String.md) |
|
156
|
+
| **timeframe** | [**Array<String>**](String.md) | 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` | [optional] |
|
157
|
+
| **filters** | [**Array<String>**](String.md) | 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` | [optional] |
|
158
158
|
| **measurement** | **String** | Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] |
|
159
159
|
|
160
160
|
### Return type
|
@@ -193,8 +193,8 @@ end
|
|
193
193
|
|
194
194
|
api_instance = MuxRuby::MetricsApi.new
|
195
195
|
opts = {
|
196
|
-
timeframe: ['inner_example'], # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
197
|
-
filters: ['inner_example'], # Array<String> |
|
196
|
+
timeframe: ['inner_example'], # Array<String> | 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`
|
197
|
+
filters: ['inner_example'], # Array<String> | 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`
|
198
198
|
dimension: 'asn', # String | Dimension the specified value belongs to
|
199
199
|
value: 'value_example' # String | Value to show all available metrics for
|
200
200
|
}
|
@@ -230,8 +230,8 @@ end
|
|
230
230
|
|
231
231
|
| Name | Type | Description | Notes |
|
232
232
|
| ---- | ---- | ----------- | ----- |
|
233
|
-
| **timeframe** | [**Array<String>**](String.md) | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
234
|
-
| **filters** | [**Array<String>**](String.md) |
|
233
|
+
| **timeframe** | [**Array<String>**](String.md) | 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` | [optional] |
|
234
|
+
| **filters** | [**Array<String>**](String.md) | 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` | [optional] |
|
235
235
|
| **dimension** | **String** | Dimension the specified value belongs to | [optional] |
|
236
236
|
| **value** | **String** | Value to show all available metrics for | [optional] |
|
237
237
|
|
@@ -274,12 +274,12 @@ metric_id = 'aggregate_startup_time' # String | ID of the Metric
|
|
274
274
|
opts = {
|
275
275
|
group_by: 'asn', # String | Breakdown value to group the results by
|
276
276
|
measurement: '95th', # String | Measurement for the provided metric. If omitted, the default for the metric will be used.
|
277
|
-
filters: ['inner_example'], # Array<String> |
|
277
|
+
filters: ['inner_example'], # Array<String> | 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`
|
278
278
|
limit: 56, # Integer | Number of items to include in the response
|
279
279
|
page: 56, # Integer | Offset by this many pages, of the size of `limit`
|
280
280
|
order_by: 'negative_impact', # String | Value to order the results by
|
281
281
|
order_direction: 'asc', # String | Sort order.
|
282
|
-
timeframe: ['inner_example'] # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
282
|
+
timeframe: ['inner_example'] # Array<String> | 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`
|
283
283
|
}
|
284
284
|
|
285
285
|
begin
|
@@ -316,12 +316,12 @@ end
|
|
316
316
|
| **metric_id** | **String** | ID of the Metric | |
|
317
317
|
| **group_by** | **String** | Breakdown value to group the results by | [optional] |
|
318
318
|
| **measurement** | **String** | Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] |
|
319
|
-
| **filters** | [**Array<String>**](String.md) |
|
319
|
+
| **filters** | [**Array<String>**](String.md) | 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` | [optional] |
|
320
320
|
| **limit** | **Integer** | Number of items to include in the response | [optional][default to 25] |
|
321
321
|
| **page** | **Integer** | Offset by this many pages, of the size of `limit` | [optional][default to 1] |
|
322
322
|
| **order_by** | **String** | Value to order the results by | [optional] |
|
323
323
|
| **order_direction** | **String** | Sort order. | [optional] |
|
324
|
-
| **timeframe** | [**Array<String>**](String.md) | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
324
|
+
| **timeframe** | [**Array<String>**](String.md) | 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` | [optional] |
|
325
325
|
|
326
326
|
### Return type
|
327
327
|
|
@@ -362,7 +362,7 @@ metric_id = 'aggregate_startup_time' # String | ID of the Metric
|
|
362
362
|
opts = {
|
363
363
|
measurement: '95th', # String | Measurement for the provided metric. If omitted, the default for the metric will be used.
|
364
364
|
order_direction: 'asc', # String | Sort order.
|
365
|
-
timeframe: ['inner_example'] # Array<String> | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
365
|
+
timeframe: ['inner_example'] # Array<String> | 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`
|
366
366
|
}
|
367
367
|
|
368
368
|
begin
|
@@ -399,7 +399,7 @@ end
|
|
399
399
|
| **metric_id** | **String** | ID of the Metric | |
|
400
400
|
| **measurement** | **String** | Measurement for the provided metric. If omitted, the default for the metric will be used. | [optional] |
|
401
401
|
| **order_direction** | **String** | Sort order. | [optional] |
|
402
|
-
| **timeframe** | [**Array<String>**](String.md) | Timeframe window to limit results by. Must be provided as an array query string parameter (e.g. timeframe[]=).
|
402
|
+
| **timeframe** | [**Array<String>**](String.md) | 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` | [optional] |
|
403
403
|
|
404
404
|
### Return type
|
405
405
|
|
@@ -0,0 +1,24 @@
|
|
1
|
+
# MuxRuby::PlaybackRestriction
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
| **id** | **String** | Unique identifier for the Playback Restriction. Max 255 characters. | [optional] |
|
8
|
+
| **created_at** | **String** | Time the Playback Restriction was created, defined as a Unix timestamp (seconds since epoch). | [optional] |
|
9
|
+
| **updated_at** | **String** | Time the Playback Restriction was last updated, defined as a Unix timestamp (seconds since epoch). | [optional] |
|
10
|
+
| **referrer** | [**ReferrerDomainRestriction**](ReferrerDomainRestriction.md) | | [optional] |
|
11
|
+
|
12
|
+
## Example
|
13
|
+
|
14
|
+
```ruby
|
15
|
+
require 'mux_ruby'
|
16
|
+
|
17
|
+
instance = MuxRuby::PlaybackRestriction.new(
|
18
|
+
id: null,
|
19
|
+
created_at: null,
|
20
|
+
updated_at: null,
|
21
|
+
referrer: null
|
22
|
+
)
|
23
|
+
```
|
24
|
+
|
@@ -0,0 +1,15 @@
|
|
1
|
+
# MuxRuby::PlaybackRestrictionResponse
|
2
|
+
|
3
|
+
## Properties
|
4
|
+
|
5
|
+
| Name | Type | Description | Notes |
|
6
|
+
| ---- | ---- | ----------- | ----- |
|
7
|
+
|
8
|
+
## Example
|
9
|
+
|
10
|
+
```ruby
|
11
|
+
require 'mux_ruby'
|
12
|
+
|
13
|
+
instance = MuxRuby::PlaybackRestrictionResponse.new()
|
14
|
+
```
|
15
|
+
|