< Back

Get-OVGDResourceAlert

Mon Jan 13, 2020 8:53 pm

NAME Get-OVGDResourceAlert



SYNOPSIS

Retrieve resource alerts from a Global Dashboard instance





SYNTAX

Get-OVGDResourceAlert [-Server <Object>] [-Count <Object>] [<CommonParameters>]



Get-OVGDResourceAlert [-Server <Object>] [-ResourceName <Object>] [-Appliance <Object>] [-AlertType <Object>]

[-HealthCategory <Object>] [-State <Object>] [-Severity <Object>] [-AssignedTo <Object>] [-ServiceEvent]

[-UserQuery <Object>] [-Count <Object>] [<CommonParameters>]



Get-OVGDResourceAlert [-Server <Object>] [-ID <Object>] [<CommonParameters>]





DESCRIPTION

This function will retrieve resource alerts on the connected Global Dashboard instance





PARAMETERS

-Server <Object>

The Global Dashboard to work with, defaults to the Global variable OVGDPSServer



Required? false

Position? named

Default value $Global:OVGDPSServer

Accept pipeline input? false

Accept wildcard characters? false



-ID <Object>



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ResourceName <Object>

Filter on the Resource Name of the Alert to retrieve. Note that we search for an exact match



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Appliance <Object>

Filter on the Appliance of the Alert Template to retrieve. Note that we search for an exact match



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AlertType <Object>

Filter on the AlertType of the Alert Template to retrieve. Note that we search for an exact match



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-HealthCategory <Object>

Filter on the HealthCategory of the Alert Template to retrieve. Note that we search for an exact match



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-State <Object>

Filter on State of the Alert Template to retrieve. Note that we search for an exact match



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Severity <Object>

Filter on the Severity of the Alert Template to retrieve. Note that we search for an exact match



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-AssignedTo <Object>

Filter on the AssignedToUser of the Alert Template to retrieve. Note that we search for an exact match



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-ServiceEvent [<SwitchParameter>]

Filter on if the alert is a ServiceEvent or not.



Required? false

Position? named

Default value False

Accept pipeline input? false

Accept wildcard characters? false



-UserQuery <Object>

Query string used for full text search



Required? false

Position? named

Default value

Accept pipeline input? false

Accept wildcard characters? false



-Count <Object>

The count of hardware to retrieve, defaults to 25



Required? false

Position? named

Default value 25

Accept pipeline input? false

Accept wildcard characters? false



<CommonParameters>

This cmdlet supports the common parameters: Verbose, Debug,

ErrorAction, ErrorVariable, WarningAction, WarningVariable,

OutBuffer, PipelineVariable, and OutVariable. For more information, see

about_CommonParameters (https:/go.microsoft.com/fwlink/?LinkID=113216).



INPUTS



OUTPUTS



NOTES





Info

Author : Rudi Martinsen / Intility AS

Date : 24/04-2019

Version : 0.5.0

Revised : 14/08-2019

Changelog:

0.5.0 -- Added param for ServiceEvents

0.4.0 -- Reworked output

0.3.0 -- Added Id param, Fixed output when returning single result

0.2.0 -- Added support for querying and changed warning when result is bigger than count

0.1.1 -- Added link to help text



-------------------------- EXAMPLE 1 --------------------------



PS C:\\>Get-OVGDResourceAlert



Returns the 25 latest resource alerts from the connected Global Dashboard instance









-------------------------- EXAMPLE 2 --------------------------



PS C:\\>Get-OVGDResourceAlert -Count 50



Returns the 50 latest resource alerts from the connected Global Dashboard instance











RELATED LINKS

https://github.com/rumart/GlobalDashboardPS

https://developer.hpe.com/blog/accessin ... hboard-api

https://rudimartinsen.com/2019/04/23/hp ... ll-module/