code: private MonitoringRule buildRelatedRule(IGuaranteeTerm guarantee) {
          
          MonitoringRule result = new MonitoringRule();
          result.setId(guarantee.getName());
  
          String violation = extractOutputMetric(guarantee);
          Parameter param = new Parameter();
          param.setName(QosModels.METRIC_PARAM_NAME);
          param.setValue(violation);
          
          Action action = new Action();
          action.setName(QosModels.OUTPUT_METRIC_ACTION);
          action.getParameters().add(param);
          
          Actions actions = new Actions();
          actions.getActions().add(action);
          
          result.setActions(actions);
          
          return result;
      }
docs: Build a MonitoringRule given a guarantee term