PHP 클래스 Scalr_UI_Controller_Admin_Analytics_Projects

상속: extends Scalr_UI_Controller, use trait Scalr\Stats\CostAnalytics\Forecast, use trait Scalr\UI\Controller\Admin\Analytics\NotificationTrait
파일 보기 프로젝트 열기: scalr/scalr

공개 메소드들

메소드 설명
addAction ( )
defaultAction ( )
editAction ( $projectId = null, $ccId = null )
hasAccess ( )
notificationsAction ( string $projectId )
xGetMovingAverageToDateAction ( string $projectId, string $mode, string $date, string $startDate, string $endDate, string $ccId = null ) xGetMovingAverageToDateAction
xGetPeriodDataAction ( string $projectId, string $mode, string $startDate, string $endDate ) xGetPeriodDataAction
xGetProjectFarmsTopUsageOnDateAction ( string | null $projectId, string $platform, string $mode, string $date, string $start, string $end, string $ccId = null ) xGetProjectFarmsTopUsageOnDateAction
xGetProjectWidgetAccountsAction ( ) xGetProjectWidgetAccountsAction
xListAction ( string $query = null, boolean $showArchived = false ) xListAction
xRemoveAction ( string $projectId ) xRemoveAction
xSaveAction ( string $ccId, string $projectId, string $name, string $description, string $billingCode, string $leadEmail, integer $shared, integer $accountId = null, boolean $checkAccountAccessToCc = true, boolean $grantAccountAccessToCc = false ) xSaveAction
xSaveNotificationsAction ( string $projectId, JsonData $notifications )

비공개 메소드들

메소드 설명
getProjectData ( ProjectEntity $projectEntity, string $calculate = false ) : array Gets project properties and parameters
getProjectsList ( string $query = null, boolean $showArchived = false ) : array Gets an array of projects' data
getWidget ( array $values ) : array Gets data for dropdown shared type fields on project edbit page
getWidgetAccounts ( ) : array Gets list of accounts for widget

메소드 상세

addAction() 공개 메소드

public addAction ( )

defaultAction() 공개 메소드

public defaultAction ( )

editAction() 공개 메소드

public editAction ( $projectId = null, $ccId = null )

hasAccess() 공개 메소드

public hasAccess ( )

notificationsAction() 공개 메소드

public notificationsAction ( string $projectId )
$projectId string

xGetMovingAverageToDateAction() 공개 메소드

xGetMovingAverageToDateAction
public xGetMovingAverageToDateAction ( string $projectId, string $mode, string $date, string $startDate, string $endDate, string $ccId = null )
$projectId string The identifier of the project
$mode string The mode
$date string The UTC date within period ('Y-m-d H:00')
$startDate string The start date of the period in UTC ('Y-m-d')
$endDate string The end date of the period in UTC ('Y-m-d')
$ccId string optional The identifier of the cost center (It is used only when project is null)

xGetPeriodDataAction() 공개 메소드

xGetPeriodDataAction
public xGetPeriodDataAction ( string $projectId, string $mode, string $startDate, string $endDate )
$projectId string The identifier of the project (UUID)
$mode string Mode (week, month, quarter, year, custom)
$startDate string Start date in UTC (Y-m-d)
$endDate string End date in UTC (Y-m-d)

xGetProjectFarmsTopUsageOnDateAction() 공개 메소드

xGetProjectFarmsTopUsageOnDateAction
public xGetProjectFarmsTopUsageOnDateAction ( string | null $projectId, string $platform, string $mode, string $date, string $start, string $end, string $ccId = null )
$projectId string | null The identifier of the project
$platform string The cloud platform
$mode string The mode
$date string The UTC date within period ('Y-m-d H:00')
$start string The start date of the period in UTC ('Y-m-d')
$end string The end date of the period in UTC ('Y-m-d')
$ccId string optional The identifier of the cost center (It is used only when project is null)

xGetProjectWidgetAccountsAction() 공개 메소드

xGetProjectWidgetAccountsAction

xListAction() 공개 메소드

xListAction
public xListAction ( string $query = null, boolean $showArchived = false )
$query string optional Search query
$showArchived boolean optional show old archived projects

xRemoveAction() 공개 메소드

xRemoveAction
public xRemoveAction ( string $projectId )
$projectId string Identifier of the project

xSaveAction() 공개 메소드

xSaveAction
public xSaveAction ( string $ccId, string $projectId, string $name, string $description, string $billingCode, string $leadEmail, integer $shared, integer $accountId = null, boolean $checkAccountAccessToCc = true, boolean $grantAccountAccessToCc = false )
$ccId string
$projectId string
$name string
$description string
$billingCode string
$leadEmail string
$shared integer
$accountId integer optional
$checkAccountAccessToCc boolean optional
$grantAccountAccessToCc boolean optional

xSaveNotificationsAction() 공개 메소드

public xSaveNotificationsAction ( string $projectId, JsonData $notifications )
$projectId string
$notifications Scalr\UI\Request\JsonData