functions/account-controller/Get-RmmOpenAlerts.ps1

function Get-RmmOpenAlerts {
    <#
    .SYNOPSIS
    Gets all open alerts
     
    .DESCRIPTION
    Fetches open alerts of the authenticated user's account
 
    .OUTPUTS
    [System.Object] custom object containing request response data
 
    .EXAMPLE
    $openAlerts = Get-RmmOpenAlerts
 
    #>


    return New-RmmApiRequest -method GET -endpoint 'account/alerts/open'
}