Class: Threatstack::Alert
- Inherits:
-
Object
- Object
- Threatstack::Alert
show all
- Includes:
- Serializable
- Defined in:
- lib/threatstack/entities/alert.rb
Instance Attribute Summary
Attributes included from Serializable
#client, #raw
Instance Method Summary
collapse
#attrs, #camelize, included, #initialize, #method_missing
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
in the class Threatstack::Serializable
Instance Method Details
#agent ⇒ Object
14
15
16
|
# File 'lib/threatstack/entities/alert.rb', line 14
def agent
client.agent(agent_id)
end
|
#events ⇒ Object
22
23
24
|
# File 'lib/threatstack/entities/alert.rb', line 22
def events
event_ids&.map{ |event_id| client.event(id, event_id)}
end
|
#rule ⇒ Object
10
11
12
|
# File 'lib/threatstack/entities/alert.rb', line 10
def rule
client.rule(ruleset_id, rule_id)
end
|
#ruleset ⇒ Object
18
19
20
|
# File 'lib/threatstack/entities/alert.rb', line 18
def ruleset
client.ruleset(ruleset_id)
end
|