Module: OneApm::Transaction::TransactionSynthetics

Included in:
OneApm::Transaction
Defined in:
lib/one_apm/transaction/transaction_synthetics.rb

Instance Attribute Summary collapse

Instance Method Summary collapse

Instance Attribute Details

#raw_synthetics_headerObject

Returns the value of attribute raw_synthetics_header.



7
8
9
# File 'lib/one_apm/transaction/transaction_synthetics.rb', line 7

def raw_synthetics_header
  @raw_synthetics_header
end

#synthetics_payloadObject

Returns the value of attribute synthetics_payload.



7
8
9
# File 'lib/one_apm/transaction/transaction_synthetics.rb', line 7

def synthetics_payload
  @synthetics_payload
end

Instance Method Details

#is_synthetics_request?Boolean

Returns:

  • (Boolean)


9
10
11
# File 'lib/one_apm/transaction/transaction_synthetics.rb', line 9

def is_synthetics_request?
  synthetics_payload != nil && raw_synthetics_header != nil
end

#synthetics_account_idObject



18
19
20
21
# File 'lib/one_apm/transaction/transaction_synthetics.rb', line 18

def 
  info = synthetics_payload or return nil
  info[1]
end

#synthetics_job_idObject



28
29
30
31
# File 'lib/one_apm/transaction/transaction_synthetics.rb', line 28

def synthetics_job_id
  info = synthetics_payload or return nil
  info[3]
end

#synthetics_monitor_idObject



33
34
35
36
# File 'lib/one_apm/transaction/transaction_synthetics.rb', line 33

def synthetics_monitor_id
  info = synthetics_payload or return nil
  info[4]
end

#synthetics_resource_idObject



23
24
25
26
# File 'lib/one_apm/transaction/transaction_synthetics.rb', line 23

def synthetics_resource_id
  info = synthetics_payload or return nil
  info[2]
end

#synthetics_versionObject



13
14
15
16
# File 'lib/one_apm/transaction/transaction_synthetics.rb', line 13

def synthetics_version
  info = synthetics_payload or return nil
  info[0]
end