public Collection < AlertCondition > list ( long entityId , String entityType ) { QueryParameterList queryParams = new QueryParameterList ( ) ; queryParams . add ( "entity_type" , entityType ) ; return HTTP . GET ( String . format ( "/v2/alerts_entity_conditions/%d.json" , entityId ) , null , queryParams , ALERT_CONDITIONS ) . get ( ) ; }
Returns the alert conditions for the given entity id .