@Component public class AggregateCounterCommands extends AbstractMetricsCommands implements CommandMarker
Modifier | Constructor and Description |
---|---|
protected |
AggregateCounterCommands() |
Modifier and Type | Method and Description |
---|---|
boolean |
available() |
String |
delete(String name) |
org.springframework.shell.table.Table |
display(String name,
String from,
String to,
Integer lastHours,
Integer lastDays,
AggregateCounterOperations.Resolution resolution,
NumberFormat pattern) |
org.springframework.shell.table.Table |
list() |
displayMetrics
@CliAvailabilityIndicator(value={"aggregate-counter display","aggregate-counter list","aggregate-counter delete"}) public boolean available()
@CliCommand(value="aggregate-counter display", help="Display aggregate counter values by chosen interval and resolution(minute, hour)") public org.springframework.shell.table.Table display(@CliOption(key={"","name"},help="the name of the aggregate counter to display",mandatory=true) String name, @CliOption(key="from",help="start-time for the interval. format: \'yyyy-MM-dd HH:mm:ss\'",mandatory=false) String from, @CliOption(key="to",help="end-time for the interval. format: \'yyyy-MM-dd HH:mm:ss\'. defaults to now",mandatory=false) String to, @CliOption(key="lastHours",help="set the interval to last \'n\' hours",mandatory=false) Integer lastHours, @CliOption(key="lastDays",help="set the interval to last \'n\' days",mandatory=false) Integer lastDays, @CliOption(key="resolution",help="the size of the bucket to aggregate (minute, hour, day, month)",mandatory=false,unspecifiedDefaultValue="hour") AggregateCounterOperations.Resolution resolution, @CliOption(key="pattern",help="the pattern used to format the count values (see DecimalFormat)",mandatory=false,unspecifiedDefaultValue="<use platform locale>") NumberFormat pattern)
@CliCommand(value="aggregate-counter list", help="List all available aggregate counter names") public org.springframework.shell.table.Table list()
@CliCommand(value="aggregate-counter delete", help="Delete an aggregate counter") public String delete(@CliOption(key={"","name"},help="the name of the aggregate counter to delete",mandatory=true) String name)
Copyright © 2017 Pivotal Software, Inc.. All rights reserved.