-
Notifications
You must be signed in to change notification settings - Fork 1.1k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Implement Get SLM Stats API and add XPack usage API response items. (cherry picked from commit 48cdd63)
- Loading branch information
Showing
12 changed files
with
194 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
9 changes: 9 additions & 0 deletions
9
src/Nest/XPack/Slm/GetStats/GetSnapshotLifecycleStatsRequest.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,9 @@ | ||
namespace Nest | ||
{ | ||
[MapsApi("slm.get_stats")] | ||
public partial interface IGetSnapshotLifecycleStatsRequest { } | ||
|
||
public partial class GetSnapshotLifecycleStatsRequest { } | ||
|
||
public partial class GetSnapshotLifecycleStatsDescriptor { } | ||
} |
55 changes: 55 additions & 0 deletions
55
src/Nest/XPack/Slm/GetStats/GetSnapshotLifecycleStatsResponse.cs
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
using System.Runtime.Serialization; | ||
|
||
namespace Nest | ||
{ | ||
public class GetSnapshotLifecycleStatsResponse : ResponseBase | ||
{ | ||
[DataMember(Name = "retention_runs")] | ||
public long RetentionRuns { get; internal set; } | ||
|
||
[DataMember(Name = "retention_failed")] | ||
public long RetentionFailed { get; internal set; } | ||
|
||
[DataMember(Name = "retention_timed_out")] | ||
public long RetentionTimedOut { get; internal set; } | ||
|
||
[DataMember(Name = "retention_deletion_time")] | ||
public string RetentionDeletionTime { get; internal set; } | ||
|
||
[DataMember(Name = "retention_deletion_time_millis")] | ||
public long RetentionDeletionTimeMilliseconds { get; internal set; } | ||
|
||
[DataMember(Name = "total_snapshots_taken")] | ||
public long TotalSnapshotsTaken { get; internal set; } | ||
|
||
[DataMember(Name = "total_snapshots_failed")] | ||
public long TotalSnapshotsFailed { get; internal set; } | ||
|
||
[DataMember(Name = "total_snapshots_deleted")] | ||
public long TotalSnapshotsDeleted { get; internal set; } | ||
|
||
[DataMember(Name = "total_snapshot_deletion_failures")] | ||
public long TotalSnapshotsDeletionFailures { get; internal set; } | ||
|
||
//[DataMember(Name = "policy_stats")] | ||
//public IDictionary<string, SnapshotPolicyStats> PolicyStats { get; internal set; } | ||
} | ||
|
||
public class SnapshotPolicyStats | ||
{ | ||
[DataMember(Name = "policy")] | ||
public string PolicyId { get; internal set; } | ||
|
||
[DataMember(Name = "snapshots_taken")] | ||
public long SnapshotsTaken { get; internal set; } | ||
|
||
[DataMember(Name = "snapshots_failed")] | ||
public long SnapshotsFailed { get; internal set; } | ||
|
||
[DataMember(Name = "snapshots_deleted")] | ||
public long SnapshotsDeleted { get; internal set; } | ||
|
||
[DataMember(Name = "snapshot_deletion_failures")] | ||
public long SnapshotsDeletionFailures { get; internal set; } | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters