All Downloads are FREE. Search and download functionalities are using the official Maven repository.

ai.databand.DbndApi Maven / Gradle / Ivy

There is a newer version: 1.0.26.1
Show newest version
package ai.databand;

import ai.databand.schema.AddTaskRuns;
import ai.databand.schema.DatasetOperationRes;
import ai.databand.schema.GetRunsResponse;
import ai.databand.schema.InitRun;
import ai.databand.schema.Job;
import ai.databand.schema.LogDatasets;
import ai.databand.schema.LogMetric;
import ai.databand.schema.LogMetrics;
import ai.databand.schema.LogTargets;
import ai.databand.schema.MetricsForAlertsResponse;
import ai.databand.schema.PaginatedData;
import ai.databand.schema.SaveExternalLinks;
import ai.databand.schema.SaveTaskRunLog;
import ai.databand.schema.SetRunState;
import ai.databand.schema.TaskFullGraph;
import ai.databand.schema.TaskRunAttemptLog;
import ai.databand.schema.Tasks;
import ai.databand.schema.TasksMetricsRequest;
import ai.databand.schema.TasksMetricsResponse;
import ai.databand.schema.UpdateTaskRunAttempts;
import ai.databand.schema.auth.CreateTokenReq;
import ai.databand.schema.auth.CreateTokenRes;
import ai.databand.schema.auth.LoginReq;
import ai.databand.schema.auth.LoginRes;
import ai.databand.schema.tasks.GetTasksReq;
import retrofit2.Call;
import retrofit2.http.Body;
import retrofit2.http.GET;
import retrofit2.http.Header;
import retrofit2.http.POST;
import retrofit2.http.Path;
import retrofit2.http.Query;

import java.util.List;

public interface DbndApi {

    @POST("/api/v1/tracking/init_run")
    Call initRun(@Body InitRun data);

    @POST("/api/v1/tracking/add_task_runs")
    Call addTaskRuns(@Body AddTaskRuns data);

    @POST("/api/v1/tracking/log_metric")
    Call logMetric(@Body LogMetric data);

    @POST("/api/v1/tracking/log_metrics")
    Call logMetrics(@Body LogMetrics data);

    @POST("/api/v1/tracking/save_task_run_log")
    Call saveTaskRunLog(@Body SaveTaskRunLog data);

    @POST("/api/v1/tracking/log_targets")
    Call logTargets(@Body LogTargets data);

    @POST("/api/v1/tracking/log_datasets")
    Call logDatasets(@Body LogDatasets data);

    @POST("/api/v1/tracking/set_run_state")
    Call setRunState(@Body SetRunState data);

    @POST("/api/v1/tracking/update_task_run_attempts")
    Call updateTaskRunAttempts(@Body UpdateTaskRunAttempts data);

    @POST("/api/v1/tracking/save_external_links")
    Call saveExternalLinks(@Body SaveExternalLinks data);

    @POST("/api/v1/auth/login")
    Call login(@Body LoginReq data);

    @GET("/api/v1/task/full-graph")
    Call taskFullGraph(@Query("job_name") String jobName, @Query("run_uid") String runUid);

    @GET("/api/v1/runs")
    Call runs(@Query("filter") String filter);

    @POST("/api/v1/task/tasks-metrics")
    Call tasksMetrics(@Body TasksMetricsRequest data);

    @GET("/api/v1/jobs")
    Call> jobs();

    @POST("/api/v1/task/tasks")
    Call tasks(@Body GetTasksReq taskUids);

    @GET("/api/v1/task/tasks-logs")
    Call> logs(@Query("attempt_id") Integer taskRunAttemptId);

    @GET("/api/v1/metrics/for_alerts")
    Call metricsForAlerts(@Query("filter") String filter);

    @GET("/api/v1/runs/{run_uid}/operations")
    Call> operations(@Path("run_uid") String runUid);

    @POST("/api/v1/auth/personal_access_token")
    Call createPersonalAccessToken(@Body CreateTokenReq req, @Header("Cookie") String cookie);

}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy