This is the reverse of to_dict(). Use it when the pipeline definition comes from somewhere other than a YAML file, such as a JSON document or a configuration service. To read a YAML file directly, use from_yaml().
The dictionary can have a "pipeline" entry with any of "label", "thresholds" (a mapping of "warning", "error", and "critical" to values), and "short_circuit". Settings that are missing get their defaults. The contracts go under "source" and "target" in the form read by Contract.from_dict(). A contract without a "direction" key is given the direction that matches its position, so direction: doesn’t need to be repeated in hand-written definitions. Actions and final actions can’t be given in the dictionary. To use them, create a new pipeline with the parsed contracts and settings plus your actions.
Parameters
data:dict[str, Any]
A dictionary describing a pipeline, in the form produced by to_dict().