Package org.opensearch.client.slm
Class SnapshotLifecycleStats
- java.lang.Object
-
- org.opensearch.client.slm.SnapshotLifecycleStats
-
- All Implemented Interfaces:
org.opensearch.common.xcontent.ToXContent,org.opensearch.common.xcontent.ToXContentObject
public class SnapshotLifecycleStats extends java.lang.Object implements org.opensearch.common.xcontent.ToXContentObject
-
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static classSnapshotLifecycleStats.SnapshotPolicyStats
-
Field Summary
Fields Modifier and Type Field Description static org.opensearch.common.ParseFieldPOLICY_STATSstatic org.opensearch.common.ParseFieldRETENTION_FAILEDstatic org.opensearch.common.ParseFieldRETENTION_RUNSstatic org.opensearch.common.ParseFieldRETENTION_TIMEstatic org.opensearch.common.ParseFieldRETENTION_TIME_MILLISstatic org.opensearch.common.ParseFieldRETENTION_TIMED_OUTstatic org.opensearch.common.ParseFieldTOTAL_DELETION_FAILURESstatic org.opensearch.common.ParseFieldTOTAL_DELETIONSstatic org.opensearch.common.ParseFieldTOTAL_FAILEDstatic org.opensearch.common.ParseFieldTOTAL_TAKEN
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods 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(org.opensearch.common.xcontent.XContentParser parser)java.lang.StringtoString()org.opensearch.common.xcontent.XContentBuildertoXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params)
-
-
-
Field Detail
-
RETENTION_RUNS
public static final org.opensearch.common.ParseField RETENTION_RUNS
-
RETENTION_FAILED
public static final org.opensearch.common.ParseField RETENTION_FAILED
-
RETENTION_TIMED_OUT
public static final org.opensearch.common.ParseField RETENTION_TIMED_OUT
-
RETENTION_TIME
public static final org.opensearch.common.ParseField RETENTION_TIME
-
RETENTION_TIME_MILLIS
public static final org.opensearch.common.ParseField RETENTION_TIME_MILLIS
-
POLICY_STATS
public static final org.opensearch.common.ParseField POLICY_STATS
-
TOTAL_TAKEN
public static final org.opensearch.common.ParseField TOTAL_TAKEN
-
TOTAL_FAILED
public static final org.opensearch.common.ParseField TOTAL_FAILED
-
TOTAL_DELETIONS
public static final org.opensearch.common.ParseField TOTAL_DELETIONS
-
TOTAL_DELETION_FAILURES
public static final org.opensearch.common.ParseField TOTAL_DELETION_FAILURES
-
-
Method Detail
-
parse
public static SnapshotLifecycleStats parse(org.opensearch.common.xcontent.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 org.opensearch.common.xcontent.XContentBuilder toXContent(org.opensearch.common.xcontent.XContentBuilder builder, org.opensearch.common.xcontent.ToXContent.Params params) throws java.io.IOException- Specified by:
toXContentin interfaceorg.opensearch.common.xcontent.ToXContent- 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
-
-