Sha256: 6ab55df50d77c2e7fabcc28b779962782144b254d35ea46855d8c7af4680cb18

Contents?: true

Size: 809 Bytes

Versions: 42

Compression:

Stored size: 809 Bytes

Contents

# encoding: utf-8

module OneApm
  class Transaction
    module TransactionSynthetics

      attr_accessor :raw_synthetics_header, :synthetics_payload

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

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

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

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

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

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

    end
  end
end

Version data entries

42 entries across 42 versions & 1 rubygems

Version Path
oneapm_rpm-1.4.2 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.4.1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.4.0 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.7 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.7.rc1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.6 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.6.rc1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.5 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.5.rc1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.4 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.4.rc1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.3 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.3.rc1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.2 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.2.rc1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.1.rc1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.0 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.3.0.rc1 lib/one_apm/transaction/transaction_synthetics.rb
oneapm_rpm-1.2.9 lib/one_apm/transaction/transaction_synthetics.rb