ambari-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Jonathan Hurley (JIRA)" <j...@apache.org>
Subject [jira] [Updated] (AMBARI-7051) Alerts: Expose Creation and Updating of Group Targets & Definitions
Date Thu, 28 Aug 2014 17:38:08 GMT

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

Jonathan Hurley updated AMBARI-7051:
------------------------------------

    Description: 
The alert group endpoint {{api/v1/clusters/c1/alert_groups}} must provide structured responses
for both the definitions and targets associated with that group.

The endpoint must also allow updating of the group name, target associations, and definition
associations.

Creation or update of a group with associated targets and definitions.
{code}
POST api/v1/clusters/c1/alert_groups
{
  "AlertGroup": {
    "name": "Test",
    "targets": [4,5],
    "definitions": [2]
  }
}
{code}

{code}
PUT api/v1/clusters/c1/alert_groups/10
{
  "AlertGroup": {
    "name": "Test",
    "targets": [4,5],
    "definitions": [2]
  }
}
{code}

  was:
The alert group endpoint {{api/v1/clusters/c1/alert_groups}} must provide structured responses
for both the definitions and targets associated with that group.

The endpoint must also allow updating of the group name, target associations, and definition
associations.

Creation or update of a group with associated targets and definitions.
{code}
POST api/v1/clusters/c1/alert_groups
{
  "AlertGroup": {
    "name": "Test",
    "targets": ["4","5"],
    "definitions": ["2"]
  }
}
{code}

{code}
PUT api/v1/clusters/c1/alert_groups/10
{
  "AlertGroup": {
    "name": "Test",
    "targets": ["4","5"],
    "definitions": ["2", "3"]
  }
}
{code}


> Alerts: Expose Creation and Updating of Group Targets & Definitions
> -------------------------------------------------------------------
>
>                 Key: AMBARI-7051
>                 URL: https://issues.apache.org/jira/browse/AMBARI-7051
>             Project: Ambari
>          Issue Type: Task
>    Affects Versions: 1.8.0
>            Reporter: Jonathan Hurley
>            Assignee: Jonathan Hurley
>             Fix For: 1.8.0
>
>
> The alert group endpoint {{api/v1/clusters/c1/alert_groups}} must provide structured
responses for both the definitions and targets associated with that group.
> The endpoint must also allow updating of the group name, target associations, and definition
associations.
> Creation or update of a group with associated targets and definitions.
> {code}
> POST api/v1/clusters/c1/alert_groups
> {
>   "AlertGroup": {
>     "name": "Test",
>     "targets": [4,5],
>     "definitions": [2]
>   }
> }
> {code}
> {code}
> PUT api/v1/clusters/c1/alert_groups/10
> {
>   "AlertGroup": {
>     "name": "Test",
>     "targets": [4,5],
>     "definitions": [2]
>   }
> }
> {code}



--
This message was sent by Atlassian JIRA
(v6.2#6252)

Mime
View raw message