Class: Sqreen::Kit::Signals::Signal

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

Overview

Not to be used directly. See Metric and Point

Direct Known Subclasses

Metric, Point

Constant Summary

Constants included from DtoHelper

DtoHelper::DO_NOT_CONVERT_TYPES, DtoHelper::RFC_3339_FMT

Instance Attribute Summary collapse

Attributes included from SignalAttributes

#actor, #context, #context_schema, #location, #location_infra, #source, #trigger

Method Summary

Methods included from SignalAttributes

#time, #to_h, #type

Methods included from DtoHelper

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

Instance Attribute Details

#payloadObject

mandatory

Returns:

  • (Object)


29
30
31
# File 'lib/sqreen/kit/signals/signal.rb', line 29

def payload
  @payload
end

#payload_schemaString

Returns:

  • (String)


25
26
27
# File 'lib/sqreen/kit/signals/signal.rb', line 25

def payload_schema
  @payload_schema
end

#signal_nameString

mandatory

Returns:

  • (String)


22
23
24
# File 'lib/sqreen/kit/signals/signal.rb', line 22

def signal_name
  @signal_name
end