Skip to content
Start here

RUM

RUMSite Info

List Web Analytics sites
client.RUM.SiteInfo.List(ctx, params) (*V4PagePaginationArray[Site], error)
GET/accounts/{account_id}/rum/site_info/list
Get a Web Analytics site
client.RUM.SiteInfo.Get(ctx, siteID, query) (*Site, error)
GET/accounts/{account_id}/rum/site_info/{site_id}
Create a Web Analytics site
client.RUM.SiteInfo.New(ctx, params) (*Site, error)
POST/accounts/{account_id}/rum/site_info
Update a Web Analytics site
client.RUM.SiteInfo.Update(ctx, siteID, params) (*Site, error)
PUT/accounts/{account_id}/rum/site_info/{site_id}
Delete a Web Analytics site
client.RUM.SiteInfo.Delete(ctx, siteID, body) (*SiteInfoDeleteResponse, error)
DELETE/accounts/{account_id}/rum/site_info/{site_id}
ModelsExpand Collapse
type Site struct{…}
AutoInstall booloptional

If enabled, the JavaScript snippet is automatically injected for orange-clouded sites.

Created Timeoptional
formatdate-time
Rules []RUMRuleoptional

A list of rules.

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
Ruleset SiteRulesetoptional
ID stringoptional

The Web Analytics ruleset identifier.

Enabled booloptional

Whether the ruleset is enabled.

ZoneName stringoptional
ZoneTag stringoptional

The zone identifier.

SiteTag stringoptional

The Web Analytics site identifier.

SiteToken stringoptional

The Web Analytics site token.

Snippet stringoptional

Encoded JavaScript snippet.

RUMRules

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