Please ensure Javascript is enabled for purposes of website accessibility
Powered by Zoomin Software. For more details please contactZoomin

PI Powershell

GetPIDataArchiveIncident Class

  • Last UpdatedDec 15, 2025
  • 3 minute read
GetPIDataArchiveIncident Class

Get PI Data Archive Incidents

The Get-PIDataArchiveIncident cmdlet gets PI Data Archive Incidents from a PI Data Archive.

The connection parameter specifies which connection to a PI Data Archive to use.

Inheritance Hierarchy

SystemObject
  InternalCommand
    Cmdlet
      PSCmdlet
        OSIsoft.PowerShellOSICmdletBase
          OSIsoft.PowerShellGetPIDataArchiveIncident

Namespace:  OSIsoft.PowerShell
Assembly:  OSIsoft.PowerShell (in OSIsoft.PowerShell.dll) Version: 2.2.3.0 (2.2.3.952)

Syntax

[CmdletAttribute("Get", "PIDataArchiveIncident", SupportsShouldProcess = true)]
public class GetPIDataArchiveIncident : OSICmdletBase
<CmdletAttribute("Get", "PIDataArchiveIncident", SupportsShouldProcess := true)>
Public Class GetPIDataArchiveIncident
	Inherits OSICmdletBase

Dim instance As GetPIDataArchiveIncident
[CmdletAttribute(L"Get", L"PIDataArchiveIncident", SupportsShouldProcess = true)]
public ref class GetPIDataArchiveIncident : public OSICmdletBase
[<CmdletAttribute("Get", "PIDataArchiveIncident", SupportsShouldProcess = true)>]
type GetPIDataArchiveIncident =  
    class
        inherit OSICmdletBase
    end

The GetPIDataArchiveIncident type exposes the following members.

Constructors

  NameDescription
Public method
GetPIDataArchiveIncident

Properties

  NameDescription
Public property
Closed

Retrieve closed PI Incidents

Public property
Connection

Connection to a PI Data Archive from which to get the PI Incidents

Public property
EndTime

End time for which to retrieve PI Incidents

Public property
Open

Retrieve open PI Incidents

Public property
StartTime

Start time for which to retrieve PI Incidents

Examples

Get-PIDataArchiveIncident -Open -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets all open PI Incidents from the "PISRV1" PI Data Archive.

Examples

Get-PIDataArchiveIncident -Open -Closed -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets all PI Incidents from the "PISRV1" PI Data Archive.

Examples

Get-PIDataArchiveIncident -Open -Closed -StartTime (ConvertFrom-AFRelativeTime -RelativeTime *-1w) -EndTime (ConvertFrom-AFRelativeTime -RelativeTime *) -Connection $con

Where:

$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"

Gets all PI Incidents from the "PISRV1" PI Data Archive that occurred in the last week.

See Also

TitleResults for “How to create a CRG?”Also Available in