CSMonitorObservation
in package
Represents a monitor observation record
Tags
Table of Contents
- __construct() : mixed
- Set Monitorobservation
- calculateDuration() : string
- Calculate duration for Monitorobservation Services
- getCriticalValue() : string
- Get value criticalvalue from Monitorobservation, optional you can set $withUnit true to format the value with value unit
- getDuration() : string
- Get duration from Monitorobservation
- getID() : int
- Get ID for Monitorobservation
- getMeasuredValue() : string
- Get value value from Monitorobservation, optional you can set $withUnit true to format the value with value unit
- getObserver() : CSMonitorObserver
- Get Observer for current MonitorobserverID
- getObserverID() : int
- Get ObserverID for current Observer
- getPreviousState() : int
- Get value previous state from Monitorobservation
- getService() : string
- Get value service
- getState() : int
- Get value state from Monitorobservation
- getTimestamp() : string
- Get Timestamp from Monitorobservation
- getType() : int
- Get Value type from Monitorobservation
- getTypeLabel() : string
- Get the translation for an given notification type
- getUnit() : string
- Get value unit from Monitorobservation
- getValue() : string
- Get value from Monitorobservation
- getWarningValue() : string
- Get value warningvalue from Monitorobservation, optional you can set $withUnit true to format the value with value unit
- setCriticalValue() : mixed
- Set value criticalvalue to Monitorobservation
- setDuration() : mixed
- Set duration to Monitorobservation
- setMeasuredValue() : mixed
- Set value value to Monitorobservation
- setPreviousState() : mixed
- Set value previous state to Monitorobservation
- setState() : mixed
- Set value state to Monitorobservation
- setTimestamp() : mixed
- Set Timestamp to Monitorobservation
- setType() : void
- Set Type for Monitorobservation
- setUnit() : mixed
- Set value unti to Monitorobservation
- setValue() : mixed
- Set value to Monitorobservation
- setWarningValue() : mixed
- Set value warningvalue to Monitorobservation
- store() : int
- Stores the record in db
Methods
__construct()
Set Monitorobservation
public
__construct([int|Record $record = NULL ]) : mixed
Parameters
- $record : int|Record = NULL
Tags
Return values
mixed —calculateDuration()
Calculate duration for Monitorobservation Services
public
calculateDuration() : string
Tags
Return values
string —getCriticalValue()
Get value criticalvalue from Monitorobservation, optional you can set $withUnit true to format the value with value unit
public
getCriticalValue([bool $withUnit = FALSE ]) : string
Parameters
- $withUnit : bool = FALSE
Tags
Return values
string —getDuration()
Get duration from Monitorobservation
public
getDuration() : string
Tags
Return values
string —getID()
Get ID for Monitorobservation
public
getID() : int
Tags
Return values
int —getMeasuredValue()
Get value value from Monitorobservation, optional you can set $withUnit true to format the value with value unit
public
getMeasuredValue([bool $withUnit = FALSE ]) : string
Parameters
- $withUnit : bool = FALSE
Tags
Return values
string —getObserver()
Get Observer for current MonitorobserverID
public
getObserver() : CSMonitorObserver
Tags
Return values
CSMonitorObserver —getObserverID()
Get ObserverID for current Observer
public
getObserverID() : int
Tags
Return values
int —getPreviousState()
Get value previous state from Monitorobservation
public
getPreviousState() : int
Tags
Return values
int —getService()
Get value service
public
getService() : string
Tags
Return values
string —getState()
Get value state from Monitorobservation
public
getState() : int
Tags
Return values
int —getTimestamp()
Get Timestamp from Monitorobservation
public
getTimestamp() : string
Tags
Return values
string —getType()
Get Value type from Monitorobservation
public
getType() : int
Tags
Return values
int —getTypeLabel()
Get the translation for an given notification type
public
getTypeLabel() : string
Tags
Return values
string —getUnit()
Get value unit from Monitorobservation
public
getUnit() : string
Tags
Return values
string —getValue()
Get value from Monitorobservation
public
getValue(string $name) : string
Parameters
- $name : string
Tags
Return values
string —getWarningValue()
Get value warningvalue from Monitorobservation, optional you can set $withUnit true to format the value with value unit
public
getWarningValue([bool $withUnit = FALSE ]) : string
Parameters
- $withUnit : bool = FALSE
Tags
Return values
string —setCriticalValue()
Set value criticalvalue to Monitorobservation
public
setCriticalValue(float $value) : mixed
Parameters
- $value : float
Tags
Return values
mixed —setDuration()
Set duration to Monitorobservation
public
setDuration(string $duration) : mixed
Parameters
- $duration : string
Tags
Return values
mixed —setMeasuredValue()
Set value value to Monitorobservation
public
setMeasuredValue(float $value) : mixed
Parameters
- $value : float
Tags
Return values
mixed —setPreviousState()
Set value previous state to Monitorobservation
public
setPreviousState(int $state) : mixed
Parameters
- $state : int
Tags
Return values
mixed —setState()
Set value state to Monitorobservation
public
setState(int $state) : mixed
Parameters
- $state : int
Tags
Return values
mixed —setTimestamp()
Set Timestamp to Monitorobservation
public
setTimestamp(string $timestamp) : mixed
Parameters
- $timestamp : string
Tags
Return values
mixed —setType()
Set Type for Monitorobservation
public
setType(int $type) : void
Parameters
- $type : int
Tags
Return values
void —setUnit()
Set value unti to Monitorobservation
public
setUnit(string $unit) : mixed
Parameters
- $unit : string
Tags
Return values
mixed —setValue()
Set value to Monitorobservation
public
setValue(string $name, mixed $value) : mixed
Parameters
- $name : string
- $value : mixed
Tags
Return values
mixed —setWarningValue()
Set value warningvalue to Monitorobservation
public
setWarningValue(float $value) : mixed
Parameters
- $value : float
Tags
Return values
mixed —store()
Stores the record in db
public
store() : int
Tags
Return values
int —the id of the updated or created record
