GetAIOperator

GetAIOperator(id): AIOperator

Get AI operator instance by ID. A script executed on behalf of a user requires the "Manage AI operators" system access right; scripts executed without user context (for example, from the event processing policy) are always allowed.

Table 1. Parameters

id

Integer

AI operator instance ID

Return

AIOperator object, or null if instance with given ID does not exist or access is denied.

>>> op = GetAIOperator(1);
>>> println(op.name .. " enabled=" .. op.enabled .. " focus: " .. op.currentFocus);
Operator1 enabled=true focus: Monitoring core switch interface errors