All URIs are relative to https://api.mux.com
| Method | HTTP request | Description |
|---|---|---|
| get_realtime_breakdown | GET /data/v1/realtime/metrics/{REALTIME_METRIC_ID}/breakdown | Get Real-Time Breakdown |
| get_realtime_histogram_timeseries | GET /data/v1/realtime/metrics/{REALTIME_METRIC_ID}/histogram-timeseries | Get Real-Time Histogram Timeseries |
| get_realtime_timeseries | GET /data/v1/realtime/metrics/{REALTIME_METRIC_ID}/timeseries | Get Real-Time Timeseries |
| list_realtime_dimensions | GET /data/v1/realtime/dimensions | List Real-Time Dimensions |
| list_realtime_metrics | GET /data/v1/realtime/metrics | List Real-Time Metrics |
GetRealTimeBreakdownResponse get_realtime_breakdown(realtime_metric_id, opts)
Get Real-Time Breakdown
Gets breakdown information for a specific dimension and metric along with the number of concurrent viewers and negative impact score.
# load the gem
require 'mux_ruby'
# setup authorization
MuxRuby.configure do |config|
# Configure HTTP basic authorization: accessToken
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = MuxRuby::RealTimeApi.new
realtime_metric_id = 'video-startup-time' # String | ID of the Realtime Metric
opts = {
dimension: 'dimension_example', # String | Dimension the specified value belongs to
timestamp: 3.4, # Float | Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp.
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.
order_by: 'order_by_example', # String | Value to order the results by
order_direction: 'order_direction_example' # String | Sort order.
}
begin
#Get Real-Time Breakdown
result = api_instance.get_realtime_breakdown(realtime_metric_id, opts)
p result
rescue MuxRuby::ApiError => e
puts "Exception when calling RealTimeApi->get_realtime_breakdown: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| realtime_metric_id | String | ID of the Realtime Metric | |
| dimension | String | Dimension the specified value belongs to | [optional] |
| timestamp | Float | Timestamp to limit results by. This value must be provided as a unix timestamp. Defaults to the current unix timestamp. | [optional] |
| filters | 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. | [optional] |
| order_by | String | Value to order the results by | [optional] |
| order_direction | String | Sort order. | [optional] |
- Content-Type: Not defined
- Accept: application/json
GetRealTimeHistogramTimeseriesResponse get_realtime_histogram_timeseries(realtime_metric_id, opts)
Get Real-Time Histogram Timeseries
Gets histogram timeseries information for a specific metric.
# load the gem
require 'mux_ruby'
# setup authorization
MuxRuby.configure do |config|
# Configure HTTP basic authorization: accessToken
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = MuxRuby::RealTimeApi.new
realtime_metric_id = 'video-startup-time' # String | ID of the Realtime Metric
opts = {
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.
}
begin
#Get Real-Time Histogram Timeseries
result = api_instance.get_realtime_histogram_timeseries(realtime_metric_id, opts)
p result
rescue MuxRuby::ApiError => e
puts "Exception when calling RealTimeApi->get_realtime_histogram_timeseries: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| realtime_metric_id | String | ID of the Realtime Metric | |
| filters | 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. | [optional] |
GetRealTimeHistogramTimeseriesResponse
- Content-Type: Not defined
- Accept: application/json
GetRealTimeTimeseriesResponse get_realtime_timeseries(realtime_metric_id, opts)
Get Real-Time Timeseries
Gets Time series information for a specific metric along with the number of concurrent viewers.
# load the gem
require 'mux_ruby'
# setup authorization
MuxRuby.configure do |config|
# Configure HTTP basic authorization: accessToken
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = MuxRuby::RealTimeApi.new
realtime_metric_id = 'video-startup-time' # String | ID of the Realtime Metric
opts = {
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.
}
begin
#Get Real-Time Timeseries
result = api_instance.get_realtime_timeseries(realtime_metric_id, opts)
p result
rescue MuxRuby::ApiError => e
puts "Exception when calling RealTimeApi->get_realtime_timeseries: #{e}"
end| Name | Type | Description | Notes |
|---|---|---|---|
| realtime_metric_id | String | ID of the Realtime Metric | |
| filters | 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. | [optional] |
- Content-Type: Not defined
- Accept: application/json
ListRealTimeDimensionsResponse list_realtime_dimensions
List Real-Time Dimensions
Lists availiable real-time dimensions
# load the gem
require 'mux_ruby'
# setup authorization
MuxRuby.configure do |config|
# Configure HTTP basic authorization: accessToken
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = MuxRuby::RealTimeApi.new
begin
#List Real-Time Dimensions
result = api_instance.list_realtime_dimensions
p result
rescue MuxRuby::ApiError => e
puts "Exception when calling RealTimeApi->list_realtime_dimensions: #{e}"
endThis endpoint does not need any parameter.
ListRealTimeDimensionsResponse
- Content-Type: Not defined
- Accept: application/json
ListRealTimeMetricsResponse list_realtime_metrics
List Real-Time Metrics
Lists availiable real-time metrics.
# load the gem
require 'mux_ruby'
# setup authorization
MuxRuby.configure do |config|
# Configure HTTP basic authorization: accessToken
config.username = 'YOUR USERNAME'
config.password = 'YOUR PASSWORD'
end
api_instance = MuxRuby::RealTimeApi.new
begin
#List Real-Time Metrics
result = api_instance.list_realtime_metrics
p result
rescue MuxRuby::ApiError => e
puts "Exception when calling RealTimeApi->list_realtime_metrics: #{e}"
endThis endpoint does not need any parameter.
- Content-Type: Not defined
- Accept: application/json