. * * @link https://www.librenms.org * * @copyright 2018 Tony Murray * @author Tony Murray */ namespace LibreNMS\Interfaces\Data; interface Datastore extends DataStorageInterface { /** * Check if this is enabled by the configuration * * @return bool */ public static function isEnabled(); /** * Checks if the datastore wants rrdtags to be sent when issuing put() * * @return bool */ public function wantsRrdTags(); /** * The name of this datastore * * @return string */ public function getName(); /** * Array of stats should be [type => [count => n, time => s]] * * @return array */ public function getStats(); }