Returns the set of alert conditions for the given policy id and name.
@param policyId The id of the alert policy to return the conditions for
@param name The name of the conditions
@return The set of alert conditions
439645
public Collection<NrqlAlertCondition> list(long policyId, String name)
    {
        List<NrqlAlertCondition> ret = new ArrayList<NrqlAlertCondition>();
        Collection<NrqlAlertCondition> conditions = list(policyId);
        for(NrqlAlertCondition condition : conditions)
        {
            if(condition.getName().equals(name))
                ret.add(condition);
        }
        return ret;
    }
618773
public Collection<AlertChannel> list(long policyId)
    {
        Map<Long,AlertChannel> map = new HashMap<Long,AlertChannel>();
        Collection<AlertChannel> channels = list();
        for(AlertChannel channel : channels)
        {
            List<Long> channelPolicyIds = channel.getLinks().getPolicyIds();
            for(long channelPolicyId : channelPolicyIds)
            {
                if(channelPolicyId == policyId)
                    map.put(channel.getId(), channel);
            }
        }
        return map.values();
    }
43394
public static lbvserver_auditsyslogpolicy_binding[] get(nitro_service service, String name) throws Exception{
		lbvserver_auditsyslogpolicy_binding obj = new lbvserver_auditsyslogpolicy_binding();
		obj.set_name(name);
		lbvserver_auditsyslogpolicy_binding response[] = (lbvserver_auditsyslogpolicy_binding[]) obj.get_resources(service);
		return response;
	}
352503
public Optional<NrqlAlertCondition> create(long policyId, NrqlAlertCondition condition)
    {
        return HTTP.POST(String.format("/v2/alerts_nrql_conditions/policies/%d.json", policyId), condition, NRQL_ALERT_CONDITION);
    }
941165
public Collection<InfraAlertCondition> list(List<String> queryParams)
    {
        return HTTP.GET("/v2/alerts/conditions", null, queryParams, INFRA_ALERT_CONDITIONS).get();
    }
550309
public static cspolicy_cspolicylabel_binding[] get(nitro_service service, String policyname) throws Exception{
		cspolicy_cspolicylabel_binding obj = new cspolicy_cspolicylabel_binding();
		obj.set_policyname(policyname);
		cspolicy_cspolicylabel_binding response[] = (cspolicy_cspolicylabel_binding[]) obj.get_resources(service);
		return response;
	}
556858
public static policydataset_value_binding[] get(nitro_service service, String name) throws Exception{
		policydataset_value_binding obj = new policydataset_value_binding();
		obj.set_name(name);
		policydataset_value_binding response[] = (policydataset_value_binding[]) obj.get_resources(service);
		return response;
	}
189993
public Optional<PluginsAlertCondition> create(long policyId, PluginsAlertCondition condition)
    {
        return HTTP.POST(String.format("/v2/alerts_plugins_conditions/policies/%d.json", policyId), condition, PLUGINS_ALERT_CONDITION);
    }
1064537
public static crvserver_policymap_binding[] get(nitro_service service, String name) throws Exception{
		crvserver_policymap_binding obj = new crvserver_policymap_binding();
		obj.set_name(name);
		crvserver_policymap_binding response[] = (crvserver_policymap_binding[]) obj.get_resources(service);
		return response;
	}
55926
public static appfwpolicy_appfwpolicylabel_binding[] get(nitro_service service, String name) throws Exception{
		appfwpolicy_appfwpolicylabel_binding obj = new appfwpolicy_appfwpolicylabel_binding();
		obj.set_name(name);
		appfwpolicy_appfwpolicylabel_binding response[] = (appfwpolicy_appfwpolicylabel_binding[]) obj.get_resources(service);
		return response;
	}
968658
NFRuleSet findRuleSet(String name) throws IllegalArgumentException {
        NFRuleSet result = ruleSetsMap.get(name);
        if (result == null) {
            throw new IllegalArgumentException("No rule set named " + name);
        }
        return result;
    }
696793
public Optional<AlertPolicyChannel> update(long policyId, long channelId)
    {
        QueryParameterList queryParams = new QueryParameterList();
        queryParams.add("policy_id", policyId);
        queryParams.add("channel_ids", channelId);
        return HTTP.PUT("/v2/alerts_policy_channels.json", null, null, queryParams, ALERT_POLICY_CHANNEL);
    }
13809
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);
    }
43372
public static appflowpolicy_appflowpolicylabel_binding[] get(nitro_service service, String name) throws Exception{
		appflowpolicy_appflowpolicylabel_binding obj = new appflowpolicy_appflowpolicylabel_binding();
		obj.set_name(name);
		appflowpolicy_appflowpolicylabel_binding response[] = (appflowpolicy_appflowpolicylabel_binding[]) obj.get_resources(service);
		return response;
	}
1314686
public static function alertPolicyConditionName($project, $alertPolicy, $condition)
    {
        return self::getAlertPolicyConditionNameTemplate()->render([
            'project' => $project,
            'alert_policy' => $alertPolicy,
            'condition' => $condition,
        ]);
    }
881561
public RuleEnvelope getRule(String ruleId) throws ApiException {
        ApiResponse<RuleEnvelope> resp = getRuleWithHttpInfo(ruleId);
        return resp.getData();
    }
698499
public static auditsyslogpolicy_binding get(nitro_service service, String name) throws Exception{
		auditsyslogpolicy_binding obj = new auditsyslogpolicy_binding();
		obj.set_name(name);
		auditsyslogpolicy_binding response = (auditsyslogpolicy_binding) obj.get_resource(service);
		return response;
	}