in lambda_function_code/metric.py [0:0]
def extract(self):
"""The method that calculates the value of the metric and formats the output. child classes should not need to implement this."""
return {
"MetricName": self.metric_name,
"MetricValue": self._compute_value(),
"ExtractionDate": datetime.datetime.now().strftime("%Y-%m-%d %H:%M:%S.%f"),
"Metadata": self.metadata,
"Environment": self.environment,
"ProjectName": self.project_name,
}