Segment Computation Jobs
Operations for inspecting audience segment computation jobs and their logs.
Get all the computation logs for a given segment
The segment for which we want all the logs
The operation for which we want all the logs
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/internal_jobs/audience_segment_update_job/logs/{audience_segment_id}?operation=text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"total": 1,
"data": [
{
"datamart_id": 0,
"operation": "INSERTION",
"scroll_search_ready_date": 0,
"computation_end_date": 0,
"segment_id": 0,
"scroll_search_file_ready_date": 0,
"failure_reason": "text",
"computation_start_date": 0,
"lag": 0,
"transactions_leftover": 0,
"transactions_done": 0,
"status": "SUCCEEDED"
}
],
"status": "ok",
"first_result": 1,
"count": 1,
"max_results": 1
}Gets all segment computation job logs between the two timestamps
The datafarm where we should look
The logs considered are after this timestamp
The logs considered are before this timestamp
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/internal_jobs/audience_segment_update_job/logs?datafarm_key=text&computed_after_ts=1&computed_before_ts=1 HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"status": "ok",
"data": [
{
"datamart_id": 0,
"operation": "INSERTION",
"scroll_search_ready_date": 0,
"computation_end_date": 0,
"segment_id": 0,
"scroll_search_file_ready_date": 0,
"failure_reason": "text",
"computation_start_date": 0,
"lag": 0,
"transactions_leftover": 0,
"transactions_done": 0,
"status": "SUCCEEDED"
}
],
"count": 1
}Get all the segments that have not been computed in the given period (or during the last 24h if no period is given)
The datafarm where we should look
Will retrieve all the segments that haven't been computed after this timestamp
Will retrieve all the segments that haven't been computed before this timestamp
Will retrieve all the segments that haven't been computed for this operation (STAT, INSERTION, DELETION)
Offset from which the search must be performed
Number of maximum items that shall be return by this search
Success !
Error response
Error response
Error response
Error response
Error response
Error response
GET /v1/internal_jobs/audience_segment_update_job/not_computed_segments?datafarm_key=text&operation=text HTTP/1.1
Host: api.mediarithmics.local
Accept: */*
{
"count": 1,
"first_result": 1,
"status": "ok",
"total": 1,
"data": [
{
"user_points_count_on_last_warm_up": 0,
"provider_name": "text",
"origin_segment_id": 0,
"technical_name": "text",
"default_lifetime": 0,
"desktop_cookie_ids_count": 0,
"name": "text",
"short_description": "text",
"default_ttl": 1,
"mobile_ad_ids_count": 0,
"last_modified_ts": 0,
"datamart_id": "text",
"token": "text",
"persisted": false,
"user_points_count": 0,
"emails_count": 0,
"audience_metrics": [
{
"id": "text",
"display_name": "text",
"count": 0,
"count_last_modified_ts": 0
}
],
"last_warm_up_ts": 0,
"id": "text",
"paused": false,
"creation_ts": 0,
"mobile_cookie_ids_count": 0,
"organisation_id": "text",
"user_accounts_count": 0,
"auto_description": "text",
"evaluation_mode": "REAL_TIME"
}
],
"max_results": 1
}Last updated
Was this helpful?