# IRPCServerAdmin.EndPerformanceMeasurementsAsJSON

Location: [gRPC API](https://developer.m-files.com/APIs/gRPC-API/index.md) > [Administration API](https://developer.m-files.com/APIs/gRPC-API/admin/index.md) > [Server administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/index.md)

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

Badges: `Administration API / specialized` `admin` `session` `idempotent`

Stops and removes a performance measurement started with
[BeginPerformanceMeasurementsAsJSON](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/BeginPerformanceMeasurementsAsJSON/index.md).

- **Service:** [Server administration](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/index.md) `MFiles.IRPCServerAdmin`
- **gRPC method:** `/MFiles.IRPCServerAdmin/EndPerformanceMeasurementsAsJSON`
- **HTTP (mf-http-grpc):** `POST /grpc/v1/end-performance-measurements-as-json`
- **Request:** [`EndPerformanceMeasurementsAsJSONRequest`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/EndPerformanceMeasurementsAsJSON/index.md#request)
- **Response:** [`EndPerformanceMeasurementsAsJSONResponse`](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/EndPerformanceMeasurementsAsJSON/index.md#response)
- **Book and level:** Administration API, specialized
- **Kind:** admin
- **Session:** Required: the session ID from LogIn in the mfiles-session-id-bin metadata.
- **Idempotent:** yes
- **Returns metadata structure version:** no
- **Streaming:** none (unary)

<a id="remarks"></a>

## Remarks

- Requires a vault session with the vault right `change_full_control_role`, in the session that
  started the measurement.

<a id="request"></a>

## Request: EndPerformanceMeasurementsAsJSONRequest

> Nested message fields are expanded to depth 3; follow a type link for deeper levels and for the type's own page.

| Field | Type | Description |
|---|---|---|
| `background_op_id` | `int32` | The ID returned by [BeginPerformanceMeasurementsAsJSON](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/BeginPerformanceMeasurementsAsJSON/index.md). |

<a id="response"></a>

## Response: EndPerformanceMeasurementsAsJSONResponse

No fields.

<a id="related"></a>

## Related methods

- [BeginPerformanceMeasurementsAsJSON](https://developer.m-files.com/APIs/gRPC-API/Reference/MFiles.IRPCServerAdmin/BeginPerformanceMeasurementsAsJSON/index.md): Starts a database performance measurement in the session's vault and returns its ID.
