Class: Sqreen::Kit::Signals::LocationInfra

Inherits:
Object
  • Object
show all
Includes:
DtoHelper
Defined in:
lib/sqreen/kit/signals/signal_attributes.rb

Constant Summary

Constants included from DtoHelper

DtoHelper::DO_NOT_CONVERT_TYPES, DtoHelper::RFC_3339_FMT

Instance Attribute Summary collapse

Instance Method Summary collapse

Methods included from DtoHelper

#append_to_h_filter, #compact_hash, included, #initialize, #to_json

Instance Attribute Details

#agent_versionString

mandatory

Returns:

  • (String)


87
88
89
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 87

def agent_version
  @agent_version
end

#hostnameString

mandatory

Returns:

  • (String)


95
96
97
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 95

def hostname
  @hostname
end

#libsqreen_versionString

Returns:

  • (String)


105
106
107
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 105

def libsqreen_version
  @libsqreen_version
end

#os_typeString

mandatory

Returns:

  • (String)


91
92
93
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 91

def os_type
  @os_type
end

#runtime_typeString

Returns:

  • (String)


98
99
100
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 98

def runtime_type
  @runtime_type
end

#runtime_versionString

mandatory

Returns:

  • (String)


102
103
104
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 102

def runtime_version
  @runtime_version
end

Instance Method Details

#to_hObject



107
108
109
110
111
112
113
# File 'lib/sqreen/kit/signals/signal_attributes.rb', line 107

def to_h
  {
    infra: {
      agent_type: 'ruby',
    }.merge(super()),
  }
end