PHP Class Scalr\Api\Service\User\V1beta0\Adapter\ScalingRuleAdapter

Since: 5.11.7 (25.01.2016)
Author: Andrii Penchuk ([email protected])
Inheritance: extends Scalr\Api\DataType\ApiEntityAdapter
Mostrar archivo Open project: scalr/scalr Class Usage Examples

Public Properties

Property Type Description
$ruleTypeMap array Rule type mapping

Protected Properties

Property Type Description
$entityClass string Entity class name
$rules array Converter rules

Public Methods

Method Description
_name ( $from, $to, $action )
_ruleType ( $from, $to, $action )
getRuleType ( string $name ) : string Get metric rule type
validateEntity ( FarmRoleScalingMetric $entity )
validateNumericSetting ( array $settings, string $name, string $property = null, integer $minValue ) Validate Integer Scaling rule settings
validateObject ( $object, $method = null )

Method Details

_name() public method

public _name ( $from, $to, $action )

_ruleType() public method

public _ruleType ( $from, $to, $action )

getRuleType() public static method

Get metric rule type
public static getRuleType ( string $name ) : string
$name string metric's name
return string

validateEntity() public method

See also: ApiEntityAdapter::validateEntity()
public validateEntity ( FarmRoleScalingMetric $entity )
$entity Scalr\Model\Entity\FarmRoleScalingMetric scaling metric entity

validateNumericSetting() public method

Validate Integer Scaling rule settings
public validateNumericSetting ( array $settings, string $name, string $property = null, integer $minValue )
$settings array entity settings
$name string entity property name
$property string optional property name
$minValue integer optional min property value

validateObject() public method

See also: ApiEntityAdapter::validateObject()
public validateObject ( $object, $method = null )

Property Details

$entityClass protected_oe property

Entity class name
protected string $entityClass
return string

$ruleTypeMap public_oe static_oe property

Rule type mapping
public static array $ruleTypeMap
return array

$rules protected_oe property

Converter rules
protected array $rules
return array