CreateWarmupRule
Create a new cache warmup rule defining which queries to pre-warm
Execution Availability
Try It Out
Submit a mock request using the current auth context and example-driven inputs.
Request Inputs
Body Fields
nameStringRequiredDisplay name for the new warmup rule
Example: Nightly Warmup
enabledBooleanRequiredWhether to enable this rule immediately upon creation
Example: true
queriesListRequiredQueries for this resource
Example: (nested array)
metricStringName of the metric to pre-warm in cache
Example: cpu_usage_percent
aggregationStringAggregation function to use (e.g. avg, max, sum)
Example: avg
timeRangeStringTime range for the warmup query (e.g. 1h, 24h)
Example: 1h
priorityIntegerExecution priority; lower value means higher priority
Example: 1
triggerStringRequiredTrigger type for this rule (e.g. schedule, event)
Example: schedule
priorityIntegerRequiredExecution priority for this rule relative to others
Example: 1
Responses
Endpoint
POST/api/v1/monitoring/cache/warmup-rules
/api/v1/monitoring/cache/warmup-rules
Request Example
curl -X POST '{host}/api/v1/monitoring/cache/warmup-rules' -H 'Authorization: Bearer {token}' -H 'Content-Type: application/json' -d '{"name":"Nightly Warmup","enabled":true,"queries":"(nested array)","trigger":"schedule","priority":1}'
Response Example
200{
"uuid": "rule-001-abc",
"name": "Peak Hour Warmup",
"enabled": true,
"queries": [
{}
],
"trigger": "schedule",
"createDate": "example"
}Change History
This API has no change history records yet.
