GetPIDataArchiveIncident Class
- Last UpdatedDec 15, 2025
- 3 minute read
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
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
| Name | Description | |
|---|---|---|
| GetPIDataArchiveIncident |
Properties
| Name | Description | |
|---|---|---|
| Closed | Retrieve closed PI Incidents | |
| Connection | Connection to a PI Data Archive from which to get the PI Incidents | |
| EndTime | End time for which to retrieve PI Incidents | |
| Open | Retrieve open PI Incidents | |
| 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 $conWhere:
$con = Connect-PIDataArchive -PIDataArchiveMachineName "PISRV1"
Gets all PI Incidents from the "PISRV1" PI Data Archive that occurred in the last week.