Skip to content

New GrafanaSnapshot

Stephen Valdinger edited this page Apr 8, 2019 · 3 revisions

external help file: PSGrafana-help.xml Module Name: PSGrafana online version: schema: 2.0.0

New-GrafanaSnapshot

SYNOPSIS

Take a snapshot of a dashboard in Grafana

SYNTAX

New-GrafanaSnapshot [-DashboardTitle] <String> [-SnapshotName] <String> [[-Expires] <Int32>]
 [<CommonParameters>]

DESCRIPTION

EXAMPLES

Example 1

PS C:\> New-GrafanaSnapshot -DashboardTitle WebHosts -SnapshotName WebSnap -Expires 0

Create a new snapshot of WebHosts with the name WebSnap that never expires

PARAMETERS

-DashboardTitle

Title of the dashboard you wish to snapshot

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-Expires

Time (in seconds) the snapshot stays alive. Set to 0 to never expire.

Type: Int32
Parameter Sets: (All)
Aliases:

Required: False
Position: 0
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

-SnapshotName

Name of the snapshot you are creating

Type: String
Parameter Sets: (All)
Aliases:

Required: True
Position: 1
Default value: None
Accept pipeline input: False
Accept wildcard characters: False

CommonParameters

This cmdlet supports the common parameters: -Debug, -ErrorAction, -ErrorVariable, -InformationAction, -InformationVariable, -OutVariable, -OutBuffer, -PipelineVariable, -Verbose, -WarningAction, and -WarningVariable. For more information, see about_CommonParameters.

INPUTS

None

OUTPUTS

System.Object

NOTES

RELATED LINKS

Get-GrafanaSnapshot, Remove-GrafanaSnapshot

Clone this wiki locally