def emit_event()

in lambda_function_code/metric.py [0:0]


    def emit_event(self, payload):
        """emit an event with a given payload. child classes should not need to implement this.

        Args:
            payload (dict): the payload of the event to be emitted
        """

        response = events_client.put_events(
            Entries=[
                {
                    "Source": "metric_extractor",
                    "Resources": [],
                    "DetailType": "metric_extractor",
                    "Detail": json.dumps(payload),
                }
            ]
        )