# MonitoringSource

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) > [Messages](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/index.md)

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

Struct for a monitoring source for indexing.

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

<a id="fields"></a>

## Fields

| Field | Type | Number | Description |
|---|---|---|---|
| <a id="f-context"></a>`context` | [`MonitoringContext`](https://developer.m-files.com/APIs/gRPC-API/Reference/Enums/MFiles.MonitoringContext/index.md) | 1 | The context of the monitoring source. Values: `MONITORING_CONTEXT_UNSPECIFIED` (0), `MONITORING_CONTEXT_INDEXING` (1). |
| <a id="f-descriptors"></a>`descriptors` | repeated [`TaggedValue`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.TaggedValue/index.md) | 2 | The descriptors of the monitoring source as a tagged value array. |

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

## Used by methods

- [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.
- [IRPCMonitoringStatus.GetIndicators](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringStatus/GetIndicators/index.md): Gets the indicator values of the vault's monitoring sources, optionally for one source.

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

## Used in fields

- [`MonitoringIndicatorData.source`](https://developer.m-files.com/APIs/gRPC-API/Reference/Messages/MFiles.MonitoringIndicatorData/index.md#f-source): Indicator data source.
- [`GetIndicatorSourcesResponse.sources`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringStatus/GetIndicatorSources/index.md#response): The sources. Pass one as `source_filter` to [GetIndicators](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringStatus/GetIndicators/index.md).
- [`GetIndicatorsRequest.source_filter`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringStatus/GetIndicators/index.md#request): The context and, optionally, descriptors (as returned by [GetIndicatorSources](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCMonitoringStatus/GetIndicatorSources/index.md)) that select the sources.
