def METHOD_NAME(
    self,
    metric_id: str,
    body: LogsMetricUpdateRequest,
) -> LogsMetricResponse:
    """Update a log-based metric.
    Update a specific log-based metric from your organization.
    Returns the log-based metric object from the request body when the request is successful.
    :param metric_id: The name of the log-based metric.
    :type metric_id: str
    :param body: New definition of the log-based metric.
    :type body: LogsMetricUpdateRequest
    :rtype: LogsMetricResponse
    """
    kwargs: Dict[str, Any] = {}
    kwargs["metric_id"] = metric_id
    kwargs["body"] = body
    return self._update_logs_metric_endpoint.call_with_http_info(**kwargs)