# AggregatedCachePressureMonitor Methods

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

## AddCachePressureMonitor(ICachePressureMonitor) {#addcachepressuremonitor-orleans-streaming-eventhubs-icachepressuremonitor-7e658d3d}

[Dedicated page](/orleans/docs/api/csharp/microsoft.orleans.streaming.eventhubs/orleans.streaming.eventhubs.aggregatedcachepressuremonitor/methods/addcachepressuremonitor-orleans-streaming-eventhubs-icachepressuremonitor-7e658d3d/)

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

```csharp
public void AddCachePressureMonitor(ICachePressureMonitor monitor)
```

Add one monitor to this aggregated cache monitor group

### Parameters

- `monitor` (`ICachePressureMonitor`)

## IsUnderPressure(DateTime) {#isunderpressure-system-datetime-94a36dc5}

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

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

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

If any monitor in this aggregated cache monitor group is under pressure, then return true

### Parameters

- `utcNow` (`DateTime`)

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

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

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

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

Record cache pressure to every monitor in this aggregated cache monitor group

### Parameters

- `cachePressureContribution` (`double`)
