@Component public class GaugeCommands extends AbstractMetricsCommands implements org.springframework.shell.core.CommandMarker
Modifier | Constructor and Description |
---|---|
protected |
GaugeCommands() |
Modifier and Type | Method and Description |
---|---|
boolean |
available() |
java.lang.String |
delete(java.lang.String name) |
java.lang.String |
display(java.lang.String name,
java.text.NumberFormat pattern) |
Table |
list() |
displayMetrics
@CliAvailabilityIndicator(value={"gauge list","gauge display","gauge delete"}) public boolean available()
@CliCommand(value="gauge list", help="List all available gauge names") public Table list()
@CliCommand(value="gauge display", help="Display the value of a gauge") public java.lang.String display(@CliOption(key={"","name"},help="the name of the gauge to display",mandatory=true,optionContext="existing-gauge disable-string-converter") java.lang.String name, @CliOption(key="pattern",help="the pattern used to format the value (see DecimalFormat)",mandatory=false,unspecifiedDefaultValue="
@CliCommand(value="gauge delete", help="Delete a gauge") public java.lang.String delete(@CliOption(key={"","name"},help="the name of the gauge to delete",mandatory=true,optionContext="existing-gauge disable-string-converter") java.lang.String name)