java.lang.Object
org.elasticsearch.xpack.core.XPackFeatureUsage
org.elasticsearch.xpack.core.HealthApiFeatureSetUsage
- All Implemented Interfaces:
NamedWriteable,VersionedNamedWriteable,Writeable,org.elasticsearch.xcontent.ToXContent,org.elasticsearch.xcontent.ToXContentObject
Models the health api usage section in the XPack usage response. A sample response would look like this:
{
"enabled": true,
"available": true,
"invocations": {
"total": 22,
"verbose_true": 12,
"verbose_false": 10
},
"statuses": {
"green": 10,
"yellow": 4,
"red": 8,
"values": ["green", "yellow", "red"]
},
"indicators": {
"red" : {
"master_stability": 2,
"ilm":2,
"slm": 4,
"values": ["master_stability", "ilm", "slm"]
},
"yellow": {
"disk": 1,
"shards_availability": 1,
"master_stability": 2,
"values": ["disk", "shards_availability", "master_stability"]
}
},
"diagnoses": {
"red": {
"elasticsearch:health:shards_availability:primary_unassigned": 1,
"elasticsearch:health:disk:add_disk_capacity_master_nodes": 3,
"values": [
"elasticsearch:health:shards_availability:primary_unassigned",
"elasticsearch:health:disk:add_disk_capacity_master_nodes"
]
},
"yellow": {
"elasticsearch:health:disk:add_disk_capacity_data_nodes": 1,
"values": [""elasticsearch:health:disk:add_disk_capacity_data_nodes"]
}
}
}
Note: If the minimum version of the cluster is not after 8.7.0 then the response will look like this:
{
"available": false,
"enabled": true
}
-
Nested Class Summary
Nested classes/interfaces inherited from interface org.elasticsearch.xcontent.ToXContent
org.elasticsearch.xcontent.ToXContent.DelegatingMapParams, org.elasticsearch.xcontent.ToXContent.MapParams, org.elasticsearch.xcontent.ToXContent.ParamsNested classes/interfaces inherited from interface org.elasticsearch.common.io.stream.Writeable
Writeable.Reader<V>, Writeable.Writer<V> -
Field Summary
Fields inherited from class org.elasticsearch.xpack.core.XPackFeatureUsage
available, enabled, nameFields inherited from interface org.elasticsearch.xcontent.ToXContent
EMPTY, EMPTY_PARAMS -
Constructor Summary
ConstructorsConstructorDescriptionHealthApiFeatureSetUsage(boolean available, boolean enabled, Counters stats) -
Method Summary
Modifier and TypeMethodDescriptionbooleaninthashCode()protected voidinnerXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) stats()voidwriteTo(StreamOutput out) Methods inherited from class org.elasticsearch.xpack.core.XPackFeatureUsage
available, enabled, getWriteableName, name, toXContentMethods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, waitMethods inherited from interface org.elasticsearch.xcontent.ToXContentObject
isFragmentMethods inherited from interface org.elasticsearch.common.io.stream.VersionedNamedWriteable
supportsVersion
-
Constructor Details
-
HealthApiFeatureSetUsage
- Throws:
IOException
-
HealthApiFeatureSetUsage
-
-
Method Details
-
getMinimalSupportedVersion
-
stats
-
innerXContent
protected void innerXContent(org.elasticsearch.xcontent.XContentBuilder builder, org.elasticsearch.xcontent.ToXContent.Params params) throws IOException - Overrides:
innerXContentin classXPackFeatureUsage- Throws:
IOException
-
writeTo
- Specified by:
writeToin interfaceWriteable- Overrides:
writeToin classXPackFeatureUsage- Throws:
IOException
-
equals
-
hashCode
public int hashCode()
-