Property | Type | Description | |
---|---|---|---|
$nameMap | array | Scaling metric name mapping |
Property | Type | Description | |
---|---|---|---|
$entityClass | |||
$functionMap | array | The list of allowed functions | |
$rules | array | Converter rules |
Method | Description | |
---|---|---|
_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 | |
return | string |
public static metricNameToData ( string | string[] $name ) : string | string[] | ||
$name | string | string[] | Metric's name or list of names |
return | string | string[] |
public static metricNameToEntity ( string $name ) : string | ||
$name | string | Metric's name |
return | string |
protected static array $functionMap | ||
return | array |
public static array $nameMap | ||
return | array |