Class RepositoryMeteringInformation
java.lang.Object
co.elastic.clients.elasticsearch.nodes.RepositoryMeteringInformation
- All Implemented Interfaces:
JsonpSerializable
@JsonpDeserializable public class RepositoryMeteringInformation extends java.lang.Object implements JsonpSerializable
- See Also:
- API specification
-
Nested Class Summary
Nested Classes Modifier and Type Class Description static class
RepositoryMeteringInformation.Builder
Builder forRepositoryMeteringInformation
. -
Field Summary
Fields Modifier and Type Field Description static JsonpDeserializer<RepositoryMeteringInformation>
_DESERIALIZER
Json deserializer forRepositoryMeteringInformation
-
Method Summary
Modifier and Type Method Description boolean
archived()
Required - A flag that tells whether or not this object has been archived.java.lang.Long
clusterVersion()
The cluster state version when this object was archived, this field can be used as a logical timestamp to delete all the archived metrics up to an observed version.static RepositoryMeteringInformation
of(java.util.function.Function<RepositoryMeteringInformation.Builder,ObjectBuilder<RepositoryMeteringInformation>> fn)
java.lang.String
repositoryEphemeralId()
Required - An identifier that changes every time the repository is updated.RepositoryLocation
repositoryLocation()
Required - Represents an unique location within the repository.java.lang.String
repositoryName()
Required - Repository name.DateTime
repositoryStartedAt()
Required - Time the repository was created or updated.DateTime
repositoryStoppedAt()
Time the repository was deleted or updated.java.lang.String
repositoryType()
Required - Repository type.RequestCounts
requestCounts()
Required - An object with the number of request performed against the repository grouped by request type.void
serialize(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
Serialize this object to JSON.protected void
serializeInternal(jakarta.json.stream.JsonGenerator generator, JsonpMapper mapper)
protected static void
setupRepositoryMeteringInformationDeserializer(ObjectDeserializer<RepositoryMeteringInformation.Builder> op)
java.lang.String
toString()
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, wait, wait, wait
-
Field Details
-
_DESERIALIZER
Json deserializer forRepositoryMeteringInformation
-
-
Method Details
-
of
public static RepositoryMeteringInformation of(java.util.function.Function<RepositoryMeteringInformation.Builder,ObjectBuilder<RepositoryMeteringInformation>> fn) -
repositoryName
public final java.lang.String repositoryName()Required - Repository name.API name:
repository_name
-
repositoryType
public final java.lang.String repositoryType()Required - Repository type.API name:
repository_type
-
repositoryLocation
Required - Represents an unique location within the repository.API name:
repository_location
-
repositoryEphemeralId
public final java.lang.String repositoryEphemeralId()Required - An identifier that changes every time the repository is updated.API name:
repository_ephemeral_id
-
repositoryStartedAt
Required - Time the repository was created or updated. Recorded in milliseconds since the Unix Epoch.API name:
repository_started_at
-
repositoryStoppedAt
Time the repository was deleted or updated. Recorded in milliseconds since the Unix Epoch.API name:
repository_stopped_at
-
archived
public final boolean archived()Required - A flag that tells whether or not this object has been archived. When a repository is closed or updated the repository metering information is archived and kept for a certain period of time. This allows retrieving the repository metering information of previous repository instantiations.API name:
archived
-
clusterVersion
@Nullable public final java.lang.Long clusterVersion()The cluster state version when this object was archived, this field can be used as a logical timestamp to delete all the archived metrics up to an observed version. This field is only present for archived repository metering information objects. The main purpose of this field is to avoid possible race conditions during repository metering information deletions, i.e. deleting archived repositories metering information that we haven’t observed yet.API name:
cluster_version
-
requestCounts
Required - An object with the number of request performed against the repository grouped by request type.API name:
request_counts
-
serialize
Serialize this object to JSON.- Specified by:
serialize
in interfaceJsonpSerializable
-
serializeInternal
-
toString
public java.lang.String toString()- Overrides:
toString
in classjava.lang.Object
-
setupRepositoryMeteringInformationDeserializer
protected static void setupRepositoryMeteringInformationDeserializer(ObjectDeserializer<RepositoryMeteringInformation.Builder> op)
-