public CheckConditionResponse activeAlerts(String streamId) throws APIException, IOException {
return api.path(routes.StreamAlertResource().checkConditions(streamId), CheckConditionResponse.class).execute();
}
public List<Output> getOutputs(String streamId) throws APIException, IOException {
OutputsResponse outputsResponse = api.path(routes.StreamOutputResource().get(streamId), OutputsResponse.class).execute();
List<Output> result = new ArrayList<>();
for(OutputSummaryResponse response : outputsResponse.outputs)
result.add(outputFactory.fromSummaryResponse(response));
return result;