get_metric_id_by_metric_name
Important
Some or all of this functionality is available as part of a preview release. The content and the functionality are subject to change.
get_metric_id_by_metric_name(metric_name: str) -> int
Parameters:
- metric_name (str): Name of the metric to be retrieved.
Description:
Gets metric ID by metric name.
Returns:
int
: Metric ID.
Raises:
ValueError
: If the metric name is not found.
Example usage:
metrics_manager = MetricsManager()
metric_id = metrics_manager.get_metric_id_by_metric_name(metric_name="Gross Scope 1 greenhouse gas emissions")