# MonitoringContext

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Reference](https://developer.m-files.com/APIs/gRPC-API/Reference/index.md) > [Enums](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/index.md)

HTML version: https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MonitoringContext/

MonitoringContext enumeration.

- **Full name:** `MFiles.MonitoringContext`
- **Proto file:** [`mfiles/enums.proto`](https://developer.m-files.com/APIs/gRPC-API/downloads/proto/mfiles/enums.proto)

<a id="values"></a>

## Values

| Name | Number | Description |
|---|---|---|
| <a id="v-MONITORING_CONTEXT_UNSPECIFIED"></a>`MONITORING_CONTEXT_UNSPECIFIED` | 0 | Unknown monitoring context. |
| <a id="v-MONITORING_CONTEXT_INDEXING"></a>`MONITORING_CONTEXT_INDEXING` | 1 | Monitoring context for indexing. |

<a id="used-by-methods"></a>

## Used by methods

- [IRPCMonitoringStatus.GetActiveNotifications](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringStatus/GetActiveNotifications/index.md): Gets the active indexing notifications of the vault, such as "re-indexing required" or "rebuild in progress", combined over all indexes.
- [IRPCMonitoringStatus.GetIndicatorSources](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringStatus/GetIndicatorSources/index.md): Lists the monitoring sources of the vault, for indexing one source per index and partition.

<a id="used-in-fields"></a>

## Used in fields

- [`MonitoringSource.context`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MonitoringSource/index.md#f-context): The context of the monitoring source.
- [`GetIndicatorSourcesRequest.context`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringStatus/GetIndicatorSources/index.md#request): Set `MONITORING_CONTEXT_INDEXING`.
- [`GetActiveNotificationsRequest.context`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringStatus/GetActiveNotifications/index.md#request): Set `MONITORING_CONTEXT_INDEXING`.
