|
| 1 | +using System; |
| 2 | +using System.Collections.Generic; |
| 3 | +using System.Linq; |
| 4 | +using System.Text; |
| 5 | +using Newtonsoft.Json; |
| 6 | + |
| 7 | +namespace Nest |
| 8 | +{ |
| 9 | + public class NodeState |
| 10 | + { |
| 11 | + [JsonProperty("name")] |
| 12 | + public string Name { get; internal set; } |
| 13 | + |
| 14 | + [JsonProperty("transport_address")] |
| 15 | + public string TransportAddress { get; internal set; } |
| 16 | + |
| 17 | + [JsonProperty("attributes")] |
| 18 | + public Dictionary<string, string> Attributes { get; internal set; } |
| 19 | + } |
| 20 | + |
| 21 | + public class RoutingTableState |
| 22 | + { |
| 23 | + [JsonProperty("indices")] |
| 24 | + public Dictionary<string, IndexRoutingTable> Indices { get; internal set; } |
| 25 | + } |
| 26 | + |
| 27 | + public class IndexRoutingTable |
| 28 | + { |
| 29 | + [JsonProperty("shards")] |
| 30 | + public Dictionary<string, List<RoutingShard>> Shards { get; internal set; } |
| 31 | + } |
| 32 | + |
| 33 | + public class RoutingShard |
| 34 | + { |
| 35 | + [JsonProperty("state")] |
| 36 | + public string State { get; internal set; } |
| 37 | + |
| 38 | + [JsonProperty("primary")] |
| 39 | + public bool Primary { get; internal set; } |
| 40 | + |
| 41 | + [JsonProperty("node")] |
| 42 | + public string Node { get; internal set; } |
| 43 | + |
| 44 | + [JsonProperty("relocating_node")] |
| 45 | + public string RelocatingNode { get; internal set; } |
| 46 | + |
| 47 | + [JsonProperty("shard")] |
| 48 | + public int Shard { get; internal set; } |
| 49 | + |
| 50 | + [JsonProperty("index")] |
| 51 | + public string Index { get; internal set; } |
| 52 | + } |
| 53 | + |
| 54 | + public class RoutingNodesState |
| 55 | + { |
| 56 | + [JsonProperty("unassigned")] |
| 57 | + public List<RoutingShard> Unassigned { get; internal set; } |
| 58 | + |
| 59 | + [JsonProperty("nodes")] |
| 60 | + public Dictionary<string, List<RoutingShard>> Nodes { get; internal set; } |
| 61 | + } |
| 62 | + |
| 63 | + public class MetadataState |
| 64 | + { |
| 65 | + //[JsonProperty("templates")] |
| 66 | + //public ?? Templates { get; internal set; } |
| 67 | + |
| 68 | + [JsonProperty("indices")] |
| 69 | + public Dictionary<string, MetadataIndexState> Indices { get; internal set; } |
| 70 | + } |
| 71 | + |
| 72 | + public class MetadataIndexState |
| 73 | + { |
| 74 | + [JsonProperty("state")] |
| 75 | + public string State { get; internal set; } |
| 76 | + |
| 77 | + [JsonProperty("settings")] |
| 78 | + public Dictionary<string, string> Settings { get; internal set; } |
| 79 | + |
| 80 | + //[JsonProperty("mappings")] |
| 81 | + //public Dictionary<string, MetadataIndexStateMapping> Mappings { get; internal set; } |
| 82 | + |
| 83 | + //[JsonProperty("aliases")] |
| 84 | + //public ?? Aliases { get; internal set; } |
| 85 | + } |
| 86 | +} |
0 commit comments