Documentation ¶
Index ¶
- func CdnClientBuilder() *httpclient.HcHttpClientBuilder
- func GenReqDefForBatchCopyDomain() *def.HttpRequestDef
- func GenReqDefForCreatePreheatingTasks() *def.HttpRequestDef
- func GenReqDefForCreateRefreshTasks() *def.HttpRequestDef
- func GenReqDefForDownloadRegionCarrierExcel() *def.HttpRequestDef
- func GenReqDefForDownloadStatisticsExcel() *def.HttpRequestDef
- func GenReqDefForListCdnDomainTopRefers() *def.HttpRequestDef
- func GenReqDefForListDomains() *def.HttpRequestDef
- func GenReqDefForSetChargeModes() *def.HttpRequestDef
- func GenReqDefForShowBandwidthCalc() *def.HttpRequestDef
- func GenReqDefForShowChargeModes() *def.HttpRequestDef
- func GenReqDefForShowDomainDetailByName() *def.HttpRequestDef
- func GenReqDefForShowDomainFullConfig() *def.HttpRequestDef
- func GenReqDefForShowDomainLocationStats() *def.HttpRequestDef
- func GenReqDefForShowDomainStats() *def.HttpRequestDef
- func GenReqDefForShowHistoryTaskDetails() *def.HttpRequestDef
- func GenReqDefForShowHistoryTasks() *def.HttpRequestDef
- func GenReqDefForShowTopDomainNames() *def.HttpRequestDef
- func GenReqDefForShowTopUrl() *def.HttpRequestDef
- func GenReqDefForShowUrlTaskInfo() *def.HttpRequestDef
- func GenReqDefForUpdateDomainFullConfig() *def.HttpRequestDef
- type BatchCopyDomainInvoker
- type CdnClient
- func (c *CdnClient) BatchCopyDomain(request *model.BatchCopyDomainRequest) (*model.BatchCopyDomainResponse, error)
- func (c *CdnClient) BatchCopyDomainInvoker(request *model.BatchCopyDomainRequest) *BatchCopyDomainInvoker
- func (c *CdnClient) CreatePreheatingTasks(request *model.CreatePreheatingTasksRequest) (*model.CreatePreheatingTasksResponse, error)
- func (c *CdnClient) CreatePreheatingTasksInvoker(request *model.CreatePreheatingTasksRequest) *CreatePreheatingTasksInvoker
- func (c *CdnClient) CreateRefreshTasks(request *model.CreateRefreshTasksRequest) (*model.CreateRefreshTasksResponse, error)
- func (c *CdnClient) CreateRefreshTasksInvoker(request *model.CreateRefreshTasksRequest) *CreateRefreshTasksInvoker
- func (c *CdnClient) DownloadRegionCarrierExcel(request *model.DownloadRegionCarrierExcelRequest) (*model.DownloadRegionCarrierExcelResponse, error)deprecated
- func (c *CdnClient) DownloadRegionCarrierExcelInvoker(request *model.DownloadRegionCarrierExcelRequest) *DownloadRegionCarrierExcelInvokerdeprecated
- func (c *CdnClient) DownloadStatisticsExcel(request *model.DownloadStatisticsExcelRequest) (*model.DownloadStatisticsExcelResponse, error)deprecated
- func (c *CdnClient) DownloadStatisticsExcelInvoker(request *model.DownloadStatisticsExcelRequest) *DownloadStatisticsExcelInvokerdeprecated
- func (c *CdnClient) ListCdnDomainTopRefers(request *model.ListCdnDomainTopRefersRequest) (*model.ListCdnDomainTopRefersResponse, error)
- func (c *CdnClient) ListCdnDomainTopRefersInvoker(request *model.ListCdnDomainTopRefersRequest) *ListCdnDomainTopRefersInvoker
- func (c *CdnClient) ListDomains(request *model.ListDomainsRequest) (*model.ListDomainsResponse, error)
- func (c *CdnClient) ListDomainsInvoker(request *model.ListDomainsRequest) *ListDomainsInvoker
- func (c *CdnClient) SetChargeModes(request *model.SetChargeModesRequest) (*model.SetChargeModesResponse, error)
- func (c *CdnClient) SetChargeModesInvoker(request *model.SetChargeModesRequest) *SetChargeModesInvoker
- func (c *CdnClient) ShowBandwidthCalc(request *model.ShowBandwidthCalcRequest) (*model.ShowBandwidthCalcResponse, error)deprecated
- func (c *CdnClient) ShowBandwidthCalcInvoker(request *model.ShowBandwidthCalcRequest) *ShowBandwidthCalcInvokerdeprecated
- func (c *CdnClient) ShowChargeModes(request *model.ShowChargeModesRequest) (*model.ShowChargeModesResponse, error)
- func (c *CdnClient) ShowChargeModesInvoker(request *model.ShowChargeModesRequest) *ShowChargeModesInvoker
- func (c *CdnClient) ShowDomainDetailByName(request *model.ShowDomainDetailByNameRequest) (*model.ShowDomainDetailByNameResponse, error)
- func (c *CdnClient) ShowDomainDetailByNameInvoker(request *model.ShowDomainDetailByNameRequest) *ShowDomainDetailByNameInvoker
- func (c *CdnClient) ShowDomainFullConfig(request *model.ShowDomainFullConfigRequest) (*model.ShowDomainFullConfigResponse, error)
- func (c *CdnClient) ShowDomainFullConfigInvoker(request *model.ShowDomainFullConfigRequest) *ShowDomainFullConfigInvoker
- func (c *CdnClient) ShowDomainLocationStats(request *model.ShowDomainLocationStatsRequest) (*model.ShowDomainLocationStatsResponse, error)
- func (c *CdnClient) ShowDomainLocationStatsInvoker(request *model.ShowDomainLocationStatsRequest) *ShowDomainLocationStatsInvoker
- func (c *CdnClient) ShowDomainStats(request *model.ShowDomainStatsRequest) (*model.ShowDomainStatsResponse, error)
- func (c *CdnClient) ShowDomainStatsInvoker(request *model.ShowDomainStatsRequest) *ShowDomainStatsInvoker
- func (c *CdnClient) ShowHistoryTaskDetails(request *model.ShowHistoryTaskDetailsRequest) (*model.ShowHistoryTaskDetailsResponse, error)
- func (c *CdnClient) ShowHistoryTaskDetailsInvoker(request *model.ShowHistoryTaskDetailsRequest) *ShowHistoryTaskDetailsInvoker
- func (c *CdnClient) ShowHistoryTasks(request *model.ShowHistoryTasksRequest) (*model.ShowHistoryTasksResponse, error)
- func (c *CdnClient) ShowHistoryTasksInvoker(request *model.ShowHistoryTasksRequest) *ShowHistoryTasksInvoker
- func (c *CdnClient) ShowTopDomainNames(request *model.ShowTopDomainNamesRequest) (*model.ShowTopDomainNamesResponse, error)deprecated
- func (c *CdnClient) ShowTopDomainNamesInvoker(request *model.ShowTopDomainNamesRequest) *ShowTopDomainNamesInvokerdeprecated
- func (c *CdnClient) ShowTopUrl(request *model.ShowTopUrlRequest) (*model.ShowTopUrlResponse, error)
- func (c *CdnClient) ShowTopUrlInvoker(request *model.ShowTopUrlRequest) *ShowTopUrlInvoker
- func (c *CdnClient) ShowUrlTaskInfo(request *model.ShowUrlTaskInfoRequest) (*model.ShowUrlTaskInfoResponse, error)
- func (c *CdnClient) ShowUrlTaskInfoInvoker(request *model.ShowUrlTaskInfoRequest) *ShowUrlTaskInfoInvoker
- func (c *CdnClient) UpdateDomainFullConfig(request *model.UpdateDomainFullConfigRequest) (*model.UpdateDomainFullConfigResponse, error)
- func (c *CdnClient) UpdateDomainFullConfigInvoker(request *model.UpdateDomainFullConfigRequest) *UpdateDomainFullConfigInvoker
- type CreatePreheatingTasksInvoker
- type CreateRefreshTasksInvoker
- type DownloadRegionCarrierExcelInvoker
- type DownloadStatisticsExcelInvoker
- type ListCdnDomainTopRefersInvoker
- type ListDomainsInvoker
- type SetChargeModesInvoker
- type ShowBandwidthCalcInvoker
- type ShowChargeModesInvoker
- type ShowDomainDetailByNameInvoker
- type ShowDomainFullConfigInvoker
- type ShowDomainLocationStatsInvoker
- type ShowDomainStatsInvoker
- type ShowHistoryTaskDetailsInvoker
- type ShowHistoryTasksInvoker
- type ShowTopDomainNamesInvoker
- type ShowTopUrlInvoker
- type ShowUrlTaskInfoInvoker
- type UpdateDomainFullConfigInvoker
Constants ¶
This section is empty.
Variables ¶
This section is empty.
Functions ¶
func CdnClientBuilder ¶
func CdnClientBuilder() *httpclient.HcHttpClientBuilder
func GenReqDefForBatchCopyDomain ¶ added in v0.1.12
func GenReqDefForBatchCopyDomain() *def.HttpRequestDef
func GenReqDefForCreatePreheatingTasks ¶ added in v0.1.63
func GenReqDefForCreatePreheatingTasks() *def.HttpRequestDef
func GenReqDefForCreateRefreshTasks ¶ added in v0.1.63
func GenReqDefForCreateRefreshTasks() *def.HttpRequestDef
func GenReqDefForDownloadRegionCarrierExcel ¶ added in v0.1.10
func GenReqDefForDownloadRegionCarrierExcel() *def.HttpRequestDef
func GenReqDefForDownloadStatisticsExcel ¶ added in v0.1.10
func GenReqDefForDownloadStatisticsExcel() *def.HttpRequestDef
func GenReqDefForListCdnDomainTopRefers ¶ added in v0.1.78
func GenReqDefForListCdnDomainTopRefers() *def.HttpRequestDef
func GenReqDefForListDomains ¶ added in v0.1.32
func GenReqDefForListDomains() *def.HttpRequestDef
func GenReqDefForSetChargeModes ¶ added in v0.1.10
func GenReqDefForSetChargeModes() *def.HttpRequestDef
func GenReqDefForShowBandwidthCalc ¶ added in v0.1.10
func GenReqDefForShowBandwidthCalc() *def.HttpRequestDef
func GenReqDefForShowChargeModes ¶ added in v0.1.10
func GenReqDefForShowChargeModes() *def.HttpRequestDef
func GenReqDefForShowDomainDetailByName ¶ added in v0.1.32
func GenReqDefForShowDomainDetailByName() *def.HttpRequestDef
func GenReqDefForShowDomainFullConfig ¶ added in v0.1.37
func GenReqDefForShowDomainFullConfig() *def.HttpRequestDef
func GenReqDefForShowDomainLocationStats ¶
func GenReqDefForShowDomainLocationStats() *def.HttpRequestDef
func GenReqDefForShowDomainStats ¶
func GenReqDefForShowDomainStats() *def.HttpRequestDef
func GenReqDefForShowHistoryTaskDetails ¶ added in v0.1.63
func GenReqDefForShowHistoryTaskDetails() *def.HttpRequestDef
func GenReqDefForShowHistoryTasks ¶ added in v0.1.63
func GenReqDefForShowHistoryTasks() *def.HttpRequestDef
func GenReqDefForShowTopDomainNames ¶ added in v0.1.10
func GenReqDefForShowTopDomainNames() *def.HttpRequestDef
func GenReqDefForShowTopUrl ¶
func GenReqDefForShowTopUrl() *def.HttpRequestDef
func GenReqDefForShowUrlTaskInfo ¶ added in v0.1.63
func GenReqDefForShowUrlTaskInfo() *def.HttpRequestDef
func GenReqDefForUpdateDomainFullConfig ¶ added in v0.1.37
func GenReqDefForUpdateDomainFullConfig() *def.HttpRequestDef
Types ¶
type BatchCopyDomainInvoker ¶ added in v0.1.12
type BatchCopyDomainInvoker struct {
*invoker.BaseInvoker
}
func (*BatchCopyDomainInvoker) Invoke ¶ added in v0.1.12
func (i *BatchCopyDomainInvoker) Invoke() (*model.BatchCopyDomainResponse, error)
type CdnClient ¶
type CdnClient struct {
HcClient *httpclient.HcHttpClient
}
func NewCdnClient ¶
func NewCdnClient(hcClient *httpclient.HcHttpClient) *CdnClient
func (*CdnClient) BatchCopyDomain ¶ added in v0.1.12
func (c *CdnClient) BatchCopyDomain(request *model.BatchCopyDomainRequest) (*model.BatchCopyDomainResponse, error)
BatchCopyDomain 批量域名复制
批量域名复制接口。
> 将某个加速域名的配置批量复制到其他域名。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) BatchCopyDomainInvoker ¶ added in v0.1.12
func (c *CdnClient) BatchCopyDomainInvoker(request *model.BatchCopyDomainRequest) *BatchCopyDomainInvoker
BatchCopyDomainInvoker 批量域名复制
func (*CdnClient) CreatePreheatingTasks ¶ added in v0.1.63
func (c *CdnClient) CreatePreheatingTasks(request *model.CreatePreheatingTasksRequest) (*model.CreatePreheatingTasksResponse, error)
CreatePreheatingTasks 创建预热缓存任务
创建预热任务。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) CreatePreheatingTasksInvoker ¶ added in v0.1.63
func (c *CdnClient) CreatePreheatingTasksInvoker(request *model.CreatePreheatingTasksRequest) *CreatePreheatingTasksInvoker
CreatePreheatingTasksInvoker 创建预热缓存任务
func (*CdnClient) CreateRefreshTasks ¶ added in v0.1.63
func (c *CdnClient) CreateRefreshTasks(request *model.CreateRefreshTasksRequest) (*model.CreateRefreshTasksResponse, error)
CreateRefreshTasks 创建刷新缓存任务
创建刷新缓存任务。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) CreateRefreshTasksInvoker ¶ added in v0.1.63
func (c *CdnClient) CreateRefreshTasksInvoker(request *model.CreateRefreshTasksRequest) *CreateRefreshTasksInvoker
CreateRefreshTasksInvoker 创建刷新缓存任务
func (*CdnClient) DownloadRegionCarrierExcel
deprecated
added in
v0.1.10
func (c *CdnClient) DownloadRegionCarrierExcel(request *model.DownloadRegionCarrierExcelRequest) (*model.DownloadRegionCarrierExcelResponse, error)
Deprecated: This function is deprecated and will be removed in the future versions. DownloadRegionCarrierExcel 下载区域运营商指标数据表格文件
- 下载区域运营商指标数据表格文件。
- 支持下载90天内的指标数据表格。
- 时间跨度不能超过31天。
- 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
- 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
- 单租户调用频率:10次/min。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) DownloadRegionCarrierExcelInvoker
deprecated
added in
v0.1.10
func (c *CdnClient) DownloadRegionCarrierExcelInvoker(request *model.DownloadRegionCarrierExcelRequest) *DownloadRegionCarrierExcelInvoker
Deprecated: This function is deprecated and will be removed in the future versions. DownloadRegionCarrierExcelInvoker 下载区域运营商指标数据表格文件
func (*CdnClient) DownloadStatisticsExcel
deprecated
added in
v0.1.10
func (c *CdnClient) DownloadStatisticsExcel(request *model.DownloadStatisticsExcelRequest) (*model.DownloadStatisticsExcelResponse, error)
Deprecated: This function is deprecated and will be removed in the future versions. DownloadStatisticsExcel 下载统计指标数据表格文件
- 下载统计指标数据表格文件。
- 支持下载90天内的指标数据。
- 时间跨度不能超过31天。
- 起始时间和结束时间,左闭右开。如时间跨度为2022-10-24 00:00:00 到 2022-10-25 00:00:00,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
- 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
- 单租户调用频率:10次/min。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) DownloadStatisticsExcelInvoker
deprecated
added in
v0.1.10
func (c *CdnClient) DownloadStatisticsExcelInvoker(request *model.DownloadStatisticsExcelRequest) *DownloadStatisticsExcelInvoker
Deprecated: This function is deprecated and will be removed in the future versions. DownloadStatisticsExcelInvoker 下载统计指标数据表格文件
func (*CdnClient) ListCdnDomainTopRefers ¶ added in v0.1.78
func (c *CdnClient) ListCdnDomainTopRefers(request *model.ListCdnDomainTopRefersRequest) (*model.ListCdnDomainTopRefersResponse, error)
ListCdnDomainTopRefers 查询统计TOP100 referer数据明细
- 查询TOP100 referer数据。
- 支持查询90天内的数据。
- 查询跨度不能超过31天。
- 单租户调用频率:2次/s。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ListCdnDomainTopRefersInvoker ¶ added in v0.1.78
func (c *CdnClient) ListCdnDomainTopRefersInvoker(request *model.ListCdnDomainTopRefersRequest) *ListCdnDomainTopRefersInvoker
ListCdnDomainTopRefersInvoker 查询统计TOP100 referer数据明细
func (*CdnClient) ListDomains ¶ added in v0.1.32
func (c *CdnClient) ListDomains(request *model.ListDomainsRequest) (*model.ListDomainsResponse, error)
ListDomains 查询加速域名
查询加速域名。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ListDomainsInvoker ¶ added in v0.1.32
func (c *CdnClient) ListDomainsInvoker(request *model.ListDomainsRequest) *ListDomainsInvoker
ListDomainsInvoker 查询加速域名
func (*CdnClient) SetChargeModes ¶ added in v0.1.10
func (c *CdnClient) SetChargeModes(request *model.SetChargeModesRequest) (*model.SetChargeModesResponse, error)
SetChargeModes 设置用户计费模式
- 设置用户计费模式。
- 服务区域仅支持mainland_china(国内)
- 计费模式仅支持设置flux(流量),v2及以上客户支持bw(带宽)
- 加速类型仅支持base(基础加速)
- 单租户调用频率:10次/min。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) SetChargeModesInvoker ¶ added in v0.1.10
func (c *CdnClient) SetChargeModesInvoker(request *model.SetChargeModesRequest) *SetChargeModesInvoker
SetChargeModesInvoker 设置用户计费模式
func (*CdnClient) ShowBandwidthCalc
deprecated
added in
v0.1.10
func (c *CdnClient) ShowBandwidthCalc(request *model.ShowBandwidthCalcRequest) (*model.ShowBandwidthCalcResponse, error)
Deprecated: This function is deprecated and will be removed in the future versions. ShowBandwidthCalc 查询域名带宽峰值类数据
- 查询域名带宽峰值类数据。
- 支持查询90天内的数据。
- 查询时间跨度不能超过31天。
- 起始时间和结束时间,左闭右开。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
- 起始时间、结束时间必须传毫秒级时间戳,起始时间和结束时间必须同时指定。
- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、峰值类指标单位统一为bps(比特率),请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
- 单租户调用频率:2次/s。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowBandwidthCalcInvoker
deprecated
added in
v0.1.10
func (c *CdnClient) ShowBandwidthCalcInvoker(request *model.ShowBandwidthCalcRequest) *ShowBandwidthCalcInvoker
Deprecated: This function is deprecated and will be removed in the future versions. ShowBandwidthCalcInvoker 查询域名带宽峰值类数据
func (*CdnClient) ShowChargeModes ¶ added in v0.1.10
func (c *CdnClient) ShowChargeModes(request *model.ShowChargeModesRequest) (*model.ShowChargeModesResponse, error)
ShowChargeModes 查询用户计费模式
- 查询用户计费模式。
- 服务区域仅支持mainland_china(国内,默认)和outside_mainland_china(海外)
- 计费模式状态支持active(已生效),upcoming(待生效)两种状态,默认为active(已生效)
- 加速类型仅支持base(基础加速)
- 单租户调用频率:5次/s。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowChargeModesInvoker ¶ added in v0.1.10
func (c *CdnClient) ShowChargeModesInvoker(request *model.ShowChargeModesRequest) *ShowChargeModesInvoker
ShowChargeModesInvoker 查询用户计费模式
func (*CdnClient) ShowDomainDetailByName ¶ added in v0.1.32
func (c *CdnClient) ShowDomainDetailByName(request *model.ShowDomainDetailByNameRequest) (*model.ShowDomainDetailByNameResponse, error)
ShowDomainDetailByName 查询加速域名详情
加速域名详情信息接口。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowDomainDetailByNameInvoker ¶ added in v0.1.32
func (c *CdnClient) ShowDomainDetailByNameInvoker(request *model.ShowDomainDetailByNameRequest) *ShowDomainDetailByNameInvoker
ShowDomainDetailByNameInvoker 查询加速域名详情
func (*CdnClient) ShowDomainFullConfig ¶ added in v0.1.37
func (c *CdnClient) ShowDomainFullConfig(request *model.ShowDomainFullConfigRequest) (*model.ShowDomainFullConfigResponse, error)
ShowDomainFullConfig 查询域名配置接口
查询域名配置接口,支持查询业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、 Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowDomainFullConfigInvoker ¶ added in v0.1.37
func (c *CdnClient) ShowDomainFullConfigInvoker(request *model.ShowDomainFullConfigRequest) *ShowDomainFullConfigInvoker
ShowDomainFullConfigInvoker 查询域名配置接口
func (*CdnClient) ShowDomainLocationStats ¶
func (c *CdnClient) ShowDomainLocationStats(request *model.ShowDomainLocationStatsRequest) (*model.ShowDomainLocationStatsResponse, error)
ShowDomainLocationStats 按区域运营商查询域名统计数据
- 支持查询90天内的数据。
- 支持多指标同时查询,不超过5个。
- 最多同时指定20个域名。
- 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
- action取值:location_detail,location_summary
- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的区域运营商明细数据。
- 单租户调用频率:15次/s。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowDomainLocationStatsInvoker ¶ added in v0.0.90
func (c *CdnClient) ShowDomainLocationStatsInvoker(request *model.ShowDomainLocationStatsRequest) *ShowDomainLocationStatsInvoker
ShowDomainLocationStatsInvoker 按区域运营商查询域名统计数据
func (*CdnClient) ShowDomainStats ¶
func (c *CdnClient) ShowDomainStats(request *model.ShowDomainStatsRequest) (*model.ShowDomainStatsResponse, error)
ShowDomainStats 查询域名统计数据
- 支持查询90天内的数据。
- 支持多指标同时查询,不超过5个。
- 最多同时指定20个域名。
- 起始时间和结束时间需要同时指定,左闭右开,毫秒级时间戳,且时间点必须为与查询时间间隔参数匹配的整时刻点。比如查询时间间隔为5分钟时,起始时间和结束时间必须为5分钟整时刻点,如:0分、5分、10分、15分等,如果时间点与时间间隔不匹配,返回数据可能与预期不一致。统一用开始时间表示一个时间段,如:2019-01-24 20:15:00 表示取 [20:15:00, 20:20:00)的统计数据,且左闭右开。
- action取值:detail,summary
- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
- 单租户调用频率:15次/s。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowDomainStatsInvoker ¶ added in v0.0.90
func (c *CdnClient) ShowDomainStatsInvoker(request *model.ShowDomainStatsRequest) *ShowDomainStatsInvoker
ShowDomainStatsInvoker 查询域名统计数据
func (*CdnClient) ShowHistoryTaskDetails ¶ added in v0.1.63
func (c *CdnClient) ShowHistoryTaskDetails(request *model.ShowHistoryTaskDetailsRequest) (*model.ShowHistoryTaskDetailsResponse, error)
ShowHistoryTaskDetails 查询刷新预热任务详情
查询刷新预热任务详情。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowHistoryTaskDetailsInvoker ¶ added in v0.1.63
func (c *CdnClient) ShowHistoryTaskDetailsInvoker(request *model.ShowHistoryTaskDetailsRequest) *ShowHistoryTaskDetailsInvoker
ShowHistoryTaskDetailsInvoker 查询刷新预热任务详情
func (*CdnClient) ShowHistoryTasks ¶ added in v0.1.63
func (c *CdnClient) ShowHistoryTasks(request *model.ShowHistoryTasksRequest) (*model.ShowHistoryTasksResponse, error)
ShowHistoryTasks 查询刷新预热任务
查询刷新预热任务。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowHistoryTasksInvoker ¶ added in v0.1.63
func (c *CdnClient) ShowHistoryTasksInvoker(request *model.ShowHistoryTasksRequest) *ShowHistoryTasksInvoker
ShowHistoryTasksInvoker 查询刷新预热任务
func (*CdnClient) ShowTopDomainNames
deprecated
added in
v0.1.10
func (c *CdnClient) ShowTopDomainNames(request *model.ShowTopDomainNamesRequest) (*model.ShowTopDomainNamesResponse, error)
Deprecated: This function is deprecated and will be removed in the future versions. ShowTopDomainNames 查询TOP域名
- 查询TOP域名。
- 支持查询90天内的数据。
- 查询时间跨度不能超过1天。
- 起始时间和结束时间,左闭右开,必须同时指定。如查询2022-10-24 00:00:00 到 2022-10-25 00:00:00 的数据,表示取 [2022-10-24 00:00:00, 2022-10-25 00:00:00)的统计数据。
- 起始时间、结束时间必须传整点毫秒级时间戳。
- 流量类指标单位统一为Byte(字节)、带宽类指标单位统一为bit/s(比特/秒)、请求数类和状态码类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
- 单租户调用频率:5次/s。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowTopDomainNamesInvoker
deprecated
added in
v0.1.10
func (c *CdnClient) ShowTopDomainNamesInvoker(request *model.ShowTopDomainNamesRequest) *ShowTopDomainNamesInvoker
Deprecated: This function is deprecated and will be removed in the future versions. ShowTopDomainNamesInvoker 查询TOP域名
func (*CdnClient) ShowTopUrl ¶
func (c *CdnClient) ShowTopUrl(request *model.ShowTopUrlRequest) (*model.ShowTopUrlResponse, error)
ShowTopUrl 查询TOP100 URL明细
- 查询TOP100 URL明细。
- 支持查询90天内的数据。
- 查询跨度不能超过31天。
- 起始时间和结束时间,左闭右开,需要同时指定。如查询2021-10-24 00:00:00 到 2021-10-25 00:00:00 的数据,表示取 [2021-10-24 00:00:00, 2021-10-25 00:00:00)的统计数据。
- 开始时间、结束时间必须传毫秒级时间戳,且必须为凌晨0点整时刻点,如果传的不是凌晨0点整时刻点,返回数据可能与预期不一致。
- 流量类指标单位统一为Byte(字节)、请求数类指标单位统一为次数。用于查询指定域名、指定统计指标的明细数据。
- 单租户调用频率:5次/s。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowTopUrlInvoker ¶ added in v0.0.90
func (c *CdnClient) ShowTopUrlInvoker(request *model.ShowTopUrlRequest) *ShowTopUrlInvoker
ShowTopUrlInvoker 查询TOP100 URL明细
func (*CdnClient) ShowUrlTaskInfo ¶ added in v0.1.63
func (c *CdnClient) ShowUrlTaskInfo(request *model.ShowUrlTaskInfoRequest) (*model.ShowUrlTaskInfoResponse, error)
ShowUrlTaskInfo 查询刷新预热URL记录
查询刷新预热URL记录。如需此接口,请提交工单开通。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) ShowUrlTaskInfoInvoker ¶ added in v0.1.63
func (c *CdnClient) ShowUrlTaskInfoInvoker(request *model.ShowUrlTaskInfoRequest) *ShowUrlTaskInfoInvoker
ShowUrlTaskInfoInvoker 查询刷新预热URL记录
func (*CdnClient) UpdateDomainFullConfig ¶ added in v0.1.37
func (c *CdnClient) UpdateDomainFullConfig(request *model.UpdateDomainFullConfigRequest) (*model.UpdateDomainFullConfigResponse, error)
UpdateDomainFullConfig 修改域名全量配置接口
修改域名配置接口,支持修改业务类型、服务范围、备注、IPv6开关、回源方式、回源URL改写、高级回源、Range回源、回源跟随、回源是否校验Etag、回源超时时间、回源请求头、HTTPS配置、TLS版本配置、强制跳转、HSTS、HTTP/2、OCSP Stapling、QUIC、缓存规则、状态码缓存时间、防盗链、IP黑白名单、Use-Agent黑白名单、URL鉴权配置、远程鉴权配置、IP访问限频、HTTP header配置、自定义错误页面配置、智能压缩、请求限速配置、WebSocket配置、视频拖拽。
Please refer to HUAWEI cloud API Explorer for details.
func (*CdnClient) UpdateDomainFullConfigInvoker ¶ added in v0.1.37
func (c *CdnClient) UpdateDomainFullConfigInvoker(request *model.UpdateDomainFullConfigRequest) *UpdateDomainFullConfigInvoker
UpdateDomainFullConfigInvoker 修改域名全量配置接口
type CreatePreheatingTasksInvoker ¶ added in v0.1.63
type CreatePreheatingTasksInvoker struct {
*invoker.BaseInvoker
}
func (*CreatePreheatingTasksInvoker) Invoke ¶ added in v0.1.63
func (i *CreatePreheatingTasksInvoker) Invoke() (*model.CreatePreheatingTasksResponse, error)
type CreateRefreshTasksInvoker ¶ added in v0.1.63
type CreateRefreshTasksInvoker struct {
*invoker.BaseInvoker
}
func (*CreateRefreshTasksInvoker) Invoke ¶ added in v0.1.63
func (i *CreateRefreshTasksInvoker) Invoke() (*model.CreateRefreshTasksResponse, error)
type DownloadRegionCarrierExcelInvoker ¶ added in v0.1.10
type DownloadRegionCarrierExcelInvoker struct {
*invoker.BaseInvoker
}
func (*DownloadRegionCarrierExcelInvoker) Invoke
deprecated
added in
v0.1.10
func (i *DownloadRegionCarrierExcelInvoker) Invoke() (*model.DownloadRegionCarrierExcelResponse, error)
Deprecated: This function is deprecated and will be removed in the future versions.
type DownloadStatisticsExcelInvoker ¶ added in v0.1.10
type DownloadStatisticsExcelInvoker struct {
*invoker.BaseInvoker
}
func (*DownloadStatisticsExcelInvoker) Invoke
deprecated
added in
v0.1.10
func (i *DownloadStatisticsExcelInvoker) Invoke() (*model.DownloadStatisticsExcelResponse, error)
Deprecated: This function is deprecated and will be removed in the future versions.
type ListCdnDomainTopRefersInvoker ¶ added in v0.1.78
type ListCdnDomainTopRefersInvoker struct {
*invoker.BaseInvoker
}
func (*ListCdnDomainTopRefersInvoker) Invoke ¶ added in v0.1.78
func (i *ListCdnDomainTopRefersInvoker) Invoke() (*model.ListCdnDomainTopRefersResponse, error)
type ListDomainsInvoker ¶ added in v0.1.32
type ListDomainsInvoker struct {
*invoker.BaseInvoker
}
func (*ListDomainsInvoker) Invoke ¶ added in v0.1.32
func (i *ListDomainsInvoker) Invoke() (*model.ListDomainsResponse, error)
type SetChargeModesInvoker ¶ added in v0.1.10
type SetChargeModesInvoker struct {
*invoker.BaseInvoker
}
func (*SetChargeModesInvoker) Invoke ¶ added in v0.1.10
func (i *SetChargeModesInvoker) Invoke() (*model.SetChargeModesResponse, error)
type ShowBandwidthCalcInvoker ¶ added in v0.1.10
type ShowBandwidthCalcInvoker struct {
*invoker.BaseInvoker
}
func (*ShowBandwidthCalcInvoker) Invoke
deprecated
added in
v0.1.10
func (i *ShowBandwidthCalcInvoker) Invoke() (*model.ShowBandwidthCalcResponse, error)
Deprecated: This function is deprecated and will be removed in the future versions.
type ShowChargeModesInvoker ¶ added in v0.1.10
type ShowChargeModesInvoker struct {
*invoker.BaseInvoker
}
func (*ShowChargeModesInvoker) Invoke ¶ added in v0.1.10
func (i *ShowChargeModesInvoker) Invoke() (*model.ShowChargeModesResponse, error)
type ShowDomainDetailByNameInvoker ¶ added in v0.1.32
type ShowDomainDetailByNameInvoker struct {
*invoker.BaseInvoker
}
func (*ShowDomainDetailByNameInvoker) Invoke ¶ added in v0.1.32
func (i *ShowDomainDetailByNameInvoker) Invoke() (*model.ShowDomainDetailByNameResponse, error)
type ShowDomainFullConfigInvoker ¶ added in v0.1.37
type ShowDomainFullConfigInvoker struct {
*invoker.BaseInvoker
}
func (*ShowDomainFullConfigInvoker) Invoke ¶ added in v0.1.37
func (i *ShowDomainFullConfigInvoker) Invoke() (*model.ShowDomainFullConfigResponse, error)
type ShowDomainLocationStatsInvoker ¶ added in v0.0.90
type ShowDomainLocationStatsInvoker struct {
*invoker.BaseInvoker
}
func (*ShowDomainLocationStatsInvoker) Invoke ¶ added in v0.0.90
func (i *ShowDomainLocationStatsInvoker) Invoke() (*model.ShowDomainLocationStatsResponse, error)
type ShowDomainStatsInvoker ¶ added in v0.0.90
type ShowDomainStatsInvoker struct {
*invoker.BaseInvoker
}
func (*ShowDomainStatsInvoker) Invoke ¶ added in v0.0.90
func (i *ShowDomainStatsInvoker) Invoke() (*model.ShowDomainStatsResponse, error)
type ShowHistoryTaskDetailsInvoker ¶ added in v0.1.63
type ShowHistoryTaskDetailsInvoker struct {
*invoker.BaseInvoker
}
func (*ShowHistoryTaskDetailsInvoker) Invoke ¶ added in v0.1.63
func (i *ShowHistoryTaskDetailsInvoker) Invoke() (*model.ShowHistoryTaskDetailsResponse, error)
type ShowHistoryTasksInvoker ¶ added in v0.1.63
type ShowHistoryTasksInvoker struct {
*invoker.BaseInvoker
}
func (*ShowHistoryTasksInvoker) Invoke ¶ added in v0.1.63
func (i *ShowHistoryTasksInvoker) Invoke() (*model.ShowHistoryTasksResponse, error)
type ShowTopDomainNamesInvoker ¶ added in v0.1.10
type ShowTopDomainNamesInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTopDomainNamesInvoker) Invoke
deprecated
added in
v0.1.10
func (i *ShowTopDomainNamesInvoker) Invoke() (*model.ShowTopDomainNamesResponse, error)
Deprecated: This function is deprecated and will be removed in the future versions.
type ShowTopUrlInvoker ¶ added in v0.0.90
type ShowTopUrlInvoker struct {
*invoker.BaseInvoker
}
func (*ShowTopUrlInvoker) Invoke ¶ added in v0.0.90
func (i *ShowTopUrlInvoker) Invoke() (*model.ShowTopUrlResponse, error)
type ShowUrlTaskInfoInvoker ¶ added in v0.1.63
type ShowUrlTaskInfoInvoker struct {
*invoker.BaseInvoker
}
func (*ShowUrlTaskInfoInvoker) Invoke ¶ added in v0.1.63
func (i *ShowUrlTaskInfoInvoker) Invoke() (*model.ShowUrlTaskInfoResponse, error)
type UpdateDomainFullConfigInvoker ¶ added in v0.1.37
type UpdateDomainFullConfigInvoker struct {
*invoker.BaseInvoker
}
func (*UpdateDomainFullConfigInvoker) Invoke ¶ added in v0.1.37
func (i *UpdateDomainFullConfigInvoker) Invoke() (*model.UpdateDomainFullConfigResponse, error)