Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: ✨ 新增 IP、Protocol 条件 #79

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 8 additions & 0 deletions services/cdn/v2/cdn_meta.go
Original file line number Diff line number Diff line change
Expand Up @@ -628,6 +628,14 @@ func GenReqDefForShowDomainLocationStats() *def.HttpRequestDef {
WithName("Isp").
WithJsonTag("isp").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("IpVersion").
WithJsonTag("ip_version").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("Protocol").
WithJsonTag("protocol").
WithLocationType(def.Query))
reqDefBuilder.WithRequestField(def.NewFieldDef().
WithName("GroupBy").
WithJsonTag("group_by").
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,12 @@ type ShowDomainLocationStatsRequest struct {
// 数据分组方式,多个以英文逗号分隔,可选domain(域名)、country(国家)、province(省份,仅国家为中国时有效)、isp(区域运营商),默认不分组
GroupBy *string `json:"group_by,omitempty"`

// Ip版本,可选ipv4、ipv6,不选表示查询全部
IpVersion *string `json:"ip_version,omitempty"`

//http协议,可选http、https,不选表示查询全部
Protocol *string `json:"protocol,omitempty"`

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