Speed
ModelsExpand Collapse
type LighthouseReport struct{…}The Lighthouse report.
type LighthouseReport struct{…}
The Lighthouse report.
SpeedSchedule
Get a page test schedule
client.Speed.Schedule.Get(ctx, url, params) (*Schedule, error)
GET/zones/{zone_id}/speed_api/schedule/{url}
Create scheduled page test
client.Speed.Schedule.New(ctx, url, params) (*ScheduleNewResponse, error)
POST/zones/{zone_id}/speed_api/schedule/{url}
Delete scheduled page test
client.Speed.Schedule.Delete(ctx, url, params) (*ScheduleDeleteResponse, error)
DELETE/zones/{zone_id}/speed_api/schedule/{url}
SpeedAvailabilities
Get quota and availability
client.Speed.Availabilities.List(ctx, query) (*Availability, error)
GET/zones/{zone_id}/speed_api/availabilities
ModelsExpand Collapse
type Availability struct{…}
type Availability struct{…}
Quota AvailabilityQuotaoptional
Quota AvailabilityQuotaoptional
RegionsPerPlan AvailabilityRegionsPerPlanoptionalAvailable regions.
RegionsPerPlan AvailabilityRegionsPerPlanoptional
Available regions.
SpeedPages
List tested webpages
client.Speed.Pages.List(ctx, query) (*SinglePage[PageListResponse], error)
GET/zones/{zone_id}/speed_api/pages
List core web vital metrics trend
client.Speed.Pages.Trend(ctx, url, params) (*Trend, error)
GET/zones/{zone_id}/speed_api/pages/{url}/trend
SpeedPagesTests
List page test history
client.Speed.Pages.Tests.List(ctx, url, params) (*V4PagePaginationArray[Test], error)
GET/zones/{zone_id}/speed_api/pages/{url}/tests
Get a page test result
client.Speed.Pages.Tests.Get(ctx, url, testID, query) (*Test, error)
GET/zones/{zone_id}/speed_api/pages/{url}/tests/{test_id}
Start page test
client.Speed.Pages.Tests.New(ctx, url, params) (*Test, error)
POST/zones/{zone_id}/speed_api/pages/{url}/tests
Delete all page tests
client.Speed.Pages.Tests.Delete(ctx, url, params) (*PageTestDeleteResponse, error)
DELETE/zones/{zone_id}/speed_api/pages/{url}/tests