Skip to content
Start here

Rules

List rules in Web Analytics ruleset
client.RUM.Rules.List(ctx, rulesetID, query) (*RuleListResponse, error)
GET/accounts/{account_id}/rum/v2/{ruleset_id}/rules
Create a Web Analytics rule
client.RUM.Rules.New(ctx, rulesetID, params) (*RUMRule, error)
POST/accounts/{account_id}/rum/v2/{ruleset_id}/rule
Update a Web Analytics rule
client.RUM.Rules.Update(ctx, rulesetID, ruleID, params) (*RUMRule, error)
PUT/accounts/{account_id}/rum/v2/{ruleset_id}/rule/{rule_id}
Delete a Web Analytics rule
client.RUM.Rules.Delete(ctx, rulesetID, ruleID, body) (*RuleDeleteResponse, error)
DELETE/accounts/{account_id}/rum/v2/{ruleset_id}/rule/{rule_id}
Update Web Analytics rules
client.RUM.Rules.BulkNew(ctx, rulesetID, params) (*RuleBulkNewResponse, error)
POST/accounts/{account_id}/rum/v2/{ruleset_id}/rules
ModelsExpand Collapse
type RUMRule struct{…}
ID stringoptional

The Web Analytics rule identifier.

Created Timeoptional
formatdate-time
Host stringoptional

The hostname the rule will be applied to.

Inclusive booloptional

Whether the rule includes or excludes traffic from being measured.

IsPaused booloptional

Whether the rule is paused or not.

Paths []stringoptional

The paths the rule will be applied to.

Priority float64optional