Perfdata: add function to get perfdata unit

This commit is contained in:
Feu Mourek 2019-11-04 11:36:20 +01:00
parent 82e02c8ce1
commit 57f966734a
1 changed files with 10 additions and 0 deletions

View File

@ -214,6 +214,16 @@ class Perfdata
return $this->value;
}
/**
* Return the unit as a string
*
* @return string
*/
public function getUnit()
{
return $this->unit;
}
/**
* Return the value as percentage (0-100)
*