v0.1.0 · Interface
compute-runtime
Features for interacting with the Compute runtime.
Functions
F
get-vcpu-ms
FGets the amount of vCPU time that has passed since this sandbox was started, in
get-heap-mib
FGet a snapshot of the current dynamic memory usage, rounded up to the nearest mebibyte (2^20).
get-sandbox-id
FA UUID generated by Fastly for each sandbox.
get-hostname
FThe hostname of the Fastly cache server which is executing the current sandbox, for
get-pop
FThe three-character identifying code of the [Fastly POP] in which the current service
get-region
FA code representing the general geographic region in which the [Fastly POP] processing the
get-cache-generation
FThe current cache generation value for this Fastly service.
get-customer-id
FThe customer ID of the Fastly customer account to which the currently executing Fastly
get-is-staging
FWhether the request is running in the Fastly service's [staging environment].
get-service-id
FThe identifier for the Fastly service that is processing the current request.
get-service-version
FThe version number for the Fastly service that is processing the current request.
get-namespace-id
This function is not suitable for general-purpose use.