public Optional < AlertCondition > create ( long policyId , AlertCondition condition ) { return HTTP . POST ( String . format ( "/v2/alerts_conditions/policies/%d.json" , policyId ) , condition , ALERT_CONDITION ) ; }
Creates the given alert condition .