PHP Class Spatie\Backup\Tasks\Monitor\BackupDestinationStatus

Afficher le fichier Open project: spatie/laravel-backup Class Usage Examples

Protected Properties

Свойство Type Description
$backupDestination Spatie\Backup\BackupDestination\BackupDestination
$diskName string
$maximumAgeOfNewestBackupInDays integer
$maximumStorageUsageInMegabytes integer
$reachable boolean

Méthodes publiques

Méthode Description
__construct ( BackupDestination $backupDestination, string $diskName )
amountOfBackups ( ) : integer
backupDestination ( ) : BackupDestination
backupName ( ) : string
connectionError ( ) : Exception
dateOfNewestBackup ( ) : Carbon\Carbon | null
diskName ( ) : string
humanReadableAllowedStorage ( ) : string
humanReadableUsedStorage ( ) : string
isHealthy ( ) : boolean
isReachable ( ) : boolean
maximumAgeOfNewestBackupInDays ( ) : integer
maximumAllowedUsageInBytes ( ) : integer
newestBackupIsTooOld ( ) : boolean
setMaximumAgeOfNewestBackupInDays ( integer $days ) : BackupDestinationStatus
setMaximumStorageUsageInMegabytes ( float $megabytes ) : BackupDestinationStatus
usedStorage ( ) : integer
usesTooMuchStorage ( ) : boolean

Method Details

__construct() public méthode

public __construct ( BackupDestination $backupDestination, string $diskName )
$backupDestination Spatie\Backup\BackupDestination\BackupDestination
$diskName string

amountOfBackups() public méthode

public amountOfBackups ( ) : integer
Résultat integer

backupDestination() public méthode

public backupDestination ( ) : BackupDestination
Résultat Spatie\Backup\BackupDestination\BackupDestination

backupName() public méthode

public backupName ( ) : string
Résultat string

connectionError() public méthode

public connectionError ( ) : Exception
Résultat Exception

dateOfNewestBackup() public méthode

public dateOfNewestBackup ( ) : Carbon\Carbon | null
Résultat Carbon\Carbon | null

diskName() public méthode

public diskName ( ) : string
Résultat string

humanReadableAllowedStorage() public méthode

public humanReadableAllowedStorage ( ) : string
Résultat string

humanReadableUsedStorage() public méthode

public humanReadableUsedStorage ( ) : string
Résultat string

isHealthy() public méthode

public isHealthy ( ) : boolean
Résultat boolean

isReachable() public méthode

public isReachable ( ) : boolean
Résultat boolean

maximumAgeOfNewestBackupInDays() public méthode

maximumAllowedUsageInBytes() public méthode

public maximumAllowedUsageInBytes ( ) : integer
Résultat integer

newestBackupIsTooOld() public méthode

public newestBackupIsTooOld ( ) : boolean
Résultat boolean

setMaximumAgeOfNewestBackupInDays() public méthode

public setMaximumAgeOfNewestBackupInDays ( integer $days ) : BackupDestinationStatus
$days integer
Résultat BackupDestinationStatus

setMaximumStorageUsageInMegabytes() public méthode

public setMaximumStorageUsageInMegabytes ( float $megabytes ) : BackupDestinationStatus
$megabytes float
Résultat BackupDestinationStatus

usedStorage() public méthode

public usedStorage ( ) : integer
Résultat integer

usesTooMuchStorage() public méthode

public usesTooMuchStorage ( ) : boolean
Résultat boolean

Property Details

$backupDestination protected_oe property

protected BackupDestination,Spatie\Backup\BackupDestination $backupDestination
Résultat Spatie\Backup\BackupDestination\BackupDestination

$diskName protected_oe property

protected string $diskName
Résultat string

$maximumAgeOfNewestBackupInDays protected_oe property

protected int $maximumAgeOfNewestBackupInDays
Résultat integer

$maximumStorageUsageInMegabytes protected_oe property

protected int $maximumStorageUsageInMegabytes
Résultat integer

$reachable protected_oe property

protected bool $reachable
Résultat boolean