Module: OneApm::Transaction::TransactionSynthetics
- Included in:
- OneApm::Transaction
- Defined in:
- lib/one_apm/transaction/transaction_synthetics.rb
Instance Attribute Summary collapse
-
#raw_synthetics_header ⇒ Object
Returns the value of attribute raw_synthetics_header.
-
#synthetics_payload ⇒ Object
Returns the value of attribute synthetics_payload.
Instance Method Summary collapse
- #is_synthetics_request? ⇒ Boolean
- #synthetics_account_id ⇒ Object
- #synthetics_job_id ⇒ Object
- #synthetics_monitor_id ⇒ Object
- #synthetics_resource_id ⇒ Object
- #synthetics_version ⇒ Object
Instance Attribute Details
#raw_synthetics_header ⇒ Object
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_payload ⇒ Object
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
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_id ⇒ Object
18 19 20 21 |
# File 'lib/one_apm/transaction/transaction_synthetics.rb', line 18 def synthetics_account_id info = synthetics_payload or return nil info[1] end |
#synthetics_job_id ⇒ Object
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_id ⇒ Object
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_id ⇒ Object
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_version ⇒ Object
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 |