Class GitOpsStatus

java.lang.Object
io.apicurio.registry.rest.v3.beans.GitOpsStatus

@Generated("jsonschema2pojo") public class GitOpsStatus extends Object
Root Type for GitOpsStatus

Describes the current synchronization status of the GitOps storage backend. This includes the current sync state, the Git commit marker, load statistics, and any errors from the last sync attempt.

  • Constructor Details

    • GitOpsStatus

      public GitOpsStatus()
  • Method Details

    • getSyncState

      public String getSyncState()
      The current synchronization state of the GitOps storage. Possible values: INITIALIZING (first load not yet completed), IDLE (serving latest data), LOADING (sync in progress), SWITCHING (data loaded, waiting for write lock to publish), ERROR (last sync or switch failed, serving previous data).
    • setSyncState

      public void setSyncState(String syncState)
      The current synchronization state of the GitOps storage. Possible values: INITIALIZING (first load not yet completed), IDLE (serving latest data), LOADING (sync in progress), SWITCHING (data loaded, waiting for write lock to publish), ERROR (last sync or switch failed, serving previous data).
    • getLastSuccessfulSync

      public Date getLastSuccessfulSync()
      ISO 8601 timestamp of the last successful synchronization.
    • setLastSuccessfulSync

      public void setLastSuccessfulSync(Date lastSuccessfulSync)
      ISO 8601 timestamp of the last successful synchronization.
    • getLastSyncAttempt

      public Date getLastSyncAttempt()
      ISO 8601 timestamp of the last synchronization attempt (successful or not).
    • setLastSyncAttempt

      public void setLastSyncAttempt(Date lastSyncAttempt)
      ISO 8601 timestamp of the last synchronization attempt (successful or not).
    • getGroupCount

      public Integer getGroupCount()
      Number of groups loaded in the last successful sync.
    • setGroupCount

      public void setGroupCount(Integer groupCount)
      Number of groups loaded in the last successful sync.
    • getArtifactCount

      public Integer getArtifactCount()
      Number of artifacts loaded in the last successful sync.
    • setArtifactCount

      public void setArtifactCount(Integer artifactCount)
      Number of artifacts loaded in the last successful sync.
    • getVersionCount

      public Integer getVersionCount()
      Number of artifact versions loaded in the last successful sync.
    • setVersionCount

      public void setVersionCount(Integer versionCount)
      Number of artifact versions loaded in the last successful sync.
    • getErrors

      public List<GitOpsError> getErrors()
      Errors from the last failed load attempt. Empty if the last load was successful.
    • setErrors

      public void setErrors(List<GitOpsError> errors)
      Errors from the last failed load attempt. Empty if the last load was successful.
    • getSources

      public Sources getSources()
      Per-source identifiers. Maps source ID (e.g., repository ID, Kubernetes server/namespace) to its current marker (e.g., abbreviated commit SHA, resource version).
    • setSources

      public void setSources(Sources sources)
      Per-source identifiers. Maps source ID (e.g., repository ID, Kubernetes server/namespace) to its current marker (e.g., abbreviated commit SHA, resource version).