public Optional < AlertChannel > create ( AlertChannel channel ) { return Optional . of ( HTTP . POST ( "/v2/alerts_channels.json" , channel , ALERT_CHANNELS ) . get ( ) . iterator ( ) . next ( ) ) ; }
Creates the given alert channel .