SLO & Service Quality/SLO
PUTSLOSince 1.0SynchronousAuth Required
ConfigureQueryTimeout
Configure the VictoriaMetrics query timeout and stale cache fallback policy.
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
configObjectRequiredNew query timeout and fallback configuration to apply.
vmQueryTimeoutMsStringVictoriaMetrics query timeout in milliseconds before fallback is triggered.
Example: 5000
staleDataTtlSecsStringTime-to-live in seconds for stale cached data to be considered valid.
Example: 300
fallbackModeStringFallback strategy when VM is unavailable: stale_cache | last_known_good | conservative_estimate.
Example: stale_cache
Responses
Endpoint
PUT/api/v1/slo/config/query-timeout
/api/v1/slo/config/query-timeout
Request Example
curl -X PUT '{host}/api/v1/slo/config/query-timeout' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"config":{"vmQueryTimeoutMs":5000,"staleDataTtlSecs":300,"fallbackMode":"stale_cache"}}'
Response Example
200{}Change History
This API has no change history records yet.
