PHP 클래스 Scalr_UI_Controller_Admin_Analytics_Pricing

상속: extends Scalr_UI_Controller
파일 보기 프로젝트 열기: scalr/scalr

공개 메소드들

메소드 설명
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, JsonData $prices, string $url = '', string $effectiveDate = null, boolean $forbidAutomaticUpdate = false ) 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

메소드 상세

defaultAction() 공개 메소드

public defaultAction ( )

getPlatformPricing() 공개 메소드

Gets pricing
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

getPrice() 공개 메소드

Loads price details
public getPrice ( Scalr\Stats\CostAnalytics\Entity\PriceHistoryEntity $price ) : array
$price Scalr\Stats\CostAnalytics\Entity\PriceHistoryEntity Existing price history entity
리턴 array Returns list of the prices

hasAccess() 공개 메소드

public hasAccess ( )

xDeleteAction() 공개 메소드

Removes prices on the future effective date
public xDeleteAction ( string $platform, string $cloudLocation, string $effectiveDate, string $url = '' )
$platform string
$cloudLocation string
$effectiveDate string The date when the prices will be applied
$url string optional

xGetPlatformEndpointsAction() 공개 메소드

xGetPlatformEndpointsAction
public xGetPlatformEndpointsAction ( string $platform )
$platform string The cloud platform

xGetPlatformInstanceTypesAction() 공개 메소드

xGetPlatformInstanceTypesAction
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

xGetPlatformLocationsAction() 공개 메소드

xGetPlatformLocationsAction
public xGetPlatformLocationsAction ( string $platform, string $url = '', string $envId = null )
$platform string Platform name
$url string optional The endpoint url
$envId string optional The identifier of the environment

xGetPlatformPricingAction() 공개 메소드

xGetPlatformPricingAction
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

xGetPlatformPricingHistoryAction() 공개 메소드

xGetPlatformPricingHistoryAction
public xGetPlatformPricingHistoryAction ( string $platform, string $cloudLocation, string $url = '' )
$platform string The cloud platform
$cloudLocation string The cloud location
$url string optional The cloud's endpoint url

xSavePriceAction() 공개 메소드

xSavePriceAction
public xSavePriceAction ( string $platform, string $cloudLocation, JsonData $prices, string $url = '', string $effectiveDate = null, boolean $forbidAutomaticUpdate = false )
$platform string The cloud platform
$cloudLocation string The cloud location
$prices Scalr\UI\Request\JsonData Price list
$url string optional The url of the cloud
$effectiveDate string optional The date when the prices will be applied
$forbidAutomaticUpdate boolean optional