Get server cache metrics
Returns time-series PHP cache usage ratios (0.0-1.0) for OPcache memory, OPcache interned strings buffer (ISB), APCu memory, realpath cache, and PCRE cache. Includes hit rate ratios (0.0-1.0) for APCu and OPcache. Each data point contains timestamp and optional data fields. Fields are omitted for timestamps with no data - this indicates no data was received. Filtered by agent ID and execution contexts (web, cli, etc.).
Authorizations
Bearer authentication header of the form Bearer <token>, where <token> is your auth token.
Path Parameters
The unique identifier of the Upsun project
[a-z0-9]+"abc123def456"
The environment identifier
.+"main"
Query Parameters
Start timestamp for the time range (Unix timestamp in seconds)
1704067200
End timestamp for the time range (Unix timestamp in seconds)
1704153600
Granularity of data points in seconds. Auto-calculated if omitted.
10
Filter by execution contexts. Defaults to ["web"] with additive mode when neither contexts nor contexts_mode is specified.
web, cli Filter mode for contexts parameter. "1" (additive, default) includes only specified contexts. "-1" (subtractive) excludes specified contexts and includes all others. When neither contexts nor contexts_mode is specified, defaults to "1" (additive) with contexts=["web"].
1, -1 "1"
Filter by application names
Filter mode for applications parameter. "1" (additive) includes only specified applications. "-1" (subtractive) excludes specified applications and includes all others. When omitted: defaults to "-1" if no applications values are provided; defaults to "1" (additive) if at least one applications value is provided.
1, -1 "1"
Filter by instance names
Filter mode for instances parameter. "1" (additive) includes only specified instances. "-1" (subtractive) excludes specified instances and includes all others. When omitted: defaults to "-1" if no instances values are provided; defaults to "1" (additive) if at least one instances value is provided.
1, -1 "1"
Cost distribution dimension for server load distribution.
wt, pmu Response
PHP server cache metrics retrieved successfully
Data granularity in seconds
5
Query start timestamp
1704067200
Query end timestamp
1704153600
Blackfire Agent UUID
"a38f69ca-3b56-4ea6-beac-272b2568164a"
Project identifier
"abc123def456"
Environment identifier
"main"
Branch machine name
"main-bvxea6i"
Applied distribution cost dimension (wt=wall time, pmu=peak memory usage)
wt, pmu Time-series cache usage metrics. Each data point contains timestamp and optional data fields. Fields are omitted for timestamps with no data - this indicates no data was received.
Applied context filter values
Context filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied application filter values
Application filter mode (additive=include only, subtractive=exclude)
additive, subtractive Applied instance filter values
Instance filter mode (additive=include only, subtractive=exclude)
additive, subtractive