mirror of
https://github.com/google/nomulus.git
synced 2025-07-21 18:26:12 +02:00
Don't include "Command" suffix in WHOIS metrics command name label
------------- Created by MOE: https://github.com/google/moe MOE_MIGRATED_REVID=152414152
This commit is contained in:
parent
5081d780dc
commit
08009e755f
3 changed files with 6 additions and 4 deletions
|
@ -112,7 +112,9 @@ public class WhoisMetrics {
|
|||
private Clock clock = null;
|
||||
|
||||
public Builder setCommand(WhoisCommand command) {
|
||||
return setCommandName(command.getClass().getSimpleName());
|
||||
// All WHOIS command class names share the "Command" suffix, so strip it out in order to
|
||||
// have shorter labels.
|
||||
return setCommandName(command.getClass().getSimpleName().replaceFirst("Command$", ""));
|
||||
}
|
||||
|
||||
public abstract Builder setCommandName(String commandName);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue