[Hawkular-dev] [Alerts] trigger comparator in one go?

Lucas Ponce lponce at redhat.com
Mon Nov 9 03:16:49 EST 2015



----- Original Message -----
> From: "Heiko W.Rupp" <hrupp at redhat.com>
> To: "Discussions around Hawkular development" <hawkular-dev at lists.jboss.org>
> Sent: Monday, November 9, 2015 8:09:00 AM
> Subject: [Hawkular-dev] [Alerts] trigger comparator in one go?
> 
> Hey,
> 
> when I call GET /triggers  or GET /triggers/{id}
> 
> I get a hash with basically this information:
> 
> http://www.hawkular.org/docs/rest/rest-alerts.html#Trigger
> 
> Inside the context I have the resource it triggers on, the metric
> it triggers on, the triggerType, but not the comparator or the value to
> compare.
> 
> Looks like I need to get /triggers/{id}/conditions  and also /dampenings
> separately to get those values

Correct

This is done by design as Trigger : Conditions can have a 1:N relation, so in most cases get all information is not needed.

> 
> Is there an api call / parameter, where I can get all data for a single
> trigger including dampening, conditions and so on ?

Not yet. We have discussed that we might have use cases like this and it could be interesting to have one.

Lucas

> _______________________________________________
> 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