|
1 | 1 | using Newtonsoft.Json;
|
| 2 | +// Licensed to Elasticsearch B.V under one or more agreements. |
| 3 | +// Elasticsearch B.V licenses this file to you under the Apache 2.0 License. |
| 4 | +// See the LICENSE file in the project root for more information |
| 5 | + |
| 6 | +using System; |
2 | 7 |
|
3 | 8 | namespace Nest
|
4 | 9 | {
|
5 | 10 | [JsonObject]
|
6 | 11 | public class CatAllocationRecord : ICatRecord
|
7 | 12 | {
|
8 |
| - [JsonProperty("diskAvail")] |
| 13 | + /// <summary> |
| 14 | + /// Amount of disk available |
| 15 | + /// </summary> |
| 16 | + [JsonProperty("disk.avail")] |
9 | 17 | public string DiskAvailable { get; set; }
|
10 | 18 |
|
11 |
| - [JsonProperty("diskRatio")] |
| 19 | + /// <summary> |
| 20 | + /// Amount of disk used by Elasticsearch indices |
| 21 | + /// </summary> |
| 22 | + [JsonProperty("disk.indices")] |
| 23 | + public string DiskIndices { get; set; } |
| 24 | + |
| 25 | + /// <summary> |
| 26 | + /// The percentage of disk used |
| 27 | + /// </summary> |
| 28 | + [JsonProperty("disk.percent")] |
| 29 | + public string DiskPercent { get; set; } |
| 30 | + |
| 31 | + [Obsolete("Use DiskPercent, DiskTotal, DiskAvailable, DiskTotal and DiskIndices")] |
| 32 | + [JsonIgnore] |
12 | 33 | public string DiskRatio { get; set; }
|
13 | 34 |
|
14 |
| - [JsonProperty("diskUsed")] |
| 35 | + /// <summary> |
| 36 | + /// Total capacity of all volumes |
| 37 | + /// </summary> |
| 38 | + [JsonProperty("disk.total")] |
| 39 | + public string DiskTotal { get; set; } |
| 40 | + |
| 41 | + /// <summary> |
| 42 | + /// Amount of disk used (total, not just Elasticsearch) |
| 43 | + /// </summary> |
| 44 | + [JsonProperty("disk.used")] |
15 | 45 | public string DiskUsed { get; set; }
|
16 | 46 |
|
| 47 | + /// <summary> |
| 48 | + /// The host of the node |
| 49 | + /// </summary> |
| 50 | + [JsonProperty("host")] |
| 51 | + public string Host { get; set; } |
| 52 | + |
| 53 | + /// <summary> |
| 54 | + /// The IP address of the node |
| 55 | + /// </summary> |
17 | 56 | [JsonProperty("ip")]
|
18 | 57 | public string Ip { get; set; }
|
19 | 58 |
|
| 59 | + /// <summary> |
| 60 | + /// The name of the node |
| 61 | + /// </summary> |
20 | 62 | [JsonProperty("node")]
|
21 | 63 | public string Node { get; set; }
|
22 | 64 |
|
| 65 | + /// <summary> |
| 66 | + /// Number of shards on the node |
| 67 | + /// </summary> |
23 | 68 | [JsonProperty("shards")]
|
24 | 69 | public string Shards { get; set; }
|
25 | 70 | }
|
|
0 commit comments