[ 
https://issues.apache.org/jira/browse/AIRFLOW-1502?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Stanislav Kudriashev updated AIRFLOW-1502:
------------------------------------------
    Description: 
Implement possibility to search dag runs via experimental api.

*Format:*
{code}
http://localhost:8080/api/experimental/dag_runs/search/<query>
{code}

*Request:*
{code}
http://localhost:8080/api/experimental/dag_runs/search/scheduled
{code}

*Response:*
{code}
{
  "items": [
    {
      "dag_id": "trigger_1", 
      "dag_run_url": 
"/admin/airflow/graph?execution_date=2017-08-10+09%3A03%3A00&dag_id=trigger_1", 
      "execution_date": "2017-08-10 09:03", 
      "run_id": "scheduled__2017-08-10T09:03:00", 
      "start_date": "2017-08-10 12:02", 
      "state": "running"
    }, 
    {
      "dag_id": "trigger_1", 
      "dag_run_url": 
"/admin/airflow/graph?execution_date=2017-08-10+09%3A04%3A00&dag_id=trigger_1", 
      "execution_date": "2017-08-10 09:04", 
      "run_id": "scheduled__2017-08-10T09:04:00", 
      "start_date": "2017-08-10 12:02", 
      "state": "running"
    }
  ]
}
{code}

  was:
Implement possibility to search dag runs via experimental api.

*Request:*
{code}
http://localhost:8080/api/experimental/dag_runs/search/scheduled
{code}

*Response:*
{code}
{
  "items": [
    {
      "dag_id": "trigger_1", 
      "dag_run_url": 
"/admin/airflow/graph?execution_date=2017-08-10+09%3A03%3A00&dag_id=trigger_1", 
      "execution_date": "2017-08-10 09:03", 
      "run_id": "scheduled__2017-08-10T09:03:00", 
      "start_date": "2017-08-10 12:02", 
      "state": "running"
    }, 
    {
      "dag_id": "trigger_1", 
      "dag_run_url": 
"/admin/airflow/graph?execution_date=2017-08-10+09%3A04%3A00&dag_id=trigger_1", 
      "execution_date": "2017-08-10 09:04", 
      "run_id": "scheduled__2017-08-10T09:04:00", 
      "start_date": "2017-08-10 12:02", 
      "state": "running"
    }
  ]
}
{code}


> Implement possibility to search dag runs via experimental api
> -------------------------------------------------------------
>
>                 Key: AIRFLOW-1502
>                 URL: https://issues.apache.org/jira/browse/AIRFLOW-1502
>             Project: Apache Airflow
>          Issue Type: Improvement
>          Components: api
>    Affects Versions: 1.8.0
>            Reporter: Stanislav Kudriashev
>            Assignee: Stanislav Kudriashev
>             Fix For: 1.8.1
>
>
> Implement possibility to search dag runs via experimental api.
> *Format:*
> {code}
> http://localhost:8080/api/experimental/dag_runs/search/<query>
> {code}
> *Request:*
> {code}
> http://localhost:8080/api/experimental/dag_runs/search/scheduled
> {code}
> *Response:*
> {code}
> {
>   "items": [
>     {
>       "dag_id": "trigger_1", 
>       "dag_run_url": 
> "/admin/airflow/graph?execution_date=2017-08-10+09%3A03%3A00&dag_id=trigger_1",
>  
>       "execution_date": "2017-08-10 09:03", 
>       "run_id": "scheduled__2017-08-10T09:03:00", 
>       "start_date": "2017-08-10 12:02", 
>       "state": "running"
>     }, 
>     {
>       "dag_id": "trigger_1", 
>       "dag_run_url": 
> "/admin/airflow/graph?execution_date=2017-08-10+09%3A04%3A00&dag_id=trigger_1",
>  
>       "execution_date": "2017-08-10 09:04", 
>       "run_id": "scheduled__2017-08-10T09:04:00", 
>       "start_date": "2017-08-10 12:02", 
>       "state": "running"
>     }
>   ]
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to