Class: Instana::Snapshot::LambdaFunction

Inherits:
Object
  • Object
show all
Defined in:
lib/instana/snapshot/lambda_function.rb

Overview

Since:

  • 1.198.0

Constant Summary collapse

ID =

Since:

  • 1.198.0

"com.instana.plugin.aws.lambda".freeze

Instance Method Summary collapse

Instance Method Details

#dataObject

Since:

  • 1.198.0



14
15
16
# File 'lib/instana/snapshot/lambda_function.rb', line 14

def data
  {}
end

#entity_idObject

Since:

  • 1.198.0



10
11
12
# File 'lib/instana/snapshot/lambda_function.rb', line 10

def entity_id
  Thread.current[:instana_function_arn]
end

#host_nameObject

Since:

  • 1.198.0



34
35
36
# File 'lib/instana/snapshot/lambda_function.rb', line 34

def host_name
  entity_id
end

#snapshotObject

Since:

  • 1.198.0



18
19
20
21
22
23
24
# File 'lib/instana/snapshot/lambda_function.rb', line 18

def snapshot
  {
    name: ID,
    entityId: entity_id,
    data: data
  }
end

#sourceObject

Since:

  • 1.198.0



26
27
28
29
30
31
32
# File 'lib/instana/snapshot/lambda_function.rb', line 26

def source
  {
    hl: true,
    cp: "aws",
    e: entity_id
  }
end