[Hawkular-dev] Alerts API

Lucas Ponce lponce at redhat.com
Mon Jun 22 03:23:34 EDT 2015


Hi Artur,

> 
> Hi everyone,
> 
> I’m trying to use Hawkular API with AeroGear for Android.
> 
> Just to remind everyone, the Hawkular Alerts API uses HTTP PUT requests for
> actions such as resolve and acknowledge. Affected alert IDs are passed as a
> HTTP query parameter. As such, if I want to resolve an alert with ID “oops”,
> I need to do the following request:
> 
> http PUT :8080/hawkular/alerts/resolve?alertIds=oops
> 
> At the same time, AeroGear uses PUT requests more traditionally, appending
> model ID to the request URL so it looks something like
> “hawkular/alerts/resolve/oops”. As a result, I have no ability to use Alert
> actions using AeroGear, because there is no real way to customise the
> behaviour the easy way.
> 
> The goal of this message is to start the discussion around this topic and
> maybe decide what is better to do from Hawkular or AeroGear side. I’m adding
> Daniel and Summers to the discussion as AeroGear Android developers, maybe
> they can elaborate a little and provide ideas and / or details.
> 

What model can work better for your use case ?

If we pass the list of alertsId to resolve inside a json object can work better in that scenario ?

Thanks,
Lucas


> Artur.
> 
> [1]: http://www.hawkular.org/docs/rest/rest-alerts.html
> 
> 
> _______________________________________________
> hawkular-dev mailing list
> hawkular-dev at lists.jboss.org
> https://lists.jboss.org/mailman/listinfo/hawkular-dev
> 



More information about the hawkular-dev mailing list