Class: Atatus::Transport::Serializers::MetadataSerializer Private
- Inherits:
-
Serializer
- Object
- Serializer
- Atatus::Transport::Serializers::MetadataSerializer
- Defined in:
- lib/atatus/transport/serializers/metadata_serializer.rb
This class is part of a private API. You should avoid using this class if possible, as it may be removed or be changed in the future.
Instance Attribute Summary
Attributes inherited from Serializer
Instance Method Summary collapse
- #build(metadata) ⇒ Object private
Methods inherited from Serializer
Constructor Details
This class inherits a constructor from Atatus::Transport::Serializers::Serializer
Instance Method Details
#build(metadata) ⇒ Object
This method is part of a private API. You should avoid using this method if possible, as it may be removed or be changed in the future.
25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 |
# File 'lib/atatus/transport/serializers/metadata_serializer.rb', line 25 def build() base = { service: build_service(.service), process: build_process(.process), system: build_system(.system), labels: build_labels(.labels) } if .cloud.provider base[:cloud] = build_cloud(.cloud) end { metadata: base } end |