java.lang.Object
java.lang.Record
org.elasticsearch.repositories.SnapshotMetrics
public record SnapshotMetrics(LongCounter snapshotsStartedCounter, LongCounter snapshotsCompletedCounter, DoubleHistogram snapshotsDurationHistogram, LongCounter shardsStartedCounter, LongCounter shardsCompletedCounter, DoubleHistogram shardsDurationHistogram, LongCounter blobsUploadedCounter, LongCounter bytesUploadedCounter, LongCounter uploadDurationCounter, LongCounter uploadReadDurationCounter, LongCounter createThrottleDurationCounter, LongCounter restoreThrottleDurationCounter, MeterRegistry meterRegistry)
extends Record
-
Field Summary
FieldsModifier and TypeFieldDescriptionstatic final SnapshotMetricsstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final Stringstatic final String -
Constructor Summary
ConstructorsConstructorDescriptionSnapshotMetrics(LongCounter snapshotsStartedCounter, LongCounter snapshotsCompletedCounter, DoubleHistogram snapshotsDurationHistogram, LongCounter shardsStartedCounter, LongCounter shardsCompletedCounter, DoubleHistogram shardsDurationHistogram, LongCounter blobsUploadedCounter, LongCounter bytesUploadedCounter, LongCounter uploadDurationCounter, LongCounter uploadReadDurationCounter, LongCounter createThrottleDurationCounter, LongCounter restoreThrottleDurationCounter, MeterRegistry meterRegistry) Creates an instance of aSnapshotMetricsrecord class.SnapshotMetrics(MeterRegistry meterRegistry) -
Method Summary
Modifier and TypeMethodDescriptionReturns the value of theblobsUploadedCounterrecord component.Returns the value of thebytesUploadedCounterrecord component.createAttributesMap(ProjectId projectId, RepositoryMetadata meta) voidcreateSnapshotsByStateMetric(Supplier<Collection<LongWithAttributes>> snapshotsByStatusObserver) voidcreateSnapshotShardsByStateMetric(Supplier<Collection<LongWithAttributes>> shardSnapshotsByStatusObserver) voidcreateSnapshotShardsInProgressMetric(Supplier<Collection<LongWithAttributes>> shardSnapshotsInProgressObserver) Returns the value of thecreateThrottleDurationCounterrecord component.final booleanIndicates whether some other object is "equal to" this one.final inthashCode()Returns a hash code value for this object.Returns the value of themeterRegistryrecord component.Returns the value of therestoreThrottleDurationCounterrecord component.Returns the value of theshardsCompletedCounterrecord component.Returns the value of theshardsDurationHistogramrecord component.Returns the value of theshardsStartedCounterrecord component.Returns the value of thesnapshotsCompletedCounterrecord component.Returns the value of thesnapshotsDurationHistogramrecord component.Returns the value of thesnapshotsStartedCounterrecord component.final StringtoString()Returns a string representation of this record class.Returns the value of theuploadDurationCounterrecord component.Returns the value of theuploadReadDurationCounterrecord component.
-
Field Details
-
NOOP
-
SNAPSHOTS_STARTED
- See Also:
-
SNAPSHOTS_COMPLETED
- See Also:
-
SNAPSHOTS_BY_STATE
- See Also:
-
SNAPSHOT_DURATION
- See Also:
-
SNAPSHOT_SHARDS_STARTED
- See Also:
-
SNAPSHOT_SHARDS_COMPLETED
- See Also:
-
SNAPSHOT_SHARDS_IN_PROGRESS
- See Also:
-
SNAPSHOT_SHARDS_BY_STATE
- See Also:
-
SNAPSHOT_SHARDS_DURATION
- See Also:
-
SNAPSHOT_BLOBS_UPLOADED
- See Also:
-
SNAPSHOT_BYTES_UPLOADED
- See Also:
-
SNAPSHOT_UPLOAD_DURATION
- See Also:
-
SNAPSHOT_UPLOAD_READ_DURATION
- See Also:
-
SNAPSHOT_CREATE_THROTTLE_DURATION
- See Also:
-
SNAPSHOT_RESTORE_THROTTLE_DURATION
- See Also:
-
-
Constructor Details
-
SnapshotMetrics
-
SnapshotMetrics
public SnapshotMetrics(LongCounter snapshotsStartedCounter, LongCounter snapshotsCompletedCounter, DoubleHistogram snapshotsDurationHistogram, LongCounter shardsStartedCounter, LongCounter shardsCompletedCounter, DoubleHistogram shardsDurationHistogram, LongCounter blobsUploadedCounter, LongCounter bytesUploadedCounter, LongCounter uploadDurationCounter, LongCounter uploadReadDurationCounter, LongCounter createThrottleDurationCounter, LongCounter restoreThrottleDurationCounter, MeterRegistry meterRegistry) Creates an instance of aSnapshotMetricsrecord class.- Parameters:
snapshotsStartedCounter- the value for thesnapshotsStartedCounterrecord componentsnapshotsCompletedCounter- the value for thesnapshotsCompletedCounterrecord componentsnapshotsDurationHistogram- the value for thesnapshotsDurationHistogramrecord componentshardsStartedCounter- the value for theshardsStartedCounterrecord componentshardsCompletedCounter- the value for theshardsCompletedCounterrecord componentshardsDurationHistogram- the value for theshardsDurationHistogramrecord componentblobsUploadedCounter- the value for theblobsUploadedCounterrecord componentbytesUploadedCounter- the value for thebytesUploadedCounterrecord componentuploadDurationCounter- the value for theuploadDurationCounterrecord componentuploadReadDurationCounter- the value for theuploadReadDurationCounterrecord componentcreateThrottleDurationCounter- the value for thecreateThrottleDurationCounterrecord componentrestoreThrottleDurationCounter- the value for therestoreThrottleDurationCounterrecord componentmeterRegistry- the value for themeterRegistryrecord component
-
-
Method Details
-
createSnapshotShardsInProgressMetric
public void createSnapshotShardsInProgressMetric(Supplier<Collection<LongWithAttributes>> shardSnapshotsInProgressObserver) -
createSnapshotShardsByStateMetric
public void createSnapshotShardsByStateMetric(Supplier<Collection<LongWithAttributes>> shardSnapshotsByStatusObserver) -
createSnapshotsByStateMetric
public void createSnapshotsByStateMetric(Supplier<Collection<LongWithAttributes>> snapshotsByStatusObserver) -
createAttributesMap
-
toString
Returns a string representation of this record class. The representation contains the name of the class, followed by the name and value of each of the record components. -
hashCode
public final int hashCode()Returns a hash code value for this object. The value is derived from the hash code of each of the record components. -
equals
Indicates whether some other object is "equal to" this one. The objects are equal if the other object is of the same class and if all the record components are equal. All components in this record class are compared withObjects::equals(Object,Object). -
snapshotsStartedCounter
Returns the value of thesnapshotsStartedCounterrecord component.- Returns:
- the value of the
snapshotsStartedCounterrecord component
-
snapshotsCompletedCounter
Returns the value of thesnapshotsCompletedCounterrecord component.- Returns:
- the value of the
snapshotsCompletedCounterrecord component
-
snapshotsDurationHistogram
Returns the value of thesnapshotsDurationHistogramrecord component.- Returns:
- the value of the
snapshotsDurationHistogramrecord component
-
shardsStartedCounter
Returns the value of theshardsStartedCounterrecord component.- Returns:
- the value of the
shardsStartedCounterrecord component
-
shardsCompletedCounter
Returns the value of theshardsCompletedCounterrecord component.- Returns:
- the value of the
shardsCompletedCounterrecord component
-
shardsDurationHistogram
Returns the value of theshardsDurationHistogramrecord component.- Returns:
- the value of the
shardsDurationHistogramrecord component
-
blobsUploadedCounter
Returns the value of theblobsUploadedCounterrecord component.- Returns:
- the value of the
blobsUploadedCounterrecord component
-
bytesUploadedCounter
Returns the value of thebytesUploadedCounterrecord component.- Returns:
- the value of the
bytesUploadedCounterrecord component
-
uploadDurationCounter
Returns the value of theuploadDurationCounterrecord component.- Returns:
- the value of the
uploadDurationCounterrecord component
-
uploadReadDurationCounter
Returns the value of theuploadReadDurationCounterrecord component.- Returns:
- the value of the
uploadReadDurationCounterrecord component
-
createThrottleDurationCounter
Returns the value of thecreateThrottleDurationCounterrecord component.- Returns:
- the value of the
createThrottleDurationCounterrecord component
-
restoreThrottleDurationCounter
Returns the value of therestoreThrottleDurationCounterrecord component.- Returns:
- the value of the
restoreThrottleDurationCounterrecord component
-
meterRegistry
Returns the value of themeterRegistryrecord component.- Returns:
- the value of the
meterRegistryrecord component
-