Preparing search index...
The search index is not available
XYO Platform SDK - v3.6.9
XYO Platform SDK
@xyo-network/modules
SentinelRunner
Class SentinelRunner
Index
Constructors
constructor
Properties
_automations
on
Trigger
Result
sentinel
timeout
Id?
Accessors
automations
Methods
add
find
remove
remove
All
restart
start
stop
update
Constructors
constructor
new
SentinelRunner
(
sentinel
:
SentinelInstance
,
automations
?:
SentinelAutomationPayload
[]
,
onTriggerResult
?:
OnSentinelRunnerTriggerResult
,
)
:
SentinelRunner
Parameters
sentinel
:
SentinelInstance
Optional
automations
:
SentinelAutomationPayload
[]
Optional
onTriggerResult
:
OnSentinelRunnerTriggerResult
Returns
SentinelRunner
Properties
Protected
_automations
_automations
:
Record
<
string
,
SentinelAutomationPayload
>
Protected
on
Trigger
Result
onTriggerResult
:
undefined
|
OnSentinelRunnerTriggerResult
Protected
sentinel
sentinel
:
SentinelInstance
Protected
Optional
timeout
Id
timeoutId
?:
string
|
number
|
Timeout
Accessors
automations
get
automations
()
:
Record
<
string
,
SentinelAutomationPayload
>
Returns
Record
<
string
,
SentinelAutomationPayload
>
Methods
add
add
(
automation
:
SentinelAutomationPayload
,
restart
?:
boolean
,
)
:
Promise
<
Lowercase
<
string
>
>
Parameters
automation
:
SentinelAutomationPayload
Optional
restart
:
boolean
Returns
Promise
<
Lowercase
<
string
>
>
find
find
(
hash
:
string
)
:
undefined
|
[
string
,
SentinelAutomationPayload
]
Parameters
hash
:
string
Returns
undefined
|
[
string
,
SentinelAutomationPayload
]
remove
remove
(
hash
:
string
,
restart
?:
boolean
)
:
void
Parameters
hash
:
string
Optional
restart
:
boolean
Returns
void
remove
All
removeAll
()
:
void
Returns
void
restart
restart
()
:
void
Returns
void
start
start
()
:
void
Returns
void
stop
stop
()
:
void
Returns
void
update
update
(
hash
:
string
,
automation
:
SentinelAutomationPayload
,
restart
?:
boolean
,
)
:
Promise
<
void
>
Parameters
hash
:
string
automation
:
SentinelAutomationPayload
Optional
restart
:
boolean
Returns
Promise
<
void
>
Settings
Member Visibility
Protected
Inherited
External
Theme
OS
Light
Dark
On This Page
Constructors
constructor
Properties
_automations
on
Trigger
Result
sentinel
timeout
Id
Accessors
automations
Methods
add
find
remove
remove
All
restart
start
stop
update
XYO Platform SDK - v3.6.9
Loading...