Package org.elasticsearch.client.slm
Class SnapshotLifecycleStats.SnapshotPolicyStats
- java.lang.Object
-
- org.elasticsearch.client.slm.SnapshotLifecycleStats.SnapshotPolicyStats
-
- All Implemented Interfaces:
ToXContent,ToXContentFragment
- Enclosing class:
- SnapshotLifecycleStats
public static class SnapshotLifecycleStats.SnapshotPolicyStats extends java.lang.Object implements ToXContentFragment
-
-
Nested Class Summary
-
Nested classes/interfaces inherited from interface org.elasticsearch.common.xcontent.ToXContent
ToXContent.DelegatingMapParams, ToXContent.MapParams, ToXContent.Params
-
-
Field Summary
Fields Modifier and Type Field Description static ParseFieldPOLICY_ID-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Constructor Summary
Constructors Constructor Description SnapshotPolicyStats(java.lang.String policyId, long snapshotsTaken, long snapshotsFailed, long deleted, long failedDeletes)
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)java.lang.StringgetPolicyId()longgetSnapshotDeleteFailures()longgetSnapshotsDeleted()longgetSnapshotsFailed()longgetSnapshotsTaken()inthashCode()static SnapshotLifecycleStats.SnapshotPolicyStatsparse(XContentParser parser, java.lang.String policyId)XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, toString, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentFragment
isFragment
-
-
-
-
Field Detail
-
POLICY_ID
public static final ParseField POLICY_ID
-
-
Method Detail
-
parse
public static SnapshotLifecycleStats.SnapshotPolicyStats parse(XContentParser parser, java.lang.String policyId)
-
getPolicyId
public java.lang.String getPolicyId()
-
getSnapshotsTaken
public long getSnapshotsTaken()
-
getSnapshotsFailed
public long getSnapshotsFailed()
-
getSnapshotsDeleted
public long getSnapshotsDeleted()
-
getSnapshotDeleteFailures
public long getSnapshotDeleteFailures()
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
-