* This program is free software: you can redistribute it and/or modify it * under the terms of the GNU General Public License as published by the * Free Software Foundation, either version 3 of the License, or (at your * option) any later version. Please see LICENSE.txt at the top level of * the source code distribution for details. */ namespace LibreNMS\Alert\Transport; use LibreNMS\Alert\Transport; class Msteams extends Transport { public function deliverAlert($obj, $opts) { if (!empty($this->config)) { $opts['url'] = $this->config['msteam-url']; } return $this->contactMsteams($obj, $opts); } public function contactMsteams($obj, $opts) { $url = $opts['url']; $data = array( 'title' => $obj['title'], 'themeColor' => self::getColorForState($obj['state']), 'text' => strip_tags($obj['msg'], '