PHP Class Scalr_Scaling_Sensor

Mostrar archivo Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$isInvert boolean Whether this sensor has inverted logic

Public Methods

Method Description
get ( string $metricAlias ) : Scalr_Scaling_Sensor Gets metric
getValue ( DBFarmRole $dbFarmRole, Scalr_Scaling_FarmRoleMetric $farmRoleMetric ) : mixed Calculates metric value for specified metric and Farm role

Method Details

get() public static method

Gets metric
public static get ( string $metricAlias ) : Scalr_Scaling_Sensor
$metricAlias string An alias
return Scalr_Scaling_Sensor

getValue() abstract public method

Calculates metric value for specified metric and Farm role
abstract public getValue ( DBFarmRole $dbFarmRole, Scalr_Scaling_FarmRoleMetric $farmRoleMetric ) : mixed
$dbFarmRole DBFarmRole Farm role for which metrics calculated
$farmRoleMetric Scalr_Scaling_FarmRoleMetric Farm role metric
return mixed

Property Details

$isInvert public_oe property

Whether this sensor has inverted logic
public bool $isInvert
return boolean