Pipeline UUID can be found either in the list of pipelines or on the detailed page of the pipeline:
Endpoint
Request body
empty
Authorization
Bearer: %%ACCESS_TOKEN%%
Response example
Get a log of runs for a pipeline
Endpoint
Formatting notice
DATE_TIME_FROM and DATE_TIME_TO must be in the format "Y-m-d H:i:s". For example, "2024-01-01 14:23:01"
Request body
empty
Authorization
Bearer: %%ACCESS_TOKEN%%
Response example
Formatting notice
The "Output" field in the response in Base64 is encrypted and needs to be decrypted on the API client side.
Get consolidated statistics of runs for pipelines and tasks
Endpoint
and
Endpoint
Formatting notice
DATE_TIME_FROM and DATE_TIME_TO must be in the format "Y-m-d H:i:s". For example, "2024-01-01 14:23:01"
Request body
empty
Authorization
Bearer: %%ACCESS_TOKEN%%
Response example
Get aggregated statistics of runs for pipelines and tasks for the period of time
Endpoint
and
Endpoint
%%PERIOD%% here has five possible values: day, week, month, quarter, year.
Request example
GET /tasks/%%UUID%%/aggregated-stats/2020-01-01/month/12 will return a JSON array with 12 (or less if some donβt exist) elements each of which represents an aggregated statistic for a month starting on 2020-01-01.
Request body
empty
Authorization
Bearer: %%ACCESS_TOKEN%%
Response example
Get statistics of the last run for pipelines and tasks
Endpoint
and
Endpoint
Request body
empty
Authorization
Bearer: %%access_token%%
Response example
GET https://api.datamin.io/v1/stats/tasks/%%UUID%%/stats/%%DATE_TIME_FROM%%/%%DATE_TIME_TO%%
GET https://api.datamin.io/v1/stats/pipelines/%%UUID%%/stats/%%DATE_TIME_FROM%%/%%DATE_TIME_TO%%
{
"num_of_successes": int,
"num_of_failures": int,
"average_duration": int (e.g. in milliseconds),
"is_last_run_successful": bool,
"last_run_executed_at": datetime,
"last_run_duration": int (e.g. in milliseconds)
}
GET https://api.datamin.io/v1/stats/tasks/%%UUID%%/aggregated-stats/%%DATE_FROM%%/%%PERIOD%%/%%NUMBER_OF_PERIODS%%
GET https://api.datamin.io/v1/stats/pipelines/%%UUID%%/aggregated-stats/%%DATE_FROM%%/%%PERIOD%%/%%NUMBER_OF_PERIODS%%
{[
{
"date_from": string,
"date_to": string,
"num_of_successes": int,
"num_of_failures": int,
"average_duration": int (e.g. in milliseconds),
},
{
"date_from": string,
"date_to": string,
"num_of_successes": int,
"num_of_failures": int,
"average_duration": int (e.g. in milliseconds),
},
{
"date_from": string,
"date_to": string,
"num_of_successes": int,
"num_of_failures": int,
"average_duration": int (e.g. in milliseconds),
},
...
]}
GET https://api.datamin.io/v1/stats/tasks/%%UUID%%/last-run/stats
GET https://api.datamin.io/v1/stats/pipelines/%%UUID%%/last-run/stats
{
"is_successful": bool,
"executed_at": datetime,
"duration": int (e.g. in milliseconds),
}