def __init__(
        self,
        data: PrometheusQueryResult,
        query: str,
        vertical_lines: Optional[List[PrometheusBlockLineData]] = None,
        horizontal_lines: Optional[List[PrometheusBlockLineData]] = None,
        y_axis_type: Optional[ChartValuesFormat] = None,
        graph_name: Optional[str] = None,
        metrics_legends_labels: Optional[List[str]] = None,
    ):
        """
        :param data: the PrometheusQueryResult generated created from a prometheus query
        :param query: the Prometheus query run
        """
        metadata = {"query-result-version": "1.0", "query": query}
        super().__init__(
            data=data,
            metadata=metadata,
            vertical_lines=vertical_lines,
            horizontal_lines=horizontal_lines,
            y_axis_type=y_axis_type,
            graph_name=graph_name,
        )

        if metrics_legends_labels:
            self.metadata["metrics_legends_labels"] = json.dumps(metrics_legends_labels)

        :param data: the PrometheusQueryResult generated created from a prometheus query
        :param query: the Prometheus query run
        
src/robusta/core/reporting/blocks.py