Skip to content

Commit

Permalink
Include size of snapshot in snapshot metadata (#3911)
Browse files Browse the repository at this point in the history
(cherry picked from commit 0cba135)
  • Loading branch information
codebrain authored and russcam committed Jul 9, 2019
1 parent 7b814e0 commit 77a133a
Showing 1 changed file with 15 additions and 0 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -85,10 +85,25 @@ public class SnapshotShardsStats

public class SnapshotStats
{
[DataMember(Name ="incremental")]
public FileCountSnapshotStats Incremental { get; internal set; }

[DataMember(Name ="total")]
public FileCountSnapshotStats Total { get; internal set; }

[DataMember(Name ="start_time_in_millis")]
public long StartTimeInMilliseconds { get; internal set; }

[DataMember(Name ="time_in_millis")]
public long TimeInMilliseconds { get; internal set; }
}

public class FileCountSnapshotStats
{
[DataMember(Name ="file_count")]
public int FileCount { get; internal set; }

[DataMember(Name ="size_in_bytes")]
public long SizeInBytes { get; internal set; }
}
}

0 comments on commit 77a133a

Please sign in to comment.