SDK reference / Models / Databases

ValkeyStats

Kind: class

Namespace: Egulu.Sdk.Models.Databases

What an instance is doing now, read from Valkey's INFO. Counters are totals since the server started.

Properties

NameTypeJSON nameDescription
AofEnabledbool?aofEnabledWhether the append-only file is on.
BlockedClientsint?blockedClientsThe blockedClients property
ConnectedClientsint?connectedClientsThe connectedClients property
ConnectedReplicasint?connectedReplicasReplicas connected to a primary.
EvictedKeyslong?evictedKeysThe evictedKeys property
ExpiredKeyslong?expiredKeysThe expiredKeys property
HitRatePercentdouble?hitRatePercentShare of lookups that found their key, 0 to 100; omitted before the first lookup.
Keyslong?keysThe keys in the instance's database.
KeysWithExpirylong?keysWithExpiryKeys that carry an expiry.
KeyspaceHitslong?keyspaceHitsThe keyspaceHits property
KeyspaceMisseslong?keyspaceMissesThe keyspaceMisses property
LastSnapshotAtDateTimeOffset?lastSnapshotAtWhen the last snapshot finished, and whether the last one worked.
LastSnapshotOkbool?lastSnapshotOkThe lastSnapshotOk property
MaxMemoryByteslong?maxMemoryBytesThe maxMemoryBytes property
ObservedAtDateTimeOffset?observedAtThe observedAt property
OpsPerSecondlong?opsPerSecondCommands handled in the last second, as Valkey reports it.
Rolestring?roleprimary or replica.
RssByteslong?rssBytesThe memory the operating system gave the server, so a fragmentation ratio can be read.
TotalCommandslong?totalCommandsCommands handled since start.
UptimeSecondslong?uptimeSecondsThe uptimeSeconds property
UsedMemoryByteslong?usedMemoryBytesBytes of memory the data uses, and the ceiling.