# RuleView indicates the scope of fields to populate when returning the Rule resource.

| Enums ||
|---|---|
| `RULE_VIEW_UNSPECIFIED` | The default/unset value. The API will default to the BASIC view for ListRules/ListRuleRevisions. The API will default to the FULL view for GetRule. |
| `BASIC` | Include basic metadata about the rule, but not the full contents. Returned fields include: revisionId, revisionCreateTime, displayName, author, severity, type, allowed_run_frequency, nearRealTimeLiveRuleEligible, etag, and scope. This is the default value for ListRules and ListRuleRevisions. |
| `FULL` | Include all fields. This is the default value for GetRule. |
| `REVISION_METADATA_ONLY` | Include basic metadata about the rule's revision only. Returned fields include: revisionId and revisionCreateTime. |
| `CONFIG_ONLY` | Include only the rule's configuration. Returned fields include: displayName, tags, alerting enabled, live mode enabled, and archived. |
| `TRENDS` | Include statistics on detections for the rule along with abridged rule metadata and rule deployment config. Returned fields include: revisionId, revisionCreateTime, displayName, author, severity, type, allowed_run_frequency, nearRealTimeLiveRuleEligible, etag, scope, detectionCount and lastDetectionTime. |