Skip to main content

๐Ÿง  Azure Redis Cache has no cache lookups for 30 days - prod.logic.yaml๐ŸŸข

Usesโ€‹

Test Results ๐ŸŸขโ€‹

Generated at: 2026-09-22T15:06:44.589623165Z Open

ResultIdCondition IndexCondition TextRuntime Error
๐ŸŸขgoneโœ”๏ธ 99โœ”๏ธ isDisappeared(CA10__disappearanceTime__c)โœ”๏ธ null
๐ŸŸขmissing-stateโœ”๏ธ 199โœ”๏ธ extract('CA10__provisioningState__c').isEmpty()โœ”๏ธ null
๐ŸŸขcreatingโœ”๏ธ 299โœ”๏ธ extract('CA10__provisioningState__c') != 'Succeeded'โœ”๏ธ null
๐ŸŸขmissing-metricโœ”๏ธ 399โœ”๏ธ extract('CA10__monitorCacheHitsSum30Day__c').isEmpty() || extract('CA10__monitorCacheMissesSum30Day__c').isEmpty()โœ”๏ธ null
๐ŸŸขno-lookupsโœ”๏ธ 499โœ”๏ธ extract('CA10__monitorCacheHitsSum30Day__c') == number(0.0) && extract('CA10__monitorCacheMissesSum30Day__c') == number(0.0)โœ”๏ธ null
๐ŸŸขactiveโœ”๏ธ 500โœ”๏ธ otherwiseโœ”๏ธ null

Generation Bundleโ€‹

FileMD5
Open/ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/policy.yamlAAB49775FBDB373875173594DF6872B7
Open/ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/prod.logic.yaml8B652B3713EF2C3ACD06B44A9B05EC0A
Open/ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/test-data.json411B907E9E98C7D38CB2981AEB7033E9
Open/types/CA10__CaAzureRedisCache__c/object.extracts.yaml93FACD1B7F0FCB3FA63A2BD27529F3F7

Available Commandsโ€‹

repo-manager policies generate FULL /ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/prod.logic.yaml
repo-manager policies generate DEBUG /ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/prod.logic.yaml
repo-manager policies generate CAPTURE_TEST_DATA /ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/prod.logic.yaml
repo-manager policies generate TESTS /ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/prod.logic.yaml
# Execute tests
repo-manager policies test /ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/prod.logic.yaml

Contentโ€‹

Open File

---
inputType: "CA10__CaAzureRedisCache__c"
testData:
- file: "test-data.json"
importExtracts:
- file: "/types/CA10__CaAzureRedisCache__c/object.extracts.yaml"
conditions:
- status: "UNDETERMINED"
currentStateMessage: "Provisioning state is unavailable."
check:
IS_EMPTY:
arg:
EXTRACT: "CA10__provisioningState__c"
- status: "INAPPLICABLE"
currentStateMessage: "The Redis cache is not successfully provisioned."
check:
NOT_EQUAL:
left:
EXTRACT: "CA10__provisioningState__c"
right:
TEXT: "Succeeded"
- status: "UNDETERMINED"
currentStateMessage: "The 30-day cache-hit or cache-miss metric is unavailable."
check:
OR:
args:
- IS_EMPTY:
arg:
EXTRACT: "CA10__monitorCacheHitsSum30Day__c"
- IS_EMPTY:
arg:
EXTRACT: "CA10__monitorCacheMissesSum30Day__c"
- status: "INCOMPLIANT"
currentStateMessage: "No cache hits or misses were recorded during the last 30 days."
remediationMessage: "Review non-cache Redis usage and workload ownership before resizing or removing the cache."
check:
AND:
args:
- IS_EQUAL:
left:
EXTRACT: "CA10__monitorCacheHitsSum30Day__c"
right:
NUMBER: 0.0
- IS_EQUAL:
left:
EXTRACT: "CA10__monitorCacheMissesSum30Day__c"
right:
NUMBER: 0.0
otherwise:
status: "COMPLIANT"
currentStateMessage: "The Redis cache recorded cache hits or misses during the last 30 days."