mirror of
https://github.com/Icinga/icingaweb2.git
synced 2025-07-02 03:24:24 +02:00
Perfdata: add function to get perfdata unit
This commit is contained in:
parent
82e02c8ce1
commit
57f966734a
@ -214,6 +214,16 @@ class Perfdata
|
|||||||
return $this->value;
|
return $this->value;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Return the unit as a string
|
||||||
|
*
|
||||||
|
* @return string
|
||||||
|
*/
|
||||||
|
public function getUnit()
|
||||||
|
{
|
||||||
|
return $this->unit;
|
||||||
|
}
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Return the value as percentage (0-100)
|
* Return the value as percentage (0-100)
|
||||||
*
|
*
|
||||||
|
Loading…
x
Reference in New Issue
Block a user