mirror of
https://github.com/librenms/librenms.git
synced 2024-10-07 16:52:45 +00:00
33 lines
670 B
PHP
33 lines
670 B
PHP
<?php
|
|
/**
|
|
* Created by IntelliJ IDEA.
|
|
* User: murrant
|
|
* Date: 12/6/17
|
|
* Time: 8:48 AM
|
|
*/
|
|
|
|
namespace LibreNMS\Interfaces\Discovery;
|
|
|
|
use LibreNMS\OS;
|
|
|
|
interface DiscoveryItem
|
|
{
|
|
/**
|
|
* Does this item represent an actual item or did it fail validation
|
|
*
|
|
* @return bool
|
|
*/
|
|
public function isValid();
|
|
|
|
/**
|
|
* Generate an instance of this class from yaml data.
|
|
* The data is processed and any snmp data is filled in
|
|
*
|
|
* @param OS $os
|
|
* @param int $index the index of the current entry
|
|
* @param array $data
|
|
* @return static
|
|
*/
|
|
public static function fromYaml(OS $os, $index, array $data);
|
|
}
|