View Provider-errors report

View Provider-errors report

GET https://api.ocamba.com/v0/hood/reports/provider-errors
Provider-errors report helps troubleshooting settings that result in errors with the goal of eliminating the error in the future

Query parameters

parameters

Response schemas

curl -X GET \
 "https://api.ocamba.com/v0/hood/reports/provider-errors" \
  -H "Authorization: Bearer {TOKEN}"
const url = 'https://api.ocamba.com/v0/hood/reports/provider-errors';
const options = {
  method: 'GET',
  headers: {
    Authorization: `Bearer {TOKEN}`
  }
};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
$ch = curl_init("https://api.ocamba.com/v0/hood/reports/provider-errors");
curl_setopt($ch, CURLOPT_CUSTOMREQUEST, "GET");
curl_setopt($ch, CURLOPT_HTTPHEADER, [
  "Authorization: Bearer {TOKEN}"
]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$response = curl_exec($ch);

Responses

200 OK

[
  {
    "stat_date": "2022-09-28T00:00:00Z",
    "tag_id": "1704",
    "tag_name": "DEV Ocamba Info",
    "zone_id": "0",
    "browser_id": "0",
    "browser_name": "Unknown",
    "device_id": "0",
    "device_name": "Unknown",
    "os_id": "10",
    "country_code": "PL",
    "country_name": "Poland",
    "push_type": "ios",
    "push_task_id": "15432493",
    "push_task_name": "testing",
    "status_code": "0",
    "error_code": "0",
    "profile_age": "8-30",
    "requests": 1,
    "retry_count": 0,
    "total_duration": 416
  },
  {
    "stat_date": "2022-09-28T00:00:00Z",
    "tag_id": "1303",
    "tag_name": "DS [DON'T TOUCH]",
    "app_name": "test-5",
    "zone_id": "3001868",
    "zone_name": "veljko push",
    "browser_id": "17",
    "browser_name": "Edge",
    "device_id": "0",
    "device_name": "Unknown",
    "os_id": "1",
    "os_name": "Windows OS",
    "country_code": "PL",
    "country_name": "Poland",
    "push_type": "web",
    "push_task_id": "15433308",
    "push_task_name": "v",
    "status_code": "401",
    "error_code": "0",
    "profile_age": "31-75",
    "requests": 3,
    "retry_count": 0,
    "total_duration": 114
  }
]

400 Bad Request

500 Internal Server Error

Responses

Tip

Sortable fields are: stat_date, tag_id, tag_name, container_id, container_name, app_name, provider_type, provider_id, provider_name, integration_id, integration_name, zone_id, zone_name, browser_id, browser_name, device_id, device_name, os_id, os_name, country_code, country_name, push_type, push_task_id, push_task_name, status_code, error_code, user_age, profile_age, requests, retry_count, total_duration.

Filterable fields are: tag_id, zone_id, tag_name, container_id, container_name, app_name, provider_type, provider_id, provider_name, integration_id, integration_name, zone_name, browser_id, browser_name, device_id, device_name, os_id, os_name, country_code, country_name, push_type, push_task_id, push_task_name, status_code, error_code, profile_age, requests, retry_count, total_duration.

API provided filling empty entry points in between first and last date/hour. You should set with_fill parameter to true, but just in case the date dimension is requested only. It is in relation with resolution. You should pass day or hour, which defines what type of breakdown you request, default setup displays daily breakdown.

To get data by the time in your local time zone, you should set tz query parameter to the specific time zone. See the list of valid time zones here -> https://en.wikipedia.org/wiki/List_of_tz_database_time_zones#List.

For easier search, Reports API gives you the possibility of using one of the following labels: today, yesterday, last-7-days, last-30-days, last-24-hours, this-month, last-month, current-hour, last-hour, last-48-hours, last-2-days, month-to-date, month-to-yesterday, quarter-to-date.

Note

When filtering stat_date, use one of the following formats:

  • Single format: YYYY-mm-dd;

    Displaying stats for this specific day
  • Range format: rf:YYYY-mm-dd,YYYY-mm-dd;
    Requires usage of the range operators:
    • r - range - The value must be in a specified open range, where both endpoints are excluded.
    • rf - range full - The value must be in a specified closed range, where both endpoints are included.
    • rl - range left - The value must be in a specified half-open range, where only left or start point is included.
    • rr - range right - The value must be in a specified half-open range, where only right or end point is included.

      Displaying stats in this specific range.
  • Hour range format: rl: YYYY-mm-dd hh:00:00,YYYY-mm-dd hh:00:00
    If you exclude this parameter, the default setup displays “today” stats.