PHP 클래스 Scalr\Model\Entity\ScalingMetric

부터: 5.9 (10.06.2015)
저자: Roman Kolodnitskyi ([email protected])
상속: extends Scalr\Model\AbstractEntity, implements Scalr\DataType\ScopeInterface
파일 보기 프로젝트 열기: scalr/scalr 1 사용 예제들

공개 프로퍼티들

프로퍼티 타입 설명
$accountId integer The identifier of the client's account.
$algorithm string Algorithm.
$alias string Alias.
$calcFunction string Calculating function.
$envId integer The identifier of the client's environment.
$filePath string File path.
$id integer ID.
$isInvert boolean Should it follow inverted logic
$name string Metric's Name.
$retrieveMethod string Retrieve method.

공개 메소드들

메소드 설명
getAlgorithm ( string $algoName ) : Scalr_Scaling_Algorithms_DateTim\Scalr_Scaling_Algorithms_DateTime | Scalr_Scaling_Algorithms_Senso\Scalr_Scaling_Algorithms_Sensor Get specified algorithm object
getList ( integer $envId ) : array Get list with basic info about metrics.
getScope ( )
isUsed ( ) : integer | false Checks whether the ScalingMetric is already used in some FarmRoleScalingMetric

메소드 상세

getAlgorithm() 공개 정적인 메소드

Get specified algorithm object
public static getAlgorithm ( string $algoName ) : Scalr_Scaling_Algorithms_DateTim\Scalr_Scaling_Algorithms_DateTime | Scalr_Scaling_Algorithms_Senso\Scalr_Scaling_Algorithms_Sensor
$algoName string Name of algorithm
리턴 Scalr_Scaling_Algorithms_DateTim\Scalr_Scaling_Algorithms_DateTime | Scalr_Scaling_Algorithms_Senso\Scalr_Scaling_Algorithms_Sensor Algorithm object

getList() 공개 정적인 메소드

Get list with basic info about metrics.
public static getList ( integer $envId ) : array
$envId integer Identifier of environment
리턴 array

getScope() 공개 메소드

또한 보기: Scalr\DataType\ScopeInterface::getScope()
public getScope ( )

isUsed() 공개 메소드

Checks whether the ScalingMetric is already used in some FarmRoleScalingMetric
public isUsed ( ) : integer | false
리턴 integer | false Number of FarmRoleScalingMetric using this metric or false

프로퍼티 상세

$accountId 공개적으로 프로퍼티

The identifier of the client's account.
public int $accountId
리턴 integer

$algorithm 공개적으로 프로퍼티

Algorithm.
public string $algorithm
리턴 string

$alias 공개적으로 프로퍼티

Alias.
public string $alias
리턴 string

$calcFunction 공개적으로 프로퍼티

Calculating function.
public string $calcFunction
리턴 string

$envId 공개적으로 프로퍼티

The identifier of the client's environment.
public int $envId
리턴 integer

$filePath 공개적으로 프로퍼티

File path.
public string $filePath
리턴 string

$id 공개적으로 프로퍼티

ID.
public int $id
리턴 integer

$isInvert 공개적으로 프로퍼티

Should it follow inverted logic
public bool $isInvert
리턴 boolean

$name 공개적으로 프로퍼티

Metric's Name.
public string $name
리턴 string

$retrieveMethod 공개적으로 프로퍼티

Retrieve method.
public string $retrieveMethod
리턴 string