Mux v3.2.1 Mux.Data.Errors View Source

This module provides functions for working with playback errors, which is typically an error thrown by the player that caused playback failure. API Documentation.

Link to this section Summary

Functions

Returns a list of playback errors along with details and statistics about them.

Link to this section Functions

Link to this function

list(client, params \\ [])

View Source

Returns a list of playback errors along with details and statistics about them.

Returns {:ok, errors, raw_env}.

Examples

iex> client = Mux.client("my_token_id", "my_token_secret")
iex> {:ok, errors, _env} = Mux.Data.Errors.list(client)
iex> errors
[%{"code" => 1, "count" => 2, "description" => "If we're going to understand this error, first we need to understand life itself.", "id" => 1121, "last_seen" => "2018-01-20T01:18:48.054Z", "message" => "This is a message for this crazy error", "notes" => "This is a really crazy note", "percentage" => 0.6666666666666666}, %{"code" => 3, "count" => 1, "description" => "If we're going to understand this error, first we need to understand life itself.", "id" => 1120, "last_seen" => "2018-01-19T23:18:48.054Z", "message" => "This is a message for this crazy error", "notes" => "This is a really crazy note", "percentage" => 0.3333333333333333}]

iex> client = Mux.client("my_token_id", "my_token_secret")
iex> {:ok, errors, _env} = Mux.Data.Errors.list(client, filters: ["operating_system:windows"], timeframe: ["24:hours"])
iex> errors
[%{"code" => 1, "count" => 2, "description" => "If we're going to understand this error, first we need to understand life itself.", "id" => 1121, "last_seen" => "2018-01-20T01:18:48.054Z", "message" => "This is a message for this crazy error", "notes" => "This is a really crazy note", "percentage" => 0.6666666666666666}, %{"code" => 3, "count" => 1, "description" => "If we're going to understand this error, first we need to understand life itself.", "id" => 1120, "last_seen" => "2018-01-19T23:18:48.054Z", "message" => "This is a message for this crazy error", "notes" => "This is a really crazy note", "percentage" => 0.3333333333333333}]