in mozilla_schema_generator/probes.py [0:0]
def __init__(self, identifier: str, definition: dict, *, pings: List[str] = None):
self._set_dates(definition)
self._set_definition(definition)
self._set_description(self.definition)
self._in_source = definition.get(self.in_source_key, False)
super().__init__(identifier, definition)
defn_pings = set(
[
p
for d in definition[self.history_key]
for p in d.get("send_in_pings", ["metrics"])
]
)
self.definition["send_in_pings"] = defn_pings
if pings is not None:
self._update_all_pings(pings)