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
GET https://api.datamin.io/v1/stats/tasks/%%UUID%%/stats/%%DATE_TIME_FROM%%/%%DATE_TIME_TO%%
and
Endpoint
GET https://api.datamin.io/v1/stats/pipelines/%%UUID%%/stats/%%DATE_TIME_FROM%%/%%DATE_TIME_TO%%
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
{
"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 aggregated statistics of runs for pipelines and tasks for the period of time
Endpoint
GET https://api.datamin.io/v1/stats/tasks/%%UUID%%/aggregated-stats/%%DATE_FROM%%/%%PERIOD%%/%%NUMBER_OF_PERIODS%%
and
Endpoint
GET https://api.datamin.io/v1/stats/pipelines/%%UUID%%/aggregated-stats/%%DATE_FROM%%/%%PERIOD%%/%%NUMBER_OF_PERIODS%%
%%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
{[
{
"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 statistics of the last run for pipelines and tasks
Endpoint
GET https://api.datamin.io/v1/stats/tasks/%%UUID%%/last-run/stats
and
Endpoint
GET https://api.datamin.io/v1/stats/pipelines/%%UUID%%/last-run/stats
Request body
empty
Authorization
Bearer: %%access_token%%
Response example
{
"is_successful": bool,
"executed_at": datetime,
"duration": int (e.g. in milliseconds),
}