Notify Job Results

Notify Job Results

This is the callback URI that the R1 interface invokes when the historical PM counter results for the job requested by the rApp are available. The rApp expects the PM counter results URI as part of the request body. That URI is used to fetch the PM counter data.

Request
URI
POST
https://{api_host}/v0alpha1/job_results/{job_id}
COPY
Path Parameters
string
job_id
Required

The unique identifier for one job that the rApp has created and is awaiting results.


Request Body

JSON object that provides the callback URI to fetch the historical PM counter data.

JobResultCallbackResponse of type(s) application/json
Required
{
    "data": {
        "uri": "http://pmhistory:8080/v0alpha1/jobs/b66d0144-2137-11ec-8e85-f3c25b763afb",
        "type": "application/json;stream=true",
        "data_type": "pmhistory"
    }
}
data
Required

data

Responses
204

The incoming job results notification was successfully decoded and the results retrieved.

Operation doesn't return any data structure

400

The incoming job results notification could not be decoded.

Returns ProblemDetails of type(s) application/json
{
    "type": "string",
    "title": "string",
    "status": 400,
    "detail": "Required field 'counter_names' missing.",
    "instance": "string"
}
string
type
Optional

A URI representing the type of the problem.

string
title
Required

A short summary of the error.

number
status
Required

The HTTP Response code associated with this error.

string
detail
Required

A detailed description of the error.

string
instance
Optional

An optional URI of the instance involved in the problem.