Skip to content

Commit 7b4fa17

Browse files
zyjiaobjying
authored andcommitted
update help info of asm and ash (#36)
1 parent 785cdcb commit 7b4fa17

3 files changed

Lines changed: 8 additions & 6 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: 6 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -71,10 +71,11 @@ 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
},
@@ -88,6 +89,7 @@ OPTIONS:
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)