def by_user_experience_analytics_work_from_anywhere_metric_id(self,user_experience_analytics_work_from_anywhere_metric_id: str) -> UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder:
        """
        Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereMetrics property of the microsoft.graph.deviceManagement entity.
        param user_experience_analytics_work_from_anywhere_metric_id: The unique identifier of userExperienceAnalyticsWorkFromAnywhereMetric
        Returns: UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder
        """
        if user_experience_analytics_work_from_anywhere_metric_id is None:
            raise TypeError("user_experience_analytics_work_from_anywhere_metric_id cannot be null.")
        from .item.user_experience_analytics_work_from_anywhere_metric_item_request_builder import UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["userExperienceAnalyticsWorkFromAnywhereMetric%2Did"] = user_experience_analytics_work_from_anywhere_metric_id
        return UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the userExperienceAnalyticsWorkFromAnywhereMetrics property of the microsoft.graph.deviceManagement entity.
        param user_experience_analytics_work_from_anywhere_metric_id: The unique identifier of userExperienceAnalyticsWorkFromAnywhereMetric
        Returns: UserExperienceAnalyticsWorkFromAnywhereMetricItemRequestBuilder
        
msgraph/generated/device_management/user_experience_analytics_work_from_anywhere_metrics/user_experience_analytics_work_from_anywhere_metrics_request_builder.py