Skip to content

Commit 1ad8d6d

Browse files
committed
Merge pull request #1394 from elastic/feature/recovery-translog-stats
fix #1363 added more translog stats on recovery api and cat recovery
2 parents d9b9736 + f890142 commit 1ad8d6d

File tree

2 files changed

+23
-0
lines changed

2 files changed

+23
-0
lines changed

src/Nest/Domain/Cat/CatRecoveryRecord.cs

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -41,5 +41,15 @@ public class CatRecoveryRecord : ICatRecord
4141
[JsonProperty("bytes_percent")]
4242
public string BytesPercent { get; set; }
4343

44+
[JsonProperty("translog")]
45+
public long? Translog { get; set; }
46+
47+
[JsonProperty("translog_percent")]
48+
public string TranslogPercent { get; set; }
49+
50+
[JsonProperty("total_translog")]
51+
public long? TotalTranslog { get; set; }
52+
53+
4454
}
4555
}

src/Nest/Domain/Recovery/RecoveryTranslogStatus.cs

Lines changed: 13 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,19 @@ public class RecoveryTranslogStatus
77
[JsonProperty("recovered")]
88
public long Recovered { get; internal set; }
99

10+
[JsonProperty("total")]
11+
public long Total { get; internal set; }
12+
13+
[JsonProperty("percent")]
14+
public string Percent { get; internal set; }
15+
16+
[JsonProperty("total_on_start")]
17+
public long TotalOnStart { get; internal set; }
18+
19+
[JsonProperty("total_time")]
20+
public string TotalTime { get; internal set; }
21+
22+
//TODO should be a long in 2.0
1023
[JsonProperty("total_time_in_millis")]
1124
public string TotalTimeInMilliseconds { get; internal set; }
1225
}

0 commit comments

Comments
 (0)