For the complete documentation index, see llms.txt. This page is also available as Markdown.

Segment Computation Jobs

Operations for inspecting audience segment computation jobs and their logs.

Get all the computation logs for a given segment

get
/internal_jobs/audience_segment_update_job/logs/{audience_segment_id}
Path parameters
audience_segment_idstringRequired

The segment for which we want all the logs

Query parameters
operationstringRequired

The operation for which we want all the logs

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
totalintegerRequired
statusstring · enumRequiredPossible values:
first_resultintegerRequired
countintegerRequired
max_resultsintegerRequired
get/internal_jobs/audience_segment_update_job/logs/{audience_segment_id}
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

get
/internal_jobs/audience_segment_update_job/logs
Query parameters
datafarm_keystringRequired

The datafarm where we should look

computed_after_tsinteger · int64Required

The logs considered are after this timestamp

computed_before_tsinteger · int64Required

The logs considered are before this timestamp

Responses
200

Success !

application/json
statusstring · enumRequiredPossible values:
countintegerRequired
get/internal_jobs/audience_segment_update_job/logs
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)

get
/internal_jobs/audience_segment_update_job/not_computed_segments
Query parameters
datafarm_keystringRequired

The datafarm where we should look

computed_after_tsinteger · int64Optional

Will retrieve all the segments that haven't been computed after this timestamp

computed_before_tsinteger · int64Optional

Will retrieve all the segments that haven't been computed before this timestamp

operationstringRequired

Will retrieve all the segments that haven't been computed for this operation (STAT, INSERTION, DELETION)

first_resultinteger · int32Optional

Offset from which the search must be performed

max_resultsinteger · int32Optional

Number of maximum items that shall be return by this search

Responses
200

Success !

application/json
countintegerRequired
first_resultintegerRequired
statusstring · enumRequiredPossible values:
totalintegerRequired
max_resultsintegerRequired
get/internal_jobs/audience_segment_update_job/not_computed_segments
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?