@@ -185,7 +185,7 @@ In the running Kuiper instance, and execute following command.
$ bin/cli create rule rule1 -f rule.txt
Connecting to 127.0.0.1:20498...
Creating a new rule from file rule.txt.
-Rule rule1 was created, please use 'cli getstatus rule $rule_name' command to get rule status.
+Rule rule1 was created successfully, please use 'cli getstatus rule rule1' command to get rule status.
```
------
@@ -181,7 +181,7 @@ curl -X POST \
# bin/cli create rule rule1 -f rule.txt
@@ -160,7 +160,7 @@ func rulesHandler(w http.ResponseWriter, r *http.Request) {
handleError(w, fmt.Errorf("Create rule error : %s.", err), http.StatusBadRequest, logger)
return
} else {
- result = fmt.Sprintf("Rule %s was created, please use 'cli getstatus rule $rule_name' command to get rule status.", r.Id)
+ result = fmt.Sprintf("Rule %s was created successfully.", r.Id)
}
//Start the rule
rs, err := createRuleState(r)
@@ -80,7 +80,7 @@ func (t *Server) CreateRule(rule *common.RuleDesc, reply *string) error {
if err != nil {
return fmt.Errorf("Create rule error : %s.", err)
- *reply = fmt.Sprintf("Rule %s was created, please use 'cli getstatus rule $rule_name' command to get rule status.", rule.Name)
+ *reply = fmt.Sprintf("Rule %s was created successfully, please use 'bin/cli getstatus rule %s' command to get rule status.", rule.Name, rule.Name)