Package org.elasticsearch.client.slm
Class SnapshotLifecycleStats
- java.lang.Object
-
- org.elasticsearch.client.slm.SnapshotLifecycleStats
-
- All Implemented Interfaces:
ToXContent,ToXContentObject
public class SnapshotLifecycleStats extends java.lang.Object implements ToXContentObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSnapshotLifecycleStats.SnapshotPolicyStats-
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_STATSstatic ParseFieldRETENTION_FAILEDstatic ParseFieldRETENTION_RUNSstatic ParseFieldRETENTION_TIMEstatic ParseFieldRETENTION_TIME_MILLISstatic ParseFieldRETENTION_TIMED_OUTstatic ParseFieldTOTAL_DELETION_FAILURESstatic ParseFieldTOTAL_DELETIONSstatic ParseFieldTOTAL_FAILEDstatic ParseFieldTOTAL_TAKEN-
Fields inherited from interface org.elasticsearch.common.xcontent.ToXContent
EMPTY_PARAMS
-
-
Method Summary
Modifier and Type Method Description booleanequals(java.lang.Object obj)java.util.Map<java.lang.String,SnapshotLifecycleStats.SnapshotPolicyStats>getMetrics()longgetRetentionFailedCount()longgetRetentionRunCount()longgetRetentionTimedOut()longgetRetentionTimeMillis()inthashCode()static SnapshotLifecycleStatsparse(XContentParser parser)java.lang.StringtoString()XContentBuildertoXContent(XContentBuilder builder, ToXContent.Params params)-
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
-
Methods inherited from interface org.elasticsearch.common.xcontent.ToXContentObject
isFragment
-
-
-
-
Field Detail
-
RETENTION_RUNS
public static final ParseField RETENTION_RUNS
-
RETENTION_FAILED
public static final ParseField RETENTION_FAILED
-
RETENTION_TIMED_OUT
public static final ParseField RETENTION_TIMED_OUT
-
RETENTION_TIME
public static final ParseField RETENTION_TIME
-
RETENTION_TIME_MILLIS
public static final ParseField RETENTION_TIME_MILLIS
-
POLICY_STATS
public static final ParseField POLICY_STATS
-
TOTAL_TAKEN
public static final ParseField TOTAL_TAKEN
-
TOTAL_FAILED
public static final ParseField TOTAL_FAILED
-
TOTAL_DELETIONS
public static final ParseField TOTAL_DELETIONS
-
TOTAL_DELETION_FAILURES
public static final ParseField TOTAL_DELETION_FAILURES
-
-
Method Detail
-
parse
public static SnapshotLifecycleStats parse(XContentParser parser)
-
getRetentionRunCount
public long getRetentionRunCount()
-
getRetentionFailedCount
public long getRetentionFailedCount()
-
getRetentionTimedOut
public long getRetentionTimedOut()
-
getRetentionTimeMillis
public long getRetentionTimeMillis()
-
getMetrics
public java.util.Map<java.lang.String,SnapshotLifecycleStats.SnapshotPolicyStats> getMetrics()
- Returns:
- a map of per-policy stats for each SLM policy
-
toXContent
public XContentBuilder toXContent(XContentBuilder builder, ToXContent.Params params) throws java.io.IOException
- Specified by:
toXContentin interfaceToXContent- Throws:
java.io.IOException
-
hashCode
public int hashCode()
- Overrides:
hashCodein classjava.lang.Object
-
equals
public boolean equals(java.lang.Object obj)
- Overrides:
equalsin classjava.lang.Object
-
toString
public java.lang.String toString()
- Overrides:
toStringin classjava.lang.Object
-
-