mux_ruby 1.9.0 → 2.0.0.pre.rc.1

Sign up to get free protection for your applications and to get access to all the features.
Files changed (268) hide show
  1. checksums.yaml +4 -4
  2. data/Gemfile +3 -1
  3. data/Gemfile.lock +26 -37
  4. data/README.md +36 -13
  5. data/docs/AbridgedVideoView.md +33 -13
  6. data/docs/Asset.md +57 -26
  7. data/docs/AssetErrors.md +15 -4
  8. data/docs/AssetMaster.md +15 -4
  9. data/docs/AssetNonStandardInputReasons.md +29 -11
  10. data/docs/AssetRecordingTimes.md +15 -4
  11. data/docs/AssetResponse.md +13 -3
  12. data/docs/AssetStaticRenditions.md +15 -4
  13. data/docs/AssetStaticRenditionsFiles.md +23 -8
  14. data/docs/AssetsApi.md +387 -160
  15. data/docs/BreakdownValue.md +21 -7
  16. data/docs/CreateAssetRequest.md +27 -10
  17. data/docs/CreateLiveStreamRequest.md +25 -9
  18. data/docs/CreatePlaybackIDRequest.md +13 -3
  19. data/docs/CreatePlaybackIDResponse.md +13 -3
  20. data/docs/CreateSimulcastTargetRequest.md +17 -5
  21. data/docs/CreateTrackRequest.md +25 -9
  22. data/docs/CreateTrackResponse.md +13 -3
  23. data/docs/CreateUploadRequest.md +19 -6
  24. data/docs/DeliveryReport.md +27 -9
  25. data/docs/DeliveryUsageApi.md +40 -22
  26. data/docs/DimensionValue.md +15 -4
  27. data/docs/DimensionsApi.md +72 -34
  28. data/docs/DirectUploadsApi.md +131 -56
  29. data/docs/DisableLiveStreamResponse.md +13 -3
  30. data/docs/EnableLiveStreamResponse.md +13 -3
  31. data/docs/Error.md +27 -10
  32. data/docs/ErrorsApi.md +37 -19
  33. data/docs/ExportsApi.md +32 -13
  34. data/docs/FilterValue.md +15 -4
  35. data/docs/FiltersApi.md +71 -33
  36. data/docs/GetAssetInputInfoResponse.md +13 -3
  37. data/docs/GetAssetOrLiveStreamIdResponse.md +13 -3
  38. data/docs/GetAssetOrLiveStreamIdResponseData.md +17 -5
  39. data/docs/GetAssetOrLiveStreamIdResponseDataObject.md +15 -4
  40. data/docs/GetAssetPlaybackIDResponse.md +13 -3
  41. data/docs/GetMetricTimeseriesDataResponse.md +17 -5
  42. data/docs/GetOverallValuesResponse.md +17 -5
  43. data/docs/GetRealTimeBreakdownResponse.md +17 -5
  44. data/docs/GetRealTimeHistogramTimeseriesResponse.md +19 -6
  45. data/docs/GetRealTimeHistogramTimeseriesResponseMeta.md +13 -3
  46. data/docs/GetRealTimeTimeseriesResponse.md +17 -5
  47. data/docs/Incident.md +53 -23
  48. data/docs/IncidentBreakdown.md +17 -5
  49. data/docs/IncidentNotification.md +17 -5
  50. data/docs/IncidentNotificationRule.md +21 -7
  51. data/docs/IncidentResponse.md +15 -4
  52. data/docs/IncidentsApi.md +115 -59
  53. data/docs/InputFile.md +15 -4
  54. data/docs/InputInfo.md +15 -4
  55. data/docs/InputSettings.md +31 -12
  56. data/docs/InputSettingsOverlaySettings.md +25 -9
  57. data/docs/InputTrack.md +29 -11
  58. data/docs/Insight.md +23 -8
  59. data/docs/ListAllMetricValuesResponse.md +17 -5
  60. data/docs/ListAssetsResponse.md +13 -3
  61. data/docs/ListBreakdownValuesResponse.md +17 -5
  62. data/docs/ListDeliveryUsageResponse.md +19 -6
  63. data/docs/ListDimensionValuesResponse.md +17 -5
  64. data/docs/ListDimensionsResponse.md +17 -5
  65. data/docs/ListErrorsResponse.md +17 -5
  66. data/docs/ListExportsResponse.md +17 -5
  67. data/docs/ListFilterValuesResponse.md +17 -5
  68. data/docs/ListFiltersResponse.md +17 -5
  69. data/docs/ListFiltersResponseData.md +15 -4
  70. data/docs/ListIncidentsResponse.md +17 -5
  71. data/docs/ListInsightsResponse.md +17 -5
  72. data/docs/ListLiveStreamsResponse.md +13 -3
  73. data/docs/ListRealTimeDimensionsResponse.md +17 -5
  74. data/docs/ListRealTimeDimensionsResponseData.md +15 -4
  75. data/docs/ListRealTimeMetricsResponse.md +17 -5
  76. data/docs/ListRelatedIncidentsResponse.md +17 -5
  77. data/docs/ListSigningKeysResponse.md +13 -3
  78. data/docs/ListUploadsResponse.md +13 -3
  79. data/docs/ListVideoViewsResponse.md +17 -5
  80. data/docs/LiveStream.md +37 -15
  81. data/docs/LiveStreamResponse.md +13 -3
  82. data/docs/LiveStreamsApi.md +418 -170
  83. data/docs/Metric.md +21 -7
  84. data/docs/MetricsApi.md +206 -112
  85. data/docs/NotificationRule.md +17 -5
  86. data/docs/OverallValues.md +19 -6
  87. data/docs/PlaybackID.md +15 -4
  88. data/docs/PlaybackIDApi.md +34 -16
  89. data/docs/PlaybackPolicy.md +10 -2
  90. data/docs/RealTimeApi.md +172 -76
  91. data/docs/RealTimeBreakdownValue.md +21 -7
  92. data/docs/RealTimeHistogramTimeseriesBucket.md +15 -4
  93. data/docs/RealTimeHistogramTimeseriesBucketValues.md +15 -4
  94. data/docs/RealTimeHistogramTimeseriesDatapoint.md +25 -9
  95. data/docs/RealTimeTimeseriesDatapoint.md +17 -5
  96. data/docs/Score.md +23 -8
  97. data/docs/SignalLiveStreamCompleteResponse.md +13 -3
  98. data/docs/SigningKey.md +17 -5
  99. data/docs/SigningKeyResponse.md +13 -3
  100. data/docs/SimulcastTarget.md +21 -7
  101. data/docs/SimulcastTargetResponse.md +13 -3
  102. data/docs/Track.md +37 -15
  103. data/docs/URLSigningKeysApi.md +127 -51
  104. data/docs/UpdateAssetMP4SupportRequest.md +13 -3
  105. data/docs/UpdateAssetMasterAccessRequest.md +13 -3
  106. data/docs/Upload.md +29 -11
  107. data/docs/UploadError.md +15 -4
  108. data/docs/UploadResponse.md +13 -3
  109. data/docs/VideoView.md +235 -114
  110. data/docs/VideoViewEvent.md +19 -6
  111. data/docs/VideoViewResponse.md +15 -4
  112. data/docs/VideoViewsApi.md +76 -39
  113. data/gen/.gitignore +7 -0
  114. data/gen/Makefile +31 -0
  115. data/gen/generator-config.json +11 -0
  116. data/gen/openapitools.json +7 -0
  117. data/gen/package.json +17 -0
  118. data/gen/templates/Gemfile.mustache +11 -0
  119. data/gen/templates/README.mustache +158 -0
  120. data/gen/templates/Rakefile.mustache +10 -0
  121. data/gen/templates/api.mustache +206 -0
  122. data/gen/templates/api_client.mustache +264 -0
  123. data/gen/templates/api_client_faraday_partial.mustache +138 -0
  124. data/gen/templates/api_client_spec.mustache +220 -0
  125. data/gen/templates/api_client_typhoeus_partial.mustache +183 -0
  126. data/gen/templates/api_doc.mustache +118 -0
  127. data/gen/templates/api_error.mustache +67 -0
  128. data/gen/templates/api_info.mustache +12 -0
  129. data/gen/templates/api_test.mustache +47 -0
  130. data/gen/templates/base_object.mustache +120 -0
  131. data/gen/templates/configuration.mustache +349 -0
  132. data/gen/templates/configuration_spec.mustache +34 -0
  133. data/gen/templates/configuration_tls_faraday_partial.mustache +29 -0
  134. data/gen/templates/configuration_tls_typhoeus_partial.mustache +34 -0
  135. data/gen/templates/gem.mustache +40 -0
  136. data/gen/templates/gemspec.mustache +35 -0
  137. data/gen/templates/gitignore.mustache +39 -0
  138. data/gen/templates/model.mustache +26 -0
  139. data/gen/templates/model_doc.mustache +12 -0
  140. data/gen/templates/model_test.mustache +77 -0
  141. data/gen/templates/partial_model_enum_class.mustache +20 -0
  142. data/gen/templates/partial_model_generic.mustache +371 -0
  143. data/gen/templates/partial_model_generic_doc.mustache +28 -0
  144. data/gen/templates/partial_oneof_module.mustache +137 -0
  145. data/gen/templates/partial_oneof_module_doc.mustache +92 -0
  146. data/gen/templates/rspec.mustache +2 -0
  147. data/gen/templates/rubocop.mustache +148 -0
  148. data/gen/templates/spec_helper.mustache +103 -0
  149. data/gen/templates/version.mustache +7 -0
  150. data/gen/yarn.lock +1878 -0
  151. data/lib/mux_ruby.rb +9 -2
  152. data/lib/mux_ruby/api/assets_api.rb +279 -150
  153. data/lib/mux_ruby/api/delivery_usage_api.rb +28 -12
  154. data/lib/mux_ruby/api/dimensions_api.rb +55 -29
  155. data/lib/mux_ruby/api/direct_uploads_api.rb +90 -44
  156. data/lib/mux_ruby/api/errors_api.rb +32 -16
  157. data/lib/mux_ruby/api/exports_api.rb +28 -12
  158. data/lib/mux_ruby/api/filters_api.rb +53 -27
  159. data/lib/mux_ruby/api/incidents_api.rb +88 -46
  160. data/lib/mux_ruby/api/live_streams_api.rb +299 -157
  161. data/lib/mux_ruby/api/metrics_api.rb +175 -104
  162. data/lib/mux_ruby/api/playback_id_api.rb +31 -15
  163. data/lib/mux_ruby/api/real_time_api.rb +139 -77
  164. data/lib/mux_ruby/api/url_signing_keys_api.rb +89 -42
  165. data/lib/mux_ruby/api/video_views_api.rb +56 -29
  166. data/lib/mux_ruby/api_client.rb +94 -79
  167. data/lib/mux_ruby/api_error.rb +35 -7
  168. data/lib/mux_ruby/configuration.rb +50 -14
  169. data/lib/mux_ruby/models/abridged_video_view.rb +58 -24
  170. data/lib/mux_ruby/models/asset.rb +88 -61
  171. data/lib/mux_ruby/models/asset_errors.rb +50 -15
  172. data/lib/mux_ruby/models/asset_master.rb +52 -17
  173. data/lib/mux_ruby/models/asset_non_standard_input_reasons.rb +70 -35
  174. data/lib/mux_ruby/models/asset_recording_times.rb +50 -16
  175. data/lib/mux_ruby/models/asset_response.rb +48 -14
  176. data/lib/mux_ruby/models/asset_static_renditions.rb +53 -17
  177. data/lib/mux_ruby/models/asset_static_renditions_files.rb +58 -23
  178. data/lib/mux_ruby/models/breakdown_value.rb +52 -18
  179. data/lib/mux_ruby/models/create_asset_request.rb +64 -30
  180. data/lib/mux_ruby/models/create_live_stream_request.rb +57 -22
  181. data/lib/mux_ruby/models/create_playback_id_request.rb +48 -14
  182. data/lib/mux_ruby/models/create_playback_id_response.rb +48 -14
  183. data/lib/mux_ruby/models/create_simulcast_target_request.rb +50 -16
  184. data/lib/mux_ruby/models/create_track_request.rb +59 -25
  185. data/lib/mux_ruby/models/create_track_response.rb +48 -14
  186. data/lib/mux_ruby/models/create_upload_request.rb +52 -18
  187. data/lib/mux_ruby/models/delivery_report.rb +106 -21
  188. data/lib/mux_ruby/models/dimension_value.rb +49 -15
  189. data/lib/mux_ruby/models/disable_live_stream_response.rb +48 -14
  190. data/lib/mux_ruby/models/enable_live_stream_response.rb +48 -14
  191. data/lib/mux_ruby/models/error.rb +63 -21
  192. data/lib/mux_ruby/models/filter_value.rb +49 -15
  193. data/lib/mux_ruby/models/get_asset_input_info_response.rb +48 -14
  194. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response.rb +48 -14
  195. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data.rb +50 -16
  196. data/lib/mux_ruby/models/get_asset_or_live_stream_id_response_data_object.rb +51 -17
  197. data/lib/mux_ruby/models/get_asset_playback_id_response.rb +48 -14
  198. data/lib/mux_ruby/models/get_metric_timeseries_data_response.rb +50 -16
  199. data/lib/mux_ruby/models/get_overall_values_response.rb +50 -16
  200. data/lib/mux_ruby/models/get_real_time_breakdown_response.rb +50 -16
  201. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response.rb +51 -17
  202. data/lib/mux_ruby/models/get_real_time_histogram_timeseries_response_meta.rb +48 -14
  203. data/lib/mux_ruby/models/get_real_time_timeseries_response.rb +50 -16
  204. data/lib/mux_ruby/models/incident.rb +68 -34
  205. data/lib/mux_ruby/models/incident_breakdown.rb +50 -16
  206. data/lib/mux_ruby/models/incident_notification.rb +50 -16
  207. data/lib/mux_ruby/models/incident_notification_rule.rb +52 -18
  208. data/lib/mux_ruby/models/incident_response.rb +49 -15
  209. data/lib/mux_ruby/models/input_file.rb +49 -15
  210. data/lib/mux_ruby/models/input_info.rb +49 -15
  211. data/lib/mux_ruby/models/input_settings.rb +64 -30
  212. data/lib/mux_ruby/models/input_settings_overlay_settings.rb +58 -24
  213. data/lib/mux_ruby/models/input_track.rb +56 -22
  214. data/lib/mux_ruby/models/insight.rb +53 -19
  215. data/lib/mux_ruby/models/list_all_metric_values_response.rb +50 -16
  216. data/lib/mux_ruby/models/list_assets_response.rb +48 -14
  217. data/lib/mux_ruby/models/list_breakdown_values_response.rb +50 -16
  218. data/lib/mux_ruby/models/list_delivery_usage_response.rb +51 -17
  219. data/lib/mux_ruby/models/list_dimension_values_response.rb +50 -16
  220. data/lib/mux_ruby/models/list_dimensions_response.rb +50 -16
  221. data/lib/mux_ruby/models/list_errors_response.rb +50 -16
  222. data/lib/mux_ruby/models/list_exports_response.rb +50 -16
  223. data/lib/mux_ruby/models/list_filter_values_response.rb +50 -16
  224. data/lib/mux_ruby/models/list_filters_response.rb +50 -16
  225. data/lib/mux_ruby/models/list_filters_response_data.rb +49 -15
  226. data/lib/mux_ruby/models/list_incidents_response.rb +50 -16
  227. data/lib/mux_ruby/models/list_insights_response.rb +50 -16
  228. data/lib/mux_ruby/models/list_live_streams_response.rb +48 -14
  229. data/lib/mux_ruby/models/list_real_time_dimensions_response.rb +50 -16
  230. data/lib/mux_ruby/models/list_real_time_dimensions_response_data.rb +49 -15
  231. data/lib/mux_ruby/models/list_real_time_metrics_response.rb +50 -16
  232. data/lib/mux_ruby/models/list_related_incidents_response.rb +50 -16
  233. data/lib/mux_ruby/models/list_signing_keys_response.rb +48 -14
  234. data/lib/mux_ruby/models/list_uploads_response.rb +48 -14
  235. data/lib/mux_ruby/models/list_video_views_response.rb +50 -16
  236. data/lib/mux_ruby/models/live_stream.rb +110 -28
  237. data/lib/mux_ruby/models/live_stream_response.rb +48 -14
  238. data/lib/mux_ruby/models/metric.rb +52 -18
  239. data/lib/mux_ruby/models/notification_rule.rb +50 -16
  240. data/lib/mux_ruby/models/overall_values.rb +51 -17
  241. data/lib/mux_ruby/models/playback_id.rb +49 -15
  242. data/lib/mux_ruby/models/playback_policy.rb +12 -6
  243. data/lib/mux_ruby/models/real_time_breakdown_value.rb +52 -18
  244. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket.rb +50 -16
  245. data/lib/mux_ruby/models/real_time_histogram_timeseries_bucket_values.rb +49 -15
  246. data/lib/mux_ruby/models/real_time_histogram_timeseries_datapoint.rb +54 -20
  247. data/lib/mux_ruby/models/real_time_timeseries_datapoint.rb +50 -16
  248. data/lib/mux_ruby/models/score.rb +53 -19
  249. data/lib/mux_ruby/models/signal_live_stream_complete_response.rb +48 -14
  250. data/lib/mux_ruby/models/signing_key.rb +53 -16
  251. data/lib/mux_ruby/models/signing_key_response.rb +48 -14
  252. data/lib/mux_ruby/models/simulcast_target.rb +54 -20
  253. data/lib/mux_ruby/models/simulcast_target_response.rb +48 -14
  254. data/lib/mux_ruby/models/track.rb +67 -33
  255. data/lib/mux_ruby/models/update_asset_master_access_request.rb +50 -16
  256. data/lib/mux_ruby/models/update_asset_mp4_support_request.rb +50 -16
  257. data/lib/mux_ruby/models/upload.rb +61 -25
  258. data/lib/mux_ruby/models/upload_error.rb +51 -15
  259. data/lib/mux_ruby/models/upload_response.rb +48 -14
  260. data/lib/mux_ruby/models/video_view.rb +166 -132
  261. data/lib/mux_ruby/models/video_view_event.rb +51 -17
  262. data/lib/mux_ruby/models/video_view_response.rb +49 -15
  263. data/lib/mux_ruby/version.rb +10 -3
  264. data/mux_ruby.gemspec +15 -17
  265. data/spec/api_client_spec.rb +10 -3
  266. data/spec/configuration_spec.rb +9 -2
  267. data/spec/spec_helper.rb +9 -2
  268. metadata +139 -242
data/docs/Metric.md CHANGED
@@ -1,12 +1,26 @@
1
1
  # MuxRuby::Metric
2
2
 
3
3
  ## Properties
4
- Name | Type | Description | Notes
5
- ------------ | ------------- | ------------- | -------------
6
- **value** | **Float** | | [optional]
7
- **type** | **String** | | [optional]
8
- **name** | **String** | | [optional]
9
- **metric** | **String** | | [optional]
10
- **measurement** | **String** | | [optional]
11
4
 
5
+ | Name | Type | Description | Notes |
6
+ | ---- | ---- | ----------- | ----- |
7
+ | **value** | **Float** | | [optional] |
8
+ | **type** | **String** | | [optional] |
9
+ | **name** | **String** | | [optional] |
10
+ | **metric** | **String** | | [optional] |
11
+ | **measurement** | **String** | | [optional] |
12
+
13
+ ## Example
14
+
15
+ ```ruby
16
+ require 'mux_ruby'
17
+
18
+ instance = MuxRuby::Metric.new(
19
+ value: null,
20
+ type: null,
21
+ name: null,
22
+ metric: null,
23
+ measurement: null
24
+ )
25
+ ```
12
26
 
data/docs/MetricsApi.md CHANGED
@@ -2,25 +2,27 @@
2
2
 
3
3
  All URIs are relative to *https://api.mux.com*
4
4
 
5
- Method | HTTP request | Description
6
- ------------- | ------------- | -------------
7
- [**get_metric_timeseries_data**](MetricsApi.md#get_metric_timeseries_data) | **GET** /data/v1/metrics/{METRIC_ID}/timeseries | Get metric timeseries data
8
- [**get_overall_values**](MetricsApi.md#get_overall_values) | **GET** /data/v1/metrics/{METRIC_ID}/overall | Get Overall values
9
- [**list_all_metric_values**](MetricsApi.md#list_all_metric_values) | **GET** /data/v1/metrics/comparison | List all metric values
10
- [**list_breakdown_values**](MetricsApi.md#list_breakdown_values) | **GET** /data/v1/metrics/{METRIC_ID}/breakdown | List breakdown values
11
- [**list_insights**](MetricsApi.md#list_insights) | **GET** /data/v1/metrics/{METRIC_ID}/insights | List Insights
5
+ | Method | HTTP request | Description |
6
+ | ------ | ------------ | ----------- |
7
+ | [**get_metric_timeseries_data**](MetricsApi.md#get_metric_timeseries_data) | **GET** /data/v1/metrics/{METRIC_ID}/timeseries | Get metric timeseries data |
8
+ | [**get_overall_values**](MetricsApi.md#get_overall_values) | **GET** /data/v1/metrics/{METRIC_ID}/overall | Get Overall values |
9
+ | [**list_all_metric_values**](MetricsApi.md#list_all_metric_values) | **GET** /data/v1/metrics/comparison | List all metric values |
10
+ | [**list_breakdown_values**](MetricsApi.md#list_breakdown_values) | **GET** /data/v1/metrics/{METRIC_ID}/breakdown | List breakdown values |
11
+ | [**list_insights**](MetricsApi.md#list_insights) | **GET** /data/v1/metrics/{METRIC_ID}/insights | List Insights |
12
12
 
13
13
 
14
- # **get_metric_timeseries_data**
15
- > GetMetricTimeseriesDataResponse get_metric_timeseries_data(metric_id, opts)
14
+ ## get_metric_timeseries_data
15
+
16
+ > <GetMetricTimeseriesDataResponse> get_metric_timeseries_data(metric_id, opts)
16
17
 
17
18
  Get metric timeseries data
18
19
 
19
20
  Returns timeseries data for a specific metric
20
21
 
21
- ### Example
22
+ ### Examples
23
+
22
24
  ```ruby
23
- # load the gem
25
+ require 'time'
24
26
  require 'mux_ruby'
25
27
  # setup authorization
26
28
  MuxRuby.configure do |config|
@@ -30,34 +32,52 @@ MuxRuby.configure do |config|
30
32
  end
31
33
 
32
34
  api_instance = MuxRuby::MetricsApi.new
33
- metric_id = 'video_startup_time' # String | ID of the Metric
35
+ metric_id = 'aggregate_startup_time' # String | ID of the Metric
34
36
  opts = {
35
- timeframe: ['timeframe_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.
36
- 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.
37
- measurement: 'measurement_example', # String | Measurement for the provided metric. If omitted, the deafult for the metric will be used.
38
- order_direction: 'order_direction_example', # String | Sort order.
39
- group_by: 'group_by_example' # String | Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the supplied timeframe.
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> | 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.
39
+ measurement: '95th', # String | Measurement for the provided metric. If omitted, the deafult for the metric will be used.
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 supplied timeframe.
40
42
  }
41
43
 
42
44
  begin
43
- #Get metric timeseries data
45
+ # Get metric timeseries data
44
46
  result = api_instance.get_metric_timeseries_data(metric_id, opts)
45
47
  p result
46
48
  rescue MuxRuby::ApiError => e
47
- puts "Exception when calling MetricsApi->get_metric_timeseries_data: #{e}"
49
+ puts "Error when calling MetricsApi->get_metric_timeseries_data: #{e}"
50
+ end
51
+ ```
52
+
53
+ #### Using the get_metric_timeseries_data_with_http_info variant
54
+
55
+ This returns an Array which contains the response data, status code and headers.
56
+
57
+ > <Array(<GetMetricTimeseriesDataResponse>, Integer, Hash)> get_metric_timeseries_data_with_http_info(metric_id, opts)
58
+
59
+ ```ruby
60
+ begin
61
+ # Get metric timeseries data
62
+ data, status_code, headers = api_instance.get_metric_timeseries_data_with_http_info(metric_id, opts)
63
+ p status_code # => 2xx
64
+ p headers # => { ... }
65
+ p data # => <GetMetricTimeseriesDataResponse>
66
+ rescue MuxRuby::ApiError => e
67
+ puts "Error when calling MetricsApi->get_metric_timeseries_data_with_http_info: #{e}"
48
68
  end
49
69
  ```
50
70
 
51
71
  ### Parameters
52
72
 
53
- Name | Type | Description | Notes
54
- ------------- | ------------- | ------------- | -------------
55
- **metric_id** | **String**| ID of the Metric |
56
- **timeframe** | [**Array&lt;String&gt;**](String.md)| 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional]
57
- **filters** | [**Array&lt;String&gt;**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
58
- **measurement** | **String**| Measurement for the provided metric. If omitted, the deafult for the metric will be used. | [optional]
59
- **order_direction** | **String**| Sort order. | [optional]
60
- **group_by** | **String**| Time granularity to group results by. If this value is omitted, a default granularity is chosen based on the supplied timeframe. | [optional]
73
+ | Name | Type | Description | Notes |
74
+ | ---- | ---- | ----------- | ----- |
75
+ | **metric_id** | **String** | ID of the Metric | |
76
+ | **timeframe** | [**Array&lt;String&gt;**](String.md) | 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional] |
77
+ | **filters** | [**Array&lt;String&gt;**](String.md) | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional] |
78
+ | **measurement** | **String** | Measurement for the provided metric. If omitted, the deafult for the metric will be used. | [optional] |
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 supplied timeframe. | [optional] |
61
81
 
62
82
  ### Return type
63
83
 
@@ -69,21 +89,22 @@ Name | Type | Description | Notes
69
89
 
70
90
  ### HTTP request headers
71
91
 
72
- - **Content-Type**: Not defined
73
- - **Accept**: application/json
92
+ - **Content-Type**: Not defined
93
+ - **Accept**: application/json
74
94
 
75
95
 
96
+ ## get_overall_values
76
97
 
77
- # **get_overall_values**
78
- > GetOverallValuesResponse get_overall_values(metric_id, opts)
98
+ > <GetOverallValuesResponse> get_overall_values(metric_id, opts)
79
99
 
80
100
  Get Overall values
81
101
 
82
102
  Returns the overall value for a specific metric, as well as the total view count, watch time, and the Mux Global metric value for the metric.
83
103
 
84
- ### Example
104
+ ### Examples
105
+
85
106
  ```ruby
86
- # load the gem
107
+ require 'time'
87
108
  require 'mux_ruby'
88
109
  # setup authorization
89
110
  MuxRuby.configure do |config|
@@ -93,30 +114,48 @@ MuxRuby.configure do |config|
93
114
  end
94
115
 
95
116
  api_instance = MuxRuby::MetricsApi.new
96
- metric_id = 'video_startup_time' # String | ID of the Metric
117
+ metric_id = 'aggregate_startup_time' # String | ID of the Metric
97
118
  opts = {
98
- timeframe: ['timeframe_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.
99
- 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.
100
- measurement: 'measurement_example' # String | Measurement for the provided metric. If omitted, the deafult for the metric will be used.
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> | 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.
121
+ measurement: '95th' # String | Measurement for the provided metric. If omitted, the deafult for the metric will be used.
101
122
  }
102
123
 
103
124
  begin
104
- #Get Overall values
125
+ # Get Overall values
105
126
  result = api_instance.get_overall_values(metric_id, opts)
106
127
  p result
107
128
  rescue MuxRuby::ApiError => e
108
- puts "Exception when calling MetricsApi->get_overall_values: #{e}"
129
+ puts "Error when calling MetricsApi->get_overall_values: #{e}"
130
+ end
131
+ ```
132
+
133
+ #### Using the get_overall_values_with_http_info variant
134
+
135
+ This returns an Array which contains the response data, status code and headers.
136
+
137
+ > <Array(<GetOverallValuesResponse>, Integer, Hash)> get_overall_values_with_http_info(metric_id, opts)
138
+
139
+ ```ruby
140
+ begin
141
+ # Get Overall values
142
+ data, status_code, headers = api_instance.get_overall_values_with_http_info(metric_id, opts)
143
+ p status_code # => 2xx
144
+ p headers # => { ... }
145
+ p data # => <GetOverallValuesResponse>
146
+ rescue MuxRuby::ApiError => e
147
+ puts "Error when calling MetricsApi->get_overall_values_with_http_info: #{e}"
109
148
  end
110
149
  ```
111
150
 
112
151
  ### Parameters
113
152
 
114
- Name | Type | Description | Notes
115
- ------------- | ------------- | ------------- | -------------
116
- **metric_id** | **String**| ID of the Metric |
117
- **timeframe** | [**Array&lt;String&gt;**](String.md)| 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional]
118
- **filters** | [**Array&lt;String&gt;**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
119
- **measurement** | **String**| Measurement for the provided metric. If omitted, the deafult for the metric will be used. | [optional]
153
+ | Name | Type | Description | Notes |
154
+ | ---- | ---- | ----------- | ----- |
155
+ | **metric_id** | **String** | ID of the Metric | |
156
+ | **timeframe** | [**Array&lt;String&gt;**](String.md) | 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional] |
157
+ | **filters** | [**Array&lt;String&gt;**](String.md) | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional] |
158
+ | **measurement** | **String** | Measurement for the provided metric. If omitted, the deafult for the metric will be used. | [optional] |
120
159
 
121
160
  ### Return type
122
161
 
@@ -128,21 +167,22 @@ Name | Type | Description | Notes
128
167
 
129
168
  ### HTTP request headers
130
169
 
131
- - **Content-Type**: Not defined
132
- - **Accept**: application/json
170
+ - **Content-Type**: Not defined
171
+ - **Accept**: application/json
133
172
 
134
173
 
174
+ ## list_all_metric_values
135
175
 
136
- # **list_all_metric_values**
137
- > ListAllMetricValuesResponse list_all_metric_values(opts)
176
+ > <ListAllMetricValuesResponse> list_all_metric_values(opts)
138
177
 
139
178
  List all metric values
140
179
 
141
180
  List all of the values across every breakdown for a specific metric
142
181
 
143
- ### Example
182
+ ### Examples
183
+
144
184
  ```ruby
145
- # load the gem
185
+ require 'time'
146
186
  require 'mux_ruby'
147
187
  # setup authorization
148
188
  MuxRuby.configure do |config|
@@ -153,29 +193,47 @@ end
153
193
 
154
194
  api_instance = MuxRuby::MetricsApi.new
155
195
  opts = {
156
- timeframe: ['timeframe_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.
157
- 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.
158
- dimension: 'dimension_example', # String | Dimension the specified value belongs to
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> | 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.
198
+ dimension: 'asn', # String | Dimension the specified value belongs to
159
199
  value: 'value_example' # String | Value to show all available metrics for
160
200
  }
161
201
 
162
202
  begin
163
- #List all metric values
203
+ # List all metric values
164
204
  result = api_instance.list_all_metric_values(opts)
165
205
  p result
166
206
  rescue MuxRuby::ApiError => e
167
- puts "Exception when calling MetricsApi->list_all_metric_values: #{e}"
207
+ puts "Error when calling MetricsApi->list_all_metric_values: #{e}"
208
+ end
209
+ ```
210
+
211
+ #### Using the list_all_metric_values_with_http_info variant
212
+
213
+ This returns an Array which contains the response data, status code and headers.
214
+
215
+ > <Array(<ListAllMetricValuesResponse>, Integer, Hash)> list_all_metric_values_with_http_info(opts)
216
+
217
+ ```ruby
218
+ begin
219
+ # List all metric values
220
+ data, status_code, headers = api_instance.list_all_metric_values_with_http_info(opts)
221
+ p status_code # => 2xx
222
+ p headers # => { ... }
223
+ p data # => <ListAllMetricValuesResponse>
224
+ rescue MuxRuby::ApiError => e
225
+ puts "Error when calling MetricsApi->list_all_metric_values_with_http_info: #{e}"
168
226
  end
169
227
  ```
170
228
 
171
229
  ### Parameters
172
230
 
173
- Name | Type | Description | Notes
174
- ------------- | ------------- | ------------- | -------------
175
- **timeframe** | [**Array&lt;String&gt;**](String.md)| 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional]
176
- **filters** | [**Array&lt;String&gt;**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
177
- **dimension** | **String**| Dimension the specified value belongs to | [optional]
178
- **value** | **String**| Value to show all available metrics for | [optional]
231
+ | Name | Type | Description | Notes |
232
+ | ---- | ---- | ----------- | ----- |
233
+ | **timeframe** | [**Array&lt;String&gt;**](String.md) | 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional] |
234
+ | **filters** | [**Array&lt;String&gt;**](String.md) | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional] |
235
+ | **dimension** | **String** | Dimension the specified value belongs to | [optional] |
236
+ | **value** | **String** | Value to show all available metrics for | [optional] |
179
237
 
180
238
  ### Return type
181
239
 
@@ -187,21 +245,22 @@ Name | Type | Description | Notes
187
245
 
188
246
  ### HTTP request headers
189
247
 
190
- - **Content-Type**: Not defined
191
- - **Accept**: application/json
248
+ - **Content-Type**: Not defined
249
+ - **Accept**: application/json
192
250
 
193
251
 
252
+ ## list_breakdown_values
194
253
 
195
- # **list_breakdown_values**
196
- > ListBreakdownValuesResponse list_breakdown_values(metric_id, opts)
254
+ > <ListBreakdownValuesResponse> list_breakdown_values(metric_id, opts)
197
255
 
198
256
  List breakdown values
199
257
 
200
258
  List the breakdown values for a specific metric
201
259
 
202
- ### Example
260
+ ### Examples
261
+
203
262
  ```ruby
204
- # load the gem
263
+ require 'time'
205
264
  require 'mux_ruby'
206
265
  # setup authorization
207
266
  MuxRuby.configure do |config|
@@ -211,40 +270,58 @@ MuxRuby.configure do |config|
211
270
  end
212
271
 
213
272
  api_instance = MuxRuby::MetricsApi.new
214
- metric_id = 'video_startup_time' # String | ID of the Metric
273
+ metric_id = 'aggregate_startup_time' # String | ID of the Metric
215
274
  opts = {
216
- group_by: 'group_by_example', # String | Breakdown value to group the results by
217
- measurement: 'measurement_example', # String | Measurement for the provided metric. If omitted, the deafult for the metric will be used.
218
- 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.
219
- limit: 25, # Integer | Number of items to include in the response
220
- page: 1, # Integer | Offset by this many pages, of the size of `limit`
221
- order_by: 'order_by_example', # String | Value to order the results by
222
- order_direction: 'order_direction_example', # String | Sort order.
223
- timeframe: ['timeframe_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.
275
+ group_by: 'asn', # String | Breakdown value to group the results by
276
+ measurement: '95th', # String | Measurement for the provided metric. If omitted, the deafult for the metric will be used.
277
+ filters: ['inner_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.
278
+ limit: 56, # Integer | Number of items to include in the response
279
+ page: 56, # Integer | Offset by this many pages, of the size of `limit`
280
+ order_by: 'negative_impact', # String | Value to order the results by
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[]=). Accepted formats are... * array of epoch timestamps e.g. timeframe[]=1498867200&timeframe[]=1498953600 * duration string e.g. timeframe[]=24:hours or timeframe[]=7:days.
224
283
  }
225
284
 
226
285
  begin
227
- #List breakdown values
286
+ # List breakdown values
228
287
  result = api_instance.list_breakdown_values(metric_id, opts)
229
288
  p result
230
289
  rescue MuxRuby::ApiError => e
231
- puts "Exception when calling MetricsApi->list_breakdown_values: #{e}"
290
+ puts "Error when calling MetricsApi->list_breakdown_values: #{e}"
291
+ end
292
+ ```
293
+
294
+ #### Using the list_breakdown_values_with_http_info variant
295
+
296
+ This returns an Array which contains the response data, status code and headers.
297
+
298
+ > <Array(<ListBreakdownValuesResponse>, Integer, Hash)> list_breakdown_values_with_http_info(metric_id, opts)
299
+
300
+ ```ruby
301
+ begin
302
+ # List breakdown values
303
+ data, status_code, headers = api_instance.list_breakdown_values_with_http_info(metric_id, opts)
304
+ p status_code # => 2xx
305
+ p headers # => { ... }
306
+ p data # => <ListBreakdownValuesResponse>
307
+ rescue MuxRuby::ApiError => e
308
+ puts "Error when calling MetricsApi->list_breakdown_values_with_http_info: #{e}"
232
309
  end
233
310
  ```
234
311
 
235
312
  ### Parameters
236
313
 
237
- Name | Type | Description | Notes
238
- ------------- | ------------- | ------------- | -------------
239
- **metric_id** | **String**| ID of the Metric |
240
- **group_by** | **String**| Breakdown value to group the results by | [optional]
241
- **measurement** | **String**| Measurement for the provided metric. If omitted, the deafult for the metric will be used. | [optional]
242
- **filters** | [**Array&lt;String&gt;**](String.md)| Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional]
243
- **limit** | **Integer**| Number of items to include in the response | [optional] [default to 25]
244
- **page** | **Integer**| Offset by this many pages, of the size of &#x60;limit&#x60; | [optional] [default to 1]
245
- **order_by** | **String**| Value to order the results by | [optional]
246
- **order_direction** | **String**| Sort order. | [optional]
247
- **timeframe** | [**Array&lt;String&gt;**](String.md)| 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional]
314
+ | Name | Type | Description | Notes |
315
+ | ---- | ---- | ----------- | ----- |
316
+ | **metric_id** | **String** | ID of the Metric | |
317
+ | **group_by** | **String** | Breakdown value to group the results by | [optional] |
318
+ | **measurement** | **String** | Measurement for the provided metric. If omitted, the deafult for the metric will be used. | [optional] |
319
+ | **filters** | [**Array&lt;String&gt;**](String.md) | Filter key:value pairs. Must be provided as an array query string parameter (e.g. filters[]&#x3D;operating_system:windows&amp;filters[]&#x3D;country:US). Possible filter names are the same as returned by the List Filters endpoint. | [optional] |
320
+ | **limit** | **Integer** | Number of items to include in the response | [optional][default to 25] |
321
+ | **page** | **Integer** | Offset by this many pages, of the size of &#x60;limit&#x60; | [optional][default to 1] |
322
+ | **order_by** | **String** | Value to order the results by | [optional] |
323
+ | **order_direction** | **String** | Sort order. | [optional] |
324
+ | **timeframe** | [**Array&lt;String&gt;**](String.md) | 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional] |
248
325
 
249
326
  ### Return type
250
327
 
@@ -256,21 +333,22 @@ Name | Type | Description | Notes
256
333
 
257
334
  ### HTTP request headers
258
335
 
259
- - **Content-Type**: Not defined
260
- - **Accept**: application/json
336
+ - **Content-Type**: Not defined
337
+ - **Accept**: application/json
261
338
 
262
339
 
340
+ ## list_insights
263
341
 
264
- # **list_insights**
265
- > ListInsightsResponse list_insights(metric_id, opts)
342
+ > <ListInsightsResponse> list_insights(metric_id, opts)
266
343
 
267
344
  List Insights
268
345
 
269
346
  Returns a list of insights for a metric. These are the worst performing values across all breakdowns sorted by how much they negatively impact a specific metric.
270
347
 
271
- ### Example
348
+ ### Examples
349
+
272
350
  ```ruby
273
- # load the gem
351
+ require 'time'
274
352
  require 'mux_ruby'
275
353
  # setup authorization
276
354
  MuxRuby.configure do |config|
@@ -280,30 +358,48 @@ MuxRuby.configure do |config|
280
358
  end
281
359
 
282
360
  api_instance = MuxRuby::MetricsApi.new
283
- metric_id = 'video_startup_time' # String | ID of the Metric
361
+ metric_id = 'aggregate_startup_time' # String | ID of the Metric
284
362
  opts = {
285
- measurement: 'measurement_example', # String | Measurement for the provided metric. If omitted, the deafult for the metric will be used.
286
- order_direction: 'order_direction_example', # String | Sort order.
287
- timeframe: ['timeframe_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.
363
+ measurement: '95th', # String | Measurement for the provided metric. If omitted, the deafult for the metric will be used.
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[]=). Accepted formats are... * array of epoch timestamps e.g. timeframe[]=1498867200&timeframe[]=1498953600 * duration string e.g. timeframe[]=24:hours or timeframe[]=7:days.
288
366
  }
289
367
 
290
368
  begin
291
- #List Insights
369
+ # List Insights
292
370
  result = api_instance.list_insights(metric_id, opts)
293
371
  p result
294
372
  rescue MuxRuby::ApiError => e
295
- puts "Exception when calling MetricsApi->list_insights: #{e}"
373
+ puts "Error when calling MetricsApi->list_insights: #{e}"
374
+ end
375
+ ```
376
+
377
+ #### Using the list_insights_with_http_info variant
378
+
379
+ This returns an Array which contains the response data, status code and headers.
380
+
381
+ > <Array(<ListInsightsResponse>, Integer, Hash)> list_insights_with_http_info(metric_id, opts)
382
+
383
+ ```ruby
384
+ begin
385
+ # List Insights
386
+ data, status_code, headers = api_instance.list_insights_with_http_info(metric_id, opts)
387
+ p status_code # => 2xx
388
+ p headers # => { ... }
389
+ p data # => <ListInsightsResponse>
390
+ rescue MuxRuby::ApiError => e
391
+ puts "Error when calling MetricsApi->list_insights_with_http_info: #{e}"
296
392
  end
297
393
  ```
298
394
 
299
395
  ### Parameters
300
396
 
301
- Name | Type | Description | Notes
302
- ------------- | ------------- | ------------- | -------------
303
- **metric_id** | **String**| ID of the Metric |
304
- **measurement** | **String**| Measurement for the provided metric. If omitted, the deafult for the metric will be used. | [optional]
305
- **order_direction** | **String**| Sort order. | [optional]
306
- **timeframe** | [**Array&lt;String&gt;**](String.md)| 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional]
397
+ | Name | Type | Description | Notes |
398
+ | ---- | ---- | ----------- | ----- |
399
+ | **metric_id** | **String** | ID of the Metric | |
400
+ | **measurement** | **String** | Measurement for the provided metric. If omitted, the deafult for the metric will be used. | [optional] |
401
+ | **order_direction** | **String** | Sort order. | [optional] |
402
+ | **timeframe** | [**Array&lt;String&gt;**](String.md) | 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. timeframe[]&#x3D;1498867200&amp;timeframe[]&#x3D;1498953600 * duration string e.g. timeframe[]&#x3D;24:hours or timeframe[]&#x3D;7:days. | [optional] |
307
403
 
308
404
  ### Return type
309
405
 
@@ -315,8 +411,6 @@ Name | Type | Description | Notes
315
411
 
316
412
  ### HTTP request headers
317
413
 
318
- - **Content-Type**: Not defined
319
- - **Accept**: application/json
320
-
321
-
414
+ - **Content-Type**: Not defined
415
+ - **Accept**: application/json
322
416