Skip to content

Commit f56e5c2

Browse files
authored
Merge pull request #39 from cloudfoundry-incubator/develop
Develop
2 parents feb3620 + b233856 commit f56e5c2

3 files changed

Lines changed: 10 additions & 8 deletions

File tree

src/cli/commands/retrieve_history.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type HistoryCommand struct {
1717
RequiredlArgs HistoryPositionalArgs `positional-args:"yes"`
1818
StartTime string `long:"start" description:"start time of metrics collected with format \"yyyy-MM-ddTHH:mm:ss+/-HH:mm\" or \"yyyy-MM-ddTHH:mm:ssZ\", default to very beginning if not specified."`
1919
EndTime string `long:"end" description:"end time of the metrics collected with format \"yyyy-MM-ddTHH:mm:ss+/-HH:mm\" or \"yyyy-MM-ddTHH:mm:ssZ\", default to current time if not speficied."`
20-
RecordNumber string `long:"number" short:"n" description:"number of the records will be returned, default one page if not speficied, will be ignored if both start time and end time are specified."`
20+
RecordNumber string `long:"number" short:"n" description:"the number of the records to return, will be ignored if both start time and end time are specified."`
2121
Desc bool `long:"desc" description:"display in descending order, default to ascending order if not specified."`
2222
Output string `long:"output" description:"dump the policy to a file in JSON format"`
2323
}

src/cli/commands/retrieve_metrics.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@ type MetricsCommand struct {
1717
RequiredlArgs MetricsPositionalArgs `positional-args:"yes"`
1818
StartTime string `long:"start" description:"start time of metrics collected with format \"yyyy-MM-ddTHH:mm:ss+/-HH:mm\" or \"yyyy-MM-ddTHH:mm:ssZ\", default to very beginning if not specified."`
1919
EndTime string `long:"end" description:"end time of the metrics collected with format \"yyyy-MM-ddTHH:mm:ss+/-HH:mm\" or \"yyyy-MM-ddTHH:mm:ssZ\", default to current time if not speficied."`
20-
RecordNumber string `long:"number" short:"n" description:"number of the records will be returned, default one page if not speficied, will be ignored if both start time and end time are specified."`
20+
RecordNumber string `long:"number" short:"n" description:"the number of the records to return, will be ignored if both start time and end time are specified."`
2121
Desc bool `long:"desc" description:"display in descending order, default to ascending order if not specified."`
2222
Output string `long:"output" description:"dump the policy to a file in JSON format"`
2323
}

src/cli/main.go

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -65,16 +65,17 @@ OPTIONS:
6565
Alias: "asm",
6666
HelpText: "Retrieve the metrics of an application",
6767
UsageDetails: plugin.Usage{
68-
Usage: `cf autoscaling-metrics APP_NAME METRIC_NAME [--start START_TIME] [--end END_TIME] [--desc] [--output PATH_TO_FILE]
68+
Usage: `cf autoscaling-metrics APP_NAME METRIC_NAME [--start START_TIME] [--end END_TIME] [--number NUMBER] [--desc] [--output PATH_TO_FILE]
6969
7070
METRIC_NAME:
7171
memoryused, memoryutil, responsetime, throughput, cpu.
7272
7373
OPTIONS:
74-
--start Start time of metrics collected with format "yyyy-MM-ddTHH:mm:ss+/-HH:mm" or "yyyy-MM-ddTHH:mm:ssZ", default to very beginning if not specified.
75-
--end End time of the metrics collected with format "yyyy-MM-ddTHH:mm:ss+/-HH:mm" or "yyyy-MM-ddTHH:mm:ssZ", default to current time if not speficied.
76-
--desc Display in descending order, default to ascending order if not specified.
77-
--output Dump the metrics to a file in table format.
74+
--start Start time of metrics collected with format "yyyy-MM-ddTHH:mm:ss+/-HH:mm" or "yyyy-MM-ddTHH:mm:ssZ", default to very beginning if not specified.
75+
--end End time of the metrics collected with format "yyyy-MM-ddTHH:mm:ss+/-HH:mm" or "yyyy-MM-ddTHH:mm:ssZ", default to current time if not speficied.
76+
--number The number of the records to return, will be ignored if both start time and end time are specified.
77+
--desc Display in descending order, default to ascending order if not specified.
78+
--output Dump the metrics to a file in table format.
7879
`,
7980
},
8081
},
@@ -83,11 +84,12 @@ OPTIONS:
8384
Alias: "ash",
8485
HelpText: "Retrieve the scaling history of an application",
8586
UsageDetails: plugin.Usage{
86-
Usage: `cf autoscaling-history APP_NAME [--start START_TIME] [--end END_TIME] [--desc] [--output PATH_TO_FILE]
87+
Usage: `cf autoscaling-history APP_NAME [--start START_TIME] [--end END_TIME] [--number NUMBER] [--desc] [--output PATH_TO_FILE]
8788
8889
OPTIONS:
8990
--start Start time of the scaling history with format "yyyy-MM-ddTHH:mm:ss+/-HH:mm" or "yyyy-MM-ddTHH:mm:ssZ", default to very beginning if not specified.
9091
--end End time of the scaling history with format "yyyy-MM-ddTHH:mm:ss+/-HH:mm" or "yyyy-MM-ddTHH:mm:ssZ", default to current time if not speficied.
92+
--number The number of the records to return, will be ignored if both start time and end time are specified.
9193
--desc Display in descending order, default to ascending order if not specified.
9294
--output Dump the scaling history to a file in table format.
9395
`,

0 commit comments

Comments
 (0)