-
Notifications
You must be signed in to change notification settings - Fork 3
Get GrafanaAlert
Query Grafana API for alert information
Get-GrafanaAlert [[-DashboardId] <Int32[]>] [[-DashboardName] <String>] [[-DashboardTag] <String[]>]
[[-AlertName] <String>] [[-State] <String[]>] [<CommonParameters>]
PS C:\> Get-GrafanaAlert
Get all current alerts
PS C:\> Get-GranaAlert -DashboardId 1
Get alerts by dashboard id
PS C:\> Get-GranaAlert -DashboardName "PeterRabbit"
Get alerts by dashboard name
PS C:\> Get-GranaAlert -DashboardTag "prod"
Get alerts by dashboard tag
PS C:\> Get-GrafanaAlert -AlertName 'Perrywinkle'
Get alerts by alert name
PS C:\> Get-GrafanaAlert -State 'paused'
Get alerts by alert state
Query for all alerts matching the alert name
Type: String
Parameter Sets: (All)
Aliases: Query
Required: False
Position: 3
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The ID of the dashboard to query
Type: Int32[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
The friendly name of the dashboard to query
Type: String
Parameter Sets: (All)
Aliases:
Required: False
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Search for alerts belong to a dashboard with a specific tag
Type: String[]
Parameter Sets: (All)
Aliases:
Required: False
Position: 2
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
Query for all alerts in the state of 'ALL','no_data','paused', 'alerting','ok','pending'
Type: String[]
Parameter Sets: (All)
Aliases:
Accepted values: ALL, no_data, paused, alerting, ok, pending
Required: False
Position: 4
Default value: None
Accept pipeline input: False
Accept wildcard characters: False
This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.
-
Configuration
-
Admin
-
API Keys
-
Alerts
-
Dashboards
-
Folders
-
Snapshots
-
Other