Class SnapshotLifecycleStats.SnapshotPolicyStats

  • All Implemented Interfaces:
    org.opensearch.common.xcontent.ToXContent, org.opensearch.common.xcontent.ToXContentFragment
    Enclosing class:
    SnapshotLifecycleStats

    public static class SnapshotLifecycleStats.SnapshotPolicyStats
    extends java.lang.Object
    implements org.opensearch.common.xcontent.ToXContentFragment
    • Nested Class Summary

      • Nested classes/interfaces inherited from interface org.opensearch.common.xcontent.ToXContent

        org.opensearch.common.xcontent.ToXContent.DelegatingMapParams, org.opensearch.common.xcontent.ToXContent.MapParams, org.opensearch.common.xcontent.ToXContent.Params
    • Field Summary

      Fields 
      Modifier and Type Field Description
      static org.opensearch.common.ParseField POLICY_ID  
      • Fields inherited from interface org.opensearch.common.xcontent.ToXContent

        EMPTY_PARAMS
    • Constructor Summary

      Constructors 
      Constructor Description
      SnapshotPolicyStats​(java.lang.String policyId, long snapshotsTaken, long snapshotsFailed, long deleted, long failedDeletes)  
    • Field Detail

      • POLICY_ID

        public static final org.opensearch.common.ParseField POLICY_ID
    • Constructor Detail

      • SnapshotPolicyStats

        public SnapshotPolicyStats​(java.lang.String policyId,
                                   long snapshotsTaken,
                                   long snapshotsFailed,
                                   long deleted,
                                   long failedDeletes)
    • Method Detail

      • 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:
        hashCode in class java.lang.Object
      • equals

        public boolean equals​(java.lang.Object obj)
        Overrides:
        equals in class java.lang.Object
      • 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:
        toXContent in interface org.opensearch.common.xcontent.ToXContent
        Throws:
        java.io.IOException