Class: Yobi::RepositoryStats

Inherits:
FancyHash
  • Object
show all
Defined in:
lib/yobi/repository/stats.rb,
sig/yobi.rbs

Overview

The result of one Yobi::Repository#stats call. See https://restic.readthedocs.io/en/stable/075_scripting.html#stats.

Instance Method Summary collapse

Methods inherited from FancyHash

#initialize, #inspect, #pretty_print

Constructor Details

This class inherits a constructor from Yobi::FancyHash

Instance Method Details

#compression_progressFloat

Percentage of already compressed data.

Returns:

  • (Float)


73
74
75
# File 'lib/yobi/repository/stats.rb', line 73

def compression_progress
  self["compression_progress"] || 0.0
end

#compression_ratioFloat

Factor by which the already compressed data has shrunk due to compression.

Returns:

  • (Float)


68
69
70
# File 'lib/yobi/repository/stats.rb', line 68

def compression_ratio
  self["compression_ratio"] || 0.0
end

#compression_space_savingFloat

Overall space saving due to compression.

Returns:

  • (Float)


78
79
80
# File 'lib/yobi/repository/stats.rb', line 78

def compression_space_saving
  self["compression_space_saving"] || 0.0
end

#snapshots_countInteger

Number of processed snapshots.

Returns:

  • (Integer)


57
58
59
# File 'lib/yobi/repository/stats.rb', line 57

def snapshots_count
  self["snapshots_count"] || 0
end

#total_blob_countInteger

Number of blobs in the repository.

Returns:

  • (Integer)


52
53
54
# File 'lib/yobi/repository/stats.rb', line 52

def total_blob_count
  self["total_blob_count"] || 0
end

#total_file_countInteger

Number of files backed up in the repository.

Returns:

  • (Integer)


47
48
49
# File 'lib/yobi/repository/stats.rb', line 47

def total_file_count
  self["total_file_count"] || 0
end

#total_sizeInteger

Repository size in bytes.

Returns:

  • (Integer)


42
43
44
# File 'lib/yobi/repository/stats.rb', line 42

def total_size
  self["total_size"] || 0
end

#total_uncompressed_sizeInteger

Repository size in bytes if blobs were uncompressed.

Returns:

  • (Integer)


62
63
64
# File 'lib/yobi/repository/stats.rb', line 62

def total_uncompressed_size
  self["total_uncompressed_size"] || 0
end