|
21 | 21 | /** |
22 | 22 | * Models the health api usage section in the XPack usage response. A sample response would look like this: |
23 | 23 | * { |
24 | | - * "enabled": true, |
25 | | - * "available": true, |
26 | | - * "invocations": { |
27 | | - * "total": 22, |
28 | | - * "verbose_true": 12, |
29 | | - * "verbose_false": 10 |
30 | | - * }, |
31 | | - * "statuses": { |
32 | | - * "green": 10, |
33 | | - * "yellow": 4, |
34 | | - * "red": 8, |
35 | | - * "values": ["green", "yellow", "red"] |
36 | | - * }, |
37 | | - * "indicators": { |
38 | | - * "red" : { |
39 | | - * "master_stability": 2, |
40 | | - * "ilm":2, |
41 | | - * "slm": 4, |
42 | | - * "values": ["master_stability", "ilm", "slm"] |
43 | | - * }, |
44 | | - * "yellow": { |
45 | | - * "disk": 1, |
46 | | - * "shards_availability": 1, |
47 | | - * "master_stability": 2, |
48 | | - * "values": ["disk", "shards_availability", "master_stability"] |
| 24 | + * "enabled": true, |
| 25 | + * "available": true, |
| 26 | + * "invocations": { |
| 27 | + * "total": 22, |
| 28 | + * "verbose_true": 12, |
| 29 | + * "verbose_false": 10 |
| 30 | + * }, |
| 31 | + * "statuses": { |
| 32 | + * "green": 10, |
| 33 | + * "yellow": 4, |
| 34 | + * "red": 8, |
| 35 | + * "values": ["green", "yellow", "red"] |
| 36 | + * }, |
| 37 | + * "indicators": { |
| 38 | + * "red" : { |
| 39 | + * "master_stability": 2, |
| 40 | + * "ilm":2, |
| 41 | + * "slm": 4, |
| 42 | + * "values": ["master_stability", "ilm", "slm"] |
| 43 | + * }, |
| 44 | + * "yellow": { |
| 45 | + * "disk": 1, |
| 46 | + * "shards_availability": 1, |
| 47 | + * "master_stability": 2, |
| 48 | + * "values": ["disk", "shards_availability", "master_stability"] |
| 49 | + * } |
| 50 | + * }, |
| 51 | + * "diagnoses": { |
| 52 | + * "red": { |
| 53 | + * "elasticsearch:health:shards_availability:primary_unassigned": 1, |
| 54 | + * "elasticsearch:health:disk:add_disk_capacity_master_nodes": 3, |
| 55 | + * "values": [ |
| 56 | + * "elasticsearch:health:shards_availability:primary_unassigned", |
| 57 | + * "elasticsearch:health:disk:add_disk_capacity_master_nodes" |
| 58 | + * ] |
| 59 | + * }, |
| 60 | + * "yellow": { |
| 61 | + * "elasticsearch:health:disk:add_disk_capacity_data_nodes": 1, |
| 62 | + * "values": [""elasticsearch:health:disk:add_disk_capacity_data_nodes"] |
| 63 | + * } |
| 64 | + * } |
49 | 65 | * } |
50 | | - * }, |
51 | | - * "diagnoses": { |
52 | | - * "red": { |
53 | | - * "elasticsearch:health:shards_availability:primary_unassigned": 1, |
54 | | - * "elasticsearch:health:disk:add_disk_capacity_master_nodes": 3, |
55 | | - * "values": [ |
56 | | - * "elasticsearch:health:shards_availability:primary_unassigned", |
57 | | - * "elasticsearch:health:disk:add_disk_capacity_master_nodes" |
58 | | - * ] |
59 | | - * }, |
60 | | - * "yellow": { |
61 | | - * "elasticsearch:health:disk:add_disk_capacity_data_nodes": 1, |
62 | | - * "values": [""elasticsearch:health:disk:add_disk_capacity_data_nodes"] |
63 | | - * } |
64 | | - * } |
65 | | - * } |
66 | | - * <p> |
| 66 | + * |
67 | 67 | * Note: If the minimum version of the cluster is not after 8.7.0 then the response will look like this: |
68 | 68 | * { |
69 | | - * "available": false, |
70 | | - * "enabled": true |
| 69 | + * "available": false, |
| 70 | + * "enabled": true |
71 | 71 | * } |
72 | 72 | */ |
73 | 73 | public class HealthApiFeatureSetUsage extends XPackFeatureUsage { |
|
0 commit comments