Job progress
This message is sent when an API call has been made; it can represent a progression, an API end of process message or an error.
Headers
type
: JOB_PROGRESSauthor
: SDK Idrecipients
: Client Idstatus
: SENT
payload
api
: String indicating the API origin (possible values : MPT, MCDI, CARTO)jobId
: String for the API job Idaction
: String for Job process (possible values : AVAILABLE_ROADMAPS, REVERSE_GEOCODE, RUN_MPT, ROUTELINK, MCIINDEPENDANTJOB)progress
: String for the progression (possible values : blank, IN_PROGRESS, COMPLETE, ERROR)percent
: Integer for percentage when IN_PROGRESSlastMessage
: Boolean indicating that the job is finished or notstatusCode
: HTTP status codemessage
: Displayable message for the job progressentityType
(only for MPT or MCDI job) entity type (possible values : MPTJOB, MCIINDEPENDANTJOB, ROUTELINK)jobData
: ARJobData : JSON Object describing the job and the result (if succeeded)solutionIndicators
: SolutionIndicators Indicators on the MPT Solution for global calculations
ARJobData description for action :
- AVAILABLE_ROADMAPS : jobDataAvailableRoadMaps
- REVERSE_GEOCODE : jobDataReverseGeocode
- RUN_MPT : jobDataMPT
- ROUTELINK : jobDataRouteLink
- MCIINDEPENDANTJOB : jobDataIndependantJob
Example
Example of a successful AVAILABLE_ROADMAPS answer
{
"type": "JOB_PROGRESS",
"payload": {
"api": "CARTO",
"jobId": "48457835-B708-4B7D-9FC1-12EAEDD5872A",
"action": "AVAILABLE_ROADMAPS",
"progress": "COMPLETE",
"lastMessage": true,
"statusCode": 200,
"message": "Default roadmap:FRABELUX_202309",
"jobData": {
"default": "FRABELUX_202309",
"available": [
"FRABELUX_202309",
"ITA_202209"
]
}
},
"author": "<author id>",
"recipients": [
"<recipient id>"
],
"status": "SENT"
}