You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
Repository navigation
Commit 3c2c3c2
Browse filesBrowse the repository at this point in the historyBrowse files
Copy file name to clipboardExpand all lines: pkg/cmd/monitor.go
+10-12Lines changed: 10 additions & 12 deletions
Original file line number
Diff line number
Diff line change
@@ -19,34 +19,32 @@ var monitorsCreate = requestflag.WithInnerFlags(cli.Command{
19
19
Usage: "Creates a monitor. The request body is a union of the supported target/change\ndetection combinations. The monitor runs immediately after creation to create\nits initial baseline.",
20
20
Suggest: true,
21
21
Flags: []cli.Flag{
22
-
&requestflag.Flag[map[string]any]{
23
-
Name: "change-detection",
24
-
Usage: "Discriminated union describing how changes are detected.",
25
-
Required: true,
26
-
BodyPath: "change_detection",
27
-
},
28
22
&requestflag.Flag[string]{
29
23
Name: "name",
30
24
Required: true,
31
25
BodyPath: "name",
32
26
},
33
-
&requestflag.Flag[map[string]any]{
34
-
Name: "schedule",
35
-
Usage: "Run the monitor on a fixed interval defined by a frequency and a unit, e.g. every 6 hours or every 2 days. The total interval (frequency × unit) must be between 10 minutes and 1 year.",
36
-
Required: true,
37
-
BodyPath: "schedule",
38
-
},
39
27
&requestflag.Flag[map[string]any]{
40
28
Name: "target",
41
29
Usage: "Discriminated union describing what the monitor watches.",
42
30
Required: true,
43
31
BodyPath: "target",
44
32
},
33
+
&requestflag.Flag[map[string]any]{
34
+
Name: "change-detection",
35
+
Usage: "Discriminated union describing how changes are detected.",
36
+
BodyPath: "change_detection",
37
+
},
45
38
&requestflag.Flag[string]{
46
39
Name: "mode",
47
40
Usage: "Top-level monitor category. Always `web` today; the concrete behavior is described by `target` and `change_detection`.",
48
41
BodyPath: "mode",
49
42
},
43
+
&requestflag.Flag[map[string]any]{
44
+
Name: "schedule",
45
+
Usage: "Run the monitor on a fixed interval defined by a frequency and a unit, e.g. every 6 hours or every 2 days. The total interval (frequency × unit) must be between 10 minutes and 1 year.",
46
+
BodyPath: "schedule",
47
+
},
50
48
&requestflag.Flag[[]string]{
51
49
Name: "tag",
52
50
Usage: "User-defined tags for grouping and filtering monitors and their changes. Duplicates are removed.",
0 commit comments