old_contents: import AJAX from 'utils/ajax';
  
  export function createRule(kapacitor, rule) {
    return AJAX({
      method: 'POST',
      url: kapacitor.links.tasks,
      data: rule,
    });
  }
  
new_contents: import AJAX from 'utils/ajax';
  
  export function createRule(kapacitor, rule) {
    return AJAX({
      method: 'POST',
      url: kapacitor.links.rules,
      data: rule,
    });
  }
  
subject: Change tasks to rules