Class: Yobi::SnapshotSummary

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

Overview

The "summary" field of a Snapshot, the stats recorded when it was created. https://restic.readthedocs.io/en/stable/075_scripting.html#snapshotsummary-object

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

#backup_endTime?

Returns:

  • (Time, nil)


60
61
62
# File 'lib/yobi/snapshot.rb', line 60

def backup_end
  @backup_end ||= Time.parse(self["backup_end"]) if self["backup_end"]
end

#backup_startTime?

Returns:

  • (Time, nil)


55
56
57
# File 'lib/yobi/snapshot.rb', line 55

def backup_start
  @backup_start ||= Time.parse(self["backup_start"]) if self["backup_start"]
end

#data_addedInteger

Returns:

  • (Integer)


105
106
107
# File 'lib/yobi/snapshot.rb', line 105

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

#data_added_packedInteger

Returns:

  • (Integer)


110
111
112
# File 'lib/yobi/snapshot.rb', line 110

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

#data_blobsInteger

Returns:

  • (Integer)


95
96
97
# File 'lib/yobi/snapshot.rb', line 95

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

#dirs_changedInteger

Returns:

  • (Integer)


85
86
87
# File 'lib/yobi/snapshot.rb', line 85

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

#dirs_newInteger

Returns:

  • (Integer)


80
81
82
# File 'lib/yobi/snapshot.rb', line 80

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

#dirs_unmodifiedInteger

Returns:

  • (Integer)


90
91
92
# File 'lib/yobi/snapshot.rb', line 90

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

#files_changedInteger

Returns:

  • (Integer)


70
71
72
# File 'lib/yobi/snapshot.rb', line 70

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

#files_newInteger

Returns:

  • (Integer)


65
66
67
# File 'lib/yobi/snapshot.rb', line 65

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

#files_unmodifiedInteger

Returns:

  • (Integer)


75
76
77
# File 'lib/yobi/snapshot.rb', line 75

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

#total_bytes_processedInteger

Returns:

  • (Integer)


120
121
122
# File 'lib/yobi/snapshot.rb', line 120

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

#total_files_processedInteger

Returns:

  • (Integer)


115
116
117
# File 'lib/yobi/snapshot.rb', line 115

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

#tree_blobsInteger

Returns:

  • (Integer)


100
101
102
# File 'lib/yobi/snapshot.rb', line 100

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