You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@airflow.apache.org by GitBox <gi...@apache.org> on 2021/01/08 19:00:12 UTC

[GitHub] [airflow] didip edited a comment on issue #13145: Expose Gantt chart as an API or able to configure alerting using the Gantt chart.

didip edited a comment on issue #13145:
URL: https://github.com/apache/airflow/issues/13145#issuecomment-756937687


   What about something like this?
   
   ```
   GET /dags/{dag_id}/dagRuns/{dag_run_id}/gantt
   ```
   ```
   // Response
   {
       tasks: [
           {
               name: begin1,
               start: unix-timestamp,
               end: unix-timestamp,
               duration: in-seconds,
               try_number: 1
               tasks: [
                   {
                       name: middle1
                       start: unix-timestamp,
                       end: unix-timestamp,
                       duration: in-seconds,
                       try_number: 1,
                       tasks: []
                   },
                   {
                       name: middle1
                       start: unix-timestamp,
                       end: unix-timestamp,
                       duration: in-seconds,
                       try_number: 2,
                       tasks: []
                   }
               ]
           },
           {
               name: begin2
               start: unix-timestamp,
               end: unix-timestamp,
               duration: in-seconds,
               try_number: 1,
               tasks: [
                   {
                       name: middle2
                       start: unix-timestamp,
                       end: unix-timestamp,
                       duration: in-seconds,
                       try_number: 1,
                       tasks: [
                           {
                               name: end2
                               start: unix-timestamp,
                               end: unix-timestamp,
                               duration: in-seconds,
                               try_number: 1,
                               tasks: []                        
                           }
                       ]
                   },
               ]
           },
       ]
   }
   ```


----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

For queries about this service, please contact Infrastructure at:
users@infra.apache.org