프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$nameMap | array | Scaling metric name mapping |
프로퍼티 | 타입 | 설명 | |
---|---|---|---|
$entityClass | |||
$functionMap | array | The list of allowed functions | |
$rules | array | Converter rules |
메소드 | 설명 | |
---|---|---|
_filePath ( $from, $to, $action ) | ||
_function ( $from, $to, $action ) | ||
_name ( $from, $to, $action ) | ||
_retrieveMethod ( $from, $to, $action ) | ||
_scope ( $from, $to, $action ) | ||
functionToEntity ( stdClass $object ) : string | Get function name from map | |
metricNameToData ( string | string[] $name ) : string | string[] | Change metrics name used in api responses | |
metricNameToEntity ( string $name ) : string | Get metrics name used in API to internal representation If metric name exist in nameMapping function will return changed name | |
validateEntity ( $entity ) |
public functionToEntity ( stdClass $object ) : string | ||
$object | stdClass | |
리턴 | string |
public static metricNameToData ( string | string[] $name ) : string | string[] | ||
$name | string | string[] | Metric's name or list of names |
리턴 | string | string[] |
public static metricNameToEntity ( string $name ) : string | ||
$name | string | Metric's name |
리턴 | string |
protected static array $functionMap | ||
리턴 | array |