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
Copy file name to clipboardExpand all lines: README.md
+62-11
Original file line number
Diff line number
Diff line change
@@ -28,7 +28,20 @@ Usage
28
28
29
29
_Note:_ in order to use this API you must obtain a Sysdig Cloud token. You can get your user's token in the _Sysdig Cloud API_ section of the [settings](https://app.sysdigcloud.com/#/settings/user) page.
30
30
31
-
The library exports a single class, `SdcClient`, that is used to connect to Sysdig Cloud and execute actions.
31
+
The library exports a single class, `SdcClient`, that is used to connect to Sysdig Cloud and execute actions. It can be instantiated like this:
32
+
33
+
```python
34
+
from sdcclient import SdcClient
35
+
36
+
sdc_token ="MY_API_TOKEN"
37
+
38
+
#
39
+
# Instantiate the SDC client
40
+
#
41
+
sdclient = SdcClient(sdc_token)
42
+
```
43
+
44
+
Once instantiated, all the methods documented below can be called on the object.
32
45
33
46
####Return Values
34
47
Every method in the SdcClient class returns **a list with two entries**. The first one is a boolean value indicating if the call was successful. The second entry depends on the result:
@@ -97,6 +110,21 @@ A dictionary showing the details of the new dashboard.
Fetch the updates 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`.
276
+
**Arguments**
277
+
-**capture**: the capture object as returned by `get_sysdig_captures()` or `create_sysdig_capture()`.
278
+
279
+
**Success Return Value**
280
+
A dictionary showing the updated details of the capture. Use the `status` field to check the progress of a capture.
You can use this method you use to send an event to Sysdig Cloud. The events you post are available in the Events tab in the Sysdig Cloud UI and can be overlied to charts.
@@ -256,3 +295,15 @@ You can use this method you use to send an event to Sysdig Cloud. The events you
0 commit comments