Monitoring task runs by accessing only relevant logs
Obtain task runs of a given period in a specific environment for monitoring
purposes.
Before you begin
-
Generate a personal access token by following Generating a Personal Access Token.
- The user or the service account to be used must have the Author, the Viewer and the Executor permissions for the workspace to which the task to be monitored belongs.
About this task
In this section, the following API call is firstly
issued:It
is implemented in Talend API Tester for
demonstration purposes.
method: GET
endpoint: https://api.<env>.cloud.talend.com/processing/executables/tasks/executions
headers: {
"Content-Type": "application/json",
"Authorization": "Bearer <your_personal_access_token>"
}
query parameters: {
"lastDays": "7",
"status": "execution_failed",
"environmentId": "id_of_the_environment_to_be_monitored"
}