> ## Documentation Index
> Fetch the complete documentation index at: https://docs.resq.software/llms.txt
> Use this file to discover all available pages before exploring further.

# ResQ.Core.PdieClient.GetPreAlertsAsync(string,System.Threading.CancellationToken)

### [ResQ.Core](./ResQ.Core.md "ResQ.Core").[PdieClient](./ResQ.Core.PdieClient.md "ResQ.Core.PdieClient")

## PdieClient.GetPreAlertsAsync(string, CancellationToken) Method

Gets current pre-alerts, optionally filtered by sector.

```csharp theme={null}
public System.Threading.Tasks.Task<System.Collections.Generic.List<ResQ.Core.PreAlert>> GetPreAlertsAsync(string? sectorId=null, System.Threading.CancellationToken ct=default(System.Threading.CancellationToken));
```

#### Parameters

<a name="ResQ.Core.PdieClient.GetPreAlertsAsync(string,System.Threading.CancellationToken).sectorId" />

`sectorId` [System.String](https://learn.microsoft.com/en-us/dotnet/api/system.string "System.String")

Optional sector filter.

<a name="ResQ.Core.PdieClient.GetPreAlertsAsync(string,System.Threading.CancellationToken).ct" />

`ct` [System.Threading.CancellationToken](https://learn.microsoft.com/en-us/dotnet/api/system.threading.cancellationtoken "System.Threading.CancellationToken")

Cancellation token.

#### Returns

[System.Threading.Tasks.Task\<](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System.Threading.Tasks.Task`1")[System.Collections.Generic.List\<](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1 "System.Collections.Generic.List`1")[PreAlert](./ResQ.Core.PreAlert.md "ResQ.Core.PreAlert")[>](https://learn.microsoft.com/en-us/dotnet/api/system.collections.generic.list-1 "System.Collections.Generic.List`1")[>](https://learn.microsoft.com/en-us/dotnet/api/system.threading.tasks.task-1 "System.Threading.Tasks.Task`1")\
List of active pre-alerts.
