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