(c *cli.Command)
| 292 | ) |
| 293 | |
| 294 | func isValidAlertAddOpts(c *cli.Command) bool { |
| 295 | if c.Args().Len() > 0 { |
| 296 | return false |
| 297 | } |
| 298 | for _, opt := range []string{"container-type", "metric", "limit"} { |
| 299 | if !c.IsSet(opt) { |
| 300 | return false |
| 301 | } |
| 302 | } |
| 303 | return true |
| 304 | } |