# AveragingCachePressureMonitor Methods

[Type overview](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.averagingcachepressuremonitor/)

## IsUnderPressure(DateTime) {#isunderpressure-system-datetime-d23f8f56}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.averagingcachepressuremonitor/methods/isunderpressure-system-datetime-d23f8f56/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/CachePressureMonitors/AveragingCachePressureMonitor.cs#L65-L70)

```csharp
public bool IsUnderPressure(DateTime utcNow)
```

Determine if the monitor is under pressure

### Parameters

- `utcNow` (`DateTime`)

## RecordCachePressureContribution(double) {#recordcachepressurecontribution-double-a60a35c8}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.averagingcachepressuremonitor/methods/recordcachepressurecontribution-double-a60a35c8/)

[Source](https://github.com/dotnet/orleans/blob/e4e752cedecc2976811db49802c7a999b1f1c704/src/Azure/Orleans.Streaming.EventHubs/Providers/Streams/EventHub/CachePressureMonitors/AveragingCachePressureMonitor.cs#L57-L60)

```csharp
public void RecordCachePressureContribution(double cachePressureContribution)
```

Record cache pressure contribution to the monitor

### Parameters

- `cachePressureContribution` (`double`)
