Skip to content

Notify:Scans

Announces the state of the persistent Scans for the authenticated user.

Controller: Notify
Topic: Scans
Action: Sub
Permissions: None

An array of Scan Change objects

NameTypeExpectDescription
OperationStringAlwaysThe operation being performed. One of:
Add: Adding a new Scan.
Update: Updating an existing Scan.
Remove: Removing a Scan.
Clear: Clearing all Scans.
ScanObjectOptionalA Scan State object. Will be omitted when clearing. Will always be provided in all other situations.
NameTypeExpectDescription
IDStringAlwaysThe unique identifier for the Scan.
NameStringSometimesThe friendly name of this Scan.
DescriptionStringSometimesThe friendly name of this Scan.
MetadataObjectAlwaysAn user-defined object with string values.
IsWritableBooleanSometimesTrue if the Scan can be edited, False for Read Only.
StatusStringAlwaysThe status of the Scan. One of:
Active: Scan is active. Will provide notifications and can be queried.
Inactive: Scan is inactive. Will not provide notifications, and cannot be queried.
Faulted: Scan has failed due to an error. Will not provide notifications, and cannot be queried.
TypeStringAlwaysThe scanner type.

Send:

{"Controller":"Notify","Topic":"Scans","Action":"Sub","Confirm":true}

Receive:

{"Controller":"Notify","Topic":"Scans","Data":[
{"Operation":"Clear"},
{"Operation":"Add",{"ID":"j5Tm6X","Name":"Hot Stocks","Metadata":{"Category":"User"},"Status":"Active","Type":"Market.Monitor"}}
]}
{"Controller":"Notify","Topic":"Scans","Action":"Sub","Confirm":true}

Scan Removed:

{"Controller":"Notify","Topic":"Scans","Data":[
{"Operation":"Remove",{"ID":"j5Tm6X"}}
]}