다음을 통해 공유


get_metric_definition_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_definition_by_metric_name(metric_name: str) -> dict  

Parameters:

  • metric_name (str): Name of the metric to be retrieved.

Description:
Gets metric definition by its name.

Returns:

  • dict: Metric definition with labels.

Raises:

  • ValueError: If the metric name is not found.

Example usage:

metrics_manager = MetricsManager()
metric_def = metrics_manager.get_metric_definition_by_metric_name(metric_name="Gross Scope 1 greenhouse gas emissions")