def get_metrics_for_resource(access_token, subscription_id, resource_group, resource_provider,<EOL>resource_type, resource_name):
endpoint = '<STR_LIT>'.join([get_rm_endpoint(),<EOL>'<STR_LIT>', subscription_id,<EOL>'<STR_LIT>', resource_group,<EOL>'<STR_LIT>', resource_provider,<EOL>'<STR_LIT:/>', resource_type,<EOL>'<STR_LIT:/>', resource_name,<EOL>'<STR_LIT>',<EOL>'<STR_LIT>', INSIGHTS_PREVIEW_API])<EOL>return do_get(endpoint, access_token)<EOL>
Get the monitoring metrics for a resource.

    Args:
        access_token (str): A valid Azure authentication token.
        subscription_id (str): Azure subscription id.
        resource_group (str): Azure resource group name.
        resource_type (str): Type of resource.
        resource_name (str): Name of resource.

    Returns:
        HTTP response. JSON body of resource metrics.