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
Adds a panel to the dashboard. A panel can be a time series, or a top chart (i.e. bar chart), or a number panel.
58
+
59
+
**Arguments**
60
+
-**dashboard**: dashboard to edit
61
+
-**name**: name of the new panel
62
+
-**type**: type of the new panel. Valid values are: `timeSeries`, `top`, `number`
63
+
-**metrics**: list of metrics; Each metric must specified an `id` (e.g. `cpu.used.percent`) and if it's a value an `aggregation` dictionary with `time` and `group` to specify time aggregation and group aggregation respectively
64
+
-**scope**: filter to apply to the panel; Example: _kubernetes.namespace.name='production' and container.image='nginx'_.
65
+
-**sort_by**: Data sorting; The parameter is optional and it's a dictionary of `metric` and `mode` (it can be `desc` or `asc`)
66
+
-**paging**: Data pagination; The parameter is optional and limits the data points returned. The parameter is a dictionary of `from` and `to` with the index of the first and last point respectively
67
+
-**layout**: Size and position of the panel
68
+
69
+
**Success Return Value**
70
+
A dictionary showing the details of the edited dashboard.
Add a new recipient for email alert notifications.
@@ -97,52 +117,6 @@ A dictionary showing the details of the new dashboard.
97
117
**Example**
98
118
[examples/dashboard.py](examples/dashboard.py).
99
119
100
-
#### `find_dashboard_by(self, name)`
101
-
**Description**
102
-
Finds dashboards with the specified name. You can then delete the dashboard (with `delete_dashboard`) or edit panels (with `add_dashboard_panel` and `remove_dashboard_panel`)
103
-
104
-
**Arguments**
105
-
-**name**: the name of the dashboards to find.
106
-
107
-
**Success Return Value**
108
-
A list of dictionaries of dashboards matching the specified name.
Adds a panel to the dashboard. A panel can be a time series, or a top chart (i.e. bar chart), or a number panel.
116
-
117
-
**Arguments**
118
-
-**dashboard**: dashboard to edit
119
-
-**name**: name of the new panel
120
-
-**type**: type of the new panel. Valid values are: `timeSeries`, `top`, `number`
121
-
-**metrics**: list of metrics; Each metric must specified an `id` (e.g. `cpu.used.percent`) and if it's a value an `aggregation` dictionary with `time` and `group` to specify time aggregation and group aggregation respectively
122
-
-**scope**: filter to apply to the panel; Example: _kubernetes.namespace.name='production' and container.image='nginx'_.
123
-
-**sort_by**: Data sorting; The parameter is optional and it's a dictionary of `metric` and `mode` (it can be `desc` or `asc`)
124
-
-**paging**: Data pagination; The parameter is optional and limits the data points returned. The parameter is a dictionary of `from` and `to` with the index of the first and last point respectively
125
-
-**layout**: Size and position of the panel
126
-
127
-
**Success Return Value**
128
-
A dictionary showing the details of the edited dashboard.
Finds dashboards with the specified name. You can then delete the dashboard (with `delete_dashboard`) or edit panels (with `add_dashboard_panel` and `remove_dashboard_panel`)
309
+
310
+
**Arguments**
311
+
-**name**: the name of the dashboards to find.
312
+
313
+
**Success Return Value**
314
+
A list of dictionaries of dashboards matching the specified name.
315
+
316
+
**Example**
317
+
[examples/dashboard.py](examples/dashboard.py).
318
+
332
319
#### `poll_sysdig_capture(self, capture)`
333
320
**Description**
334
321
Fetch the updated state of a sysdig capture. Can be used to poll the status of a capture that has been previously created and started with `create_sysdig_capture`.
@@ -356,6 +343,19 @@ A dictionary describing the new event.
0 commit comments