Skip to content

Commit f05e5e8

Browse files
committed
changed the docs to match the new names for some API methods
1 parent 7cd7fdb commit f05e5e8

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

docs/psc-api.rst

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ Device objects, which can be used to locate a list of Devices.
2727
*Example:*
2828

2929
>>> cbapi = CbPSCBaseAPI(...)
30-
>>> devices = cbapi.select(Device).os("LINUX").status("ALL")
30+
>>> devices = cbapi.select(Device).set_os("LINUX").status("ALL")
3131

3232
Selects all devices running Linux from the current organization.
3333

@@ -59,7 +59,7 @@ search for more specialized alert types:
5959
*Example:*
6060

6161
>>> cbapi = CbPSCBaseAPI(...)
62-
>>> alerts = cbapi.select(BaseAlert).device_os(["WINDOWS"]).process_name(["IEXPLORE.EXE"])
62+
>>> alerts = cbapi.select(BaseAlert).set_device_os(["WINDOWS"]).set_process_name(["IEXPLORE.EXE"])
6363

6464
Selects all alerts on a Windows device running the Internet Explorer process.
6565

@@ -73,7 +73,7 @@ finished.
7373
*Example:*
7474

7575
>>> cbapi = CbPSCBaseAPI(...)
76-
>>> query = cbapi.select(BaseAlert).process_name(["IEXPLORE.EXE"])
76+
>>> query = cbapi.select(BaseAlert).set_process_name(["IEXPLORE.EXE"])
7777
>>> reqid = query.dismiss("Using Chrome")
7878
>>> stat = cbapi.select(WorkflowStatus, reqid)
7979
>>> while not stat.finished:

0 commit comments

Comments
 (0)