def by_alert_id(self,alert_id: str) -> AlertItemRequestBuilder:
        """
        Provides operations to manage the alerts property of the microsoft.graph.security entity.
        param alert_id: The unique identifier of alert
        Returns: AlertItemRequestBuilder
        """
        warn("The legacy Graph Security API is deprecated and will stop returning data on January 31, 2025. Please use the new Graph Security API. as of 2024-01/Deprecation on 2024-04-10 and will be removed 2026-04-10", DeprecationWarning)
        if alert_id is None:
            raise TypeError("alert_id cannot be null.")
        from .item.alert_item_request_builder import AlertItemRequestBuilder

        url_tpl_params = get_path_parameters(self.path_parameters)
        url_tpl_params["alert%2Did"] = alert_id
        return AlertItemRequestBuilder(self.request_adapter, url_tpl_params)

        Provides operations to manage the alerts property of the microsoft.graph.security entity.
        param alert_id: The unique identifier of alert
        Returns: AlertItemRequestBuilder
        
msgraph/generated/security/alerts/alerts_request_builder.py