๐ง Azure Redis Cache has no cache lookups for 30 days - prod.logic.yaml๐ข
- Contextual name: ๐ง prod.logic.yaml๐ข
- ID:
/ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/prod.logic.yaml - Tags:
- ๐ข Logic test success
- ๐ข Logic with extracts
- ๐ข Logic with test data
Usesโ
Test Results ๐ขโ
Generated at: 2026-09-22T15:06:44.589623165Z Open
| Result | Id | Condition Index | Condition Text | Runtime 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โ
| File | MD5 | |
|---|---|---|
| Open | /ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/policy.yaml | AAB49775FBDB373875173594DF6872B7 |
| Open | /ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/prod.logic.yaml | 8B652B3713EF2C3ACD06B44A9B05EC0A |
| Open | /ce/ca/azure/redis-cache/no-cache-lookups-in-30-days/test-data.json | 411B907E9E98C7D38CB2981AEB7033E9 |
| Open | /types/CA10__CaAzureRedisCache__c/object.extracts.yaml | 93FACD1B7F0FCB3FA63A2BD27529F3F7 |
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โ
---
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."