Метод | Описание | |
---|---|---|
defaultAction ( ) | ||
getPlatformPricing ( string $platform, string $cloudLocation, string $url, DateTime $effectiveDate ) : Scalr\Stats\CostAnalytics\Entity\PriceHistoryEntity | Gets pricing | |
getPrice ( Scalr\Stats\CostAnalytics\Entity\PriceHistoryEntity $price ) : array | Loads price details | |
hasAccess ( ) | ||
xDeleteAction ( string $platform, string $cloudLocation, string $effectiveDate, string $url = '' ) | Removes prices on the future effective date | |
xGetPlatformEndpointsAction ( string $platform ) | xGetPlatformEndpointsAction | |
xGetPlatformInstanceTypesAction ( string $platform, string $cloudLocation, string $envId = null, string $effectiveDate = null ) | xGetPlatformInstanceTypesAction | |
xGetPlatformLocationsAction ( string $platform, string $url = '', string $envId = null ) | xGetPlatformLocationsAction | |
xGetPlatformPricingAction ( string $platform, string $cloudLocation, string $url = '', string $effectiveDate = null ) | xGetPlatformPricingAction | |
xGetPlatformPricingHistoryAction ( string $platform, string $cloudLocation, string $url = '' ) | xGetPlatformPricingHistoryAction | |
xSavePriceAction ( string $platform, string $cloudLocation, |
xSavePriceAction |
Метод | Описание | |
---|---|---|
getEnvIdByPlatform ( string $platform ) : integer | Gets envId for Ec2 or GCE platform module | |
getTypesWithPrices ( string $cloudLocation, string $url, Scalr\Modules\PlatformModuleInterface $pm, string $platformName, DateTime $effectiveDate = null, Scalr_Environment $env = null ) : array | Gets instance types with its prices | |
handleEffectiveDate ( string $effectiveDate ) : array | Handles effective date |
public getPlatformPricing ( string $platform, string $cloudLocation, string $url, DateTime $effectiveDate ) : Scalr\Stats\CostAnalytics\Entity\PriceHistoryEntity | ||
$platform | string | The cloud platform |
$cloudLocation | string | The cloud location |
$url | string | The cloud endpoint url |
$effectiveDate | DateTime | The date on wich prices should be applied |
Результат | Scalr\Stats\CostAnalytics\Entity\PriceHistoryEntity |
public xGetPlatformEndpointsAction ( string $platform ) | ||
$platform | string | The cloud platform |
public xGetPlatformInstanceTypesAction ( string $platform, string $cloudLocation, string $envId = null, string $effectiveDate = null ) | ||
$platform | string | The name of the cloud platform |
$cloudLocation | string | The cloud location |
$envId | string | optional The identifier of the environment |
$effectiveDate | string | optional The date on which prices should be applied YYYY-MM-DD |
public xGetPlatformPricingAction ( string $platform, string $cloudLocation, string $url = '', string $effectiveDate = null ) | ||
$platform | string | The cloud platform |
$cloudLocation | string | The cloud location |
$url | string | optional The cloud's endpoint url |
$effectiveDate | string | optional The date on which prises should be applied |
public xSavePriceAction ( string $platform, string $cloudLocation, |
||
$platform | string | The cloud platform |
$cloudLocation | string | The cloud location |
$prices | Price list | |
$url | string | optional The url of the cloud |
$effectiveDate | string | optional The date when the prices will be applied |
$forbidAutomaticUpdate | boolean | optional |