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
+6-6
Original file line number
Diff line number
Diff line change
@@ -29,25 +29,25 @@ Usage
29
29
30
30
_Note:_ in order to use this API you must obtain a Sysdig Monitor/Secure API token. You can get your user's token in the _Sysdig Monitor API_ section of the settings page for [monitor](https://app.sysdigcloud.com/#/settings/user) or [secure](https://secure.sysdig.com/#/settings/user).
31
31
32
-
The library exports two classes, `SdMonClient` and `SdSecureClient` that are used to connect to Sysdig Monitor/Secure and execute actions. They can be instantiated like this:
32
+
The library exports two classes, `SdMonitorClient` and `SdSecureClient` that are used to connect to Sysdig Monitor/Secure and execute actions. They can be instantiated like this:
33
33
34
34
```python
35
-
from sdcclient importSdMonClient
35
+
from sdcclient importSdMonitorClient
36
36
37
37
api_token ="MY_API_TOKEN"
38
38
39
39
#
40
40
# Instantiate the Sysdig Monitor client
41
41
#
42
-
client =SdMonClient(api_token)
42
+
client =SdMonitorClient(api_token)
43
43
```
44
44
45
-
For backwards compatibility purposes, a third class `SdcClient` is exported which is an alias of `SdMonClient`.
45
+
For backwards compatibility purposes, a third class `SdcClient` is exported which is an alias of `SdMonitorClient`.
46
46
47
47
Once instantiated, all the methods documented below can be called on the object.
48
48
49
49
#### Return Values
50
-
Every method in the SdMonClient/SdSecureClient classes 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:
50
+
Every method in the SdMonitorClient/SdSecureClient classes 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:
51
51
- If the call was successful, it's a dictionary reflecting the json returned by the underlying REST call
52
52
- If the call failed, it's a string describing the error
53
53
@@ -70,7 +70,7 @@ export SDC_SSL_VERIFY='false'
70
70
Alternatively, you can specify the additional arguments in your Python scripts as you instantiate the SDC client:
0 commit comments