Class: NodataMonitor::Alert

Inherits:
Object
  • Object
show all
Defined in:
lib/nodata-monitor.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Constructor Details

#initialize(options) ⇒ Alert

Returns a new instance of Alert.



21
22
23
24
25
26
# File 'lib/nodata-monitor.rb', line 21

def initialize options
  @name = options['name']
  @message = options['message']
  @state = options['state']
  @query = options['query']
end

Instance Attribute Details

#messageObject

Returns the value of attribute message.



17
18
19
# File 'lib/nodata-monitor.rb', line 17

def message
  @message
end

#nameObject

Returns the value of attribute name.



16
17
18
# File 'lib/nodata-monitor.rb', line 16

def name
  @name
end

#queryObject

Returns the value of attribute query.



19
20
21
# File 'lib/nodata-monitor.rb', line 19

def query
  @query
end

#stateObject

Returns the value of attribute state.



18
19
20
# File 'lib/nodata-monitor.rb', line 18

def state
  @state
end