Class: LogStash::Outputs::Application_insights::Validate_notification
- Inherits:
-
Object
- Object
- LogStash::Outputs::Application_insights::Validate_notification
- Defined in:
- lib/logstash/outputs/application_insights/validate_notification.rb
Instance Method Summary collapse
-
#initialize ⇒ Validate_notification
constructor
A new instance of Validate_notification.
- #validate ⇒ Object
Constructor Details
#initialize ⇒ Validate_notification
Returns a new instance of Validate_notification.
27 28 29 |
# File 'lib/logstash/outputs/application_insights/validate_notification.rb', line 27 def initialize @test_notification = Test_notification.new end |
Instance Method Details
#validate ⇒ Object
31 32 33 |
# File 'lib/logstash/outputs/application_insights/validate_notification.rb', line 31 def validate {:success => @test_notification.test, :error => @test_notification.last_io_exception } end |