다음을 통해 공유


get_metric_definition_by_id

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_id(metric_id: int) -> dict  

Parameters:

  • metric_id (int): ID of the metric to be retrieved.

Description:
Gets metric definition by its ID.

Returns:

  • dict: Metric definition with labels.

Raises:

  • ValueError: If the metric ID is not found.

Example usage:

metrics_manager = MetricsManager()
metric_def = metrics_manager.get_metric_definition_by_id(metric_id=1)