| Constructor and Description |
|---|
HotkeysParams() |
| Modifier and Type | Method and Description |
|---|---|
void |
addParams(CommandArguments args) |
HotkeysParams |
count(int count)
Maximum number of hot keys to track.
|
HotkeysParams |
duration(int duration)
Auto-stop tracking after the specified number of seconds.
|
boolean |
equals(java.lang.Object o) |
int |
hashCode() |
static HotkeysParams |
hotkeysParams() |
HotkeysParams |
metrics(HotkeysMetric... metrics)
Specifies which metrics to track.
|
HotkeysParams |
sample(int sample)
Sample 1 in N commands.
|
HotkeysParams |
slots(int... slots)
Filter by hash slots (cluster mode only).
|
public static HotkeysParams hotkeysParams()
public HotkeysParams metrics(HotkeysMetric... metrics)
metrics - the metrics to track (CPU, NET)public HotkeysParams count(int count)
count - must be between 10 and 64java.lang.IllegalArgumentException - if count is not between 10 and 64public HotkeysParams duration(int duration)
duration - 0 means no auto-stopjava.lang.IllegalArgumentException - if duration is negativepublic HotkeysParams sample(int sample)
sample - 1 means all commands are sampledjava.lang.IllegalArgumentException - if sample is less than 1public HotkeysParams slots(int... slots)
slots - the hash slots to filter (0-16383)java.lang.IllegalArgumentException - if any slot is not between 0 and 16383public void addParams(CommandArguments args)
public boolean equals(java.lang.Object o)
equals in class java.lang.Objectpublic int hashCode()
hashCode in class java.lang.ObjectCopyright © 2026. All rights reserved.