model

package
v0.1.15 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Dec 8, 2022 License: Apache-2.0, BSD-2-Clause, BSD-3-Clause Imports: 4 Imported by: 3

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type BatchCopyConfigs added in v0.1.12

type BatchCopyConfigs struct {

	// 目标域名列表,多个域名以逗号(半角)分隔,域名数最大10个。
	TargetDomain string `json:"target_domain"`

	// 原域名
	SourceDomain string `json:"source_domain"`

	// 需要复制的域名配置项,多个配置项以逗号(半角)分隔,支持复制的配置项: - originRequestHeader(回源请求头) - httpResponseHeader(HTTP header配置) - cacheUrlParamsConfig(URL参数) - urlAuth(URL鉴权配置) - userAgentBlackAndWhiteList(User-Agent黑白名单) - ipv6Accelerate(IPv6开关) - rangeStatus(Range回源) - cacheRules(缓存规则) - followOrigin(缓存遵循源站) - privateBucketRetrieval(私有桶回源) - follow302Status(回源跟随) - sources(源站配置) - compress(智能压缩) - referer(防盗链) - ipBlackAndWhiteList(IP黑白名单)
	ConfigList []string `json:"config_list"`
}

原域名所有配置

func (BatchCopyConfigs) String added in v0.1.12

func (o BatchCopyConfigs) String() string

type BatchCopyDRequestBody added in v0.1.12

type BatchCopyDRequestBody struct {
	Configs *BatchCopyConfigs `json:"configs"`
}

域名复制请求体

func (BatchCopyDRequestBody) String added in v0.1.12

func (o BatchCopyDRequestBody) String() string

type BatchCopyDomainRequest added in v0.1.12

type BatchCopyDomainRequest struct {
	Body *BatchCopyDRequestBody `json:"body,omitempty"`
}

Request Object

func (BatchCopyDomainRequest) String added in v0.1.12

func (o BatchCopyDomainRequest) String() string

type BatchCopyDomainResponse added in v0.1.12

type BatchCopyDomainResponse struct {

	// 成功响应体
	Result         *[]BatchCopyResultVo `json:"result,omitempty"`
	HttpStatusCode int                  `json:"-"`
}

Response Object

func (BatchCopyDomainResponse) String added in v0.1.12

func (o BatchCopyDomainResponse) String() string

type BatchCopyErrorRsp added in v0.1.12

type BatchCopyErrorRsp struct {
	Error *BatchCopyErrorRspError `json:"error,omitempty"`
}

原域名所有配置

func (BatchCopyErrorRsp) String added in v0.1.12

func (o BatchCopyErrorRsp) String() string

type BatchCopyErrorRspError added in v0.1.12

type BatchCopyErrorRspError struct {

	// 错误码
	ErrorCode *string `json:"error_code,omitempty"`

	// 错误描述
	ErrorMsg *string `json:"error_msg,omitempty"`
}

错误体

func (BatchCopyErrorRspError) String added in v0.1.12

func (o BatchCopyErrorRspError) String() string

type BatchCopyResultVo added in v0.1.12

type BatchCopyResultVo struct {

	// 失败原因,成功时没有该字段
	Reason *string `json:"reason,omitempty"`

	// 批量操作结果
	Status BatchCopyResultVoStatus `json:"status"`

	// 域名
	DomainName string `json:"domain_name"`
}

成功响应详细内容

func (BatchCopyResultVo) String added in v0.1.12

func (o BatchCopyResultVo) String() string

type BatchCopyResultVoStatus added in v0.1.12

type BatchCopyResultVoStatus struct {
	// contains filtered or unexported fields
}

func (BatchCopyResultVoStatus) MarshalJSON added in v0.1.12

func (c BatchCopyResultVoStatus) MarshalJSON() ([]byte, error)

func (*BatchCopyResultVoStatus) UnmarshalJSON added in v0.1.12

func (c *BatchCopyResultVoStatus) UnmarshalJSON(b []byte) error

func (BatchCopyResultVoStatus) Value added in v0.1.12

func (c BatchCopyResultVoStatus) Value() string

type BatchCopyResultVoStatusEnum added in v0.1.12

type BatchCopyResultVoStatusEnum struct {
	SUCCESS BatchCopyResultVoStatus
	FAIL    BatchCopyResultVoStatus
}

func GetBatchCopyResultVoStatusEnum added in v0.1.12

func GetBatchCopyResultVoStatusEnum() BatchCopyResultVoStatusEnum

type DownloadRegionCarrierExcelRequest added in v0.1.10

type DownloadRegionCarrierExcelRequest struct {

	// - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
	Interval *int64 `json:"interval,omitempty"`

	// - 国家&地区编码,多个以英文逗号分隔,all表示全部,取值见附录 - 访问运营商统计数据时不能填写 - 访问top_url数据时不能填写 - 访问区域情况数据时只能填写cn(中国)
	Country *string `json:"country,omitempty"`

	// 创建表格语言,支持zh(中文),en(英文)两种,如果不传默认为zh
	ExcelLanguage *string `json:"excel_language,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 统计数据表格类型,目前支持 - 区域用量统计数据(excel_type_usage) - 区域访问情况统计数据(excel_type_access) - 区域情况统计数据(excel_type_region) - 区域运营商情况统计数据(excel_type_carrier) - 国家情况统计数据(excel_type_country) - top_url统计数据(excel_type_top_url)
	ExcelType string `json:"excel_type"`

	// - 地区区域,当country为cn(中国)时有效 - 访问运营商统计数据时不能填写 - 访问国家统计数据时不能填写 - 访问top_url数据时不能填写
	Region *string `json:"region,omitempty"`

	// - 运营商编码 - 访问区域统计数据时不能填写 - 访问国家统计数据时不能填写 - 访问top_url数据时不能填写
	Carrier *string `json:"carrier,omitempty"`
}

Request Object

func (DownloadRegionCarrierExcelRequest) String added in v0.1.10

type DownloadRegionCarrierExcelResponse added in v0.1.10

type DownloadRegionCarrierExcelResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DownloadRegionCarrierExcelResponse) String added in v0.1.10

type DownloadStatisticsExcelRequest added in v0.1.10

type DownloadStatisticsExcelRequest struct {

	// - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// 创建表格语言,支持zh(中文),en(英文)两种,如果不传默认为zh
	ExcelLanguage *string `json:"excel_language,omitempty"`

	// 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
	ServiceArea *string `json:"service_area,omitempty"`

	// - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
	Interval *int64 `json:"interval,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 统计数据表格类型,目前支持 - 用量统计数据(excel_type_usage) - 访问情况统计数据(excel_type_access) - 回源情况统计数据(excel_type_origin) - http_code统计数据(excel_type_http_code)
	ExcelType string `json:"excel_type"`
}

Request Object

func (DownloadStatisticsExcelRequest) String added in v0.1.10

type DownloadStatisticsExcelResponse added in v0.1.10

type DownloadStatisticsExcelResponse struct {
	HttpStatusCode int `json:"-"`
}

Response Object

func (DownloadStatisticsExcelResponse) String added in v0.1.10

type ErrMsg

type ErrMsg struct {

	// 错误码
	ErrorCode string `json:"error_code"`

	// 错误描述
	ErrorMsg string `json:"error_msg"`
}

用于返回具体的错误码和错误消息

func (ErrMsg) String

func (o ErrMsg) String() string

type ErrRsp

type ErrRsp struct {
	Error *ErrMsg `json:"error"`
}

当北向接口报错时,按此格式返回到body体中

func (ErrRsp) String

func (o ErrRsp) String() string

type SetChargeModesBody added in v0.1.10

type SetChargeModesBody struct {

	// 计费模式,支持flux(流量),bw(带宽)
	ChargeMode string `json:"charge_mode"`

	// 产品模式,仅支持base(基础加速)
	ProductType string `json:"product_type"`

	// 服务区域,仅支持mainland_china(国内)
	ServiceArea string `json:"service_area"`
}

设置计费模式请求体

func (SetChargeModesBody) String added in v0.1.10

func (o SetChargeModesBody) String() string

type SetChargeModesRequest added in v0.1.10

type SetChargeModesRequest struct {
	Body *SetChargeModesBody `json:"body,omitempty"`
}

Request Object

func (SetChargeModesRequest) String added in v0.1.10

func (o SetChargeModesRequest) String() string

type SetChargeModesResponse added in v0.1.10

type SetChargeModesResponse struct {

	// 账号的计费模式
	ChargeMode *string `json:"charge_mode,omitempty"`

	// 加速类型
	ProductType *string `json:"product_type,omitempty"`

	// 该模式生效时间
	EffectiveTime *int64 `json:"effective_time,omitempty"`

	// 创建时间
	CreateTime *int64 `json:"create_time,omitempty"`

	// 该模式的区域
	ServiceArea *string `json:"service_area,omitempty"`

	// 状态,首次开通状态为active,之后修改为upcoming
	Status         *string `json:"status,omitempty"`
	HttpStatusCode int     `json:"-"`
}

Response Object

func (SetChargeModesResponse) String added in v0.1.10

func (o SetChargeModesResponse) String() string

type ShowBandwidthCalcRequest added in v0.1.10

type ShowBandwidthCalcRequest struct {

	// - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
	ServiceArea *string `json:"service_area,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`

	// 查询类别,目前支持bw_95(95峰值带宽),bw_peak(日峰值月平均带宽),bw_95_average(95月平均带宽)
	CalcType string `json:"calc_type"`
}

Request Object

func (ShowBandwidthCalcRequest) String added in v0.1.10

func (o ShowBandwidthCalcRequest) String() string

type ShowBandwidthCalcResponse added in v0.1.10

type ShowBandwidthCalcResponse struct {

	// 95峰值,日峰值月平均线信息
	BandwidthCalc  map[string]interface{} `json:"bandwidth_calc,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ShowBandwidthCalcResponse) String added in v0.1.10

func (o ShowBandwidthCalcResponse) String() string

type ShowChargeModesRequest added in v0.1.10

type ShowChargeModesRequest struct {

	// 加速类型,base(基础加速)
	ProductType string `json:"product_type"`

	// 查询计费模式状态,active(已生效),upcoming(待生效),不传默认为active(已生效)
	Status *string `json:"status,omitempty"`

	// 服务区域,mainland_china(国内),outside_mainland_china(海外),不传默认为mainland_china(国内)
	ServiceArea *string `json:"service_area,omitempty"`
}

Request Object

func (ShowChargeModesRequest) String added in v0.1.10

func (o ShowChargeModesRequest) String() string

type ShowChargeModesResponse added in v0.1.10

type ShowChargeModesResponse struct {

	// 计费模式查询结果
	Result         *[]map[string]interface{} `json:"result,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (ShowChargeModesResponse) String added in v0.1.10

func (o ShowChargeModesResponse) String() string

type ShowDomainLocationStatsRequest

type ShowDomainLocationStatsRequest struct {

	// - 动作名称,可选location_summary、location_detail。 - location_summary:查询汇总数据 - location_detail:查询数据详情。
	Action string `json:"action"`

	// - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// - 网络资源消耗   - bw(带宽)   - flux(流量) - 访问情况   - req_num(请求总数) - HTTP状态码(组合指标)   - http_code_2xx(状态码汇总2xx)   - http_code_3xx(状态码汇总3xx)   - http_code_4xx(状态码汇总4xx)   - http_code_5xx(状态码汇总5xx)   - status_code_2xx(状态码详情2xx)   - status_code_3xx(状态码详情3xx)   - status_code_4xx(状态码详情4xx)   - status_code_5xx(状态码详情5xx)
	StatType string `json:"stat_type"`

	// - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
	Interval *int64 `json:"interval,omitempty"`

	// - 国家&地区编码,多个以英文逗号分隔,all表示全部,取值见附录 - 访问运营商统计数据时不能填写 - 访问top_url数据时不能填写 - 访问区域情况数据时只能填写cn(中国)
	Country *string `json:"country,omitempty"`

	// 省份编码,当country为cn(中国)时有效,多个以英文逗号分隔,all表示全部,取值见附录
	Province *string `json:"province,omitempty"`

	// 运营商编码,多个以英文逗号分隔,all表示全部,取值见附录
	Isp *string `json:"isp,omitempty"`

	// 数据分组方式,多个以英文逗号分隔,可选domain、country、province、isp,默认不分组
	GroupBy *string `json:"group_by,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ShowDomainLocationStatsRequest) String

type ShowDomainLocationStatsResponse

type ShowDomainLocationStatsResponse struct {

	// 数据分组方式
	GroupBy *string `json:"group_by,omitempty"`

	// 按指定的分组方式组织的数据
	Result         map[string]interface{} `json:"result,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ShowDomainLocationStatsResponse) String

type ShowDomainStatsRequest

type ShowDomainStatsRequest struct {

	// - 动作名称,可选summary、detail。 - summary:查询汇总数据 - detail:查询数据详情。
	Action string `json:"action"`

	// - 查询起始时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,start_time设置为整5分钟时刻点,如:1631240100000(对应2021-09-10 10:15:00) - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,时间戳应设置需为整5分钟,设置方式如下: - interval为300时,end_time设置为整5分钟时刻点,如:1631243700000(对应2021-09-10 11:15:00) - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// - 网络资源消耗:   - bw(带宽)   - flux(流量)   - bs_bw(回源带宽)   - bs_flux(回源流量) - 访问情况   - req_num(请求总数)   - hit_num(请求命中次数)   - bs_num(回源总数)   - bs_fail_num(回源失败数)   - hit_flux(命中流量) - HTTP状态码(组合指标)   - http_code_2xx(状态码汇总2xx)   - http_code_3xx(状态码汇总3xx)   - http_code_4xx(状态码汇总4xx)   - http_code_5xx(状态码汇总5xx)   - bs_http_code_2xx(回源状态码汇总2xx)   - bs_http_code_3xx(回源状态码汇总3xx)   - bs_http_code_4xx(回源状态码汇总4xx)   - bs_http_code_5xx(回源状态码汇总5xx)   - status_code_2xx(状态码详情2xx)   - status_code_3xx(状态码详情3xx)   - status_code_4xx(状态码详情4xx)   - status_code_5xx(状态码详情5xx)   - bs_status_code_2xx(回源状态码详情2xx)   - bs_status_code_3xx(回源状态码详情3xx)   - bs_status_code_4xx(回源状态码详情4xx)   - bs_status_code_5xx(回源状态码详情5xx)   - status_code和bs_status_code不能一起查询
	StatType string `json:"stat_type"`

	// - 查询时间间隔,单位:秒,取值说明: - 300(5分钟):最大查询跨度2天 - 3600(1小时):最大查询跨度7天 - 86400(1天):最大查询跨度31天 - 如果不传,默认取对应时间跨度的最小间隔。
	Interval *int64 `json:"interval,omitempty"`

	// 数据分组方式,可选domain,默认不分组
	GroupBy *string `json:"group_by,omitempty"`

	// 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
	ServiceArea *string `json:"service_area,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ShowDomainStatsRequest) String

func (o ShowDomainStatsRequest) String() string

type ShowDomainStatsResponse

type ShowDomainStatsResponse struct {

	// 按指定的分组方式组织的数据
	Result         map[string]interface{} `json:"result,omitempty"`
	HttpStatusCode int                    `json:"-"`
}

Response Object

func (ShowDomainStatsResponse) String

func (o ShowDomainStatsResponse) String() string

type ShowTopDomainNamesRequest added in v0.1.10

type ShowTopDomainNamesRequest struct {

	// - 查询起始时间戳,时间戳应设置需为整点时间戳,设置方式如下: - interval为3600时,start_time设置为整小时时刻点,如:1631239200000(对应2021-09-10 10:00:00) - interval为86400时,start_time设置为东8区零点时刻点,如:1631203200000(对应2021-09-10 00:00:00)
	StartTime int64 `json:"start_time"`

	// - 查询结束时间戳,时间戳应设置需为整点时间戳,设置方式如下: - interval为3600时,end_time设置为整小时时刻点,如:1631325600000(对应2021-09-11 10:00:00) - interval为86400时,end_time设置为东8区零点时刻点,如:1631376000000(对应2021-09-12 00:00:00)
	EndTime int64 `json:"end_time"`

	// - 统计类型 - 目前只支持bw(带宽),flux(流量),req_num(请求总数)
	StatType string `json:"stat_type"`

	// 服务区域:mainland_china(默认)、outside_mainland_china,当查询回源类指标时该参数无效。
	ServiceArea *string `json:"service_area,omitempty"`

	// top域名查询数量,默认为20,最大为500,最小为0
	Limit *int32 `json:"limit,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ShowTopDomainNamesRequest) String added in v0.1.10

func (o ShowTopDomainNamesRequest) String() string

type ShowTopDomainNamesResponse added in v0.1.10

type ShowTopDomainNamesResponse struct {

	// top域名信息
	TopDomainNames *[]map[string]interface{} `json:"top_domain_names,omitempty"`
	HttpStatusCode int                       `json:"-"`
}

Response Object

func (ShowTopDomainNamesResponse) String added in v0.1.10

type ShowTopUrlRequest

type ShowTopUrlRequest struct {

	// 查询起始时间戳,只能传0点毫秒时间戳
	StartTime int64 `json:"start_time"`

	// 查询结束时间戳,只能传0点毫秒时间戳
	EndTime int64 `json:"end_time"`

	// 域名列表,多个域名以逗号(半角)分隔,如:www.test1.com,www.test2.com all表示查询名下全部域名
	DomainName string `json:"domain_name"`

	// - 参数类型支持:flux(流量),req_num(请求数)
	StatType string `json:"stat_type"`

	// 服务区域:mainland_china(大陆),outside_mainland_china(海外),默认为mainland_china
	ServiceArea *string `json:"service_area,omitempty"`

	// 当用户开启企业项目功能时,该参数生效,表示查询资源所属项目,\"all\"表示所有项目。注意:当使用子账号调用接口时,该参数必传。
	EnterpriseProjectId *string `json:"enterprise_project_id,omitempty"`
}

Request Object

func (ShowTopUrlRequest) String

func (o ShowTopUrlRequest) String() string

type ShowTopUrlResponse

type ShowTopUrlResponse struct {

	// 服务区域
	ServiceArea *string `json:"service_area,omitempty"`

	// 详情数据对象。
	TopUrlSummary  *[]TopUrlSummary `json:"top_url_summary,omitempty"`
	HttpStatusCode int              `json:"-"`
}

Response Object

func (ShowTopUrlResponse) String

func (o ShowTopUrlResponse) String() string

type TopUrlSummary added in v0.0.91

type TopUrlSummary struct {

	// URL名称。
	Url *string `json:"url,omitempty"`

	// 对应查询类型的值。(流量单位:Byte)
	Value *int64 `json:"value,omitempty"`

	// 查询起始时间戳。
	StartTime *int64 `json:"start_time,omitempty"`

	// 查询结束时间戳
	EndTime *int64 `json:"end_time,omitempty"`

	// 参数类型支持:flux(流量),req_num(请求总数)。
	StatType *string `json:"stat_type,omitempty"`
}

top url 详情数据

func (TopUrlSummary) String added in v0.0.91

func (o TopUrlSummary) String() string

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL