get_rule_trends
Track daily rule creation trends over the last 30 days or selected period, scoped by box or group, to monitor Firewalla rule activity.
Instructions
Rules created per day for the last 30 days, one point per day, the last being today so far; period (default 30d) returns the days that overlap it. Without a box it is GET /v2/trends/rules covering every box, or the box group. When that endpoint answers 400 (it did when measured), each day counts the rules in GET /v2/rules created on it, on the days of GET /v2/trends/alarms (UTC days if that read fails): 3 requests, 4 with group. That endpoint takes no box, so with box (else FIREWALLA_BOX_ID, unless group is given) the rules of the box are counted that way: 2 requests. Rules deleted since are not counted, and the response says how the days were counted. box and group cannot be combined.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| box | No | Only rules of this box (box gid), counted from GET /v2/rules: 2 requests. Defaults to FIREWALLA_BOX_ID unless group is given; without either, every box. Not with group | |
| group | No | Get trends for a specific box group. Takes precedence over FIREWALLA_BOX_ID; not with box | |
| period | No | Return the days that overlap this period (default: 30d). The API has no finer resolution than a day | 30d |
| response_format | No | Response format. 'json' (default): the compact JSON response. 'markdown': the same response as readable markdown, its fields as bullet lists and each list of records as a table of up to 8 columns and DEFAULT_PAGE_SIZE rows (default 100), ending with a line that says what the view leaves out. Omitted or null: 'json'. Errors are JSON either way. | json |