[SDK reference](../../index.md) / [Models](../index.md) / [Databases](index.md)

# 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

| Name | Type | JSON name | Description |
|---|---|---|---|
| `AofEnabled` | `bool?` | `aofEnabled` | Whether the append-only file is on. |
| `BlockedClients` | `int?` | `blockedClients` | The blockedClients property |
| `ConnectedClients` | `int?` | `connectedClients` | The connectedClients property |
| `ConnectedReplicas` | `int?` | `connectedReplicas` | Replicas connected to a primary. |
| `EvictedKeys` | `long?` | `evictedKeys` | The evictedKeys property |
| `ExpiredKeys` | `long?` | `expiredKeys` | The expiredKeys property |
| `HitRatePercent` | `double?` | `hitRatePercent` | Share of lookups that found their key, 0 to 100; omitted before the first lookup. |
| `Keys` | `long?` | `keys` | The keys in the instance's database. |
| `KeysWithExpiry` | `long?` | `keysWithExpiry` | Keys that carry an expiry. |
| `KeyspaceHits` | `long?` | `keyspaceHits` | The keyspaceHits property |
| `KeyspaceMisses` | `long?` | `keyspaceMisses` | The keyspaceMisses property |
| `LastSnapshotAt` | `DateTimeOffset?` | `lastSnapshotAt` | When the last snapshot finished, and whether the last one worked. |
| `LastSnapshotOk` | `bool?` | `lastSnapshotOk` | The lastSnapshotOk property |
| `MaxMemoryBytes` | `long?` | `maxMemoryBytes` | The maxMemoryBytes property |
| `ObservedAt` | `DateTimeOffset?` | `observedAt` | The observedAt property |
| `OpsPerSecond` | `long?` | `opsPerSecond` | Commands handled in the last second, as Valkey reports it. |
| `Role` | `string?` | `role` | primary or replica. |
| `RssBytes` | `long?` | `rssBytes` | The memory the operating system gave the server, so a fragmentation ratio can be read. |
| `TotalCommands` | `long?` | `totalCommands` | Commands handled since start. |
| `UptimeSeconds` | `long?` | `uptimeSeconds` | The uptimeSeconds property |
| `UsedMemoryBytes` | `long?` | `usedMemoryBytes` | Bytes of memory the data uses, and the ceiling. |
