---
title: CtxSwitchesStat type | Wartiva GraphQL API
description: Represents context switch statistics for a process. Wartiva GraphQL API reference with arguments, fields, and examples.
url: https://wartiva.com/api-docs/types/ctx-switches-stat.html
updated: 2026-10-07
---

Endpoint configuration · GraphQL type

# `CtxSwitchesStat` type

Represents context switch statistics for a process.

## Fields

| Field Name | Description |
|---|---|
| `voluntary` - [`Int64!`](https://wartiva.com/api-docs/types/int64.html) | The number of voluntary context switches. |
| `involuntary` - [`Int64!`](https://wartiva.com/api-docs/types/int64.html) | The number of involuntary context switches. |

## Used by

- [`ProcessLinux`](https://wartiva.com/api-docs/types/process-linux.html) type: Linux O/S specific process information.

## Example

### Example

```json
{
  "voluntary": "-8589934592",
  "involuntary": "-8589934592"
}

```

---

Wartiva is in early access. Request access: https://wartiva.com/early-access.html  
All pages: https://wartiva.com/llms.txt
