Skip to Content
Docs

Check a Rule Before Enabling It

Validation checks whether a rule can be authored. Preview inspects a bounded set of historical observations. Live evaluation tracks state over time and routes notifications. These operations answer different questions.

Validate Before Saving

In the Admin Console, select Review for a chart alert or Review configuration for a threshold template. Resolve validation errors before enabling the rule. Review the condition, scope, destination, and recovery setting.

For a draft you create through the Alerts API, send its configuration to the rule validation endpoint. Confirm that valid is true and every entry in guardRails has ok: true. If a check fails, correct the configuration or required access and run validation again.

Before enabling a metrics rule, check that background metrics access is ready. The Admin Console creates a subscription when you set up a rule from a chart or threshold template. For a rule you create through the API, check that it has a destination subscription. Verify delivery after enabling the rule.

Check Preview Support

Native Object and attachment rules require Solution Metrics early access, including validation and preview requests. An unavailable feature is distinct from an unsupported historical preview.

Rule source Historical preview
Native Object audit activity Supported for eligible queries and observable grouped populations.
AI metrics Supported for eligible metrics and grouping, with windows shorter than 24 hours. A 24h window does not fit in the 24-hour lookback, so preview returns 501.
Platform and agent health metrics Unavailable.
Current-state Native Object values Unavailable; historical current-state reconstruction is not provided.
Current-state attachment values Unavailable. Preview cannot reconstruct historical attachment state.

If your threshold rule uses a source without historical preview, validate the draft and verify live evaluation with controlled test data.

To verify a lifecycle subscription, request an action on a test agent. Look for the request event in alert history and confirm that its notification reaches the destination.

Read Coverage Before Results

Start with the requested and actual time ranges and the number of windows the preview completed. A preview compares observations from selected, complete windows. Review which windows were sampled before drawing conclusions from the breach count or timestamps.

Use the comparison to check whether the threshold matches the observations you expected. Sustained duration, alert state, and notification delivery can only be verified during live evaluation. A window may be omitted, or the source may return no observations. Treat either as missing evidence.

If the preview fails, check the reason in the response before interpreting results. Read the preview endpoint reference for response fields and errors, or troubleshoot an unavailable or incomplete preview.