---
title: compute_runtime
summary: Functions for interacting with the runtime of the Compute service.
url: https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/
---

**Kind:** Module  
**Package:** fastly 0.13.1  
**Path:** `fastly::compute_runtime`

Functions for interacting with the runtime of the Compute service.

## Functions

| Name | Summary |
| --- | --- |
| [cache_generation](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.cache_generation/) | The current cache identifier for this Fastly service. |
| [customer_id](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.customer_id/) | The customer ID of the Fastly customer account to which the currently executing service belongs. |
| [elapsed_vcpu_ms](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.elapsed_vcpu_ms/) | Get the amount of vCPU time that has passed since this instance was started, in milliseconds. |
| [heap_memory_snapshot_mib](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.heap_memory_snapshot_mib/) | Get the current dynamic memory usage of this sandbox, rounded up to the nearest mebibyte (2^20 bytes). |
| [hostname](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.hostname/) | The hostname of the Fastly cache server which is executing the current instance, for example, `cache-jfk1034`. |
| [is_staging](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.is_staging/) | Whether the request is running in the service's [staging environment]. |
| [pop](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.pop/) | The three-character identifying code of the [Fastly POP] in which the current instance is running. |
| [region](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.region/) | A code representing the general region of the world in which the [Fastly POP] processing the current Compute instance resides. |
| [sandbox_id](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.sandbox_id/) | A UUID generated by Fastly for each sandbox. |
| [service_id](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.service_id/) | The identifier for the Fastly service that is processing the current request. |
| [service_version](https://www.fastly.com/documentation/reference/compute/sdks/rust/fastly/compute_runtime/fn.service_version/) | The version number for the Fastly service that is processing the current request. |
