incubator-ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brian Swan (JIRA)" <j...@apache.org>
Subject [jira] [Commented] (AMBARI-2917) Add "state" property as required to schema of response for "GET /clusters/:clustername/requests/:number" request
Date Tue, 20 Aug 2013 18:34:52 GMT

    [ https://issues.apache.org/jira/browse/AMBARI-2917?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=13745250#comment-13745250
] 

Brian Swan commented on AMBARI-2917:
------------------------------------

To add some clarification here: The idea behind this is that Ambari clients should be able
to easily determine the status of a request. An easy way to do this would be to add a "status"
property to the "Requests" object in a response for "get requests" (e.g. GET /api/v1/clusters/c1/requests/2).
Here's an example response with the suggested "status" property added:

{
  "href" : "http://your.ambari.server/api/v1/clusters/c1/requests/2",
  "Requests" : {
    "cluster_name" : "c1",
    "id" : 2,
    "request_context" : "Start Services",
    "status" : "COMPLETED"
  },
  "tasks" : [
    {
      "href" : "http://your.ambari.server/api/v1/clusters/c1/requests/2/tasks/15",
      "Tasks" : {
        "cluster_name" : "c1",
        "id" : 15,
        "request_id" : 2
      }
    },
    {
      "href" : "http://your.ambari.server/api/v1/clusters/c1/requests/2/tasks/16",
      "Tasks" : {
        "cluster_name" : "c1",
        "id" : 16,
        "request_id" : 2
      }
    },
    {
      "href" : "http://your.ambari.server/api/v1/clusters/c1/requests/2/tasks/17",
      "Tasks" : {
        "cluster_name" : "c1",
        "id" : 17,
        "request_id" : 2
      }
    }
  ]
}

                
> Add "state" property as required to schema of response for "GET /clusters/:clustername/requests/:number"
request
> ----------------------------------------------------------------------------------------------------------------
>
>                 Key: AMBARI-2917
>                 URL: https://issues.apache.org/jira/browse/AMBARI-2917
>             Project: Ambari
>          Issue Type: Task
>            Reporter: Marko Zivanovic
>
> Clients should be able to retrieve status of the request, without looking at states of
the tasks.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators
For more information on JIRA, see: http://www.atlassian.com/software/jira

Mime
View raw message