Свойство | Тип | Описание | |
---|---|---|---|
$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 |
public static array $nameMap | ||
Результат | array |