Skip to content
Start here

Rules

List rules in Web Analytics ruleset
client.rum.rules.list(stringrulesetId, RuleListParams { account_id } params, RequestOptionsoptions?): RuleListResponse { rules, ruleset }
GET/accounts/{account_id}/rum/v2/{ruleset_id}/rules
Create a Web Analytics rule
client.rum.rules.create(stringrulesetId, RuleCreateParams { account_id, host, inclusive, 2 more } params, RequestOptionsoptions?): RUMRule { id, created, host, 4 more }
POST/accounts/{account_id}/rum/v2/{ruleset_id}/rule
Update a Web Analytics rule
client.rum.rules.update(stringrulesetId, stringruleId, RuleUpdateParams { account_id, host, inclusive, 2 more } params, RequestOptionsoptions?): RUMRule { id, created, host, 4 more }
PUT/accounts/{account_id}/rum/v2/{ruleset_id}/rule/{rule_id}
Delete a Web Analytics rule
client.rum.rules.delete(stringrulesetId, stringruleId, RuleDeleteParams { account_id } params, RequestOptionsoptions?): RuleDeleteResponse { id }
DELETE/accounts/{account_id}/rum/v2/{ruleset_id}/rule/{rule_id}
Update Web Analytics rules
client.rum.rules.bulkCreate(stringrulesetId, RuleBulkCreateParams { account_id, delete_rules, rules } params, RequestOptionsoptions?): RuleBulkCreateResponse { rules, ruleset }
POST/accounts/{account_id}/rum/v2/{ruleset_id}/rules
ModelsExpand Collapse
RUMRule { id, created, host, 4 more }
id?: string

The Web Analytics rule identifier.

created?: string
formatdate-time
host?: string

The hostname the rule will be applied to.

inclusive?: boolean

Whether the rule includes or excludes traffic from being measured.

is_paused?: boolean

Whether the rule is paused or not.

paths?: Array<string>

The paths the rule will be applied to.

priority?: number
RuleListResponse { rules, ruleset }
rules?: Array<RUMRule { id, created, host, 4 more } >

A list of rules.

id?: string

The Web Analytics rule identifier.

created?: string
formatdate-time
host?: string

The hostname the rule will be applied to.

inclusive?: boolean

Whether the rule includes or excludes traffic from being measured.

is_paused?: boolean

Whether the rule is paused or not.

paths?: Array<string>

The paths the rule will be applied to.

priority?: number
ruleset?: Ruleset { id, enabled, zone_name, zone_tag }
id?: string

The Web Analytics ruleset identifier.

enabled?: boolean

Whether the ruleset is enabled.

zone_name?: string
zone_tag?: string

The zone identifier.

RuleDeleteResponse { id }
id?: string

The Web Analytics rule identifier.

RuleBulkCreateResponse { rules, ruleset }
rules?: Array<RUMRule { id, created, host, 4 more } >

A list of rules.

id?: string

The Web Analytics rule identifier.

created?: string
formatdate-time
host?: string

The hostname the rule will be applied to.

inclusive?: boolean

Whether the rule includes or excludes traffic from being measured.

is_paused?: boolean

Whether the rule is paused or not.

paths?: Array<string>

The paths the rule will be applied to.

priority?: number
ruleset?: Ruleset { id, enabled, zone_name, zone_tag }
id?: string

The Web Analytics ruleset identifier.

enabled?: boolean

Whether the ruleset is enabled.

zone_name?: string
zone_tag?: string

The zone identifier.