Skip to content

Commit 011ceb1

Browse files
codebrainStuart Cam
authored andcommitted
Include size of snapshot in snapshot metadata (#3911)
(cherry picked from commit 0cba135)
1 parent 25d4c04 commit 011ceb1

File tree

1 file changed

+15
-0
lines changed

1 file changed

+15
-0
lines changed

src/Nest/Modules/SnapshotAndRestore/Snapshot/SnapshotStatus/SnapshotStatusResponse.cs

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -85,10 +85,25 @@ public class SnapshotShardsStats
8585

8686
public class SnapshotStats
8787
{
88+
[DataMember(Name ="incremental")]
89+
public FileCountSnapshotStats Incremental { get; internal set; }
90+
91+
[DataMember(Name ="total")]
92+
public FileCountSnapshotStats Total { get; internal set; }
93+
8894
[DataMember(Name ="start_time_in_millis")]
8995
public long StartTimeInMilliseconds { get; internal set; }
9096

9197
[DataMember(Name ="time_in_millis")]
9298
public long TimeInMilliseconds { get; internal set; }
9399
}
100+
101+
public class FileCountSnapshotStats
102+
{
103+
[DataMember(Name ="file_count")]
104+
public int FileCount { get; internal set; }
105+
106+
[DataMember(Name ="size_in_bytes")]
107+
public long SizeInBytes { get; internal set; }
108+
}
94109
}

0 commit comments

Comments
 (0)