92 out vector<EventDesc> eventDescs);
174 in vector<KeyValue> context);
194 in vector<KeyValue> context);
There is a single event engine instance reachable by a well known reference.
Definition: EventEngine.idl:53
int modifyRule(in Rule rule)
Modify a rule.
int testAction(in Action action, out string errMsg, in vector< KeyValue > context)
Test an action.
vector< string > listActionTypes()
List all available action types.
int modifyAction(in Action action)
Modify an action.
int listEventDescs(in vector< string > eventIdPrefix, out vector< EventDesc > eventDescs)
Query existing event descriptors.
int disableRule(in string ruleId)
Disable a rule.
int addAction(in Action action, out string actionId)
Add a new action.
int enableRule(in string ruleId)
Enable a rule.
vector< Rule > listRules()
List all rules.
int rearmRule(in string ruleId)
Rearm an event rule that is active.
vector< Action > listActions()
List all actions currently know to this event engine.
int triggerAction(in string actionId, out string errMsg, in vector< KeyValue > context)
Trigger an action.
int addRule(in Rule rule, out string ruleId)
Add a new rule.
int deleteAction(in string actionId)
Remove an action.
int deliverEvent(in Event event)
Deliver an event.
int deleteRule(in string ruleId)
Delete a rule.
Event interface.
Definition: AlarmManager.idl:12
An action is a tuple of 'id' (unique within the scope of this event engine), 'name' which is unique a...
Definition: EventEngine.idl:114
boolean isSystem
true for system-defined actions
Definition: EventEngine.idl:117
string type
Action type.
Definition: EventEngine.idl:118
string name
User-defined name.
Definition: EventEngine.idl:116
vector< KeyValue > arguments
Action argument map.
Definition: EventEngine.idl:119
string id
Action ID.
Definition: EventEngine.idl:115
Condition is a logical combination of multiple events.
Definition: EventEngine.idl:210
vector< string > eventId
Event ID.
Definition: EventEngine.idl:229
boolean negate
Negate the result.
Definition: EventEngine.idl:226
Op
logical operation to be applied over all conditions and event
Definition: EventEngine.idl:213
@ AND
Logical And.
Definition: EventEngine.idl:214
@ OR
Logical Or.
Definition: EventEngine.idl:215
MatchType
the match type how to match the event assertion state
Definition: EventEngine.idl:220
@ DEASSERTED
Match if the event is deasserted.
Definition: EventEngine.idl:222
@ ASSERTED
Match if the event is asserted.
Definition: EventEngine.idl:221
Op operation
Logical operation to be applied.
Definition: EventEngine.idl:227
vector< Condition > conditions
List of subordinate conditions.
Definition: EventEngine.idl:230
MatchType matchType
Match type.
Definition: EventEngine.idl:228
An event descriptor.
Definition: EventEngine.idl:68
string idComp
Event ID component.
Definition: EventEngine.idl:80
Event::Type eventType
Event type.
Definition: EventEngine.idl:78
string name
User-defined name.
Definition: EventEngine.idl:81
vector< EventDesc > entries
Child nodes.
Definition: EventEngine.idl:82
Type
Event descriptor type.
Definition: EventEngine.idl:71
@ NODE
Intermediate node.
Definition: EventEngine.idl:72
@ DYN_NODE
Dynamic node.
Definition: EventEngine.idl:73
Type eventDescType
Event descriptor type.
Definition: EventEngine.idl:77
string dynNodeContext
Dynamic node context.
Definition: EventEngine.idl:79
A Rule binds an action to a condition.
Definition: EventEngine.idl:246
vector< string > actionIds
List of action IDs.
Definition: EventEngine.idl:254
boolean isEnabled
true if the rule is enabled
Definition: EventEngine.idl:250
boolean hasMatched
true if the rule has matched since being armed
Definition: EventEngine.idl:252
boolean isSystem
true for system-defined rules
Definition: EventEngine.idl:249
vector< KeyValue > arguments
Argument map.
Definition: EventEngine.idl:255
string name
User-defined name.
Definition: EventEngine.idl:248
string id
Rule ID.
Definition: EventEngine.idl:247
boolean isAutoRearm
true for auto-rearming rules
Definition: EventEngine.idl:251
Condition condition
Trigger condition.
Definition: EventEngine.idl:253
Event has a type: a STATE event indicates that a boolean state has been changed, i....
Definition: EventEngine.idl:34
vector< string > id
Event id vector.
Definition: EventEngine.idl:43
time timeStamp
UNIX timestamp (UTC)
Definition: EventEngine.idl:45
Type
Event type.
Definition: EventEngine.idl:37
@ STATE
State event.
Definition: EventEngine.idl:38
vector< KeyValue > context
Context map.
Definition: EventEngine.idl:46
boolean asserted
Assertion value.
Definition: EventEngine.idl:44
Type type
Event type.
Definition: EventEngine.idl:42
Helper that is used wherever key/value pairs are required.
Definition: EventEngine.idl:18
string key
Key.
Definition: EventEngine.idl:19
string value
Value.
Definition: EventEngine.idl:20