class LogStash::Outputs::Application_insights::Test_notification

Public Class Methods

new() click to toggle source
# File lib/logstash/outputs/application_insights/test_notification.rb, line 25
def initialize
  super( nil )
  @storage_account_name = @configuration[:storage_account_name_key][0][0]
  @action = :test_notification
  @info = "#{@action}"
  @recoverable = [ :invalid_instrumentation_key, :invalid_table_id ]
  @force_client = true # to enable get a client even if all storage_accounts marked dead
  @container_name = "logstash-test-container"
  @blob_name = "logstash-test-blob"
  @table_id = GUID_NULL
  @instrumentation_key = GUID_NULL
end

Public Instance Methods

test() click to toggle source
# File lib/logstash/outputs/application_insights/test_notification.rb, line 38
def test
  @max_tries = 1
  storage_io_block {
    if @recovery.nil?
      submit
    end
  }
end