Operations involving errors
- list - List errors
This endpoint returns the total number of playback errors that occurred, along with the total number of views captured, based on the specified timespan and filters. It provides insights into the overall playback quality and helps identify potential issues that may impact viewer experience.
- percentage: The percentage of views affected by the specific error.
- uniqueViewersEffectedPercentage: The percentage of unique viewers affected by the specific error (available only in the topErrors section).
- notes: Additional notes or information about the specific error.
- message: The error message or description.
- lastSeen: The timestamp of when the error was last observed.
- id: The unique identifier for the specific error.
- description: A description of the specific error.
- count: The number of occurrences of the specific error.
- code: The error code associated with the specific error.
Related guide: Troubleshoot errors
Note: In the examples below,
package hello.world;is used for demonstration purposes. When creating your own Java files, ensure the package name matches your directory structure (e.g., if your file is atsrc/main/java/com/example/MyApp.java, usepackage com.example;).
// Package declaration - adjust to match your project's directory structure
package hello.world;
// Import required classes from the FastPix SDK
import java.lang.Exception;
import com.fasterxml.jackson.databind.SerializationFeature;
import io.fastpix.sdk.FastPixSDK;
import io.fastpix.sdk.models.components.Security;
import io.fastpix.sdk.models.operations.ListErrorsResponse;
import io.fastpix.sdk.models.operations.ListErrorsTimespan;
import io.fastpix.sdk.utils.JSON;
public class Application {
public static void main(String[] args) throws Exception {
FastPixSDK sdk = FastPixSDK.builder()
.security(Security.builder()
.username("your-access-token")
.password("your-secret-key")
.build())
.build();
ListErrorsResponse res = sdk.errors().list()
.timespan(ListErrorsTimespan.TWENTY_FOURHOURS)
.filterby("browser_name:Chrome")
.limit(1L)
.call();
if (res.object().isPresent()) {
var mapper = JSON.getMapper();
mapper.enable(SerializationFeature.INDENT_OUTPUT);
System.out.println(mapper.writeValueAsString(res.object().get()));
}
}
}| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
timespan |
Optional<ListErrorsTimespan> | ➖ | This parameter specifies the time span between which the video views list must be retrieved by. You can provide either from and to unix epoch timestamps or time duration. The scope of duration is between 60 minutes to 30 days. Accepted formats are: array of epoch timestamps for example timespan[]=1498867200×pan[]=1498953600duration string for example timespan[]=24:hours or timespan[]=7:days |
24:hours |
filterby |
Optional<String> | ➖ | Pass the dimensions and their corresponding values you want to filter the views by. For excluding the values in the filter we can pass "!" before the filter value. The list of filters can be obtained from list of dimensions endpoint. Example Values : [ browser_name:Chrome , os_name:macOS , !device_name:Galaxy ] |
browser_name:Chrome |
limit |
Optional<Long> | ➖ | Pass the limit to display only the rows specified by the value for top errors. |
1 |
| Error Type | Status Code | Content Type |
|---|---|---|
| models/errors/APIException | 4XX, 5XX | */* |