Astarte.Core.Triggers.SimpleTriggerConfig (astarte_core v1.0.2) View Source

This module handles the functions for creating a SimpleTriggerConfig and converting it to and from a TaggedSimpleTrigger.

Link to this section Summary

Link to this section Functions

Link to this function

from_tagged_simple_trigger(tagged_simple_trigger)

View Source
Link to this function

to_tagged_simple_trigger(simple_trigger_config)

View Source

Creates a TaggedSimpleTrigger from a SimpleTriggerConfig.

It is assumed that the SimpleTriggerConfig is valid and constructed using SimpleTriggerConfig.changeset

Returns a %TaggedSimpleTrigger{}